@ambuj.bhaskar/react-component-library 0.24.10-alpha → 0.24.12-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(Xt,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],O):(Xt=typeof globalThis<"u"?globalThis:Xt||self,O(Xt["Awiros UI"]={},Xt.React,Xt.ReactDOM))})(this,function(Xt,O,x0){"use strict";var fye=Object.defineProperty;var hye=(Xt,O,x0)=>O in Xt?fye(Xt,O,{enumerable:!0,configurable:!0,writable:!0,value:x0}):Xt[O]=x0;var En=(Xt,O,x0)=>hye(Xt,typeof O!="symbol"?O+"":O,x0);var du,r9,Im,pD;var Ep=document.createElement("style");Ep.textContent=`@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";@import"https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap";*{box-sizing:border-box}body{margin:0}mark{background-color:unset!important;padding:0rem!important}hr,p{margin:0}.global-confirm-button{background-color:var( --c_button_bg, var(--awi-color-button-background) )!important;color:#fff!important;border:none!important;font-size:14px;cursor:pointer}.global-confirm-button:hover,.global-confirm-button:active{background-color:var( --c_button_bg, var(--awi-color-button-background) )!important}.global-confirm-button-danger{background-color:red!important;color:#fff!important;border:none!important;font-size:14px!important;cursor:pointer!important}.global-confirm-button-danger:hover,.global-confirm-button-danger:active{background-color:red!important}.global-cancel-button{background-color:#fff!important;color:#000!important;border:1px solid #ccc!important;font-size:14px!important;cursor:pointer!important}.global-cancel-button:hover{background-color:#f7f7f7!important}.custom-confirmation-width{width:max(300px,40vw)!important}.swal2-popup.swal2-modal.swal2-show{display:block!important;width:auto!important}.custom-trigger-text{display:flex;text-align:left}.width100{width:100%!important}.color-black{color:#000}.color-black-80{color:#000c}.heightWidthUnset{height:unset!important;width:min(700px,80vw)!important}.toast-display-message{word-break:break-word}.noPadding{padding:0!important}.shortcutKey{display:flex;padding:2.5px 8px;justify-content:center;align-items:center;gap:8px;background:#f2edf7;color:var(--c_text_primary, var(--awi-color-text-primary))!important}.not-allowed-pointer{cursor:not-allowed!important}.modalInput{width:100%;margin-top:10px;border-radius:100px;background:#2626261a;display:flex;height:40px;padding:12px 20px;align-items:center;border:0;justify-content:center}.modalInput input{background:transparent;height:100%;border:transparent;width:80%}.modalInput__password{justify-content:space-between}.modalInput:focus{border:1px solid black}.modalInput__disabled{background-color:#2626261a;pointer-events:none}.modalButton{width:100%;border-radius:100px;display:flex;height:40px;padding:12px 20px;align-items:center;border:0;cursor:pointer;justify-content:center;color:#000}.modalButton__grey{border:0;background:#2626261a}.modalButton:disabled{background-color:#2626261a;border:0;cursor:not-allowed}.modalButton__purpleColor{border:1px solid var(--awi-color-common-themeColor, #6f29a9);background:#6f29a91a!important}.modalButton__purpleColor:hover{background-color:#6f29a94d!important}.modalButton__secondaryChoice{border:1px solid var(--awi-color-common-themeSecondaryButtonColor, #ff2540);background:#ff254033!important;cursor:pointer}.modalButton__secondaryChoice:hover{background-color:#ff25404d!important}.modalButton__secondaryChoice:disabled{background-color:#2626261a!important;border:0;cursor:not-allowed}.modalButton__primaryChoice{cursor:pointer;border:1px solid #5db772;background:rgba(var(--awi-color-common-themeSystemAcceptColor, #5db772),.1)!important}.modalButton__primaryChoice:hover{background-color:rgba(var(--awi-color-common-themeSystemAcceptColor, #5db772),.3)!important}.modalButton__primaryChoice:disabled{background-color:#2626261a!important;border:0;cursor:not-allowed}.modalButton__tertiaryChoice{cursor:pointer;background:#2626261a}.modalButton__tertiaryChoice:disabled{background-color:#dedede!important;opacity:1!important;border:0!important;cursor:not-allowed!important}.modalButton__tertiaryChoice:hover{background:#26262633}.asterisk{color:var(--awi-color-common-themeRed, #ff0000)}.draggableContainer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;overflow:hidden}.draggableContainer .react-draggable{z-index:999;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.draggableContainer.right .react-draggable{right:2%;left:auto;transform:translateY(-50%)}._request__actions_1mv0n_1{display:flex;align-items:center;justify-content:space-between}._request__actions__left_1mv0n_6,._request__actions__right_1mv0n_6{display:flex;align-items:center;gap:8px}._request__actions__left_1mv0n_6{gap:30px}._request__actions__modal_1mv0n_14{position:absolute;list-style:none;background-color:#fff;z-index:13;right:0;text-align:left;box-shadow:0 1px 3px #554f4f40;border-radius:4px;padding:8px}._request__actions__modal_1mv0n_14 li{padding:8px 16px;color:var(--awi-color-common-themeColor, #6f29a9);text-decoration:underline;cursor:pointer}._request__actions__modal_1mv0n_14 li a{text-decoration:none;color:var(--awi-color-common-themeColor, #6f29a9)}._split__request__modal_1mv0n_36{position:fixed;top:50%;left:50%;background-color:#fff;padding:32px;z-index:12;transform:translate(-50%,-50%)}._split__request__form_1mv0n_45{z-index:15}._request__flow__modal_1mv0n_49{max-width:400px;display:flex;flex-direction:column;gap:16px;text-align:justify;white-space:pre-line}._icons_1mv0n_58{width:32px;height:32px;padding:6px;background:#fff;box-shadow:0 4px 8px #312a2a1f;border-radius:5px;flex-shrink:0;box-sizing:border-box}._request__searchbar_1mv0n_69{display:inline-flex;align-items:center;padding:8px 16px;border-radius:6px;width:300px;gap:8px;border:1px solid rgba(0,0,0,.12)}._request__searchbar_1mv0n_69 img{width:12px;height:12px}._request__searchbar_1mv0n_69 input{border:0;width:100%;font-size:14px;line-height:1.12}._request__searchbar_1mv0n_69 input:focus{outline:none}._request_1mv0n_1{overflow:auto;height:calc(100vh - 155px)}._request__details_1mv0n_96{background-color:#f8f8f8;width:90%;padding:42px 56px;box-sizing:border-box;border-radius:12px}@media screen and (max-width: 1024px){._request__details_1mv0n_96{padding:24px}}._request__details__header_1mv0n_108{display:flex;align-items:center;justify-content:space-between;gap:8px}._request__details__header__title_1mv0n_114{font-family:Open Sans,sans-serif}._request__details__header__title__label_1mv0n_117{font-size:32px;line-height:1.17;font-weight:400;color:var(--awi-color-common-themeColor, #6f29a9);margin-bottom:8px}@media screen and (max-width: 1024px){._request__details__header__title__label_1mv0n_117{font-size:24px}}._request__details__header__title__time_1mv0n_129{color:#7d7d7d;font-size:14px;line-height:1.14;font-weight:400}@media screen and (max-width: 1024px){._request__details__header__title__time_1mv0n_129{font-size:12px}}._request__details__header__status_1mv0n_140{display:flex;align-items:center;gap:8px;color:#fff;font-size:14px;line-height:1.14;font-weight:400;font-family:Open Sans,sans-serif;text-transform:capitalize}@media screen and (max-width: 1024px){._request__details__header__status_1mv0n_140{font-size:10px}}._request__details__header__status__action_1mv0n_156{padding:4px 16px;background-color:var(--awi-color-common-themeColor, #6f29a9);border-radius:4px}._request__details__header__status__qa_1mv0n_161{background-color:#48985f;padding:4px 16px;border-radius:4px}._request__details__description__items_1mv0n_166{margin-top:12px;margin-bottom:24px;display:flex;flex-direction:row;gap:12px 8px;flex-wrap:wrap}._request__details__description__items__item_1mv0n_174{padding:3px 4px;border:.5px solid var(--awi-color-common-themeColor, #6f29a9);background-color:#c8e3ff33;width:max-content;border-radius:4px;color:var(--awi-color-common-themeColor, #6f29a9);font-size:11px;text-transform:capitalize}._request__details__description__descr_1mv0n_184 p{padding:4px;color:#7d7d7d}._request__table__header_1mv0n_188{position:sticky;top:0;font-size:13px;border-radius:40px}._request__table__header__action_1mv0n_194{position:sticky!important;right:0;background-color:#f8f8f8}._request__row_1mv0n_199{position:relative;z-index:1}._request__row_selected_1mv0n_203{background:#daecff33!important}._request__table__cell_1mv0n_206{color:var(--awi-color-common-themeColor, #6f29a9);font-size:13px}._request__table__cell_1mv0n_206 sub{color:var(--awi-color-common-themeColor, #6f29a9)}._request__table__cell__action_1mv0n_213{right:0;background-color:#fff}._request__table__cell__action_1mv0n_213 img{margin-right:8px}._request__table__cell__status_1mv0n_220{padding:4px 8px;border:.5px solid var(--awi-color-common-themeColor, #6f29a9);color:var(--awi-color-common-themeColor, #6f29a9);background-color:#c8e3ff33;width:max-content;border-radius:4px}._request__table__cell__status__ratio_1mv0n_228{color:var(--awi-color-common-themeColor, #6f29a9);margin:auto}._request__table__cell__status__completed_1mv0n_232{background-color:#48985f1a;border:.5px solid #48985f;color:#48985f}._request__table__cell__status__hold_1mv0n_237{background-color:#f68e0d1a;border:.5px solid #f68e0d;color:#f68e0d}._request__table__cell__status__failed_1mv0n_242{background-color:#f864641a;border:.5px solid #f86464;color:#f86464}._request__table__cell__status__draft_1mv0n_247{background-color:#be84fe1a;border:.5px solid #be84fe;color:#be84fe}._request__table__cell__user_1mv0n_252{display:flex;gap:4px;align-items:center}._request__table__cell__user_1mv0n_252 img{width:22px;height:22px;border-radius:50%}._request__carousel_elements_1mv0n_262{cursor:pointer;text-decoration:underline}._request__carousel_alignment_1mv0n_266{text-align:right}._request__metrics_1mv0n_269{margin-bottom:32px;display:flex;justify-content:space-between}._request__metrics__requests_1mv0n_274{flex-shrink:0}._request__metrics__requests_list_1mv0n_277{display:flex;gap:16px;margin-top:24px}._request__timeline_1mv0n_282{position:relative}._request__timeline__modal_1mv0n_285{background-color:#fff;position:absolute;z-index:12;width:max-content;left:0;bottom:0;transform:translate(-16px,calc(100% + 10px))}._request__raise_button_1mv0n_294{position:fixed;bottom:16px;right:16px;display:flex;flex-direction:column;gap:8px}._request__raise_button_1mv0n_294>button{background-color:transparent;border:0}._request__raise_button_1mv0n_294>button>img{border-radius:50%;box-shadow:0 5px 13px #55a9fdb3}._request__annotation__button_1mv0n_310{border:0;background-color:#f5f5f5;padding:16px;border-radius:8px;margin-top:16px}._table__header__styles_1mv0n_318{background-color:#fff;border-bottom:1px solid #d2d2d2}._billing__actions_1mv0n_323{display:flex;justify-content:end;align-items:center;gap:16px}._billing__actions__button_1mv0n_329{padding:10px 16px;margin-bottom:12px;margin-top:-24px;border:0;background-color:var(--awi-color-common-themeColor, #6f29a9);color:#fff;border-radius:8px;text-decoration:none;cursor:pointer}._backdrop_1mv0n_341{top:0%;left:0%;position:fixed;width:100vw;height:100vh;background-color:#0006;z-index:11}._backdrop__transparent_1mv0n_350{background-color:#000;opacity:.5;z-index:2}._upload__form__guidelines__heading_1mv0n_356{display:flex;justify-content:space-between;align-items:center;font-size:22px}._upload__form__guidelines__heading_1mv0n_356>img{cursor:pointer;width:35px}._upload__form__grid_1mv0n_366{display:grid;grid-template-columns:max-content 300px;row-gap:12px;column-gap:20px;font-size:14px;align-items:center}._upload__form__grid_1mv0n_366 input{padding:8px 16px}._upload__form__grid_1mv0n_366 input,._upload__form__grid_1mv0n_366 select{border:0;border-bottom:1px solid #aeaeae}._upload__form__grid_1mv0n_366 select{padding:8px}._class__attributes_1mv0n_386{display:flex;flex-direction:column;min-height:250px;gap:24px}._class__attributes__options_1mv0n_392{background-color:#fff;max-height:150px;overflow:auto;list-style:none;box-shadow:1px 1px 4px #0000001f;border-bottom-left-radius:8px;border-bottom-right-radius:8px}._class__attributes__options__option_1mv0n_401{border-bottom:1px solid rgba(0,0,0,.12);padding:12px 16px}._class__attributes__buttons_1mv0n_405{display:flex;gap:8px}._class__attributes__buttons_1mv0n_405 button{cursor:pointer;padding:10px 16px;border:0;background-color:var(--awi-color-common-themeColor, #6f29a9);color:#fff;border-radius:8px;width:max-content}._class__attributes__buttons_1mv0n_405 button._cancel_1mv0n_418{background-color:#79797973}._class__attributes__buttons_1mv0n_405 button:disabled{background-color:#79797973}._class__attributes__type_1mv0n_424{display:flex;gap:16px}._class__attributes__type_1mv0n_424>div{display:flex;align-items:center;gap:8px}._options_open_1mv0n_434{border-bottom-left-radius:0;border-bottom-right-radius:0}._options_closed_1mv0n_439{border-bottom-left-radius:6px;border-bottom-right-radius:6px}._tabs__list_1mv0n_444{margin-bottom:24px;margin-top:12px;width:max-content;display:flex;align-items:center;gap:12px}._tabs__list__item_1mv0n_452{padding:8px 16px;border:0;background-color:#fff;font-size:14px;cursor:pointer}._tabs__list__item_1mv0n_452:not(:last-child){margin-right:4px}._tabs__list__item__selected_1mv0n_462{font-size:16px;border-bottom:2.5px solid var(--awi-color-common-themeColor, #6f29a9);color:var(--awi-color-common-themeColor, #6f29a9)}._tabs__list__item__selected_1mv0n_462:focus{outline:none}._tabs__list__item__hidden_1mv0n_470{display:none}._type_style_1mv0n_474{border-right:1px solid #ababab;width:25%;text-align:center}._lastTypeStyle_1mv0n_480{width:25%;text-align:center}._class__proportion__modal_1mv0n_485{position:fixed;bottom:0%;left:50%;background-color:#fff;padding:32px;z-index:12;transform:translate(-50%)}._class__proportion__modal__container_1mv0n_494{display:flex;width:100vw;justify-content:space-around}._class__proportion__modal__piecontainer_1mv0n_499{display:flex;flex-direction:column;align-items:center;gap:16px}._class__proportion__modal__labelscontainer_1mv0n_505{display:flex;max-width:300px;flex-wrap:wrap;gap:16px;justify-content:center;align-content:flex-start;height:120px;overflow-y:scroll}._class__proportion__modal__color_1mv0n_515{width:20px;height:20px}._class__proportion__modal__labelcontainer_1mv0n_519{display:flex;gap:4px;cursor:pointer}._class__proportion__modal__selectedLabel_1mv0n_524{color:var(--awi-color-common-themeColor, #6f29a9)}._class__proportion__modal__heading_1mv0n_527{margin-bottom:20px;font-size:20px}._class__proportion__modal__mainheading_1mv0n_531{font-size:24px;margin-bottom:44px;text-align:center}._class__proportion__modal__options_1mv0n_536{display:flex;padding-left:200px;padding-right:200px;margin-bottom:80px;gap:60px}._class__proportion__modal__export_1mv0n_543{background-color:var(--awi-color-common-themeColor, #6f29a9);border-radius:6px;color:#fff;padding:10px 24px;border:none;margin-left:auto}._class__proportion__backdrop_1mv0n_551{top:0;left:0;position:fixed;width:100vw;height:100vh;background-color:#0006;z-index:11}._remove__user_button_1mv0n_561{font-weight:500;color:var(--awi-color-common-themeColor, #6f29a9);border:0;background-color:transparent}._remove__user_button_1mv0n_561:focus{outline:none}._classes__tags_1mv0n_571{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}._classes__tags__item_1mv0n_577{display:flex;align-items:center;gap:8px;padding:4px 8px;font-size:10px;background-color:#d9d9d9;border-radius:4px;width:max-content;text-transform:capitalize;color:#292929}._upload__form__image_1mv0n_590{display:flex;flex-direction:column;gap:8px;margin-top:24px}._upload__form__image__detail_1mv0n_596{display:flex;gap:16px;align-items:center;font-size:14px}._upload__form__image__detail__button_1mv0n_602{padding:8px 12px;background-color:#d9d9d9;color:#797979;border-radius:8px;cursor:pointer}._upload__form__image__detail_1mv0n_596 p{color:var(--awi-color-common-themeColor, #6f29a9)}._container_1mv0n_613{margin-top:16px}._highlight_1mv0n_617{border:1px solid var(--awi-color-common-themeColor, #6f29a9);color:var(--awi-color-common-themeColor, #6f29a9);border-radius:8px}._requests__filter_1mv0n_623{z-index:13!important;position:absolute;width:max-content;right:0;top:50px;display:flex;flex-direction:column;padding:16px;background-color:#fff;border-radius:12px;box-shadow:0 4px 8px #312a2a1f}._requests__filter__heading_1mv0n_636{margin-bottom:15px;color:var(--awi-color-common-themeColor, #6f29a9);font-weight:500;font-size:24px}._requests__filter__grid_1mv0n_642{display:grid;grid-template-columns:1fr 250px;gap:15px}._requests__filter_1mv0n_623 select{border:0;border-bottom:1px solid #cccbcb;color:#cccbcb;padding:8px}._requests__filter_1mv0n_623 input{border:0;border-bottom:1px solid #cccbcb;color:#000;padding:8px}._requests__filter__buttons_1mv0n_659{display:flex;gap:24px;justify-content:flex-end;align-items:center;padding-top:24px}._requests__filter__buttons_1mv0n_659 button{padding:8px 24px;cursor:pointer;border:0;box-shadow:0 4px 8px #55a8fd33;border-radius:8px;font-size:12px;line-height:1.12;font-family:Open Sans,sans-serif;color:var(--awi-color-common-themeColor, #6f29a9);background-color:#fff}._requests__filter__buttons_1mv0n_659 button:first-child{background-color:var(--awi-color-common-themeColor, #6f29a9);color:#fff}._colour__blue_1mv0n_683{color:var(--awi-color-common-themeColor, #6f29a9)}._colour__green_1mv0n_686{color:green}._colour__orange_1mv0n_689{color:orange}._colour__red_1mv0n_692{color:red}._colour__grey_1mv0n_695{color:gray}._hide_1mv0n_699{display:none}._assigned__user__filter_1mv0n_703{position:relative;display:flex}._switch_1mv0n_708{position:relative;display:inline-block;width:55px;height:28px}._switch_1mv0n_708 input{opacity:0;width:0;height:0}._slider_1mv0n_721{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}._slider_1mv0n_721:before{position:absolute;content:"";height:20px;width:20px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input:checked+._slider_1mv0n_721{background-color:var(--awi-color-common-themeColor, #6f29a9)}input:focus+._slider_1mv0n_721{box-shadow:0 0 1px var(--awi-color-common-themeColor, #6f29a9)}input:checked+._slider_1mv0n_721:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translate(26px)}._slider_1mv0n_721._round_1mv0n_760{border-radius:34px}._slider_1mv0n_721._round_1mv0n_760:before{border-radius:50%}._progress__container_1mv0n_768{background-color:#fff}._progress__container__header_1mv0n_771{background-color:#fff;border-bottom:1px solid #d2d2d2}._progress__container__header__split__heading_1mv0n_775{text-align:center}._progress__container__header__split__content_1mv0n_778{margin-left:30px;display:flex;gap:20px;flex:1}._progress__container__header__split__content_1mv0n_778>p{width:70px;text-align:center}._loader_1mv0n_789{position:fixed;bottom:48px;left:24px;box-shadow:0 4px 8px #312a2a1f;padding:16px 32px;background-color:#fff;border-radius:18px;color:#000;z-index:100}._cursorPointer_1mv0n_801{cursor:pointer}._sliderContainer_1mv0n_805{display:flex;align-items:center;gap:8px}._sliderContainer_1mv0n_805 span{font-size:.9rem;color:#666}._sliderRow_1mv0n_816{display:flex;align-items:center;gap:8px}._sliderContainer_1mv0n_805{display:flex;align-items:center;gap:4px}._sliderContainer_1mv0n_805 input[type=range]{flex:1}._promptLoadingContainer_1mv0n_832{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;background:linear-gradient(135deg,#eef2f3,#d6e5fa);animation:_fadeIn_1mv0n_1 .5s ease-in-out}._loaderWrapper_1mv0n_842{display:flex;flex-direction:column;align-items:center;gap:20px}._spinner_1mv0n_849{width:80px;height:80px;border:8px solid rgba(0,0,0,.1);border-top-color:#3498db;border-radius:50%;animation:_spin_1mv0n_849 1s linear infinite}@keyframes _spin_1mv0n_849{to{transform:rotate(360deg)}}._loadingText_1mv0n_863{text-align:center}._title_1mv0n_867{font-size:1.8rem;font-weight:600;color:#2c3e50;margin:0}._subTitle_1mv0n_874{font-size:1.2rem;color:#34495e;margin:0}._annotationPrompt_1mv0n_880{font-size:1rem;font-style:italic;color:#7f8c8d;margin-top:8px}@keyframes _fadeIn_1mv0n_1{0%{opacity:0}to{opacity:1}}._modal__header_1etzt_1{color:#292929;font-size:1.25rem;font-style:normal;font-weight:600;line-height:normal;display:flex;height:3rem;padding:1rem;justify-content:space-between;align-items:center;width:100%;border-bottom:1px solid #eaebee}._modalButtonsContainer_1etzt_16{display:flex;gap:1rem;justify-content:flex-end;margin-top:1rem;padding:1rem;border-top:1px solid #eaebee}._genericModalBody_1etzt_25{padding:1rem}._fixHeightScroll_1etzt_29{max-height:80vh;overflow:scroll;height:75vh}._genericModalRow_1etzt_35{display:flex;justify-content:space-between;align-items:center;margin-top:10px;gap:2rem}@media screen and (max-width: 1024px){._genericModalRow_1etzt_35{flex-direction:column;align-items:flex-start;gap:5px;margin-top:2rem}}@media (max-width: 1300px){._genericModalRow_1etzt_35{flex-direction:column;align-items:flex-start;gap:5px;margin-top:1rem}}._modal_1etzt_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;width:max-content;min-width:30vw;z-index:14;max-width:70vw}@media screen and (max-width: 991px){._modal_1etzt_1{max-width:90vw!important}}._modal__close_button_1etzt_75{display:flex;align-items:center;justify-content:center}._detailsModal_1etzt_81{background-color:#fff;width:100%}._modal__row__cell_1etzt_86{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;gap:2rem;color:#000}._modal__row__label_1etzt_95{font-weight:500;color:#000}._modal__row__option_1etzt_100{display:flex;align-items:center;gap:.5rem;min-width:24rem;max-width:50rem}@media screen and (max-width: 1024px){._modal__row__option_1etzt_100{min-width:100%}}@media (max-width: 1300px){._modal__row__option_1etzt_100{min-width:100%}}._modalButton_1etzt_16{display:flex;width:7.5rem;height:2rem;padding:10px 20px;justify-content:center;align-items:center;gap:8px;flex-shrink:0}._modalFooter_1etzt_129{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:1rem;padding:1rem;height:3rem}._modalFooter_1etzt_129._column_1etzt_138{flex-direction:column;align-items:stretch}._modalFooter_1etzt_129._borderTop_1etzt_142{border-top:1px solid #e0e0e0}._leftButtons_1etzt_146,._centerButtons_1etzt_147,._rightButtons_1etzt_148{display:flex;gap:.5rem}._rightWrapper_1etzt_153{display:flex;align-items:center;gap:1rem}._children_1etzt_159{display:flex;align-items:center}._boldLabel_1etzt_164{font-weight:700}._notification__modal_1etzt_168{max-width:430px;width:70vw;max-height:50vh;overflow:scroll;background-color:#fff;z-index:12;position:absolute;right:0;top:30px}._notification__modal__header_1etzt_179{display:flex;justify-content:space-between;align-items:center;font-size:20px}._notification__modal__header__readbutton_1etzt_185{color:var(--c_text_primary, var(--awi-color-text-primary))!important;border-radius:8px;font-size:14px;text-decoration:underline;text-underline-position:under;cursor:pointer}._notification__modal__content_1etzt_193{margin-top:20px;display:flex;flex-direction:column;gap:10px}._notification__modal__content__notification_1etzt_199{padding:5px 10px;border-bottom:1px solid #d9d8d8;margin-top:6px}._notification__modal__content__notread_1etzt_204{background-color:#f8fbff}._notification__modal__filter_1etzt_207{display:flex;justify-content:center;gap:12px;margin-bottom:12px;margin-top:20px}._notification__modal__filter_1etzt_207 ._filterTab_1etzt_214{height:36px;width:150px;display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;font-weight:500;background-color:#f0f0f0;color:#333;transition:background-color .2s ease-in-out,color .2s ease-in-out,box-shadow .2s ease-in-out}._notification__modal__filter_1etzt_207 ._filterTab_1etzt_214:hover{background-color:#e0e0e0}._notification__modal__filter_1etzt_207 ._filterTab_1etzt_214._active_1etzt_230{background-color:var(--c_text_primary, var(--awi-color-text-primary))!important;color:#fff;font-weight:600;box-shadow:0 4px 6px #008f114d}._notification__modal__footer_1etzt_236{display:flex;justify-content:flex-end;margin-top:12px;text-decoration:underline;color:var(--c_text_primary, var(--awi-color-text-primary))!important}._notification__backdrop_1etzt_243{top:0;left:0;position:fixed;width:100vw;height:100vh;background-color:#0006;z-index:11}._rightPopup_1etzt_253{right:2%;left:auto;transform:translateY(-50%);z-index:14}._closeIcon_1etzt_260{cursor:pointer;height:30px;width:30px}._generic-library-button_1etzt_266:active{background-color:inherit!important}._draggableHeader_1etzt_270{cursor:move;-webkit-user-select:none;user-select:none;z-index:999}._backdrop_iv22p_1{top:0;left:0;position:fixed;width:100vw;height:100vh;background-color:#0006;z-index:11}._backdrop__transparent_iv22p_10{background-color:#000;opacity:.5;z-index:2}._cursorPointer_iv22p_16{cursor:pointer}.icon_svg{width:100%;height:100%}.icon.size_xs{width:16px;height:16px}.icon.size_s{width:20px;height:20px}.icon.size_m{width:24px;height:24px}.icon.size_l{width:32px;height:32px}.icon.size_xl{width:48px;height:48px}.icon.size_full{width:100%;height:100%}.spinner{animation:spin .5s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.button{display:flex;align-items:center;cursor:pointer;position:relative;border:none;outline-width:1px;outline-style:solid;border-radius:500px;background-color:unset;outline-color:var(--c_button_border, var(--awi-color-button-border));color:var(--c_button_text, var(--awi-color-button-text))}.button:after{content:"";position:absolute;z-index:0;width:100%;height:100%;top:0;left:0;border-radius:500px;background-color:var(--c_button_bg, var(--awi-color-button-background))}.button.before{flex-direction:row}.button.after{flex-direction:row-reverse}.button.primary:after{filter:opacity(.1)}.button.primary:hover:after{filter:opacity(.2)}.button.primary:active:after{filter:opacity(1)}.button.secondary:after{filter:opacity(.1)}.button.secondary:hover:after{filter:opacity(.15)}.button.secondary:active:after{filter:opacity(.2)}.button.tertiary:after{filter:opacity(0)}.button.tertiary:hover:after{filter:opacity(.1)}.button.tertiary:active:after{filter:opacity(.2)}.button.nav:after{filter:opacity(0)}.button.nav:hover:after{filter:opacity(.1)}.button.nav:active:after{filter:opacity(.2)}.button.disabled:after{background-color:var(--awi-color-common-disabled, #f5f4f4)}.button.disabled.primary:after,.button.disabled.secondary:after{filter:opacity(1)}.button.disabled.tertiary:after,.button.disabled.nav:after{filter:opacity(0)}.button.disabled{cursor:no-drop;color:var(--awi-color-text-disabled, #767676);outline-color:var(--awi-color-common-disabled, #dedede)}.button.disabled.primary,.button.disabled.primary:hover,.button.disabled.primary:active{outline-width:1px}.button.disabled.secondary,.button.disabled.secondary:hover,.button.disabled.secondary:active,.button.disabled.tertiary,.button.disabled.tertiary:hover,.button.disabled.tertiary:active,.button.disabled.nav,.button.disabled.nav:hover,.button.disabled.nav:active{outline-width:0px}.button.disabled.primary,.button.primary{outline-width:1px}.button.tertiary,.button.secondary{outline-width:0px}.button.secondary:hover,.button.secondary:active{outline-width:1px}.button.nav,.button.nav:hover{outline-width:0px}.button.nav:active{outline-width:1px}.button>p,.button>svg{z-index:2;pointer-events:none}.button.size_s{--button_height: 2rem;height:var(--button_height);padding:8px 16px}.button.size_m{--button_height: 2.5rem;height:var(--button_height);padding:10px 18px}.button.size_l{--button_height: 3rem;height:var(--button_height);padding:12px 20px}.button.size_s{padding:0 8px}.button.size_m{padding:0 9px}.button.size_l{padding:0 10px}.button.size_s.icon_button{--button_height: 2rem;height:var(--button_height);width:var(--button_height);padding:8px}.button.size_m.icon_button{--button_height: 2.5rem;height:var(--button_height);width:var(--button_height);padding:10px}.button.size_l.icon_button{--button_height: 3rem;height:var(--button_height);width:var(--button_height);padding:12px}.button>.text_xs{font-size:var(--awi-size-text-xs, 12px);line-height:12px}.button>.text_s{font-size:var(--awi-size-text-s, 14px);line-height:16px}.button>.text_m{font-size:var(--awi-size-text-m, 16px);line-height:20px}.button>.text_l{font-size:var(--awi-size-text-l, 20px);line-height:24px}.button>.text_xl{font-size:var(--awi-size-text-xl, 22px);line-height:28px}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;cursor:pointer}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-runnable-track{background-color:var(--awi-color-common-themeColor, #6f29a9);border-radius:1rem;height:.5rem}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-top:-4px;background-color:var(--awi-color-common-themeColor, #6f29a9);height:1rem;width:1rem;border-radius:50%}input[type=range]::-moz-range-track{background-color:var(--awi-color-common-themeColor, #6f29a9);border-radius:.5rem;height:.5rem}input[type=range]::-moz-range-thumb{border:none;border-radius:0;background-color:var(--awi-color-common-themeColor, #6f29a9)}input[type=range]:focus::-moz-range-thumb{border:1px solid var(--awi-color-common-themeColor, #6f29a9);outline:3px solid var(--awi-color-common-themeColor, #6f29a9);outline-offset:.125rem}._sliderRow_s1edt_57{display:flex;align-items:center;gap:16px;justify-content:space-between;cursor:pointer;width:100%}._sliderContainer_s1edt_66{display:flex;align-items:center;gap:8px;flex:1}._sliderContainer_s1edt_66 input[type=range]{flex:1;cursor:pointer}._valueContainer_s1edt_78{display:flex;align-items:center;gap:8px}._valueContainer_s1edt_78 input[type=number]{width:60px;padding:4px;font-size:14px;text-align:center;border:1px solid #ccc;border-radius:4px;outline:none}._valueContainer_s1edt_78 input[type=number]:focus{border-color:#008f11;box-shadow:0 0 4px #008f1180}._valueContainer_s1edt_78 ._unit_s1edt_99{font-size:14px;color:#666}._sliderRow_s1edt_57 label{font-size:14px;font-weight:600;color:#333;margin-right:8px}._common_styles__input_1aa4m_1{display:flex;background-color:transparent;height:32px;padding:4px 16px;align-items:center;flex-shrink:0;border-radius:100px;background:#2929291a}._common_styles__input_1aa4m_1 input{background-color:transparent;width:100%;box-sizing:border-box;border:0!important;color:#000;padding:4px 6px;text-transform:capitalize}._common_styles__input_1aa4m_1 input:focus{outline:none}._common_styles__input_1aa4m_1 img{width:12px;height:12px}._common_styles__drop_down_1aa4m_29{position:absolute;background-color:#fff;box-shadow:0 4px 8px #312a2a38;list-style:none;bottom:0;width:100%;box-sizing:border-box;max-height:200px;overflow:auto;z-index:2;transform:translateY(100%);cursor:pointer}._common_styles__drop_down_1aa4m_29 li{text-transform:capitalize;padding:8px 12px;text-align:left;font-size:12px}._common_styles__drop_down_1aa4m_29 li:hover,._common_styles__drop_down__selected_1aa4m_52{background-color:#f2f2f2}._common_styles__backdrop_1aa4m_55{position:fixed;width:100%;height:100%;top:0;left:0;z-index:1}._customConfirmationWrapper_11wic_5{cursor:pointer}._annotation_1trm0_2{display:flex;height:100%;box-sizing:border-box;justify-content:space-between;position:relative}._annotation__tool_1trm0_9{width:71.2%;display:flex;flex-direction:column;justify-content:space-between;height:100%}._annotation__tool__mobile_1trm0_16{width:unset;flex-direction:column}._annotation__tool__icons_1trm0_20{display:flex;flex-direction:column;width:100%;align-items:center}._annotation__tool__icons_1trm0_20>*{display:flex;align-items:center;gap:12px}._annotation__tool__icons__selected_1trm0_31{background-color:rgba(var(--awi-color-common-themeColor, #6f29a9),.2);border-radius:50%;opacity:.9}._annotation__tool__icons__disabled_1trm0_36{opacity:.3}._annotation__tool__image_previewer_1trm0_39{display:flex;flex-direction:column;width:100%;height:100%}._annotation__tool__image_previewer_1trm0_39>div{width:100%;height:100%}._annotation__details_1trm0_49{flex:1;height:100%;position:relative}._annotation__details_container_1trm0_54{position:sticky;background-color:#fff;top:0;z-index:1}._annotation__details_1trm0_49 button{border:0}._annotation__details_1trm0_49 button:focus{outline:none}._annotation__details__current_1trm0_66{display:flex;width:100%;padding:12px 24px;justify-content:space-between;align-items:center;border:.1rem solid #ebeaea;font-size:12px;font-family:Open Sans,sans-serif;line-height:1.2}._annotation__details__current__actions_1trm0_77{width:12px;height:12px;border-radius:50%;position:relative;flex-shrink:0;display:flex;align-items:center}._annotation__details__current__accordion_1trm0_86{padding:12px;background-color:#f5f5f5}._annotation__details__current__accordion__button_1trm0_90{margin-left:auto;padding:4px 14px;border-radius:11.5px;width:max-content;color:var(--awi-color-common-themeColor, #6f29a9);border:1px solid var(--awi-color-common-themeColor, #6f29a9)!important;background-color:#fff;display:block;margin-top:8px}._annotation__details__current__accordion__button_1trm0_90:focus{outline:none}._annotation__details__current__icons_1trm0_104{display:flex;gap:8px}._annotation__details__current__icons__rotate_1trm0_108{transform:rotate(180deg)}._annotation__details__annotation_container_1trm0_111{display:flex;flex-direction:column;flex:1;overflow-y:scroll;max-height:71vh;padding-bottom:0;height:71vh;background-color:#fff}._request__info_1trm0_122{position:relative;display:flex;align-items:center;justify-content:center}._request__info__label_1trm0_128{display:flex;align-items:center;gap:5px}._request__info__modal_1trm0_133{position:absolute;top:30px;left:16px;background-color:#fff;box-shadow:2px 2px 8px #0003;width:max-content;min-width:400px;max-width:800px;padding:10px 20px;z-index:12}._request__info__modal__refbutton_1trm0_145{margin-left:auto;padding:4px 14px;border-radius:11.5px;width:max-content;color:var(--awi-color-common-themeColor, #6f29a9);border:1px solid var(--awi-color-common-themeColor, #6f29a9)!important;background-color:#fff;display:block;margin-top:16px}._request__info__modal__refbutton_1trm0_145:focus{outline:none}._reference__image__modal_1trm0_160{position:fixed;bottom:50%;left:50%;padding:32px;z-index:12;transform:translate(-50%)}._complete__session_1trm0_169{position:sticky;padding:5px;background-color:#f5f5f5;bottom:0;display:flex;align-items:center;gap:20px}._complete__session__button_1trm0_178{padding:4px 14px;border-radius:11.5px;width:max-content;color:#fff;border:1px solid var(--awi-color-common-themeColor, #6f29a9)!important;background-color:var(--awi-color-common-themeColor, #6f29a9);margin-left:8px;cursor:pointer}._complete__session__button_1trm0_178:focus{outline:none}._info__button_1trm0_192{position:absolute;bottom:10px;right:10px;background-color:#f5f5f5}._actions__modal_1trm0_199{position:absolute;z-index:2;width:180px;background:#fff;box-shadow:0 1px 3px #554f4f40;border-radius:4px;right:0;display:flex;justify-content:space-evenly;flex-direction:row;align-items:center}._actions__modal_1trm0_199 ul{padding:0;margin:0;list-style:none}._actions__modal_1trm0_199 ul li{padding:10px;cursor:pointer;font-size:16px;border-bottom:1px solid #d9d9d9}._actions__modal_1trm0_199 ul li:hover{background-color:#f5f5f5}._backdrop_1trm0_227{top:0;left:0;position:fixed;width:100vw;height:100vh;background-color:#0006;z-index:11}._backdrop__transparent_1trm0_236{background-color:#000;opacity:.5;z-index:2}._short__cut__modal_1trm0_242{z-index:15;background-color:#fff;position:absolute;width:max-content;right:25px;bottom:25px;border:1px solid black}._completeSessionWrapper_1trm0_252{display:flex;flex-direction:column;align-items:center;width:100%}._completeSessionLabel_1trm0_259{font-size:1.1rem;font-weight:600;color:#000;margin-bottom:.5rem}._completeSessionButtons_1trm0_266{gap:2rem;display:flex;justify-content:center;width:90%;align-items:center}._completeSessionButton_1trm0_266{padding:.5rem 1.5rem;font-size:1rem;font-weight:500;border:none;border-radius:6px;cursor:pointer;transition:background-color .3s ease,transform .2s ease}._completeSessionButton_1trm0_266:disabled{cursor:not-allowed;opacity:.6}._nextBatchButton_1trm0_290{background-color:var(--success);border:2px solid #34a073!important;width:100%}._nextBatchButton_1trm0_290:hover:not(:disabled){background-color:#34a073;transform:scale(1.02)}._closeSessionButton_1trm0_301{background-color:var(--danger);border:2px solid #c94444!important;width:100%}._closeSessionButton_1trm0_301:hover:not(:disabled){background-color:#c94444;transform:scale(1.02)}._pageNumber_1trm0_312:hover{color:var(--awi-color-common-themeColor, #6f29a9)}._fullscreen_toggle_container_1trm0_323{display:flex;justify-content:center;padding:10px;background:var(--awi-color-common-themeColor, #6f29a9);color:#fff;transition:background-color .3s ease,transform .2s ease;cursor:pointer}._fullscreen__toggle_1trm0_333:hover{background-color:var(--awi-color-common-themeColor, #6f29a9);transform:scale(1.05)}._fullscreen__toggle_1trm0_333:focus{outline:none;box-shadow:0 0 10px #008f1180}._fullscreen__toggle_1trm0_333:active{transform:scale(1)}._slider_1trm0_347{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}._slider_1trm0_347:before{position:absolute;content:"";height:12px;width:12px;left:1px;bottom:2px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input:checked+._slider_1trm0_347{background-color:var(--awi-color-common-themeColor, #6f29a9)}input:focus+._slider_1trm0_347{box-shadow:0 0 1px var(--awi-color-common-themeColor, #6f29a9)}input:checked+._slider_1trm0_347:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translate(26px)}._slider_1trm0_347._round_1trm0_386{border-radius:34px}._slider_1trm0_347._round_1trm0_386:before{border-radius:50%}._switch_1trm0_402{position:relative;display:inline-block;width:40px;height:15px}._switch_1trm0_402 input{opacity:0;width:0;height:0}._pageNumber_1trm0_312{font-size:1rem;margin:0 .5rem;cursor:pointer;transition:color .3s,font-weight .3s}._pageNumber_1trm0_312:hover,._requestName_1trm0_425{color:var(--awi-color-common-themeColor, #6f29a9)}._annotationScreenHeader_1trm0_429{font-size:1.5rem;font-style:normal;line-height:normal;letter-spacing:-1.28px;text-transform:capitalize}._resetAndNoAnnotationsDiv_1trm0_437{display:flex;height:93%;width:100%;justify-content:center;align-items:center;background:#fff}._pagination_1trm0_446{display:none;height:0;opacity:0;visibility:hidden;transition:height .3s ease,opacity .3s ease,visibility 0s ease .3s}._pagination_1trm0_446._open_1trm0_454{display:block;height:auto;opacity:1;visibility:visible;transition:height .3s ease,opacity .3s ease,visibility 0s ease 0s}._pagination__icon_1trm0_462{cursor:pointer;opacity:.7;transition:opacity .3s,transform .3s;display:flex;align-items:center;justify-content:center}._pagination__icon_1trm0_462:hover{opacity:1;transform:scale(1.1)}._pagination__icon_1trm0_462._disabled_1trm0_474{opacity:.3;pointer-events:none}._pagination__container_1trm0_479{display:flex;align-items:center;justify-content:space-between;gap:10px;height:120px}@media screen and (max-width: 768px){._pagination__container_1trm0_479{height:60px}}@media screen and (min-device-width: 768px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2){._pagination__container_1trm0_479{height:60px}}._pagination__icon__left_1trm0_498,._pagination__icon__right_1trm0_499{transform:none;width:max-content;margin:0}._pagination__images_1trm0_505{display:flex;flex-direction:row;align-items:center;gap:12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#ccc transparent;max-width:80%;justify-content:flex-start}._pagination__images_1trm0_505::-webkit-scrollbar{height:6px}._pagination__images_1trm0_505::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:3px}._pagination__images_1trm0_505>div{background-size:cover;background-repeat:no-repeat;aspect-ratio:1/1;min-width:100px;height:100px}._undoAnnotationCount_1trm0_532{position:absolute;top:0;right:0;background-color:red;color:#fff;border-radius:50%;width:18px;height:18px;display:flex;justify-content:center;align-items:center;font-size:.72rem;font-weight:700}._annotationIconDiv_1trm0_548{display:flex;align-items:center;justify-content:center;width:30px;height:30px;color:#000}._annotationIcon_1trm0_548{width:25px!important;height:25px!important;cursor:pointer!important}._annotationIconPartition_1trm0_563{display:flex;justify-content:center;align-items:center;padding-bottom:7px;padding-top:7px}._partitionLine_1trm0_571{width:80%;height:2px;background-color:#e4e0e6;margin:8px auto}@media screen and (max-width: 768px){._partitionLine_1trm0_571{display:none;width:2px!important;height:80%!important;margin:auto 8px!important}}@media screen and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2){._partitionLine_1trm0_571{display:none;width:2px!important;height:80%!important;margin:auto 8px!important}}._correctButton_1trm0_595{border:1px solid #5db772;border-radius:25px;background:rgba(var(--awi-color-common-themeSystemAcceptColor, #5db772),.1);display:flex;padding:2px 10px;justify-content:center;align-items:center;gap:10px}._rejectButton_1trm0_607{border-radius:25px;border:1px solid var(--awi-color-common-themeSecondaryButtonColor, #ff2540);background:#ff25401a;display:flex;padding:5px 17px;justify-content:center;align-items:center;gap:10px}._card_eye_1trm0_618{position:absolute;top:8px;right:8px;background-color:#00000080;border-radius:50%;border:none;width:28px;height:28px;display:flex;justify-content:center;align-items:center;cursor:pointer;z-index:1}._table_q0jcp_1{width:100%;padding:12px;overflow:auto;border-collapse:collapse}._table_q0jcp_1 th{position:relative;width:max-content;color:#000}._table_q0jcp_1 th:first-child{border-radius:4px 0 0 4px}._table_q0jcp_1 th:last-child{border-radius:0 4px 4px 0}._table__header_q0jcp_18{background-color:#f8f8f8;border-radius:4px;border:1.1px solid #bcbdbf;font-weight:600}._table__header__th_q0jcp_24{padding:12px;color:#181616;font-size:13px;line-height:1.17;font-weight:400;font-family:Open Sans,sans-serif;text-transform:uppercase;text-align:left}._table__header__th_q0jcp_24 span{display:block;width:inherit}._table__row_q0jcp_38{font-size:14px;border:1px solid #eaebee;background-color:#fff;color:#000}._table__row__row_selected_q0jcp_44{background:#eff7ff!important}._table__row__td_q0jcp_47{background-color:inherit;padding:12px;text-align:left;box-sizing:border-box;text-transform:capitalize}._table__row__td_q0jcp_47 span{display:block;overflow:hidden;word-break:break-word;overflow-wrap:break-word;max-width:max(300px,40vw);white-space:normal;width:max-content;min-width:none}._table__row_q0jcp_38:hover{background-color:#f2f2f2}._clickable_q0jcp_68{cursor:pointer;text-decoration:underline}._loadMoreButton_q0jcp_73{background-color:var(--awi-color-common-themeColor, #6f29a9);color:#fff}._loadMoreButtonDiv_q0jcp_78{display:flex;justify-content:center;margin-top:16px}._table_container_q0jcp_84{max-width:100%;max-height:70vh;overflow-y:auto;height:70vh;width:100%}._scrollable_table_q0jcp_92{width:100%;border-collapse:collapse!important}._scrollable_table_q0jcp_92 thead th{position:sticky;top:-.008vh;z-index:1;background-color:#fff}._pagination_container_q0jcp_104{display:flex;align-items:center;gap:8px;margin-top:16px;justify-content:space-between;margin-right:12px;margin-left:12px}._pagination_container_q0jcp_104 ._pagination_btn_q0jcp_113{padding:8px 12px;border:1px solid #ccc;background:#fff;color:#000;cursor:pointer;transition:background .3s,color .3s;border-radius:4px}._pagination_container_q0jcp_104 ._pagination_btn_q0jcp_113:hover{background:var(--awi-color-common-themeColor, #6f29a9);color:#fff}._pagination_container_q0jcp_104 ._pagination_btn_q0jcp_113:disabled{cursor:not-allowed;opacity:.5}._pagination_container_q0jcp_104 ._pagination_btn_q0jcp_113._active_q0jcp_130{background:var(--awi-color-common-themeColor, #6f29a9);color:#fff;font-weight:700}._pagination_container_q0jcp_104 ._pagination_dots_q0jcp_135{padding:0 8px;font-weight:700;color:#555}._pagination_container_q0jcp_104 ._pagination_input_q0jcp_140{display:flex;align-items:center;gap:4px}._pagination_container_q0jcp_104 ._pagination_input_q0jcp_140 input{width:80px;padding:6px;border:1px solid #ccc;border-radius:4px;text-align:center}._pagination_container_q0jcp_104 ._pagination_input_q0jcp_140 button{padding:6px 10px;border:none;background:var(--awi-color-common-themeColor, #6f29a9);color:#fff;cursor:pointer;border-radius:4px;transition:background .3s}._pagination_container_q0jcp_104 ._pagination_input_q0jcp_140 button:hover{background:var(--awi-color-common-themeColor, #6f29a9)}._nextPrevArrow_q0jcp_165{display:flex;width:48px;padding:10px 16px;justify-content:center;align-items:center;gap:8px;border-radius:100px;background:#2929291a}._nextPrevArrow_q0jcp_165:hover{background:#29292933}._pagination_left_q0jcp_179{display:flex;width:65px;padding:10px 16px;justify-content:center;align-items:center;gap:8px;border-radius:100px 0 0 100px;background:#2929291a;height:33.7px}._pagination_right_q0jcp_191{display:flex;width:56px;padding:10px 16px;justify-content:center;align-items:center;gap:8px;border-radius:0 100px 100px 0;background:#29292933;height:33.7px;font-size:13px}._pagination_loading_q0jcp_204{display:flex;padding:10px 16px;justify-content:center;align-items:center;gap:8px;border-radius:100px;background:#29292933;height:33.7px;font-size:13px}._canvas_145op_1{background-repeat:no-repeat;background-size:contain;margin:0 auto;display:flex;transform-origin:0 0}._canvasContainer_145op_9{width:max-content;height:max-content;position:relative;justify-content:center;display:flex;align-items:center}._canvasSubContainer_145op_18{overflow-y:hidden;overflow-x:hidden;position:relative}._message__container_u7nyp_1{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:16px;margin:auto;padding-top:100px;padding-bottom:45px;width:100%;height:100%;overflow:hidden}._message__container__icon_u7nyp_15{width:25%;object-fit:contain}._message__container__title_u7nyp_19{font-size:27px;font-weight:400;color:gray}._message__container__title__success_u7nyp_24{color:#48985f}._message__container__description_u7nyp_27{font-size:24px}._message__container__loading_u7nyp_31{animation:_pulse_u7nyp_1 1.6s ease-in-out infinite;width:80%}@keyframes _pulse_u7nyp_1{0%,80%{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.02)}}._tableBar_103oy_1{display:flex;align-items:center;justify-content:space-between;padding:.5rem;background-color:#fff;border:1px solid #909090;max-width:100%;overflow:auto;height:56px;min-height:56px}._tableBar_103oy_1 ._buttonGroup_103oy_13{display:flex;gap:10px;overflow:auto}._tableBar_103oy_1 ._buttonGroup_103oy_13 button{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:14px;border:0px;min-width:120px;border-radius:25px;cursor:pointer;transition:all .2s ease-in-out;width:auto}._tableBar_103oy_1 ._buttonGroup_103oy_13 button:hover{background-color:#29292933}._tableBar_103oy_1 ._buttonGroup_103oy_13 button ._btnIcon_103oy_34{width:15px;height:15px}._tableBar_103oy_1 ._buttonGroup_103oy_13 text{cursor:none}._tableBar_103oy_1 ._searchBar_103oy_41{width:250px;padding:10px;border:0px;outline:none;background-color:#2929291a;border-radius:25px;display:flex;justify-content:space-between;align-items:center}._tableBar_103oy_1 ._searchBar_103oy_41 ._searchInput_103oy_53{height:100%;background-color:transparent;border:transparent}._tableBar_103oy_1 ._searchBar_103oy_41 ._searchIcon_103oy_58{position:absolute;right:0}._removeBorder_103oy_63{border:0}._button_103oy_13{display:flex;justify-content:center;align-items:center;color:#000c}._isSelected_103oy_74{border-radius:100px!important;border:1px solid #6f29a9!important;background:#6f29a933!important}._isDisabled_103oy_80{background:#2626261a!important;cursor:not-allowed!important}._isActive_103oy_85{background:#6f29a91a!important}._isActive_103oy_85:hover{background:#6f29a94d!important}._isText_103oy_92{cursor:default!important}._isText_103oy_92:hover{background-color:#29292933!important}input:focus,select:focus,option:focus{outline:none}.badge{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;box-sizing:border-box;background-color:var(--c_background, var(--awi-color-badge-background))}.badge_l{height:var(--awi_font_l, var(--awi-size-text-l));padding:5.5px 3px;gap:10px;color:var(--c_text, var(--awi-color-badge-text));text-align:center;font-size:var(--awi_font_s, var(--awi-size-text-s));font-style:normal;font-weight:var(--awi_font_weight_s, var(--awi-weight-text-s));line-height:normal}.badge_m{height:var(--awi_font_m, var(--awi-size-text-m));padding:5.5px 3px;gap:10px;flex-shrink:0;color:var(--c_text, var(--awi-color-badge-text));text-align:center;font-size:var(--awi_font_s, var(--awi-size-text-s));font-style:normal;font-weight:var(--awi_font_weight_s, var(--awi-weight-text-s));line-height:normal}.badge_dot{width:8px;height:8px;min-width:8px;min-height:8px;padding:0}.button_group{display:flex;flex-direction:row;align-items:center}.button_group_button.active{outline-width:1px!important}.button_group_button.active:after{filter:opacity(.2)}.button_group_button{outline-width:0px!important;padding:0 1rem!important}.button_group_button,.button_group_button:after{border-radius:0}.button_group_button.first,.button_group_button.first:after{border-radius:500px 0 0 500px}.button_group_button.last,.button_group_button.last:after{border-radius:0 500px 500px 0}.button_group_button.first.last,.button_group_button.first.last:after{border-radius:500px}.compact_event_card{-webkit-user-select:none;user-select:none;position:relative;display:flex;justify-content:flex-start;align-items:center;background-color:var(--c_surface_primary);border:1px solid var(--c_surface_primary_border);z-index:1}.compact_event_card.focused{outline:2px solid var(--c_focused_border_color)}.compact_event_card>img{height:100%;width:40%;min-width:40%;max-width:40%;background-color:var(--c_surface_secondary);object-fit:contain}.compact_event_card .status_indicator{position:absolute;top:0;right:0;width:100%;height:100%;filter:opacity(.2);background-color:var(--c_data_color);z-index:-1}.compact_event_card .compact_event_card_content{display:flex;justify-content:space-between;align-items:flex-start;flex-direction:column;width:60%;height:100%}.compact_event_card .compact_event_card_content>header{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:2% 4%;border-bottom:1px solid var(--awi-color-surface-border-primary, var(--c_surface_primary_border))}.compact_event_card .compact_event_card_content>header>h6{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%}.compact_event_card .compact_event_card_details{display:flex;justify-content:space-between;align-items:center;width:100%;padding:2% 4%;flex-grow:1;flex-wrap:wrap}.compact_event_card .compact_event_card_details>h6{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%}.compact_event_card .compact_event_card_details>span{display:flex;flex-direction:column;justify-content:center;gap:2%;width:50%}.compact_event_card .compact_event_card_details>span>p{text-transform:uppercase;font-size:var(--awi-size-text-xs, var(--font_s));white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.compact_event_card .compact_event_card_details>span>h6{font-size:var(--awi-size-text-s, var(--font_s));white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:var(--awi-weight-text-m, 300);font-size:var(--awi-size-text-s, 14px);font-family:DM Mono,monospace}.compact_event_card .compact_event_card_content>footer{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;width:100%;padding:2% 4%;height:20%;color:var(--c_text_primary)}.compact_event_card .compact_event_card_content>footer>.status_indicator{z-index:2}.compact_event_card .compact_event_card_content>footer>p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-transform:uppercase;font-weight:var(--awi-weight-text-m, 300);font-size:var(--awi-size-text-s, 14px);font-family:DM Mono,monospace}.compact_event_card .compact_event_card_content>div{word-break:break-all;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.compact_event_card .compact_event_card_checkbox{position:absolute!important;top:.5rem;right:.5rem;z-index:10}.compact_event_card .compact_event_card_bookmark{position:absolute;top:.25rem;left:.25rem;z-index:10;height:1rem;width:1rem;max-height:1rem;max-width:1rem}.compact_event_card_new{-webkit-user-select:none;user-select:none;position:relative;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;background-color:var(--c_surface_primary);border:var(--c_focused_border_thickness) solid var(--c_surface_primary_border);z-index:1}.compact_event_card_new.focused{outline:2px solid var(--c_focused_border_color)}.compact_event_card_new>img{height:80%;min-height:80%;max-height:80%;width:40%;min-width:40%;max-width:40%;background-color:var(--c_surface_secondary);object-fit:contain}.compact_event_card_new .status_indicator{position:absolute;top:0;right:0;width:100%;height:100%;filter:opacity(.2);z-index:-1;background-color:var(--c_data_color)}.compact_event_card_new .compact_event_card_content{display:flex;flex-direction:column;justify-content:space-between;width:60%;height:80%}.compact_event_card_new .event_element{display:flex;justify-content:flex-start;align-items:center;gap:.5rem;width:100%;flex-grow:1;padding:2% 4%}.compact_event_card_new .event_element>.icon{min-width:1.5rem}.compact_event_card_new .severity_section{position:relative;border-right:.5rem solid var(--c_data_color)}.compact_event_card_new .compact_event_card_content>.event_element>p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-transform:uppercase;font-weight:var(--awi-weight-text-m, 300);font-size:var(--awi-size-text-s, 14px);font-family:Inter,sans-serif}.compact_event_card_new .compact_event_card_checkbox{position:absolute!important;top:.5rem;right:.5rem;z-index:10}.compact_event_card_new .compact_event_card_bookmark{position:absolute;top:.25rem;left:.25rem;z-index:10;height:1rem;width:1rem;max-height:1rem;max-width:1rem}.compact_event_card_new>.event_element{gap:.5rem;padding:1% 2%;border-bottom:1px solid var(--c_surface_primary_border)}.input_wrapper{display:flex;align-items:center;position:relative;border:none;box-sizing:border-box;gap:8px;border-radius:25px;background-color:var( --c_input_background, var(--awi-color-input-background) );--input_box_height_s: 2rem;--input_box_height_m: 2.5rem;--input_box_height_l: 3rem;--input_box_padding_s: 0 1rem;--input_box_padding_m: 0 1rem;--input_box_padding_l: 0 1.5rem}.input_wrapper.h_s{height:var(--input_box_height_s);padding:var(--input_box_padding_s)}.input_wrapper.h_m{height:var(--input_box_height_m);padding:var(--input_box_padding_m)}.input_wrapper.h_l{height:var(--input_box_height_l);padding:var(--input_box_padding_l)}.input_wrapper:focus-within{outline:1px solid var(--c_input_border)}.input_wrapper.icon_before{flex-direction:row}.input_wrapper.icon_after{flex-direction:row-reverse}.input{border:none;outline:none;background:transparent;text-overflow:ellipsis;overflow:hidden;min-width:0;flex-grow:1;font-size:var(--awi-size-text-s, 14px);color:var(--c_input_text, var(--awi-color-input-text))}.input::placeholder{font-size:var(--awi-size-text-s, 14px);color:var(--c_input_text, var(--awi-color-text-primary))}.icon-wrapper{display:flex;align-items:center;justify-content:center}.input_wrapper.disabled{background-color:var( --c_input_background_disabled, var(--awi-color-common-disabled) );cursor:no-drop}.input_wrapper.disabled>input{cursor:no-drop;color:var(--awi-color-text-disabled, #767676)!important}.single_select_container,.single_select_dropdown{--c_secondary: #292929;--c_text_primary: #292929;--select_height_s: 2rem;--select_height_m: 2.5rem;--select_height_l: 3rem;--select_padding_s: 0rem 1rem;--select_padding_m: 0rem 1rem;--select_padding_l: 0rem 1.5rem}.single_select_container{display:flex;justify-content:center;align-items:center;height:unset}.single_select_container.ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector{background-color:var( --c_trigger_background, var(--awi-color-select-trigger-background) )!important}.single_select_container.disabled .ant-select-selector{background-color:var( --c_disabled, var(--awi-color-common-disabled) )!important}.single_select_container.ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector>.ant-select-selection-item{font-weight:var(--font_weight_m, var(--awi-weight-text-m))!important}.single_select_container>.ant-select-selector{outline:1px solid var(--c_border, var(--awi-color-select-trigger-border))!important;border:none!important;border-radius:100px!important;box-shadow:none!important;color:var(--c_text_primary)!important;background-color:var( --c_trigger_background, var(--awi-color-select-trigger-background) )!important}.single_select_container.h_s>.ant-select-selector{height:var(--select_height_s)!important;padding:var(--select_padding_s)!important}.single_select_container.h_m>.ant-select-selector{height:var(--select_height_m)!important;padding:var(--select_padding_m)!important}.single_select_container.h_l>.ant-select-selector{height:var(--select_height_l)!important;padding:var(--select_padding_l)!important}.single_select_dropdown{z-index:10000;border-radius:20px;box-shadow:unset;padding:0}.single_select_dropdown{outline:1px solid var(--c_border, var(--awi-color-select-menu-border))!important}.single_select_dropdown .ant-select-item-option{display:flex!important;align-items:center!important;background-color:var( --c_menu_background, var(--awi-color-select-menu-background-default) )!important;color:var(--c_text_primary)!important;border-radius:0}.single_select_dropdown .ant-select-item-option-content{display:flex!important;align-items:center!important}.single_select_dropdown.h_s .ant-select-item-option{height:var(--select_height_s)!important;padding:var(--select_padding_s)!important}.single_select_dropdown.h_m .ant-select-item-option{height:var(--select_height_m)!important;padding:var(--select_padding_m)!important}.single_select_dropdown.h_l .ant-select-item-option{height:var(--select_height_l)!important;padding:var(--select_padding_l)!important}.single_select_dropdown .ant-select-item-option>.ant-select-item-option-content>img{max-height:1.5rem}.single_select_dropdown .ant-select-item-option{padding:.3rem .5rem}.single_select_dropdown.items_center .ant-select-item-option-content{justify-content:center!important}.single_select_dropdown.items_start .ant-select-item-option-content{justify-content:flex-start!important}.single_select_dropdown.items_end .ant-select-item-option-content{justify-content:flex-end!important}.single_select_dropdown .ant-select-item-option-selected{background-color:var( --c_menu_active, var(--awi-color-select-menu-background-active) )!important}.single_select_dropdown .ant-select-item-option-active:not(.ant-select-item-option-selected){background-color:var( --c_menu_hover, var(--awi-color-select-menu-background-hover) )!important}.ant-select .ant-select-arrow{padding-right:.75rem;color:var(--c_secondary)}.ant-select-selection-placeholder{font-size:var(--font_s, var(--awi-size-text-s))!important;color:var(--c_text_primary)!important}.single_select_container.items_center .ant-select-selection-item{display:flex!important;align-items:center!important;justify-content:center!important}.single_select_container.items_start .ant-select-selection-item{display:flex!important;align-items:center!important;justify-content:flex-start!important}.single_select_container.items_end .ant-select-selection-item{display:flex!important;align-items:center!important;justify-content:flex-end!important}.single_select_container .ant-select-selection-item{font-size:var(--font_s, var(--awi-size-text-s))!important;color:var(--c_text_primary)!important;background-color:unset!important}.single_select_container .ant-select-selection-item>img{max-height:1.5rem}.contact_input{display:flex;flex-direction:row;align-items:center;gap:.5rem}.ant-picker.ant-picker-range,.ant-picker-dropdown{--c_text_primary: #292929;--c_text_secondary: rgb(110, 110, 110)}.date-range-picker.h_s{height:2rem}.date-range-picker.h_m{height:2.5rem}.date-range-picker.h_l{height:3rem}.ant-picker.ant-picker-range{outline:1px solid var(--c_trigger_border, var(--awi-color-daterangepicker-trigger-border))!important;border:none!important;border-radius:100px!important;box-shadow:none!important;color:var(--c_text_primary)!important;background-color:var( --c_trigger_background, var(--awi-color-daterangepicker-trigger-background) )!important;padding:0 .75rem!important}.ant-picker-cell-range-start>.ant-picker-cell-inner{border-radius:500px 0 0 500px!important;background-color:var( --c_highlight, var(--awi-color-daterangepicker-picker-highlight) )!important}.ant-picker-cell-range-end>.ant-picker-cell-inner{border-radius:0 500px 500px 0!important;background-color:var( --c_highlight, var(--awi-color-daterangepicker-picker-highlight) )!important}.ant-picker-cell-range-end.ant-picker-cell-range-start>.ant-picker-cell-inner{border-radius:500px!important;background-color:var( --c_highlight, var(--awi-color-daterangepicker-picker-highlight) )!important}.ant-picker-cell-today :before{border:1px solid var(--c_highlight, var(--awi-color-daterangepicker-picker-highlight))!important}.ant-picker-cell.ant-picker-cell-range-start.ant-picker-cell-in-view:before{background-color:var( --c_date_range_fill, var(--awi-color-daterangepicker-picker-range) )!important}.ant-picker-cell.ant-picker-cell-range-end.ant-picker-cell-in-view:before{background-color:var( --c_date_range_fill, var(--awi-color-daterangepicker-picker-range) )!important}.ant-picker-cell.ant-picker-cell-in-range.ant-picker-cell-in-view:before{background-color:var( --c_date_range_fill, var(--awi-color-daterangepicker-picker-range) )!important}.ant-picker-time-panel-cell-selected>.ant-picker-time-panel-cell-inner{background-color:var( --c_date_range_fill, var(--awi-color-daterangepicker-picker-range) )!important}.ant-picker-footer>.ant-picker-ranges>.ant-picker-ok>button{background-color:var( --c_highlight, var(--awi-color-daterangepicker-picker-highlight) )!important;color:var(--c_text_primary)!important;border-radius:500px!important}.ant-picker-header>.ant-picker-header-view>button :hover{color:var(--c_text_secondary)!important}.ant-picker-active-bar{background:var( --c_highlight, var(--awi-color-daterangepicker-picker-highlight) )!important}.ant-picker-ranges,.ant-picker-header{border-radius:0!important}.ant-picker-dropdown-range{z-index:10000;border-radius:0!important;border:1px solid var(--c_surface_border, var(--awi-color-daterangepicker-picker-border));padding:0}.ant-picker-range-wrapper{border-radius:0!important}.ant-picker-range-arrow{border:unset!important;border-color:unset!important}.ant-picker-panel-container{border-radius:0!important;background-color:var( --c_surface, var(--awi-color-daterangepicker-picker-background) )!important;box-shadow:unset!important}.ant-picker-panel-layout{color:var(--c_text_primary)!important}.ant-picker-body{border-color:var( --c_surface_border, var(--awi-color-daterangepicker-picker-border) )!important}.ant-picker-content>thead>tr>th,.ant-picker-cell-inner,.ant-picker-time-panel-cell-inner,.ant-picker-header-view,.ant-picker-header-super-prev-btn,.ant-picker-header-prev-btn,.ant-picker-header-next-btn,.ant-picker-header-super-next-btn{color:var(--c_text_primary)!important}.ant-picker-suffix,.ant-picker-clear{color:var(--c_text_secondary)!important}.event_preview_carousel_container{position:relative!important;display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto;width:100%;height:100%;--c_surface_primary_border: #eaebee;--c_surface_secondary: #f3f5f7;--c_surface_primary: #fff;--font_s: 12px;--c_text_primary: #292929;--c_text_secondary: #474747}.event_preview_carousel_container>header{height:3rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--c_surface_primary_border);padding:2% 4%}.event_preview_carousel_container>header>p{font-size:var(--font_s);color:var(--c_text_secondary)}.event_preview_carousel_container .text_s{font-size:12px}.event_preview_carousel_container .carousel_card{min-height:80%;flex-grow:1;overflow-y:auto}.event_preview_carousel_container .carousel_card_images{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--c_surface_primary_border)}.event_preview_carousel_container .carousel_card_images>span:nth-child(odd){border-right:1px solid var(--c_surface_primary_border)}.event_preview_carousel_container .carousel_card_images>span{width:50%;height:10rem;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:var(--font_s)}.event_preview_carousel_container .carousel_card_images>span>img{flex-grow:1;width:100%;height:7rem;object-fit:contain;background-color:var(--c_surface_secondary)}.event_preview_carousel_container .carousel_info_container{display:flex;flex-direction:column;justify-content:center;padding:1.5% 4%;border-bottom:1px solid var(--c_surface_primary_border)}.event_preview_carousel_container .carousel_card_images>span>p{height:2rem;display:flex;justify-content:flex-start;align-items:center}.event_preview_carousel_container .carousel_info_container>p{text-transform:uppercase}.event_preview_carousel_container .object_attributes_container{display:flex;flex-direction:column;padding:2% 4%;gap:.25rem;flex-grow:1}.event_preview_carousel_container .event_preview_carousel_attribute{display:flex;justify-content:space-between;align-items:center;width:100%}.event_preview_carousel_container .event_preview_carousel_attribute>p{max-width:50%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.event_preview_carousel_container .event_preview_carousel_attribute>h6{max-width:50%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.event_preview_carousel_container .event_preview_carousel_footer{width:100%;display:flex;justify-content:center;align-items:center;padding:.5rem;border-top:1px solid var(--c_surface_primary_border);gap:.5rem;height:3rem}.event_preview_window{--c_surface_primary_border: #eaebee;--c_surface_secondary: #f3f5f7;--c_surface_primary: #fff;--font_s: 12px;--c_text_primary: #292929;--c_text_secondary: #474747}.event_preview_window{background-color:var(--c_surface_primary);border:1px solid var(--c_surface_primary_border);border-bottom:unset;display:flex;flex-direction:column}.event_preview_window.empty{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.25rem;padding:1rem}.event_preview_window .event_preview_dialog_header{display:flex;justify-content:flex-start;align-items:center;height:3rem;gap:1rem;border-bottom:1px solid var(--c_surface_primary_border)}.event_preview_window .event_preview_dialog_header_icon{width:3rem;height:100%;background-color:var(--c_surface_primary);border-right:1px solid var(--c_surface_primary_border);font-size:var(--font_s);overflow:hidden}.event_preview_window .event_preview_dialog_header_icon>img{height:100%;width:100%}.event_preview_window .event_preview_dialog_header_content{height:3rem;display:flex;justify-content:flex-start;align-items:center;gap:.25rem;width:69%}.event_preview_window .status_indicator{position:absolute;top:0;right:0;width:100%;height:100%;filter:opacity(.2);z-index:-1}.event_preview_window .event_preview_window_header_container{width:100%;display:flex;justify-content:flex-end;align-items:center;height:3rem;min-height:3rem;border-bottom:1px solid var(--c_surface_primary_border)}.event_preview_window .event_preview_dialog_header_actions{display:flex;justify-content:flex-end;padding:0 1rem}.event_preview_window .event_preview_content_container{display:flex;width:100%;height:calc(100% - 3rem);flex-grow:1}.event_preview_window .event_preview_image_container{position:relative;display:flex;flex-direction:column;width:50%;min-height:100%;max-height:100%;height:100%}.event_preview_window .event_preview_image_container>img{width:100%;flex-grow:1;object-fit:contain;background-color:var(--c_surface_secondary);height:88%;min-height:88%}.event_preview_window .event_preview_image_footer{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--c_surface_primary_border);height:12%;max-height:12%}.event_preview_window .event_preview_image_footer_infoitem{display:flex;flex-direction:column;justify-content:space-around;height:100%;border-right:1px solid var(--c_surface_primary_border);padding:.25rem .5rem;color:var(--c_text_primary)}.event_preview_window .event_preview_image_footer_infoitem>p{text-transform:uppercase;font-size:var(--font_s)}.event_preview_window .event_preview_image_footer_infoitem>h5{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:var(--awi-weight-text-m, 300);font-size:var(--awi-size-text-m, 16px);font-family:DM Mono,monospace}.event_preview_window .event_preview_image_footer_infoitem:nth-child(1){width:20%;position:relative;z-index:1}.event_preview_window .event_preview_image_footer_infoitem:nth-child(1)>h5{text-transform:capitalize}.event_preview_window .event_preview_image_footer_infoitem:nth-child(1)>.hydra_status_indicator{z-index:2}.event_preview_window .event_preview_image_footer_infoitem:nth-child(2){width:40%}.event_preview_window .event_preview_image_footer_infoitem:nth-child(3){width:20%}.event_preview_window .event_preview_image_footer_infoitem:nth-child(4){width:20%;border-right:unset}.event_preview_window .event_preview_content{flex-grow:1;height:100%;width:25%;background-color:var(--c_surface_primary);border-bottom:1px solid var(--c_surface_primary_border);border-right:1px solid var(--c_surface_primary_border);border-left:1px solid var(--c_surface_primary_border)}.event_preview_window .event_preview_other_events_container{width:25%;display:flex;flex-direction:column;height:100%;border-bottom:1px solid var(--c_surface_primary_border)}.event_preview_window .event_preview_other_events{display:flex;flex-direction:column;overflow-y:auto;flex-grow:1}.event_preview_window .event_preview_other_events>div{width:100%}.event_preview_window .event_preview_other_events_container>header{width:100%;height:3rem;min-height:3rem;max-height:3rem;display:flex;justify-content:space-between;padding:0 2%;align-items:center;border-bottom:1px solid var(--c_surface_primary_border);background-color:var(--c_surface_primary)}.event_preview_window .event_preview_other_events_container>header>p{font-size:var(--font_s);color:var(--c_text_secondary)}.event_preview_window .event_preview_other_events_container>footer{height:3rem;padding:.5rem;gap:.5rem;display:flex;align-items:center}.event_preview_window .event_footer_color_legend_container{display:flex;justify-content:flex-start;align-items:center;padding:0 1rem 0 0}.event_preview_window .event_footer_color_legend{display:flex;justify-content:center;align-items:center;gap:.25rem;padding:0 .5rem}.event_preview_window .event_footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;width:100%}.event_preview_window .footer_action_container{display:flex;gap:1rem}.event_preview_window .load_more_container{display:flex;justify-content:center;width:100%}.event_preview_window .share_alerts_dialog{display:flex;flex-direction:column;width:100%;gap:1rem}.event_preview_window .share_alerts_dialog>input{width:100%}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.x_axis_label,.y_axis_label{font-weight:var(--awi-weight-text-s, 300);font-size:var(--awi-size-text-s, 14px);font-family:DM Mono,monospace!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0}.y_axis_label{text-align:end;align-self:center;padding-right:.5rem}.x_axis_label{text-align:center;padding-top:.25rem}.heatmap{background-color:var(--awi-color-heatmap-background);outline:1px solid var(--c_border, var(--awi-color-heatmap-border));cursor:default}.heatmap>table{border-spacing:1px;width:100%;height:100%;min-width:100%;min-height:100%;max-width:100%;max-height:100%}.heatmap>table>tr{display:flex}.heatmap_cell{outline:1px solid var(--c_cell_border, var(--awi-color-heatmap-cell-border));padding:0}.heatmap_cell_inner{width:100%;height:100%;display:flex;justify-content:center;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--awi-size-text-xs, 12px);font-family:DM Mono,monospace!important}.heatmap_legend_container{padding:.5rem;display:flex;justify-content:center;gap:.5rem;font-size:var(--awi-size-text-xs, 10px);font-family:DM Mono,monospace!important}.heatmap_legend{width:50%;height:100%;outline:1px solid var(--c_cell_border, var(--awi-color-heatmap-cell-border))}.multi_select_container,.multi_select_dropdown{--c_text_primary: #292929;--c_secondary: #292929;--select_height_s: 2rem;--select_height_m: 2.5rem;--select_height_l: 3rem;--select_padding_s: 0rem 1rem;--select_padding_m: 0rem 1rem;--select_padding_l: 0rem 1.5rem}.multi_select_container{display:flex;justify-content:center;align-items:center;height:unset}.multi_select_container .ant-select-selector{background-color:var( --c_trigger_background, var(--awi-color-multiselect-trigger-background) )!important}.multi_select_container.ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector>.ant-select-selection-item{font-weight:var(--awi-weight-text-m, 500)!important}.multi_select_container>.ant-select-selector{outline:1px solid var(--c_trigger_border, var(--awi-color-multiselect-trigger-border))!important;border:none!important;border-radius:100px!important;box-shadow:none!important;color:var(--c_text_primary, var(--awi-color-text-primary))!important;background-color:var( --c_trigger_background, var(--awi-color-multiselect-trigger-background) )!important;width:100%!important;height:40px!important;padding:0 .75rem!important}.ant-select-selection-overflow-item>.ant-select-selection-item{background-color:var( --c_trigger_highlight, var(--awi-color-multiselect-trigger-highlight) )!important;border-radius:500px!important}.ant-select-selection-item{border-radius:500px!important}.multi_select_container.h_s>.ant-select-selector{height:var(--select_height_s)!important;padding:var(--select_padding_s)!important}.multi_select_container.h_m>.ant-select-selector{height:var(--select_height_m)!important;padding:var(--select_padding_m)!important}.multi_select_container.h_l>.ant-select-selector{height:var(--select_height_l)!important;padding:var(--select_padding_l)!important}.ant-select-selection-wrap{height:100%}.ant-select-selection-item{font-size:var(--font_s)!important;color:var(--c_text_primary, var(--awi-color-text-primary))!important}.multi_select_dropdown{z-index:10000;border-radius:20px;box-shadow:unset;padding:0}.multi_select_dropdown{outline:1px solid var(--c_menu_border, var(--awi-color-multiselect-menu-border))}.multi_select_dropdown .ant-select-item-option{align-items:center;padding:1rem;background-color:var( --c_menu_background, var(--awi-color-multiselect-menu-background-default) )!important;color:var(--c_text_primary, var(--awi-color-text-primary))!important;border-radius:0}.multi_select_dropdown .ant-select-item-option-selected{align-items:center;padding:1rem;background-color:var( --c_menu_active, var(--awi-color-multiselect-menu-background-active) )!important}.multi_select_dropdown .ant-select-item-option-active:not(.ant-select-item-option-selected){align-items:center;padding:1rem;background-color:var( --c_menu_hover, var(--awi-color-multiselect-menu-background-hover) )!important}.ant-select .ant-select-arrow{padding-right:.75rem;color:var(--c_secondary, var(--awi-color-multiselect-icon))}.multi_select_dropdown .ant-select-item-option-state{color:var(--c_secondary, var(--awi-color-multiselect-icon))!important}.ant-select-selection-placeholder{font-size:var(--font_s)!important;color:var(--c_text_primary, var(--awi-color-text-primary))!important}.ant-select-selection-item{font-size:var(--font_s)!important;color:var(--c_text_primary, var(--awi-color-text-primary))!important;background-color:unset!important}.multi_select_dropdown.h_s .ant-select-item-option{height:var(--select_height_s)!important;padding:var(--select_padding_s)!important}.multi_select_dropdown.h_m .ant-select-item-option{height:var(--select_height_m)!important;padding:var(--select_padding_m)!important}.multi_select_dropdown.h_l .ant-select-item-option{height:var(--select_height_l)!important;padding:var(--select_padding_l)!important}.multi_select_dropdown .ant-select-item-option{padding:.3rem .5rem}.awi_login_page{position:relative;display:flex;align-items:center;justify-content:space-between;gap:0;overflow:hidden}.awiros_logo{position:absolute;top:1rem;left:1rem}.login_page_banner.has_banner{width:65%;min-width:65%;max-width:65%;height:100%;min-height:100%;max-height:100%}.login_page_banner.no_banner{display:none}.login_banner_image{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%;object-fit:cover}.login_header_image{height:3rem;object-fit:contain;position:absolute;top:2rem}.login_footer_image{height:2rem;object-fit:contain;position:absolute;bottom:2rem}.login_page_main{position:relative;width:35%;min-width:35%;max-width:35%;height:100%;min-height:100%;max-height:100%;display:flex;flex-direction:column;gap:.5rem;align-items:center;justify-content:center;overflow-y:auto;overflow-x:hidden}.login_page_main.no_banner{width:100%;min-width:100%;max-width:100%}.login_form{width:80%;min-width:80%;max-width:80%;display:flex;flex-direction:column;gap:1rem;align-items:center;justify-content:center}.login_form_header{width:100%;display:flex;flex-direction:column;gap:.25rem;justify-content:center}.login_form_body{width:100%;display:flex;flex-direction:column;gap:.5rem}.login_form_body p{font-weight:var(--awi-weight-text-s, 300);font-size:var(--awi-size-text-xs)}.login_form_footer{width:100%;display:flex;flex-direction:column;gap:.5rem;justify-content:center}.login_form_footer>p{font-weight:var(--awi-weight-text-s, 300);font-size:var(--awi-size-text-xs);text-align:start}.login_form_header>h2{font-weight:var(--awi-weight-text-m, 400);font-size:var(--awi-size-text-xl);text-align:start}.login_form_header>p{font-weight:var(--awi-weight-text-s, 300);font-size:var(--awi-size-text-xs);text-align:start}.login_form_element{width:100%;display:flex;flex-direction:column;gap:.25rem}.login_form_element>.form_error_message{font-weight:var(--awi-weight-text-s, 300);font-size:var(--awi-size-text-xs);color:var(--awi-color-common-error);text-align:start}.form_item_required{color:var(--awi-color-common-error);background-color:unset}.password_input{position:relative}.password_input>input{width:100%}.password_input>.icon{position:absolute;right:.5rem;top:50%;transform:translateY(-50%)}@media screen and (max-width: 768px){.login_page_banner{display:none}.login_page_main{width:100%;min-width:100%;max-width:100%}}.leaflet-div-icon{background:transparent!important;border:none!important;box-shadow:none!important}:not(.card_popup)>.leaflet-popup-content-wrapper,:not(.card_popup)>.leaflet-popup-tip-container>.leaflet-popup-tip{border-radius:0;border:0;box-shadow:none;background:none}.card_popup.leaflet-popup{z-index:1000}.count_popup.leaflet-popup{z-index:900}.card_popup>.leaflet-popup-content-wrapper,.card_popup>.leaflet-popup-tip-container>.leaflet-popup-tip{border-radius:0!important;border:1px solid var(--awi-color-surface-border-primary, #e0e0e0);box-shadow:none!important;background:var(--awi-color-surface-fill-primary, #fff);color:var(--awi-color-text-primary, #292929)}.count_popup>.leaflet-popup-content-wrapper,.count_popup>.leaflet-popup-tip-container>.leaflet-popup-tip{border-radius:0;border:0;box-shadow:none;background:none}.count_popup>.leaflet-popup-content-wrapper>.leaflet-popup-content{width:1.2rem;min-width:1.2rem;max-width:1.2rem;border-radius:500px!important;height:1.2rem;min-height:1.2rem;max-height:1.2rem;text-align:center;align-self:center;line-height:1.2rem;color:var(--awi-color-text-tertiary, "#fff");font-size:var(--awi-text-size-xs, 10px);background-color:var(--awi-color-common-info, "red");margin-left:1rem;margin-bottom:.25rem}.leaflet-popup-content{margin:0}.map_view_container{position:relative;border:1px solid var(--awi-color-surface-border-primary, #e0e0e0)}.map_view_nav_container{position:absolute;padding:.5rem 1rem;background-color:var(--awi-color-mapview-nav-background, #ffffff);left:0rem;bottom:0rem;z-index:1000;display:flex;gap:.5rem;align-items:center;justify-content:flex-start}.ant-modal-content{padding:0!important;border-radius:0!important;border:1px solid #eaebee;box-shadow:unset!important}.ant-modal-close{top:.25rem!important;right:.25rem!important;border-radius:500px!important}.ant-modal-close .anticon{color:#292929!important}.paginator{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:.5rem}.paginator_current_page{display:flex;justify-content:flex-start;align-items:center;gap:.25rem}.paginator_arrows{display:flex;justify-content:flex-end;align-items:center;gap:.25rem}.paginator>.full_pagination{width:100%;display:flex;justify-content:space-between}.ant-popover .ant-popover-inner{border-radius:0!important;box-shadow:none!important;background-color:var( --c_background_color, var(--awi-color-popover-background) )!important;outline:1px solid var(--c_border_color, var(--awi-color-popover-border))!important}.ant-popover .ant-popover-arrow:after{border-radius:0!important;box-shadow:none!important;background-color:var( --c_background_color, var(--awi-color-popover-background) )!important;outline:1px solid var(--c_border_color, var(--awi-color-popover-border))!important}.awi_auto_refresh{display:flex;align-items:center}.awi_auto_refresh>button:after{background-color:var( --c_refresh_bg, var(--awi-color-refresh-background) )!important;filter:none!important}.awi_auto_refresh>button{outline:1px solid var(--c_refresh_border, var(--awi-color-refresh-border))!important}.awi_auto_refresh_select>.ant-select-selector{border-radius:500px 0 0 500px!important;margin-left:.5rem}.awi_auto_refresh_button{margin-left:1px;border-radius:0 500px 500px 0!important}.awi_auto_refresh_button:after{border-radius:0 500px 500px 0!important}.awi_sidebar{transition:all .2s ease-in-out;position:sticky;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:space-between;--sidebar_width: 16rem;--sidebar_collapsed_width: 5.5rem;--c_text: #292929;--c_surface: #fff;--c_surface_border: #f3f5f7;color:var(--c_text, var(--awi-color-sidebar-text));background-color:var(--c_surface, var(--awi-color-sidebar-background));border:1px solid var(--c_surface_border, var(--awi-color-sidebar-border))}.awi_sidebar.loading{display:flex;justify-content:center;align-items:center}.awi_sidebar.open{min-width:var(--sidebar_width);max-width:var(--sidebar_width);width:var(--sidebar_width)}.awi_sidebar.closed{min-width:var(--sidebar_collapsed_width);max-width:var(--sidebar_collapsed_width);width:var(--sidebar_collapsed_width)}.awi_sidebar_header{transition:all .2s ease-in-out;--sidebar_header_height: 5.5rem;--awiros_logo_height: 3rem;display:flex;justify-content:space-between;align-items:center;width:100%;height:var(--sidebar_header_height);min-height:var(--sidebar_header_height);max-height:var(--sidebar_header_height);padding:1.25rem;box-sizing:border-box}.closed .awi_sidebar_header{--sidebar_header_height: 8.5rem;flex-direction:column;justify-content:flex-start;gap:1rem}.awi_sidebar_logo{--logo_aspect_ratio: 2.6;height:var(--awiros_logo_height);max-height:var(--awiros_logo_height);min-height:var(--awiros_logo_height);width:var(--logo_aspect_ratio) * var(--awiros_logo_height);min-width:var(--logo_aspect_ratio) * var(--awiros_logo_height);cursor:pointer}.awi_sidebar_close_icon{cursor:pointer!important;align-self:flex-end;margin-bottom:.15rem}.awi_sidebar_close_icon.closed{align-self:center}.awi_sidebar_body{display:flex;flex-direction:column;padding:1.25rem;gap:2px;border-bottom:1px solid var(--c_surface_border)}.awi_sidebar_body.closed{padding:0 1.25rem 1.25rem}.awi_sidebar_nav_container{position:relative;width:100%;display:flex;flex-direction:column;align-items:center}.awi_sidebar_content_dynamic{flex-grow:1;padding:1.25rem;font-size:var(--hydra_font_s);color:var(--hydra_c_text_primary);display:flex;flex-direction:column;align-items:center;gap:1rem;overflow-y:auto}.awi_sidebar_badge{position:absolute;right:1.25rem;z-index:2;top:.75rem!important}.awi_sidebar_badge.closed{right:-.5rem;z-index:100}.awi_sidebar_footer{position:relative;display:flex;cursor:pointer;padding:1.25rem;height:5rem;font-size:var(--hydra_font_s);color:var(--hydra_c_text_primary);border-top:1px solid var(--c_surface_border)}.awi_sidebar_footer.active:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--awi-color-sidebar-footer-background, #ffcc00);opacity:.1}.awi_sidebar_footer img{height:2.5rem;width:2.5rem;border-radius:500px}.awi_sidebar_footer.active img{border:2px solid var(--awi-color-sidebar-footer-background, #ffcc00)}.awi_sidebar_footer_content{display:flex;flex-direction:column;justify-content:center;margin-left:1rem;gap:.25rem;width:calc(100% - 3.75rem)}.awi_sidebar_footer_content .title{color:var(--awi-color-text-secondary, #767676);font-size:var(--awi-size-text-xs, 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.awi_sidebar_footer_content .description{color:var(--awi-color-text-primary, #292929);font-size:var(--awi-size-text-s, 14px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.awi_sidebar_footer_content.closed{width:0;display:none!important}.awi_sidebar_skeleton{display:flex;flex-direction:column;height:100%;width:100%}.awi_sidebar_skeleton_header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem;height:5.5rem}.awi_sidebar_skeleton_logo{width:8rem;height:3rem;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}.awi_sidebar_skeleton_toggle{width:2rem;height:2rem;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}.awi_sidebar_skeleton_body,.awi_sidebar_skeleton_dynamic{padding:1.25rem;display:flex;flex-direction:column;gap:.75rem}.awi_sidebar_skeleton_item{display:flex;align-items:center;gap:.75rem;width:100%}.awi_sidebar_skeleton_icon{width:2rem;height:2rem;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite;flex-shrink:0}.awi_sidebar_skeleton_text{height:1rem;width:80%;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}.awi_sidebar_skeleton_footer{margin-top:auto;padding:1.25rem;display:flex;align-items:center;gap:1rem;border-top:1px solid var(--c_surface_border)}.awi_sidebar_skeleton_avatar{width:2.5rem;height:2.5rem;border-radius:50%;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite;flex-shrink:0}.awi_sidebar_skeleton_footer_content{display:flex;flex-direction:column;gap:.5rem;width:100%}.awi_sidebar_skeleton_title{height:.75rem;width:60%;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}.awi_sidebar_skeleton_subtitle{height:.75rem;width:40%;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}@keyframes skeleton-loading{0%{background-position:200% 0}to{background-position:-200% 0}}.awi_sidebar.closed .awi_sidebar_skeleton_logo{width:3rem}.awi_sidebar.closed .awi_sidebar_skeleton_text,.awi_sidebar.closed .awi_sidebar_skeleton_footer_content{display:none}.awi_sidebar.closed .awi_sidebar_skeleton_item{justify-content:center}.ant-table-thead .ant-table-cell{background:var( --c_header_bg, var(--awi-color-table-header-background) )!important;padding:.5rem!important;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.awi_table.xs .ant-table-thead>tr>th{min-height:1.5rem!important;height:1.5rem!important;max-height:1.5rem!important}.awi_table.s .ant-table-thead>tr>th{min-height:2rem!important;height:2rem!important;max-height:2rem!important}.awi_table.m .ant-table-thead>tr>th{min-height:2.5rem!important;height:2.5rem!important;max-height:2.5rem!important}.awi_table.l .ant-table-thead>tr>th{min-height:3rem!important;height:3rem!important;max-height:3rem!important}.awi_table.xl .ant-table-thead>tr>th{min-height:3.5rem!important;height:3.5rem!important;max-height:3.5rem!important}.ant-table-title{border-radius:0!important;background:var( --c_title_bg, var(--awi-color-table-title-background) )!important}.ant-table-footer{border-radius:0!important;background:var( --c_footer_bg, var(--awi-color-table-footer-background) )!important}.ant-checkbox-inner{border-radius:0!important}.ant-checkbox:hover .ant-checkbox-inner{border-color:var(--awi-color-table-body-checkbox)!important}.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--awi-color-table-body-checkbox)!important;border-color:var(--awi-color-table-body-checkbox)!important}.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--awi-color-surface-fill-primary)!important}.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--awi-color-table-body-checkbox)!important}.ant-table-wrapper .ant-table-tbody .ant-table-row>.ant-table-cell{background-color:var( --c_body_bg, var(--awi-color-table-body-background) )!important;padding:.5rem}.ant-table-wrapper .ant-table-tbody .ant-table-row.ant-table-row-selected>.ant-table-cell{background-color:var(--awi-color-table-body-selected)!important}.ant-table-wrapper .ant-table-tbody .ant-table-row.ant-table-row-selected>.ant-table-cell.ant-table-cell-row-hover{background-color:var(--awi-color-table-body-selectedhover)!important}.ant-table-wrapper .ant-table-tbody .ant-table-row>.ant-table-cell.ant-table-cell-row-hover{background-color:var(--awi-color-table-body-hover)!important}.ant-notification-notice-wrapper{border-radius:unset!important;margin-bottom:unset!important;margin-inline-start:unset!important;background:unset!important;box-shadow:unset!important}.toast_wrapper{background-color:fff;padding:unset!important;width:20rem!important;max-width:20rem!important;overflow:unset!important;line-height:unset!important;word-wrap:unset!important}.toast{position:relative;display:flex;flex-direction:row;min-height:3rem;z-index:10}.toast>.background{position:absolute;width:100%;height:100%;z-index:2}.toast>.icon_container{width:3rem;min-width:3rem;max-width:3rem;height:100%!important;min-height:3rem!important;max-height:100%!important;display:flex;justify-content:center;align-items:center;z-index:10}.toast>.message_container{flex-grow:1;width:auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;padding:.5rem 2rem .5rem .5rem;z-index:10}.toast>.message_container.start{justify-content:flex-start}.toast>.message_container.center{justify-content:center}.toast_close_button{position:absolute;top:.4rem;right:.25rem;height:unset!important;z-index:3;z-index:10}
2
- /*$vite$:1*/`,document.head.appendChild(Ep);function Sp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=Sp(O),Mp=Sp(x0),Hp={common:{primary:"#292929",secondary:"#767676",highlight:"#FFCC00",success:"#5DB772",warning:"#FFCC00",error:"#FF2540",info:"#0076B2",disabled:"#DEDEDE",themeColor:"#6F29A9",themeRed:"#ff0000",themeReject:"#ff0000",themeSecondaryButtonColor:"#FF2540",themeSystemAcceptColor:"rgb(93, 183, 114)"},text:{primary:"#292929",secondary:"#767676",tertiary:"#FFFFFF",disabled:"#767676"},background:{primary:"#F3F5F7"},surface:{fill:{primary:"#FFFFFF",secondary:"#F3F5F7",tertiary:"#EAEAEA"},border:{primary:"#EAEBEE",secondary:"#BCBDBF",tertiary:"#909090"}},button:{border:"#ffcc00",background:"#ffcc00",text:"#292929"},badge:{background:"#ff2540",text:"#fff"},input:{border:"#292929",background:"#2929291a",text:"#292929"},multiselect:{icon:"#292929",trigger:{border:"#29292955",background:"#29292929",highlight:"#29292955"},menu:{border:"#29292955",background:{default:"#FFFFFF",hover:"rgba(255, 204, 0, 0.1)",active:"rgba(255, 204, 0, 0.2)"}}},select:{trigger:{border:"#29292955",background:"#29292929"},menu:{border:"#29292955",background:{default:"#FFFFFF",hover:"rgba(255, 204, 0, 0.1)",active:"rgba(255, 204, 0, 0.2)"}}},sidebar:{background:"#292929",text:"#FFFFFF",border:"#292929",button:{background:"#FFCC00",text:"#292929",border:"#FFCC00"},footer:{background:"#FFCC00"}},topbar:{background:"#FFFFFF",text:"#292929",border:"#EAEBEE"},daterangepicker:{trigger:{background:"#29292929",border:"#29292955"},picker:{highlight:"#fc0",range:"#ffcc00bb",background:"#fff",border:"rgb(234, 235, 238)"}},table:{header:{background:"#fff"},body:{background:"#fff",checkbox:"#ffcc00",hover:"#2929291a",selected:"#ffcc001a",selectedhover:"#ffcc002b"},title:{background:"#fff"},footer:{background:"#fff"}},heatmap:{background:"#fff",cell:{border:"#EAEBEE"}},popover:{background:"#fff",border:"#EAEBEE"},refresh:{background:"#29292929",border:"#29292955"},toast:{border:{success:"#5DB772",warning:"#FFCC00",error:"#FF2540",info:"#0076B2"},background:{success:"#5DB77215",warning:"#FFCC0015",error:"#FF254015",info:"#0076B215"}}},Lp={name:"default",colors:Hp,sizes:{text:{xs:"12px",s:"14px",m:"16px",l:"20px",xl:"22px"}},weights:{text:{s:"400",m:"500",l:"700"}}},JP=(e,t)=>{if(typeof e=="object"&&t in e){const n=e[t];return typeof n=="string"?n:void 0}},eN=5,tN=4,nN="owl-V2",rN=.3,oN=10,iN=1,aN=1e3,sN=[{awi_id:"Yolo-World",awi_label:"Yolo-World",value:"Yolo-World"},{awi_id:"owl-V2",awi_label:"owl-V2",value:"owl-V2"}],lN={scale:1,x:0,y:0},cN=.2,uN=!1,dN={w:16,h:9},fN=60,hN=2*Math.PI,B1={MAX_TOASTS_COUNT:eN,DISPLAY_SEARCH_MINIMUM_RECORDS:tN,SAM_MODEL_NAME:nN,SAM_MODEL_CONFIDENCE:rN,SAM_MODEL_MAX_RESULTS:oN,SAM_MODEL_MAX_RESULTS_MIN:iN,SAM_MODEL_MAX_RESULTS_MAX:aN,SAM_MODEL_DATA:sN,INITIAL_ZOOM_PROPERTIES:lN,INITIAL_ZOOM_LEVEL:cN,HOVER_TO_SELECT_ON_ALREADY_SELECTED:uN,DEFAULT_CANVAS_RATION:dN,MAX_ANNOTATIONS_TO_HOVER:fN,TWO_PIE:hN,POLYGON_POINT_REMOVE_CONFIRM_PROMPT:!1,MAX_ANNOTATIONS_TO_RUN_FAST:30,STATUS_COLOR_MAP:{approved:"rgba(66, 179, 97,0.60)",rejected:"rgba(184, 33, 44,0.60)",corrected:"rgba(175, 219, 245,0.60)"}};var A9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function V2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Rl={exports:{}};function gN(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Fl={exports:{}};const CN=Bp(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var mN=Fl.exports,kp;function x1(){return kp||(kp=1,function(e,t){(function(n,r){e.exports=r()})(mN,function(){var n=n||function(r,o){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof A9<"u"&&A9.crypto&&(i=A9.crypto),!i&&typeof gN=="function")try{i=CN}catch{}var a=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function y(){}return function(w){var E;return y.prototype=w,E=new y,y.prototype=null,E}}(),c={},u=c.lib={},d=u.Base=function(){return{extend:function(y){var w=s(this);return y&&w.mixIn(y),(!w.hasOwnProperty("init")||this.init===w.init)&&(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var w in y)y.hasOwnProperty(w)&&(this[w]=y[w]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=u.WordArray=d.extend({init:function(y,w){y=this.words=y||[],w!=o?this.sigBytes=w:this.sigBytes=y.length*4},toString:function(y){return(y||m).stringify(this)},concat:function(y){var w=this.words,E=y.words,S=this.sigBytes,M=y.sigBytes;if(this.clamp(),S%4)for(var H=0;H<M;H++){var k=E[H>>>2]>>>24-H%4*8&255;w[S+H>>>2]|=k<<24-(S+H)%4*8}else for(var D=0;D<M;D+=4)w[S+D>>>2]=E[D>>>2];return this.sigBytes+=M,this},clamp:function(){var y=this.words,w=this.sigBytes;y[w>>>2]&=4294967295<<32-w%4*8,y.length=r.ceil(w/4)},clone:function(){var y=d.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var w=[],E=0;E<y;E+=4)w.push(a());return new h.init(w,y)}}),g=c.enc={},m=g.Hex={stringify:function(y){for(var w=y.words,E=y.sigBytes,S=[],M=0;M<E;M++){var H=w[M>>>2]>>>24-M%4*8&255;S.push((H>>>4).toString(16)),S.push((H&15).toString(16))}return S.join("")},parse:function(y){for(var w=y.length,E=[],S=0;S<w;S+=2)E[S>>>3]|=parseInt(y.substr(S,2),16)<<24-S%8*4;return new h.init(E,w/2)}},v=g.Latin1={stringify:function(y){for(var w=y.words,E=y.sigBytes,S=[],M=0;M<E;M++){var H=w[M>>>2]>>>24-M%4*8&255;S.push(String.fromCharCode(H))}return S.join("")},parse:function(y){for(var w=y.length,E=[],S=0;S<w;S++)E[S>>>2]|=(y.charCodeAt(S)&255)<<24-S%4*8;return new h.init(E,w)}},A=g.Utf8={stringify:function(y){try{return decodeURIComponent(escape(v.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return v.parse(unescape(encodeURIComponent(y)))}},p=u.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=A.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var w,E=this._data,S=E.words,M=E.sigBytes,H=this.blockSize,k=H*4,D=M/k;y?D=r.ceil(D):D=r.max((D|0)-this._minBufferSize,0);var P=D*H,T=r.min(P*4,M);if(P){for(var N=0;N<P;N+=H)this._doProcessBlock(S,N);w=S.splice(0,P),E.sigBytes-=T}return new h.init(w,T)},clone:function(){var y=d.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});u.Hasher=p.extend({cfg:d.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var w=this._doFinalize();return w},blockSize:16,_createHelper:function(y){return function(w,E){return new y.init(E).finalize(w)}},_createHmacHelper:function(y){return function(w,E){return new x.HMAC.init(y,E).finalize(w)}}});var x=c.algo={};return c}(Math);return n})}(Fl)),Fl.exports}var zl={exports:{}},pN=zl.exports,Op;function jl(){return Op||(Op=1,function(e,t){(function(n,r){e.exports=r(x1())})(pN,function(n){return function(r){var o=n,i=o.lib,a=i.Base,s=i.WordArray,c=o.x64={};c.Word=a.extend({init:function(u,d){this.high=u,this.low=d}}),c.WordArray=a.extend({init:function(u,d){u=this.words=u||[],d!=r?this.sigBytes=d:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,d=u.length,h=[],g=0;g<d;g++){var m=u[g];h.push(m.high),h.push(m.low)}return s.create(h,this.sigBytes)},clone:function(){for(var u=a.clone.call(this),d=u.words=this.words.slice(0),h=d.length,g=0;g<h;g++)d[g]=d[g].clone();return u}})}(),n})}(zl)),zl.exports}var Vl={exports:{}},vN=Vl.exports,Ip;function AN(){return Ip||(Ip=1,function(e,t){(function(n,r){e.exports=r(x1())})(vN,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,o=r.lib,i=o.WordArray,a=i.init,s=i.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var u=c.byteLength,d=[],h=0;h<u;h++)d[h>>>2]|=c[h]<<24-h%4*8;a.call(this,d,u)}else a.apply(this,arguments)};s.prototype=i}}(),n.lib.WordArray})}(Vl)),Vl.exports}var Zl={exports:{}},bN=Zl.exports,Dp;function _N(){return Dp||(Dp=1,function(e,t){(function(n,r){e.exports=r(x1())})(bN,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.enc;a.Utf16=a.Utf16BE={stringify:function(c){for(var u=c.words,d=c.sigBytes,h=[],g=0;g<d;g+=2){var m=u[g>>>2]>>>16-g%4*8&65535;h.push(String.fromCharCode(m))}return h.join("")},parse:function(c){for(var u=c.length,d=[],h=0;h<u;h++)d[h>>>1]|=c.charCodeAt(h)<<16-h%2*16;return i.create(d,u*2)}},a.Utf16LE={stringify:function(c){for(var u=c.words,d=c.sigBytes,h=[],g=0;g<d;g+=2){var m=s(u[g>>>2]>>>16-g%4*8&65535);h.push(String.fromCharCode(m))}return h.join("")},parse:function(c){for(var u=c.length,d=[],h=0;h<u;h++)d[h>>>1]|=s(c.charCodeAt(h)<<16-h%2*16);return i.create(d,u*2)}};function s(c){return c<<8&4278255360|c>>>8&16711935}}(),n.enc.Utf16})}(Zl)),Zl.exports}var Ul={exports:{}},yN=Ul.exports,Pp;function b9(){return Pp||(Pp=1,function(e,t){(function(n,r){e.exports=r(x1())})(yN,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.enc;a.Base64={stringify:function(c){var u=c.words,d=c.sigBytes,h=this._map;c.clamp();for(var g=[],m=0;m<d;m+=3)for(var v=u[m>>>2]>>>24-m%4*8&255,A=u[m+1>>>2]>>>24-(m+1)%4*8&255,p=u[m+2>>>2]>>>24-(m+2)%4*8&255,x=v<<16|A<<8|p,y=0;y<4&&m+y*.75<d;y++)g.push(h.charAt(x>>>6*(3-y)&63));var w=h.charAt(64);if(w)for(;g.length%4;)g.push(w);return g.join("")},parse:function(c){var u=c.length,d=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var g=0;g<d.length;g++)h[d.charCodeAt(g)]=g}var m=d.charAt(64);if(m){var v=c.indexOf(m);v!==-1&&(u=v)}return s(c,u,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(c,u,d){for(var h=[],g=0,m=0;m<u;m++)if(m%4){var v=d[c.charCodeAt(m-1)]<<m%4*2,A=d[c.charCodeAt(m)]>>>6-m%4*2,p=v|A;h[g>>>2]|=p<<24-g%4*8,g++}return i.create(h,g)}}(),n.enc.Base64})}(Ul)),Ul.exports}var $l={exports:{}},wN=$l.exports,Np;function xN(){return Np||(Np=1,function(e,t){(function(n,r){e.exports=r(x1())})(wN,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.enc;a.Base64url={stringify:function(c,u){u===void 0&&(u=!0);var d=c.words,h=c.sigBytes,g=u?this._safe_map:this._map;c.clamp();for(var m=[],v=0;v<h;v+=3)for(var A=d[v>>>2]>>>24-v%4*8&255,p=d[v+1>>>2]>>>24-(v+1)%4*8&255,x=d[v+2>>>2]>>>24-(v+2)%4*8&255,y=A<<16|p<<8|x,w=0;w<4&&v+w*.75<h;w++)m.push(g.charAt(y>>>6*(3-w)&63));var E=g.charAt(64);if(E)for(;m.length%4;)m.push(E);return m.join("")},parse:function(c,u){u===void 0&&(u=!0);var d=c.length,h=u?this._safe_map:this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var m=0;m<h.length;m++)g[h.charCodeAt(m)]=m}var v=h.charAt(64);if(v){var A=c.indexOf(v);A!==-1&&(d=A)}return s(c,d,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(c,u,d){for(var h=[],g=0,m=0;m<u;m++)if(m%4){var v=d[c.charCodeAt(m-1)]<<m%4*2,A=d[c.charCodeAt(m)]>>>6-m%4*2,p=v|A;h[g>>>2]|=p<<24-g%4*8,g++}return i.create(h,g)}}(),n.enc.Base64url})}($l)),$l.exports}var Wl={exports:{}},EN=Wl.exports,Tp;function _9(){return Tp||(Tp=1,function(e,t){(function(n,r){e.exports=r(x1())})(EN,function(n){return function(r){var o=n,i=o.lib,a=i.WordArray,s=i.Hasher,c=o.algo,u=[];(function(){for(var A=0;A<64;A++)u[A]=r.abs(r.sin(A+1))*4294967296|0})();var d=c.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(A,p){for(var x=0;x<16;x++){var y=p+x,w=A[y];A[y]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var E=this._hash.words,S=A[p+0],M=A[p+1],H=A[p+2],k=A[p+3],D=A[p+4],P=A[p+5],T=A[p+6],N=A[p+7],F=A[p+8],j=A[p+9],z=A[p+10],R=A[p+11],$=A[p+12],W=A[p+13],q=A[p+14],K=A[p+15],U=E[0],G=E[1],J=E[2],Y=E[3];U=h(U,G,J,Y,S,7,u[0]),Y=h(Y,U,G,J,M,12,u[1]),J=h(J,Y,U,G,H,17,u[2]),G=h(G,J,Y,U,k,22,u[3]),U=h(U,G,J,Y,D,7,u[4]),Y=h(Y,U,G,J,P,12,u[5]),J=h(J,Y,U,G,T,17,u[6]),G=h(G,J,Y,U,N,22,u[7]),U=h(U,G,J,Y,F,7,u[8]),Y=h(Y,U,G,J,j,12,u[9]),J=h(J,Y,U,G,z,17,u[10]),G=h(G,J,Y,U,R,22,u[11]),U=h(U,G,J,Y,$,7,u[12]),Y=h(Y,U,G,J,W,12,u[13]),J=h(J,Y,U,G,q,17,u[14]),G=h(G,J,Y,U,K,22,u[15]),U=g(U,G,J,Y,M,5,u[16]),Y=g(Y,U,G,J,T,9,u[17]),J=g(J,Y,U,G,R,14,u[18]),G=g(G,J,Y,U,S,20,u[19]),U=g(U,G,J,Y,P,5,u[20]),Y=g(Y,U,G,J,z,9,u[21]),J=g(J,Y,U,G,K,14,u[22]),G=g(G,J,Y,U,D,20,u[23]),U=g(U,G,J,Y,j,5,u[24]),Y=g(Y,U,G,J,q,9,u[25]),J=g(J,Y,U,G,k,14,u[26]),G=g(G,J,Y,U,F,20,u[27]),U=g(U,G,J,Y,W,5,u[28]),Y=g(Y,U,G,J,H,9,u[29]),J=g(J,Y,U,G,N,14,u[30]),G=g(G,J,Y,U,$,20,u[31]),U=m(U,G,J,Y,P,4,u[32]),Y=m(Y,U,G,J,F,11,u[33]),J=m(J,Y,U,G,R,16,u[34]),G=m(G,J,Y,U,q,23,u[35]),U=m(U,G,J,Y,M,4,u[36]),Y=m(Y,U,G,J,D,11,u[37]),J=m(J,Y,U,G,N,16,u[38]),G=m(G,J,Y,U,z,23,u[39]),U=m(U,G,J,Y,W,4,u[40]),Y=m(Y,U,G,J,S,11,u[41]),J=m(J,Y,U,G,k,16,u[42]),G=m(G,J,Y,U,T,23,u[43]),U=m(U,G,J,Y,j,4,u[44]),Y=m(Y,U,G,J,$,11,u[45]),J=m(J,Y,U,G,K,16,u[46]),G=m(G,J,Y,U,H,23,u[47]),U=v(U,G,J,Y,S,6,u[48]),Y=v(Y,U,G,J,N,10,u[49]),J=v(J,Y,U,G,q,15,u[50]),G=v(G,J,Y,U,P,21,u[51]),U=v(U,G,J,Y,$,6,u[52]),Y=v(Y,U,G,J,k,10,u[53]),J=v(J,Y,U,G,z,15,u[54]),G=v(G,J,Y,U,M,21,u[55]),U=v(U,G,J,Y,F,6,u[56]),Y=v(Y,U,G,J,K,10,u[57]),J=v(J,Y,U,G,T,15,u[58]),G=v(G,J,Y,U,W,21,u[59]),U=v(U,G,J,Y,D,6,u[60]),Y=v(Y,U,G,J,R,10,u[61]),J=v(J,Y,U,G,H,15,u[62]),G=v(G,J,Y,U,j,21,u[63]),E[0]=E[0]+U|0,E[1]=E[1]+G|0,E[2]=E[2]+J|0,E[3]=E[3]+Y|0},_doFinalize:function(){var A=this._data,p=A.words,x=this._nDataBytes*8,y=A.sigBytes*8;p[y>>>5]|=128<<24-y%32;var w=r.floor(x/4294967296),E=x;p[(y+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,p[(y+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,A.sigBytes=(p.length+1)*4,this._process();for(var S=this._hash,M=S.words,H=0;H<4;H++){var k=M[H];M[H]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return S},clone:function(){var A=s.clone.call(this);return A._hash=this._hash.clone(),A}});function h(A,p,x,y,w,E,S){var M=A+(p&x|~p&y)+w+S;return(M<<E|M>>>32-E)+p}function g(A,p,x,y,w,E,S){var M=A+(p&y|x&~y)+w+S;return(M<<E|M>>>32-E)+p}function m(A,p,x,y,w,E,S){var M=A+(p^x^y)+w+S;return(M<<E|M>>>32-E)+p}function v(A,p,x,y,w,E,S){var M=A+(x^(p|~y))+w+S;return(M<<E|M>>>32-E)+p}o.MD5=s._createHelper(d),o.HmacMD5=s._createHmacHelper(d)}(Math),n.MD5})}(Wl)),Wl.exports}var Kl={exports:{}},SN=Kl.exports,Rp;function Fp(){return Rp||(Rp=1,function(e,t){(function(n,r){e.exports=r(x1())})(SN,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=o.Hasher,s=r.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,h){for(var g=this._hash.words,m=g[0],v=g[1],A=g[2],p=g[3],x=g[4],y=0;y<80;y++){if(y<16)c[y]=d[h+y]|0;else{var w=c[y-3]^c[y-8]^c[y-14]^c[y-16];c[y]=w<<1|w>>>31}var E=(m<<5|m>>>27)+x+c[y];y<20?E+=(v&A|~v&p)+1518500249:y<40?E+=(v^A^p)+1859775393:y<60?E+=(v&A|v&p|A&p)-1894007588:E+=(v^A^p)-899497514,x=p,p=A,A=v<<30|v>>>2,v=m,m=E}g[0]=g[0]+m|0,g[1]=g[1]+v|0,g[2]=g[2]+A|0,g[3]=g[3]+p|0,g[4]=g[4]+x|0},_doFinalize:function(){var d=this._data,h=d.words,g=this._nDataBytes*8,m=d.sigBytes*8;return h[m>>>5]|=128<<24-m%32,h[(m+64>>>9<<4)+14]=Math.floor(g/4294967296),h[(m+64>>>9<<4)+15]=g,d.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var d=a.clone.call(this);return d._hash=this._hash.clone(),d}});r.SHA1=a._createHelper(u),r.HmacSHA1=a._createHmacHelper(u)}(),n.SHA1})}(Kl)),Kl.exports}var Ql={exports:{}},MN=Ql.exports,zp;function Pu(){return zp||(zp=1,function(e,t){(function(n,r){e.exports=r(x1())})(MN,function(n){return function(r){var o=n,i=o.lib,a=i.WordArray,s=i.Hasher,c=o.algo,u=[],d=[];(function(){function m(x){for(var y=r.sqrt(x),w=2;w<=y;w++)if(!(x%w))return!1;return!0}function v(x){return(x-(x|0))*4294967296|0}for(var A=2,p=0;p<64;)m(A)&&(p<8&&(u[p]=v(r.pow(A,1/2))),d[p]=v(r.pow(A,1/3)),p++),A++})();var h=[],g=c.SHA256=s.extend({_doReset:function(){this._hash=new a.init(u.slice(0))},_doProcessBlock:function(m,v){for(var A=this._hash.words,p=A[0],x=A[1],y=A[2],w=A[3],E=A[4],S=A[5],M=A[6],H=A[7],k=0;k<64;k++){if(k<16)h[k]=m[v+k]|0;else{var D=h[k-15],P=(D<<25|D>>>7)^(D<<14|D>>>18)^D>>>3,T=h[k-2],N=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;h[k]=P+h[k-7]+N+h[k-16]}var F=E&S^~E&M,j=p&x^p&y^x&y,z=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),R=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),$=H+R+F+d[k]+h[k],W=z+j;H=M,M=S,S=E,E=w+$|0,w=y,y=x,x=p,p=$+W|0}A[0]=A[0]+p|0,A[1]=A[1]+x|0,A[2]=A[2]+y|0,A[3]=A[3]+w|0,A[4]=A[4]+E|0,A[5]=A[5]+S|0,A[6]=A[6]+M|0,A[7]=A[7]+H|0},_doFinalize:function(){var m=this._data,v=m.words,A=this._nDataBytes*8,p=m.sigBytes*8;return v[p>>>5]|=128<<24-p%32,v[(p+64>>>9<<4)+14]=r.floor(A/4294967296),v[(p+64>>>9<<4)+15]=A,m.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var m=s.clone.call(this);return m._hash=this._hash.clone(),m}});o.SHA256=s._createHelper(g),o.HmacSHA256=s._createHmacHelper(g)}(Math),n.SHA256})}(Ql)),Ql.exports}var Gl={exports:{}},HN=Gl.exports,jp;function LN(){return jp||(jp=1,function(e,t){(function(n,r,o){e.exports=r(x1(),Pu())})(HN,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.algo,s=a.SHA256,c=a.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=s._doFinalize.call(this);return u.sigBytes-=4,u}});r.SHA224=s._createHelper(c),r.HmacSHA224=s._createHmacHelper(c)}(),n.SHA224})}(Gl)),Gl.exports}var Yl={exports:{}},BN=Yl.exports,Vp;function Zp(){return Vp||(Vp=1,function(e,t){(function(n,r,o){e.exports=r(x1(),jl())})(BN,function(n){return function(){var r=n,o=r.lib,i=o.Hasher,a=r.x64,s=a.Word,c=a.WordArray,u=r.algo;function d(){return s.create.apply(s,arguments)}var h=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],g=[];(function(){for(var v=0;v<80;v++)g[v]=d()})();var m=u.SHA512=i.extend({_doReset:function(){this._hash=new c.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(v,A){for(var p=this._hash.words,x=p[0],y=p[1],w=p[2],E=p[3],S=p[4],M=p[5],H=p[6],k=p[7],D=x.high,P=x.low,T=y.high,N=y.low,F=w.high,j=w.low,z=E.high,R=E.low,$=S.high,W=S.low,q=M.high,K=M.low,U=H.high,G=H.low,J=k.high,Y=k.low,ee=D,oe=P,de=T,se=N,xe=F,we=j,ve=z,he=R,le=$,ae=W,_e=q,Oe=K,Ie=U,ge=G,et=J,fe=Y,ne=0;ne<80;ne++){var pe,Se,Le=g[ne];if(ne<16)Se=Le.high=v[A+ne*2]|0,pe=Le.low=v[A+ne*2+1]|0;else{var Be=g[ne-15],Ve=Be.high,Ke=Be.low,ct=(Ve>>>1|Ke<<31)^(Ve>>>8|Ke<<24)^Ve>>>7,tt=(Ke>>>1|Ve<<31)^(Ke>>>8|Ve<<24)^(Ke>>>7|Ve<<25),Qe=g[ne-2],Fe=Qe.high,ot=Qe.low,Ue=(Fe>>>19|ot<<13)^(Fe<<3|ot>>>29)^Fe>>>6,ze=(ot>>>19|Fe<<13)^(ot<<3|Fe>>>29)^(ot>>>6|Fe<<26),Ge=g[ne-7],dt=Ge.high,qe=Ge.low,ft=g[ne-16],Nt=ft.high,Kt=ft.low;pe=tt+qe,Se=ct+dt+(pe>>>0<tt>>>0?1:0),pe=pe+ze,Se=Se+Ue+(pe>>>0<ze>>>0?1:0),pe=pe+Kt,Se=Se+Nt+(pe>>>0<Kt>>>0?1:0),Le.high=Se,Le.low=pe}var sn=le&_e^~le&Ie,Nn=ae&Oe^~ae&ge,Yt=ee&de^ee&xe^de&xe,An=oe&se^oe&we^se&we,_n=(ee>>>28|oe<<4)^(ee<<30|oe>>>2)^(ee<<25|oe>>>7),Qt=(oe>>>28|ee<<4)^(oe<<30|ee>>>2)^(oe<<25|ee>>>7),kt=(le>>>14|ae<<18)^(le>>>18|ae<<14)^(le<<23|ae>>>9),Ht=(ae>>>14|le<<18)^(ae>>>18|le<<14)^(ae<<23|le>>>9),xt=h[ne],Zt=xt.high,Cn=xt.low,mt=fe+Ht,pt=et+kt+(mt>>>0<fe>>>0?1:0),mt=mt+Nn,pt=pt+sn+(mt>>>0<Nn>>>0?1:0),mt=mt+Cn,pt=pt+Zt+(mt>>>0<Cn>>>0?1:0),mt=mt+pe,pt=pt+Se+(mt>>>0<pe>>>0?1:0),Lt=Qt+An,Xe=_n+Yt+(Lt>>>0<Qt>>>0?1:0);et=Ie,fe=ge,Ie=_e,ge=Oe,_e=le,Oe=ae,ae=he+mt|0,le=ve+pt+(ae>>>0<he>>>0?1:0)|0,ve=xe,he=we,xe=de,we=se,de=ee,se=oe,oe=mt+Lt|0,ee=pt+Xe+(oe>>>0<mt>>>0?1:0)|0}P=x.low=P+oe,x.high=D+ee+(P>>>0<oe>>>0?1:0),N=y.low=N+se,y.high=T+de+(N>>>0<se>>>0?1:0),j=w.low=j+we,w.high=F+xe+(j>>>0<we>>>0?1:0),R=E.low=R+he,E.high=z+ve+(R>>>0<he>>>0?1:0),W=S.low=W+ae,S.high=$+le+(W>>>0<ae>>>0?1:0),K=M.low=K+Oe,M.high=q+_e+(K>>>0<Oe>>>0?1:0),G=H.low=G+ge,H.high=U+Ie+(G>>>0<ge>>>0?1:0),Y=k.low=Y+fe,k.high=J+et+(Y>>>0<fe>>>0?1:0)},_doFinalize:function(){var v=this._data,A=v.words,p=this._nDataBytes*8,x=v.sigBytes*8;A[x>>>5]|=128<<24-x%32,A[(x+128>>>10<<5)+30]=Math.floor(p/4294967296),A[(x+128>>>10<<5)+31]=p,v.sigBytes=A.length*4,this._process();var y=this._hash.toX32();return y},clone:function(){var v=i.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});r.SHA512=i._createHelper(m),r.HmacSHA512=i._createHmacHelper(m)}(),n.SHA512})}(Yl)),Yl.exports}var ql={exports:{}},kN=ql.exports,Up;function ON(){return Up||(Up=1,function(e,t){(function(n,r,o){e.exports=r(x1(),jl(),Zp())})(kN,function(n){return function(){var r=n,o=r.x64,i=o.Word,a=o.WordArray,s=r.algo,c=s.SHA512,u=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var d=c._doFinalize.call(this);return d.sigBytes-=16,d}});r.SHA384=c._createHelper(u),r.HmacSHA384=c._createHmacHelper(u)}(),n.SHA384})}(ql)),ql.exports}var Xl={exports:{}},IN=Xl.exports,$p;function DN(){return $p||($p=1,function(e,t){(function(n,r,o){e.exports=r(x1(),jl())})(IN,function(n){return function(r){var o=n,i=o.lib,a=i.WordArray,s=i.Hasher,c=o.x64,u=c.Word,d=o.algo,h=[],g=[],m=[];(function(){for(var p=1,x=0,y=0;y<24;y++){h[p+5*x]=(y+1)*(y+2)/2%64;var w=x%5,E=(2*p+3*x)%5;p=w,x=E}for(var p=0;p<5;p++)for(var x=0;x<5;x++)g[p+5*x]=x+(2*p+3*x)%5*5;for(var S=1,M=0;M<24;M++){for(var H=0,k=0,D=0;D<7;D++){if(S&1){var P=(1<<D)-1;P<32?k^=1<<P:H^=1<<P-32}S&128?S=S<<1^113:S<<=1}m[M]=u.create(H,k)}})();var v=[];(function(){for(var p=0;p<25;p++)v[p]=u.create()})();var A=d.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],x=0;x<25;x++)p[x]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,x){for(var y=this._state,w=this.blockSize/2,E=0;E<w;E++){var S=p[x+2*E],M=p[x+2*E+1];S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360;var H=y[E];H.high^=M,H.low^=S}for(var k=0;k<24;k++){for(var D=0;D<5;D++){for(var P=0,T=0,N=0;N<5;N++){var H=y[D+5*N];P^=H.high,T^=H.low}var F=v[D];F.high=P,F.low=T}for(var D=0;D<5;D++)for(var j=v[(D+4)%5],z=v[(D+1)%5],R=z.high,$=z.low,P=j.high^(R<<1|$>>>31),T=j.low^($<<1|R>>>31),N=0;N<5;N++){var H=y[D+5*N];H.high^=P,H.low^=T}for(var W=1;W<25;W++){var P,T,H=y[W],q=H.high,K=H.low,U=h[W];U<32?(P=q<<U|K>>>32-U,T=K<<U|q>>>32-U):(P=K<<U-32|q>>>64-U,T=q<<U-32|K>>>64-U);var G=v[g[W]];G.high=P,G.low=T}var J=v[0],Y=y[0];J.high=Y.high,J.low=Y.low;for(var D=0;D<5;D++)for(var N=0;N<5;N++){var W=D+5*N,H=y[W],ee=v[W],oe=v[(D+1)%5+5*N],de=v[(D+2)%5+5*N];H.high=ee.high^~oe.high&de.high,H.low=ee.low^~oe.low&de.low}var H=y[0],se=m[k];H.high^=se.high,H.low^=se.low}},_doFinalize:function(){var p=this._data,x=p.words;this._nDataBytes*8;var y=p.sigBytes*8,w=this.blockSize*32;x[y>>>5]|=1<<24-y%32,x[(r.ceil((y+1)/w)*w>>>5)-1]|=128,p.sigBytes=x.length*4,this._process();for(var E=this._state,S=this.cfg.outputLength/8,M=S/8,H=[],k=0;k<M;k++){var D=E[k],P=D.high,T=D.low;P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,H.push(T),H.push(P)}return new a.init(H,S)},clone:function(){for(var p=s.clone.call(this),x=p._state=this._state.slice(0),y=0;y<25;y++)x[y]=x[y].clone();return p}});o.SHA3=s._createHelper(A),o.HmacSHA3=s._createHmacHelper(A)}(Math),n.SHA3})}(Xl)),Xl.exports}var Jl={exports:{}},PN=Jl.exports,Wp;function NN(){return Wp||(Wp=1,function(e,t){(function(n,r){e.exports=r(x1())})(PN,function(n){/** @preserve
1
+ (function(Xt,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],O):(Xt=typeof globalThis<"u"?globalThis:Xt||self,O(Xt["Awiros UI"]={},Xt.React,Xt.ReactDOM))})(this,function(Xt,O,x0){"use strict";var fye=Object.defineProperty;var hye=(Xt,O,x0)=>O in Xt?fye(Xt,O,{enumerable:!0,configurable:!0,writable:!0,value:x0}):Xt[O]=x0;var En=(Xt,O,x0)=>hye(Xt,typeof O!="symbol"?O+"":O,x0);var du,r9,Im,pD;var Ep=document.createElement("style");Ep.textContent=`@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";@import"https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap";*{box-sizing:border-box}body{margin:0}mark{background-color:unset!important;padding:0rem!important}hr,p{margin:0}.global-confirm-button{background-color:var( --c_button_bg, var(--awi-color-button-background) )!important;color:#fff!important;border:none!important;font-size:14px;cursor:pointer}.global-confirm-button:hover,.global-confirm-button:active{background-color:var( --c_button_bg, var(--awi-color-button-background) )!important}.global-confirm-button-danger{background-color:red!important;color:#fff!important;border:none!important;font-size:14px!important;cursor:pointer!important}.global-confirm-button-danger:hover,.global-confirm-button-danger:active{background-color:red!important}.global-cancel-button{background-color:#fff!important;color:#000!important;border:1px solid #ccc!important;font-size:14px!important;cursor:pointer!important}.global-cancel-button:hover{background-color:#f7f7f7!important}.custom-confirmation-width{width:max(300px,40vw)!important}.swal2-popup.swal2-modal.swal2-show{display:block!important;width:auto!important}.custom-trigger-text{display:flex;text-align:left}.width100{width:100%!important}.color-black{color:#000}.color-black-80{color:#000c}.heightWidthUnset{height:unset!important;width:min(700px,80vw)!important}.toast-display-message{word-break:break-word}.noPadding{padding:0!important}.shortcutKey{display:flex;padding:2.5px 8px;justify-content:center;align-items:center;gap:8px;background:#f2edf7;color:var(--c_text_primary, var(--awi-color-text-primary))!important}.not-allowed-pointer{cursor:not-allowed!important}.modalInput{width:100%;margin-top:10px;border-radius:100px;background:#2626261a;display:flex;height:40px;padding:12px 20px;align-items:center;border:0;justify-content:center}.modalInput input{background:transparent;height:100%;border:transparent;width:80%}.modalInput__password{justify-content:space-between}.modalInput:focus{border:1px solid black}.modalInput__disabled{background-color:#2626261a;pointer-events:none}.modalButton{width:100%;border-radius:100px;display:flex;height:40px;padding:12px 20px;align-items:center;border:0;cursor:pointer;justify-content:center;color:#000}.modalButton__grey{border:0;background:#2626261a}.modalButton:disabled{background-color:#2626261a;border:0;cursor:not-allowed}.modalButton__purpleColor{border:1px solid var(--awi-color-common-themeColor, #6f29a9);background:#6f29a91a!important}.modalButton__purpleColor:hover{background-color:#6f29a94d!important}.modalButton__secondaryChoice{border:1px solid var(--awi-color-common-themeSecondaryButtonColor, #ff2540);background:#ff254033!important;cursor:pointer}.modalButton__secondaryChoice:hover{background-color:#ff25404d!important}.modalButton__secondaryChoice:disabled{background-color:#2626261a!important;border:0;cursor:not-allowed}.modalButton__primaryChoice{cursor:pointer;border:1px solid #5db772;background:rgba(var(--awi-color-common-themeSystemAcceptColor, #5db772),.1)!important}.modalButton__primaryChoice:hover{background-color:rgba(var(--awi-color-common-themeSystemAcceptColor, #5db772),.3)!important}.modalButton__primaryChoice:disabled{background-color:#2626261a!important;border:0;cursor:not-allowed}.modalButton__tertiaryChoice{cursor:pointer;background:#2626261a}.modalButton__tertiaryChoice:disabled{background-color:#dedede!important;opacity:1!important;border:0!important;cursor:not-allowed!important}.modalButton__tertiaryChoice:hover{background:#26262633}.asterisk{color:var(--awi-color-common-themeRed, #ff0000)}.draggableContainer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;overflow:hidden}.draggableContainer .react-draggable{z-index:999;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.draggableContainer.right .react-draggable{right:2%;left:auto;transform:translateY(-50%)}._request__actions_1mv0n_1{display:flex;align-items:center;justify-content:space-between}._request__actions__left_1mv0n_6,._request__actions__right_1mv0n_6{display:flex;align-items:center;gap:8px}._request__actions__left_1mv0n_6{gap:30px}._request__actions__modal_1mv0n_14{position:absolute;list-style:none;background-color:#fff;z-index:13;right:0;text-align:left;box-shadow:0 1px 3px #554f4f40;border-radius:4px;padding:8px}._request__actions__modal_1mv0n_14 li{padding:8px 16px;color:var(--awi-color-common-themeColor, #6f29a9);text-decoration:underline;cursor:pointer}._request__actions__modal_1mv0n_14 li a{text-decoration:none;color:var(--awi-color-common-themeColor, #6f29a9)}._split__request__modal_1mv0n_36{position:fixed;top:50%;left:50%;background-color:#fff;padding:32px;z-index:12;transform:translate(-50%,-50%)}._split__request__form_1mv0n_45{z-index:15}._request__flow__modal_1mv0n_49{max-width:400px;display:flex;flex-direction:column;gap:16px;text-align:justify;white-space:pre-line}._icons_1mv0n_58{width:32px;height:32px;padding:6px;background:#fff;box-shadow:0 4px 8px #312a2a1f;border-radius:5px;flex-shrink:0;box-sizing:border-box}._request__searchbar_1mv0n_69{display:inline-flex;align-items:center;padding:8px 16px;border-radius:6px;width:300px;gap:8px;border:1px solid rgba(0,0,0,.12)}._request__searchbar_1mv0n_69 img{width:12px;height:12px}._request__searchbar_1mv0n_69 input{border:0;width:100%;font-size:14px;line-height:1.12}._request__searchbar_1mv0n_69 input:focus{outline:none}._request_1mv0n_1{overflow:auto;height:calc(100vh - 155px)}._request__details_1mv0n_96{background-color:#f8f8f8;width:90%;padding:42px 56px;box-sizing:border-box;border-radius:12px}@media screen and (max-width: 1024px){._request__details_1mv0n_96{padding:24px}}._request__details__header_1mv0n_108{display:flex;align-items:center;justify-content:space-between;gap:8px}._request__details__header__title_1mv0n_114{font-family:Open Sans,sans-serif}._request__details__header__title__label_1mv0n_117{font-size:32px;line-height:1.17;font-weight:400;color:var(--awi-color-common-themeColor, #6f29a9);margin-bottom:8px}@media screen and (max-width: 1024px){._request__details__header__title__label_1mv0n_117{font-size:24px}}._request__details__header__title__time_1mv0n_129{color:#7d7d7d;font-size:14px;line-height:1.14;font-weight:400}@media screen and (max-width: 1024px){._request__details__header__title__time_1mv0n_129{font-size:12px}}._request__details__header__status_1mv0n_140{display:flex;align-items:center;gap:8px;color:#fff;font-size:14px;line-height:1.14;font-weight:400;font-family:Open Sans,sans-serif;text-transform:capitalize}@media screen and (max-width: 1024px){._request__details__header__status_1mv0n_140{font-size:10px}}._request__details__header__status__action_1mv0n_156{padding:4px 16px;background-color:var(--awi-color-common-themeColor, #6f29a9);border-radius:4px}._request__details__header__status__qa_1mv0n_161{background-color:#48985f;padding:4px 16px;border-radius:4px}._request__details__description__items_1mv0n_166{margin-top:12px;margin-bottom:24px;display:flex;flex-direction:row;gap:12px 8px;flex-wrap:wrap}._request__details__description__items__item_1mv0n_174{padding:3px 4px;border:.5px solid var(--awi-color-common-themeColor, #6f29a9);background-color:#c8e3ff33;width:max-content;border-radius:4px;color:var(--awi-color-common-themeColor, #6f29a9);font-size:11px;text-transform:capitalize}._request__details__description__descr_1mv0n_184 p{padding:4px;color:#7d7d7d}._request__table__header_1mv0n_188{position:sticky;top:0;font-size:13px;border-radius:40px}._request__table__header__action_1mv0n_194{position:sticky!important;right:0;background-color:#f8f8f8}._request__row_1mv0n_199{position:relative;z-index:1}._request__row_selected_1mv0n_203{background:#daecff33!important}._request__table__cell_1mv0n_206{color:var(--awi-color-common-themeColor, #6f29a9);font-size:13px}._request__table__cell_1mv0n_206 sub{color:var(--awi-color-common-themeColor, #6f29a9)}._request__table__cell__action_1mv0n_213{right:0;background-color:#fff}._request__table__cell__action_1mv0n_213 img{margin-right:8px}._request__table__cell__status_1mv0n_220{padding:4px 8px;border:.5px solid var(--awi-color-common-themeColor, #6f29a9);color:var(--awi-color-common-themeColor, #6f29a9);background-color:#c8e3ff33;width:max-content;border-radius:4px}._request__table__cell__status__ratio_1mv0n_228{color:var(--awi-color-common-themeColor, #6f29a9);margin:auto}._request__table__cell__status__completed_1mv0n_232{background-color:#48985f1a;border:.5px solid #48985f;color:#48985f}._request__table__cell__status__hold_1mv0n_237{background-color:#f68e0d1a;border:.5px solid #f68e0d;color:#f68e0d}._request__table__cell__status__failed_1mv0n_242{background-color:#f864641a;border:.5px solid #f86464;color:#f86464}._request__table__cell__status__draft_1mv0n_247{background-color:#be84fe1a;border:.5px solid #be84fe;color:#be84fe}._request__table__cell__user_1mv0n_252{display:flex;gap:4px;align-items:center}._request__table__cell__user_1mv0n_252 img{width:22px;height:22px;border-radius:50%}._request__carousel_elements_1mv0n_262{cursor:pointer;text-decoration:underline}._request__carousel_alignment_1mv0n_266{text-align:right}._request__metrics_1mv0n_269{margin-bottom:32px;display:flex;justify-content:space-between}._request__metrics__requests_1mv0n_274{flex-shrink:0}._request__metrics__requests_list_1mv0n_277{display:flex;gap:16px;margin-top:24px}._request__timeline_1mv0n_282{position:relative}._request__timeline__modal_1mv0n_285{background-color:#fff;position:absolute;z-index:12;width:max-content;left:0;bottom:0;transform:translate(-16px,calc(100% + 10px))}._request__raise_button_1mv0n_294{position:fixed;bottom:16px;right:16px;display:flex;flex-direction:column;gap:8px}._request__raise_button_1mv0n_294>button{background-color:transparent;border:0}._request__raise_button_1mv0n_294>button>img{border-radius:50%;box-shadow:0 5px 13px #55a9fdb3}._request__annotation__button_1mv0n_310{border:0;background-color:#f5f5f5;padding:16px;border-radius:8px;margin-top:16px}._table__header__styles_1mv0n_318{background-color:#fff;border-bottom:1px solid #d2d2d2}._billing__actions_1mv0n_323{display:flex;justify-content:end;align-items:center;gap:16px}._billing__actions__button_1mv0n_329{padding:10px 16px;margin-bottom:12px;margin-top:-24px;border:0;background-color:var(--awi-color-common-themeColor, #6f29a9);color:#fff;border-radius:8px;text-decoration:none;cursor:pointer}._backdrop_1mv0n_341{top:0%;left:0%;position:fixed;width:100vw;height:100vh;background-color:#0006;z-index:11}._backdrop__transparent_1mv0n_350{background-color:#000;opacity:.5;z-index:2}._upload__form__guidelines__heading_1mv0n_356{display:flex;justify-content:space-between;align-items:center;font-size:22px}._upload__form__guidelines__heading_1mv0n_356>img{cursor:pointer;width:35px}._upload__form__grid_1mv0n_366{display:grid;grid-template-columns:max-content 300px;row-gap:12px;column-gap:20px;font-size:14px;align-items:center}._upload__form__grid_1mv0n_366 input{padding:8px 16px}._upload__form__grid_1mv0n_366 input,._upload__form__grid_1mv0n_366 select{border:0;border-bottom:1px solid #aeaeae}._upload__form__grid_1mv0n_366 select{padding:8px}._class__attributes_1mv0n_386{display:flex;flex-direction:column;min-height:250px;gap:24px}._class__attributes__options_1mv0n_392{background-color:#fff;max-height:150px;overflow:auto;list-style:none;box-shadow:1px 1px 4px #0000001f;border-bottom-left-radius:8px;border-bottom-right-radius:8px}._class__attributes__options__option_1mv0n_401{border-bottom:1px solid rgba(0,0,0,.12);padding:12px 16px}._class__attributes__buttons_1mv0n_405{display:flex;gap:8px}._class__attributes__buttons_1mv0n_405 button{cursor:pointer;padding:10px 16px;border:0;background-color:var(--awi-color-common-themeColor, #6f29a9);color:#fff;border-radius:8px;width:max-content}._class__attributes__buttons_1mv0n_405 button._cancel_1mv0n_418{background-color:#79797973}._class__attributes__buttons_1mv0n_405 button:disabled{background-color:#79797973}._class__attributes__type_1mv0n_424{display:flex;gap:16px}._class__attributes__type_1mv0n_424>div{display:flex;align-items:center;gap:8px}._options_open_1mv0n_434{border-bottom-left-radius:0;border-bottom-right-radius:0}._options_closed_1mv0n_439{border-bottom-left-radius:6px;border-bottom-right-radius:6px}._tabs__list_1mv0n_444{margin-bottom:24px;margin-top:12px;width:max-content;display:flex;align-items:center;gap:12px}._tabs__list__item_1mv0n_452{padding:8px 16px;border:0;background-color:#fff;font-size:14px;cursor:pointer}._tabs__list__item_1mv0n_452:not(:last-child){margin-right:4px}._tabs__list__item__selected_1mv0n_462{font-size:16px;border-bottom:2.5px solid var(--awi-color-common-themeColor, #6f29a9);color:var(--awi-color-common-themeColor, #6f29a9)}._tabs__list__item__selected_1mv0n_462:focus{outline:none}._tabs__list__item__hidden_1mv0n_470{display:none}._type_style_1mv0n_474{border-right:1px solid #ababab;width:25%;text-align:center}._lastTypeStyle_1mv0n_480{width:25%;text-align:center}._class__proportion__modal_1mv0n_485{position:fixed;bottom:0%;left:50%;background-color:#fff;padding:32px;z-index:12;transform:translate(-50%)}._class__proportion__modal__container_1mv0n_494{display:flex;width:100vw;justify-content:space-around}._class__proportion__modal__piecontainer_1mv0n_499{display:flex;flex-direction:column;align-items:center;gap:16px}._class__proportion__modal__labelscontainer_1mv0n_505{display:flex;max-width:300px;flex-wrap:wrap;gap:16px;justify-content:center;align-content:flex-start;height:120px;overflow-y:scroll}._class__proportion__modal__color_1mv0n_515{width:20px;height:20px}._class__proportion__modal__labelcontainer_1mv0n_519{display:flex;gap:4px;cursor:pointer}._class__proportion__modal__selectedLabel_1mv0n_524{color:var(--awi-color-common-themeColor, #6f29a9)}._class__proportion__modal__heading_1mv0n_527{margin-bottom:20px;font-size:20px}._class__proportion__modal__mainheading_1mv0n_531{font-size:24px;margin-bottom:44px;text-align:center}._class__proportion__modal__options_1mv0n_536{display:flex;padding-left:200px;padding-right:200px;margin-bottom:80px;gap:60px}._class__proportion__modal__export_1mv0n_543{background-color:var(--awi-color-common-themeColor, #6f29a9);border-radius:6px;color:#fff;padding:10px 24px;border:none;margin-left:auto}._class__proportion__backdrop_1mv0n_551{top:0;left:0;position:fixed;width:100vw;height:100vh;background-color:#0006;z-index:11}._remove__user_button_1mv0n_561{font-weight:500;color:var(--awi-color-common-themeColor, #6f29a9);border:0;background-color:transparent}._remove__user_button_1mv0n_561:focus{outline:none}._classes__tags_1mv0n_571{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}._classes__tags__item_1mv0n_577{display:flex;align-items:center;gap:8px;padding:4px 8px;font-size:10px;background-color:#d9d9d9;border-radius:4px;width:max-content;text-transform:capitalize;color:#292929}._upload__form__image_1mv0n_590{display:flex;flex-direction:column;gap:8px;margin-top:24px}._upload__form__image__detail_1mv0n_596{display:flex;gap:16px;align-items:center;font-size:14px}._upload__form__image__detail__button_1mv0n_602{padding:8px 12px;background-color:#d9d9d9;color:#797979;border-radius:8px;cursor:pointer}._upload__form__image__detail_1mv0n_596 p{color:var(--awi-color-common-themeColor, #6f29a9)}._container_1mv0n_613{margin-top:16px}._highlight_1mv0n_617{border:1px solid var(--awi-color-common-themeColor, #6f29a9);color:var(--awi-color-common-themeColor, #6f29a9);border-radius:8px}._requests__filter_1mv0n_623{z-index:13!important;position:absolute;width:max-content;right:0;top:50px;display:flex;flex-direction:column;padding:16px;background-color:#fff;border-radius:12px;box-shadow:0 4px 8px #312a2a1f}._requests__filter__heading_1mv0n_636{margin-bottom:15px;color:var(--awi-color-common-themeColor, #6f29a9);font-weight:500;font-size:24px}._requests__filter__grid_1mv0n_642{display:grid;grid-template-columns:1fr 250px;gap:15px}._requests__filter_1mv0n_623 select{border:0;border-bottom:1px solid #cccbcb;color:#cccbcb;padding:8px}._requests__filter_1mv0n_623 input{border:0;border-bottom:1px solid #cccbcb;color:#000;padding:8px}._requests__filter__buttons_1mv0n_659{display:flex;gap:24px;justify-content:flex-end;align-items:center;padding-top:24px}._requests__filter__buttons_1mv0n_659 button{padding:8px 24px;cursor:pointer;border:0;box-shadow:0 4px 8px #55a8fd33;border-radius:8px;font-size:12px;line-height:1.12;font-family:Open Sans,sans-serif;color:var(--awi-color-common-themeColor, #6f29a9);background-color:#fff}._requests__filter__buttons_1mv0n_659 button:first-child{background-color:var(--awi-color-common-themeColor, #6f29a9);color:#fff}._colour__blue_1mv0n_683{color:var(--awi-color-common-themeColor, #6f29a9)}._colour__green_1mv0n_686{color:green}._colour__orange_1mv0n_689{color:orange}._colour__red_1mv0n_692{color:red}._colour__grey_1mv0n_695{color:gray}._hide_1mv0n_699{display:none}._assigned__user__filter_1mv0n_703{position:relative;display:flex}._switch_1mv0n_708{position:relative;display:inline-block;width:55px;height:28px}._switch_1mv0n_708 input{opacity:0;width:0;height:0}._slider_1mv0n_721{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}._slider_1mv0n_721:before{position:absolute;content:"";height:20px;width:20px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input:checked+._slider_1mv0n_721{background-color:var(--awi-color-common-themeColor, #6f29a9)}input:focus+._slider_1mv0n_721{box-shadow:0 0 1px var(--awi-color-common-themeColor, #6f29a9)}input:checked+._slider_1mv0n_721:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translate(26px)}._slider_1mv0n_721._round_1mv0n_760{border-radius:34px}._slider_1mv0n_721._round_1mv0n_760:before{border-radius:50%}._progress__container_1mv0n_768{background-color:#fff}._progress__container__header_1mv0n_771{background-color:#fff;border-bottom:1px solid #d2d2d2}._progress__container__header__split__heading_1mv0n_775{text-align:center}._progress__container__header__split__content_1mv0n_778{margin-left:30px;display:flex;gap:20px;flex:1}._progress__container__header__split__content_1mv0n_778>p{width:70px;text-align:center}._loader_1mv0n_789{position:fixed;bottom:48px;left:24px;box-shadow:0 4px 8px #312a2a1f;padding:16px 32px;background-color:#fff;border-radius:18px;color:#000;z-index:100}._cursorPointer_1mv0n_801{cursor:pointer}._sliderContainer_1mv0n_805{display:flex;align-items:center;gap:8px}._sliderContainer_1mv0n_805 span{font-size:.9rem;color:#666}._sliderRow_1mv0n_816{display:flex;align-items:center;gap:8px}._sliderContainer_1mv0n_805{display:flex;align-items:center;gap:4px}._sliderContainer_1mv0n_805 input[type=range]{flex:1}._promptLoadingContainer_1mv0n_832{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;background:linear-gradient(135deg,#eef2f3,#d6e5fa);animation:_fadeIn_1mv0n_1 .5s ease-in-out}._loaderWrapper_1mv0n_842{display:flex;flex-direction:column;align-items:center;gap:20px}._spinner_1mv0n_849{width:80px;height:80px;border:8px solid rgba(0,0,0,.1);border-top-color:#3498db;border-radius:50%;animation:_spin_1mv0n_849 1s linear infinite}@keyframes _spin_1mv0n_849{to{transform:rotate(360deg)}}._loadingText_1mv0n_863{text-align:center}._title_1mv0n_867{font-size:1.8rem;font-weight:600;color:#2c3e50;margin:0}._subTitle_1mv0n_874{font-size:1.2rem;color:#34495e;margin:0}._annotationPrompt_1mv0n_880{font-size:1rem;font-style:italic;color:#7f8c8d;margin-top:8px}@keyframes _fadeIn_1mv0n_1{0%{opacity:0}to{opacity:1}}._modal__header_1etzt_1{color:#292929;font-size:1.25rem;font-style:normal;font-weight:600;line-height:normal;display:flex;height:3rem;padding:1rem;justify-content:space-between;align-items:center;width:100%;border-bottom:1px solid #eaebee}._modalButtonsContainer_1etzt_16{display:flex;gap:1rem;justify-content:flex-end;margin-top:1rem;padding:1rem;border-top:1px solid #eaebee}._genericModalBody_1etzt_25{padding:1rem}._fixHeightScroll_1etzt_29{max-height:80vh;overflow:scroll;height:75vh}._genericModalRow_1etzt_35{display:flex;justify-content:space-between;align-items:center;margin-top:10px;gap:2rem}@media screen and (max-width: 1024px){._genericModalRow_1etzt_35{flex-direction:column;align-items:flex-start;gap:5px;margin-top:2rem}}@media (max-width: 1300px){._genericModalRow_1etzt_35{flex-direction:column;align-items:flex-start;gap:5px;margin-top:1rem}}._modal_1etzt_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;width:max-content;min-width:30vw;z-index:14;max-width:70vw}@media screen and (max-width: 991px){._modal_1etzt_1{max-width:90vw!important}}._modal__close_button_1etzt_75{display:flex;align-items:center;justify-content:center}._detailsModal_1etzt_81{background-color:#fff;width:100%}._modal__row__cell_1etzt_86{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;gap:2rem;color:#000}._modal__row__label_1etzt_95{font-weight:500;color:#000}._modal__row__option_1etzt_100{display:flex;align-items:center;gap:.5rem;min-width:24rem;max-width:50rem}@media screen and (max-width: 1024px){._modal__row__option_1etzt_100{min-width:100%}}@media (max-width: 1300px){._modal__row__option_1etzt_100{min-width:100%}}._modalButton_1etzt_16{display:flex;width:7.5rem;height:2rem;padding:10px 20px;justify-content:center;align-items:center;gap:8px;flex-shrink:0}._modalFooter_1etzt_129{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:1rem;padding:1rem;height:3rem}._modalFooter_1etzt_129._column_1etzt_138{flex-direction:column;align-items:stretch}._modalFooter_1etzt_129._borderTop_1etzt_142{border-top:1px solid #e0e0e0}._leftButtons_1etzt_146,._centerButtons_1etzt_147,._rightButtons_1etzt_148{display:flex;gap:.5rem}._rightWrapper_1etzt_153{display:flex;align-items:center;gap:1rem}._children_1etzt_159{display:flex;align-items:center}._boldLabel_1etzt_164{font-weight:700}._notification__modal_1etzt_168{max-width:430px;width:70vw;max-height:50vh;overflow:scroll;background-color:#fff;z-index:12;position:absolute;right:0;top:30px}._notification__modal__header_1etzt_179{display:flex;justify-content:space-between;align-items:center;font-size:20px}._notification__modal__header__readbutton_1etzt_185{color:var(--c_text_primary, var(--awi-color-text-primary))!important;border-radius:8px;font-size:14px;text-decoration:underline;text-underline-position:under;cursor:pointer}._notification__modal__content_1etzt_193{margin-top:20px;display:flex;flex-direction:column;gap:10px}._notification__modal__content__notification_1etzt_199{padding:5px 10px;border-bottom:1px solid #d9d8d8;margin-top:6px}._notification__modal__content__notread_1etzt_204{background-color:#f8fbff}._notification__modal__filter_1etzt_207{display:flex;justify-content:center;gap:12px;margin-bottom:12px;margin-top:20px}._notification__modal__filter_1etzt_207 ._filterTab_1etzt_214{height:36px;width:150px;display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;font-weight:500;background-color:#f0f0f0;color:#333;transition:background-color .2s ease-in-out,color .2s ease-in-out,box-shadow .2s ease-in-out}._notification__modal__filter_1etzt_207 ._filterTab_1etzt_214:hover{background-color:#e0e0e0}._notification__modal__filter_1etzt_207 ._filterTab_1etzt_214._active_1etzt_230{background-color:var(--c_text_primary, var(--awi-color-text-primary))!important;color:#fff;font-weight:600;box-shadow:0 4px 6px #008f114d}._notification__modal__footer_1etzt_236{display:flex;justify-content:flex-end;margin-top:12px;text-decoration:underline;color:var(--c_text_primary, var(--awi-color-text-primary))!important}._notification__backdrop_1etzt_243{top:0;left:0;position:fixed;width:100vw;height:100vh;background-color:#0006;z-index:11}._rightPopup_1etzt_253{right:2%;left:auto;transform:translateY(-50%);z-index:14}._closeIcon_1etzt_260{cursor:pointer;height:30px;width:30px}._generic-library-button_1etzt_266:active{background-color:inherit!important}._draggableHeader_1etzt_270{cursor:move;-webkit-user-select:none;user-select:none;z-index:999}._backdrop_iv22p_1{top:0;left:0;position:fixed;width:100vw;height:100vh;background-color:#0006;z-index:11}._backdrop__transparent_iv22p_10{background-color:#000;opacity:.5;z-index:2}._cursorPointer_iv22p_16{cursor:pointer}.icon_svg{width:100%;height:100%}.icon.size_xs{width:16px;height:16px}.icon.size_s{width:20px;height:20px}.icon.size_m{width:24px;height:24px}.icon.size_l{width:32px;height:32px}.icon.size_xl{width:48px;height:48px}.icon.size_full{width:100%;height:100%}.spinner{animation:spin .5s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.button{display:flex;align-items:center;cursor:pointer;position:relative;border:none;outline-width:1px;outline-style:solid;border-radius:500px;background-color:unset;outline-color:var(--c_button_border, var(--awi-color-button-border));color:var(--c_button_text, var(--awi-color-button-text))}.button:after{content:"";position:absolute;z-index:0;width:100%;height:100%;top:0;left:0;border-radius:500px;background-color:var(--c_button_bg, var(--awi-color-button-background))}.button.before{flex-direction:row}.button.after{flex-direction:row-reverse}.button.primary:after{filter:opacity(.1)}.button.primary:hover:after{filter:opacity(.2)}.button.primary:active:after{filter:opacity(1)}.button.secondary:after{filter:opacity(.1)}.button.secondary:hover:after{filter:opacity(.15)}.button.secondary:active:after{filter:opacity(.2)}.button.tertiary:after{filter:opacity(0)}.button.tertiary:hover:after{filter:opacity(.1)}.button.tertiary:active:after{filter:opacity(.2)}.button.nav:after{filter:opacity(0)}.button.nav:hover:after{filter:opacity(.1)}.button.nav:active:after{filter:opacity(.2)}.button.disabled:after{background-color:var(--awi-color-common-disabled, #f5f4f4)}.button.disabled.primary:after,.button.disabled.secondary:after{filter:opacity(1)}.button.disabled.tertiary:after,.button.disabled.nav:after{filter:opacity(0)}.button.disabled{cursor:no-drop;color:var(--awi-color-text-disabled, #767676);outline-color:var(--awi-color-common-disabled, #dedede)}.button.disabled.primary,.button.disabled.primary:hover,.button.disabled.primary:active{outline-width:1px}.button.disabled.secondary,.button.disabled.secondary:hover,.button.disabled.secondary:active,.button.disabled.tertiary,.button.disabled.tertiary:hover,.button.disabled.tertiary:active,.button.disabled.nav,.button.disabled.nav:hover,.button.disabled.nav:active{outline-width:0px}.button.disabled.primary,.button.primary{outline-width:1px}.button.tertiary,.button.secondary{outline-width:0px}.button.secondary:hover,.button.secondary:active{outline-width:1px}.button.nav,.button.nav:hover{outline-width:0px}.button.nav:active{outline-width:1px}.button>p,.button>svg{z-index:2;pointer-events:none}.button.size_s{--button_height: 2rem;height:var(--button_height);padding:8px 16px}.button.size_m{--button_height: 2.5rem;height:var(--button_height);padding:10px 18px}.button.size_l{--button_height: 3rem;height:var(--button_height);padding:12px 20px}.button.size_s{padding:0 8px}.button.size_m{padding:0 9px}.button.size_l{padding:0 10px}.button.size_s.icon_button{--button_height: 2rem;height:var(--button_height);width:var(--button_height);padding:8px}.button.size_m.icon_button{--button_height: 2.5rem;height:var(--button_height);width:var(--button_height);padding:10px}.button.size_l.icon_button{--button_height: 3rem;height:var(--button_height);width:var(--button_height);padding:12px}.button>.text_xs{font-size:var(--awi-size-text-xs, 12px);line-height:12px}.button>.text_s{font-size:var(--awi-size-text-s, 14px);line-height:16px}.button>.text_m{font-size:var(--awi-size-text-m, 16px);line-height:20px}.button>.text_l{font-size:var(--awi-size-text-l, 20px);line-height:24px}.button>.text_xl{font-size:var(--awi-size-text-xl, 22px);line-height:28px}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;cursor:pointer}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-runnable-track{background-color:var(--awi-color-common-themeColor, #6f29a9);border-radius:1rem;height:.5rem}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-top:-4px;background-color:var(--awi-color-common-themeColor, #6f29a9);height:1rem;width:1rem;border-radius:50%}input[type=range]::-moz-range-track{background-color:var(--awi-color-common-themeColor, #6f29a9);border-radius:.5rem;height:.5rem}input[type=range]::-moz-range-thumb{border:none;border-radius:0;background-color:var(--awi-color-common-themeColor, #6f29a9)}input[type=range]:focus::-moz-range-thumb{border:1px solid var(--awi-color-common-themeColor, #6f29a9);outline:3px solid var(--awi-color-common-themeColor, #6f29a9);outline-offset:.125rem}._sliderRow_s1edt_57{display:flex;align-items:center;gap:16px;justify-content:space-between;cursor:pointer;width:100%}._sliderContainer_s1edt_66{display:flex;align-items:center;gap:8px;flex:1}._sliderContainer_s1edt_66 input[type=range]{flex:1;cursor:pointer}._valueContainer_s1edt_78{display:flex;align-items:center;gap:8px}._valueContainer_s1edt_78 input[type=number]{width:60px;padding:4px;font-size:14px;text-align:center;border:1px solid #ccc;border-radius:4px;outline:none}._valueContainer_s1edt_78 input[type=number]:focus{border-color:#008f11;box-shadow:0 0 4px #008f1180}._valueContainer_s1edt_78 ._unit_s1edt_99{font-size:14px;color:#666}._sliderRow_s1edt_57 label{font-size:14px;font-weight:600;color:#333;margin-right:8px}._common_styles__input_1aa4m_1{display:flex;background-color:transparent;height:32px;padding:4px 16px;align-items:center;flex-shrink:0;border-radius:100px;background:#2929291a}._common_styles__input_1aa4m_1 input{background-color:transparent;width:100%;box-sizing:border-box;border:0!important;color:#000;padding:4px 6px;text-transform:capitalize}._common_styles__input_1aa4m_1 input:focus{outline:none}._common_styles__input_1aa4m_1 img{width:12px;height:12px}._common_styles__drop_down_1aa4m_29{position:absolute;background-color:#fff;box-shadow:0 4px 8px #312a2a38;list-style:none;bottom:0;width:100%;box-sizing:border-box;max-height:200px;overflow:auto;z-index:2;transform:translateY(100%);cursor:pointer}._common_styles__drop_down_1aa4m_29 li{text-transform:capitalize;padding:8px 12px;text-align:left;font-size:12px}._common_styles__drop_down_1aa4m_29 li:hover,._common_styles__drop_down__selected_1aa4m_52{background-color:#f2f2f2}._common_styles__backdrop_1aa4m_55{position:fixed;width:100%;height:100%;top:0;left:0;z-index:1}._customConfirmationWrapper_11wic_5{cursor:pointer}._annotation_1trm0_2{display:flex;height:100%;box-sizing:border-box;justify-content:space-between;position:relative}._annotation__tool_1trm0_9{width:71.2%;display:flex;flex-direction:column;justify-content:space-between;height:100%}._annotation__tool__mobile_1trm0_16{width:unset;flex-direction:column}._annotation__tool__icons_1trm0_20{display:flex;flex-direction:column;width:100%;align-items:center}._annotation__tool__icons_1trm0_20>*{display:flex;align-items:center;gap:12px}._annotation__tool__icons__selected_1trm0_31{background-color:rgba(var(--awi-color-common-themeColor, #6f29a9),.2);border-radius:50%;opacity:.9}._annotation__tool__icons__disabled_1trm0_36{opacity:.3}._annotation__tool__image_previewer_1trm0_39{display:flex;flex-direction:column;width:100%;height:100%}._annotation__tool__image_previewer_1trm0_39>div{width:100%;height:100%}._annotation__details_1trm0_49{flex:1;height:100%;position:relative}._annotation__details_container_1trm0_54{position:sticky;background-color:#fff;top:0;z-index:1}._annotation__details_1trm0_49 button{border:0}._annotation__details_1trm0_49 button:focus{outline:none}._annotation__details__current_1trm0_66{display:flex;width:100%;padding:12px 24px;justify-content:space-between;align-items:center;border:.1rem solid #ebeaea;font-size:12px;font-family:Open Sans,sans-serif;line-height:1.2}._annotation__details__current__actions_1trm0_77{width:12px;height:12px;border-radius:50%;position:relative;flex-shrink:0;display:flex;align-items:center}._annotation__details__current__accordion_1trm0_86{padding:12px;background-color:#f5f5f5}._annotation__details__current__accordion__button_1trm0_90{margin-left:auto;padding:4px 14px;border-radius:11.5px;width:max-content;color:var(--awi-color-common-themeColor, #6f29a9);border:1px solid var(--awi-color-common-themeColor, #6f29a9)!important;background-color:#fff;display:block;margin-top:8px}._annotation__details__current__accordion__button_1trm0_90:focus{outline:none}._annotation__details__current__icons_1trm0_104{display:flex;gap:8px}._annotation__details__current__icons__rotate_1trm0_108{transform:rotate(180deg)}._annotation__details__annotation_container_1trm0_111{display:flex;flex-direction:column;flex:1;overflow-y:scroll;max-height:71vh;padding-bottom:0;height:71vh;background-color:#fff}._request__info_1trm0_122{position:relative;display:flex;align-items:center;justify-content:center}._request__info__label_1trm0_128{display:flex;align-items:center;gap:5px}._request__info__modal_1trm0_133{position:absolute;top:30px;left:16px;background-color:#fff;box-shadow:2px 2px 8px #0003;width:max-content;min-width:400px;max-width:800px;padding:10px 20px;z-index:12}._request__info__modal__refbutton_1trm0_145{margin-left:auto;padding:4px 14px;border-radius:11.5px;width:max-content;color:var(--awi-color-common-themeColor, #6f29a9);border:1px solid var(--awi-color-common-themeColor, #6f29a9)!important;background-color:#fff;display:block;margin-top:16px}._request__info__modal__refbutton_1trm0_145:focus{outline:none}._reference__image__modal_1trm0_160{position:fixed;bottom:50%;left:50%;padding:32px;z-index:12;transform:translate(-50%)}._complete__session_1trm0_169{position:sticky;padding:5px;background-color:#f5f5f5;bottom:0;display:flex;align-items:center;gap:20px}._complete__session__button_1trm0_178{padding:4px 14px;border-radius:11.5px;width:max-content;color:#fff;border:1px solid var(--awi-color-common-themeColor, #6f29a9)!important;background-color:var(--awi-color-common-themeColor, #6f29a9);margin-left:8px;cursor:pointer}._complete__session__button_1trm0_178:focus{outline:none}._info__button_1trm0_192{position:absolute;bottom:10px;right:10px;background-color:#f5f5f5}._actions__modal_1trm0_199{position:absolute;z-index:2;width:180px;background:#fff;box-shadow:0 1px 3px #554f4f40;border-radius:4px;right:0;display:flex;justify-content:space-evenly;flex-direction:row;align-items:center}._actions__modal_1trm0_199 ul{padding:0;margin:0;list-style:none}._actions__modal_1trm0_199 ul li{padding:10px;cursor:pointer;font-size:16px;border-bottom:1px solid #d9d9d9}._actions__modal_1trm0_199 ul li:hover{background-color:#f5f5f5}._backdrop_1trm0_227{top:0;left:0;position:fixed;width:100vw;height:100vh;background-color:#0006;z-index:11}._backdrop__transparent_1trm0_236{background-color:#000;opacity:.5;z-index:2}._short__cut__modal_1trm0_242{z-index:15;background-color:#fff;position:absolute;width:max-content;right:25px;bottom:25px;border:1px solid black}._completeSessionWrapper_1trm0_252{display:flex;flex-direction:column;align-items:center;width:100%}._completeSessionLabel_1trm0_259{font-size:1.1rem;font-weight:600;color:#000;margin-bottom:.5rem}._completeSessionButtons_1trm0_266{gap:2rem;display:flex;justify-content:center;width:90%;align-items:center}._completeSessionButton_1trm0_266{padding:.5rem 1.5rem;font-size:1rem;font-weight:500;border:none;border-radius:6px;cursor:pointer;transition:background-color .3s ease,transform .2s ease}._completeSessionButton_1trm0_266:disabled{cursor:not-allowed;opacity:.6}._nextBatchButton_1trm0_290{background-color:var(--success);border:2px solid #34a073!important;width:100%}._nextBatchButton_1trm0_290:hover:not(:disabled){background-color:#34a073;transform:scale(1.02)}._closeSessionButton_1trm0_301{background-color:var(--danger);border:2px solid #c94444!important;width:100%}._closeSessionButton_1trm0_301:hover:not(:disabled){background-color:#c94444;transform:scale(1.02)}._pageNumber_1trm0_312:hover{color:var(--awi-color-common-themeColor, #6f29a9)}._fullscreen_toggle_container_1trm0_323{display:flex;justify-content:center;padding:10px;background:var(--awi-color-common-themeColor, #6f29a9);color:#fff;transition:background-color .3s ease,transform .2s ease;cursor:pointer}._fullscreen__toggle_1trm0_333:hover{background-color:var(--awi-color-common-themeColor, #6f29a9);transform:scale(1.05)}._fullscreen__toggle_1trm0_333:focus{outline:none;box-shadow:0 0 10px #008f1180}._fullscreen__toggle_1trm0_333:active{transform:scale(1)}._slider_1trm0_347{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}._slider_1trm0_347:before{position:absolute;content:"";height:12px;width:12px;left:1px;bottom:2px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input:checked+._slider_1trm0_347{background-color:var(--awi-color-common-themeColor, #6f29a9)}input:focus+._slider_1trm0_347{box-shadow:0 0 1px var(--awi-color-common-themeColor, #6f29a9)}input:checked+._slider_1trm0_347:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translate(26px)}._slider_1trm0_347._round_1trm0_386{border-radius:34px}._slider_1trm0_347._round_1trm0_386:before{border-radius:50%}._switch_1trm0_402{position:relative;display:inline-block;width:40px;height:15px}._switch_1trm0_402 input{opacity:0;width:0;height:0}._pageNumber_1trm0_312{font-size:1rem;margin:0 .5rem;cursor:pointer;transition:color .3s,font-weight .3s}._pageNumber_1trm0_312:hover,._requestName_1trm0_425{color:var(--awi-color-common-themeColor, #6f29a9)}._annotationScreenHeader_1trm0_429{font-size:1.5rem;font-style:normal;line-height:normal;letter-spacing:-1.28px;text-transform:capitalize}._resetAndNoAnnotationsDiv_1trm0_437{display:flex;height:93%;width:100%;justify-content:center;align-items:center;background:#fff}._pagination_1trm0_446{display:none;height:0;opacity:0;visibility:hidden;transition:height .3s ease,opacity .3s ease,visibility 0s ease .3s}._pagination_1trm0_446._open_1trm0_454{display:block;height:auto;opacity:1;visibility:visible;transition:height .3s ease,opacity .3s ease,visibility 0s ease 0s}._pagination__icon_1trm0_462{cursor:pointer;opacity:.7;transition:opacity .3s,transform .3s;display:flex;align-items:center;justify-content:center}._pagination__icon_1trm0_462:hover{opacity:1;transform:scale(1.1)}._pagination__icon_1trm0_462._disabled_1trm0_474{opacity:.3;pointer-events:none}._pagination__container_1trm0_479{display:flex;align-items:center;justify-content:space-between;gap:10px;height:120px}@media screen and (max-width: 768px){._pagination__container_1trm0_479{height:60px}}@media screen and (min-device-width: 768px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2){._pagination__container_1trm0_479{height:60px}}._pagination__icon__left_1trm0_498,._pagination__icon__right_1trm0_499{transform:none;width:max-content;margin:0}._pagination__images_1trm0_505{display:flex;flex-direction:row;align-items:center;gap:12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#ccc transparent;max-width:80%;justify-content:flex-start}._pagination__images_1trm0_505::-webkit-scrollbar{height:6px}._pagination__images_1trm0_505::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:3px}._pagination__images_1trm0_505>div{background-size:cover;background-repeat:no-repeat;aspect-ratio:1/1;min-width:100px;height:100px}._undoAnnotationCount_1trm0_532{position:absolute;top:0;right:0;background-color:red;color:#fff;border-radius:50%;width:18px;height:18px;display:flex;justify-content:center;align-items:center;font-size:.72rem;font-weight:700}._annotationIconDiv_1trm0_548{display:flex;align-items:center;justify-content:center;width:30px;height:30px;color:#000}._annotationIcon_1trm0_548{width:25px!important;height:25px!important;cursor:pointer!important}._annotationIconPartition_1trm0_563{display:flex;justify-content:center;align-items:center;padding-bottom:7px;padding-top:7px}._partitionLine_1trm0_571{width:80%;height:2px;background-color:#e4e0e6;margin:8px auto}@media screen and (max-width: 768px){._partitionLine_1trm0_571{display:none;width:2px!important;height:80%!important;margin:auto 8px!important}}@media screen and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2){._partitionLine_1trm0_571{display:none;width:2px!important;height:80%!important;margin:auto 8px!important}}._correctButton_1trm0_595{border:1px solid #5db772;border-radius:25px;background:rgba(var(--awi-color-common-themeSystemAcceptColor, #5db772),.1);display:flex;padding:2px 10px;justify-content:center;align-items:center;gap:10px}._rejectButton_1trm0_607{border-radius:25px;border:1px solid var(--awi-color-common-themeSecondaryButtonColor, #ff2540);background:#ff25401a;display:flex;padding:5px 17px;justify-content:center;align-items:center;gap:10px}._card_eye_1trm0_618{position:absolute;top:8px;right:8px;background-color:#00000080;border-radius:50%;border:none;width:28px;height:28px;display:flex;justify-content:center;align-items:center;cursor:pointer;z-index:1}._table_q0jcp_1{width:100%;padding:12px;overflow:auto;border-collapse:collapse}._table_q0jcp_1 th{position:relative;width:max-content;color:#000}._table_q0jcp_1 th:first-child{border-radius:4px 0 0 4px}._table_q0jcp_1 th:last-child{border-radius:0 4px 4px 0}._table__header_q0jcp_18{background-color:#f8f8f8;border-radius:4px;border:1.1px solid #bcbdbf;font-weight:600}._table__header__th_q0jcp_24{padding:12px;color:#181616;font-size:13px;line-height:1.17;font-weight:400;font-family:Open Sans,sans-serif;text-transform:uppercase;text-align:left}._table__header__th_q0jcp_24 span{display:block;width:inherit}._table__row_q0jcp_38{font-size:14px;border:1px solid #eaebee;background-color:#fff;color:#000}._table__row__row_selected_q0jcp_44{background:#eff7ff!important}._table__row__td_q0jcp_47{background-color:inherit;padding:12px;text-align:left;box-sizing:border-box;text-transform:capitalize}._table__row__td_q0jcp_47 span{display:block;overflow:hidden;word-break:break-word;overflow-wrap:break-word;max-width:max(300px,40vw);white-space:normal;width:max-content;min-width:none}._table__row_q0jcp_38:hover{background-color:#f2f2f2}._clickable_q0jcp_68{cursor:pointer;text-decoration:underline}._loadMoreButton_q0jcp_73{background-color:var(--awi-color-common-themeColor, #6f29a9);color:#fff}._loadMoreButtonDiv_q0jcp_78{display:flex;justify-content:center;margin-top:16px}._table_container_q0jcp_84{max-width:100%;max-height:70vh;overflow-y:auto;height:70vh;width:100%}._scrollable_table_q0jcp_92{width:100%;border-collapse:collapse!important}._scrollable_table_q0jcp_92 thead th{position:sticky;top:-.008vh;z-index:1;background-color:#fff}._pagination_container_q0jcp_104{display:flex;align-items:center;gap:8px;margin-top:16px;justify-content:space-between;margin-right:12px;margin-left:12px}._pagination_container_q0jcp_104 ._pagination_btn_q0jcp_113{padding:8px 12px;border:1px solid #ccc;background:#fff;color:#000;cursor:pointer;transition:background .3s,color .3s;border-radius:4px}._pagination_container_q0jcp_104 ._pagination_btn_q0jcp_113:hover{background:var(--awi-color-common-themeColor, #6f29a9);color:#fff}._pagination_container_q0jcp_104 ._pagination_btn_q0jcp_113:disabled{cursor:not-allowed;opacity:.5}._pagination_container_q0jcp_104 ._pagination_btn_q0jcp_113._active_q0jcp_130{background:var(--awi-color-common-themeColor, #6f29a9);color:#fff;font-weight:700}._pagination_container_q0jcp_104 ._pagination_dots_q0jcp_135{padding:0 8px;font-weight:700;color:#555}._pagination_container_q0jcp_104 ._pagination_input_q0jcp_140{display:flex;align-items:center;gap:4px}._pagination_container_q0jcp_104 ._pagination_input_q0jcp_140 input{width:80px;padding:6px;border:1px solid #ccc;border-radius:4px;text-align:center}._pagination_container_q0jcp_104 ._pagination_input_q0jcp_140 button{padding:6px 10px;border:none;background:var(--awi-color-common-themeColor, #6f29a9);color:#fff;cursor:pointer;border-radius:4px;transition:background .3s}._pagination_container_q0jcp_104 ._pagination_input_q0jcp_140 button:hover{background:var(--awi-color-common-themeColor, #6f29a9)}._nextPrevArrow_q0jcp_165{display:flex;width:48px;padding:10px 16px;justify-content:center;align-items:center;gap:8px;border-radius:100px;background:#2929291a}._nextPrevArrow_q0jcp_165:hover{background:#29292933}._pagination_left_q0jcp_179{display:flex;width:65px;padding:10px 16px;justify-content:center;align-items:center;gap:8px;border-radius:100px 0 0 100px;background:#2929291a;height:33.7px}._pagination_right_q0jcp_191{display:flex;width:56px;padding:10px 16px;justify-content:center;align-items:center;gap:8px;border-radius:0 100px 100px 0;background:#29292933;height:33.7px;font-size:13px}._pagination_loading_q0jcp_204{display:flex;padding:10px 16px;justify-content:center;align-items:center;gap:8px;border-radius:100px;background:#29292933;height:33.7px;font-size:13px}._canvas_145op_1{background-repeat:no-repeat;background-size:contain;margin:0 auto;display:flex;transform-origin:0 0}._canvasContainer_145op_9{width:max-content;height:max-content;position:relative;justify-content:center;display:flex;align-items:center}._canvasSubContainer_145op_18{overflow-y:hidden;overflow-x:hidden;position:relative}._message__container_u7nyp_1{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:16px;margin:auto;padding-top:100px;padding-bottom:45px;width:100%;height:100%;overflow:hidden}._message__container__icon_u7nyp_15{width:25%;object-fit:contain}._message__container__title_u7nyp_19{font-size:27px;font-weight:400;color:gray}._message__container__title__success_u7nyp_24{color:#48985f}._message__container__description_u7nyp_27{font-size:24px}._message__container__loading_u7nyp_31{animation:_pulse_u7nyp_1 1.6s ease-in-out infinite;width:80%}@keyframes _pulse_u7nyp_1{0%,80%{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.02)}}._tableBar_103oy_1{display:flex;align-items:center;justify-content:space-between;padding:.5rem;background-color:#fff;border:1px solid #909090;max-width:100%;overflow:auto;height:56px;min-height:56px}._tableBar_103oy_1 ._buttonGroup_103oy_13{display:flex;gap:10px;overflow:auto}._tableBar_103oy_1 ._buttonGroup_103oy_13 button{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:14px;border:0px;min-width:120px;border-radius:25px;cursor:pointer;transition:all .2s ease-in-out;width:auto}._tableBar_103oy_1 ._buttonGroup_103oy_13 button:hover{background-color:#29292933}._tableBar_103oy_1 ._buttonGroup_103oy_13 button ._btnIcon_103oy_34{width:15px;height:15px}._tableBar_103oy_1 ._buttonGroup_103oy_13 text{cursor:none}._tableBar_103oy_1 ._searchBar_103oy_41{width:250px;padding:10px;border:0px;outline:none;background-color:#2929291a;border-radius:25px;display:flex;justify-content:space-between;align-items:center}._tableBar_103oy_1 ._searchBar_103oy_41 ._searchInput_103oy_53{height:100%;background-color:transparent;border:transparent}._tableBar_103oy_1 ._searchBar_103oy_41 ._searchIcon_103oy_58{position:absolute;right:0}._removeBorder_103oy_63{border:0}._button_103oy_13{display:flex;justify-content:center;align-items:center;color:#000c}._isSelected_103oy_74{border-radius:100px!important;border:1px solid #6f29a9!important;background:#6f29a933!important}._isDisabled_103oy_80{background:#2626261a!important;cursor:not-allowed!important}._isActive_103oy_85{background:#6f29a91a!important}._isActive_103oy_85:hover{background:#6f29a94d!important}._isText_103oy_92{cursor:default!important}._isText_103oy_92:hover{background-color:#29292933!important}input:focus,select:focus,option:focus{outline:none}.badge{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;box-sizing:border-box;background-color:var(--c_background, var(--awi-color-badge-background))}.badge_l{height:var(--awi_font_l, var(--awi-size-text-l));padding:5.5px 3px;gap:10px;color:var(--c_text, var(--awi-color-badge-text));text-align:center;font-size:var(--awi_font_s, var(--awi-size-text-s));font-style:normal;font-weight:var(--awi_font_weight_s, var(--awi-weight-text-s));line-height:normal}.badge_m{height:var(--awi_font_m, var(--awi-size-text-m));padding:5.5px 3px;gap:10px;flex-shrink:0;color:var(--c_text, var(--awi-color-badge-text));text-align:center;font-size:var(--awi_font_s, var(--awi-size-text-s));font-style:normal;font-weight:var(--awi_font_weight_s, var(--awi-weight-text-s));line-height:normal}.badge_dot{width:8px;height:8px;min-width:8px;min-height:8px;padding:0}.button_group{display:flex;flex-direction:row;align-items:center}.button_group_button.active{outline-width:1px!important}.button_group_button.active:after{filter:opacity(.2)}.button_group_button{outline-width:0px!important;padding:0 1rem!important}.button_group_button,.button_group_button:after{border-radius:0}.button_group_button.first,.button_group_button.first:after{border-radius:500px 0 0 500px}.button_group_button.last,.button_group_button.last:after{border-radius:0 500px 500px 0}.button_group_button.first.last,.button_group_button.first.last:after{border-radius:500px}.compact_event_card{-webkit-user-select:none;user-select:none;position:relative;display:flex;justify-content:flex-start;align-items:center;background-color:var(--c_surface_primary);border:1px solid var(--c_surface_primary_border);z-index:1}.compact_event_card.focused{outline:2px solid var(--c_focused_border_color)}.compact_event_card>img{height:100%;width:40%;min-width:40%;max-width:40%;background-color:var(--c_surface_secondary);object-fit:contain}.compact_event_card .status_indicator{position:absolute;top:0;right:0;width:100%;height:100%;filter:opacity(.2);background-color:var(--c_data_color);z-index:-1}.compact_event_card .compact_event_card_content{display:flex;justify-content:space-between;align-items:flex-start;flex-direction:column;width:60%;height:100%}.compact_event_card .compact_event_card_content>header{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:2% 4%;border-bottom:1px solid var(--awi-color-surface-border-primary, var(--c_surface_primary_border))}.compact_event_card .compact_event_card_content>header>h6{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%}.compact_event_card .compact_event_card_details{display:flex;justify-content:space-between;align-items:center;width:100%;padding:2% 4%;flex-grow:1;flex-wrap:wrap}.compact_event_card .compact_event_card_details>h6{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%}.compact_event_card .compact_event_card_details>span{display:flex;flex-direction:column;justify-content:center;gap:2%;width:50%}.compact_event_card .compact_event_card_details>span>p{text-transform:uppercase;font-size:var(--awi-size-text-xs, var(--awi-size-text-s, var(--font_s)));white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.compact_event_card .compact_event_card_details>span>h6{font-size:var(--awi-size-text-s, var(--awi-size-text-s, var(--font_s)));white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:var(--awi-weight-text-m, 300);font-size:var(--awi-size-text-s, 14px);font-family:DM Mono,monospace}.compact_event_card .compact_event_card_content>footer{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;width:100%;padding:2% 4%;height:20%;color:var(--c_text_primary)}.compact_event_card .compact_event_card_content>footer>.status_indicator{z-index:2}.compact_event_card .compact_event_card_content>footer>p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-transform:uppercase;font-weight:var(--awi-weight-text-m, 300);font-size:var(--awi-size-text-s, 14px);font-family:DM Mono,monospace}.compact_event_card .compact_event_card_content>div{word-break:break-all;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.compact_event_card .compact_event_card_checkbox{position:absolute!important;top:.5rem;right:.5rem;z-index:10}.compact_event_card .compact_event_card_bookmark{position:absolute;top:.25rem;left:.25rem;z-index:10;height:1rem;width:1rem;max-height:1rem;max-width:1rem}.compact_event_card_new{-webkit-user-select:none;user-select:none;position:relative;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;background-color:var(--awi-color-surface-primary, var(--c_surface_primary));border:1px solid var( --awi-color-compactEventCard-borderColor, var(--c_surface_primary_border) );z-index:1}.compact_event_card_new.focused{outline:var( --awi-color-compactEventCard-focusedBorderThickness, var(--c_focused_border_thickness) ) solid var( --awi-color-compactEventCard-focusedBorderColor, var(--c_focused_border_color) )}.compact_event_card_new>img{height:80%;min-height:80%;max-height:80%;width:40%;min-width:40%;max-width:40%;background-color:var( --awi-color-surface-fill-secondary, var(--c_surface_secondary) );border-right:1px solid var(--awi-color-surface-border-primary, var(--c_surface_primary_border));object-fit:contain}.compact_event_card_new .status_indicator{position:absolute;top:0;right:0;width:100%;height:100%;filter:opacity(.2);z-index:-1;background-color:var(--c_data_color)}.compact_event_card_new .compact_event_card_content{display:flex;flex-direction:column;justify-content:space-between;width:60%;height:80%}.compact_event_card_new .event_element{display:flex;justify-content:flex-start;align-items:center;gap:.25rem;width:100%;flex-grow:1;padding:2% 4%}.compact_event_card_new .event_element>p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.compact_event_card_new .event_element>.icon{aspect-ratio:1!important;height:60%;min-height:.25rem;max-height:1.5rem;min-width:1.5rem}.compact_event_card_new .severity_section{position:relative;border-right:.5rem solid var(--c_data_color)}.compact_event_card_new .compact_event_card_content>.event_element>p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:var(--awi-weight-text-m, 300);font-size:75%;font-family:Inter,sans-serif}.compact_event_card_new .severity_section.event_element>p{text-transform:capitalize;color:var(--c_data_color)}.compact_event_card_new .compact_event_card_checkbox{position:absolute!important;top:.5rem;right:.5rem;z-index:10}.compact_event_card_new .compact_event_card_bookmark{position:absolute;top:.25rem;left:.25rem;z-index:10;height:1rem;width:1rem;max-height:1rem;max-width:1rem}.compact_event_card_new>.event_element{gap:.5rem;padding:1% 2%;border-bottom:1px solid var(--awi-color-surface-border-primary, var(--c_surface_primary_border))}.input_wrapper{display:flex;align-items:center;position:relative;border:none;box-sizing:border-box;gap:8px;border-radius:25px;background-color:var( --c_input_background, var(--awi-color-input-background) );--input_box_height_s: 2rem;--input_box_height_m: 2.5rem;--input_box_height_l: 3rem;--input_box_padding_s: 0 1rem;--input_box_padding_m: 0 1rem;--input_box_padding_l: 0 1.5rem}.input_wrapper.h_s{height:var(--input_box_height_s);padding:var(--input_box_padding_s)}.input_wrapper.h_m{height:var(--input_box_height_m);padding:var(--input_box_padding_m)}.input_wrapper.h_l{height:var(--input_box_height_l);padding:var(--input_box_padding_l)}.input_wrapper:focus-within{outline:1px solid var(--c_input_border)}.input_wrapper.icon_before{flex-direction:row}.input_wrapper.icon_after{flex-direction:row-reverse}.input{border:none;outline:none;background:transparent;text-overflow:ellipsis;overflow:hidden;min-width:0;flex-grow:1;font-size:var(--awi-size-text-s, 14px);color:var(--c_input_text, var(--awi-color-input-text))}.input::placeholder{font-size:var(--awi-size-text-s, 14px);color:var(--c_input_text, var(--awi-color-text-primary))}.icon-wrapper{display:flex;align-items:center;justify-content:center}.input_wrapper.disabled{background-color:var( --c_input_background_disabled, var(--awi-color-common-disabled) );cursor:no-drop}.input_wrapper.disabled>input{cursor:no-drop;color:var(--awi-color-text-disabled, #767676)!important}.single_select_container,.single_select_dropdown{--c_secondary: #292929;--c_text_primary: #292929;--select_height_s: 2rem;--select_height_m: 2.5rem;--select_height_l: 3rem;--select_padding_s: 0rem 1rem;--select_padding_m: 0rem 1rem;--select_padding_l: 0rem 1.5rem}.single_select_container{display:flex;justify-content:center;align-items:center;height:unset}.single_select_container.ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector{background-color:var( --c_trigger_background, var(--awi-color-select-trigger-background) )!important}.single_select_container.disabled .ant-select-selector{background-color:var( --c_disabled, var(--awi-color-common-disabled) )!important}.single_select_container.ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector>.ant-select-selection-item{font-weight:var(--font_weight_m, var(--awi-weight-text-m))!important}.single_select_container>.ant-select-selector{outline:1px solid var(--c_border, var(--awi-color-select-trigger-border))!important;border:none!important;border-radius:100px!important;box-shadow:none!important;color:var(--c_text_primary)!important;background-color:var( --c_trigger_background, var(--awi-color-select-trigger-background) )!important}.single_select_container.h_s>.ant-select-selector{height:var(--select_height_s)!important;padding:var(--select_padding_s)!important}.single_select_container.h_m>.ant-select-selector{height:var(--select_height_m)!important;padding:var(--select_padding_m)!important}.single_select_container.h_l>.ant-select-selector{height:var(--select_height_l)!important;padding:var(--select_padding_l)!important}.single_select_dropdown{z-index:10000;border-radius:20px;box-shadow:unset;padding:0}.single_select_dropdown{outline:1px solid var(--c_border, var(--awi-color-select-menu-border))!important}.single_select_dropdown .ant-select-item-option{display:flex!important;align-items:center!important;background-color:var( --c_menu_background, var(--awi-color-select-menu-background-default) )!important;color:var(--c_text_primary)!important;border-radius:0}.single_select_dropdown .ant-select-item-option-content{display:flex!important;align-items:center!important}.single_select_dropdown.h_s .ant-select-item-option{height:var(--select_height_s)!important;padding:var(--select_padding_s)!important}.single_select_dropdown.h_m .ant-select-item-option{height:var(--select_height_m)!important;padding:var(--select_padding_m)!important}.single_select_dropdown.h_l .ant-select-item-option{height:var(--select_height_l)!important;padding:var(--select_padding_l)!important}.single_select_dropdown .ant-select-item-option>.ant-select-item-option-content>img{max-height:1.5rem}.single_select_dropdown .ant-select-item-option{padding:.3rem .5rem}.single_select_dropdown.items_center .ant-select-item-option-content{justify-content:center!important}.single_select_dropdown.items_start .ant-select-item-option-content{justify-content:flex-start!important}.single_select_dropdown.items_end .ant-select-item-option-content{justify-content:flex-end!important}.single_select_dropdown .ant-select-item-option-selected{background-color:var( --c_menu_active, var(--awi-color-select-menu-background-active) )!important}.single_select_dropdown .ant-select-item-option-active:not(.ant-select-item-option-selected){background-color:var( --c_menu_hover, var(--awi-color-select-menu-background-hover) )!important}.ant-select .ant-select-arrow{padding-right:.75rem;color:var(--c_secondary)}.ant-select-selection-placeholder{font-size:var(--font_s, var(--awi-size-text-s))!important;color:var(--c_text_primary)!important}.single_select_container.items_center .ant-select-selection-item{display:flex!important;align-items:center!important;justify-content:center!important}.single_select_container.items_start .ant-select-selection-item{display:flex!important;align-items:center!important;justify-content:flex-start!important}.single_select_container.items_end .ant-select-selection-item{display:flex!important;align-items:center!important;justify-content:flex-end!important}.single_select_container .ant-select-selection-item{font-size:var(--font_s, var(--awi-size-text-s))!important;color:var(--c_text_primary)!important;background-color:unset!important}.single_select_container .ant-select-selection-item>img{max-height:1.5rem}.contact_input{display:flex;flex-direction:row;align-items:center;gap:.5rem}.ant-picker.ant-picker-range,.ant-picker-dropdown{--c_text_primary: #292929;--c_text_secondary: rgb(110, 110, 110)}.date-range-picker.h_s{height:2rem}.date-range-picker.h_m{height:2.5rem}.date-range-picker.h_l{height:3rem}.ant-picker.ant-picker-range{outline:1px solid var(--c_trigger_border, var(--awi-color-daterangepicker-trigger-border))!important;border:none!important;border-radius:100px!important;box-shadow:none!important;color:var(--c_text_primary)!important;background-color:var( --c_trigger_background, var(--awi-color-daterangepicker-trigger-background) )!important;padding:0 .75rem!important}.ant-picker-cell-range-start>.ant-picker-cell-inner{border-radius:500px 0 0 500px!important;background-color:var( --c_highlight, var(--awi-color-daterangepicker-picker-highlight) )!important}.ant-picker-cell-range-end>.ant-picker-cell-inner{border-radius:0 500px 500px 0!important;background-color:var( --c_highlight, var(--awi-color-daterangepicker-picker-highlight) )!important}.ant-picker-cell-range-end.ant-picker-cell-range-start>.ant-picker-cell-inner{border-radius:500px!important;background-color:var( --c_highlight, var(--awi-color-daterangepicker-picker-highlight) )!important}.ant-picker-cell-today :before{border:1px solid var(--c_highlight, var(--awi-color-daterangepicker-picker-highlight))!important}.ant-picker-cell.ant-picker-cell-range-start.ant-picker-cell-in-view:before{background-color:var( --c_date_range_fill, var(--awi-color-daterangepicker-picker-range) )!important}.ant-picker-cell.ant-picker-cell-range-end.ant-picker-cell-in-view:before{background-color:var( --c_date_range_fill, var(--awi-color-daterangepicker-picker-range) )!important}.ant-picker-cell.ant-picker-cell-in-range.ant-picker-cell-in-view:before{background-color:var( --c_date_range_fill, var(--awi-color-daterangepicker-picker-range) )!important}.ant-picker-time-panel-cell-selected>.ant-picker-time-panel-cell-inner{background-color:var( --c_date_range_fill, var(--awi-color-daterangepicker-picker-range) )!important}.ant-picker-footer>.ant-picker-ranges>.ant-picker-ok>button{background-color:var( --c_highlight, var(--awi-color-daterangepicker-picker-highlight) )!important;color:var(--c_text_primary)!important;border-radius:500px!important}.ant-picker-header>.ant-picker-header-view>button :hover{color:var(--c_text_secondary)!important}.ant-picker-active-bar{background:var( --c_highlight, var(--awi-color-daterangepicker-picker-highlight) )!important}.ant-picker-ranges,.ant-picker-header{border-radius:0!important}.ant-picker-dropdown-range{z-index:10000;border-radius:0!important;border:1px solid var(--c_surface_border, var(--awi-color-daterangepicker-picker-border));padding:0}.ant-picker-range-wrapper{border-radius:0!important}.ant-picker-range-arrow{border:unset!important;border-color:unset!important}.ant-picker-panel-container{border-radius:0!important;background-color:var( --c_surface, var(--awi-color-daterangepicker-picker-background) )!important;box-shadow:unset!important}.ant-picker-panel-layout{color:var(--c_text_primary)!important}.ant-picker-body{border-color:var( --c_surface_border, var(--awi-color-daterangepicker-picker-border) )!important}.ant-picker-content>thead>tr>th,.ant-picker-cell-inner,.ant-picker-time-panel-cell-inner,.ant-picker-header-view,.ant-picker-header-super-prev-btn,.ant-picker-header-prev-btn,.ant-picker-header-next-btn,.ant-picker-header-super-next-btn{color:var(--c_text_primary)!important}.ant-picker-suffix,.ant-picker-clear{color:var(--c_text_secondary)!important}.event_preview_carousel_container{position:relative!important;display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto;width:100%;height:100%;--c_surface_primary_border: #eaebee;--c_surface_secondary: #f3f5f7;--c_surface_primary: #fff;--font_s: 12px;--c_text_primary: #292929;--c_text_secondary: #474747}.event_preview_carousel_container>header{height:3rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--c_surface_primary_border);padding:2% 4%}.event_preview_carousel_container>header>p{font-size:var(--font_s);color:var(--c_text_secondary)}.event_preview_carousel_container .text_s{font-size:12px}.event_preview_carousel_container .carousel_card{min-height:80%;flex-grow:1;overflow-y:auto}.event_preview_carousel_container .carousel_card_images{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--c_surface_primary_border)}.event_preview_carousel_container .carousel_card_images>span:nth-child(odd){border-right:1px solid var(--c_surface_primary_border)}.event_preview_carousel_container .carousel_card_images>span{width:50%;height:10rem;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:var(--font_s)}.event_preview_carousel_container .carousel_card_images>span>img{flex-grow:1;width:100%;height:7rem;object-fit:contain;background-color:var(--c_surface_secondary)}.event_preview_carousel_container .carousel_info_container{display:flex;flex-direction:column;justify-content:center;padding:1.5% 4%;border-bottom:1px solid var(--c_surface_primary_border)}.event_preview_carousel_container .carousel_card_images>span>p{height:2rem;display:flex;justify-content:flex-start;align-items:center}.event_preview_carousel_container .carousel_info_container>p{text-transform:uppercase}.event_preview_carousel_container .object_attributes_container{display:flex;flex-direction:column;padding:2% 4%;gap:.25rem;flex-grow:1}.event_preview_carousel_container .event_preview_carousel_attribute{display:flex;justify-content:space-between;align-items:center;width:100%}.event_preview_carousel_container .event_preview_carousel_attribute>p{max-width:50%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.event_preview_carousel_container .event_preview_carousel_attribute>h6{max-width:50%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.event_preview_carousel_container .event_preview_carousel_footer{width:100%;display:flex;justify-content:center;align-items:center;padding:.5rem;border-top:1px solid var(--c_surface_primary_border);gap:.5rem;height:3rem}.event_preview_window{--c_surface_primary_border: #eaebee;--c_surface_secondary: #f3f5f7;--c_surface_primary: #fff;--font_s: 12px;--c_text_primary: #292929;--c_text_secondary: #474747}.event_preview_window{background-color:var(--c_surface_primary);border:1px solid var(--c_surface_primary_border);border-bottom:unset;display:flex;flex-direction:column}.event_preview_window.empty{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.25rem;padding:1rem}.event_preview_window .event_preview_dialog_header{display:flex;justify-content:flex-start;align-items:center;height:3rem;gap:1rem;border-bottom:1px solid var(--c_surface_primary_border)}.event_preview_window .event_preview_dialog_header_icon{width:3rem;height:100%;background-color:var(--c_surface_primary);border-right:1px solid var(--c_surface_primary_border);font-size:var(--font_s);overflow:hidden}.event_preview_window .event_preview_dialog_header_icon>img{height:100%;width:100%}.event_preview_window .event_preview_dialog_header_content{height:3rem;display:flex;justify-content:flex-start;align-items:center;gap:.25rem;width:69%}.event_preview_window .status_indicator{position:absolute;top:0;right:0;width:100%;height:100%;filter:opacity(.2);z-index:-1}.event_preview_window .event_preview_window_header_container{width:100%;display:flex;justify-content:flex-end;align-items:center;height:3rem;min-height:3rem;border-bottom:1px solid var(--c_surface_primary_border)}.event_preview_window .event_preview_dialog_header_actions{display:flex;justify-content:flex-end;padding:0 1rem}.event_preview_window .event_preview_content_container{display:flex;width:100%;height:calc(100% - 3rem);flex-grow:1}.event_preview_window .event_preview_image_container{position:relative;display:flex;flex-direction:column;width:50%;min-height:100%;max-height:100%;height:100%}.event_preview_window .event_preview_image_container>img{width:100%;flex-grow:1;object-fit:contain;background-color:var(--c_surface_secondary);height:88%;min-height:88%}.event_preview_window .event_preview_image_footer{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--c_surface_primary_border);height:12%;max-height:12%}.event_preview_window .event_preview_image_footer_infoitem{display:flex;flex-direction:column;justify-content:space-around;height:100%;border-right:1px solid var(--c_surface_primary_border);padding:.25rem .5rem;color:var(--c_text_primary)}.event_preview_window .event_preview_image_footer_infoitem>p{text-transform:uppercase;font-size:var(--font_s)}.event_preview_window .event_preview_image_footer_infoitem>h5{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:var(--awi-weight-text-m, 300);font-size:var(--awi-size-text-m, 16px);font-family:DM Mono,monospace}.event_preview_window .event_preview_image_footer_infoitem:nth-child(1){width:20%;position:relative;z-index:1}.event_preview_window .event_preview_image_footer_infoitem:nth-child(1)>h5{text-transform:capitalize}.event_preview_window .event_preview_image_footer_infoitem:nth-child(1)>.hydra_status_indicator{z-index:2}.event_preview_window .event_preview_image_footer_infoitem:nth-child(2){width:40%}.event_preview_window .event_preview_image_footer_infoitem:nth-child(3){width:20%}.event_preview_window .event_preview_image_footer_infoitem:nth-child(4){width:20%;border-right:unset}.event_preview_window .event_preview_content{flex-grow:1;height:100%;width:25%;background-color:var(--c_surface_primary);border-bottom:1px solid var(--c_surface_primary_border);border-right:1px solid var(--c_surface_primary_border);border-left:1px solid var(--c_surface_primary_border)}.event_preview_window .event_preview_other_events_container{width:25%;display:flex;flex-direction:column;height:100%;border-bottom:1px solid var(--c_surface_primary_border)}.event_preview_window .event_preview_other_events{display:flex;flex-direction:column;overflow-y:auto;flex-grow:1}.event_preview_window .event_preview_other_events>div{width:100%}.event_preview_window .event_preview_other_events_container>header{width:100%;height:3rem;min-height:3rem;max-height:3rem;display:flex;justify-content:space-between;padding:0 2%;align-items:center;border-bottom:1px solid var(--c_surface_primary_border);background-color:var(--c_surface_primary)}.event_preview_window .event_preview_other_events_container>header>p{font-size:var(--font_s);color:var(--c_text_secondary)}.event_preview_window .event_preview_other_events_container>footer{height:3rem;padding:.5rem;gap:.5rem;display:flex;align-items:center}.event_preview_window .event_footer_color_legend_container{display:flex;justify-content:flex-start;align-items:center;padding:0 1rem 0 0}.event_preview_window .event_footer_color_legend{display:flex;justify-content:center;align-items:center;gap:.25rem;padding:0 .5rem}.event_preview_window .event_footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;width:100%}.event_preview_window .footer_action_container{display:flex;gap:1rem}.event_preview_window .load_more_container{display:flex;justify-content:center;width:100%}.event_preview_window .share_alerts_dialog{display:flex;flex-direction:column;width:100%;gap:1rem}.event_preview_window .share_alerts_dialog>input{width:100%}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.x_axis_label,.y_axis_label{font-weight:var(--awi-weight-text-s, 300);font-size:var(--awi-size-text-s, 14px);font-family:DM Mono,monospace!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0}.y_axis_label{text-align:end;align-self:center;padding-right:.5rem}.x_axis_label{text-align:center;padding-top:.25rem}.heatmap{background-color:var(--awi-color-heatmap-background);outline:1px solid var(--c_border, var(--awi-color-heatmap-border));cursor:default}.heatmap>table{border-spacing:1px;width:100%;height:100%;min-width:100%;min-height:100%;max-width:100%;max-height:100%}.heatmap>table>tr{display:flex}.heatmap_cell{outline:1px solid var(--c_cell_border, var(--awi-color-heatmap-cell-border));padding:0}.heatmap_cell_inner{width:100%;height:100%;display:flex;justify-content:center;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--awi-size-text-xs, 12px);font-family:DM Mono,monospace!important}.heatmap_legend_container{padding:.5rem;display:flex;justify-content:center;gap:.5rem;font-size:var(--awi-size-text-xs, 10px);font-family:DM Mono,monospace!important}.heatmap_legend{width:50%;height:100%;outline:1px solid var(--c_cell_border, var(--awi-color-heatmap-cell-border))}.multi_select_container,.multi_select_dropdown{--c_text_primary: #292929;--c_secondary: #292929;--select_height_s: 2rem;--select_height_m: 2.5rem;--select_height_l: 3rem;--select_padding_s: 0rem 1rem;--select_padding_m: 0rem 1rem;--select_padding_l: 0rem 1.5rem}.multi_select_container{display:flex;justify-content:center;align-items:center;height:unset}.multi_select_container .ant-select-selector{background-color:var( --c_trigger_background, var(--awi-color-multiselect-trigger-background) )!important}.multi_select_container.ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector>.ant-select-selection-item{font-weight:var(--awi-weight-text-m, 500)!important}.multi_select_container>.ant-select-selector{outline:1px solid var(--c_trigger_border, var(--awi-color-multiselect-trigger-border))!important;border:none!important;border-radius:100px!important;box-shadow:none!important;color:var(--c_text_primary, var(--awi-color-text-primary))!important;background-color:var( --c_trigger_background, var(--awi-color-multiselect-trigger-background) )!important;width:100%!important;height:40px!important;padding:0 .75rem!important}.ant-select-selection-overflow-item>.ant-select-selection-item{background-color:var( --c_trigger_highlight, var(--awi-color-multiselect-trigger-highlight) )!important;border-radius:500px!important}.ant-select-selection-item{border-radius:500px!important}.multi_select_container.h_s>.ant-select-selector{height:var(--select_height_s)!important;padding:var(--select_padding_s)!important}.multi_select_container.h_m>.ant-select-selector{height:var(--select_height_m)!important;padding:var(--select_padding_m)!important}.multi_select_container.h_l>.ant-select-selector{height:var(--select_height_l)!important;padding:var(--select_padding_l)!important}.ant-select-selection-wrap{height:100%}.ant-select-selection-item{font-size:var(--font_s)!important;color:var(--c_text_primary, var(--awi-color-text-primary))!important}.multi_select_dropdown{z-index:10000;border-radius:20px;box-shadow:unset;padding:0}.multi_select_dropdown{outline:1px solid var(--c_menu_border, var(--awi-color-multiselect-menu-border))}.multi_select_dropdown .ant-select-item-option{align-items:center;padding:1rem;background-color:var( --c_menu_background, var(--awi-color-multiselect-menu-background-default) )!important;color:var(--c_text_primary, var(--awi-color-text-primary))!important;border-radius:0}.multi_select_dropdown .ant-select-item-option-selected{align-items:center;padding:1rem;background-color:var( --c_menu_active, var(--awi-color-multiselect-menu-background-active) )!important}.multi_select_dropdown .ant-select-item-option-active:not(.ant-select-item-option-selected){align-items:center;padding:1rem;background-color:var( --c_menu_hover, var(--awi-color-multiselect-menu-background-hover) )!important}.ant-select .ant-select-arrow{padding-right:.75rem;color:var(--c_secondary, var(--awi-color-multiselect-icon))}.multi_select_dropdown .ant-select-item-option-state{color:var(--c_secondary, var(--awi-color-multiselect-icon))!important}.ant-select-selection-placeholder{font-size:var(--font_s)!important;color:var(--c_text_primary, var(--awi-color-text-primary))!important}.ant-select-selection-item{font-size:var(--font_s)!important;color:var(--c_text_primary, var(--awi-color-text-primary))!important;background-color:unset!important}.multi_select_dropdown.h_s .ant-select-item-option{height:var(--select_height_s)!important;padding:var(--select_padding_s)!important}.multi_select_dropdown.h_m .ant-select-item-option{height:var(--select_height_m)!important;padding:var(--select_padding_m)!important}.multi_select_dropdown.h_l .ant-select-item-option{height:var(--select_height_l)!important;padding:var(--select_padding_l)!important}.multi_select_dropdown .ant-select-item-option{padding:.3rem .5rem}.awi_login_page{position:relative;display:flex;align-items:center;justify-content:space-between;gap:0;overflow:hidden}.awiros_logo{position:absolute;top:1rem;left:1rem}.login_page_banner.has_banner{width:65%;min-width:65%;max-width:65%;height:100%;min-height:100%;max-height:100%}.login_page_banner.no_banner{display:none}.login_banner_image{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%;object-fit:cover}.login_header_image{height:3rem;object-fit:contain;position:absolute;top:2rem}.login_footer_image{height:2rem;object-fit:contain;position:absolute;bottom:2rem}.login_page_main{position:relative;width:35%;min-width:35%;max-width:35%;height:100%;min-height:100%;max-height:100%;display:flex;flex-direction:column;gap:.5rem;align-items:center;justify-content:center;overflow-y:auto;overflow-x:hidden}.login_page_main.no_banner{width:100%;min-width:100%;max-width:100%}.login_form{width:80%;min-width:80%;max-width:80%;display:flex;flex-direction:column;gap:1rem;align-items:center;justify-content:center}.login_form_header{width:100%;display:flex;flex-direction:column;gap:.25rem;justify-content:center}.login_form_body{width:100%;display:flex;flex-direction:column;gap:.5rem}.login_form_body p{font-weight:var(--awi-weight-text-s, 300);font-size:var(--awi-size-text-xs)}.login_form_footer{width:100%;display:flex;flex-direction:column;gap:.5rem;justify-content:center}.login_form_footer>p{font-weight:var(--awi-weight-text-s, 300);font-size:var(--awi-size-text-xs);text-align:start}.login_form_header>h2{font-weight:var(--awi-weight-text-m, 400);font-size:var(--awi-size-text-xl);text-align:start}.login_form_header>p{font-weight:var(--awi-weight-text-s, 300);font-size:var(--awi-size-text-xs);text-align:start}.login_form_element{width:100%;display:flex;flex-direction:column;gap:.25rem}.login_form_element>.form_error_message{font-weight:var(--awi-weight-text-s, 300);font-size:var(--awi-size-text-xs);color:var(--awi-color-common-error);text-align:start}.form_item_required{color:var(--awi-color-common-error);background-color:unset}.password_input{position:relative}.password_input>input{width:100%}.password_input>.icon{position:absolute;right:.5rem;top:50%;transform:translateY(-50%)}@media screen and (max-width: 768px){.login_page_banner{display:none}.login_page_main{width:100%;min-width:100%;max-width:100%}}.leaflet-div-icon{background:transparent!important;border:none!important;box-shadow:none!important}:not(.card_popup)>.leaflet-popup-content-wrapper,:not(.card_popup)>.leaflet-popup-tip-container>.leaflet-popup-tip{border-radius:0;border:0;box-shadow:none;background:none}.card_popup.leaflet-popup{z-index:1000}.count_popup.leaflet-popup{z-index:900}.card_popup>.leaflet-popup-content-wrapper,.card_popup>.leaflet-popup-tip-container>.leaflet-popup-tip{border-radius:0!important;border:1px solid var(--awi-color-surface-border-primary, #e0e0e0);box-shadow:none!important;background:var(--awi-color-surface-fill-primary, #fff);color:var(--awi-color-text-primary, #292929)}.count_popup>.leaflet-popup-content-wrapper,.count_popup>.leaflet-popup-tip-container>.leaflet-popup-tip{border-radius:0;border:0;box-shadow:none;background:none}.count_popup>.leaflet-popup-content-wrapper>.leaflet-popup-content{width:1.2rem;min-width:1.2rem;max-width:1.2rem;border-radius:500px!important;height:1.2rem;min-height:1.2rem;max-height:1.2rem;text-align:center;align-self:center;line-height:1.2rem;color:var(--awi-color-text-tertiary, "#fff");font-size:var(--awi-text-size-xs, 10px);background-color:var(--awi-color-common-info, "red");margin-left:1rem;margin-bottom:.25rem}.leaflet-popup-content{margin:0}.map_view_container{position:relative;border:1px solid var(--awi-color-surface-border-primary, #e0e0e0)}.map_view_nav_container{position:absolute;padding:.5rem 1rem;background-color:var(--awi-color-mapview-nav-background, #ffffff);left:0rem;bottom:0rem;z-index:1000;display:flex;gap:.5rem;align-items:center;justify-content:flex-start}.ant-modal-content{padding:0!important;border-radius:0!important;border:1px solid #eaebee;box-shadow:unset!important}.ant-modal-close{top:.25rem!important;right:.25rem!important;border-radius:500px!important}.ant-modal-close .anticon{color:#292929!important}.paginator{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:.5rem}.paginator_current_page{display:flex;justify-content:flex-start;align-items:center;gap:.25rem}.paginator_arrows{display:flex;justify-content:flex-end;align-items:center;gap:.25rem}.paginator>.full_pagination{width:100%;display:flex;justify-content:space-between}.ant-popover .ant-popover-inner{border-radius:0!important;box-shadow:none!important;background-color:var( --c_background_color, var(--awi-color-popover-background) )!important;outline:1px solid var(--c_border_color, var(--awi-color-popover-border))!important}.ant-popover .ant-popover-arrow:after{border-radius:0!important;box-shadow:none!important;background-color:var( --c_background_color, var(--awi-color-popover-background) )!important;outline:1px solid var(--c_border_color, var(--awi-color-popover-border))!important}.awi_auto_refresh{display:flex;align-items:center}.awi_auto_refresh>button:after{background-color:var( --c_refresh_bg, var(--awi-color-refresh-background) )!important;filter:none!important}.awi_auto_refresh>button{outline:1px solid var(--c_refresh_border, var(--awi-color-refresh-border))!important}.awi_auto_refresh_select>.ant-select-selector{border-radius:500px 0 0 500px!important;margin-left:.5rem}.awi_auto_refresh_button{margin-left:1px;border-radius:0 500px 500px 0!important}.awi_auto_refresh_button:after{border-radius:0 500px 500px 0!important}.awi_sidebar{transition:all .2s ease-in-out;position:sticky;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:space-between;--sidebar_width: 16rem;--sidebar_collapsed_width: 5.5rem;--c_text: #292929;--c_surface: #fff;--c_surface_border: #f3f5f7;color:var(--c_text, var(--awi-color-sidebar-text));background-color:var(--c_surface, var(--awi-color-sidebar-background));border:1px solid var(--c_surface_border, var(--awi-color-sidebar-border))}.awi_sidebar.loading{display:flex;justify-content:center;align-items:center}.awi_sidebar.open{min-width:var(--sidebar_width);max-width:var(--sidebar_width);width:var(--sidebar_width)}.awi_sidebar.closed{min-width:var(--sidebar_collapsed_width);max-width:var(--sidebar_collapsed_width);width:var(--sidebar_collapsed_width)}.awi_sidebar_header{transition:all .2s ease-in-out;--sidebar_header_height: 5.5rem;--awiros_logo_height: 3rem;display:flex;justify-content:space-between;align-items:center;width:100%;height:var(--sidebar_header_height);min-height:var(--sidebar_header_height);max-height:var(--sidebar_header_height);padding:1.25rem;box-sizing:border-box}.closed .awi_sidebar_header{--sidebar_header_height: 8.5rem;flex-direction:column;justify-content:flex-start;gap:1rem}.awi_sidebar_logo{--logo_aspect_ratio: 2.6;height:var(--awiros_logo_height);max-height:var(--awiros_logo_height);min-height:var(--awiros_logo_height);width:var(--logo_aspect_ratio) * var(--awiros_logo_height);min-width:var(--logo_aspect_ratio) * var(--awiros_logo_height);cursor:pointer}.awi_sidebar_close_icon{cursor:pointer!important;align-self:flex-end;margin-bottom:.15rem}.awi_sidebar_close_icon.closed{align-self:center}.awi_sidebar_body{display:flex;flex-direction:column;padding:1.25rem;gap:2px;border-bottom:1px solid var(--c_surface_border)}.awi_sidebar_body.closed{padding:0 1.25rem 1.25rem}.awi_sidebar_nav_container{position:relative;width:100%;display:flex;flex-direction:column;align-items:center}.awi_sidebar_content_dynamic{flex-grow:1;padding:1.25rem;font-size:var(--hydra_font_s);color:var(--hydra_c_text_primary);display:flex;flex-direction:column;align-items:center;gap:1rem;overflow-y:auto}.awi_sidebar_badge{position:absolute;right:1.25rem;z-index:2;top:.75rem!important}.awi_sidebar_badge.closed{right:-.5rem;z-index:100}.awi_sidebar_footer{position:relative;display:flex;cursor:pointer;padding:1.25rem;height:5rem;font-size:var(--hydra_font_s);color:var(--hydra_c_text_primary);border-top:1px solid var(--c_surface_border)}.awi_sidebar_footer.active:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--awi-color-sidebar-footer-background, #ffcc00);opacity:.1}.awi_sidebar_footer img{height:2.5rem;width:2.5rem;border-radius:500px}.awi_sidebar_footer.active img{border:2px solid var(--awi-color-sidebar-footer-background, #ffcc00)}.awi_sidebar_footer_content{display:flex;flex-direction:column;justify-content:center;margin-left:1rem;gap:.25rem;width:calc(100% - 3.75rem)}.awi_sidebar_footer_content .title{color:var(--awi-color-text-secondary, #767676);font-size:var(--awi-size-text-xs, 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.awi_sidebar_footer_content .description{color:var(--awi-color-text-primary, #292929);font-size:var(--awi-size-text-s, 14px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.awi_sidebar_footer_content.closed{width:0;display:none!important}.awi_sidebar_skeleton{display:flex;flex-direction:column;height:100%;width:100%}.awi_sidebar_skeleton_header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem;height:5.5rem}.awi_sidebar_skeleton_logo{width:8rem;height:3rem;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}.awi_sidebar_skeleton_toggle{width:2rem;height:2rem;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}.awi_sidebar_skeleton_body,.awi_sidebar_skeleton_dynamic{padding:1.25rem;display:flex;flex-direction:column;gap:.75rem}.awi_sidebar_skeleton_item{display:flex;align-items:center;gap:.75rem;width:100%}.awi_sidebar_skeleton_icon{width:2rem;height:2rem;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite;flex-shrink:0}.awi_sidebar_skeleton_text{height:1rem;width:80%;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}.awi_sidebar_skeleton_footer{margin-top:auto;padding:1.25rem;display:flex;align-items:center;gap:1rem;border-top:1px solid var(--c_surface_border)}.awi_sidebar_skeleton_avatar{width:2.5rem;height:2.5rem;border-radius:50%;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite;flex-shrink:0}.awi_sidebar_skeleton_footer_content{display:flex;flex-direction:column;gap:.5rem;width:100%}.awi_sidebar_skeleton_title{height:.75rem;width:60%;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}.awi_sidebar_skeleton_subtitle{height:.75rem;width:40%;border-radius:4px;background:linear-gradient(90deg,#e0e0e0,#f5f5f5,#e0e0e0);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}@keyframes skeleton-loading{0%{background-position:200% 0}to{background-position:-200% 0}}.awi_sidebar.closed .awi_sidebar_skeleton_logo{width:3rem}.awi_sidebar.closed .awi_sidebar_skeleton_text,.awi_sidebar.closed .awi_sidebar_skeleton_footer_content{display:none}.awi_sidebar.closed .awi_sidebar_skeleton_item{justify-content:center}.ant-table-thead .ant-table-cell{background:var( --c_header_bg, var(--awi-color-table-header-background) )!important;padding:.5rem!important;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.awi_table.xs .ant-table-thead>tr>th{min-height:1.5rem!important;height:1.5rem!important;max-height:1.5rem!important}.awi_table.s .ant-table-thead>tr>th{min-height:2rem!important;height:2rem!important;max-height:2rem!important}.awi_table.m .ant-table-thead>tr>th{min-height:2.5rem!important;height:2.5rem!important;max-height:2.5rem!important}.awi_table.l .ant-table-thead>tr>th{min-height:3rem!important;height:3rem!important;max-height:3rem!important}.awi_table.xl .ant-table-thead>tr>th{min-height:3.5rem!important;height:3.5rem!important;max-height:3.5rem!important}.ant-table-title{border-radius:0!important;background:var( --c_title_bg, var(--awi-color-table-title-background) )!important}.ant-table-footer{border-radius:0!important;background:var( --c_footer_bg, var(--awi-color-table-footer-background) )!important}.ant-checkbox-inner{border-radius:0!important}.ant-checkbox:hover .ant-checkbox-inner{border-color:var(--awi-color-table-body-checkbox)!important}.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--awi-color-table-body-checkbox)!important;border-color:var(--awi-color-table-body-checkbox)!important}.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--awi-color-surface-fill-primary)!important}.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--awi-color-table-body-checkbox)!important}.ant-table-wrapper .ant-table-tbody .ant-table-row>.ant-table-cell{background-color:var( --c_body_bg, var(--awi-color-table-body-background) )!important;padding:.5rem}.ant-table-wrapper .ant-table-tbody .ant-table-row.ant-table-row-selected>.ant-table-cell{background-color:var(--awi-color-table-body-selected)!important}.ant-table-wrapper .ant-table-tbody .ant-table-row.ant-table-row-selected>.ant-table-cell.ant-table-cell-row-hover{background-color:var(--awi-color-table-body-selectedhover)!important}.ant-table-wrapper .ant-table-tbody .ant-table-row>.ant-table-cell.ant-table-cell-row-hover{background-color:var(--awi-color-table-body-hover)!important}.ant-notification-notice-wrapper{border-radius:unset!important;margin-bottom:unset!important;margin-inline-start:unset!important;background:unset!important;box-shadow:unset!important}.toast_wrapper{background-color:fff;padding:unset!important;width:20rem!important;max-width:20rem!important;overflow:unset!important;line-height:unset!important;word-wrap:unset!important}.toast{position:relative;display:flex;flex-direction:row;min-height:3rem;z-index:10}.toast>.background{position:absolute;width:100%;height:100%;z-index:2}.toast>.icon_container{width:3rem;min-width:3rem;max-width:3rem;height:100%!important;min-height:3rem!important;max-height:100%!important;display:flex;justify-content:center;align-items:center;z-index:10}.toast>.message_container{flex-grow:1;width:auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;padding:.5rem 2rem .5rem .5rem;z-index:10}.toast>.message_container.start{justify-content:flex-start}.toast>.message_container.center{justify-content:center}.toast_close_button{position:absolute;top:.4rem;right:.25rem;height:unset!important;z-index:3;z-index:10}
2
+ /*$vite$:1*/`,document.head.appendChild(Ep);function Sp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=Sp(O),Mp=Sp(x0),Hp={common:{primary:"#292929",secondary:"#767676",highlight:"#FFCC00",success:"#5DB772",warning:"#FFCC00",error:"#FF2540",info:"#0076B2",disabled:"#DEDEDE",themeColor:"#6F29A9",themeRed:"#ff0000",themeReject:"#ff0000",themeSecondaryButtonColor:"#FF2540",themeSystemAcceptColor:"rgb(93, 183, 114)"},text:{primary:"#292929",secondary:"#767676",tertiary:"#FFFFFF",disabled:"#767676"},background:{primary:"#F3F5F7"},surface:{fill:{primary:"#FFFFFF",secondary:"#F3F5F7",tertiary:"#EAEAEA"},border:{primary:"#EAEBEE",secondary:"#BCBDBF",tertiary:"#909090"}},button:{border:"#ffcc00",background:"#ffcc00",text:"#292929"},badge:{background:"#ff2540",text:"#fff"},input:{border:"#292929",background:"#2929291a",text:"#292929"},multiselect:{icon:"#292929",trigger:{border:"#29292955",background:"#29292929",highlight:"#29292955"},menu:{border:"#29292955",background:{default:"#FFFFFF",hover:"rgba(255, 204, 0, 0.1)",active:"rgba(255, 204, 0, 0.2)"}}},select:{trigger:{border:"#29292955",background:"#29292929"},menu:{border:"#29292955",background:{default:"#FFFFFF",hover:"rgba(255, 204, 0, 0.1)",active:"rgba(255, 204, 0, 0.2)"}}},sidebar:{background:"#292929",text:"#FFFFFF",border:"#292929",button:{background:"#FFCC00",text:"#292929",border:"#FFCC00"},footer:{background:"#FFCC00"}},topbar:{background:"#FFFFFF",text:"#292929",border:"#EAEBEE"},daterangepicker:{trigger:{background:"#29292929",border:"#29292955"},picker:{highlight:"#fc0",range:"#ffcc00bb",background:"#fff",border:"rgb(234, 235, 238)"}},table:{header:{background:"#fff"},body:{background:"#fff",checkbox:"#ffcc00",hover:"#2929291a",selected:"#ffcc001a",selectedhover:"#ffcc002b"},title:{background:"#fff"},footer:{background:"#fff"}},heatmap:{background:"#fff",cell:{border:"#EAEBEE"}},popover:{background:"#fff",border:"#EAEBEE"},refresh:{background:"#29292929",border:"#29292955"},toast:{border:{success:"#5DB772",warning:"#FFCC00",error:"#FF2540",info:"#0076B2"},background:{success:"#5DB77215",warning:"#FFCC0015",error:"#FF254015",info:"#0076B215"}},compactEventCard:{focusedBorderColor:"#ffcc00",focusedBorderThickness:"2px",borderColor:"#EAEBEE"}},Lp={name:"default",colors:Hp,sizes:{text:{xs:"12px",s:"14px",m:"16px",l:"20px",xl:"22px"}},weights:{text:{s:"400",m:"500",l:"700"}}},JP=(e,t)=>{if(typeof e=="object"&&t in e){const n=e[t];return typeof n=="string"?n:void 0}},eN=5,tN=4,nN="owl-V2",rN=.3,oN=10,iN=1,aN=1e3,sN=[{awi_id:"Yolo-World",awi_label:"Yolo-World",value:"Yolo-World"},{awi_id:"owl-V2",awi_label:"owl-V2",value:"owl-V2"}],lN={scale:1,x:0,y:0},cN=.2,uN=!1,dN={w:16,h:9},fN=60,hN=2*Math.PI,B1={MAX_TOASTS_COUNT:eN,DISPLAY_SEARCH_MINIMUM_RECORDS:tN,SAM_MODEL_NAME:nN,SAM_MODEL_CONFIDENCE:rN,SAM_MODEL_MAX_RESULTS:oN,SAM_MODEL_MAX_RESULTS_MIN:iN,SAM_MODEL_MAX_RESULTS_MAX:aN,SAM_MODEL_DATA:sN,INITIAL_ZOOM_PROPERTIES:lN,INITIAL_ZOOM_LEVEL:cN,HOVER_TO_SELECT_ON_ALREADY_SELECTED:uN,DEFAULT_CANVAS_RATION:dN,MAX_ANNOTATIONS_TO_HOVER:fN,TWO_PIE:hN,POLYGON_POINT_REMOVE_CONFIRM_PROMPT:!1,MAX_ANNOTATIONS_TO_RUN_FAST:30,STATUS_COLOR_MAP:{approved:"rgba(66, 179, 97,0.60)",rejected:"rgba(184, 33, 44,0.60)",corrected:"rgba(175, 219, 245,0.60)"}};var A9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function V2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Rl={exports:{}};function gN(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Fl={exports:{}};const CN=Bp(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var mN=Fl.exports,kp;function x1(){return kp||(kp=1,function(e,t){(function(n,r){e.exports=r()})(mN,function(){var n=n||function(r,o){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof A9<"u"&&A9.crypto&&(i=A9.crypto),!i&&typeof gN=="function")try{i=CN}catch{}var a=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function y(){}return function(w){var E;return y.prototype=w,E=new y,y.prototype=null,E}}(),c={},u=c.lib={},d=u.Base=function(){return{extend:function(y){var w=s(this);return y&&w.mixIn(y),(!w.hasOwnProperty("init")||this.init===w.init)&&(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var w in y)y.hasOwnProperty(w)&&(this[w]=y[w]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=u.WordArray=d.extend({init:function(y,w){y=this.words=y||[],w!=o?this.sigBytes=w:this.sigBytes=y.length*4},toString:function(y){return(y||m).stringify(this)},concat:function(y){var w=this.words,E=y.words,S=this.sigBytes,M=y.sigBytes;if(this.clamp(),S%4)for(var H=0;H<M;H++){var k=E[H>>>2]>>>24-H%4*8&255;w[S+H>>>2]|=k<<24-(S+H)%4*8}else for(var D=0;D<M;D+=4)w[S+D>>>2]=E[D>>>2];return this.sigBytes+=M,this},clamp:function(){var y=this.words,w=this.sigBytes;y[w>>>2]&=4294967295<<32-w%4*8,y.length=r.ceil(w/4)},clone:function(){var y=d.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var w=[],E=0;E<y;E+=4)w.push(a());return new h.init(w,y)}}),g=c.enc={},m=g.Hex={stringify:function(y){for(var w=y.words,E=y.sigBytes,S=[],M=0;M<E;M++){var H=w[M>>>2]>>>24-M%4*8&255;S.push((H>>>4).toString(16)),S.push((H&15).toString(16))}return S.join("")},parse:function(y){for(var w=y.length,E=[],S=0;S<w;S+=2)E[S>>>3]|=parseInt(y.substr(S,2),16)<<24-S%8*4;return new h.init(E,w/2)}},v=g.Latin1={stringify:function(y){for(var w=y.words,E=y.sigBytes,S=[],M=0;M<E;M++){var H=w[M>>>2]>>>24-M%4*8&255;S.push(String.fromCharCode(H))}return S.join("")},parse:function(y){for(var w=y.length,E=[],S=0;S<w;S++)E[S>>>2]|=(y.charCodeAt(S)&255)<<24-S%4*8;return new h.init(E,w)}},A=g.Utf8={stringify:function(y){try{return decodeURIComponent(escape(v.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return v.parse(unescape(encodeURIComponent(y)))}},p=u.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=A.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var w,E=this._data,S=E.words,M=E.sigBytes,H=this.blockSize,k=H*4,D=M/k;y?D=r.ceil(D):D=r.max((D|0)-this._minBufferSize,0);var P=D*H,T=r.min(P*4,M);if(P){for(var N=0;N<P;N+=H)this._doProcessBlock(S,N);w=S.splice(0,P),E.sigBytes-=T}return new h.init(w,T)},clone:function(){var y=d.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});u.Hasher=p.extend({cfg:d.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var w=this._doFinalize();return w},blockSize:16,_createHelper:function(y){return function(w,E){return new y.init(E).finalize(w)}},_createHmacHelper:function(y){return function(w,E){return new x.HMAC.init(y,E).finalize(w)}}});var x=c.algo={};return c}(Math);return n})}(Fl)),Fl.exports}var zl={exports:{}},pN=zl.exports,Op;function jl(){return Op||(Op=1,function(e,t){(function(n,r){e.exports=r(x1())})(pN,function(n){return function(r){var o=n,i=o.lib,a=i.Base,s=i.WordArray,c=o.x64={};c.Word=a.extend({init:function(u,d){this.high=u,this.low=d}}),c.WordArray=a.extend({init:function(u,d){u=this.words=u||[],d!=r?this.sigBytes=d:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,d=u.length,h=[],g=0;g<d;g++){var m=u[g];h.push(m.high),h.push(m.low)}return s.create(h,this.sigBytes)},clone:function(){for(var u=a.clone.call(this),d=u.words=this.words.slice(0),h=d.length,g=0;g<h;g++)d[g]=d[g].clone();return u}})}(),n})}(zl)),zl.exports}var Vl={exports:{}},vN=Vl.exports,Ip;function AN(){return Ip||(Ip=1,function(e,t){(function(n,r){e.exports=r(x1())})(vN,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,o=r.lib,i=o.WordArray,a=i.init,s=i.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var u=c.byteLength,d=[],h=0;h<u;h++)d[h>>>2]|=c[h]<<24-h%4*8;a.call(this,d,u)}else a.apply(this,arguments)};s.prototype=i}}(),n.lib.WordArray})}(Vl)),Vl.exports}var Zl={exports:{}},bN=Zl.exports,Dp;function _N(){return Dp||(Dp=1,function(e,t){(function(n,r){e.exports=r(x1())})(bN,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.enc;a.Utf16=a.Utf16BE={stringify:function(c){for(var u=c.words,d=c.sigBytes,h=[],g=0;g<d;g+=2){var m=u[g>>>2]>>>16-g%4*8&65535;h.push(String.fromCharCode(m))}return h.join("")},parse:function(c){for(var u=c.length,d=[],h=0;h<u;h++)d[h>>>1]|=c.charCodeAt(h)<<16-h%2*16;return i.create(d,u*2)}},a.Utf16LE={stringify:function(c){for(var u=c.words,d=c.sigBytes,h=[],g=0;g<d;g+=2){var m=s(u[g>>>2]>>>16-g%4*8&65535);h.push(String.fromCharCode(m))}return h.join("")},parse:function(c){for(var u=c.length,d=[],h=0;h<u;h++)d[h>>>1]|=s(c.charCodeAt(h)<<16-h%2*16);return i.create(d,u*2)}};function s(c){return c<<8&4278255360|c>>>8&16711935}}(),n.enc.Utf16})}(Zl)),Zl.exports}var Ul={exports:{}},yN=Ul.exports,Pp;function b9(){return Pp||(Pp=1,function(e,t){(function(n,r){e.exports=r(x1())})(yN,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.enc;a.Base64={stringify:function(c){var u=c.words,d=c.sigBytes,h=this._map;c.clamp();for(var g=[],m=0;m<d;m+=3)for(var v=u[m>>>2]>>>24-m%4*8&255,A=u[m+1>>>2]>>>24-(m+1)%4*8&255,p=u[m+2>>>2]>>>24-(m+2)%4*8&255,x=v<<16|A<<8|p,y=0;y<4&&m+y*.75<d;y++)g.push(h.charAt(x>>>6*(3-y)&63));var w=h.charAt(64);if(w)for(;g.length%4;)g.push(w);return g.join("")},parse:function(c){var u=c.length,d=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var g=0;g<d.length;g++)h[d.charCodeAt(g)]=g}var m=d.charAt(64);if(m){var v=c.indexOf(m);v!==-1&&(u=v)}return s(c,u,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(c,u,d){for(var h=[],g=0,m=0;m<u;m++)if(m%4){var v=d[c.charCodeAt(m-1)]<<m%4*2,A=d[c.charCodeAt(m)]>>>6-m%4*2,p=v|A;h[g>>>2]|=p<<24-g%4*8,g++}return i.create(h,g)}}(),n.enc.Base64})}(Ul)),Ul.exports}var $l={exports:{}},wN=$l.exports,Np;function xN(){return Np||(Np=1,function(e,t){(function(n,r){e.exports=r(x1())})(wN,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.enc;a.Base64url={stringify:function(c,u){u===void 0&&(u=!0);var d=c.words,h=c.sigBytes,g=u?this._safe_map:this._map;c.clamp();for(var m=[],v=0;v<h;v+=3)for(var A=d[v>>>2]>>>24-v%4*8&255,p=d[v+1>>>2]>>>24-(v+1)%4*8&255,x=d[v+2>>>2]>>>24-(v+2)%4*8&255,y=A<<16|p<<8|x,w=0;w<4&&v+w*.75<h;w++)m.push(g.charAt(y>>>6*(3-w)&63));var E=g.charAt(64);if(E)for(;m.length%4;)m.push(E);return m.join("")},parse:function(c,u){u===void 0&&(u=!0);var d=c.length,h=u?this._safe_map:this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var m=0;m<h.length;m++)g[h.charCodeAt(m)]=m}var v=h.charAt(64);if(v){var A=c.indexOf(v);A!==-1&&(d=A)}return s(c,d,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(c,u,d){for(var h=[],g=0,m=0;m<u;m++)if(m%4){var v=d[c.charCodeAt(m-1)]<<m%4*2,A=d[c.charCodeAt(m)]>>>6-m%4*2,p=v|A;h[g>>>2]|=p<<24-g%4*8,g++}return i.create(h,g)}}(),n.enc.Base64url})}($l)),$l.exports}var Wl={exports:{}},EN=Wl.exports,Tp;function _9(){return Tp||(Tp=1,function(e,t){(function(n,r){e.exports=r(x1())})(EN,function(n){return function(r){var o=n,i=o.lib,a=i.WordArray,s=i.Hasher,c=o.algo,u=[];(function(){for(var A=0;A<64;A++)u[A]=r.abs(r.sin(A+1))*4294967296|0})();var d=c.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(A,p){for(var x=0;x<16;x++){var y=p+x,w=A[y];A[y]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var E=this._hash.words,S=A[p+0],M=A[p+1],H=A[p+2],k=A[p+3],D=A[p+4],P=A[p+5],T=A[p+6],N=A[p+7],F=A[p+8],j=A[p+9],z=A[p+10],R=A[p+11],$=A[p+12],W=A[p+13],q=A[p+14],K=A[p+15],U=E[0],G=E[1],J=E[2],Y=E[3];U=h(U,G,J,Y,S,7,u[0]),Y=h(Y,U,G,J,M,12,u[1]),J=h(J,Y,U,G,H,17,u[2]),G=h(G,J,Y,U,k,22,u[3]),U=h(U,G,J,Y,D,7,u[4]),Y=h(Y,U,G,J,P,12,u[5]),J=h(J,Y,U,G,T,17,u[6]),G=h(G,J,Y,U,N,22,u[7]),U=h(U,G,J,Y,F,7,u[8]),Y=h(Y,U,G,J,j,12,u[9]),J=h(J,Y,U,G,z,17,u[10]),G=h(G,J,Y,U,R,22,u[11]),U=h(U,G,J,Y,$,7,u[12]),Y=h(Y,U,G,J,W,12,u[13]),J=h(J,Y,U,G,q,17,u[14]),G=h(G,J,Y,U,K,22,u[15]),U=g(U,G,J,Y,M,5,u[16]),Y=g(Y,U,G,J,T,9,u[17]),J=g(J,Y,U,G,R,14,u[18]),G=g(G,J,Y,U,S,20,u[19]),U=g(U,G,J,Y,P,5,u[20]),Y=g(Y,U,G,J,z,9,u[21]),J=g(J,Y,U,G,K,14,u[22]),G=g(G,J,Y,U,D,20,u[23]),U=g(U,G,J,Y,j,5,u[24]),Y=g(Y,U,G,J,q,9,u[25]),J=g(J,Y,U,G,k,14,u[26]),G=g(G,J,Y,U,F,20,u[27]),U=g(U,G,J,Y,W,5,u[28]),Y=g(Y,U,G,J,H,9,u[29]),J=g(J,Y,U,G,N,14,u[30]),G=g(G,J,Y,U,$,20,u[31]),U=m(U,G,J,Y,P,4,u[32]),Y=m(Y,U,G,J,F,11,u[33]),J=m(J,Y,U,G,R,16,u[34]),G=m(G,J,Y,U,q,23,u[35]),U=m(U,G,J,Y,M,4,u[36]),Y=m(Y,U,G,J,D,11,u[37]),J=m(J,Y,U,G,N,16,u[38]),G=m(G,J,Y,U,z,23,u[39]),U=m(U,G,J,Y,W,4,u[40]),Y=m(Y,U,G,J,S,11,u[41]),J=m(J,Y,U,G,k,16,u[42]),G=m(G,J,Y,U,T,23,u[43]),U=m(U,G,J,Y,j,4,u[44]),Y=m(Y,U,G,J,$,11,u[45]),J=m(J,Y,U,G,K,16,u[46]),G=m(G,J,Y,U,H,23,u[47]),U=v(U,G,J,Y,S,6,u[48]),Y=v(Y,U,G,J,N,10,u[49]),J=v(J,Y,U,G,q,15,u[50]),G=v(G,J,Y,U,P,21,u[51]),U=v(U,G,J,Y,$,6,u[52]),Y=v(Y,U,G,J,k,10,u[53]),J=v(J,Y,U,G,z,15,u[54]),G=v(G,J,Y,U,M,21,u[55]),U=v(U,G,J,Y,F,6,u[56]),Y=v(Y,U,G,J,K,10,u[57]),J=v(J,Y,U,G,T,15,u[58]),G=v(G,J,Y,U,W,21,u[59]),U=v(U,G,J,Y,D,6,u[60]),Y=v(Y,U,G,J,R,10,u[61]),J=v(J,Y,U,G,H,15,u[62]),G=v(G,J,Y,U,j,21,u[63]),E[0]=E[0]+U|0,E[1]=E[1]+G|0,E[2]=E[2]+J|0,E[3]=E[3]+Y|0},_doFinalize:function(){var A=this._data,p=A.words,x=this._nDataBytes*8,y=A.sigBytes*8;p[y>>>5]|=128<<24-y%32;var w=r.floor(x/4294967296),E=x;p[(y+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,p[(y+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,A.sigBytes=(p.length+1)*4,this._process();for(var S=this._hash,M=S.words,H=0;H<4;H++){var k=M[H];M[H]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return S},clone:function(){var A=s.clone.call(this);return A._hash=this._hash.clone(),A}});function h(A,p,x,y,w,E,S){var M=A+(p&x|~p&y)+w+S;return(M<<E|M>>>32-E)+p}function g(A,p,x,y,w,E,S){var M=A+(p&y|x&~y)+w+S;return(M<<E|M>>>32-E)+p}function m(A,p,x,y,w,E,S){var M=A+(p^x^y)+w+S;return(M<<E|M>>>32-E)+p}function v(A,p,x,y,w,E,S){var M=A+(x^(p|~y))+w+S;return(M<<E|M>>>32-E)+p}o.MD5=s._createHelper(d),o.HmacMD5=s._createHmacHelper(d)}(Math),n.MD5})}(Wl)),Wl.exports}var Kl={exports:{}},SN=Kl.exports,Rp;function Fp(){return Rp||(Rp=1,function(e,t){(function(n,r){e.exports=r(x1())})(SN,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=o.Hasher,s=r.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,h){for(var g=this._hash.words,m=g[0],v=g[1],A=g[2],p=g[3],x=g[4],y=0;y<80;y++){if(y<16)c[y]=d[h+y]|0;else{var w=c[y-3]^c[y-8]^c[y-14]^c[y-16];c[y]=w<<1|w>>>31}var E=(m<<5|m>>>27)+x+c[y];y<20?E+=(v&A|~v&p)+1518500249:y<40?E+=(v^A^p)+1859775393:y<60?E+=(v&A|v&p|A&p)-1894007588:E+=(v^A^p)-899497514,x=p,p=A,A=v<<30|v>>>2,v=m,m=E}g[0]=g[0]+m|0,g[1]=g[1]+v|0,g[2]=g[2]+A|0,g[3]=g[3]+p|0,g[4]=g[4]+x|0},_doFinalize:function(){var d=this._data,h=d.words,g=this._nDataBytes*8,m=d.sigBytes*8;return h[m>>>5]|=128<<24-m%32,h[(m+64>>>9<<4)+14]=Math.floor(g/4294967296),h[(m+64>>>9<<4)+15]=g,d.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var d=a.clone.call(this);return d._hash=this._hash.clone(),d}});r.SHA1=a._createHelper(u),r.HmacSHA1=a._createHmacHelper(u)}(),n.SHA1})}(Kl)),Kl.exports}var Ql={exports:{}},MN=Ql.exports,zp;function Pu(){return zp||(zp=1,function(e,t){(function(n,r){e.exports=r(x1())})(MN,function(n){return function(r){var o=n,i=o.lib,a=i.WordArray,s=i.Hasher,c=o.algo,u=[],d=[];(function(){function m(x){for(var y=r.sqrt(x),w=2;w<=y;w++)if(!(x%w))return!1;return!0}function v(x){return(x-(x|0))*4294967296|0}for(var A=2,p=0;p<64;)m(A)&&(p<8&&(u[p]=v(r.pow(A,1/2))),d[p]=v(r.pow(A,1/3)),p++),A++})();var h=[],g=c.SHA256=s.extend({_doReset:function(){this._hash=new a.init(u.slice(0))},_doProcessBlock:function(m,v){for(var A=this._hash.words,p=A[0],x=A[1],y=A[2],w=A[3],E=A[4],S=A[5],M=A[6],H=A[7],k=0;k<64;k++){if(k<16)h[k]=m[v+k]|0;else{var D=h[k-15],P=(D<<25|D>>>7)^(D<<14|D>>>18)^D>>>3,T=h[k-2],N=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;h[k]=P+h[k-7]+N+h[k-16]}var F=E&S^~E&M,j=p&x^p&y^x&y,z=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),R=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),$=H+R+F+d[k]+h[k],W=z+j;H=M,M=S,S=E,E=w+$|0,w=y,y=x,x=p,p=$+W|0}A[0]=A[0]+p|0,A[1]=A[1]+x|0,A[2]=A[2]+y|0,A[3]=A[3]+w|0,A[4]=A[4]+E|0,A[5]=A[5]+S|0,A[6]=A[6]+M|0,A[7]=A[7]+H|0},_doFinalize:function(){var m=this._data,v=m.words,A=this._nDataBytes*8,p=m.sigBytes*8;return v[p>>>5]|=128<<24-p%32,v[(p+64>>>9<<4)+14]=r.floor(A/4294967296),v[(p+64>>>9<<4)+15]=A,m.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var m=s.clone.call(this);return m._hash=this._hash.clone(),m}});o.SHA256=s._createHelper(g),o.HmacSHA256=s._createHmacHelper(g)}(Math),n.SHA256})}(Ql)),Ql.exports}var Gl={exports:{}},HN=Gl.exports,jp;function LN(){return jp||(jp=1,function(e,t){(function(n,r,o){e.exports=r(x1(),Pu())})(HN,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.algo,s=a.SHA256,c=a.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=s._doFinalize.call(this);return u.sigBytes-=4,u}});r.SHA224=s._createHelper(c),r.HmacSHA224=s._createHmacHelper(c)}(),n.SHA224})}(Gl)),Gl.exports}var Yl={exports:{}},BN=Yl.exports,Vp;function Zp(){return Vp||(Vp=1,function(e,t){(function(n,r,o){e.exports=r(x1(),jl())})(BN,function(n){return function(){var r=n,o=r.lib,i=o.Hasher,a=r.x64,s=a.Word,c=a.WordArray,u=r.algo;function d(){return s.create.apply(s,arguments)}var h=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],g=[];(function(){for(var v=0;v<80;v++)g[v]=d()})();var m=u.SHA512=i.extend({_doReset:function(){this._hash=new c.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(v,A){for(var p=this._hash.words,x=p[0],y=p[1],w=p[2],E=p[3],S=p[4],M=p[5],H=p[6],k=p[7],D=x.high,P=x.low,T=y.high,N=y.low,F=w.high,j=w.low,z=E.high,R=E.low,$=S.high,W=S.low,q=M.high,K=M.low,U=H.high,G=H.low,J=k.high,Y=k.low,ee=D,oe=P,de=T,se=N,xe=F,we=j,ve=z,he=R,le=$,ae=W,_e=q,Oe=K,Ie=U,ge=G,et=J,fe=Y,ne=0;ne<80;ne++){var pe,Se,Le=g[ne];if(ne<16)Se=Le.high=v[A+ne*2]|0,pe=Le.low=v[A+ne*2+1]|0;else{var Be=g[ne-15],Ve=Be.high,Ke=Be.low,ct=(Ve>>>1|Ke<<31)^(Ve>>>8|Ke<<24)^Ve>>>7,tt=(Ke>>>1|Ve<<31)^(Ke>>>8|Ve<<24)^(Ke>>>7|Ve<<25),Qe=g[ne-2],Fe=Qe.high,ot=Qe.low,Ue=(Fe>>>19|ot<<13)^(Fe<<3|ot>>>29)^Fe>>>6,ze=(ot>>>19|Fe<<13)^(ot<<3|Fe>>>29)^(ot>>>6|Fe<<26),Ge=g[ne-7],dt=Ge.high,qe=Ge.low,ft=g[ne-16],Nt=ft.high,Kt=ft.low;pe=tt+qe,Se=ct+dt+(pe>>>0<tt>>>0?1:0),pe=pe+ze,Se=Se+Ue+(pe>>>0<ze>>>0?1:0),pe=pe+Kt,Se=Se+Nt+(pe>>>0<Kt>>>0?1:0),Le.high=Se,Le.low=pe}var sn=le&_e^~le&Ie,Nn=ae&Oe^~ae&ge,Yt=ee&de^ee&xe^de&xe,An=oe&se^oe&we^se&we,_n=(ee>>>28|oe<<4)^(ee<<30|oe>>>2)^(ee<<25|oe>>>7),Qt=(oe>>>28|ee<<4)^(oe<<30|ee>>>2)^(oe<<25|ee>>>7),kt=(le>>>14|ae<<18)^(le>>>18|ae<<14)^(le<<23|ae>>>9),Ht=(ae>>>14|le<<18)^(ae>>>18|le<<14)^(ae<<23|le>>>9),xt=h[ne],Zt=xt.high,Cn=xt.low,mt=fe+Ht,pt=et+kt+(mt>>>0<fe>>>0?1:0),mt=mt+Nn,pt=pt+sn+(mt>>>0<Nn>>>0?1:0),mt=mt+Cn,pt=pt+Zt+(mt>>>0<Cn>>>0?1:0),mt=mt+pe,pt=pt+Se+(mt>>>0<pe>>>0?1:0),Lt=Qt+An,Xe=_n+Yt+(Lt>>>0<Qt>>>0?1:0);et=Ie,fe=ge,Ie=_e,ge=Oe,_e=le,Oe=ae,ae=he+mt|0,le=ve+pt+(ae>>>0<he>>>0?1:0)|0,ve=xe,he=we,xe=de,we=se,de=ee,se=oe,oe=mt+Lt|0,ee=pt+Xe+(oe>>>0<mt>>>0?1:0)|0}P=x.low=P+oe,x.high=D+ee+(P>>>0<oe>>>0?1:0),N=y.low=N+se,y.high=T+de+(N>>>0<se>>>0?1:0),j=w.low=j+we,w.high=F+xe+(j>>>0<we>>>0?1:0),R=E.low=R+he,E.high=z+ve+(R>>>0<he>>>0?1:0),W=S.low=W+ae,S.high=$+le+(W>>>0<ae>>>0?1:0),K=M.low=K+Oe,M.high=q+_e+(K>>>0<Oe>>>0?1:0),G=H.low=G+ge,H.high=U+Ie+(G>>>0<ge>>>0?1:0),Y=k.low=Y+fe,k.high=J+et+(Y>>>0<fe>>>0?1:0)},_doFinalize:function(){var v=this._data,A=v.words,p=this._nDataBytes*8,x=v.sigBytes*8;A[x>>>5]|=128<<24-x%32,A[(x+128>>>10<<5)+30]=Math.floor(p/4294967296),A[(x+128>>>10<<5)+31]=p,v.sigBytes=A.length*4,this._process();var y=this._hash.toX32();return y},clone:function(){var v=i.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});r.SHA512=i._createHelper(m),r.HmacSHA512=i._createHmacHelper(m)}(),n.SHA512})}(Yl)),Yl.exports}var ql={exports:{}},kN=ql.exports,Up;function ON(){return Up||(Up=1,function(e,t){(function(n,r,o){e.exports=r(x1(),jl(),Zp())})(kN,function(n){return function(){var r=n,o=r.x64,i=o.Word,a=o.WordArray,s=r.algo,c=s.SHA512,u=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var d=c._doFinalize.call(this);return d.sigBytes-=16,d}});r.SHA384=c._createHelper(u),r.HmacSHA384=c._createHmacHelper(u)}(),n.SHA384})}(ql)),ql.exports}var Xl={exports:{}},IN=Xl.exports,$p;function DN(){return $p||($p=1,function(e,t){(function(n,r,o){e.exports=r(x1(),jl())})(IN,function(n){return function(r){var o=n,i=o.lib,a=i.WordArray,s=i.Hasher,c=o.x64,u=c.Word,d=o.algo,h=[],g=[],m=[];(function(){for(var p=1,x=0,y=0;y<24;y++){h[p+5*x]=(y+1)*(y+2)/2%64;var w=x%5,E=(2*p+3*x)%5;p=w,x=E}for(var p=0;p<5;p++)for(var x=0;x<5;x++)g[p+5*x]=x+(2*p+3*x)%5*5;for(var S=1,M=0;M<24;M++){for(var H=0,k=0,D=0;D<7;D++){if(S&1){var P=(1<<D)-1;P<32?k^=1<<P:H^=1<<P-32}S&128?S=S<<1^113:S<<=1}m[M]=u.create(H,k)}})();var v=[];(function(){for(var p=0;p<25;p++)v[p]=u.create()})();var A=d.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],x=0;x<25;x++)p[x]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,x){for(var y=this._state,w=this.blockSize/2,E=0;E<w;E++){var S=p[x+2*E],M=p[x+2*E+1];S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360;var H=y[E];H.high^=M,H.low^=S}for(var k=0;k<24;k++){for(var D=0;D<5;D++){for(var P=0,T=0,N=0;N<5;N++){var H=y[D+5*N];P^=H.high,T^=H.low}var F=v[D];F.high=P,F.low=T}for(var D=0;D<5;D++)for(var j=v[(D+4)%5],z=v[(D+1)%5],R=z.high,$=z.low,P=j.high^(R<<1|$>>>31),T=j.low^($<<1|R>>>31),N=0;N<5;N++){var H=y[D+5*N];H.high^=P,H.low^=T}for(var W=1;W<25;W++){var P,T,H=y[W],q=H.high,K=H.low,U=h[W];U<32?(P=q<<U|K>>>32-U,T=K<<U|q>>>32-U):(P=K<<U-32|q>>>64-U,T=q<<U-32|K>>>64-U);var G=v[g[W]];G.high=P,G.low=T}var J=v[0],Y=y[0];J.high=Y.high,J.low=Y.low;for(var D=0;D<5;D++)for(var N=0;N<5;N++){var W=D+5*N,H=y[W],ee=v[W],oe=v[(D+1)%5+5*N],de=v[(D+2)%5+5*N];H.high=ee.high^~oe.high&de.high,H.low=ee.low^~oe.low&de.low}var H=y[0],se=m[k];H.high^=se.high,H.low^=se.low}},_doFinalize:function(){var p=this._data,x=p.words;this._nDataBytes*8;var y=p.sigBytes*8,w=this.blockSize*32;x[y>>>5]|=1<<24-y%32,x[(r.ceil((y+1)/w)*w>>>5)-1]|=128,p.sigBytes=x.length*4,this._process();for(var E=this._state,S=this.cfg.outputLength/8,M=S/8,H=[],k=0;k<M;k++){var D=E[k],P=D.high,T=D.low;P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,H.push(T),H.push(P)}return new a.init(H,S)},clone:function(){for(var p=s.clone.call(this),x=p._state=this._state.slice(0),y=0;y<25;y++)x[y]=x[y].clone();return p}});o.SHA3=s._createHelper(A),o.HmacSHA3=s._createHmacHelper(A)}(Math),n.SHA3})}(Xl)),Xl.exports}var Jl={exports:{}},PN=Jl.exports,Wp;function NN(){return Wp||(Wp=1,function(e,t){(function(n,r){e.exports=r(x1())})(PN,function(n){/** @preserve
3
3
  (c) 2012 by Cédric Mesnil. All rights reserved.
4
4
 
5
5
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -337,7 +337,7 @@ __p += '`),S1&&(It+=`' +
337
337
  function print() { __p += __j.call(arguments, '') }
338
338
  `:`;
339
339
  `)+It+`return __p
340
- }`;var c1=YP(function(){return m1(me,Bn+"return "+It).apply(n,ke)});if(c1.source=It,hp(c1))throw c1;return c1}function A_e(C){return G1(C).toLowerCase()}function b_e(C){return G1(C).toUpperCase()}function __e(C,_,I){if(C=G1(C),C&&(I||_===n))return v3(C);if(!C||!(_=R2(_)))return C;var Q=sr(C),te=sr(_),me=Ir(Q,te),ke=no(Q,te)+1;return p9(Q,me,ke).join("")}function y_e(C,_,I){if(C=G1(C),C&&(I||_===n))return C.slice(0,wi(C)+1);if(!C||!(_=R2(_)))return C;var Q=sr(C),te=no(Q,sr(_))+1;return p9(Q,0,te).join("")}function w_e(C,_,I){if(C=G1(C),C&&(I||_===n))return C.replace(pt,"");if(!C||!(_=R2(_)))return C;var Q=sr(C),te=Ir(Q,sr(_));return p9(Q,te).join("")}function x_e(C,_){var I=P,Q=T;if(w0(_)){var te="separator"in _?_.separator:te;I="length"in _?o1(_.length):I,Q="omission"in _?R2(_.omission):Q}C=G1(C);var me=C.length;if(ko(C)){var ke=sr(C);me=ke.length}if(I>=me)return C;var Ne=I-X0(Q);if(Ne<1)return Q;var We=ke?p9(ke,0,Ne).join(""):C.slice(0,Ne);if(te===n)return We+Q;if(ke&&(Ne+=We.length-Ne),gp(te)){if(C.slice(Ne).search(te)){var St,Mt=We;for(te.global||(te=Io(te.source,G1(Et.exec(te))+"g")),te.lastIndex=0;St=te.exec(Mt);)var It=St.index;We=We.slice(0,It===n?Ne:It)}}else if(C.indexOf(R2(te),Ne)!=Ne){var cn=We.lastIndexOf(te);cn>-1&&(We=We.slice(0,cn))}return We+Q}function E_e(C){return C=G1(C),C&&Yt.test(C)?C.replace(sn,la):C}var S_e=r4(function(C,_,I){return C+(I?" ":"")+_.toUpperCase()}),pp=qD("toUpperCase");function GP(C,_,I){return C=G1(C),_=I?n:_,_===n?ro(C)?ca(C):mi(C):C.match(_)||[]}var YP=f1(function(C,_){try{return d0(C,n,_)}catch(I){return hp(I)?I:new $n(I)}}),M_e=pa(function(C,_){return A0(_,function(I){I=Bi(I),Ca(C,I,dp(C[I],C))}),C});function H_e(C){var _=C==null?0:C.length,I=jn();return C=_?e0(C,function(Q){if(typeof Q[1]!="function")throw new H0(a);return[I(Q[0]),Q[1]]}):[],f1(function(Q){for(var te=-1;++te<_;){var me=C[te];if(d0(me[0],this,Q))return d0(me[1],this,Q)}})}function L_e(C){return epe(uo(C,h))}function vp(C){return function(){return C}}function B_e(C,_){return C==null||C!==C?_:C}var k_e=JD(),O_e=JD(!0);function m2(C){return C}function Ap(C){return LD(typeof C=="function"?C:uo(C,h))}function I_e(C){return kD(uo(C,h))}function D_e(C,_){return OD(C,uo(_,h))}var P_e=f1(function(C,_){return function(I){return kl(I,C,_)}}),N_e=f1(function(C,_){return function(I){return kl(C,I,_)}});function bp(C,_,I){var Q=dr(_),te=Cu(_,Q);I==null&&!(w0(_)&&(te.length||!Q.length))&&(I=_,_=C,C=this,te=Cu(_,dr(_)));var me=!(w0(I)&&"chain"in I)||!!I.chain,ke=Aa(C);return A0(te,function(Ne){var We=_[Ne];C[Ne]=We,ke&&(C.prototype[Ne]=function(){var St=this.__chain__;if(me||St){var Mt=C(this.__wrapped__),It=Mt.__actions__=h2(this.__actions__);return It.push({func:We,args:arguments,thisArg:C}),Mt.__chain__=St,Mt}return We.apply(C,Ar([this.value()],arguments))})}),C}function T_e(){return R0._===this&&(R0._=u9),this}function _p(){}function R_e(C){return C=o1(C),f1(function(_){return ID(_,C)})}var F_e=Xm(e0),z_e=Xm(di),j_e=Xm(gi);function qP(C){return ip(C)?vi(Bi(C)):ppe(C)}function V_e(C){return function(_){return C==null?n:w3(C,_)}}var Z_e=tP(),U_e=tP(!0);function yp(){return[]}function wp(){return!1}function $_e(){return{}}function W_e(){return""}function K_e(){return!0}function Q_e(C,_){if(C=o1(C),C<1||C>W)return[];var I=U,Q=ie(C,U);_=jn(_),C-=U;for(var te=p3(Q,_);++I<C;)_(I);return te}function G_e(C){return Jn(C)?e0(C,Bi):F2(C)?[C]:h2(pP(G1(C)))}function Y_e(C){var _=++Ml;return G1(C)+_}var q_e=_u(function(C,_){return C+_},0),X_e=Jm("ceil"),J_e=_u(function(C,_){return C/_},1),eye=Jm("floor");function tye(C){return C&&C.length?gu(C,m2,Rm):n}function nye(C,_){return C&&C.length?gu(C,jn(_,2),Rm):n}function rye(C){return ia(C,m2)}function oye(C,_){return ia(C,jn(_,2))}function iye(C){return C&&C.length?gu(C,m2,Vm):n}function aye(C,_){return C&&C.length?gu(C,jn(_,2),Vm):n}var sye=_u(function(C,_){return C*_},1),lye=Jm("round"),cye=_u(function(C,_){return C-_},0);function uye(C){return C&&C.length?Or(C,m2):0}function dye(C,_){return C&&C.length?Or(C,jn(_,2)):0}return ce.after=IAe,ce.ary=HP,ce.assign=bbe,ce.assignIn=VP,ce.assignInWith=Du,ce.assignWith=_be,ce.at=ybe,ce.before=LP,ce.bind=dp,ce.bindAll=M_e,ce.bindKey=BP,ce.castArray=$Ae,ce.chain=EP,ce.chunk=eve,ce.compact=tve,ce.concat=nve,ce.cond=H_e,ce.conforms=L_e,ce.constant=vp,ce.countBy=uAe,ce.create=wbe,ce.curry=kP,ce.curryRight=OP,ce.debounce=IP,ce.defaults=xbe,ce.defaultsDeep=Ebe,ce.defer=DAe,ce.delay=PAe,ce.difference=rve,ce.differenceBy=ove,ce.differenceWith=ive,ce.drop=ave,ce.dropRight=sve,ce.dropRightWhile=lve,ce.dropWhile=cve,ce.fill=uve,ce.filter=fAe,ce.flatMap=CAe,ce.flatMapDeep=mAe,ce.flatMapDepth=pAe,ce.flatten=_P,ce.flattenDeep=dve,ce.flattenDepth=fve,ce.flip=NAe,ce.flow=k_e,ce.flowRight=O_e,ce.fromPairs=hve,ce.functions=Obe,ce.functionsIn=Ibe,ce.groupBy=vAe,ce.initial=Cve,ce.intersection=mve,ce.intersectionBy=pve,ce.intersectionWith=vve,ce.invert=Pbe,ce.invertBy=Nbe,ce.invokeMap=bAe,ce.iteratee=Ap,ce.keyBy=_Ae,ce.keys=dr,ce.keysIn=C2,ce.map=Hu,ce.mapKeys=Rbe,ce.mapValues=Fbe,ce.matches=I_e,ce.matchesProperty=D_e,ce.memoize=Bu,ce.merge=zbe,ce.mergeWith=ZP,ce.method=P_e,ce.methodOf=N_e,ce.mixin=bp,ce.negate=ku,ce.nthArg=R_e,ce.omit=jbe,ce.omitBy=Vbe,ce.once=TAe,ce.orderBy=yAe,ce.over=F_e,ce.overArgs=RAe,ce.overEvery=z_e,ce.overSome=j_e,ce.partial=fp,ce.partialRight=DP,ce.partition=wAe,ce.pick=Zbe,ce.pickBy=UP,ce.property=qP,ce.propertyOf=V_e,ce.pull=yve,ce.pullAll=wP,ce.pullAllBy=wve,ce.pullAllWith=xve,ce.pullAt=Eve,ce.range=Z_e,ce.rangeRight=U_e,ce.rearg=FAe,ce.reject=SAe,ce.remove=Sve,ce.rest=zAe,ce.reverse=cp,ce.sampleSize=HAe,ce.set=$be,ce.setWith=Wbe,ce.shuffle=LAe,ce.slice=Mve,ce.sortBy=OAe,ce.sortedUniq=Dve,ce.sortedUniqBy=Pve,ce.split=C_e,ce.spread=jAe,ce.tail=Nve,ce.take=Tve,ce.takeRight=Rve,ce.takeRightWhile=Fve,ce.takeWhile=zve,ce.tap=tAe,ce.throttle=VAe,ce.thru=Mu,ce.toArray=FP,ce.toPairs=$P,ce.toPairsIn=WP,ce.toPath=G_e,ce.toPlainObject=jP,ce.transform=Kbe,ce.unary=ZAe,ce.union=jve,ce.unionBy=Vve,ce.unionWith=Zve,ce.uniq=Uve,ce.uniqBy=$ve,ce.uniqWith=Wve,ce.unset=Qbe,ce.unzip=up,ce.unzipWith=xP,ce.update=Gbe,ce.updateWith=Ybe,ce.values=a4,ce.valuesIn=qbe,ce.without=Kve,ce.words=GP,ce.wrap=UAe,ce.xor=Qve,ce.xorBy=Gve,ce.xorWith=Yve,ce.zip=qve,ce.zipObject=Xve,ce.zipObjectDeep=Jve,ce.zipWith=eAe,ce.entries=$P,ce.entriesIn=WP,ce.extend=VP,ce.extendWith=Du,bp(ce,ce),ce.add=q_e,ce.attempt=YP,ce.camelCase=t_e,ce.capitalize=KP,ce.ceil=X_e,ce.clamp=Xbe,ce.clone=WAe,ce.cloneDeep=QAe,ce.cloneDeepWith=GAe,ce.cloneWith=KAe,ce.conformsTo=YAe,ce.deburr=QP,ce.defaultTo=B_e,ce.divide=J_e,ce.endsWith=n_e,ce.eq=zo,ce.escape=r_e,ce.escapeRegExp=o_e,ce.every=dAe,ce.find=hAe,ce.findIndex=AP,ce.findKey=Sbe,ce.findLast=gAe,ce.findLastIndex=bP,ce.findLastKey=Mbe,ce.floor=eye,ce.forEach=SP,ce.forEachRight=MP,ce.forIn=Hbe,ce.forInRight=Lbe,ce.forOwn=Bbe,ce.forOwnRight=kbe,ce.get=Cp,ce.gt=qAe,ce.gte=XAe,ce.has=Dbe,ce.hasIn=mp,ce.head=yP,ce.identity=m2,ce.includes=AAe,ce.indexOf=gve,ce.inRange=Jbe,ce.invoke=Tbe,ce.isArguments=S3,ce.isArray=Jn,ce.isArrayBuffer=JAe,ce.isArrayLike=g2,ce.isArrayLikeObject=z0,ce.isBoolean=ebe,ce.isBuffer=v9,ce.isDate=tbe,ce.isElement=nbe,ce.isEmpty=rbe,ce.isEqual=obe,ce.isEqualWith=ibe,ce.isError=hp,ce.isFinite=abe,ce.isFunction=Aa,ce.isInteger=PP,ce.isLength=Ou,ce.isMap=NP,ce.isMatch=sbe,ce.isMatchWith=lbe,ce.isNaN=cbe,ce.isNative=ube,ce.isNil=fbe,ce.isNull=dbe,ce.isNumber=TP,ce.isObject=w0,ce.isObjectLike=B0,ce.isPlainObject=Tl,ce.isRegExp=gp,ce.isSafeInteger=hbe,ce.isSet=RP,ce.isString=Iu,ce.isSymbol=F2,ce.isTypedArray=i4,ce.isUndefined=gbe,ce.isWeakMap=Cbe,ce.isWeakSet=mbe,ce.join=Ave,ce.kebabCase=i_e,ce.last=ho,ce.lastIndexOf=bve,ce.lowerCase=a_e,ce.lowerFirst=s_e,ce.lt=pbe,ce.lte=vbe,ce.max=tye,ce.maxBy=nye,ce.mean=rye,ce.meanBy=oye,ce.min=iye,ce.minBy=aye,ce.stubArray=yp,ce.stubFalse=wp,ce.stubObject=$_e,ce.stubString=W_e,ce.stubTrue=K_e,ce.multiply=sye,ce.nth=_ve,ce.noConflict=T_e,ce.noop=_p,ce.now=Lu,ce.pad=l_e,ce.padEnd=c_e,ce.padStart=u_e,ce.parseInt=d_e,ce.random=e_e,ce.reduce=xAe,ce.reduceRight=EAe,ce.repeat=f_e,ce.replace=h_e,ce.result=Ube,ce.round=lye,ce.runInContext=Ze,ce.sample=MAe,ce.size=BAe,ce.snakeCase=g_e,ce.some=kAe,ce.sortedIndex=Hve,ce.sortedIndexBy=Lve,ce.sortedIndexOf=Bve,ce.sortedLastIndex=kve,ce.sortedLastIndexBy=Ove,ce.sortedLastIndexOf=Ive,ce.startCase=m_e,ce.startsWith=p_e,ce.subtract=cye,ce.sum=uye,ce.sumBy=dye,ce.template=v_e,ce.times=Q_e,ce.toFinite=ba,ce.toInteger=o1,ce.toLength=zP,ce.toLower=A_e,ce.toNumber=go,ce.toSafeInteger=Abe,ce.toString=G1,ce.toUpper=b_e,ce.trim=__e,ce.trimEnd=y_e,ce.trimStart=w_e,ce.truncate=x_e,ce.unescape=E_e,ce.uniqueId=Y_e,ce.upperCase=S_e,ce.upperFirst=pp,ce.each=SP,ce.eachRight=MP,ce.first=yP,bp(ce,function(){var C={};return Hi(ce,function(_,I){d1.call(ce.prototype,I)||(C[I]=_)}),C}(),{chain:!1}),ce.VERSION=r,A0(["bind","bindKey","curry","curryRight","partial","partialRight"],function(C){ce[C].placeholder=ce}),A0(["drop","take"],function(C,_){an.prototype[C]=function(I){I=I===n?1:X(o1(I),0);var Q=this.__filtered__&&!_?new an(this):this.clone();return Q.__filtered__?Q.__takeCount__=ie(I,Q.__takeCount__):Q.__views__.push({size:ie(I,U),type:C+(Q.__dir__<0?"Right":"")}),Q},an.prototype[C+"Right"]=function(I){return this.reverse()[C](I).reverse()}}),A0(["filter","map","takeWhile"],function(C,_){var I=_+1,Q=I==j||I==R;an.prototype[C]=function(te){var me=this.clone();return me.__iteratees__.push({iteratee:jn(te,3),type:I}),me.__filtered__=me.__filtered__||Q,me}}),A0(["head","last"],function(C,_){var I="take"+(_?"Right":"");an.prototype[C]=function(){return this[I](1).value()[0]}}),A0(["initial","tail"],function(C,_){var I="drop"+(_?"":"Right");an.prototype[C]=function(){return this.__filtered__?new an(this):this[I](1)}}),an.prototype.compact=function(){return this.filter(m2)},an.prototype.find=function(C){return this.filter(C).head()},an.prototype.findLast=function(C){return this.reverse().find(C)},an.prototype.invokeMap=f1(function(C,_){return typeof C=="function"?new an(this):this.map(function(I){return kl(I,C,_)})}),an.prototype.reject=function(C){return this.filter(ku(jn(C)))},an.prototype.slice=function(C,_){C=o1(C);var I=this;return I.__filtered__&&(C>0||_<0)?new an(I):(C<0?I=I.takeRight(-C):C&&(I=I.drop(C)),_!==n&&(_=o1(_),I=_<0?I.dropRight(-_):I.take(_-C)),I)},an.prototype.takeRightWhile=function(C){return this.reverse().takeWhile(C).reverse()},an.prototype.toArray=function(){return this.take(U)},Hi(an.prototype,function(C,_){var I=/^(?:filter|find|map|reject)|While$/.test(_),Q=/^(?:head|last)$/.test(_),te=ce[Q?"take"+(_=="last"?"Right":""):_],me=Q||/^find/.test(_);te&&(ce.prototype[_]=function(){var ke=this.__wrapped__,Ne=Q?[1]:arguments,We=ke instanceof an,St=Ne[0],Mt=We||Jn(ke),It=function(v1){var S1=te.apply(ce,Ar([v1],Ne));return Q&&cn?S1[0]:S1};Mt&&I&&typeof St=="function"&&St.length!=1&&(We=Mt=!1);var cn=this.__chain__,Bn=!!this.__actions__.length,Zn=me&&!cn,c1=We&&!Bn;if(!me&&Mt){ke=c1?ke:new an(this);var Un=C.apply(ke,Ne);return Un.__actions__.push({func:Mu,args:[It],thisArg:n}),new p1(Un,cn)}return Zn&&c1?C.apply(this,Ne):(Un=this.thru(It),Zn?Q?Un.value()[0]:Un.value():Un)})}),A0(["pop","push","shift","sort","splice","unshift"],function(C){var _=Do[C],I=/^(?:push|sort|unshift)$/.test(C)?"tap":"thru",Q=/^(?:pop|shift)$/.test(C);ce.prototype[C]=function(){var te=arguments;if(Q&&!this.__chain__){var me=this.value();return _.apply(Jn(me)?me:[],te)}return this[I](function(ke){return _.apply(Jn(ke)?ke:[],te)})}}),Hi(an.prototype,function(C,_){var I=ce[_];if(I){var Q=I.name+"";d1.call(Re,Q)||(Re[Q]=[]),Re[Q].push({name:_,func:I})}}),Re[bu(n,x).name]=[{name:"wrapper",func:n}],an.prototype.clone=L0,an.prototype.reverse=cr,an.prototype.value=Gr,ce.prototype.at=nAe,ce.prototype.chain=rAe,ce.prototype.commit=oAe,ce.prototype.next=iAe,ce.prototype.plant=sAe,ce.prototype.reverse=lAe,ce.prototype.toJSON=ce.prototype.valueOf=ce.prototype.value=cAe,ce.prototype.first=ce.prototype.head,so&&(ce.prototype[so]=aAe),ce},Kr=xi();Lr?((Lr.exports=Kr)._=Kr,vr._=Kr):R0._=Kr}).call(tJ)}(H4,H4.exports)),H4.exports}var L4=nJ();const $o=V2(L4),wd="/not_available.svg",rJ="/big_size_image.svg",xd="/user.png",qb={HARDCODED_FALL_BACK_IMAGE:wd,HARDCODED_FALL_BACK_BIG_IMAGE:rJ,DEFAULT_AVATAR_IMAGE:xd,generateImageUrl:(e,t=!1)=>e||wd,getImageKitUrl:(e,t=300,n=300,r=40)=>e||wd,getUserAvatar:e=>{var t;return!e||!((t=e.awi_personal_info)!=null&&t.awi_avatar)?xd:e.awi_personal_info.awi_avatar||xd}};var j3=Ju();const Ed=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Sd(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function B4(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on".concat(t),n)}function Xb(e,t){const n=t.slice(0,t.length-1);for(let r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Jb(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function oJ(e,t){const n=e.length>=t.length?e:t,r=e.length>=t.length?t:e;let o=!0;for(let i=0;i<n.length;i++)r.indexOf(n[i])===-1&&(o=!1);return o}const k4={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Ed?173:189,"=":Ed?61:187,";":Ed?59:186,"'":222,"[":219,"]":221,"\\":220},mo={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},O4={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},hr={16:!1,18:!1,17:!1,91:!1},b0={};for(let e=1;e<20;e++)k4["f".concat(e)]=111+e;let p0=[],I4=null,e_="all";const Pi=new Map,D4=e=>k4[e.toLowerCase()]||mo[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),iJ=e=>Object.keys(k4).find(t=>k4[t]===e),aJ=e=>Object.keys(mo).find(t=>mo[t]===e);function t_(e){e_=e||"all"}function P4(){return e_||"all"}function sJ(){return p0.slice(0)}function lJ(){return p0.map(e=>iJ(e)||aJ(e)||String.fromCharCode(e))}function cJ(){const e=[];return Object.keys(b0).forEach(t=>{b0[t].forEach(n=>{let{key:r,scope:o,mods:i,shortcut:a}=n;e.push({scope:o,shortcut:a,mods:i,keys:r.split("+").map(s=>D4(s))})})}),e}function uJ(e){const t=e.target||e.srcElement,{tagName:n}=t;let r=!0;const o=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function dJ(e){return typeof e=="string"&&(e=D4(e)),p0.indexOf(e)!==-1}function fJ(e,t){let n,r;e||(e=P4());for(const o in b0)if(Object.prototype.hasOwnProperty.call(b0,o))for(n=b0[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1).forEach(a=>{let{element:s}=a;return Md(s)}):r++;P4()===e&&t_(t||"all")}function hJ(e){let t=e.keyCode||e.which||e.charCode;const n=p0.indexOf(t);if(n>=0&&p0.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&p0.splice(0,p0.length),(t===93||t===224)&&(t=91),t in hr){hr[t]=!1;for(const r in mo)mo[r]===t&&(U2[r]=!1)}}function n_(e){if(typeof e>"u")Object.keys(b0).forEach(o=>{Array.isArray(b0[o])&&b0[o].forEach(i=>ic(i)),delete b0[o]}),Md(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&ic(o)});else if(typeof e=="object")e.key&&ic(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let[o,i]=n;typeof o=="function"&&(i=o,o=""),ic({key:e,scope:o,method:i,splitKey:"+"})}}const ic=e=>{let{key:t,scope:n,method:r,splitKey:o="+"}=e;Jb(t).forEach(a=>{const s=a.split(o),c=s.length,u=s[c-1],d=u==="*"?"*":D4(u);if(!b0[d])return;n||(n=P4());const h=c>1?Xb(mo,s):[],g=[];b0[d]=b0[d].filter(m=>{const A=(r?m.method===r:!0)&&m.scope===n&&oJ(m.mods,h);return A&&g.push(m.element),!A}),g.forEach(m=>Md(m))})};function r_(e,t,n,r){if(t.element!==r)return;let o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(const i in hr)Object.prototype.hasOwnProperty.call(hr,i)&&(!hr[i]&&t.mods.indexOf(+i)>-1||hr[i]&&t.mods.indexOf(+i)===-1)&&(o=!1);(t.mods.length===0&&!hr[16]&&!hr[18]&&!hr[17]&&!hr[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(p0),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function o_(e,t){const n=b0["*"];let r=e.keyCode||e.which||e.charCode;if(!U2.filter.call(this,e))return;if((r===93||r===224)&&(r=91),p0.indexOf(r)===-1&&r!==229&&p0.push(r),["metaKey","ctrlKey","altKey","shiftKey"].forEach(s=>{const c=O4[s];e[s]&&p0.indexOf(c)===-1?p0.push(c):!e[s]&&p0.indexOf(c)>-1?p0.splice(p0.indexOf(c),1):s==="metaKey"&&e[s]&&(p0=p0.filter(u=>u in O4||u===r))}),r in hr){hr[r]=!0;for(const s in mo)if(Object.prototype.hasOwnProperty.call(mo,s)){const c=O4[mo[s]];U2[s]=e[c]}if(!n)return}for(const s in hr)Object.prototype.hasOwnProperty.call(hr,s)&&(hr[s]=e[O4[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(p0.indexOf(17)===-1&&p0.push(17),p0.indexOf(18)===-1&&p0.push(18),hr[17]=!0,hr[18]=!0);const o=P4();if(n)for(let s=0;s<n.length;s++)n[s].scope===o&&(e.type==="keydown"&&n[s].keydown||e.type==="keyup"&&n[s].keyup)&&r_(e,n[s],o,t);if(!(r in b0))return;const i=b0[r],a=i.length;for(let s=0;s<a;s++)if((e.type==="keydown"&&i[s].keydown||e.type==="keyup"&&i[s].keyup)&&i[s].key){const c=i[s],{splitKey:u}=c,d=c.key.split(u),h=[];for(let g=0;g<d.length;g++)h.push(D4(d[g]));h.sort().join("")===p0.sort().join("")&&r_(e,c,o,t)}}function U2(e,t,n){p0=[];const r=Jb(e);let o=[],i="all",a=document,s=0,c=!1,u=!0,d="+",h=!1,g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(c=t.keyup),t.keydown!==void 0&&(u=t.keydown),t.capture!==void 0&&(h=t.capture),typeof t.splitKey=="string"&&(d=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(i=t),g&&n_(e,i);s<r.length;s++)e=r[s].split(d),o=[],e.length>1&&(o=Xb(mo,e)),e=e[e.length-1],e=e==="*"?"*":D4(e),e in b0||(b0[e]=[]),b0[e].push({keyup:c,keydown:u,scope:i,mods:o,shortcut:r[s],method:n,key:r[s],splitKey:d,element:a});if(typeof a<"u"&&window){if(!Pi.has(a)){const m=function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return o_(A,a)},v=function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;o_(A,a),hJ(A)};Pi.set(a,{keydownListener:m,keyupListenr:v,capture:h}),Sd(a,"keydown",m,h),Sd(a,"keyup",v,h)}if(!I4){const m=()=>{p0=[]};I4={listener:m,capture:h},Sd(window,"focus",m,h)}}}function gJ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(b0).forEach(n=>{b0[n].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function Md(e){const t=Object.values(b0).flat();if(t.findIndex(r=>{let{element:o}=r;return o===e})<0){const{keydownListener:r,keyupListenr:o,capture:i}=Pi.get(e)||{};r&&o&&(B4(e,"keyup",o,i),B4(e,"keydown",r,i),Pi.delete(e))}if((t.length<=0||Pi.size<=0)&&(Object.keys(Pi).forEach(o=>{const{keydownListener:i,keyupListenr:a,capture:s}=Pi.get(o)||{};i&&a&&(B4(o,"keyup",a,s),B4(o,"keydown",i,s),Pi.delete(o))}),Pi.clear(),Object.keys(b0).forEach(o=>delete b0[o]),I4)){const{listener:o,capture:i}=I4;B4(window,"focus",o,i),I4=null}}const Hd={getPressedKeyString:lJ,setScope:t_,getScope:P4,deleteScope:fJ,getPressedKeyCodes:sJ,getAllKeyCodes:cJ,isPressed:dJ,filter:uJ,trigger:gJ,unbind:n_,keyMap:k4,modifier:mo,modifierMap:O4};for(const e in Hd)Object.prototype.hasOwnProperty.call(Hd,e)&&(U2[e]=Hd[e]);if(typeof window<"u"){const e=window.hotkeys;U2.noConflict=t=>(t&&window.hotkeys===U2&&(window.hotkeys=e),U2),window.hotkeys=U2}class X1 extends O.Component{constructor(t){super(t),this.isKeyDown=!1,this.handle=void 0,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.handleKeyUpEvent=this.handleKeyUpEvent.bind(this),this.handle={}}componentDidMount(){var{filter:t,splitKey:n}=this.props;t&&(U2.filter=t),U2.unbind(this.props.keyName),U2(this.props.keyName,{splitKey:n},this.onKeyDown),document&&document.body.addEventListener("keyup",this.handleKeyUpEvent)}componentWillUnmount(){U2.unbind(this.props.keyName),this.isKeyDown=!0,this.handle={},document&&document.body.removeEventListener("keyup",this.handleKeyUpEvent)}onKeyUp(t,n){var{onKeyUp:r,disabled:o}=this.props;!o&&r&&r(n.shortcut,t,n)}onKeyDown(t,n){var{onKeyDown:r,allowRepeat:o,disabled:i}=this.props;this.isKeyDown&&!o||(this.isKeyDown=!0,this.handle=n,!i&&r&&r(n.shortcut,t,n))}handleKeyUpEvent(t){this.isKeyDown&&(this.isKeyDown=!1,!(this.props.keyName&&this.props.keyName.indexOf(this.handle.shortcut)<0)&&(this.onKeyUp(t,this.handle),this.handle={}))}render(){return this.props.children||null}}X1.defaultProps={filter(e){var t=e.target||e.srcElement,n=t.tagName;return!(t.isContentEditable||n==="INPUT"||n==="SELECT"||n==="TEXTAREA")}},X1.propTypes={keyName:j3.string,filter:j3.func,onKeyDown:j3.func,onKeyUp:j3.func,disabled:j3.bool,splitKey:j3.string};const i_=["shift","alt","meta","mod","ctrl","control"],CJ={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Oa(e){return(CJ[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function a_(e){return i_.includes(e)}function Ld(e,t=","){return e.toLowerCase().split(t)}function Bd(e,t="+",n=">",r=!1,o){let i=[],a=!1;e.includes(n)?(a=!0,i=e.toLocaleLowerCase().split(n).map(u=>Oa(u))):i=e.toLocaleLowerCase().split(t).map(u=>Oa(u));const s={alt:i.includes("alt"),ctrl:i.includes("ctrl")||i.includes("control"),shift:i.includes("shift"),meta:i.includes("meta"),mod:i.includes("mod"),useKey:r},c=i.filter(u=>!i_.includes(u));return{...s,keys:c,description:o,isSequence:a}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&s_([Oa(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&l_([Oa(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{Ni.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{Ni.clear()},0)}));const Ni=new Set;function kd(e){return Array.isArray(e)}function mJ(e,t=","){return(kd(e)?e:e.split(t)).every(n=>Ni.has(n.trim().toLowerCase()))}function s_(e){const t=Array.isArray(e)?e:[e];Ni.has("meta")&&Ni.forEach(n=>!a_(n)&&Ni.delete(n.toLowerCase())),t.forEach(n=>Ni.add(n.toLowerCase()))}function l_(e){const t=Array.isArray(e)?e:[e];e==="meta"?Ni.clear():t.forEach(n=>Ni.delete(n.toLowerCase()))}function pJ(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function vJ(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function AJ(e){return c_(e,["input","textarea","select"])}function c_(e,t=!1){const{target:n,composed:r}=e;let o;return bJ(n)&&r?o=e.composedPath()[0]&&e.composedPath()[0].tagName:o=n&&n.tagName,kd(t)?!!(o&&t&&t.some(i=>i.toLowerCase()===o.toLowerCase())):!!(o&&t&&t)}function bJ(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function _J(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(n=>t.includes(n))||e.includes("*"):!0}const yJ=(e,t,n=!1)=>{const{alt:r,meta:o,mod:i,shift:a,ctrl:s,keys:c,useKey:u}=t,{code:d,key:h,ctrlKey:g,metaKey:m,shiftKey:v,altKey:A}=e,p=Oa(d);if(u&&(c==null?void 0:c.length)===1&&c.includes(h))return!0;if(!(c!=null&&c.includes(p))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(p))return!1;if(!n){if(r!==A&&p!=="alt"||a!==v&&p!=="shift")return!1;if(i){if(!m&&!g)return!1}else if(o!==m&&p!=="meta"&&p!=="os"||s!==g&&p!=="ctrl"&&p!=="control")return!1}return c&&c.length===1&&c.includes(p)?!0:c?mJ(c):!c},wJ=O.createContext(void 0),xJ=()=>O.useContext(wJ);function u_(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((n,r)=>n&&u_(e[r],t[r]),!0):e===t}const EJ=O.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),SJ=()=>O.useContext(EJ);function MJ(e){const t=O.useRef(void 0);return u_(t.current,e)||(t.current=e),t.current}const d_=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},HJ=typeof window<"u"?O.useLayoutEffect:O.useEffect;function f_(e,t,n,r){const o=O.useRef(null),i=O.useRef(!1),a=n instanceof Array?r instanceof Array?void 0:r:n,s=kd(e)?e.join(a==null?void 0:a.delimiter):e,c=n instanceof Array?n:r instanceof Array?r:void 0,u=O.useCallback(t,c??[]),d=O.useRef(u);c?d.current=u:d.current=t;const h=MJ(a),{activeScopes:g}=SJ(),m=xJ();return HJ(()=>{if((h==null?void 0:h.enabled)===!1||!_J(g,h==null?void 0:h.scopes))return;let v=[],A;const p=(E,S=!1)=>{var M;if(!(AJ(E)&&!c_(E,h==null?void 0:h.enableOnFormTags))){if(o.current!==null){const H=o.current.getRootNode();if((H instanceof Document||H instanceof ShadowRoot)&&H.activeElement!==o.current&&!o.current.contains(H.activeElement)){d_(E);return}}(M=E.target)!=null&&M.isContentEditable&&!(h!=null&&h.enableOnContentEditable)||Ld(s,h==null?void 0:h.delimiter).forEach(H=>{var k,D,P,T;if(H.includes((h==null?void 0:h.splitKey)??"+")&&H.includes((h==null?void 0:h.sequenceSplitKey)??">")){console.warn(`Hotkey ${H} contains both ${(h==null?void 0:h.splitKey)??"+"} and ${(h==null?void 0:h.sequenceSplitKey)??">"} which is not supported.`);return}const N=Bd(H,h==null?void 0:h.splitKey,h==null?void 0:h.sequenceSplitKey,h==null?void 0:h.useKey,h==null?void 0:h.description);if(N.isSequence){A=setTimeout(()=>{v=[]},(h==null?void 0:h.sequenceTimeoutMs)??1e3);const F=N.useKey?E.key:Oa(E.code);if(a_(F.toLowerCase()))return;v.push(F);const j=(k=N.keys)==null?void 0:k[v.length-1];if(F!==j){v=[],A&&clearTimeout(A);return}v.length===((D=N.keys)==null?void 0:D.length)&&(d.current(E,N),A&&clearTimeout(A),v=[])}else if(yJ(E,N,h==null?void 0:h.ignoreModifiers)||(P=N.keys)!=null&&P.includes("*")){if((T=h==null?void 0:h.ignoreEventWhen)!=null&&T.call(h,E)||S&&i.current)return;if(pJ(E,N,h==null?void 0:h.preventDefault),!vJ(E,N,h==null?void 0:h.enabled)){d_(E);return}d.current(E,N),S||(i.current=!0)}})}},x=E=>{E.code!==void 0&&(s_(Oa(E.code)),((h==null?void 0:h.keydown)===void 0&&(h==null?void 0:h.keyup)!==!0||h!=null&&h.keydown)&&p(E))},y=E=>{E.code!==void 0&&(l_(Oa(E.code)),i.current=!1,h!=null&&h.keyup&&p(E,!0))},w=o.current||(a==null?void 0:a.document)||document;return w.addEventListener("keyup",y,a==null?void 0:a.eventListenerOptions),w.addEventListener("keydown",x,a==null?void 0:a.eventListenerOptions),m&&Ld(s,h==null?void 0:h.delimiter).forEach(E=>m.addHotkey(Bd(E,h==null?void 0:h.splitKey,h==null?void 0:h.sequenceSplitKey,h==null?void 0:h.useKey,h==null?void 0:h.description))),()=>{w.removeEventListener("keyup",y,a==null?void 0:a.eventListenerOptions),w.removeEventListener("keydown",x,a==null?void 0:a.eventListenerOptions),m&&Ld(s,h==null?void 0:h.delimiter).forEach(E=>m.removeHotkey(Bd(E,h==null?void 0:h.splitKey,h==null?void 0:h.sequenceSplitKey,h==null?void 0:h.useKey,h==null?void 0:h.description))),v=[],A&&clearTimeout(A)}},[s,h,g]),o}const gr={table:"_table_q0jcp_1",table__header:"_table__header_q0jcp_18",table__header__th:"_table__header__th_q0jcp_24",table__row:"_table__row_q0jcp_38",table__row__row_selected:"_table__row__row_selected_q0jcp_44",table__row__td:"_table__row__td_q0jcp_47",clickable:"_clickable_q0jcp_68",loadMoreButton:"_loadMoreButton_q0jcp_73",loadMoreButtonDiv:"_loadMoreButtonDiv_q0jcp_78",table_container:"_table_container_q0jcp_84",scrollable_table:"_scrollable_table_q0jcp_92",pagination_container:"_pagination_container_q0jcp_104",pagination_btn:"_pagination_btn_q0jcp_113",active:"_active_q0jcp_130",pagination_dots:"_pagination_dots_q0jcp_135",pagination_input:"_pagination_input_q0jcp_140",nextPrevArrow:"_nextPrevArrow_q0jcp_165",pagination_left:"_pagination_left_q0jcp_179",pagination_right:"_pagination_right_q0jcp_191",pagination_loading:"_pagination_loading_q0jcp_204"},h_=({children:e,disableOverflowY:t=!1,tableClass:n="",disableFixHeight:r,isPagination:o=!0})=>Z.jsx("div",{className:qn(gr.table_container,n),style:{overflowY:t?"unset":"auto",height:r?"unset":o?"70vh":"78vh",maxHeight:o?"70vh":"85vh"},children:Z.jsx("table",{id:"resizeMe",className:qn(gr.table,gr.scrollable_table),children:e})}),g_=({children:e})=>Z.jsx("tbody",{className:gr.table__body,children:e}),Od=({children:e,className:t="",title:n="",onclick:r})=>Z.jsx("tr",{className:qn(gr.table__row,{[t]:!!t}),title:n,...r&&{onClick:r},children:e}),N4=({children:e,className:t="",extraClass:n="",title:r="",...o})=>{const i=qn(gr.table__row__td,t,(n==null?void 0:n.length)>0&&gr.clickable);return Z.jsx("td",{className:i,title:r,children:Z.jsx("span",{...o,style:{textAlign:"left"},children:e})})},C_=({children:e,className:t="",title:n=""})=>Z.jsx("th",{className:qn(gr.table__header__th,{[t]:t}),title:n,children:Z.jsxs("span",{children:[e," "]})}),m_=({children:e,className:t=""})=>Z.jsx("thead",{className:qn(gr.table__header,{[t]:!!t}),children:e}),p_=({list:e,headerClass:t="",type:n=""})=>(console.log("AWIHEADER List,",e),Z.jsx(m_,{className:t,children:Z.jsx(Od,{children:e.map(r=>Z.jsx(C_,{children:r},r))},`row_${n}`)},n)),Id=({toggleSelectAnnotation:e=()=>{console.log("Not available")},handleLeftKeyDown:t=()=>{console.log("Not available")},handleRightKeyDown:n=()=>{console.log("Not available")},handleUpKeyDown:r=()=>{console.log("Not available")},handleDownKeyDown:o=()=>{console.log("Not available")},handleZoomInClick:i=()=>{console.log("Not available")},handleZoomOutClick:a=()=>{console.log("Not available")},handleCompleteAnnotation:s=()=>{console.log("Not available")},undoAnnotationPoint:c=()=>{console.log("Not available")},reLoadAndReDrawAnnotations:u=()=>{console.log("Not available")},togglePagination:d=()=>{console.log("Not available")},toggleFullscreen:h=()=>{console.log("Not available")},switchToAutoAnnotations:g=()=>{console.log("Not available")},openShortCutRequestDetails:m=()=>{console.log("Not available")},handleRecentAnnotatedVerifiedImages:v=()=>{console.log("Not available")},handleSendToSamFunctionPrompt:A=()=>{console.log("Not available")},samAPIactive:p,request:x,switchToEditMode:y=()=>{console.log("Not available")},switchToCreateMode:w=()=>{console.log("Not available")},goToNextImage:E=()=>{console.log("Not available")},goToPreviousImage:S=()=>{console.log("Not available")},loggedUser:M,handleGoToPendingAnnotations:H=()=>{console.log("Not available")},handleCopyByCtrlC:k=()=>{console.log("Not available")},handlePasteAnnotationsByControlV:D=()=>{console.log("Not available")},openShortCutKeyModal:P,setOpenShortCutKeyModal:T=()=>{console.log("Not available")},setIsAltViaToolPressHandle:N=()=>{console.log("Not available")},isCarousel:F=!1,selectedTool:j="",setCrossHairHandle:z=()=>{console.log("Not available")},controlMinusHotkey:R=()=>{console.log("Not available")},controlPlusHotkey:$=()=>{console.log("Not available")}})=>{const W=p2.isSAMAllowed(x==null?void 0:x.awi_annotation_type,x==null?void 0:x.awi_request_for)&&!p,q=["awi_annotator","awi_verifier","awi_developer"].includes(M.userObj.awi_level),K=()=>{const J=[{action:"next image",key:"next_image",displayKey:"d",title:"Move to the next image",isClose:!0},{action:"previous image",key:"prev_image",displayKey:"a",title:"Move to the previous image",isClose:!0}],Y=[{action:"Go to pending annotation",key:"pending_annotations",displayKey:"p",title:"Go to pending annotation",isClose:!0}],ee=[{action:"Switch to edit",key:"edit_mode",displayKey:"e",title:"Switch to edit mode",isClose:!0},{action:"Switch to create",key:"create_mode",displayKey:"q",title:"Switch to create mode",isClose:!0},{action:"Switch to pan mode",key:"pan_mode",displayKey:"m",title:"Switch to pan mode",isClose:!0},{action:"Show cross hair",key:"cross_hair",displayKey:"w",title:"Show cross hair",isClose:!0},{action:"Copy selected annotation",key:"copy",displayKey:"Ctrl + C",title:"Copy selected annotation",isClose:!1},{action:"Paste all annotations",key:"paste",displayKey:"Ctrl + V",title:"Paste all copied annotations",isClose:!1},{action:"Forward Toggle Annotations",key:"select_forward",displayKey:"T",title:"Forward Toggle annotations visibility, Long press to get next",isClose:!1},{action:"Backward Toggle Annotations",key:"select_backward",displayKey:"U",title:"Backward Toggle annotations visibility, Long press to get previous",isClose:!1},{action:"Go to last updated annotations",key:"select_last_update",displayKey:"L",title:"Go to last updated annotations",isClose:!0},{action:"Undo Annotation point / Last State",key:"undo",displayKey:"Ctrl + Z",title:"Undo last annotation action",isClose:!0},{action:"Complete Annotation / Generate Point Annotations",key:"complete",displayKey:"Enter",title:"Finalize or generate point annotations",isClose:!0},{action:"Switch to Auto Annotations",key:"auto_annotations",displayKey:"S",title:"Enable automatic annotation mode",isClose:!0},{action:"AI prompt popup",key:"send_to_sam",displayKey:"X (if AI is enabled)",title:"AI prompt popup",isClose:!0},{action:"Get request information",key:"open_shortcut_details",displayKey:"V",title:"View request-related information",isClose:!0},{action:"Refetch Annotations",key:"reload",displayKey:"R",title:"Reload annotations",isClose:!0},{action:"Toggle Image Pagination",key:"toggle_pagination",displayKey:"H",title:"Show or hide image pagination",isClose:!1},{action:"Zoom In",key:"zoom_in",displayKey:"I",title:"Zoom into the image, long press for more zoom in",isClose:!1},{action:"Zoom Out",key:"zoom_out",displayKey:"O",title:"Zoom out of the image, long press for more zoom out",isClose:!1},{action:"Moving Zoomed images",key:"",displayKey:"Alt + Mouse Move",title:"Move the zoomed-in image",isClose:!1},{action:"View Recently Annotated Images",key:"recent_verified",displayKey:"Alt + R",title:"Show recently annotated images",isClose:!0},{action:"Delete Annotation",key:"",displayKey:"Ctrl + Delete",title:"Delete the selected annotation",isClose:!1},{action:"Move image to left",key:"move_left",displayKey:"←",title:"Move image to left",isClose:!1},{action:"Move image to right",key:"move_right",displayKey:"→",title:"Move image to right",isClose:!1},{action:"Move image to top",key:"move_up",displayKey:"↑",title:"Move image to top",isClose:!1},{action:"Move image to bottom",key:"move_down",displayKey:"↓",title:"Move image to bottom",isClose:!1},{action:"Enter/Exit Fullscreen",key:"fullscreen",displayKey:"F",title:"Enter/Exit Fullscreen",isClose:!1}];return M.userObj.awi_level==="awi_verifier"?[...J,...ee,...Y]:M.userObj.awi_level==="awi_supervisor"?J:[...J,...ee]},U=J=>{switch(J){case"select_forward":return e("forward");case"select_backward":return e("backward");case"select_last_update":return e("last_update");case"move_left":return t();case"move_right":return n();case"move_up":return r();case"move_down":return o();case"zoom_in":return i();case"zoom_out":return a();case"complete":return s();case"undo":return c();case"reload":return u();case"toggle_pagination":return d(Y=>!Y);case"fullscreen":return h();case"auto_annotations":return g();case"open_shortcut_details":return m();case"recent_verified":return v();case"send_to_sam":if(W)return j!="SAM"&&g(),A();V1.error("SAM is not allowed");return;case"edit_mode":if(y)return y();break;case"create_mode":if(w)return w();break;case"next_image":if(E)return E();break;case"prev_image":if(S)return S();break;case"pending_annotations":if(H)return H();break;case"copy":if(k)return k();break;case"paste":if(D)return D();break;case"pan_mode":N();break;case"cross_hair":z&&typeof z=="function"&&z();break;default:console.warn(`Unhandled hotkey action: ${J}`)}},G=(J,Y)=>{U(J),Y&&T(!1)};return f_("ctrl+=",J=>{J.preventDefault(),$()}),f_("ctrl+-, ctrl+subtract, ctrl+minus",J=>{J.preventDefault(),R()}),Z.jsxs(Z.Fragment,{children:[Z.jsx(X1,{allowRepeat:!0,keyName:"t",onKeyDown:()=>U("select_forward")}),Z.jsx(X1,{allowRepeat:!0,keyName:"u",onKeyDown:()=>U("select_backward")}),Z.jsx(X1,{allowRepeat:!1,keyName:"l",onKeyDown:()=>U("select_last_update")}),Z.jsx(X1,{allowRepeat:!0,keyName:"left",onKeyDown:()=>U("move_left")}),Z.jsx(X1,{allowRepeat:!0,keyName:"right",onKeyDown:()=>U("move_right")}),Z.jsx(X1,{allowRepeat:!0,keyName:"up",onKeyDown:()=>U("move_up")}),Z.jsx(X1,{allowRepeat:!0,keyName:"down",onKeyDown:()=>U("move_down")}),Z.jsx(X1,{allowRepeat:!0,keyName:"i",onKeyDown:()=>U("zoom_in")}),Z.jsx(X1,{allowRepeat:!0,keyName:"o",onKeyDown:()=>U("zoom_out")}),Z.jsx(X1,{keyName:"enter",onKeyDown:()=>U("complete")}),Z.jsx(X1,{keyName:"ctrl+z",onKeyDown:()=>U("undo")}),Z.jsx(X1,{keyName:"r",onKeyDown:()=>U("reload")}),Z.jsx(X1,{keyName:"h",onKeyDown:()=>U("toggle_pagination")}),Z.jsx(X1,{keyName:"f",onKeyDown:()=>U("fullscreen")}),Z.jsx(X1,{keyName:"s",onKeyDown:()=>U("auto_annotations")}),Z.jsx(X1,{keyName:"v",onKeyDown:()=>U("open_shortcut_details")}),Z.jsx(X1,{keyName:"alt+r",onKeyDown:()=>U("recent_verified")}),W&&Z.jsx(X1,{keyName:"x",onKeyDown:()=>U("send_to_sam")}),q&&Z.jsxs(Z.Fragment,{children:[Z.jsx(X1,{keyName:"e",onKeyDown:()=>U("edit_mode")}),Z.jsx(X1,{keyName:"q",onKeyDown:()=>U("create_mode")})]}),Z.jsx(X1,{keyName:"d",onKeyDown:()=>U("next_image")}),Z.jsx(X1,{keyName:"a",onKeyDown:()=>U("prev_image")}),M.userObj.awi_level==="awi_verifier"&&Z.jsx(X1,{keyName:"p",onKeyDown:()=>U("pending_annotations")}),Z.jsx(X1,{keyName:"ctrl+c",onKeyDown:()=>U("copy")}),Z.jsx(X1,{keyName:"ctrl+v",onKeyDown:()=>U("paste")}),Z.jsx(X1,{keyName:"m",onKeyDown:()=>U("pan_mode")}),Z.jsx(X1,{keyName:"w",onKeyDown:()=>U("cross_hair")}),P&&!F&&Z.jsx(Z.Fragment,{children:Z.jsxs(F6,{popupPosition:"right",isBackdrop:!0,backdropAction:()=>T(!1),className:"noPadding",children:[Z.jsx(j6,{title:"Shortcut keys",onClose:()=>T(!1)}),Z.jsx(z6,{children:Z.jsxs(h_,{children:[Z.jsx(p_,{list:["S.NO.","Command","Key Binding","Action"]},"short_cut_keys"),Z.jsx(g_,{children:(K()||[]).map((J,Y)=>{var ee;return Z.jsxs(Od,{title:J.title,children:[Z.jsx(N4,{children:Y+1}),Z.jsx(N4,{children:J.action}),Z.jsx(N4,{children:Z.jsxs("div",{className:"shortcutKey",children:[" ",J.displayKey," "]})}),Z.jsx(N4,{children:((ee=J==null?void 0:J.key)==null?void 0:ee.length)>0&&Z.jsx("button",{className:"modalButton modalButton__purpleColor",onClick:()=>G(J.key,J.isClose),children:"Press"})})]})})})]})}),Z.jsx(Z6,{})]})})]})},LJ=10,BJ=12,v_=e=>{switch(e){case"rectangle":return q1.rectangleIcon.IconComponent;case"circle":return q1.circleIcon.IconComponent;case"polygon":return q1.polygonIcon.IconComponent;case"dot":return q1.dotIcon.IconComponent;default:return q1.rectangleIcon.IconComponent}},ac=({isEditing:e,handleSelectTool:t=()=>{console.log("handleSelectTool function is not provided")},handleSAMToggle:n=()=>{console.log("handleSAMToggle function is not provided")},hasAnnotation:r=!1,currentSelectedSAMTool:o="Normal",handleCopyAnnotations:i,setOpenRequestDetails:a=()=>{console.log("setOpenRequestDetails function is not provided")},openRequestDetails:s,show_guidelines_first:c,handleZoomInClick:u,zoomProperties:d,handleReset:h,handleZoomOutClick:g,handleCompleteAnnotation:m,toggleFullscreen:v,selectAnnotationId:A,selectedAnnotationInfo:p,undoLastStateAnnotation:x,usingSamFunction:y,samAPIactive:w,handleSendToSamFunction:E,coordinates:S,handleSendToSamFunctionPrompt:M,reLoadAndReDrawAnnotations:H,showGuidelinesFirst:k,isMobile:D,toggleSelectAnnotation:P,handleLeftKeyDown:T,handleRightKeyDown:N,handleUpKeyDown:F,handleDownKeyDown:j,undoAnnotationPoint:z,togglePagination:R,switchToEditMode:$,switchToCreateMode:W,goToNextImage:q,goToPreviousImage:K,handleGoToPendingAnnotations:U,handleCopyByCtrlC:G,handlePasteAnnotationsByControlV:J,showPagination:Y=!1,loggedUser:ee,isControlViaToolPress:oe,isAltViaToolPress:de,setIsControlViaToolPress:se,setIsAltViaToolPress:xe,isCarousel:we=!1,allowedToCopyPreview:ve,classColorMapToSend:he,request:le,parentReqData:ae,RequestInfoModal:_e,setCrossHair:Oe,isCrossHair:Ie,annotationViewType:ge="atom",REACT_APP_SAM_ENABLED:et="no",controlPlusHotkey:fe,controlMinusHotkey:ne,Carousel:pe})=>{var Yt,An,_n,Qt,kt,Ht,xt,Zt,Cn,mt;(a==null||typeof a!="function")&&(a=pt=>{console.log("setOpenRequestDetails function is not provided",pt)}),t||(t=pt=>{console.log("handleSelectTool function is not provided",pt)}),n||(n=pt=>{console.log("handleSAMToggle function is not provided",pt)});const[Se,Le]=O.useState(!1),[Be,Ve]=O.useState(!1),[Ke,ct]=O.useState(""),[tt,Qe]=O.useState(!1),[Fe,ot]=O.useState(o),Ue=()=>{ct(""),a(!1),Ve(!1),Le(!0)},ze=(pt="annotated")=>{ct(pt),a(!1),Le(!1),Ve(!0)},Ge=()=>{le!=null&&le.total_verified_images_count?ze("verified"):ze("annotated")},dt=pt=>{t("annotate"),n(pt),ot(pt)},qe=pt=>{typeof t=="function"&&t("edit"),typeof n=="function"&&n("Normal"),typeof ot=="function"&&ot("Normal")},ft=()=>{if(Fe=="Normal"){if(!p2.isSAMAllowed(le==null?void 0:le.awi_annotation_type,le==null?void 0:le.awi_request_for))return;dt("SAM")}else dt("Normal")},Nt=()=>{k&&s||typeof a=="function"&&a(pt=>!pt)};O.useEffect(()=>{o&&ot(o)},[o]);const Kt=pt=>{i&&typeof i=="function"&&i(pt,!0)},sn=()=>{xe(!de)},Nn=()=>{Oe(!Ie)};return ve&&we?null:we?Z.jsx(Z.Fragment,{children:Z.jsx(Id,{toggleSelectAnnotation:P,handleLeftKeyDown:T,handleRightKeyDown:N,handleUpKeyDown:F,handleDownKeyDown:j,handleZoomInClick:u,handleZoomOutClick:g,handleCompleteAnnotation:m,undoAnnotationPoint:z,reLoadAndReDrawAnnotations:H,togglePagination:R,toggleFullscreen:v,switchToAutoAnnotations:ft,openShortCutRequestDetails:Nt,handleRecentAnnotatedVerifiedImages:Ge,samAPIactive:w,request:le,handleSendToSamFunctionPrompt:M,switchToEditMode:$,switchToCreateMode:W,goToNextImage:q,goToPreviousImage:K,handleGoToPendingAnnotations:U,handleCopyByCtrlC:G,handlePasteAnnotationsByControlV:J,openShortCutKeyModal:tt,setOpenShortCutKeyModal:Qe,setIsAltViaToolPressHandle:sn,isCarousel:we,selectedTool:Fe,setCrossHairHandle:Nn,loggedUser:ee,controlMinusHotkey:ne,controlPlusHotkey:fe})}):Z.jsxs("div",{style:{...D||ge==="library"?{width:"100%",height:"40px"}:{height:"100%",width:"100%",maxHeight:"100%"},overflow:"auto"},children:[Z.jsx(Z.Fragment,{children:Z.jsx(Id,{toggleSelectAnnotation:P,handleLeftKeyDown:T,handleRightKeyDown:N,handleUpKeyDown:F,handleDownKeyDown:j,handleZoomInClick:u,handleZoomOutClick:g,handleCompleteAnnotation:m,undoAnnotationPoint:z,reLoadAndReDrawAnnotations:H,togglePagination:R,toggleFullscreen:v,switchToAutoAnnotations:ft,openShortCutRequestDetails:Nt,handleRecentAnnotatedVerifiedImages:Ge,samAPIactive:w,request:le,handleSendToSamFunctionPrompt:M,switchToEditMode:$,switchToCreateMode:W,goToNextImage:q,goToPreviousImage:K,handleGoToPendingAnnotations:U,handleCopyByCtrlC:G,handlePasteAnnotationsByControlV:J,openShortCutKeyModal:tt,setOpenShortCutKeyModal:Qe,setIsAltViaToolPressHandle:sn,selectedTool:Fe,setCrossHairHandle:Nn,loggedUser:ee,isCarousel:we,controlMinusHotkey:ne,controlPlusHotkey:fe})}),Z.jsxs("div",{className:Sn.annotation__tool__icons,style:{display:"flex",justifyContent:D?"center":"space-between",flexDirection:D?"row":"column",backgroundColor:"#fff",width:D?"100%":"auto",...D||ge=="library"?{maxWidth:"100%",overflowX:"auto",gap:"20px"}:{height:"100%"}},children:[Z.jsxs("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:[(le==null?void 0:le.awi_request_for)!="attributes"?Z.jsx("div",{className:qn({[Sn.annotation__tool__icons__selected]:!e},Sn.annotationIconDiv,"cursor-pointer"),onClick:()=>{typeof t=="function"&&t("annotate")},title:e?"Create to change from edit to create mode":"Create to start create mode",children:(le==null?void 0:le.awi_annotation_type)&&((Yt=le==null?void 0:le.awi_annotation_type)==null?void 0:Yt.length)>0&&Z.jsx("img",{src:v_(le==null?void 0:le.awi_annotation_type),alt:"annotation tool",title:"Annotate - keyboard(Q)",className:Sn.annotationIcon})}):Z.jsx("div",{className:Sn.annotationIconDiv,children:(le==null?void 0:le.awi_annotation_type)&&((An=le==null?void 0:le.awi_annotation_type)==null?void 0:An.length)>0&&Z.jsx("img",{src:v_(le==null?void 0:le.awi_annotation_type),alt:"annotation tool",title:"Annotate - keyboard(Q)",className:Sn.annotationIcon})}),r&&Z.jsx("div",{className:qn({[Sn.annotation__tool__icons__selected]:e},Sn.annotationIconDiv,"cursor-pointer"),onClick:()=>qe(),title:"Edit - keyboard(E)",children:Z.jsx("img",{src:q1.editIcon.IconComponent,alt:"Edit",className:Sn.annotationIcon})}),Z.jsx("div",{className:qn({[Sn.annotation__tool__icons__selected]:oe},Sn.annotationIconDiv,"cursor-pointer"),onClick:()=>se(!oe),title:"Control",children:Z.jsx("img",{src:q1.controlIcon.IconComponent,alt:"Control",className:Sn.annotationIcon})}),Z.jsx("div",{className:qn({[Sn.annotation__tool__icons__selected]:de},Sn.annotationIconDiv,"cursor-pointer"),onClick:()=>xe(!de),title:"Alt press / Panning mode",children:Z.jsx("img",{src:q1.moveIcon.IconComponent,alt:"Alt",className:Sn.annotationIcon})}),Z.jsx("div",{className:qn({[Sn.annotation__tool__icons__selected]:Ie},Sn.annotationIconDiv,"cursor-pointer"),onClick:()=>Oe(!Ie),title:"Cross Hair",children:Z.jsx("img",{src:q1.crosshairIcon.IconComponent,alt:"Cross Hair",className:Sn.annotationIcon})}),!e&&(le==null?void 0:le.awi_annotation_type)==="polygon"&&(le==null?void 0:le.awi_request_for)!="attributes"&&S.length>2?Z.jsx("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:Z.jsx("div",{onClick:m,title:"Click to complete your polygon annotation",className:Sn.annotationIconDiv,children:Z.jsx("img",{src:q1.filledTickIcon.IconComponent,className:Sn.annotationIcon})})}):Z.jsx(Z.Fragment,{children:(le==null?void 0:le.awi_annotation_type)==="polygon"&&Z.jsx("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:Z.jsx("div",{title:"Works for create mode with minimum 3 coordinates",className:Sn.annotationIconDiv,style:{cursor:"not-allowed !important",opacity:"0.5"},children:Z.jsx("img",{src:q1.filledTickIcon.IconComponent,className:qn(Sn.annotationIcon,"not-allowed-pointer")})})})}),Z.jsx("div",{className:Sn.partitionLine})]}),Z.jsxs("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:[Z.jsx("div",{className:Sn.annotationIconDiv,children:Z.jsxs("div",{onClick:((_n=p==null?void 0:p.past_coords)==null?void 0:_n.length)>0&&e&&A!=="-1"?x:void 0,title:((Qt=p==null?void 0:p.past_coords)==null?void 0:Qt.length)>0&&e&&A!=="-1"?"Click to revert annotation":"No undo available",style:{width:"1.8rem",height:"1.8rem",position:"relative",cursor:((kt=p==null?void 0:p.past_coords)==null?void 0:kt.length)>0&&e&&A!=="-1"?"pointer":"not-allowed",opacity:((Ht=p==null?void 0:p.past_coords)==null?void 0:Ht.length)>0&&e&&A!=="-1"?1:.5,pointerEvents:((xt=p==null?void 0:p.past_coords)==null?void 0:xt.length)>0&&e&&A!=="-1"?"auto":"none"},children:[Z.jsx("img",{src:q1.undoAnnotationIcon.IconComponent,alt:"Undo",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"0.25rem"}}),((Zt=p==null?void 0:p.past_coords)==null?void 0:Zt.length)>0&&e&&A!=="-1"&&Z.jsx("div",{className:Sn.undoAnnotationCount,children:p.past_coords.length})]})}),Z.jsx("div",{className:Sn.annotationIconDiv,children:Z.jsx("img",{onClick:u,src:q1.zoomInIcon.IconComponent,className:`cursor-pointer ${d.scale===BJ?"cursor-pointer-disable":""} ${Sn.annotationIcon}`,title:"Zoom in - Keyboard(I)"})}),Z.jsx("div",{className:Sn.annotationIconDiv,children:Z.jsx("div",{onClick:h,title:`Click to Reset Zoom ${d.scale.toFixed(1)} to default`,className:Sn.annotationIcon,style:{fontSize:"12px",justifyContent:"center",display:"flex"},children:d.scale.toFixed(1)})}),Z.jsx("div",{className:Sn.annotationIconDiv,children:Z.jsx("img",{onClick:g,src:q1.zoomOutIcon.IconComponent,className:`cursor-pointer ${d.scale===1?"cursor-pointer-disable":""} ${Sn.annotationIcon}`,title:"Zoom out - Keyboard(O)"})}),Z.jsx("div",{onClick:()=>v(),className:Sn.annotationIconDiv,style:{display:"flex",alignItems:"center",justifyContent:"center"},title:"Toggle Fullscreen - Keyboard(F)",id:"toggle_full_screen",children:Z.jsx("img",{src:q1.toggleFullscreenIcon.IconComponent,className:Sn.annotationIcon})}),Z.jsx("div",{className:Sn.partitionLine})]}),Z.jsxs("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:[et=="yes"&&p2.isSAMAllowed(le==null?void 0:le.awi_annotation_type,le==null?void 0:le.awi_request_for)&&Z.jsx("div",{style:{display:"flex",alignItems:"center"},title:"AI tools - keyboard(S)",children:Z.jsxs("label",{className:Sn.switch,style:{marginLeft:"4px",width:"30px important"},children:[Z.jsx("input",{type:"checkbox",checked:Fe==="SAM",onChange:()=>{dt(Fe==="SAM"?"Normal":"SAM")}}),Z.jsx("span",{className:qn(Sn.slider,Sn.round)})]})}),p2.isSAMAllowed(le==null?void 0:le.awi_annotation_type,le==null?void 0:le.awi_request_for)&&Z.jsxs("div",{className:qn({"disabled-class":!y}),style:{justifyContent:"space-between",display:"flex",flexDirection:D?"row":"column",gap:"15px"},children:[(le==null?void 0:le.awi_annotation_type)&&(le==null?void 0:le.awi_annotation_type)!="dot"&&Z.jsx("div",{onClick:()=>{!w&&(S!=null&&S.length)&&E()},className:qn({"disabled-class":!y||w||!(S!=null&&S.length)},Sn.annotationIconDiv,"cursor-pointer"),style:{pointerEvents:w||!y?"none":"auto",opacity:w||!y?.5:1},children:Z.jsx("img",{src:q1.pointAnnotationIcon.IconComponent,title:"Mark some points and then click here and get the power of AI auto annotation",className:Sn.annotationIcon})}),Z.jsx("div",{onClick:w?void 0:M,style:{pointerEvents:w||!y?"none":"auto",opacity:w||!y?.5:1},title:"Give your prompt and get the power of AI auto annotation",className:Sn.annotationIconDiv,children:Z.jsx("img",{src:q1.promptAnnotationIcon.IconComponent,title:"auto annotation prompt - keyboard(X)",className:Sn.annotationIcon})})]}),Z.jsx("div",{onClick:H,title:"Click to refetch saved annotations, hard reset",className:Sn.annotationIconDiv,children:Z.jsx("img",{src:q1.refetchAnnotationIcon.IconComponent,title:"Refetch annotations (Hard Reset) - keyboard(R)",className:Sn.annotationIcon})}),Z.jsx("div",{style:{width:"53%",height:"2px",backgroundColor:"#e4e0e6",margin:"8px auto"}})]}),Z.jsx("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:Z.jsx("div",{onClick:()=>{typeof a=="function"&&a(pt=>!pt)},title:"View details - keyboard(V)",className:Sn.annotationIconDiv,children:Z.jsx("img",{src:q1.guidelinesIcon.IconComponent,alt:"info",style:{height:"30px !important",width:"30px !important",cursor:"pointer"}})})}),Z.jsx("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:Z.jsx("div",{children:Z.jsx("img",{src:q1.keyboardShortcutsIcon.IconComponent,title:"See short-cut keys",className:"cursor-pointer",width:"30px",onClick:()=>Qe(pt=>!pt)})})}),Z.jsx("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:Z.jsx("div",{onClick:R,children:Z.jsx("img",{src:q1.transparentBlackIcon.IconComponent,style:{height:"24px",width:" 24px",cursor:"pointer"},alt:"Previous",title:Y?"Hide Pagination":"Show Pagination"})})})]}),s&&_e&&Z.jsx(_e,{request:le,handleReferenceImageClick:Ue,handleRecentAnnotatedImages:ze,show_guidelines_first:c,setOpenRequestDetails:a,classColorMapToSend:he}),s&&_e&&Z.jsx("div",{className:qn(Sn.backdrop),onClick:()=>{c||typeof a=="function"&&a(!1)}}),s&&Z.jsx("div",{className:qn(Sn.backdrop),onClick:()=>{k||typeof a=="function"&&a(!1)}}),pe&&Se&&Z.jsx(Z.Fragment,{children:Z.jsx(pe,{handleToggleCarousel:()=>Le(!1),requestName:(le==null?void 0:le.awi_label)||"",showAnnotationType:"all",requestId:(ae==null?void 0:ae.awi_id)||(le==null?void 0:le.awi_id),imageKeys:((Cn=ae==null?void 0:ae.awi_reference_images)==null?void 0:Cn.awi_ids)||((mt=le==null?void 0:le.awi_reference_images)==null?void 0:mt.awi_ids)||[],awi_reference_image:!0,defaultAnnotationMode:"display_annotations",allowedToCopy:!0,copyCallBack:Kt})}),Se&&Z.jsx("div",{className:qn(Sn.backdrop,Sn.backdrop__transparent),onClick:()=>Le(!1)}),pe&&Be&&Z.jsx(Z.Fragment,{children:Z.jsx(pe,{handleToggleCarousel:()=>Ve(!1),requestName:(le==null?void 0:le.awi_label)||"",showAnnotationType:"all",requestId:(ae==null?void 0:ae.awi_id)||(le==null?void 0:le.awi_id),awi_reference_image:!1,contentAnnotationType:Ke||"annotated",primaryLimit:LJ,defaultAnnotationMode:"display_annotations",allowedToCopy:!0,copyCallBack:Kt})})]})},sc={canvas:"_canvas_145op_1",canvasContainer:"_canvasContainer_145op_9",canvasSubContainer:"_canvasSubContainer_145op_18"},lc=({canvasDimensions:e,zoomProperties:t,isEditing:n,canvasRef:r,bgCanvasRef:o,overlayCanvasRef:i,handleMouseDown:a,handleMouseUp:s,handleMouseMove:c,handleMouseMoveOut:u,handleOnMouseLeave:d,handleWheel:h,handleTouchStart:g,handleTouchMove:m,handleTouchEnd:v,handleTouchCancel:A})=>Z.jsxs("div",{className:sc.canvasSubContainer,style:{display:"flex",flexDirection:"row",width:e.width,height:e.height,position:"relative"},children:[Z.jsx("canvas",{ref:o,className:sc.bgCanvas,style:{position:"absolute",top:0,left:0,width:`${e.width*t.scale}px`,height:`${e.height*t.scale}px`,zIndex:0,pointerEvents:"none"}}),Z.jsx("canvas",{ref:r,className:sc.canvas,style:{position:"absolute",top:0,left:0,width:`${e.width*t.scale}px`,height:`${e.height*t.scale}px`,cursor:n?"default":"crosshair",transformOrigin:"top left",transform:`translate(${t.x}px, ${t.y}px)`},onMouseDown:a,onMouseUp:s,onMouseMove:c,onMouseOut:u,onMouseLeave:d,onWheel:h,onTouchStart:g,onTouchMove:m,onTouchEnd:v,onTouchCancel:A}),Z.jsx("canvas",{ref:i,className:sc.overlayCanvas,style:{position:"absolute",top:0,left:0,width:`${e.width*t.scale}px`,height:`${e.height*t.scale}px`,pointerEvents:"none",zIndex:2,transformOrigin:"top left",transform:`translate(${t.x}px, ${t.y}px)`}})]}),kJ=1e-5,OJ=.99999,IJ=.001,DJ=.005,cc=(e,t)=>e/(t||1),A_=(e,t,n,r)=>Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2)),Dd=(e,t,n)=>(t.x-e.x)*(n.y-e.y)-(n.x-e.x)*(t.y-e.y),PJ=e=>{let t=1/0,n=1/0,r=-1/0,o=-1/0;return e.forEach(({x:i,y:a})=>{t=Math.min(t,i),n=Math.min(n,a),r=Math.max(r,i),o=Math.max(o,a)}),{minX:t,minY:n,maxX:r,maxY:o}},Pd=(e,t,n=0)=>{let r=0;for(let o=0;o<(t==null?void 0:t.length)-1;o++){const i=t[o],a=t[o+1];i.y<=e.y+n?a.y>e.y+n&&Dd(i,a,e)>0&&r++:a.y<=e.y-n&&Dd(i,a,e)<0&&r--}return r},Nd=e=>(e==null?void 0:e.length)<2?0:Math.sqrt(Math.pow(Math.abs(e[0].x-e[1].x),2)+Math.pow(Math.abs(e[0].y-e[1].y),2));function NJ(e,t,n=0){const r=Math.min(...t.map(u=>u.x)),o=Math.max(...t.map(u=>u.x)),i=Math.min(...t.map(u=>u.y)),a=Math.max(...t.map(u=>u.y)),{x:s,y:c}=e;return s>=r-n&&s<=o+n&&c>=i-n&&c<=a+n}const TJ=(e,t,n,r,o,i,a=1)=>{if(!(n!=null&&n.length))return!1;let s,c,u,d,h=!1;switch(i==null?void 0:i.awi_annotation_type){case"rectangle":h=NJ({x:e,y:t},n,r);break;case"polygon":h=Pd({x:e,y:t},n,r)!==0;break;case"circle":s=Nd(n)/2,c=(n[0].x+r+(n[1].x-o))/2,u=(n[0].y+n[1].y)/2,d=(e-c)*(e-c)+(t-u)*(t-u),d<s*s?h=!0:h=!1;break;case"dot":s=cc(.015,a),c=(n[0].x+r+(n[0].x-o))/2,u=(n[0].y+n[0].y)/2,d=(e-c)*(e-c)+(t-u)*(t-u),d<s*s?h=!0:h=!1;break;default:h=Pd({x:e,y:t},n,r)!==0}return h},RJ=e=>!(!e||e.x>1||e.x<0||e.y1>1||e.y<0),FJ=e=>{if((e==null?void 0:e.length)<3)return!1;for(let t=0;t<e.length;t++)if(!RJ(e[t]))return!1;return!0},zJ=(e,t,n=!1,r=1)=>{var a,s,c,u;const o=e==null?void 0:e.awi_annotation_type;let i=!1;switch(o){case"rectangle":const d=cc(IJ,r);(t==null?void 0:t.length)>3&&Math.abs(((a=t[0])==null?void 0:a.x)-((s=t[1])==null?void 0:s.x))>d&&Math.abs(((c=t[1])==null?void 0:c.y)-((u=t[3])==null?void 0:u.y))>d&&(i=!0);break;case"circle":const h=cc(DJ,r);Nd(t)>h&&(i=!0);break;case"polygon":i=FJ(t);break;case"dot":i=!0;break;default:n&&(i=!0);break}return i},b_=(e,t,n,r,o,i)=>{const a=e-n,s=t-r,c=o-n,u=i-r,d=a*c+s*u,h=c*c+u*u,g=h!==0?d/h:-1;let m,v;g<0?(m=n,v=r):g>1?(m=o,v=i):(m=n+g*c,v=r+g*u);const A=e-m,p=t-v;return Math.sqrt(A*A+p*p)},jJ=(e,t,n)=>{let r=1/0,o=-1;for(let i=0;i<(e==null?void 0:e.length);i++){const a=(i+1)%e.length,{x:s,y:c}=e[i],{x:u,y:d}=e[a],h=b_(t,n,s,c,u,d);h<r&&(r=h,o=a)}return{insertIndex:o,minDistance:r}},__=(e,t)=>t===0?e:__(t,e%t),VJ=(e,t,n,r)=>(e>0&&(e=0),Math.abs(e)>n&&(e=-1*n),Math.abs(t)>r&&(t=-1*r),t>0&&(t=0),{newXTransform:e,newYTransform:t}),ZJ=function(e){console.log("getBoundingBox called");const t=Math.min(...e.map(i=>i.x)),n=Math.max(...e.map(i=>i.x)),r=Math.min(...e.map(i=>i.y)),o=Math.max(...e.map(i=>i.y));return[{x:t,y:r},{x:n,y:r},{x:n,y:o},{x:t,y:o}]};function UJ(e,t,n){return Math.min(n,Math.max(t,e))}function $J(e,t=.05,n=null){const r=Math.min(...e.map(h=>h.x)),o=Math.max(...e.map(h=>h.x)),i=Math.min(...e.map(h=>h.y)),a=Math.max(...e.map(h=>h.y)),s=o-r,c=a-i;let u,d;if(n&&(n==null?void 0:n.x)>=0&&(n==null?void 0:n.y)>=0){const h=n.x,g=n.y;u=Math.max(-r,Math.min(1-o,h-(r+s/2))),d=Math.max(-i,Math.min(1-a,g-(i+c/2)))}else u=Math.max(-r,Math.min(1-o,(Math.random()*2-1)*t)),d=Math.max(-i,Math.min(1-a,(Math.random()*2-1)*t));return e.map(h=>({x:h.x+u,y:h.y+d}))}function WJ(e){const t=Math.min(...e.map(s=>s.x)),n=Math.max(...e.map(s=>s.x)),r=Math.min(...e.map(s=>s.y)),o=Math.max(...e.map(s=>s.y));return y_([{x:t,y:r},{x:n,y:o}])}function KJ(e){const t=Math.min(...e.map(s=>s.x)),n=Math.max(...e.map(s=>s.x)),r=Math.min(...e.map(s=>s.y)),o=Math.max(...e.map(s=>s.y)),i=(t+n)/2,a=(r+o)/2;return[{x:i,y:a}]}const Td=(e,t)=>(e.x-t.x)**2+(e.y-t.y)**2,QJ=(e,t,n)=>{const r=Td(t,n);if(r===0)return Td(e,t);let o=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;o=Math.max(0,Math.min(1,o));const i={x:t.x+o*(n.x-t.x),y:t.y+o*(n.y-t.y)};return Td(e,i)},GJ=(e,t)=>{let n=1/0;for(let r=0;r<(t==null?void 0:t.length);r++){const o=t[r],i=t[(r+1)%t.length],a=QJ(e,o,i);n=Math.min(n,a)}return Math.sqrt(n)},YJ=(e,t)=>{let n=1/0,r=-1;for(let o=0;o<(t==null?void 0:t.length);o++){const i=t[o],a=A_(e.x,e.y,i.x,i.y);if(a<n){const s=o%t.length;n=a,r=s}}return{minDistance:n,insertIndex:r}},Rd=(e=0)=>(e<=0?e=kJ:e>=1&&(e=OJ),e),qJ=e=>e.map(n=>({x:Rd(n.x),y:Rd(n.y)})),XJ=e=>{const t=new Set,n=[];for(let r=0;r<e.length;r++){const o=`${e[r].x},${e[r].y}`;t.has(o)||(t.add(o),n.push(e[r]))}return n.length>0&&n.push(n[0]),n},JJ=e=>{let t=0;for(let n=0;n<e.length;n++)if(e[n].x<=0){t=t+1;continue}else if(e[n].y<=0){t=t+1;continue}else if(e[n].x>=1){t=t+1;continue}else if(e[n].y>=1){t=t+1;continue}return t};function eee(e){const t=Math.min(...e.map(s=>s.x)),n=Math.min(...e.map(s=>s.y)),r=Math.max(...e.map(s=>s.x)),o=Math.max(...e.map(s=>s.y)),i=t<0?-t:r>1?1-r:0,a=n<0?-n:o>1?1-o:0;return e.map(({x:s,y:c})=>({x:s+i,y:c+a}))}const tee=(e,t)=>{const n=(e.x+t.x)/2,r=(e.y+t.y)/2,o=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)/2,i=Math.min(n,1-n),a=Math.min(r,1-r),s=Math.min(o,i,a),c=Math.atan2(t.y-e.y,t.x-e.x),u={x:n-s*Math.cos(c),y:r-s*Math.sin(c)},d={x:n+s*Math.cos(c),y:r+s*Math.sin(c)};return[u,d]},nee=(e,t)=>{const n=(e[0].x+e[1].x)/2,r=t,i=Math.sqrt(Math.pow(e[1].x-e[0].x,2))/2;let a=0;return n-i<0?a=i-n:n+i>1&&(a=1-(n+i)),e[0].x+=a,e[1].x+=a,e[0].y=r,e[1].y=r,e},y_=e=>{e=tee(e[0],e[1]);const t=(e[0].x+e[1].x)/2,n=(e[0].y+e[1].y)/2,o=Math.sqrt(Math.pow(e[1].x-e[0].x,2)+Math.pow(e[1].y-e[0].y,2))/2;let i=0;t-o<0?i=o-t:t+o>1&&(i=1-(t+o));let a=0;return n-o<0?a=o-n:n+o>1&&(a=1-(n+o)),e[0].x+=i,e[0].y+=a,e[1].x+=i,e[1].y+=a,nee(e,n)},ree=(e,t,n)=>{let{x:r,y:o}=w_(e.current,t);const i=n;r=Math.min(r,1),o=Math.min(o,1);const a=r-i.x,s=o-i.y;let c=[];return a===0||s===0?c=[{x:i.x,y:i.y},{x:i.x,y:i.y},{x:i.x,y:i.y},{x:i.x,y:i.y}]:a>0&&s>0?c=[{x:i.x,y:i.y},{x:r,y:i.y},{x:r,y:o},{x:i.x,y:o}]:a>0&&s<0?c=[{x:i.x,y:o},{x:r,y:o},{x:r,y:i.y},{x:i.x,y:i.y}]:a<0&&s>0?c=[{x:r,y:i.y},{x:i.x,y:i.y},{x:i.x,y:o},{x:r,y:o}]:c=[{x:r,y:o},{x:i.x,y:o},{x:i.x,y:i.y},{x:r,y:i.y}],c},w_=(e,t)=>{if(!e)return{x:0,y:0};const n=e.getBoundingClientRect();return{x:(t.clientX-n.left)/(n.right-n.left),y:(t.clientY-n.top)/(n.bottom-n.top)}},kn={gcd:__,getDistance:A_,isLeft:Dd,windingNumber:Pd,getDiameter:Nd,checkPointInsidePolygon:TJ,isAnnotationCoordinatesValid:zJ,distanceToSegment:b_,findClosestSegment:jJ,transformCoordinatesCheck:VJ,getBoundingBox:ZJ,translateCoordinatesWithFixedWidth:$J,clampValue:UJ,calculateCircleFromCoordinates:WJ,calculateCentroid:KJ,minDistanceToPolygon:GJ,closestCoordinates:YJ,fineTuneCoordinates:qJ,zoomLevelValue:cc,createPolygonLoop:XJ,breakPointCount:JJ,getBoundingBoxValues:PJ,shiftPolygon:eee,getPerfectPointValue:Rd,adjustToCircle:y_,getMousePos:w_,getMousePosAbsolute:(e,t)=>{if(!e)return{x:0,y:0};const n=e.getBoundingClientRect(),r={x:(t.clientX-n.left)/(n.right-n.left),y:(t.clientY-n.top)/(n.bottom-n.top)};return r.x<=0&&(r.x=1e-4),r.y<=0&&(r.y=1e-4),r.x>=1&&(r.x=1-1e-4),r.y>=1&&(r.y=1-1e-4),r},getUpdatedCoordinates:ree},oee=({imageUrl:e,showAnnotations:t=!1,createAnnotation:n,handleMultipleAnnotations:r,handleUpdateAnnotationCoordinates:o,content_id:i,request_id:a,className:s="",isEditing:c=!1,selectIndex:u="-1",handleSelectAnnotationIndex:d,handleSelectTool:h,showAnnotationType:g="all",loggedUser:m,isCarousel:v=!1,classColorMap:A=null,disableAnnotation:p=!1,SAMToggle:x,imageNumber:y=0,togglePagination:w,handleSAMToggle:E,unSelectedAnnotationIDsSet:S=new Set,setMousePosition:M,allowedToCopyPreview:H=!1,copyCallBackHandler:k,annotationSession:D,SAMToggleValue:P,selectedSAMTool:T,handleCopyAnnotations:N,setOpenRequestDetails:F,openRequestDetails:j,handleNextPage:z,handlePreviousPage:R,currentPage:$,handleUpdateImageIndex:W,requestId:q,showPagination:K,isAnnotationCreating:U,contentInfo:G,content_key:J,isAnnotationUpdating:Y,isDeleteAnnotationMutationLoading:ee,showGuidelinesFirst:oe,currentImage:de=0,selectedContent:se=null,switchToEditMode:xe,switchToCreateMode:we,goToNextImage:ve,goToPreviousImage:he,handleGoToPendingAnnotations:le,handlePasteAnnotationsByControlV:ae,annotationsResponse:_e,isAnnotationFetching:Oe,fetchAnnotationsKey:Ie,request:ge,parentReqData:et,clearAnnotationCache:fe,RequestInfoModal:ne,getAnnotationFromSAM:pe,getAnnotationsFromSAMPrompt:Se,fetchAnnotations:Le,pageCount:Be=10,annotationViewType:Ve="atom",AnnotationPagination:Ke,REACT_APP_SAM_ENABLED:ct="no",ImageGenerationHelper:tt=qb,fallbackImageUrl:Qe,activeColor:Fe,Carousel:ot,showTool:Ue=!0})=>{var Si,h9,f,b,B,V,X,ie,De,Je,rt,Bt,on,Pn,Yn,g0;const ze=km().isCtrlPressedFunc,Ge=km().isAltPressedFunc,[dt,qe]=O.useState(!1),[ft,Nt]=O.useState(!1),Kt=.007,sn=.03,Nn=.01,Yt=.005,An=.005,_n=.7,Qt=.005,kt=.005,Ht=.003,xt=.01,Zt="#40ff00",Cn="#fff",mt="#FFFF00",pt="red",Lt="rgba(0, 255, 255, 1)",Xe="rgba(0, 255, 255, 0.5)",Vt="#FF3131",Ae=4,it=5,$e={DEFAULT:1.5,SELECTED:4.5,CAROUSAL:2.5,CIRCLE:2},_t=O.useRef(""),Ye=O.useRef(null),Et=O.useRef(null),Ot=O.useRef(null),zt=Yv(),[Mn,At]=O.useState(!1),[bt,Tt]=O.useState(!1),[nt,Rt]=O.useState([]),[Ut,_1]=O.useState(),[O1,l1]=O.useState(),[e1,Kn]=O.useState({x:-1,y:-1}),[y1,Q1]=O.useState(-1),[tn,Hn]=O.useState({x:0,y:0}),[Pt,un]=O.useState(u),[Vn,T1]=O.useState("-1"),[r1,w1]=O.useState([]),[mn,$t]=O.useState(!1),[yn,Ln]=O.useState(null),[yt,Dt]=O.useState({width:0,height:0}),Ft=B1.INITIAL_ZOOM_PROPERTIES,[at,pn]=O.useState(Ft),[Tn,R1]=O.useState(!1),[u1,u0]=O.useState(!1),[fn,wn]=O.useState(-1),[rn,jt]=O.useState(!1),qt=B1.INITIAL_ZOOM_LEVEL,Qn=12,Gn=yt.width*qt,H1=O.useRef(null),[bn,Hr]=O.useState(_e),[Fn,ir]=O.useState(),[vn,hn]=O.useState([]),[In,I1]=O.useState(null),a0=B1.SAM_MODEL_NAME,L1=B1.SAM_MODEL_CONFIDENCE,J2=B1.SAM_MODEL_MAX_RESULTS,[Ur,zn]=O.useState(!1),[t1,ci]=O.useState(-1),[h3,o9]=O.useState(null),[eo,i9]=O.useState(null),[g3,C3]=O.useState(null),[C1,R0]=O.useState({modelName:"",modelConfidence:0,modelMaxResults:0,promptMessage:""}),[vr,Lr]=O.useState(null),[ui,a9]=O.useState(!1),[y0,W5]=O.useState({x:-1,y:-1}),[l2,K5]=O.useState({left:0,right:0,top:0,bottom:0}),[$r,s9]=O.useState(null),[c2,d0]=O.useState(""),Q5={SELECT:2e3,NOT_SELECT:500},[A0,to]=O.useState(""),di=window.devicePixelRatio,[j1,fi]=O.useState(window.innerWidth<768*di),[m3,e0]=O.useState(window.innerWidth<1200*di),Ar=O.useRef(null),hi=O.useRef(null),[G5,gi]=O.useState(!1);O.useEffect(()=>{const be=()=>{fi(window.innerWidth<768*di),e0(window.innerWidth<1200*di)};return window.addEventListener("resize",be),()=>window.removeEventListener("resize",be)},[]),O.useEffect(()=>{G5&&ha()},[G5,at,yt]),O.useEffect(()=>{if(!c2){hi.current=null,gi(!1);return}const be=new window.Image;be.onload=()=>{hi.current=be,gi(!0)},be.src=c2},[c2]),O.useEffect(()=>(ht(nt),vi(),()=>{$r&&clearTimeout($r)}),[Vn]),O.useEffect(()=>{v||document.fullscreenElement||ki.getItem("full_screen")=="yes"&&d2(!1),window.addEventListener("resize",Ir)},[]),O.useEffect(()=>{console.log("Change"),Rt([]),ia(),setTimeout(()=>{ht()},50)},[c]),O.useEffect(()=>{A&&ht(nt)},[A]),O.useEffect(()=>{i&&(i==null?void 0:i.length)>0&&r0()},[i]),O.useEffect(()=>{Hr(_e||null)},[_e,i]),O.useEffect(()=>{if(e){const be=tt.generateImageUrl(tt.getImageKitUrl(e,-1,-1,-1));br(be)}Rt([])},[e]),O.useEffect(()=>{c2&&(_t.current=c2,D1())},[c2]),O.useEffect(()=>{_t.current&&Ir()},[_t.current,c2]),O.useEffect(()=>{x=="SAM"?R1(!0):R1(!1),Y5()},[x]),O.useEffect(()=>{at.scale==1&&(at.x!=0||at.y!=0)&&r0()},[at.scale]),O.useEffect(()=>{if(((bn==null?void 0:bn.result)||[]).length>=0){const{x:be,y:Ce}=kn.getMousePos(Ye.current,{clientX:Ut==null?void 0:Ut.x,clientY:Ut==null?void 0:Ut.y});D1(nt,{x:be,y:Ce})}},[yt,t,at.scale,Vn]),O.useEffect(()=>{ia(),((bn==null?void 0:bn.result)||[]).length>=0&&ht()},[r1,Pt]),O.useEffect(()=>{if(ge&&bn&&(bn!=null&&bn.result)&&((bn==null?void 0:bn.result)||[]).length>=0){ht(nt);const be={},Ce={};for(let Me=0;Me<bn.result.length;Me++)be[bn.result[Me].awi_id]={...bn.result[Me],index:Me},(ge==null?void 0:ge.awi_annotation_type)=="polygon"&&(Ce[bn.result[Me].awi_id]=kn.getBoundingBoxValues(bn.result[Me].awi_coords));i9(be),(ge==null?void 0:ge.awi_annotation_type)=="polygon"&&I1(Ce),(ge==null?void 0:ge.awi_request_for)=="attributes"&&bn.result.length>0&&u=="-1"&&typeof d=="function"&&setTimeout(()=>{d(bn.result[0].awi_id)},100)}else i9(null),I1(null);v3()},[ge,bn]),O.useEffect(()=>{v3()},[S]),O.useEffect(()=>{console.log("Filter annotation change"),D1(nt),setTimeout(()=>{D1(nt)},100)},[vn]),O.useEffect(()=>{u!=="-1"?typeof h=="function"&&(ge==null?void 0:ge.awi_request_for)!=="outline"&&h("edit"):w1([]),Tn&&typeof h=="function"&&un("-1"),un(u||"-1")},[u]),O.useEffect(()=>{v||y==0&&Tn!==void 0&&(Tn?V1.success("Switched to Auto Annotation mode"):ge!=null&&ge.awi_annotation_type&&V1.success(`Switched to ${ge==null?void 0:ge.awi_annotation_type} Annotation mode`))},[Tn]),O.useEffect(()=>{if(!M||typeof M!="function")return;Ai();const be=setTimeout(()=>{const{x:Ce,y:Me}=kn.getMousePosAbsolute(Ye.current,{clientX:Ut==null?void 0:Ut.x,clientY:Ut==null?void 0:Ut.y});M({x:Ce,y:Me})},30);return()=>clearTimeout(be)},[Ut]),O.useEffect(()=>{u1?Ai():yi(-1,-1)},[u1]),O.useEffect(()=>{u!="-1"&&eo&&ir(eo[u])},[u,eo]),O.useEffect(()=>{pi(),Ai()},[at,yt]);const El=be=>{const Ce=be.message;to(Ce)};O.useEffect(()=>{let be="";U?be="Creating Annotation...":ee?be="Deleting Annotation...":Y?be="Updating Annotation...":Oe?be="Fetching Annotations...":rn&&(be="Generating AI Annotations..."),El({message:be})},[U,Y,ee,Oe,rn]),O.useEffect(()=>{Ir()},[K]);const Ci=pe&&typeof pe=="function"?qv(pe):null,mi=Se&&typeof Se=="function"?qv(Se):null,Br=()=>!!(dt||ze()),ar=()=>!!(ft||Ge()),pi=()=>{const be=yt.width*at.scale,Ce=yt.height*at.scale;K5({left:Math.abs(at.x),right:Math.max(0,be-yt.width+at.x),top:Math.abs(at.y),bottom:Math.max(0,Ce-yt.height+at.y)})},oa=O.useMemo(()=>{const be=(bn==null?void 0:bn.result)||[];if(be.length>0&&Pt!=="-1"){let Ce=null,Me=null;const Re=be.reduce((Pe,ut)=>{const{awi_id:wt}=ut;return wt===Pt?Ce=ut:wt===Vn?Me=ut:S.has(wt)||Pe.push(ut),Pe},[]);return Me&&Re.push(Me),Ce&&Re.push(Ce),Re}else return vn},[Pt,Vn,vn]),br=async be=>{Hv.checkImageValidity(be,d0,i,Ve,Qe)},ia=()=>{Vn!="-1"&&($r&&clearTimeout($r),T1("-1"))},vi=()=>{if(Vn!=="-1")if(Pt=="-1"||B1.HOVER_TO_SELECT_ON_ALREADY_SELECTED){const be=Pt=="-1"?Q5.NOT_SELECT:Q5.SELECT;$r&&clearTimeout($r);const Ce=setTimeout(()=>{c&&Vn!="-1"&&Pt!=Vn&&(Pt=="-1"&&mn?vi():typeof d=="function"&&(d(Vn),V1.success("Annotation selected successfully",Vn)))},be);s9(Ce)}else $r&&clearTimeout($r);else $r&&clearTimeout($r)},Ai=()=>{const be=Et.current;if(!be)return;const Ce=yt.width*at.scale,Me=yt.height*at.scale;if(be.width=Ce,be.height=Me,u1){const{x:Re,y:Pe}=kn.getMousePosAbsolute(Et.current,{clientX:Ut==null?void 0:Ut.x,clientY:Ut==null?void 0:Ut.y});yi(Re,Pe)}},kr=()=>{Rt([])},bi=(be=!1)=>{zt.invalidateQueries(Ie),be&&Rt([])},Or=be=>{var Ce;if(eo&&eo[be])if(c){const Me=eo[be].index,Re=bn==null?void 0:bn.result[Me];return Re||((Ce=bn==null?void 0:bn.result)==null?void 0:Ce.find(Pe=>Pe.awi_id==be))}else return eo[be];else return null},p3=be=>g3&&g3[be]?g3[be].index:-1,Y5=()=>{nt.length>0&&(console.log("clearCoordinate"),Rt([]),D1([],{x:0,y:0},!0))},v3=()=>{if(ge&&((bn==null?void 0:bn.result)||[]).length>=0){let be=[];(S==null?void 0:S.size)>0?be=((bn==null?void 0:bn.result)||[]).filter(Me=>!S.has(Me.awi_id)):be=(bn==null?void 0:bn.result)||[];const Ce={};for(let Me=0;Me<be.length;Me++)Ce[be[Me].awi_id]={...be[Me],index:Me};C3(Ce),hn(be)}else hn([])},n1=be=>(j1&&(be=be*3),kn.zoomLevelValue(be,at.scale)),Wr=new Map,aa=be=>{try{if(!be)return Promise.resolve(B1.DEFAULT_CANVAS_RATION);if(Wr.has(be))return Wr.get(be);const Ce=new Promise((Me,Re)=>{const Pe=new Image;Pe.onload=()=>{const wt={w:Pe.width,h:Pe.height};Wr.set(be,Promise.resolve(wt)),Me(wt)},Pe.onerror=Re;const ut=tt.getImageKitUrl(be,-1,-1,1);ut&&(Pe.src=ut)});return Wr.set(be,Ce),Ce}catch(Ce){return console.error(Ce),Promise.resolve(B1.DEFAULT_CANVAS_RATION)}},Ir=async()=>{var be,Ce,Me,Re,Pe;if(console.log("updateDimensions called"),((be=_t.current)==null?void 0:be.length)>0){console.log("Canvas true");let ut=B1.DEFAULT_CANVAS_RATION;a9(!0);try{ut=await aa(_t.current)}catch(Wt){console.error("Error fetching image dimensions:",Wt,_t.current),ut=B1.DEFAULT_CANVAS_RATION}const wt=kn.gcd(ut.w,ut.h),Jt={w:ut.w/wt,h:ut.h/wt};let gn=0,gt=0;if(gt=((Ce=Ot.current)==null?void 0:Ce.offsetHeight)||0,gn=gt*Jt.w/Jt.h,gn>(((Me=Ot.current)==null?void 0:Me.offsetWidth)||0)&&(gn=((Re=Ot.current)==null?void 0:Re.offsetWidth)||0,gt=gn*Jt.h/Jt.w),(Ye==null?void 0:Ye.current)!=null&&(Ye.current.width=gn,Ye.current.height=gt,vr==null)){const Wt=(Pe=Ye.current)==null?void 0:Pe.getBoundingClientRect();Lr({left:Wt==null?void 0:Wt.left,top:Wt==null?void 0:Wt.top})}Dt({width:gn,height:gt}),a9(!1),D1(nt)}},no=O.useCallback((be,Ce,Me,Re,Pe,ut)=>kn.checkPointInsidePolygon(be,Ce,Me,Re,Pe,ut,at.scale),[]),D2=(be,Ce=!0)=>{const{x:Me,y:Re}=kn.getMousePos(Ye.current,be);let Pe="",ut=1/0;if(c&&_i(Me,Re))return[Pt];const wt=vn||[];if(!Ce&&(wt==null?void 0:wt.length)>B1.MAX_ANNOTATIONS_TO_HOVER)return[];switch(ge==null?void 0:ge.awi_annotation_type){case"circle":{wt.forEach(({awi_coords:Jt,awi_id:gn})=>{if(no(Me,Re,Jt,0,0,ge)){const gt=kn.minDistanceToPolygon({x:Me,y:Re},Jt);gt<ut&&(Pe=gn,ut=gt)}});break}case"dot":{const Jt=n1(An);wt.forEach(({awi_coords:gn,awi_id:gt})=>{if(no(Me,Re,gn,Jt,Jt,ge)){const Wt=kn.minDistanceToPolygon({x:Me,y:Re},gn);Wt<ut&&(Pe=gt,ut=Wt)}});break}case"rectangle":{const Jt=n1(Qt)/2;for(let gn=0;gn<wt.length;gn++){const{awi_coords:gt,awi_id:Wt}=wt[gn];if(no(Me,Re,gt,Jt,0,ge)){const E1=kn.minDistanceToPolygon({x:Me,y:Re},gt);E1<ut&&(Pe=Wt,ut=E1)}}break}case"polygon":{for(let Jt=0;Jt<wt.length;Jt++){const{awi_coords:gn,awi_id:gt}=wt[Jt];if(In){const Wt=In[gt];if(Wt){const{minX:E1,minY:ce,maxX:C0,maxY:F0}=Wt;if(Me<E1||Me>C0||Re<ce||Re>F0)continue}}if(no(Me,Re,gn,0,0,ge)){const Wt=kn.minDistanceToPolygon({x:Me,y:Re},gn);Wt<ut&&(Pe=gt,ut=Wt)}}break}default:console.warn(`Unknown annotation type: ${ge==null?void 0:ge.awi_annotation_type}`);break}return Pe&&Pe.length>0?(Ce&&un(Pe),[Pe]):(Ce&&(console.log("setSelectAnnotationId "),typeof d=="function"&&u!="-1"&&d("-1",!1)),[])},Sl=L4.throttle(D2,50),_i=(be,Ce)=>{const Me=Or(u);if(Me){const Re=Me.awi_coords;if((ge==null?void 0:ge.awi_annotation_type)=="polygon"){const Pe=kn.minDistanceToPolygon({x:be,y:Ce},Re),ut=n1(kt);return Pe<=ut}else if((ge==null?void 0:ge.awi_annotation_type)=="rectangle"){const{insertIndex:Pe,minDistance:ut}=kn.closestCoordinates({x:be,y:Ce},Re),wt=n1(kt);return console.log(Pe),ut<=wt}}else return!1},q5=(be,Ce)=>{const{x:Me,y:Re}=kn.getMousePos(Ye.current,be),Pe=Or(Ce);if(console.log("selectAnnotation",Pe),Pe){const{awi_coords:ut}=Pe;if(ut.length===1){const gt=n1(Yt);no(Me,Re,ut,gt,gt,ge)&&(Tt(!0),$t(!0),l1({x:Me,y:Re}),Rt(ut));return}if(ut.length===2){const{x:gt,y:Wt}=ut[0],{x:E1,y:ce}=ut[1],C0=kn.getDiameter([{x:gt,y:Wt},{x:E1,y:ce}])/2,F0=(gt+E1)/2,p1=(Wt+ce)/2;Tt(!0),$t(!0),l1({x:Me,y:Re}),Kn({x:Me,y:Re}),Rt(ut);const an=(Me-F0)*(Me-F0)+(Re-p1)*(Re-p1),L0=n1(_n);an>L0*L0*C0*C0&&$t(!1);return}const wt=Br()?0:n1(Kt),Jt=no(Me,Re,ut,wt,0,ge),gn=_i(Me,Re);if(!Jt&&!gn)Kn({x:-1,y:-1}),l1({x:0,y:0}),$t(!1);else{if(l1({x:Me,y:Re}),Tt(!0),(ge==null?void 0:ge.awi_annotation_type)=="polygon")if(Br())$t(!0);else if(no(Me,Re,ut,wt,0,ge)){const{minDistance:Wt}=kn.findClosestSegment(ut,Me,Re),E1=n1(xt);Wt>=E1?$t(!0):$t(!1)}else $t(!1);else $t(!0);Rt(ut),Kn({x:-1,y:-1}),Br()||ut.forEach((gt,Wt)=>{if(Me<=gt.x+wt&&Me>=gt.x&&Re<=gt.y+wt&&Re>=gt.y||Me>=gt.x-wt&&Me<=gt.x&&Re>=gt.y-wt&&Re<=gt.y||Me<=gt.x+wt&&Me>=gt.x&&Re>=gt.y-wt&&Re<=gt.y||Me>=gt.x-wt&&Me<=gt.x&&Re<=gt.y+wt&&Re>=gt.y){if((ge==null?void 0:ge.awi_annotation_type)==="polygon")c?(Kn({x:Me,y:Re}),Q1(Wt)):(Q1(Wt),Kn(ut[Wt])),console.log("setSelectCornerCoordinates");else if((ge==null?void 0:ge.awi_annotation_type)==="rectangle"&&!Tn){const E1=ut[(Wt+2)%4];Kn(E1)}else if(c){const E1=ut[(Wt+2)%4];Kn(E1)}else Q1(Wt),Kn(ut[Wt]);$t(!1),Rt([])}})}}},sa=(be="all")=>{const Ce=window.devicePixelRatio;if(be!="cross"&&Ye.current)if(at.scale==1){const Me=+getComputedStyle(Ye.current).getPropertyValue("height").slice(0,-2),Re=+getComputedStyle(Ye.current).getPropertyValue("width").slice(0,-2);Ye.current.setAttribute("height",(Me*Ce).toString()),Ye.current.setAttribute("width",(Re*Ce).toString())}else{const Me=yt.height*at.scale,Re=yt.width*at.scale;Ye.current.setAttribute("height",(Me*Ce).toString()),Ye.current.setAttribute("width",(Re*Ce).toString())}if(Et.current)if(at.scale==1){const Me=+getComputedStyle(Et.current).getPropertyValue("height").slice(0,-2),Re=+getComputedStyle(Et.current).getPropertyValue("width").slice(0,-2);Et.current.setAttribute("height",(Me*Ce).toString()),Et.current.setAttribute("width",(Re*Ce).toString())}else{const Me=yt.height*at.scale,Re=yt.width*at.scale;Et.current.setAttribute("height",(Me*Ce).toString()),Et.current.setAttribute("width",(Re*Ce).toString())}},ko=(be,Ce)=>{const Me=kn.getDistance(be.x,be.y,Ce.x,Ce.y),Re=n1(Kt),Pe=n1(Nn);if(Me<=Pe){let ut=!1;return Me<=Re?ut=!1:Me<=Pe&&(ut=!0),{success:!0,distance:Me,zoomClosePoint:Re,zoomPointAnnotationValue:Pe,isExtraPointNeeded:ut}}else return{success:!1,distance:Me,zoomClosePoint:Re,zoomPointAnnotationValue:Pe,isExtraPointNeeded:!1}},ro=(be=[],Ce={x:0,y:0},Me=!1,Re=!1,Pe)=>{if((be||[]).length>0){Pe.beginPath();const ut=Dr(be);if((ge==null?void 0:ge.awi_annotation_type)==="rectangle")if(Tn){if(c){Pe.moveTo(ut[0].x,ut[0].y);for(let wt=1;wt<ut.length;wt++)Pe.lineTo(ut[wt].x,ut[wt].y);Pe.closePath()}else if(Tn){console.log("Sam function");const wt=Dr(be);Pe.clearRect(0,0,Pe.canvas.width,Pe.canvas.height),Pe.fillStyle="rgba(0, 0, 0, 0.35)",Pe.strokeStyle=Zt,Pe.lineWidth=$e.DEFAULT,wt.forEach(Jt=>{Pe.beginPath(),Pe.arc(Jt.x,Jt.y,it,0,B1.TWO_PIE,!0),Pe.fill(),Pe.stroke()})}}else{Pe.moveTo(ut[0].x,ut[0].y);for(let wt=1;wt<ut.length;wt++)Pe.lineTo(ut[wt].x,ut[wt].y);Pe.closePath()}else if((ge==null?void 0:ge.awi_annotation_type)==="circle")if(Tn&&!c){const wt=Dr(be);console.log("coordinatesVal ",wt),Pe.clearRect(0,0,Pe.canvas.width,Pe.canvas.height),Pe.fillStyle="rgba(0, 0, 0, 0.35)",Pe.strokeStyle=Zt,Pe.lineWidth=$e.DEFAULT,wt.forEach(Jt=>{Pe.beginPath(),Pe.arc(Jt.x,Jt.y,it,0,B1.TWO_PIE,!0),Pe.fill(),Pe.stroke()})}else{const wt=kn.getDiameter(ut);Pe.arc((ut[0].x+ut[1].x)/2,(ut[0].y+ut[1].y)/2,Math.floor(wt/2),0,B1.TWO_PIE)}Pe.save(),Pe.lineWidth=$e.DEFAULT,Pe.strokeStyle=Zt,Pe.stroke()}if((ge==null?void 0:ge.awi_annotation_type)==="polygon"&&(nt||[]).length>0&&!Me&&!c){if(!Tn){const ut=Dr(nt);if(Pe.beginPath(),Pe.lineWidth=$e.DEFAULT,Pe.strokeStyle=Zt,ut.forEach((wt,Jt)=>{if(Jt>0){const gn=ut[Jt-1];Pe.moveTo(gn.x,gn.y),Pe.lineTo(wt.x,wt.y)}}),Pe.stroke(),ut.forEach((wt,Jt)=>{Pe.beginPath(),Pe.arc(wt.x,wt.y,it,0,B1.TWO_PIE,!0),Pe.fillStyle=Jt===0?mt:Zt,Pe.fill()}),!ar()&&!Re&&Ce&&Ce.x>0&&Ce.y>0&&!(Ce.x>.998||Ce.y>.998||Ce.x<.002||Ce.y<.002)){const wt=Dr([Ce]);Pe.beginPath();const Jt=ko(nt[0],Ce);Jt!=null&&Jt.success&&(nt==null?void 0:nt.length)>2?Jt.isExtraPointNeeded?(Pe.beginPath(),Pe.rect(wt[0].x-Ae*3,wt[0].y-Ae*3,Ae*6,Ae*6),Pe.fillStyle=pt,Pe.fill(),Pe.lineWidth=4,Pe.strokeStyle=pt,Pe.stroke()):(Pe.beginPath(),Pe.rect(wt[0].x-Ae*3,wt[0].y-Ae*3,Ae*6,Ae*6),Pe.fillStyle=mt,Pe.fill(),Pe.lineWidth=2,Pe.strokeStyle=mt,Pe.stroke()):Pe.arc(wt[0].x,wt[0].y,Ae,0,B1.TWO_PIE,!0),Pe.fillStyle="rgba(0,0,0,0.35)",Pe.fill(),Pe.strokeStyle=Zt,Pe.stroke();const gn=ut[ut.length-1];Pe.beginPath(),Pe.moveTo(gn.x,gn.y),Pe.lineTo(wt[0].x,wt[0].y),Pe.strokeStyle="#ff0000",Pe.setLineDash([5,5]),Pe.lineWidth=$e.DEFAULT,Pe.stroke(),Pe.setLineDash([])}Pe.closePath(),Pe.lineWidth=$e.DEFAULT,Pe.stroke(),Pe.save()}if(Tn){const ut=Dr(be);Pe.clearRect(0,0,Pe.canvas.width,Pe.canvas.height),Pe.fillStyle="rgba(0, 0, 0, 0.35)",Pe.strokeStyle=Zt,Pe.lineWidth=$e.DEFAULT,ut.forEach(wt=>{Pe.beginPath(),Pe.arc(wt.x,wt.y,it,0,B1.TWO_PIE,!0),Pe.fill(),Pe.stroke()})}}},yi=(be,Ce)=>{const Me=Et.current;if(!Me)return;const Re=Me.getContext("2d");if(!Re||(Re.clearRect(0,0,Me.width,Me.height),be==-1&&Ce==-1))return;sa("cross");const Pe=Dr([{x:be,y:Ce}])[0],ut=Pe.x,wt=Pe.y;Re.strokeStyle="#800080",Re.lineWidth=$e.CAROUSAL,Re.setLineDash([3,3]),Re.beginPath(),Re.moveTo(ut,0),Re.lineTo(ut,Me.height),Re.stroke(),Re.beginPath(),Re.moveTo(0,wt),Re.lineTo(Me.width,wt),Re.stroke(),Re.setLineDash([])},D1=(be=[],Ce={x:0,y:0},Me=!1,Re=!1,Pe=0)=>{var ut,wt,Jt,gn;if(ge&&!ui){const gt=(ut=Ye.current)==null?void 0:ut.getContext("2d");if(sa(),gt!=null){gt.imageSmoothingEnabled=!1,gt.clearRect(0,0,yt.width,yt.height),!c&&(ge==null?void 0:ge.awi_request_for)!="attributes"&&ro(be,Ce,Me,Re,gt);const Wt=oa||[];for(let E1=0;E1<Wt.length;E1++){const ce=Wt[E1],{awi_coords:C0,awi_id:F0,awi_status:p1}=ce;if(C0.length===0)return;const an=Dr(C0);gt.beginPath(),gt.lineJoin="round";let L0=!1,cr="",Gr="";if(g==="all"||p1===g){ce.awi_status==="pending"?cr=ce.awi_outline_status==="approved"?"rgba(214, 204, 60, 0.3)":"rgba(0, 0, 0,0)":cr=B1.STATUS_COLOR_MAP[ce.awi_status]||"rgba(0, 0, 0,0)",Gr=cr;let lo=!1;if(F0===Pt?(gt.lineWidth=$e.SELECTED,gt.strokeStyle=Zt,gt.fillStyle="rgba(0,0,0,0.40)",lo=!0):F0===Vn&&(gt.lineWidth=$e.DEFAULT,gt.strokeStyle=Lt,gt.fillStyle=Xe,lo=!0),!lo)if(gt.fillStyle=cr,v?gt.lineWidth=$e.CAROUSAL:gt.lineWidth=$e.DEFAULT,A){const ur=A[ce.awi_classes[0].awi_id];ur?(Gr=ur,gt.strokeStyle=ur):(Gr=ce.awi_classes[0].awi_color,gt.strokeStyle=ce.awi_classes[0].awi_color)}else Gr=ce.awi_classes[0].awi_color,gt.strokeStyle=ce.awi_classes[0].awi_color;switch(ge==null?void 0:ge.awi_annotation_type){case"circle":{const ur=(an[0].x+an[1].x)/2,Mi=(an[0].y+an[1].y)/2,t4=Math.sqrt(Math.pow(an[1].x-an[0].x,2)+Math.pow(an[1].y-an[0].y,2));gt.beginPath(),gt.arc(ur,Mi,t4/2,0,B1.TWO_PIE),gt.stroke(),gt.closePath(),L0=!0;break}case"dot":{gt.beginPath(),gt.moveTo(an[0].x,an[0].y),gt.arc(an[0].x,an[0].y,Ae,0,B1.TWO_PIE,!0),gt.stroke(),gt.closePath(),L0=!0;break}case"rectangle":{gt.beginPath(),gt.moveTo((wt=an[0])==null?void 0:wt.x,(Jt=an[0])==null?void 0:Jt.y);for(let ur=1;ur<an.length;ur++)gt.lineTo(an[ur].x,an[ur].y);gt.closePath(),gt.stroke(),L0=!0;break}case"polygon":{L0=!0,gt.moveTo(an[0].x,an[0].y);const ur=an.length;for(let Mi=0;Mi<ur;Mi++)gt.lineTo(an[Mi].x,an[Mi].y);break}}if(gt.fill(),gt.save(),gt.stroke(),L0){gt.save();const ur=F0===Pt,Mi=F0===Vn,t4=ce.sam_status==="yes";an.forEach((fu,Hl)=>{gt.beginPath();let Pr=Ae,co="";ur?an.length==1&&(ge==null?void 0:ge.awi_annotation_type)=="dot"||Re&&Hl%(an.length-1)==Pe?(Pr=Ae*2,co=Zt):(co=Zt,Pr=Ae):Mi?(co=Lt,Pr=Ae):(co=Gr,Pr=Ae),(ge==null?void 0:ge.awi_annotation_type)==="polygon"?Hl%(an.length-1)==0&&(t4?co=Vt:co=mt):Hl==0&&an.length>1&&t4&&(co=Vt),gt.arc(fu.x,fu.y,Pr,0,2*Math.PI,!0),gt.fillStyle=co,gt.strokeStyle=co,gt.fill(),gt.stroke(),gt.restore()})}else console.log("Error")}}}Ai()}if(at.scale==1&&(Ye!=null&&Ye.current)){const gt=(gn=Ye==null?void 0:Ye.current)==null?void 0:gn.getBoundingClientRect();Lr({top:gt==null?void 0:gt.top,left:gt==null?void 0:gt.left})}},Dr=be=>be.map(Me=>({x:Me.x*Ye.current.width,y:Me.y*Ye.current.height})),oo=be=>{const{x:Ce,y:Me}=kn.getMousePos(Ye.current,be);Rt(Re=>{const Pe=[...Re];return Pe[1].x=Ce,Pe[1].y=Me,kn.adjustToCircle(Pe)})},f0=be=>{if(be.length===0)return!1;const Ce=kn.isAnnotationCoordinatesValid(ge,be,Tn,at.scale);return Ce||D1(),Ce},X5=(be,Ce)=>(console.log("Has Moved checking"),Math.abs(be.x-Ce.x)>0||Math.abs(be.y-Ce.y)>0),Oo=()=>{if((nt==null?void 0:nt.length)>1){const be=nt[nt.length-1],Ce=[];let Me=!1;for(let Re=0;Re<nt.length-1;Re++){const Pe=nt[Re],ut=n1(Yt);if(Math.abs(be.x-Pe.x)<=ut&&Math.abs(be.y-Pe.y)<=ut){Me=!0;continue}else Ce.push({x:Pe.x,y:Pe.y})}return Me||Ce.push(nt[nt.length-1]),Rt(Ce),Ce}else return nt},J5=()=>{if(typeof n=="function")if(nt.length>3){const be=ko(nt[0],nt[nt.length-1]);let Ce=[];be.success&&(be.isExtraPointNeeded==!1?(nt[nt.length-1].x=nt[0].x,nt[nt.length-1].y=nt[0].y,Ce=nt):be.isExtraPointNeeded&&(Ce=[...nt,{x:nt[0].x,y:nt[0].y}])),(Ce==null?void 0:Ce.length)>0?(Rt([]),n(Ce,null,!1,()=>{kr()})):D1(nt)}else D1(nt)},X0=(be,Ce)=>{console.log("deletePolygonPoint"),console.log("selectIndex ",Ce);const Me=[];for(let Re=0;Re<be.length;Re++)Re!=Ce&&Me.push(be[Re]);Ce==0&&(Me[Me.length-1]=Me[0]),Rt(Me),(Me==null?void 0:Me.length)>3?(D1(Me),typeof o=="function"&&f0(Me)&&!p&&(V1.success("Point deleted successfully"),o(Me,u,()=>{kr()}))):V1.error("Point can not be deleted, as polygon need minimum of three points"),ci(-1),o9(null)};function sr(be,Ce){console.log("handleAddAnnotationPoint");const Me=be.target;if(!(Me!=null&&Me.getBoundingClientRect))return;const Re=Me.getBoundingClientRect(),Pe=(be.clientX-Re.left)/Re.width,ut=(be.clientY-Re.top)/Re.height,{insertIndex:wt,minDistance:Jt}=kn.closestCoordinates({x:Pe,y:ut},Ce),gn=n1(Kt);if(Jt<gn){console.log("Very close point to insert"),console.log("minDistanceMin",Jt);const ce=n1(sn);if(Jt<ce&&Br())console.log("We can remove this"),(Ce==null?void 0:Ce.length)>3&&(o9(Ce),B1.POLYGON_POINT_REMOVE_CONFIRM_PROMPT?ci(wt):X0(Ce,wt));else{if(Jt<ce)V1.error("Press CTRL and then click to prompt for point deletion");else{const C0=(Jt*100).toFixed(1);V1.error("Very close point to draw "+C0+" it should be more than "+Kt*100)}ci(-1),o9(null)}return}if(Br())return;ci(-1),o9(null);const{insertIndex:gt,minDistance:Wt}=kn.findClosestSegment(Ce,Pe,ut),E1=n1(xt);Wt>=E1||(Ce.splice(gt,0,{x:Pe,y:ut}),Rt(Ce),D1(Ce),typeof o=="function"&&f0(nt)&&!p&&o(nt,u,()=>{kr()}))}const wi=be=>{M&&typeof M<"u"&&typeof M=="function"&&(M({x:-1,y:-1}),yi(-1,-1)),ca(be,!0),Vn!="-1"?ia():(ge==null?void 0:ge.awi_annotation_type)=="polygon"&&!c&&!v&&!Tn&&nt.length>0&&setTimeout(()=>{D1(nt)},200)},la=be=>{if(!Tn){if((mn||bt&&e1.x!==-1&&e1.y!==-1)&&X5(O1,kn.getMousePos(Ye.current,be))){const Ce=Or(u);if(Ce){const Me=f0(Ce.awi_coords);if(typeof o=="function"&&Me)if(e1.x!==-1&&e1.y!==-1)if((ge==null?void 0:ge.awi_annotation_type)=="polygon")o(Ce.awi_coords,Pt);else{const Re=kn.getUpdatedCoordinates(Ye,be,e1);o(Re,Pt)}else o(Ce.awi_coords,Pt);else Me||((ge==null?void 0:ge.awi_annotation_type)=="polygon"&&Kr(Ce.awi_coords,be),bi(!0))}}Mn?(At(!1),typeof n=="function"&&f0(nt)&&((ge==null?void 0:ge.awi_annotation_type)==="polygon"?J5():n(nt,null,!1,()=>{kr()}))):bt&&(Tt(!1),un("-1"),w1([]),typeof d=="function"&&d("-1"))}},l9=be=>{if(!(Ye!=null&&Ye.current))return;const Ce=Sl(be,!1);(Ce==null?void 0:Ce.length)>0&&Ce[0]!=Pt?(vi(),T1(Ce[0]),Ye.current.style.cursor="pointer"):Vn!="-1"&&(T1("-1"),Pt=="-1"&&(Ye.current.style.cursor="default"))},A3=(be,Ce=!1)=>{if(Ce){ht(nt);return}const{x:Me,y:Re}=kn.getMousePos(Ye.current,be),Pe=Or(u);if(Pe){const ut=Pe.awi_coords,{minDistance:wt,insertIndex:Jt}=kn.closestCoordinates({x:Me,y:Re},ut),gn=n1(Qt);if(wt<=gn&&Ye.current){const gt=Ye.current.getContext("2d");if(!gt||Jt==fn)return;Ye.current.style.cursor="pointer",wn(Jt),Ye.current.title="Point "+(Jt+1);const Wt=Dr([ut[Jt]])[0];gt.fillStyle=Cn,gt.beginPath(),gt.arc(Wt.x,Wt.y,Ae*2.5,0,B1.TWO_PIE),gt.strokeStyle="black",gt.lineWidth=$e.SELECTED,gt.stroke(),gt.fill()}else if(Ye.current){if(!Ye.current.getContext("2d"))return;const Wt=n1(Ht);fn!==-1&&(ht(),wn(-1)),(ge==null?void 0:ge.awi_annotation_type)=="polygon"&&kn.findClosestSegment(ut,Me,Re).minDistance<=Wt?(Ye.current.style.cursor="pointer",Ye.current.title="Add point"):(Ye.current.style.cursor="default",Ye.current.title="")}}},ca=p2.useThrottle(A3,100),xi=p2.useThrottle(l9,100),Kr=(be,Ce)=>{if(kn.breakPointCount(be)>0){console.log("================================BREAK================================"),$t(!1),Ce&&Ce.stopPropagation&&(Ce==null||Ce.stopPropagation());const Re=kn.shiftPolygon(be);if(typeof o=="function"&&f0(Re)){const Pe=u;o(Re,u,()=>{Pt!=Pe&&un(Pe),kr()})}}},Ze=()=>vn.length>B1.MAX_ANNOTATIONS_TO_RUN_FAST?ht:D1,ht=p2.useThrottle((be,Ce,Me=!1,Re=!1,Pe=-1)=>{D1(be,Ce,Me,Re,Pe)},50),st=(be="forward")=>{if((vn||[]).length!=0)if(be=="last_update"){const Ce=vn==null?void 0:vn.reduce((Me,Re)=>{const Pe=new Date(Me.awi_last_updation).getTime();return new Date(Re.awi_last_updation).getTime()>Pe?Re:Me});Ce&&(un(Ce.awi_id),typeof d=="function"&&d(Ce.awi_id))}else if(u==="-1")(vn||[]).length>0&&(un(vn[0].awi_id),typeof d=="function"&&d(vn[0].awi_id));else{const Ce=p3(u);be=="backward"?Ce!==-1?Ce>0?(un(vn[Ce-1].awi_id),typeof d=="function"&&d(vn[Ce-1].awi_id)):(un(vn[vn.length-1].awi_id),typeof d=="function"&&d(vn[vn.length-1].awi_id)):(vn||[]).length>0&&(un(vn[vn.length-1].awi_id),typeof d=="function"&&d(vn[vn.length-1].awi_id)):Ce!==-1?(vn||[]).length>Ce+1?(un((vn||[])[Ce+1].awi_id),typeof d=="function"&&d((vn||[])[Ce+1].awi_id)):(un((vn||[])[0].awi_id),typeof d=="function"&&d((vn||[])[0].awi_id)):(vn||[]).length>0&&(un(vn[0].awi_id),typeof d=="function"&&d(vn[0].awi_id))}},ln=()=>{if(console.log("handleCompleteAnnotation"),!(!ge||c))if(x==="SAM"){No();return}else{if((ge==null?void 0:ge.awi_annotation_type)!="polygon")return;if(typeof n=="function"&&f0(nt))if((nt==null?void 0:nt.length)>2){const be=[...nt,{x:nt[0].x,y:nt[0].y}];Rt([]),n(be,null,!1,()=>{kr()})}else{V1.error("Polygon requires minimum of three coordinates");return}else V1.error("Invalid coordinates, please create valid coordinates")}},$n=be=>{console.log("handle Complete Multiple Annotation SAM");const Ce=[];for(let Me=0;Me<(be==null?void 0:be.length);Me++){const Re=be[Me].outline,Pe=be[Me].classId;if(f0(Re)){const wt={coords:(ge==null?void 0:ge.awi_annotation_type)=="polygon"?kn.createPolygonLoop(Re):Re,classId:Pe,isSam:!0};Ce.push(wt)}}(Ce==null?void 0:Ce.length)>0&&typeof r=="function"&&(Rt([]),r(Ce,()=>{(Ce==null?void 0:Ce.length)>0&&bi()}))},m1=()=>{if(console.log("undoAnnotationPoint"),console.log("coordinates ------>",nt),u!="-1"){u9();return}if(nt.length>0&&(ge==null?void 0:ge.awi_annotation_type)==="polygon")nt.pop(),Rt([...nt]),D1(nt);else if(nt.length>0&&Tn)nt.pop(),Rt([...nt]),D1(nt);else return},r0=()=>{pn(Ft)},P1=(be,Ce="zoom-in")=>{if(Ye.current&&Ye)if(Ce=="zoom-in"){const Me=qt,Re=at.scale+Me,Pe=Ye.current.getBoundingClientRect(),ut=be.clientX-Pe.left,wt=be.clientY-Pe.top,Jt=Re/at.scale,gn=at.x-ut*(Jt-1),gt=at.y-wt*(Jt-1),Wt={scale:+Re.toFixed(2),x:gn,y:gt};pn(Wt),W5({x:be.clientX,y:be.clientY})}else{const Me=qt,Re=at.scale-Me;if(Re==1)r0();else{const Pe=Ye.current.getBoundingClientRect();(y0.x==-1||y0.y==-1)&&console.log("zoomTimeMousePoint");const ut=y0.x!=-1?y0.x:be.clientX,wt=y0.y!=-1?y0.y:be.clientY,Jt=ut-Pe.left,gn=wt-Pe.top,gt=Re/at.scale,Wt=-Math.abs(at.x+Jt*(1-gt)),E1=-Math.abs(at.y+gn*(1-gt)),ce=yt.width*(at.scale+qt-1),C0=yt.height*(at.scale+qt-1),{newXTransform:F0,newYTransform:p1}=kn.transformCoordinatesCheck(Wt,E1,ce,C0),an={scale:+Re.toFixed(2),x:F0,y:p1};pn(an)}}},Io=(be=null)=>{if(at.scale!==Qn&&Ye.current)if(!be||!be.clientX||!be.clientY||be.type=="click"){const Ce=yt.width*(at.scale+qt-1),Me=yt.height*(at.scale+qt-1),Re=at.x-yt.width*qt/2,Pe=at.y-yt.height*qt/2,{newXTransform:ut,newYTransform:wt}=kn.transformCoordinatesCheck(Re,Pe,Ce,Me),Jt={scale:+(at.scale+qt).toFixed(2),x:ut,y:wt};pn(Jt)}else P1(be,"zoom-in")},lr=(be=null)=>{if(at.scale!==1&&Ye.current)if(!be||!be.clientX||!be.clientY||be.type=="click"){const Ce=yt.width*(at.scale-qt-1),Me=yt.height*(at.scale-qt-1),Re=at.x+yt.width*qt/2,Pe=at.y+yt.height*qt/2,{newXTransform:ut,newYTransform:wt}=kn.transformCoordinatesCheck(Re,Pe,Ce,Me);pn({scale:+(at.scale-qt).toFixed(2),x:ut,y:wt})}else P1(be,"zoom-out")},H0=be=>{be.deltaY<0?Io(be):lr(be)},Do=()=>{const be=yt.width*(at.scale-1),Ce=yt.height*(at.scale-1),Me=at.x+Gn,Re=at.y,{newXTransform:Pe,newYTransform:ut}=kn.transformCoordinatesCheck(Me,Re,be,Ce);pn({...at,x:Pe,y:ut})},Po=()=>{const be=yt.width*(at.scale-1),Ce=yt.height*(at.scale-1),Me=at.x-Gn,Re=at.y,{newXTransform:Pe,newYTransform:ut}=kn.transformCoordinatesCheck(Me,Re,be,Ce);pn({...at,x:Pe,y:ut})},P2=()=>{const be=yt.width*(at.scale-1),Ce=yt.height*(at.scale-1),Me=at.x,Re=at.y+Gn,{newXTransform:Pe,newYTransform:ut}=kn.transformCoordinatesCheck(Me,Re,be,Ce);pn({...at,x:Pe,y:ut})},io=()=>{const be=yt.width*(at.scale-1),Ce=yt.height*(at.scale-1),Me=at.x,Re=at.y-Gn,{newXTransform:Pe,newYTransform:ut}=kn.transformCoordinatesCheck(Me,Re,be,Ce);pn({...at,x:Pe,y:ut})};if(!e||!i)return null;const No=()=>{if(rn){V1.error("Request already in progress");return}if(!(nt!=null&&nt.length)){V1.error("No points to send");return}const be={};be.image_url=e,be.coords=nt,console.log("Sent to SAM",be),ua(),typeof h=="function"&&h("annotate")},d1=()=>{if(Ur?zn(!1):Ur||zn(!0),rn){V1.error("Request already in progress");return}typeof h=="function"&&h("annotate")},Ml=be=>{console.log("Submitted data from SAMModal:",be),To(be),typeof h=="function"&&h("annotate")},To=be=>{if(!mi||!(mi!=null&&mi.mutate)){V1.error("SAM Prompt is not available");return}console.log("getSAMAnnotationsPrompt");const Ce=be.awi_annotation_prompt,Me=be.model_confidence,Re=be.model_name,Pe=be.model_max_results;R0({modelName:Re,modelConfidence:Me,modelMaxResults:Pe,promptMessage:Ce});const ut=tt.generateImageUrl(tt.getImageKitUrl(e,-1,-1,-1)),Jt={requestId:a||0,contents:[{url:c2||ut,contentKey:i,directPrompt:Ce||""}],confidence:Me||L1,modelName:Re||a0,modelMaxResults:Pe||J2};jt(!0),mi.mutate(Jt,{onSuccess:gn=>{var gt,Wt,E1,ce,C0;if(jt(!1),!gn.success)V1.error(gn.message);else{zn(!1);const F0=((E1=(Wt=(gt=gn.data)==null?void 0:gt[0])==null?void 0:Wt.contours)==null?void 0:E1[0])??null;if(F0){const p1=F0.coordinates;if((p1==null?void 0:p1.length)==0||!((C0=(ce=p1[0])==null?void 0:ce.box)!=null&&C0.length))V1.error("No auto annotation is possible to create");else{const an=[];(ge==null?void 0:ge.awi_annotation_type)=="polygon"?(console.log("coordinates",p1),p1.forEach(L0=>{var cr;(cr=L0==null?void 0:L0.mask_polygon)==null||cr.forEach(Gr=>{const ur={outline:Gr.outline,classId:p1.classId};an.push(ur)})})):(ge==null?void 0:ge.awi_annotation_type)=="rectangle"?p1.forEach(L0=>{const cr=kn.getBoundingBox(L0.box);Rt(cr);const Gr={outline:cr,classId:p1.classId};an.push(Gr)}):(ge==null?void 0:ge.awi_annotation_type)=="circle"?p1.forEach(L0=>{const cr=kn.calculateCircleFromCoordinates(kn.getBoundingBox(L0.box));Rt(cr);const Gr={outline:cr,classId:p1.classId};an.push(Gr)}):(ge==null?void 0:ge.awi_annotation_type)=="dot"&&p1.forEach(L0=>{const cr=kn.calculateCentroid(L0.box);Rt(cr);const Gr={outline:cr,classId:p1.classId};an.push(Gr)}),$n(an),typeof E=="function"&&E("Normal")}}else V1.error("No Auto Annotation found")}},onError:gn=>{V1.exception(gn),jt(!1)}})},ua=()=>{if(!Ci||!(Ci!=null&&Ci.mutate)){V1.error("SAM is not available");return}const be=tt.generateImageUrl(tt.getImageKitUrl(e,-1,-1,-1)),Ce=c2||be,Me=p2.chunkArray(nt),Re={img_url:Ce,coords:nt,coordinates:Me};jt(!0),Ci.mutate(Re,{onSuccess:Pe=>{var ut;if(jt(!1),!Pe.success)V1.error(Pe.message);else if(console.log("this is the SAM data",Pe),((ut=Pe==null?void 0:Pe.data)==null?void 0:ut.length)>0){const wt=[];(ge==null?void 0:ge.awi_annotation_type)=="polygon"?Pe.data.forEach(Jt=>{Jt.contours.forEach(gn=>{Rt(gn.outline);const Wt={outline:gn.outline,classId:null};wt.push(Wt)})}):(ge==null?void 0:ge.awi_annotation_type)=="rectangle"?Pe.data.forEach(Jt=>{Rt(Jt.bbox),console.log("this si the bbox",Jt.bbox);const gt={outline:Jt.bbox,classId:null};wt.push(gt)}):(ge==null?void 0:ge.awi_annotation_type)=="circle"?Pe.data.forEach(Jt=>{const gn=kn.calculateCircleFromCoordinates(Jt.bbox);Rt(gn);const gt={outline:gn,classId:null};wt.push(gt)}):(ge==null?void 0:ge.awi_annotation_type)=="dot"&&Pe.data.forEach(Jt=>{const gn=kn.calculateCentroid(Jt.bbox);Rt(gn);const gt={outline:gn,classId:null};wt.push(gt)}),$n(wt)}else V1.error("No annotations found from SAM")},onError:Pe=>{V1.exception(Pe),jt(!1)}})},c9=async()=>{if(fe&&typeof fe=="function"){V1.success("Loading Annotations...");const be=await fe();console.log("cacheRemoveAnnotationResponse ",be),be!=null&&be.success?(V1.success((be==null?void 0:be.message)+" and now loading final annotations..."),bi(!0)):V1.error(be==null?void 0:be.message)}},u9=()=>{var Ce;console.log("Undo last state annotation");const be=Or(u);if(((Ce=be.past_coords)==null?void 0:Ce.length)>0){const Me=be.past_coords[be.past_coords.length-1];typeof o=="function"&&f0(Me)&&!p&&o(Me,u,()=>{kr()})}},N2=be=>{console.log("Control p"),Ye.current&&Io(be)},da=be=>{console.log("Control m"),lr(be)},Qr=()=>{const be={clientX:(Ut==null?void 0:Ut.x)||0,clientY:(Ut==null?void 0:Ut.y)||0};N2(be)},u2=()=>{const be={clientX:(Ut==null?void 0:Ut.x)||0,clientY:(Ut==null?void 0:Ut.y)||0};da(be)},e4=()=>{console.log("Copying annotations"),k&&typeof k=="function"&&k((bn==null?void 0:bn.result)||[])},d2=(be=!0)=>{try{document.fullscreenElement?(document.exitFullscreen().then(()=>{console.log("Fullscreen exited")}).catch(Ce=>{console.log(Ce)}),be&&ki.setItem("full_screen","no")):(document.documentElement.requestFullscreen().then(()=>{console.log("Fullscreen entered")}).catch(Ce=>{console.log(Ce)}),be&&ki.setItem("full_screen","yes"))}catch(Ce){console.log(Ce)}},T2=be=>{var Ce;if(!(!v&&!["awi_annotator","awi_verifier","awi_developer"].includes(m.userObj.awi_level))){if((ge==null?void 0:ge.awi_request_for)=="attributes"){const Me=D2(be)||[];console.log("This is the temp annotation",Me),Me.length>0&&(w1(Me),typeof d=="function"&&d(Me[0]),D1()),mn&&$t(!1),Tt(!1);return}if(Mn)if(At(!1),Tn){if(nt&&(nt==null?void 0:nt.length)>0){let Me=[];j1?Br()?Me=Oo():Me=nt:Me=Oo(),D1(Me)}}else console.log("creating new annotation"),typeof n=="function"&&f0(nt)&&((ge==null?void 0:ge.awi_annotation_type)==="polygon"?J5():(Rt([]),n(nt,null,!1,()=>{kr()})));else if(c&&Pt!=="-1"||v){if((mn||e1.x!==-1&&e1.y!==-1)&&X5(O1,kn.getMousePos(Ye.current,be))){const Me=Or(Pt);if(Me){const Re=[...Me.awi_coords],Pe=f0(Re);typeof o=="function"&&Pe&&!p?o(Re,u,()=>{kr()}):Pe||((ge==null?void 0:ge.awi_annotation_type)=="polygon"?Kr(Re,be):bi(!0))}}else{const Me=D2(be)||[];if(Me.length>0)if(Me.every(Re=>r1.includes(Re))&&r1.every(Re=>Me.includes(Re))){if(un(Re=>(typeof d=="function"&&d(r1[(r1.indexOf(Re)+1)%r1.length]),ht(),r1[(r1.indexOf(Re)+1)%r1.length]==="-1"&&(l1({x:0,y:0}),Kn({x:-1,y:-1})),r1[(r1.indexOf(Re)+1)%r1.length])),(!mn||Br())&&(ge==null?void 0:ge.awi_annotation_type)=="polygon"){const Re=(Ce=Or(u))==null?void 0:Ce.awi_coords;sr(be,Re)}}else console.log("Selecting first temp"),un(Me[0]),typeof d=="function"&&d(Me[0]),D1();else un("-1"),D1();w1(Me)}mn&&$t(!1),Tt(!1)}else if(c){const Me=D2(be)||[];console.log("This is the temp annotation",Me),Me.length>0&&(w1(Me),typeof d=="function"&&d(Me[0]),D1()),Tt(!1)}}},Ei=be=>{if(console.log("Handle Mouse Down"),be.button==0&&!ar()){if(!["awi_annotator","awi_verifier","awi_developer"].includes(m.userObj.awi_level))return;if(!c&&!v){At(!0),console.log("Mouse down");const{x:Ce,y:Me}=kn.getMousePosAbsolute(Ye.current,be);Hn({x:Ce,y:Me}),Tn?j1&&Br()||Rt(Re=>[...Re||[],{x:Ce,y:Me}]):(ge==null?void 0:ge.awi_annotation_type)==="rectangle"?Rt([{x:Ce,y:Me},{x:Ce,y:Me},{x:Ce,y:Me},{x:Ce,y:Me}]):(ge==null?void 0:ge.awi_annotation_type)==="circle"?Rt([{x:Ce,y:Me},{x:Ce,y:Me}]):(ge==null?void 0:ge.awi_annotation_type)==="dot"?Rt([{x:Ce,y:Me}]):(ge==null?void 0:ge.awi_annotation_type)==="polygon"&&Rt(Re=>[...Re,{x:Ce,y:Me}])}else v||(q5(be,Pt),Tt(!0))}else if(be.button===1||be.button==0){const{clientX:Ce,clientY:Me}=be,{x:Re,y:Pe}=at,ut=Jt=>{console.log("PANNING!!!!!");const gn=Jt.clientX-Ce,gt=Jt.clientY-Me,Wt=Re+gn,E1=Pe+gt,ce=Math.max(Math.min(Wt,0),yt.width-yt.width*at.scale),C0=Math.max(Math.min(E1,0),yt.height-yt.height*at.scale);pn({scale:at.scale,x:ce,y:C0})},wt=()=>{window.removeEventListener("mousemove",ut),window.removeEventListener("mouseup",wt),window.addEventListener("touchmove",ut,{passive:!1}),window.addEventListener("touchend",wt)};at.scale>1&&(window.addEventListener("mousemove",ut),window.addEventListener("touchmove",ut,{passive:!1})),window.addEventListener("mouseup",wt),window.addEventListener("touchend",wt)}},ao=be=>{if(Ye!=null&&Ye.current&&_1({x:be.clientX,y:be.clientY}),c&&(Pt!="-1"&&(vn==null?void 0:vn.length)<=B1.MAX_ANNOTATIONS_TO_HOVER&&ca(be),!mn&&!bt?(vn==null?void 0:vn.length)<=B1.MAX_ANNOTATIONS_TO_HOVER&&xi(be):Vn!="-1"&&T1("-1")),p)return;let Ce=[];if(Mn){Tn?(Ce.length==0&&(Ce=[tn]),Rt(Me=>Me.length==0?[tn]:Me),D1(nt)):(ge==null?void 0:ge.awi_annotation_type)==="rectangle"?(Ce=kn.getUpdatedCoordinates(Ye,be,tn),Rt(Ce),D1(Ce)):(ge==null?void 0:ge.awi_annotation_type)==="circle"?(oo(be),D1(nt)):(ge==null||ge.awi_annotation_type,D1(nt));return}else if(c&&Pt!=="-1"&&bt){if(console.log("isDrawingAnnotation",Mn),mn){const{x:Me,y:Re}=kn.getMousePos(Ye.current,be),Pe=Me-(O1.x||0),ut=Re-(O1.y||0);if(u!=="-1"){Ce=[...nt].map(gn=>({x:gn.x+Pe,y:gn.y+ut}));const wt=Or(u);if(wt)switch(wt.awi_coords=[...Ce],ge==null?void 0:ge.awi_annotation_type){case"dot":{Ce.length===1&&(Ce[0].x=kn.getPerfectPointValue(Ce[0].x),Ce[0].y=kn.getPerfectPointValue(Ce[0].y));break}case"circle":{Ce.length===2&&(Ce=[...kn.adjustToCircle(Ce)],wt.awi_coords=[...Ce]);break}case"rectangle":{if(Ce.length===4){const gn=Math.abs(Ce[1].x-Ce[0].x),gt=Math.abs(Ce[3].y-Ce[1].y);for(let Wt=0;Wt<Ce.length;Wt++)Ce[Wt].x<0?(Ce[1].x=gn,Ce[2].x=gn,Ce[0].x=1e-4,Ce[3].x=1e-4):Ce[Wt].y<0?(Ce[2].y=gt,Ce[3].y=gt,Ce[0].y=1e-4,Ce[1].y=1e-4):Ce[Wt].x>1?(Ce[0].x=1-gn,Ce[3].x=1-gn,Ce[1].x=1-1e-4,Ce[2].x=1-1e-4):Ce[Wt].y>1&&(Ce[0].y=1-gt,Ce[1].y=1-gt,Ce[2].y=1-1e-4,Ce[3].y=1-1e-4)}break}case"polygon":{Ce.length>1&&Kr(Ce,be);break}default:{console.log("Unknown request type");break}}Ze()(Ce)}}else if(e1.x!==-1&&e1.y!==-1&&u!=="-1"){console.log("Corner coordinates");const Me=Or(u);if((ge==null?void 0:ge.awi_annotation_type)==="circle"){const Re=kn.getMousePos(Ye.current,be);if(Me){Ce=Me.awi_coords;const Pe=(Ce[0].x+Ce[1].x)/2,ut=(Ce[0].y+Ce[1].y)/2,wt=kn.getDistance(Re.x,Re.y,Pe,ut);Pe-wt<0?(Ce[0]={x:0,y:ut},Ce[1]={x:2*wt,y:ut}):Pe+wt>1?(Ce[0]={x:1-2*wt,y:ut},Ce[1]={x:1,y:ut}):ut-wt<0?(Ce[0]={x:Pe,y:0},Ce[1]={x:Pe,y:2*wt}):ut+wt>1?(Ce[0]={x:Pe,y:1-2*wt},Ce[1]={x:Pe,y:1}):(Ce[0]={x:Pe-wt,y:ut},Ce[1]={x:Pe+wt,y:ut}),Ce=[...kn.adjustToCircle(Ce)]}}else if((ge==null?void 0:ge.awi_annotation_type)==="polygon"&&!Tn){const Re=kn.getMousePos(Ye.current,be);Me!=null&&Me.awi_coords&&(Ce=[...Me.awi_coords],y1>-1&&(y1===0||y1===Ce.length-1?(Ce[0]={x:Re.x,y:Re.y},Ce[Ce.length-1]={x:Re.x,y:Re.y}):Ce[y1]={x:Re.x,y:Re.y},Kn({x:Re.x,y:Re.y})))}else Ce=kn.getUpdatedCoordinates(Ye,be,e1);if(f0(Ce)){Rt([...Ce]);const Re=Or(u);Re&&(Re.awi_coords=Ce,D1(Ce))}}}else if((ge==null?void 0:ge.awi_annotation_type)==="polygon"&&!c&&(nt==null?void 0:nt.length)>1){const{x:Me,y:Re}=kn.getMousePos(Ye.current,be);ht(nt,{x:Me,y:Re})}},d9=be=>{if(be.touches.length===1){const Ce=be.touches[0];if(ar()){if(at.scale==1)return;H1.current||(H1.current={x:Ce.clientX,y:Ce.clientY})}else{const Me={...Ce,clientX:Ce.clientX,clientY:Ce.clientY,currentTarget:be.currentTarget,button:0};Ei(Me)}}},so=be=>{if(be.preventDefault(),be.touches.length>=2){const[Ce,Me]=[be.touches[0],be.touches[1]],Re=Me.clientX-Ce.clientX,Pe=Me.clientY-Ce.clientY,ut=Math.hypot(Re,Pe);if(yn!==null){const wt=ut-yn,Jt=(Ce.clientX+Me.clientX)/2,gn=(Ce.clientY+Me.clientY)/2;H0({deltaY:-wt,clientX:Jt,clientY:gn,currentTarget:be.currentTarget})}Ln(ut)}if(be.touches.length===1){const Ce=be.touches[0];if(ar()){if(H1.current){console.log("PANNING!!!!!");const Me=Ce.clientX-H1.current.x,Re=Ce.clientY-H1.current.y,{x:Pe,y:ut}=at,wt=Pe+Me,Jt=ut+Re,gn=Math.max(Math.min(wt,0),yt.width-yt.width*at.scale),gt=Math.max(Math.min(Jt,0),yt.height-yt.height*at.scale);pn({scale:at.scale,x:gn,y:gt}),H1.current={x:Ce.clientX,y:Ce.clientY}}}else{H1.current&&(H1.current=null);const Me={...Ce,clientX:Ce.clientX,clientY:Ce.clientY,currentTarget:be.currentTarget};ao(Me)}}},f2=be=>{if(H1.current&&(H1.current=null),be.touches.length<2&&Ln(null),ar()){be.preventDefault();return}const Ce=be.touches[0]||be.changedTouches[0],Me={...Ce,clientX:Ce.clientX,clientY:Ce.clientY,currentTarget:be.currentTarget};T2(Me)},Ro=be=>{const Ce=be.touches[0]||be.changedTouches[0],Me={...Ce,clientX:Ce.clientX,clientY:Ce.clientY,currentTarget:be.currentTarget};wi(Me)},fa=(be="")=>{switch(be){case"left":Do();break;case"right":Po();break;case"top":P2();break;case"bottom":io();break;default:console.warn(`Unknown pan direction: ${be}`)}},f9=()=>{typeof w=="function"&&w(be=>!be)},b3=()=>{if(!u||u=="-1"){V1.error("Control copy will be work only when you have a selected annotation");return}else N&&typeof N=="function"&&N(bn==null?void 0:bn.result,!1)},ha=()=>{if(!Ar.current||!hi.current)return;const be=Ar.current,Ce=be.getContext("2d");if(!Ce)return;const Me=yt.width*at.scale,Re=yt.height*at.scale;!Me||!Re||(be.width=Me,be.height=Re,Ce.clearRect(0,0,Me,Re),Ce.save(),Ce.setTransform(1,0,0,1,0,0),Ce.clearRect(0,0,Me,Re),Ce.translate(at.x,at.y),Ce.scale(at.scale,at.scale),Ce.drawImage(hi.current,0,0,yt.width,yt.height),Ce.restore())};return Z.jsxs(Z.Fragment,{children:[Ur&&Z.jsx(zA,{closeSAMPromptModal:()=>zn(!1),onSubmit:Ml,directPrompt:C1,isLoading:rn,requestInfo:ge}),v&&H&&(bn==null?void 0:bn.success)&&Z.jsx(Z.Fragment,{children:Z.jsx("div",{style:{margin:"4px",display:"flex",justifyContent:"center"},children:Z.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"max-content"},children:Z.jsx("button",{className:"modalButton modalButton__purpleColor",onClick:e4,children:"Copy Annotations"})})})}),v&&Z.jsx("div",{className:qn(Sn.canvasContainer,{[s]:!!s}),ref:Ot,style:{minHeight:j1?"50vh":"unset",touchAction:"none !important",position:"relative"},children:ui?se&&(se!=null&&se.file_size)?Z.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",padding:"12px",borderRadius:"8px",backgroundColor:"#fff",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",width:"280px"},children:[Z.jsx("div",{style:{fontSize:"16px",fontWeight:"bold",color:"#333"},children:"📷 Image Details"}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Name:"})," ",se==null?void 0:se.awi_label]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Size:"})," ",p2.byteToSize(se.file_size)]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#007bff",fontWeight:"bold"},children:["🔄 Loading Image ",de+1,"..."]})]}):Z.jsxs("div",{children:["Image number ",de+1," is loading..."]}):Z.jsxs(Z.Fragment,{children:[Ue&&Z.jsx(ac,{isEditing:c,handleSelectTool:h,annotator_name:((f=(h9=(Si=D==null?void 0:D.result)==null?void 0:Si.annotatorInfo)==null?void 0:h9.awi_personal_info)==null?void 0:f.awi_full_name)||"",handleSAMToggle:E,hasAnnotation:bn,SAMToggleValue:P,currentSelectedSAMTool:T,handleCopyAnnotations:N,setOpenRequestDetails:F,openRequestDetails:j,show_guidelines_first:oe,handleZoomInClick:Io,zoomProperties:at,handleReset:r0,handleZoomOutClick:lr,handleCompleteAnnotation:ln,toggleFullscreen:d2,selectAnnotationId:Pt,selectedAnnotationInfo:Fn,undoLastStateAnnotation:u9,usingSamFunction:Tn,samAPIactive:rn,handleSendToSamFunction:No,coordinates:nt,reLoadAndReDrawAnnotations:c9,showGuidelinesFirst:oe,handleSendToSamFunctionPrompt:d1,isMobile:j1,toggleSelectAnnotation:st,handleLeftKeyDown:Do,handleRightKeyDown:Po,handleUpKeyDown:P2,handleDownKeyDown:io,undoAnnotationPoint:m1,togglePagination:f9,switchToEditMode:xe,switchToCreateMode:we,goToNextImage:ve,goToPreviousImage:he,handleGoToPendingAnnotations:le,handleCopyByCtrlC:b3,handlePasteAnnotationsByControlV:ae,showPagination:K,isControlViaToolPress:dt,setIsControlViaToolPress:qe,isAltViaToolPress:ft,setIsAltViaToolPress:Nt,isCarousel:v,allowedToCopyPreview:H,classColorMapToSend:A,request:ge,parentReqData:et,RequestInfoModal:ne,setCrossHair:u0,isCrossHair:u1,annotationViewType:Ve,REACT_APP_SAM_ENABLED:ct,loggedUser:m,controlMinusHotkey:u2,controlPlusHotkey:Qr,Carousel:ot},i),Z.jsx(lc,{canvasDimensions:yt,zoomProperties:at,isEditing:c,canvasRef:Ye,bgCanvasRef:Ar,overlayCanvasRef:Et,handleMouseDown:Ei,handleMouseUp:T2,handleMouseMove:ao,handleMouseMoveOut:la,handleOnMouseLeave:wi,handleWheel:H0,handleTouchStart:d9,handleTouchMove:so,handleTouchEnd:f2,handleTouchCancel:Ro})]})}),!v&&Ve=="atom"&&Z.jsxs("div",{style:{display:"flex",flexDirection:j1?"column":"row"},children:[Z.jsx("div",{style:{height:j1?"unset":"100%",width:j1?"100%":"5.4%",border:"1px solid #E4E0E6",backgroundColor:"white"},children:["awi_annotator","awi_verifier","awi_developer"].includes(m.userObj.awi_level)&&Z.jsx("div",{style:{width:"100%",gap:"10px",marginTop:"2px",height:"100% ",display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:j1?"row":"column"},children:Ue&&Z.jsx(ac,{isEditing:c,handleSelectTool:h,annotator_name:((V=(B=(b=D==null?void 0:D.result)==null?void 0:b.annotatorInfo)==null?void 0:B.awi_personal_info)==null?void 0:V.awi_full_name)||"",handleSAMToggle:E,hasAnnotation:bn,SAMToggleValue:P,currentSelectedSAMTool:T,handleCopyAnnotations:N,setOpenRequestDetails:F,openRequestDetails:j,show_guidelines_first:oe,handleZoomInClick:Io,zoomProperties:at,handleReset:r0,handleZoomOutClick:lr,handleCompleteAnnotation:ln,toggleFullscreen:d2,selectAnnotationId:Pt,selectedAnnotationInfo:Fn,undoLastStateAnnotation:u9,usingSamFunction:Tn,samAPIactive:rn,handleSendToSamFunction:No,coordinates:nt,reLoadAndReDrawAnnotations:c9,showGuidelinesFirst:oe,handleSendToSamFunctionPrompt:d1,isMobile:j1,toggleSelectAnnotation:st,handleLeftKeyDown:Do,handleRightKeyDown:Po,handleUpKeyDown:P2,handleDownKeyDown:io,undoAnnotationPoint:m1,togglePagination:f9,switchToEditMode:xe,switchToCreateMode:we,goToNextImage:ve,goToPreviousImage:he,handleGoToPendingAnnotations:le,handleCopyByCtrlC:b3,handlePasteAnnotationsByControlV:ae,showPagination:K,isControlViaToolPress:dt,setIsControlViaToolPress:qe,isAltViaToolPress:ft,setIsAltViaToolPress:Nt,isCarousel:v,allowedToCopyPreview:H,classColorMapToSend:A,request:ge,parentReqData:et,RequestInfoModal:ne,setCrossHair:u0,isCrossHair:u1,annotationViewType:Ve,REACT_APP_SAM_ENABLED:ct,loggedUser:m,controlMinusHotkey:u2,controlPlusHotkey:Qr,Carousel:ot},i)})}),Z.jsxs("div",{style:j1?{height:"100%",width:"100%"}:{width:"94.6%"},children:[!j1&&Z.jsxs("div",{style:{width:"100%",display:"flex",alignItems:"center",height:j1?"8%":"3%",border:"1px solid #E4E0E6",background:"white",justifyContent:"space-between"},children:[Z.jsxs("div",{style:{display:"flex",flexDirection:"row",height:"100%",alignItems:"center"},children:[Z.jsxs("div",{className:"color-black",style:{width:"4.8rem",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:[Z.jsx("span",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"50%",backgroundColor:" rgba(111, 41, 169, 0.20)",height:"100%"},children:de+1}),Z.jsx("span",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"50%",backgroundColor:Fe||"rgba(111, 41, 169, 0.1)",height:"100%"},children:(((X=D==null?void 0:D.result)==null?void 0:X.awi_contents)||[]).length})]}),Z.jsxs("p",{className:"color-black",style:{marginLeft:"1rem"},title:((ie=G==null?void 0:G.awi_label)==null?void 0:ie.length)>20?G.awi_label:J.length>20?J:"",children:["Image -"," ",((De=G==null?void 0:G.awi_label)==null?void 0:De.length)>0?G.awi_label.length>20?G.awi_label.substring(0,20)+"...":G.awi_label:J.length>20?J.substring(0,20)+"...":J]}),Z.jsx("p",{className:"color-black",style:{marginLeft:"1rem"},children:((_e==null?void 0:_e.result)||[]).length>0&&`Annotations - ${((_e==null?void 0:_e.result)||[]).length} (Recent First) ${S.size?`Selected - ${((_e==null?void 0:_e.result)||[]).length-S.size}`:""}`})]}),Z.jsx("div",{children:Z.jsxs("div",{style:{fontWeight:"bold",display:"flex",alignItems:"center",justifyContent:"center"},className:"color-black",children:[Z.jsx("div",{children:A0}),(A0==null?void 0:A0.length)>0&&Z.jsx(V6,{color:"#000"})]})})]}),Z.jsx("div",{children:K&&j1&&Ke&&Z.jsx("div",{style:{border:"1px solid #E4E0E6"},children:Z.jsx(Ke,{handleNextPage:z,handlePreviousPage:R,currentPage:$,images:(Je=D==null?void 0:D.result)==null?void 0:Je.awi_contents,handleIndexUpdate:W,currentIndex:de,request_id:q,requestFor:(rt=D==null?void 0:D.result)==null?void 0:rt.awi_request_for,imagePagination:K,showImages:!0,fetchAnnotations:Le,pageCount:Be})})}),Z.jsx("div",{style:{height:j1||m3?"25px":"3%",border:"1px solid #E4E0E6",justifyContent:"space-between",paddingLeft:"10px",paddingRight:"10px",backgroundColor:"#fff"},children:j1&&(A0==null?void 0:A0.length)>0?Z.jsx(Z.Fragment,{children:Z.jsx("div",{className:qn(Sn.zoom__container,"color-black"),style:{height:"25px",justifyContent:"center",alignItems:"center",fontWeight:"bold"},children:A0})}):Z.jsx(Z.Fragment,{children:at.scale>1?Z.jsx(Z.Fragment,{children:Z.jsxs("div",{className:qn(Sn.zoom__container,"color-black"),style:{height:"25px",justifyContent:"space-between",alignItems:"center"},children:[Z.jsx("button",{className:"modalButton modalButton__tertiaryChoice pan_small",onClick:()=>fa("left"),children:"Left"}),Z.jsx("progress",{value:l2.left,max:yt.width,title:l2.left==0?"You can not move left more":"Showing how much you can move left more"}),Z.jsx("button",{className:"modalButton modalButton__tertiaryChoice pan_small",onClick:()=>fa("right"),children:"Right"}),Z.jsx("progress",{value:l2.right,max:yt.width,title:l2.right==0?"You can not move right more":"Showing how much you can move right more"}),Z.jsx("button",{className:"modalButton modalButton__tertiaryChoice pan_small",onClick:()=>fa("top"),children:"Top"}),Z.jsx("progress",{value:l2.top,max:yt.height,title:l2.top==0?"You can not move top more":"Showing how much you can move top more"}),Z.jsx("button",{className:"modalButton modalButton__tertiaryChoice pan_small",onClick:()=>fa("bottom"),children:"Bottom"}),Z.jsx("progress",{value:l2.bottom,max:yt.height,title:l2.bottom==0?"You can not move bottom more":"Showing how much you can move bottom more"})]})}):Z.jsx("div",{className:qn(Sn.zoom__container,"color-black"),style:{height:"25px",justifyContent:"center",alignItems:"center"},children:"Zoom in to see image pan progress"})})}),Z.jsx("div",{className:qn(Sn.canvasContainer,{[s]:!!s}),ref:Ot,style:{height:K?"80%":"90%",width:"100%",touchAction:"none !important",minHeight:j1?"50vh":"unset",position:"relative"},children:ui?se&&(se!=null&&se.file_size)?Z.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",padding:"12px",borderRadius:"8px",backgroundColor:"#fff",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",width:"280px"},children:[Z.jsx("div",{style:{fontSize:"16px",fontWeight:"bold",color:"#333"},children:"📷 Image Details"}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Name:"})," ",se==null?void 0:se.awi_label]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Size:"})," ",p2.byteToSize(se.file_size)]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#007bff",fontWeight:"bold"},children:["🔄 Loading Image ",de+1,"..."]})]}):Z.jsxs("div",{children:["Image number ",de+1," is loading..."]}):Z.jsx(lc,{canvasDimensions:yt,zoomProperties:at,isEditing:c,canvasRef:Ye,bgCanvasRef:Ar,overlayCanvasRef:Et,handleMouseDown:Ei,handleMouseUp:T2,handleMouseMove:ao,handleMouseMoveOut:la,handleOnMouseLeave:wi,handleWheel:H0,handleTouchStart:d9,handleTouchMove:so,handleTouchEnd:f2,handleTouchCancel:Ro})}),K&&!j1&&Ke&&Z.jsx("div",{children:K&&Z.jsx("div",{style:{border:"1px solid #E4E0E6"},children:Z.jsx(Ke,{handleNextPage:z,handlePreviousPage:R,currentPage:$,images:(Bt=D==null?void 0:D.result)==null?void 0:Bt.awi_contents,handleIndexUpdate:W,currentIndex:de,request_id:q,requestFor:(on=D==null?void 0:D.result)==null?void 0:on.awi_request_for,imagePagination:K,showImages:!0,fetchAnnotations:Le,pageCount:Be})})})]})]}),!v&&Ve=="library"&&Z.jsxs(Z.Fragment,{children:[Ue&&Z.jsx(ac,{isEditing:c,handleSelectTool:h,annotator_name:((g0=(Yn=(Pn=D==null?void 0:D.result)==null?void 0:Pn.annotatorInfo)==null?void 0:Yn.awi_personal_info)==null?void 0:g0.awi_full_name)||"",handleSAMToggle:E,hasAnnotation:bn,SAMToggleValue:P,currentSelectedSAMTool:T,handleCopyAnnotations:N,setOpenRequestDetails:F,openRequestDetails:j,show_guidelines_first:oe,handleZoomInClick:Io,zoomProperties:at,handleReset:r0,handleZoomOutClick:lr,handleCompleteAnnotation:ln,toggleFullscreen:d2,selectAnnotationId:Pt,selectedAnnotationInfo:Fn,undoLastStateAnnotation:u9,usingSamFunction:Tn,samAPIactive:rn,handleSendToSamFunction:No,coordinates:nt,reLoadAndReDrawAnnotations:c9,showGuidelinesFirst:oe,handleSendToSamFunctionPrompt:d1,isMobile:!0,toggleSelectAnnotation:st,handleLeftKeyDown:Do,handleRightKeyDown:Po,handleUpKeyDown:P2,handleDownKeyDown:io,undoAnnotationPoint:m1,togglePagination:f9,switchToEditMode:xe,switchToCreateMode:we,goToNextImage:ve,goToPreviousImage:he,handleGoToPendingAnnotations:le,handleCopyByCtrlC:b3,handlePasteAnnotationsByControlV:ae,showPagination:K,isControlViaToolPress:dt,setIsControlViaToolPress:qe,isAltViaToolPress:ft,setIsAltViaToolPress:Nt,isCarousel:v,allowedToCopyPreview:H,classColorMapToSend:A,request:ge,parentReqData:et,RequestInfoModal:ne,setCrossHair:u0,isCrossHair:u1,annotationViewType:Ve,REACT_APP_SAM_ENABLED:ct,loggedUser:m,controlMinusHotkey:u2,controlPlusHotkey:Qr,Carousel:ot},i),Z.jsx("div",{className:qn(Sn.canvasContainer,{[s]:!!s}),ref:Ot,style:{height:K?"80%":"90%",width:"100%",touchAction:"none !important",minHeight:j1?"50vh":"unset",position:"relative"},children:ui?se&&(se!=null&&se.file_size)?Z.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",padding:"12px",borderRadius:"8px",backgroundColor:"#fff",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",width:"280px"},children:[Z.jsx("div",{style:{fontSize:"16px",fontWeight:"bold",color:"#333"},children:"📷 Image Details"}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Name:"})," ",se==null?void 0:se.awi_label]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Size:"})," ",p2.byteToSize(se.file_size)]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#007bff",fontWeight:"bold"},children:["🔄 Loading Image ",de+1,"..."]})]}):Z.jsxs("div",{children:["Image number ",de+1," is loading..."]}):Z.jsx(lc,{canvasDimensions:yt,zoomProperties:at,isEditing:c,canvasRef:Ye,bgCanvasRef:Ar,overlayCanvasRef:Et,handleMouseDown:Ei,handleMouseUp:T2,handleMouseMove:ao,handleMouseMoveOut:la,handleOnMouseLeave:wi,handleWheel:H0,handleTouchStart:d9,handleTouchMove:so,handleTouchEnd:f2,handleTouchCancel:Ro})})]}),t1!=-1&&h3&&Z.jsx(Gb,{callback:()=>X0(h3,t1),cancelCallBack:()=>{ci(-1)},trigger:"REMOVE_POLYGON_POINT",fireOnMount:!0,children:Z.jsx(Z.Fragment,{})})]})},_2={message__container:"_message__container_u7nyp_1",message__container__icon:"_message__container__icon_u7nyp_15",message__container__title:"_message__container__title_u7nyp_19",message__container__title__success:"_message__container__title__success_u7nyp_24",message__container__description:"_message__container__description_u7nyp_27",message__container__loading:"_message__container__loading_u7nyp_31",pulse:"_pulse_u7nyp_1"},uc=({iconUrl:e,title:t,description:n,messageType:r="information",isLoading:o=!1,textClass:i="",noPadding:a,iconName:s=""})=>{var c,u;return o?Z.jsxs("div",{className:qn(_2.message__container,_2.message__container__loading),children:[s&&(s==null?void 0:s.length)>0&&Z.jsx("img",{src:(c=q1[s])==null?void 0:c.IconComponent,className:_2.message__container__icon}),e&&(e==null?void 0:e.length)>0&&Z.jsx("img",{src:e,className:_2.message__container__icon}),Z.jsx("h1",{className:qn(_2.message__container__title,{[_2.message__container__title__success]:r==="success"}),children:t}),Z.jsx("p",{className:qn(_2.message__container__description,i),children:n})]}):Z.jsxs("div",{className:qn(_2.message__container,{noPadding:a}),children:[s&&(s==null?void 0:s.length)>0&&Z.jsx("img",{src:(u=q1[s])==null?void 0:u.IconComponent,className:_2.message__container__icon}),e&&(e==null?void 0:e.length)>0&&Z.jsx("img",{src:e,className:_2.message__container__icon}),Z.jsx("h1",{className:qn(_2.message__container__title,{[_2.message__container__title__success]:r==="success"}),children:t}),Z.jsx("p",{className:qn(_2.message__container__description,i),children:n})]})},x_={ATTRIBUTES:{labelValue:"Attributes",src:"noAttributes",description:"No attributes are available. Start by adding or configuring attributes.",messageType:"information",loadingMessage:"Loading attributes...",notFoundMessage:"No attributes found"},ORGANISATIONS:{labelValue:"Organisations",src:"noOrganisations",description:"There are no organisations available. Add a new organisation to get started.",messageType:"information",loadingMessage:"Loading organizations...",notFoundMessage:"No organisations found"},REQUESTS:{labelValue:"Requests",src:"noRequests",description:"There are no requests available. Raised requests will be displayed here.",messageType:"information",loadingMessage:"Loading requests...",notFoundMessage:"No requests found"},USERS:{labelValue:"Users",src:"noUsers",description:"No users have been added yet. Start by inviting or creating users.",messageType:"information",loadingMessage:"Loading users...",notFoundMessage:"No users found"},USERS_IN_REQUEST:{labelValue:"Users",src:"noUsers",description:"No users found.",messageType:"information",loadingMessage:"Loading users...",notFoundMessage:"No users found"},CLASSES:{labelValue:"Classes",src:"noClasses",description:"There are no classes available. Add a new class to begin.",messageType:"information",loadingMessage:"Loading classes...",notFoundMessage:"No classes found"},IMAGES:{labelValue:"Images",src:"noImages",description:"No images are currently available. Upload images to view them here.",messageType:"information",loadingMessage:"Loading images...",notFoundMessage:"No images found"},ANNOTATOR_NO_SESSIONS:{labelValue:"Sessions",src:"noSessions",description:"No sessions are currently available. Annotator Sessions will be listed here.",messageType:"information",loadingMessage:"Loading sessions...",notFoundMessage:"No sessions found"},VERIFIER_NO_SESSIONS:{labelValue:"Sessions",src:"noSessions",description:"No sessions are currently available. Verifier Sessions will be listed here.",messageType:"information",loadingMessage:"Loading sessions...",notFoundMessage:"No sessions found"},MODELS:{labelValue:"Models",src:"noModels",description:"There are no models available. Run jobs and train models to get started.",messageType:"information",loadingMessage:"Loading models...",notFoundMessage:"No models found"},JOBS:{labelValue:"Jobs",src:"noJobs",description:"No jobs are currently scheduled or running. Create a job to see it listed here.",messageType:"information",loadingMessage:"Loading jobs...",notFoundMessage:"No jobs found"},MODEL_LOGS:{labelValue:"Model Logs",src:"noJobLogs",description:"There are no logs available for the models. Generate or upload logs to view them.",messageType:"information",loadingMessage:"Loading model logs...",notFoundMessage:"No model logs found"},DATASETS:{labelValue:"Datasets",src:"noDatasets",description:"No datasets are available. Upload or create datasets to start working.",messageType:"information",loadingMessage:"Loading datasets...",notFoundMessage:"No datasets found"},BILLS:{labelValue:"Bills",src:"noBills",description:"No bills are currently available. Generated bills will be listed here.",messageType:"information",loadingMessage:"Loading bills...",notFoundMessage:"No bills found"},MODEL_METRICS:{labelValue:"Model Metrics",src:"noModelMetrics",description:"No metrics are available for the models. Generated metrics for analyzing performance will be listed here.",messageType:"information",loadingMessage:"Loading model metrics...",notFoundMessage:"No model metrics found"},MODEL_DETAILS:{labelValue:"Model Details",src:"noModelDetails",description:"Details for the models are not available. Add or update model details to view them.",messageType:"information",loadingMessage:"Loading model details...",notFoundMessage:"No model details found"},MODEL_RESOURCES:{labelValue:"Model Resources",src:"noModelResources",description:"No resources are available for the models. Add resources to start utilizing them.",messageType:"information",loadingMessage:"Loading model resources...",notFoundMessage:"No model resources found"},NOTIFICATIONS:{labelValue:"Notifications",src:"noNotifications",description:"No notifications are available. New notifications will be displayed here.",messageType:"information",loadingMessage:"Loading notifications...",notFoundMessage:"No notifications found"},REQUEST_IMAGES:{labelValue:"Request Images",src:"noRequestImages",description:"No request images are currently available.",messageType:"information",loadingMessage:"Loading images...",notFoundMessage:"No request images found"},REQUEST_PRICING:{labelValue:"Request Pricing",src:"noPrices",description:"No request pricing are currently available.",messageType:"information",loadingMessage:"Loading pricing...",notFoundMessage:"No request pricing found"},ANNOTATION_GRAPH:{labelValue:"Annotation Graph",src:"noAnnotationGraph",description:"No annotation analytics are available for the given date",messageType:"information",loadingMessage:"Loading annotation graph...",notFoundMessage:"No annotations"},LOADING_CAROUSAL:{labelValue:"Images",src:"noImages",description:"No images is available to load",messageType:"information",loadingMessage:"Loading images...",notFoundMessage:"No images found"},TAGS:{labelValue:"Tags",src:"noTags",description:"No tags are available. Start by adding or configuring tags.",messageType:"information",loadingMessage:"Loading tags...",notFoundMessage:"No tags found"},NO_CSV_REQUESTS:{labelValue:"Requests",src:"noRequests",description:"There are no requests available in sheet, kindly add and upload.",messageType:"information",loadingMessage:"Loading requests...",notFoundMessage:"No requests found"},NO_CSV_CLASS:{labelValue:"Classes",src:"noClasses",description:"There are no classes available in sheet, kindly add and upload.",messageType:"information",loadingMessage:"Loading classes...",notFoundMessage:"No classes found"},CLASS_PROPORTION:{labelValue:"Class proportion",src:"noClasses",description:"No class proportion available.",messageType:"information",loadingMessage:"Loading class proportion...",notFoundMessage:"No class proportion found"},SINGLE_CLASS:{labelValue:"Class",src:"noClasses",description:"No class available.",messageType:"information",loadingMessage:"Loading class...",notFoundMessage:"No classes found"},LOADING_FILTER:{labelValue:"Filter",src:"noClasses",description:"No filter configuration.",messageType:"information",loadingMessage:"Loading filter information...",notFoundMessage:"No filter configuration found"},LOADING_ANNOTATION:{labelValue:"Annotation Loading",src:"noImages",description:"No annotation found",messageType:"information",loadingMessage:"Please wait, loading annotation...",notFoundMessage:"No annotations"},LOADING_REQUEST:{labelValue:"Request Loading",src:"noRequests",description:"No request found",messageType:"information",loadingMessage:"Please wait, loading request info...",notFoundMessage:"No request"},NOT_FOUND_GENERAL:{labelValue:"Data Loading",src:"notFoundGeneral",description:"No data found",messageType:"information",loadingMessage:"Please wait, loading data...",notFoundMessage:"No data"}},iee=({stateKey:e="NOT_FOUND_GENERAL",loadState:t=!1,stateDescription:n=null,stateLoadDescription:r=null,showImage:o=!1,textClass:i="",noPadding:a=!1,stateTitle:s=""})=>{const c=x_[e]||x_.NOT_FOUND_GENERAL;if(!c)return Z.jsx(Z.Fragment,{});const{labelValue:u,src:d,messageType:h,description:g,notFoundMessage:m}=c;if(t)return Z.jsxs("div",{style:{width:"100%"},children:[o&&Z.jsx(uc,{title:c.loadingMessage,iconName:d,description:r||"",isLoading:!0,noPadding:a}),!o&&Z.jsx(uc,{title:c.loadingMessage,description:r||"",isLoading:!0,noPadding:a})]});{const v=(s==null?void 0:s.length)>0?s:m?m||`No ${u} Found`:"",A=n||g;return Z.jsx("div",{style:{width:"100%"},children:Z.jsx(uc,{title:v,iconName:d,description:A,messageType:h,textClass:i,noPadding:a})})}},e2={tableBar:"_tableBar_103oy_1",buttonGroup:"_buttonGroup_103oy_13",btnIcon:"_btnIcon_103oy_34",searchBar:"_searchBar_103oy_41",searchInput:"_searchInput_103oy_53",searchIcon:"_searchIcon_103oy_58",removeBorder:"_removeBorder_103oy_63",button:"_button_103oy_13",isSelected:"_isSelected_103oy_74",isDisabled:"_isDisabled_103oy_80",isActive:"_isActive_103oy_85",isText:"_isText_103oy_92"},aee=({showSearch:e=!1,leftButtons:t=[],rightButtons:n=[],searchFunction:r,searchDelay:o=300,onSearchClick:i,searchPlaceHolder:a="Search...",showSearchEye:s=!0,borderRequired:c=!0,borderColor:u})=>{const d=O.useCallback(L4.debounce((v,A)=>{typeof A=="function"&&A(v)},o),[o]),h=v=>{const A=v.currentTarget.value.trim();d(A,r)},g=()=>{typeof i=="function"&&i()};if(!t.length&&!n.length&&!e)return null;const m=(v,A)=>{const p=v.type==="text";return Z.jsxs("button",{onClick:!p&&!v.isDisabled?v.onClick:void 0,title:v.title||"",disabled:v.isDisabled,className:qn(e2.button,{[e2.isText]:p,[e2.isSelected]:v.isSelected,[e2.isDisabled]:v.isDisabled,[e2.isActive]:v.isActive&&!v.isSelected}),children:[v.icon&&Z.jsx("img",{src:v.icon,alt:v.name,className:e2.btnIcon}),Z.jsx("div",{children:v.name})]},A)};return Z.jsxs("div",{className:qn(e2.tableBar,!c&&e2.removeBorder),style:{borderColor:c?u||"#909090":void 0},children:[Z.jsxs("div",{className:e2.buttonGroup,children:[t.map(m)," "]}),Z.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"10px"},children:[Z.jsx("div",{className:e2.buttonGroup,children:n.map(m)}),e&&Z.jsx("div",{className:e2.searchBar,title:a,children:Z.jsxs("form",{autoComplete:"off",style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",position:"relative"},children:[Z.jsx("input",{type:"text",name:"userSearchInput",autoComplete:"off",placeholder:a,className:e2.searchInput,onKeyUp:h}),s&&Z.jsx("img",{src:q1.searchUrl.IconComponent,alt:a,className:qn(e2.btnIcon,"cursor-pointer",e2.searchIcon),onClick:g})]})})]})]})},E_=({currentPage:e,totalPages:t,onPageChange:n,isLoading:r=!1})=>{const[o,i]=O.useState(`${e}`);O.useEffect(()=>{i(`${e}`)},[e]);const a=()=>{const s=Number(o);s>=1&&s<=t&&n(s),i("")};return Z.jsx(Z.Fragment,{children:Z.jsxs("div",{className:gr.pagination_container,children:[Z.jsx("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",maxHeight:"2vh"},children:r?Z.jsx(Z.Fragment,{children:Z.jsx("div",{className:gr.pagination_loading,children:"Loading..."})}):Z.jsxs(Z.Fragment,{children:[Z.jsx("div",{className:gr.pagination_left,children:Z.jsx("input",{type:"number",min:"1",max:t,value:o,onChange:s=>{i(s.target.value)},onBlur:()=>{if(o==""){i(`${e}`);return}const s=parseInt(o,10);if(!isNaN(s)){let c=Math.max(1,Math.min(t,s)).toString();c!=null&&c.length||(c="1"),i(c),a()}},onKeyDown:s=>{if(s.key==="Enter"){s==null||s.preventDefault(),s==null||s.stopPropagation();const c=parseInt(o,10);if(!isNaN(c)){const u=Math.max(1,Math.min(t,c)).toString();i(u),a()}}},placeholder:o,style:{background:"transparent",border:"0",width:"100%",height:"100%"}})}),Z.jsx("div",{className:gr.pagination_right,children:t})]})}),Z.jsxs("div",{style:{gap:"20px",display:"flex"},children:[Z.jsx("img",{src:q1.backArrow.IconComponent,onClick:()=>e>1&&n(e-1),style:{cursor:e>1?"pointer":"not-allowed"},className:gr.nextPrevArrow,title:e>1?`Go to page number ${e-1} `:"Go to previous page is not allowed"}),Z.jsx("img",{src:q1.forwardArrow.IconComponent,onClick:()=>e<t&&n(e+1),style:{cursor:e<t?"pointer":"not-allowed"},className:gr.nextPrevArrow,title:e<t?`Go to page number ${e+1}`:"Go to next page is not allowed"})]})]})})},see=({hasNextPage:e,isFetchingNextPage:t=!1,fetchNextPage:n,isLoading:r=!1,totalResults:o=0,totalFetchedResults:i=0,currentPage:a=1,totalPages:s=10,onPageChange:c,isPagination:u=!1,loadText:d=""})=>{let h="Load More";return i+1===o?h="Load last results":r||t?u?a==1?h="Loading...":h=`Loading page number ${a}`:o===0?h="Loading...":i+1===o?h="Loading last results...":h=`Loading ${i+1} to ${o}`:i===0?(d==null?void 0:d.length)==0?h="Load":h=d:h=`Load ${i+1} to ${o}`,u&&c?Z.jsx(E_,{currentPage:a,totalPages:s,onPageChange:c,isLoading:r||t}):Z.jsx("div",{className:gr.loadMoreButtonDiv,style:{display:"flex",justifyContent:"center",marginTop:"16px"},children:e&&!t&&Z.jsx("div",{className:gr.loadMoreButtonContainer,children:Z.jsx("button",{onClick:()=>n?n():void 0,className:"modalButton modalButton__purpleColor",disabled:r||t,children:h})})})},lee=({items:e,listType:t="ul",maxHeight:n="100px"})=>{const r=t;return!e||e.length===0?Z.jsx("div",{style:{minWidth:"30px"},children:"N/A"}):Z.jsx(r,{style:{maxHeight:n,overflow:"auto",paddingLeft:"20px"},children:e.map((o,i)=>Z.jsx("li",{style:{minWidth:"10vw"},children:o},i))})};var S_=(e=>(e.LARGE="l",e.MEDIUM="m",e))(S_||{});const cee=({badgeContent:e,variant:t=S_.LARGE,backgroundColor:n,textColor:r,className:o,style:i,...a})=>Z.jsx("span",{className:`badge badge_${t} ${o} ${e?"":"badge_dot"}`,style:{"--c_background":n,"--c_text":r,...i},...a,children:e}),uee=({items:e,value:t,onChange:n=()=>{},color:r,width:o,gap:i})=>Z.jsx("div",{className:"button_group",style:{gap:i},children:e==null?void 0:e.map((a,s)=>Z.jsx(er,{variant:"primary",content:a.label,onClick:()=>n(a.value),width:o,className:`button_group_button ${s==0?"first":""} ${s==e.length-1?"last":""} ${a.value==t?"active":""}`,backgroundColor:r,borderColor:r},a.value))});/*!
340
+ }`;var c1=YP(function(){return m1(me,Bn+"return "+It).apply(n,ke)});if(c1.source=It,hp(c1))throw c1;return c1}function A_e(C){return G1(C).toLowerCase()}function b_e(C){return G1(C).toUpperCase()}function __e(C,_,I){if(C=G1(C),C&&(I||_===n))return v3(C);if(!C||!(_=R2(_)))return C;var Q=sr(C),te=sr(_),me=Ir(Q,te),ke=no(Q,te)+1;return p9(Q,me,ke).join("")}function y_e(C,_,I){if(C=G1(C),C&&(I||_===n))return C.slice(0,wi(C)+1);if(!C||!(_=R2(_)))return C;var Q=sr(C),te=no(Q,sr(_))+1;return p9(Q,0,te).join("")}function w_e(C,_,I){if(C=G1(C),C&&(I||_===n))return C.replace(pt,"");if(!C||!(_=R2(_)))return C;var Q=sr(C),te=Ir(Q,sr(_));return p9(Q,te).join("")}function x_e(C,_){var I=P,Q=T;if(w0(_)){var te="separator"in _?_.separator:te;I="length"in _?o1(_.length):I,Q="omission"in _?R2(_.omission):Q}C=G1(C);var me=C.length;if(ko(C)){var ke=sr(C);me=ke.length}if(I>=me)return C;var Ne=I-X0(Q);if(Ne<1)return Q;var We=ke?p9(ke,0,Ne).join(""):C.slice(0,Ne);if(te===n)return We+Q;if(ke&&(Ne+=We.length-Ne),gp(te)){if(C.slice(Ne).search(te)){var St,Mt=We;for(te.global||(te=Io(te.source,G1(Et.exec(te))+"g")),te.lastIndex=0;St=te.exec(Mt);)var It=St.index;We=We.slice(0,It===n?Ne:It)}}else if(C.indexOf(R2(te),Ne)!=Ne){var cn=We.lastIndexOf(te);cn>-1&&(We=We.slice(0,cn))}return We+Q}function E_e(C){return C=G1(C),C&&Yt.test(C)?C.replace(sn,la):C}var S_e=r4(function(C,_,I){return C+(I?" ":"")+_.toUpperCase()}),pp=qD("toUpperCase");function GP(C,_,I){return C=G1(C),_=I?n:_,_===n?ro(C)?ca(C):mi(C):C.match(_)||[]}var YP=f1(function(C,_){try{return d0(C,n,_)}catch(I){return hp(I)?I:new $n(I)}}),M_e=pa(function(C,_){return A0(_,function(I){I=Bi(I),Ca(C,I,dp(C[I],C))}),C});function H_e(C){var _=C==null?0:C.length,I=jn();return C=_?e0(C,function(Q){if(typeof Q[1]!="function")throw new H0(a);return[I(Q[0]),Q[1]]}):[],f1(function(Q){for(var te=-1;++te<_;){var me=C[te];if(d0(me[0],this,Q))return d0(me[1],this,Q)}})}function L_e(C){return epe(uo(C,h))}function vp(C){return function(){return C}}function B_e(C,_){return C==null||C!==C?_:C}var k_e=JD(),O_e=JD(!0);function m2(C){return C}function Ap(C){return LD(typeof C=="function"?C:uo(C,h))}function I_e(C){return kD(uo(C,h))}function D_e(C,_){return OD(C,uo(_,h))}var P_e=f1(function(C,_){return function(I){return kl(I,C,_)}}),N_e=f1(function(C,_){return function(I){return kl(C,I,_)}});function bp(C,_,I){var Q=dr(_),te=Cu(_,Q);I==null&&!(w0(_)&&(te.length||!Q.length))&&(I=_,_=C,C=this,te=Cu(_,dr(_)));var me=!(w0(I)&&"chain"in I)||!!I.chain,ke=Aa(C);return A0(te,function(Ne){var We=_[Ne];C[Ne]=We,ke&&(C.prototype[Ne]=function(){var St=this.__chain__;if(me||St){var Mt=C(this.__wrapped__),It=Mt.__actions__=h2(this.__actions__);return It.push({func:We,args:arguments,thisArg:C}),Mt.__chain__=St,Mt}return We.apply(C,Ar([this.value()],arguments))})}),C}function T_e(){return R0._===this&&(R0._=u9),this}function _p(){}function R_e(C){return C=o1(C),f1(function(_){return ID(_,C)})}var F_e=Xm(e0),z_e=Xm(di),j_e=Xm(gi);function qP(C){return ip(C)?vi(Bi(C)):ppe(C)}function V_e(C){return function(_){return C==null?n:w3(C,_)}}var Z_e=tP(),U_e=tP(!0);function yp(){return[]}function wp(){return!1}function $_e(){return{}}function W_e(){return""}function K_e(){return!0}function Q_e(C,_){if(C=o1(C),C<1||C>W)return[];var I=U,Q=ie(C,U);_=jn(_),C-=U;for(var te=p3(Q,_);++I<C;)_(I);return te}function G_e(C){return Jn(C)?e0(C,Bi):F2(C)?[C]:h2(pP(G1(C)))}function Y_e(C){var _=++Ml;return G1(C)+_}var q_e=_u(function(C,_){return C+_},0),X_e=Jm("ceil"),J_e=_u(function(C,_){return C/_},1),eye=Jm("floor");function tye(C){return C&&C.length?gu(C,m2,Rm):n}function nye(C,_){return C&&C.length?gu(C,jn(_,2),Rm):n}function rye(C){return ia(C,m2)}function oye(C,_){return ia(C,jn(_,2))}function iye(C){return C&&C.length?gu(C,m2,Vm):n}function aye(C,_){return C&&C.length?gu(C,jn(_,2),Vm):n}var sye=_u(function(C,_){return C*_},1),lye=Jm("round"),cye=_u(function(C,_){return C-_},0);function uye(C){return C&&C.length?Or(C,m2):0}function dye(C,_){return C&&C.length?Or(C,jn(_,2)):0}return ce.after=IAe,ce.ary=HP,ce.assign=bbe,ce.assignIn=VP,ce.assignInWith=Du,ce.assignWith=_be,ce.at=ybe,ce.before=LP,ce.bind=dp,ce.bindAll=M_e,ce.bindKey=BP,ce.castArray=$Ae,ce.chain=EP,ce.chunk=eve,ce.compact=tve,ce.concat=nve,ce.cond=H_e,ce.conforms=L_e,ce.constant=vp,ce.countBy=uAe,ce.create=wbe,ce.curry=kP,ce.curryRight=OP,ce.debounce=IP,ce.defaults=xbe,ce.defaultsDeep=Ebe,ce.defer=DAe,ce.delay=PAe,ce.difference=rve,ce.differenceBy=ove,ce.differenceWith=ive,ce.drop=ave,ce.dropRight=sve,ce.dropRightWhile=lve,ce.dropWhile=cve,ce.fill=uve,ce.filter=fAe,ce.flatMap=CAe,ce.flatMapDeep=mAe,ce.flatMapDepth=pAe,ce.flatten=_P,ce.flattenDeep=dve,ce.flattenDepth=fve,ce.flip=NAe,ce.flow=k_e,ce.flowRight=O_e,ce.fromPairs=hve,ce.functions=Obe,ce.functionsIn=Ibe,ce.groupBy=vAe,ce.initial=Cve,ce.intersection=mve,ce.intersectionBy=pve,ce.intersectionWith=vve,ce.invert=Pbe,ce.invertBy=Nbe,ce.invokeMap=bAe,ce.iteratee=Ap,ce.keyBy=_Ae,ce.keys=dr,ce.keysIn=C2,ce.map=Hu,ce.mapKeys=Rbe,ce.mapValues=Fbe,ce.matches=I_e,ce.matchesProperty=D_e,ce.memoize=Bu,ce.merge=zbe,ce.mergeWith=ZP,ce.method=P_e,ce.methodOf=N_e,ce.mixin=bp,ce.negate=ku,ce.nthArg=R_e,ce.omit=jbe,ce.omitBy=Vbe,ce.once=TAe,ce.orderBy=yAe,ce.over=F_e,ce.overArgs=RAe,ce.overEvery=z_e,ce.overSome=j_e,ce.partial=fp,ce.partialRight=DP,ce.partition=wAe,ce.pick=Zbe,ce.pickBy=UP,ce.property=qP,ce.propertyOf=V_e,ce.pull=yve,ce.pullAll=wP,ce.pullAllBy=wve,ce.pullAllWith=xve,ce.pullAt=Eve,ce.range=Z_e,ce.rangeRight=U_e,ce.rearg=FAe,ce.reject=SAe,ce.remove=Sve,ce.rest=zAe,ce.reverse=cp,ce.sampleSize=HAe,ce.set=$be,ce.setWith=Wbe,ce.shuffle=LAe,ce.slice=Mve,ce.sortBy=OAe,ce.sortedUniq=Dve,ce.sortedUniqBy=Pve,ce.split=C_e,ce.spread=jAe,ce.tail=Nve,ce.take=Tve,ce.takeRight=Rve,ce.takeRightWhile=Fve,ce.takeWhile=zve,ce.tap=tAe,ce.throttle=VAe,ce.thru=Mu,ce.toArray=FP,ce.toPairs=$P,ce.toPairsIn=WP,ce.toPath=G_e,ce.toPlainObject=jP,ce.transform=Kbe,ce.unary=ZAe,ce.union=jve,ce.unionBy=Vve,ce.unionWith=Zve,ce.uniq=Uve,ce.uniqBy=$ve,ce.uniqWith=Wve,ce.unset=Qbe,ce.unzip=up,ce.unzipWith=xP,ce.update=Gbe,ce.updateWith=Ybe,ce.values=a4,ce.valuesIn=qbe,ce.without=Kve,ce.words=GP,ce.wrap=UAe,ce.xor=Qve,ce.xorBy=Gve,ce.xorWith=Yve,ce.zip=qve,ce.zipObject=Xve,ce.zipObjectDeep=Jve,ce.zipWith=eAe,ce.entries=$P,ce.entriesIn=WP,ce.extend=VP,ce.extendWith=Du,bp(ce,ce),ce.add=q_e,ce.attempt=YP,ce.camelCase=t_e,ce.capitalize=KP,ce.ceil=X_e,ce.clamp=Xbe,ce.clone=WAe,ce.cloneDeep=QAe,ce.cloneDeepWith=GAe,ce.cloneWith=KAe,ce.conformsTo=YAe,ce.deburr=QP,ce.defaultTo=B_e,ce.divide=J_e,ce.endsWith=n_e,ce.eq=zo,ce.escape=r_e,ce.escapeRegExp=o_e,ce.every=dAe,ce.find=hAe,ce.findIndex=AP,ce.findKey=Sbe,ce.findLast=gAe,ce.findLastIndex=bP,ce.findLastKey=Mbe,ce.floor=eye,ce.forEach=SP,ce.forEachRight=MP,ce.forIn=Hbe,ce.forInRight=Lbe,ce.forOwn=Bbe,ce.forOwnRight=kbe,ce.get=Cp,ce.gt=qAe,ce.gte=XAe,ce.has=Dbe,ce.hasIn=mp,ce.head=yP,ce.identity=m2,ce.includes=AAe,ce.indexOf=gve,ce.inRange=Jbe,ce.invoke=Tbe,ce.isArguments=S3,ce.isArray=Jn,ce.isArrayBuffer=JAe,ce.isArrayLike=g2,ce.isArrayLikeObject=z0,ce.isBoolean=ebe,ce.isBuffer=v9,ce.isDate=tbe,ce.isElement=nbe,ce.isEmpty=rbe,ce.isEqual=obe,ce.isEqualWith=ibe,ce.isError=hp,ce.isFinite=abe,ce.isFunction=Aa,ce.isInteger=PP,ce.isLength=Ou,ce.isMap=NP,ce.isMatch=sbe,ce.isMatchWith=lbe,ce.isNaN=cbe,ce.isNative=ube,ce.isNil=fbe,ce.isNull=dbe,ce.isNumber=TP,ce.isObject=w0,ce.isObjectLike=B0,ce.isPlainObject=Tl,ce.isRegExp=gp,ce.isSafeInteger=hbe,ce.isSet=RP,ce.isString=Iu,ce.isSymbol=F2,ce.isTypedArray=i4,ce.isUndefined=gbe,ce.isWeakMap=Cbe,ce.isWeakSet=mbe,ce.join=Ave,ce.kebabCase=i_e,ce.last=ho,ce.lastIndexOf=bve,ce.lowerCase=a_e,ce.lowerFirst=s_e,ce.lt=pbe,ce.lte=vbe,ce.max=tye,ce.maxBy=nye,ce.mean=rye,ce.meanBy=oye,ce.min=iye,ce.minBy=aye,ce.stubArray=yp,ce.stubFalse=wp,ce.stubObject=$_e,ce.stubString=W_e,ce.stubTrue=K_e,ce.multiply=sye,ce.nth=_ve,ce.noConflict=T_e,ce.noop=_p,ce.now=Lu,ce.pad=l_e,ce.padEnd=c_e,ce.padStart=u_e,ce.parseInt=d_e,ce.random=e_e,ce.reduce=xAe,ce.reduceRight=EAe,ce.repeat=f_e,ce.replace=h_e,ce.result=Ube,ce.round=lye,ce.runInContext=Ze,ce.sample=MAe,ce.size=BAe,ce.snakeCase=g_e,ce.some=kAe,ce.sortedIndex=Hve,ce.sortedIndexBy=Lve,ce.sortedIndexOf=Bve,ce.sortedLastIndex=kve,ce.sortedLastIndexBy=Ove,ce.sortedLastIndexOf=Ive,ce.startCase=m_e,ce.startsWith=p_e,ce.subtract=cye,ce.sum=uye,ce.sumBy=dye,ce.template=v_e,ce.times=Q_e,ce.toFinite=ba,ce.toInteger=o1,ce.toLength=zP,ce.toLower=A_e,ce.toNumber=go,ce.toSafeInteger=Abe,ce.toString=G1,ce.toUpper=b_e,ce.trim=__e,ce.trimEnd=y_e,ce.trimStart=w_e,ce.truncate=x_e,ce.unescape=E_e,ce.uniqueId=Y_e,ce.upperCase=S_e,ce.upperFirst=pp,ce.each=SP,ce.eachRight=MP,ce.first=yP,bp(ce,function(){var C={};return Hi(ce,function(_,I){d1.call(ce.prototype,I)||(C[I]=_)}),C}(),{chain:!1}),ce.VERSION=r,A0(["bind","bindKey","curry","curryRight","partial","partialRight"],function(C){ce[C].placeholder=ce}),A0(["drop","take"],function(C,_){an.prototype[C]=function(I){I=I===n?1:X(o1(I),0);var Q=this.__filtered__&&!_?new an(this):this.clone();return Q.__filtered__?Q.__takeCount__=ie(I,Q.__takeCount__):Q.__views__.push({size:ie(I,U),type:C+(Q.__dir__<0?"Right":"")}),Q},an.prototype[C+"Right"]=function(I){return this.reverse()[C](I).reverse()}}),A0(["filter","map","takeWhile"],function(C,_){var I=_+1,Q=I==j||I==R;an.prototype[C]=function(te){var me=this.clone();return me.__iteratees__.push({iteratee:jn(te,3),type:I}),me.__filtered__=me.__filtered__||Q,me}}),A0(["head","last"],function(C,_){var I="take"+(_?"Right":"");an.prototype[C]=function(){return this[I](1).value()[0]}}),A0(["initial","tail"],function(C,_){var I="drop"+(_?"":"Right");an.prototype[C]=function(){return this.__filtered__?new an(this):this[I](1)}}),an.prototype.compact=function(){return this.filter(m2)},an.prototype.find=function(C){return this.filter(C).head()},an.prototype.findLast=function(C){return this.reverse().find(C)},an.prototype.invokeMap=f1(function(C,_){return typeof C=="function"?new an(this):this.map(function(I){return kl(I,C,_)})}),an.prototype.reject=function(C){return this.filter(ku(jn(C)))},an.prototype.slice=function(C,_){C=o1(C);var I=this;return I.__filtered__&&(C>0||_<0)?new an(I):(C<0?I=I.takeRight(-C):C&&(I=I.drop(C)),_!==n&&(_=o1(_),I=_<0?I.dropRight(-_):I.take(_-C)),I)},an.prototype.takeRightWhile=function(C){return this.reverse().takeWhile(C).reverse()},an.prototype.toArray=function(){return this.take(U)},Hi(an.prototype,function(C,_){var I=/^(?:filter|find|map|reject)|While$/.test(_),Q=/^(?:head|last)$/.test(_),te=ce[Q?"take"+(_=="last"?"Right":""):_],me=Q||/^find/.test(_);te&&(ce.prototype[_]=function(){var ke=this.__wrapped__,Ne=Q?[1]:arguments,We=ke instanceof an,St=Ne[0],Mt=We||Jn(ke),It=function(v1){var S1=te.apply(ce,Ar([v1],Ne));return Q&&cn?S1[0]:S1};Mt&&I&&typeof St=="function"&&St.length!=1&&(We=Mt=!1);var cn=this.__chain__,Bn=!!this.__actions__.length,Zn=me&&!cn,c1=We&&!Bn;if(!me&&Mt){ke=c1?ke:new an(this);var Un=C.apply(ke,Ne);return Un.__actions__.push({func:Mu,args:[It],thisArg:n}),new p1(Un,cn)}return Zn&&c1?C.apply(this,Ne):(Un=this.thru(It),Zn?Q?Un.value()[0]:Un.value():Un)})}),A0(["pop","push","shift","sort","splice","unshift"],function(C){var _=Do[C],I=/^(?:push|sort|unshift)$/.test(C)?"tap":"thru",Q=/^(?:pop|shift)$/.test(C);ce.prototype[C]=function(){var te=arguments;if(Q&&!this.__chain__){var me=this.value();return _.apply(Jn(me)?me:[],te)}return this[I](function(ke){return _.apply(Jn(ke)?ke:[],te)})}}),Hi(an.prototype,function(C,_){var I=ce[_];if(I){var Q=I.name+"";d1.call(Re,Q)||(Re[Q]=[]),Re[Q].push({name:_,func:I})}}),Re[bu(n,x).name]=[{name:"wrapper",func:n}],an.prototype.clone=L0,an.prototype.reverse=cr,an.prototype.value=Gr,ce.prototype.at=nAe,ce.prototype.chain=rAe,ce.prototype.commit=oAe,ce.prototype.next=iAe,ce.prototype.plant=sAe,ce.prototype.reverse=lAe,ce.prototype.toJSON=ce.prototype.valueOf=ce.prototype.value=cAe,ce.prototype.first=ce.prototype.head,so&&(ce.prototype[so]=aAe),ce},Kr=xi();Lr?((Lr.exports=Kr)._=Kr,vr._=Kr):R0._=Kr}).call(tJ)}(H4,H4.exports)),H4.exports}var L4=nJ();const $o=V2(L4),wd="/not_available.svg",rJ="/big_size_image.svg",xd="/user.png",qb={HARDCODED_FALL_BACK_IMAGE:wd,HARDCODED_FALL_BACK_BIG_IMAGE:rJ,DEFAULT_AVATAR_IMAGE:xd,generateImageUrl:(e,t=!1)=>e||wd,getImageKitUrl:(e,t=300,n=300,r=40)=>e||wd,getUserAvatar:e=>{var t;return!e||!((t=e.awi_personal_info)!=null&&t.awi_avatar)?xd:e.awi_personal_info.awi_avatar||xd}};var j3=Ju();const Ed=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Sd(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function B4(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on".concat(t),n)}function Xb(e,t){const n=t.slice(0,t.length-1);for(let r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Jb(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function oJ(e,t){const n=e.length>=t.length?e:t,r=e.length>=t.length?t:e;let o=!0;for(let i=0;i<n.length;i++)r.indexOf(n[i])===-1&&(o=!1);return o}const k4={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Ed?173:189,"=":Ed?61:187,";":Ed?59:186,"'":222,"[":219,"]":221,"\\":220},mo={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},O4={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},hr={16:!1,18:!1,17:!1,91:!1},b0={};for(let e=1;e<20;e++)k4["f".concat(e)]=111+e;let p0=[],I4=null,e_="all";const Pi=new Map,D4=e=>k4[e.toLowerCase()]||mo[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),iJ=e=>Object.keys(k4).find(t=>k4[t]===e),aJ=e=>Object.keys(mo).find(t=>mo[t]===e);function t_(e){e_=e||"all"}function P4(){return e_||"all"}function sJ(){return p0.slice(0)}function lJ(){return p0.map(e=>iJ(e)||aJ(e)||String.fromCharCode(e))}function cJ(){const e=[];return Object.keys(b0).forEach(t=>{b0[t].forEach(n=>{let{key:r,scope:o,mods:i,shortcut:a}=n;e.push({scope:o,shortcut:a,mods:i,keys:r.split("+").map(s=>D4(s))})})}),e}function uJ(e){const t=e.target||e.srcElement,{tagName:n}=t;let r=!0;const o=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function dJ(e){return typeof e=="string"&&(e=D4(e)),p0.indexOf(e)!==-1}function fJ(e,t){let n,r;e||(e=P4());for(const o in b0)if(Object.prototype.hasOwnProperty.call(b0,o))for(n=b0[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1).forEach(a=>{let{element:s}=a;return Md(s)}):r++;P4()===e&&t_(t||"all")}function hJ(e){let t=e.keyCode||e.which||e.charCode;const n=p0.indexOf(t);if(n>=0&&p0.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&p0.splice(0,p0.length),(t===93||t===224)&&(t=91),t in hr){hr[t]=!1;for(const r in mo)mo[r]===t&&(U2[r]=!1)}}function n_(e){if(typeof e>"u")Object.keys(b0).forEach(o=>{Array.isArray(b0[o])&&b0[o].forEach(i=>ic(i)),delete b0[o]}),Md(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&ic(o)});else if(typeof e=="object")e.key&&ic(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let[o,i]=n;typeof o=="function"&&(i=o,o=""),ic({key:e,scope:o,method:i,splitKey:"+"})}}const ic=e=>{let{key:t,scope:n,method:r,splitKey:o="+"}=e;Jb(t).forEach(a=>{const s=a.split(o),c=s.length,u=s[c-1],d=u==="*"?"*":D4(u);if(!b0[d])return;n||(n=P4());const h=c>1?Xb(mo,s):[],g=[];b0[d]=b0[d].filter(m=>{const A=(r?m.method===r:!0)&&m.scope===n&&oJ(m.mods,h);return A&&g.push(m.element),!A}),g.forEach(m=>Md(m))})};function r_(e,t,n,r){if(t.element!==r)return;let o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(const i in hr)Object.prototype.hasOwnProperty.call(hr,i)&&(!hr[i]&&t.mods.indexOf(+i)>-1||hr[i]&&t.mods.indexOf(+i)===-1)&&(o=!1);(t.mods.length===0&&!hr[16]&&!hr[18]&&!hr[17]&&!hr[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(p0),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function o_(e,t){const n=b0["*"];let r=e.keyCode||e.which||e.charCode;if(!U2.filter.call(this,e))return;if((r===93||r===224)&&(r=91),p0.indexOf(r)===-1&&r!==229&&p0.push(r),["metaKey","ctrlKey","altKey","shiftKey"].forEach(s=>{const c=O4[s];e[s]&&p0.indexOf(c)===-1?p0.push(c):!e[s]&&p0.indexOf(c)>-1?p0.splice(p0.indexOf(c),1):s==="metaKey"&&e[s]&&(p0=p0.filter(u=>u in O4||u===r))}),r in hr){hr[r]=!0;for(const s in mo)if(Object.prototype.hasOwnProperty.call(mo,s)){const c=O4[mo[s]];U2[s]=e[c]}if(!n)return}for(const s in hr)Object.prototype.hasOwnProperty.call(hr,s)&&(hr[s]=e[O4[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(p0.indexOf(17)===-1&&p0.push(17),p0.indexOf(18)===-1&&p0.push(18),hr[17]=!0,hr[18]=!0);const o=P4();if(n)for(let s=0;s<n.length;s++)n[s].scope===o&&(e.type==="keydown"&&n[s].keydown||e.type==="keyup"&&n[s].keyup)&&r_(e,n[s],o,t);if(!(r in b0))return;const i=b0[r],a=i.length;for(let s=0;s<a;s++)if((e.type==="keydown"&&i[s].keydown||e.type==="keyup"&&i[s].keyup)&&i[s].key){const c=i[s],{splitKey:u}=c,d=c.key.split(u),h=[];for(let g=0;g<d.length;g++)h.push(D4(d[g]));h.sort().join("")===p0.sort().join("")&&r_(e,c,o,t)}}function U2(e,t,n){p0=[];const r=Jb(e);let o=[],i="all",a=document,s=0,c=!1,u=!0,d="+",h=!1,g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(c=t.keyup),t.keydown!==void 0&&(u=t.keydown),t.capture!==void 0&&(h=t.capture),typeof t.splitKey=="string"&&(d=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(i=t),g&&n_(e,i);s<r.length;s++)e=r[s].split(d),o=[],e.length>1&&(o=Xb(mo,e)),e=e[e.length-1],e=e==="*"?"*":D4(e),e in b0||(b0[e]=[]),b0[e].push({keyup:c,keydown:u,scope:i,mods:o,shortcut:r[s],method:n,key:r[s],splitKey:d,element:a});if(typeof a<"u"&&window){if(!Pi.has(a)){const m=function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return o_(A,a)},v=function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;o_(A,a),hJ(A)};Pi.set(a,{keydownListener:m,keyupListenr:v,capture:h}),Sd(a,"keydown",m,h),Sd(a,"keyup",v,h)}if(!I4){const m=()=>{p0=[]};I4={listener:m,capture:h},Sd(window,"focus",m,h)}}}function gJ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(b0).forEach(n=>{b0[n].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function Md(e){const t=Object.values(b0).flat();if(t.findIndex(r=>{let{element:o}=r;return o===e})<0){const{keydownListener:r,keyupListenr:o,capture:i}=Pi.get(e)||{};r&&o&&(B4(e,"keyup",o,i),B4(e,"keydown",r,i),Pi.delete(e))}if((t.length<=0||Pi.size<=0)&&(Object.keys(Pi).forEach(o=>{const{keydownListener:i,keyupListenr:a,capture:s}=Pi.get(o)||{};i&&a&&(B4(o,"keyup",a,s),B4(o,"keydown",i,s),Pi.delete(o))}),Pi.clear(),Object.keys(b0).forEach(o=>delete b0[o]),I4)){const{listener:o,capture:i}=I4;B4(window,"focus",o,i),I4=null}}const Hd={getPressedKeyString:lJ,setScope:t_,getScope:P4,deleteScope:fJ,getPressedKeyCodes:sJ,getAllKeyCodes:cJ,isPressed:dJ,filter:uJ,trigger:gJ,unbind:n_,keyMap:k4,modifier:mo,modifierMap:O4};for(const e in Hd)Object.prototype.hasOwnProperty.call(Hd,e)&&(U2[e]=Hd[e]);if(typeof window<"u"){const e=window.hotkeys;U2.noConflict=t=>(t&&window.hotkeys===U2&&(window.hotkeys=e),U2),window.hotkeys=U2}class X1 extends O.Component{constructor(t){super(t),this.isKeyDown=!1,this.handle=void 0,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.handleKeyUpEvent=this.handleKeyUpEvent.bind(this),this.handle={}}componentDidMount(){var{filter:t,splitKey:n}=this.props;t&&(U2.filter=t),U2.unbind(this.props.keyName),U2(this.props.keyName,{splitKey:n},this.onKeyDown),document&&document.body.addEventListener("keyup",this.handleKeyUpEvent)}componentWillUnmount(){U2.unbind(this.props.keyName),this.isKeyDown=!0,this.handle={},document&&document.body.removeEventListener("keyup",this.handleKeyUpEvent)}onKeyUp(t,n){var{onKeyUp:r,disabled:o}=this.props;!o&&r&&r(n.shortcut,t,n)}onKeyDown(t,n){var{onKeyDown:r,allowRepeat:o,disabled:i}=this.props;this.isKeyDown&&!o||(this.isKeyDown=!0,this.handle=n,!i&&r&&r(n.shortcut,t,n))}handleKeyUpEvent(t){this.isKeyDown&&(this.isKeyDown=!1,!(this.props.keyName&&this.props.keyName.indexOf(this.handle.shortcut)<0)&&(this.onKeyUp(t,this.handle),this.handle={}))}render(){return this.props.children||null}}X1.defaultProps={filter(e){var t=e.target||e.srcElement,n=t.tagName;return!(t.isContentEditable||n==="INPUT"||n==="SELECT"||n==="TEXTAREA")}},X1.propTypes={keyName:j3.string,filter:j3.func,onKeyDown:j3.func,onKeyUp:j3.func,disabled:j3.bool,splitKey:j3.string};const i_=["shift","alt","meta","mod","ctrl","control"],CJ={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Oa(e){return(CJ[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function a_(e){return i_.includes(e)}function Ld(e,t=","){return e.toLowerCase().split(t)}function Bd(e,t="+",n=">",r=!1,o){let i=[],a=!1;e.includes(n)?(a=!0,i=e.toLocaleLowerCase().split(n).map(u=>Oa(u))):i=e.toLocaleLowerCase().split(t).map(u=>Oa(u));const s={alt:i.includes("alt"),ctrl:i.includes("ctrl")||i.includes("control"),shift:i.includes("shift"),meta:i.includes("meta"),mod:i.includes("mod"),useKey:r},c=i.filter(u=>!i_.includes(u));return{...s,keys:c,description:o,isSequence:a}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&s_([Oa(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&l_([Oa(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{Ni.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{Ni.clear()},0)}));const Ni=new Set;function kd(e){return Array.isArray(e)}function mJ(e,t=","){return(kd(e)?e:e.split(t)).every(n=>Ni.has(n.trim().toLowerCase()))}function s_(e){const t=Array.isArray(e)?e:[e];Ni.has("meta")&&Ni.forEach(n=>!a_(n)&&Ni.delete(n.toLowerCase())),t.forEach(n=>Ni.add(n.toLowerCase()))}function l_(e){const t=Array.isArray(e)?e:[e];e==="meta"?Ni.clear():t.forEach(n=>Ni.delete(n.toLowerCase()))}function pJ(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function vJ(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function AJ(e){return c_(e,["input","textarea","select"])}function c_(e,t=!1){const{target:n,composed:r}=e;let o;return bJ(n)&&r?o=e.composedPath()[0]&&e.composedPath()[0].tagName:o=n&&n.tagName,kd(t)?!!(o&&t&&t.some(i=>i.toLowerCase()===o.toLowerCase())):!!(o&&t&&t)}function bJ(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function _J(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(n=>t.includes(n))||e.includes("*"):!0}const yJ=(e,t,n=!1)=>{const{alt:r,meta:o,mod:i,shift:a,ctrl:s,keys:c,useKey:u}=t,{code:d,key:h,ctrlKey:g,metaKey:m,shiftKey:v,altKey:A}=e,p=Oa(d);if(u&&(c==null?void 0:c.length)===1&&c.includes(h))return!0;if(!(c!=null&&c.includes(p))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(p))return!1;if(!n){if(r!==A&&p!=="alt"||a!==v&&p!=="shift")return!1;if(i){if(!m&&!g)return!1}else if(o!==m&&p!=="meta"&&p!=="os"||s!==g&&p!=="ctrl"&&p!=="control")return!1}return c&&c.length===1&&c.includes(p)?!0:c?mJ(c):!c},wJ=O.createContext(void 0),xJ=()=>O.useContext(wJ);function u_(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((n,r)=>n&&u_(e[r],t[r]),!0):e===t}const EJ=O.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),SJ=()=>O.useContext(EJ);function MJ(e){const t=O.useRef(void 0);return u_(t.current,e)||(t.current=e),t.current}const d_=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},HJ=typeof window<"u"?O.useLayoutEffect:O.useEffect;function f_(e,t,n,r){const o=O.useRef(null),i=O.useRef(!1),a=n instanceof Array?r instanceof Array?void 0:r:n,s=kd(e)?e.join(a==null?void 0:a.delimiter):e,c=n instanceof Array?n:r instanceof Array?r:void 0,u=O.useCallback(t,c??[]),d=O.useRef(u);c?d.current=u:d.current=t;const h=MJ(a),{activeScopes:g}=SJ(),m=xJ();return HJ(()=>{if((h==null?void 0:h.enabled)===!1||!_J(g,h==null?void 0:h.scopes))return;let v=[],A;const p=(E,S=!1)=>{var M;if(!(AJ(E)&&!c_(E,h==null?void 0:h.enableOnFormTags))){if(o.current!==null){const H=o.current.getRootNode();if((H instanceof Document||H instanceof ShadowRoot)&&H.activeElement!==o.current&&!o.current.contains(H.activeElement)){d_(E);return}}(M=E.target)!=null&&M.isContentEditable&&!(h!=null&&h.enableOnContentEditable)||Ld(s,h==null?void 0:h.delimiter).forEach(H=>{var k,D,P,T;if(H.includes((h==null?void 0:h.splitKey)??"+")&&H.includes((h==null?void 0:h.sequenceSplitKey)??">")){console.warn(`Hotkey ${H} contains both ${(h==null?void 0:h.splitKey)??"+"} and ${(h==null?void 0:h.sequenceSplitKey)??">"} which is not supported.`);return}const N=Bd(H,h==null?void 0:h.splitKey,h==null?void 0:h.sequenceSplitKey,h==null?void 0:h.useKey,h==null?void 0:h.description);if(N.isSequence){A=setTimeout(()=>{v=[]},(h==null?void 0:h.sequenceTimeoutMs)??1e3);const F=N.useKey?E.key:Oa(E.code);if(a_(F.toLowerCase()))return;v.push(F);const j=(k=N.keys)==null?void 0:k[v.length-1];if(F!==j){v=[],A&&clearTimeout(A);return}v.length===((D=N.keys)==null?void 0:D.length)&&(d.current(E,N),A&&clearTimeout(A),v=[])}else if(yJ(E,N,h==null?void 0:h.ignoreModifiers)||(P=N.keys)!=null&&P.includes("*")){if((T=h==null?void 0:h.ignoreEventWhen)!=null&&T.call(h,E)||S&&i.current)return;if(pJ(E,N,h==null?void 0:h.preventDefault),!vJ(E,N,h==null?void 0:h.enabled)){d_(E);return}d.current(E,N),S||(i.current=!0)}})}},x=E=>{E.code!==void 0&&(s_(Oa(E.code)),((h==null?void 0:h.keydown)===void 0&&(h==null?void 0:h.keyup)!==!0||h!=null&&h.keydown)&&p(E))},y=E=>{E.code!==void 0&&(l_(Oa(E.code)),i.current=!1,h!=null&&h.keyup&&p(E,!0))},w=o.current||(a==null?void 0:a.document)||document;return w.addEventListener("keyup",y,a==null?void 0:a.eventListenerOptions),w.addEventListener("keydown",x,a==null?void 0:a.eventListenerOptions),m&&Ld(s,h==null?void 0:h.delimiter).forEach(E=>m.addHotkey(Bd(E,h==null?void 0:h.splitKey,h==null?void 0:h.sequenceSplitKey,h==null?void 0:h.useKey,h==null?void 0:h.description))),()=>{w.removeEventListener("keyup",y,a==null?void 0:a.eventListenerOptions),w.removeEventListener("keydown",x,a==null?void 0:a.eventListenerOptions),m&&Ld(s,h==null?void 0:h.delimiter).forEach(E=>m.removeHotkey(Bd(E,h==null?void 0:h.splitKey,h==null?void 0:h.sequenceSplitKey,h==null?void 0:h.useKey,h==null?void 0:h.description))),v=[],A&&clearTimeout(A)}},[s,h,g]),o}const gr={table:"_table_q0jcp_1",table__header:"_table__header_q0jcp_18",table__header__th:"_table__header__th_q0jcp_24",table__row:"_table__row_q0jcp_38",table__row__row_selected:"_table__row__row_selected_q0jcp_44",table__row__td:"_table__row__td_q0jcp_47",clickable:"_clickable_q0jcp_68",loadMoreButton:"_loadMoreButton_q0jcp_73",loadMoreButtonDiv:"_loadMoreButtonDiv_q0jcp_78",table_container:"_table_container_q0jcp_84",scrollable_table:"_scrollable_table_q0jcp_92",pagination_container:"_pagination_container_q0jcp_104",pagination_btn:"_pagination_btn_q0jcp_113",active:"_active_q0jcp_130",pagination_dots:"_pagination_dots_q0jcp_135",pagination_input:"_pagination_input_q0jcp_140",nextPrevArrow:"_nextPrevArrow_q0jcp_165",pagination_left:"_pagination_left_q0jcp_179",pagination_right:"_pagination_right_q0jcp_191",pagination_loading:"_pagination_loading_q0jcp_204"},h_=({children:e,disableOverflowY:t=!1,tableClass:n="",disableFixHeight:r,isPagination:o=!0})=>Z.jsx("div",{className:qn(gr.table_container,n),style:{overflowY:t?"unset":"auto",height:r?"unset":o?"70vh":"78vh",maxHeight:o?"70vh":"85vh"},children:Z.jsx("table",{id:"resizeMe",className:qn(gr.table,gr.scrollable_table),children:e})}),g_=({children:e})=>Z.jsx("tbody",{className:gr.table__body,children:e}),Od=({children:e,className:t="",title:n="",onclick:r})=>Z.jsx("tr",{className:qn(gr.table__row,{[t]:!!t}),title:n,...r&&{onClick:r},children:e}),N4=({children:e,className:t="",extraClass:n="",title:r="",...o})=>{const i=qn(gr.table__row__td,t,(n==null?void 0:n.length)>0&&gr.clickable);return Z.jsx("td",{className:i,title:r,children:Z.jsx("span",{...o,style:{textAlign:"left"},children:e})})},C_=({children:e,className:t="",title:n=""})=>Z.jsx("th",{className:qn(gr.table__header__th,{[t]:t}),title:n,children:Z.jsxs("span",{children:[e," "]})}),m_=({children:e,className:t=""})=>Z.jsx("thead",{className:qn(gr.table__header,{[t]:!!t}),children:e}),p_=({list:e,headerClass:t="",type:n=""})=>(console.log("AWIHEADER List,",e),Z.jsx(m_,{className:t,children:Z.jsx(Od,{children:e.map(r=>Z.jsx(C_,{children:r},r))},`row_${n}`)},n)),Id=({toggleSelectAnnotation:e=()=>{console.log("Not available")},handleLeftKeyDown:t=()=>{console.log("Not available")},handleRightKeyDown:n=()=>{console.log("Not available")},handleUpKeyDown:r=()=>{console.log("Not available")},handleDownKeyDown:o=()=>{console.log("Not available")},handleZoomInClick:i=()=>{console.log("Not available")},handleZoomOutClick:a=()=>{console.log("Not available")},handleCompleteAnnotation:s=()=>{console.log("Not available")},undoAnnotationPoint:c=()=>{console.log("Not available")},reLoadAndReDrawAnnotations:u=()=>{console.log("Not available")},togglePagination:d=()=>{console.log("Not available")},toggleFullscreen:h=()=>{console.log("Not available")},switchToAutoAnnotations:g=()=>{console.log("Not available")},openShortCutRequestDetails:m=()=>{console.log("Not available")},handleRecentAnnotatedVerifiedImages:v=()=>{console.log("Not available")},handleSendToSamFunctionPrompt:A=()=>{console.log("Not available")},samAPIactive:p,request:x,switchToEditMode:y=()=>{console.log("Not available")},switchToCreateMode:w=()=>{console.log("Not available")},goToNextImage:E=()=>{console.log("Not available")},goToPreviousImage:S=()=>{console.log("Not available")},loggedUser:M,handleGoToPendingAnnotations:H=()=>{console.log("Not available")},handleCopyByCtrlC:k=()=>{console.log("Not available")},handlePasteAnnotationsByControlV:D=()=>{console.log("Not available")},openShortCutKeyModal:P,setOpenShortCutKeyModal:T=()=>{console.log("Not available")},setIsAltViaToolPressHandle:N=()=>{console.log("Not available")},isCarousel:F=!1,selectedTool:j="",setCrossHairHandle:z=()=>{console.log("Not available")},controlMinusHotkey:R=()=>{console.log("Not available")},controlPlusHotkey:$=()=>{console.log("Not available")}})=>{const W=p2.isSAMAllowed(x==null?void 0:x.awi_annotation_type,x==null?void 0:x.awi_request_for)&&!p,q=["awi_annotator","awi_verifier","awi_developer"].includes(M.userObj.awi_level),K=()=>{const J=[{action:"next image",key:"next_image",displayKey:"d",title:"Move to the next image",isClose:!0},{action:"previous image",key:"prev_image",displayKey:"a",title:"Move to the previous image",isClose:!0}],Y=[{action:"Go to pending annotation",key:"pending_annotations",displayKey:"p",title:"Go to pending annotation",isClose:!0}],ee=[{action:"Switch to edit",key:"edit_mode",displayKey:"e",title:"Switch to edit mode",isClose:!0},{action:"Switch to create",key:"create_mode",displayKey:"q",title:"Switch to create mode",isClose:!0},{action:"Switch to pan mode",key:"pan_mode",displayKey:"m",title:"Switch to pan mode",isClose:!0},{action:"Show cross hair",key:"cross_hair",displayKey:"w",title:"Show cross hair",isClose:!0},{action:"Copy selected annotation",key:"copy",displayKey:"Ctrl + C",title:"Copy selected annotation",isClose:!1},{action:"Paste all annotations",key:"paste",displayKey:"Ctrl + V",title:"Paste all copied annotations",isClose:!1},{action:"Forward Toggle Annotations",key:"select_forward",displayKey:"T",title:"Forward Toggle annotations visibility, Long press to get next",isClose:!1},{action:"Backward Toggle Annotations",key:"select_backward",displayKey:"U",title:"Backward Toggle annotations visibility, Long press to get previous",isClose:!1},{action:"Go to last updated annotations",key:"select_last_update",displayKey:"L",title:"Go to last updated annotations",isClose:!0},{action:"Undo Annotation point / Last State",key:"undo",displayKey:"Ctrl + Z",title:"Undo last annotation action",isClose:!0},{action:"Complete Annotation / Generate Point Annotations",key:"complete",displayKey:"Enter",title:"Finalize or generate point annotations",isClose:!0},{action:"Switch to Auto Annotations",key:"auto_annotations",displayKey:"S",title:"Enable automatic annotation mode",isClose:!0},{action:"AI prompt popup",key:"send_to_sam",displayKey:"X (if AI is enabled)",title:"AI prompt popup",isClose:!0},{action:"Get request information",key:"open_shortcut_details",displayKey:"V",title:"View request-related information",isClose:!0},{action:"Refetch Annotations",key:"reload",displayKey:"R",title:"Reload annotations",isClose:!0},{action:"Toggle Image Pagination",key:"toggle_pagination",displayKey:"H",title:"Show or hide image pagination",isClose:!1},{action:"Zoom In",key:"zoom_in",displayKey:"I",title:"Zoom into the image, long press for more zoom in",isClose:!1},{action:"Zoom Out",key:"zoom_out",displayKey:"O",title:"Zoom out of the image, long press for more zoom out",isClose:!1},{action:"Moving Zoomed images",key:"",displayKey:"Alt + Mouse Move",title:"Move the zoomed-in image",isClose:!1},{action:"View Recently Annotated Images",key:"recent_verified",displayKey:"Alt + R",title:"Show recently annotated images",isClose:!0},{action:"Delete Annotation",key:"",displayKey:"Ctrl + Delete",title:"Delete the selected annotation",isClose:!1},{action:"Move image to left",key:"move_left",displayKey:"←",title:"Move image to left",isClose:!1},{action:"Move image to right",key:"move_right",displayKey:"→",title:"Move image to right",isClose:!1},{action:"Move image to top",key:"move_up",displayKey:"↑",title:"Move image to top",isClose:!1},{action:"Move image to bottom",key:"move_down",displayKey:"↓",title:"Move image to bottom",isClose:!1},{action:"Enter/Exit Fullscreen",key:"fullscreen",displayKey:"F",title:"Enter/Exit Fullscreen",isClose:!1}];return M.userObj.awi_level==="awi_verifier"?[...J,...ee,...Y]:M.userObj.awi_level==="awi_supervisor"?J:[...J,...ee]},U=J=>{switch(J){case"select_forward":return e("forward");case"select_backward":return e("backward");case"select_last_update":return e("last_update");case"move_left":return t();case"move_right":return n();case"move_up":return r();case"move_down":return o();case"zoom_in":return i();case"zoom_out":return a();case"complete":return s();case"undo":return c();case"reload":return u();case"toggle_pagination":return d(Y=>!Y);case"fullscreen":return h();case"auto_annotations":return g();case"open_shortcut_details":return m();case"recent_verified":return v();case"send_to_sam":if(W)return j!="SAM"&&g(),A();V1.error("SAM is not allowed");return;case"edit_mode":if(y)return y();break;case"create_mode":if(w)return w();break;case"next_image":if(E)return E();break;case"prev_image":if(S)return S();break;case"pending_annotations":if(H)return H();break;case"copy":if(k)return k();break;case"paste":if(D)return D();break;case"pan_mode":N();break;case"cross_hair":z&&typeof z=="function"&&z();break;default:console.warn(`Unhandled hotkey action: ${J}`)}},G=(J,Y)=>{U(J),Y&&T(!1)};return f_("ctrl+=",J=>{J.preventDefault(),$()}),f_("ctrl+-, ctrl+subtract, ctrl+minus",J=>{J.preventDefault(),R()}),Z.jsxs(Z.Fragment,{children:[Z.jsx(X1,{allowRepeat:!0,keyName:"t",onKeyDown:()=>U("select_forward")}),Z.jsx(X1,{allowRepeat:!0,keyName:"u",onKeyDown:()=>U("select_backward")}),Z.jsx(X1,{allowRepeat:!1,keyName:"l",onKeyDown:()=>U("select_last_update")}),Z.jsx(X1,{allowRepeat:!0,keyName:"left",onKeyDown:()=>U("move_left")}),Z.jsx(X1,{allowRepeat:!0,keyName:"right",onKeyDown:()=>U("move_right")}),Z.jsx(X1,{allowRepeat:!0,keyName:"up",onKeyDown:()=>U("move_up")}),Z.jsx(X1,{allowRepeat:!0,keyName:"down",onKeyDown:()=>U("move_down")}),Z.jsx(X1,{allowRepeat:!0,keyName:"i",onKeyDown:()=>U("zoom_in")}),Z.jsx(X1,{allowRepeat:!0,keyName:"o",onKeyDown:()=>U("zoom_out")}),Z.jsx(X1,{keyName:"enter",onKeyDown:()=>U("complete")}),Z.jsx(X1,{keyName:"ctrl+z",onKeyDown:()=>U("undo")}),Z.jsx(X1,{keyName:"r",onKeyDown:()=>U("reload")}),Z.jsx(X1,{keyName:"h",onKeyDown:()=>U("toggle_pagination")}),Z.jsx(X1,{keyName:"f",onKeyDown:()=>U("fullscreen")}),Z.jsx(X1,{keyName:"s",onKeyDown:()=>U("auto_annotations")}),Z.jsx(X1,{keyName:"v",onKeyDown:()=>U("open_shortcut_details")}),Z.jsx(X1,{keyName:"alt+r",onKeyDown:()=>U("recent_verified")}),W&&Z.jsx(X1,{keyName:"x",onKeyDown:()=>U("send_to_sam")}),q&&Z.jsxs(Z.Fragment,{children:[Z.jsx(X1,{keyName:"e",onKeyDown:()=>U("edit_mode")}),Z.jsx(X1,{keyName:"q",onKeyDown:()=>U("create_mode")})]}),Z.jsx(X1,{keyName:"d",onKeyDown:()=>U("next_image")}),Z.jsx(X1,{keyName:"a",onKeyDown:()=>U("prev_image")}),M.userObj.awi_level==="awi_verifier"&&Z.jsx(X1,{keyName:"p",onKeyDown:()=>U("pending_annotations")}),Z.jsx(X1,{keyName:"ctrl+c",onKeyDown:()=>U("copy")}),Z.jsx(X1,{keyName:"ctrl+v",onKeyDown:()=>U("paste")}),Z.jsx(X1,{keyName:"m",onKeyDown:()=>U("pan_mode")}),Z.jsx(X1,{keyName:"w",onKeyDown:()=>U("cross_hair")}),P&&!F&&Z.jsx(Z.Fragment,{children:Z.jsxs(F6,{popupPosition:"right",isBackdrop:!0,backdropAction:()=>T(!1),className:"noPadding",children:[Z.jsx(j6,{title:"Shortcut keys",onClose:()=>T(!1)}),Z.jsx(z6,{children:Z.jsxs(h_,{children:[Z.jsx(p_,{list:["S.NO.","Command","Key Binding","Action"]},"short_cut_keys"),Z.jsx(g_,{children:(K()||[]).map((J,Y)=>{var ee;return Z.jsxs(Od,{title:J.title,children:[Z.jsx(N4,{children:Y+1}),Z.jsx(N4,{children:J.action}),Z.jsx(N4,{children:Z.jsxs("div",{className:"shortcutKey",children:[" ",J.displayKey," "]})}),Z.jsx(N4,{children:((ee=J==null?void 0:J.key)==null?void 0:ee.length)>0&&Z.jsx("button",{className:"modalButton modalButton__purpleColor",onClick:()=>G(J.key,J.isClose),children:"Press"})})]})})})]})}),Z.jsx(Z6,{})]})})]})},LJ=10,BJ=12,v_=e=>{switch(e){case"rectangle":return q1.rectangleIcon.IconComponent;case"circle":return q1.circleIcon.IconComponent;case"polygon":return q1.polygonIcon.IconComponent;case"dot":return q1.dotIcon.IconComponent;default:return q1.rectangleIcon.IconComponent}},ac=({isEditing:e,handleSelectTool:t=()=>{console.log("handleSelectTool function is not provided")},handleSAMToggle:n=()=>{console.log("handleSAMToggle function is not provided")},hasAnnotation:r=!1,currentSelectedSAMTool:o="Normal",handleCopyAnnotations:i,setOpenRequestDetails:a=()=>{console.log("setOpenRequestDetails function is not provided")},openRequestDetails:s,show_guidelines_first:c,handleZoomInClick:u,zoomProperties:d,handleReset:h,handleZoomOutClick:g,handleCompleteAnnotation:m,toggleFullscreen:v,selectAnnotationId:A,selectedAnnotationInfo:p,undoLastStateAnnotation:x,usingSamFunction:y,samAPIactive:w,handleSendToSamFunction:E,coordinates:S,handleSendToSamFunctionPrompt:M,reLoadAndReDrawAnnotations:H,showGuidelinesFirst:k,isMobile:D,toggleSelectAnnotation:P,handleLeftKeyDown:T,handleRightKeyDown:N,handleUpKeyDown:F,handleDownKeyDown:j,undoAnnotationPoint:z,togglePagination:R,switchToEditMode:$,switchToCreateMode:W,goToNextImage:q,goToPreviousImage:K,handleGoToPendingAnnotations:U,handleCopyByCtrlC:G,handlePasteAnnotationsByControlV:J,showPagination:Y=!1,loggedUser:ee,isControlViaToolPress:oe,isAltViaToolPress:de,setIsControlViaToolPress:se,setIsAltViaToolPress:xe,isCarousel:we=!1,allowedToCopyPreview:ve,classColorMapToSend:he,request:le,parentReqData:ae,RequestInfoModal:_e,setCrossHair:Oe,isCrossHair:Ie,annotationViewType:ge="atom",REACT_APP_SAM_ENABLED:et="no",controlPlusHotkey:fe,controlMinusHotkey:ne,Carousel:pe})=>{var Yt,An,_n,Qt,kt,Ht,xt,Zt,Cn,mt;(a==null||typeof a!="function")&&(a=pt=>{console.log("setOpenRequestDetails function is not provided",pt)}),t||(t=pt=>{console.log("handleSelectTool function is not provided",pt)}),n||(n=pt=>{console.log("handleSAMToggle function is not provided",pt)});const[Se,Le]=O.useState(!1),[Be,Ve]=O.useState(!1),[Ke,ct]=O.useState(""),[tt,Qe]=O.useState(!1),[Fe,ot]=O.useState(o),Ue=()=>{ct(""),a(!1),Ve(!1),Le(!0)},ze=(pt="annotated")=>{ct(pt),a(!1),Le(!1),Ve(!0)},Ge=()=>{le!=null&&le.total_verified_images_count?ze("verified"):ze("annotated")},dt=pt=>{t("annotate"),n(pt),ot(pt)},qe=pt=>{typeof t=="function"&&t("edit"),typeof n=="function"&&n("Normal"),typeof ot=="function"&&ot("Normal")},ft=()=>{if(Fe=="Normal"){if(!p2.isSAMAllowed(le==null?void 0:le.awi_annotation_type,le==null?void 0:le.awi_request_for))return;dt("SAM")}else dt("Normal")},Nt=()=>{k&&s||typeof a=="function"&&a(pt=>!pt)};O.useEffect(()=>{o&&ot(o)},[o]);const Kt=pt=>{i&&typeof i=="function"&&i(pt,!0)},sn=()=>{xe(!de)},Nn=()=>{Oe(!Ie)};return ve&&we?null:we?Z.jsx(Z.Fragment,{children:Z.jsx(Id,{toggleSelectAnnotation:P,handleLeftKeyDown:T,handleRightKeyDown:N,handleUpKeyDown:F,handleDownKeyDown:j,handleZoomInClick:u,handleZoomOutClick:g,handleCompleteAnnotation:m,undoAnnotationPoint:z,reLoadAndReDrawAnnotations:H,togglePagination:R,toggleFullscreen:v,switchToAutoAnnotations:ft,openShortCutRequestDetails:Nt,handleRecentAnnotatedVerifiedImages:Ge,samAPIactive:w,request:le,handleSendToSamFunctionPrompt:M,switchToEditMode:$,switchToCreateMode:W,goToNextImage:q,goToPreviousImage:K,handleGoToPendingAnnotations:U,handleCopyByCtrlC:G,handlePasteAnnotationsByControlV:J,openShortCutKeyModal:tt,setOpenShortCutKeyModal:Qe,setIsAltViaToolPressHandle:sn,isCarousel:we,selectedTool:Fe,setCrossHairHandle:Nn,loggedUser:ee,controlMinusHotkey:ne,controlPlusHotkey:fe})}):Z.jsxs("div",{style:{...D||ge==="library"?{width:"100%",height:"40px"}:{height:"100%",width:"100%",maxHeight:"100%"},overflow:"auto"},children:[Z.jsx(Z.Fragment,{children:Z.jsx(Id,{toggleSelectAnnotation:P,handleLeftKeyDown:T,handleRightKeyDown:N,handleUpKeyDown:F,handleDownKeyDown:j,handleZoomInClick:u,handleZoomOutClick:g,handleCompleteAnnotation:m,undoAnnotationPoint:z,reLoadAndReDrawAnnotations:H,togglePagination:R,toggleFullscreen:v,switchToAutoAnnotations:ft,openShortCutRequestDetails:Nt,handleRecentAnnotatedVerifiedImages:Ge,samAPIactive:w,request:le,handleSendToSamFunctionPrompt:M,switchToEditMode:$,switchToCreateMode:W,goToNextImage:q,goToPreviousImage:K,handleGoToPendingAnnotations:U,handleCopyByCtrlC:G,handlePasteAnnotationsByControlV:J,openShortCutKeyModal:tt,setOpenShortCutKeyModal:Qe,setIsAltViaToolPressHandle:sn,selectedTool:Fe,setCrossHairHandle:Nn,loggedUser:ee,isCarousel:we,controlMinusHotkey:ne,controlPlusHotkey:fe})}),Z.jsxs("div",{className:Sn.annotation__tool__icons,style:{display:"flex",justifyContent:D?"center":"space-between",flexDirection:D?"row":"column",backgroundColor:"#fff",width:D?"100%":"auto",...D||ge=="library"?{maxWidth:"100%",overflowX:"auto",gap:"20px"}:{height:"100%"}},children:[Z.jsxs("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:[(le==null?void 0:le.awi_request_for)!="attributes"?Z.jsx("div",{className:qn({[Sn.annotation__tool__icons__selected]:!e},Sn.annotationIconDiv,"cursor-pointer"),onClick:()=>{typeof t=="function"&&t("annotate")},title:e?"Create to change from edit to create mode":"Create to start create mode",children:(le==null?void 0:le.awi_annotation_type)&&((Yt=le==null?void 0:le.awi_annotation_type)==null?void 0:Yt.length)>0&&Z.jsx("img",{src:v_(le==null?void 0:le.awi_annotation_type),alt:"annotation tool",title:"Annotate - keyboard(Q)",className:Sn.annotationIcon})}):Z.jsx("div",{className:Sn.annotationIconDiv,children:(le==null?void 0:le.awi_annotation_type)&&((An=le==null?void 0:le.awi_annotation_type)==null?void 0:An.length)>0&&Z.jsx("img",{src:v_(le==null?void 0:le.awi_annotation_type),alt:"annotation tool",title:"Annotate - keyboard(Q)",className:Sn.annotationIcon})}),r&&Z.jsx("div",{className:qn({[Sn.annotation__tool__icons__selected]:e},Sn.annotationIconDiv,"cursor-pointer"),onClick:()=>qe(),title:"Edit - keyboard(E)",children:Z.jsx("img",{src:q1.editIcon.IconComponent,alt:"Edit",className:Sn.annotationIcon})}),Z.jsx("div",{className:qn({[Sn.annotation__tool__icons__selected]:oe},Sn.annotationIconDiv,"cursor-pointer"),onClick:()=>se(!oe),title:"Control",children:Z.jsx("img",{src:q1.controlIcon.IconComponent,alt:"Control",className:Sn.annotationIcon})}),Z.jsx("div",{className:qn({[Sn.annotation__tool__icons__selected]:de},Sn.annotationIconDiv,"cursor-pointer"),onClick:()=>xe(!de),title:"Alt press / Panning mode",children:Z.jsx("img",{src:q1.moveIcon.IconComponent,alt:"Alt",className:Sn.annotationIcon})}),Z.jsx("div",{className:qn({[Sn.annotation__tool__icons__selected]:Ie},Sn.annotationIconDiv,"cursor-pointer"),onClick:()=>Oe(!Ie),title:"Cross Hair",children:Z.jsx("img",{src:q1.crosshairIcon.IconComponent,alt:"Cross Hair",className:Sn.annotationIcon})}),!e&&(le==null?void 0:le.awi_annotation_type)==="polygon"&&(le==null?void 0:le.awi_request_for)!="attributes"&&S.length>2?Z.jsx("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:Z.jsx("div",{onClick:m,title:"Click to complete your polygon annotation",className:Sn.annotationIconDiv,children:Z.jsx("img",{src:q1.filledTickIcon.IconComponent,className:Sn.annotationIcon})})}):Z.jsx(Z.Fragment,{children:(le==null?void 0:le.awi_annotation_type)==="polygon"&&Z.jsx("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:Z.jsx("div",{title:"Works for create mode with minimum 3 coordinates",className:Sn.annotationIconDiv,style:{cursor:"not-allowed !important",opacity:"0.5"},children:Z.jsx("img",{src:q1.filledTickIcon.IconComponent,className:qn(Sn.annotationIcon,"not-allowed-pointer")})})})}),Z.jsx("div",{className:Sn.partitionLine})]}),Z.jsxs("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:[Z.jsx("div",{className:Sn.annotationIconDiv,children:Z.jsxs("div",{onClick:((_n=p==null?void 0:p.past_coords)==null?void 0:_n.length)>0&&e&&A!=="-1"?x:void 0,title:((Qt=p==null?void 0:p.past_coords)==null?void 0:Qt.length)>0&&e&&A!=="-1"?"Click to revert annotation":"No undo available",style:{width:"1.8rem",height:"1.8rem",position:"relative",cursor:((kt=p==null?void 0:p.past_coords)==null?void 0:kt.length)>0&&e&&A!=="-1"?"pointer":"not-allowed",opacity:((Ht=p==null?void 0:p.past_coords)==null?void 0:Ht.length)>0&&e&&A!=="-1"?1:.5,pointerEvents:((xt=p==null?void 0:p.past_coords)==null?void 0:xt.length)>0&&e&&A!=="-1"?"auto":"none"},children:[Z.jsx("img",{src:q1.undoAnnotationIcon.IconComponent,alt:"Undo",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"0.25rem"}}),((Zt=p==null?void 0:p.past_coords)==null?void 0:Zt.length)>0&&e&&A!=="-1"&&Z.jsx("div",{className:Sn.undoAnnotationCount,children:p.past_coords.length})]})}),Z.jsx("div",{className:Sn.annotationIconDiv,children:Z.jsx("img",{onClick:u,src:q1.zoomInIcon.IconComponent,className:`cursor-pointer ${d.scale===BJ?"cursor-pointer-disable":""} ${Sn.annotationIcon}`,title:"Zoom in - Keyboard(I)"})}),Z.jsx("div",{className:Sn.annotationIconDiv,children:Z.jsx("div",{onClick:h,title:`Click to Reset Zoom ${d.scale.toFixed(1)} to default`,className:Sn.annotationIcon,style:{fontSize:"12px",justifyContent:"center",display:"flex"},children:d.scale.toFixed(1)})}),Z.jsx("div",{className:Sn.annotationIconDiv,children:Z.jsx("img",{onClick:g,src:q1.zoomOutIcon.IconComponent,className:`cursor-pointer ${d.scale===1?"cursor-pointer-disable":""} ${Sn.annotationIcon}`,title:"Zoom out - Keyboard(O)"})}),Z.jsx("div",{onClick:()=>v(),className:Sn.annotationIconDiv,style:{display:"flex",alignItems:"center",justifyContent:"center"},title:"Toggle Fullscreen - Keyboard(F)",id:"toggle_full_screen",children:Z.jsx("img",{src:q1.toggleFullscreenIcon.IconComponent,className:Sn.annotationIcon})}),Z.jsx("div",{className:Sn.partitionLine})]}),Z.jsxs("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:[et=="yes"&&p2.isSAMAllowed(le==null?void 0:le.awi_annotation_type,le==null?void 0:le.awi_request_for)&&Z.jsx("div",{style:{display:"flex",alignItems:"center"},title:"AI tools - keyboard(S)",children:Z.jsxs("label",{className:Sn.switch,style:{marginLeft:"4px",width:"30px important"},children:[Z.jsx("input",{type:"checkbox",checked:Fe==="SAM",onChange:()=>{dt(Fe==="SAM"?"Normal":"SAM")}}),Z.jsx("span",{className:qn(Sn.slider,Sn.round)})]})}),p2.isSAMAllowed(le==null?void 0:le.awi_annotation_type,le==null?void 0:le.awi_request_for)&&Z.jsxs("div",{className:qn({"disabled-class":!y}),style:{justifyContent:"space-between",display:"flex",flexDirection:D?"row":"column",gap:"15px"},children:[(le==null?void 0:le.awi_annotation_type)&&(le==null?void 0:le.awi_annotation_type)!="dot"&&Z.jsx("div",{onClick:()=>{!w&&(S!=null&&S.length)&&E()},className:qn({"disabled-class":!y||w||!(S!=null&&S.length)},Sn.annotationIconDiv,"cursor-pointer"),style:{pointerEvents:w||!y?"none":"auto",opacity:w||!y?.5:1},children:Z.jsx("img",{src:q1.pointAnnotationIcon.IconComponent,title:"Mark some points and then click here and get the power of AI auto annotation",className:Sn.annotationIcon})}),Z.jsx("div",{onClick:w?void 0:M,style:{pointerEvents:w||!y?"none":"auto",opacity:w||!y?.5:1},title:"Give your prompt and get the power of AI auto annotation",className:Sn.annotationIconDiv,children:Z.jsx("img",{src:q1.promptAnnotationIcon.IconComponent,title:"auto annotation prompt - keyboard(X)",className:Sn.annotationIcon})})]}),Z.jsx("div",{onClick:H,title:"Click to refetch saved annotations, hard reset",className:Sn.annotationIconDiv,children:Z.jsx("img",{src:q1.refetchAnnotationIcon.IconComponent,title:"Refetch annotations (Hard Reset) - keyboard(R)",className:Sn.annotationIcon})}),Z.jsx("div",{style:{width:"53%",height:"2px",backgroundColor:"#e4e0e6",margin:"8px auto"}})]}),Z.jsx("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:Z.jsx("div",{onClick:()=>{typeof a=="function"&&a(pt=>!pt)},title:"View details - keyboard(V)",className:Sn.annotationIconDiv,children:Z.jsx("img",{src:q1.guidelinesIcon.IconComponent,alt:"info",style:{height:"30px !important",width:"30px !important",cursor:"pointer"}})})}),Z.jsx("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:Z.jsx("div",{children:Z.jsx("img",{src:q1.keyboardShortcutsIcon.IconComponent,title:"See short-cut keys",className:"cursor-pointer",width:"30px",onClick:()=>Qe(pt=>!pt)})})}),Z.jsx("div",{className:Sn.annotationIconPartition,style:D?{flexDirection:"row",padding:"0"}:{flexDirection:"column"},children:Z.jsx("div",{onClick:R,children:Z.jsx("img",{src:q1.transparentBlackIcon.IconComponent,style:{height:"24px",width:" 24px",cursor:"pointer"},alt:"Previous",title:Y?"Hide Pagination":"Show Pagination"})})})]}),s&&_e&&Z.jsx(_e,{request:le,handleReferenceImageClick:Ue,handleRecentAnnotatedImages:ze,show_guidelines_first:c,setOpenRequestDetails:a,classColorMapToSend:he}),s&&_e&&Z.jsx("div",{className:qn(Sn.backdrop),onClick:()=>{c||typeof a=="function"&&a(!1)}}),s&&Z.jsx("div",{className:qn(Sn.backdrop),onClick:()=>{k||typeof a=="function"&&a(!1)}}),pe&&Se&&Z.jsx(Z.Fragment,{children:Z.jsx(pe,{handleToggleCarousel:()=>Le(!1),requestName:(le==null?void 0:le.awi_label)||"",showAnnotationType:"all",requestId:(ae==null?void 0:ae.awi_id)||(le==null?void 0:le.awi_id),imageKeys:((Cn=ae==null?void 0:ae.awi_reference_images)==null?void 0:Cn.awi_ids)||((mt=le==null?void 0:le.awi_reference_images)==null?void 0:mt.awi_ids)||[],awi_reference_image:!0,defaultAnnotationMode:"display_annotations",allowedToCopy:!0,copyCallBack:Kt})}),Se&&Z.jsx("div",{className:qn(Sn.backdrop,Sn.backdrop__transparent),onClick:()=>Le(!1)}),pe&&Be&&Z.jsx(Z.Fragment,{children:Z.jsx(pe,{handleToggleCarousel:()=>Ve(!1),requestName:(le==null?void 0:le.awi_label)||"",showAnnotationType:"all",requestId:(ae==null?void 0:ae.awi_id)||(le==null?void 0:le.awi_id),awi_reference_image:!1,contentAnnotationType:Ke||"annotated",primaryLimit:LJ,defaultAnnotationMode:"display_annotations",allowedToCopy:!0,copyCallBack:Kt})})]})},sc={canvas:"_canvas_145op_1",canvasContainer:"_canvasContainer_145op_9",canvasSubContainer:"_canvasSubContainer_145op_18"},lc=({canvasDimensions:e,zoomProperties:t,isEditing:n,canvasRef:r,bgCanvasRef:o,overlayCanvasRef:i,handleMouseDown:a,handleMouseUp:s,handleMouseMove:c,handleMouseMoveOut:u,handleOnMouseLeave:d,handleWheel:h,handleTouchStart:g,handleTouchMove:m,handleTouchEnd:v,handleTouchCancel:A})=>Z.jsxs("div",{className:sc.canvasSubContainer,style:{display:"flex",flexDirection:"row",width:e.width,height:e.height,position:"relative"},children:[Z.jsx("canvas",{ref:o,className:sc.bgCanvas,style:{position:"absolute",top:0,left:0,width:`${e.width*t.scale}px`,height:`${e.height*t.scale}px`,zIndex:0,pointerEvents:"none"}}),Z.jsx("canvas",{ref:r,className:sc.canvas,style:{position:"absolute",top:0,left:0,width:`${e.width*t.scale}px`,height:`${e.height*t.scale}px`,cursor:n?"default":"crosshair",transformOrigin:"top left",transform:`translate(${t.x}px, ${t.y}px)`},onMouseDown:a,onMouseUp:s,onMouseMove:c,onMouseOut:u,onMouseLeave:d,onWheel:h,onTouchStart:g,onTouchMove:m,onTouchEnd:v,onTouchCancel:A}),Z.jsx("canvas",{ref:i,className:sc.overlayCanvas,style:{position:"absolute",top:0,left:0,width:`${e.width*t.scale}px`,height:`${e.height*t.scale}px`,pointerEvents:"none",zIndex:2,transformOrigin:"top left",transform:`translate(${t.x}px, ${t.y}px)`}})]}),kJ=1e-5,OJ=.99999,IJ=.001,DJ=.005,cc=(e,t)=>e/(t||1),A_=(e,t,n,r)=>Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2)),Dd=(e,t,n)=>(t.x-e.x)*(n.y-e.y)-(n.x-e.x)*(t.y-e.y),PJ=e=>{let t=1/0,n=1/0,r=-1/0,o=-1/0;return e.forEach(({x:i,y:a})=>{t=Math.min(t,i),n=Math.min(n,a),r=Math.max(r,i),o=Math.max(o,a)}),{minX:t,minY:n,maxX:r,maxY:o}},Pd=(e,t,n=0)=>{let r=0;for(let o=0;o<(t==null?void 0:t.length)-1;o++){const i=t[o],a=t[o+1];i.y<=e.y+n?a.y>e.y+n&&Dd(i,a,e)>0&&r++:a.y<=e.y-n&&Dd(i,a,e)<0&&r--}return r},Nd=e=>(e==null?void 0:e.length)<2?0:Math.sqrt(Math.pow(Math.abs(e[0].x-e[1].x),2)+Math.pow(Math.abs(e[0].y-e[1].y),2));function NJ(e,t,n=0){const r=Math.min(...t.map(u=>u.x)),o=Math.max(...t.map(u=>u.x)),i=Math.min(...t.map(u=>u.y)),a=Math.max(...t.map(u=>u.y)),{x:s,y:c}=e;return s>=r-n&&s<=o+n&&c>=i-n&&c<=a+n}const TJ=(e,t,n,r,o,i,a=1)=>{if(!(n!=null&&n.length))return!1;let s,c,u,d,h=!1;switch(i==null?void 0:i.awi_annotation_type){case"rectangle":h=NJ({x:e,y:t},n,r);break;case"polygon":h=Pd({x:e,y:t},n,r)!==0;break;case"circle":s=Nd(n)/2,c=(n[0].x+r+(n[1].x-o))/2,u=(n[0].y+n[1].y)/2,d=(e-c)*(e-c)+(t-u)*(t-u),d<s*s?h=!0:h=!1;break;case"dot":s=cc(.015,a),c=(n[0].x+r+(n[0].x-o))/2,u=(n[0].y+n[0].y)/2,d=(e-c)*(e-c)+(t-u)*(t-u),d<s*s?h=!0:h=!1;break;default:h=Pd({x:e,y:t},n,r)!==0}return h},RJ=e=>!(!e||e.x>1||e.x<0||e.y1>1||e.y<0),FJ=e=>{if((e==null?void 0:e.length)<3)return!1;for(let t=0;t<e.length;t++)if(!RJ(e[t]))return!1;return!0},zJ=(e,t,n=!1,r=1)=>{var a,s,c,u;const o=e==null?void 0:e.awi_annotation_type;let i=!1;switch(o){case"rectangle":const d=cc(IJ,r);(t==null?void 0:t.length)>3&&Math.abs(((a=t[0])==null?void 0:a.x)-((s=t[1])==null?void 0:s.x))>d&&Math.abs(((c=t[1])==null?void 0:c.y)-((u=t[3])==null?void 0:u.y))>d&&(i=!0);break;case"circle":const h=cc(DJ,r);Nd(t)>h&&(i=!0);break;case"polygon":i=FJ(t);break;case"dot":i=!0;break;default:n&&(i=!0);break}return i},b_=(e,t,n,r,o,i)=>{const a=e-n,s=t-r,c=o-n,u=i-r,d=a*c+s*u,h=c*c+u*u,g=h!==0?d/h:-1;let m,v;g<0?(m=n,v=r):g>1?(m=o,v=i):(m=n+g*c,v=r+g*u);const A=e-m,p=t-v;return Math.sqrt(A*A+p*p)},jJ=(e,t,n)=>{let r=1/0,o=-1;for(let i=0;i<(e==null?void 0:e.length);i++){const a=(i+1)%e.length,{x:s,y:c}=e[i],{x:u,y:d}=e[a],h=b_(t,n,s,c,u,d);h<r&&(r=h,o=a)}return{insertIndex:o,minDistance:r}},__=(e,t)=>t===0?e:__(t,e%t),VJ=(e,t,n,r)=>(e>0&&(e=0),Math.abs(e)>n&&(e=-1*n),Math.abs(t)>r&&(t=-1*r),t>0&&(t=0),{newXTransform:e,newYTransform:t}),ZJ=function(e){console.log("getBoundingBox called");const t=Math.min(...e.map(i=>i.x)),n=Math.max(...e.map(i=>i.x)),r=Math.min(...e.map(i=>i.y)),o=Math.max(...e.map(i=>i.y));return[{x:t,y:r},{x:n,y:r},{x:n,y:o},{x:t,y:o}]};function UJ(e,t,n){return Math.min(n,Math.max(t,e))}function $J(e,t=.05,n=null){const r=Math.min(...e.map(h=>h.x)),o=Math.max(...e.map(h=>h.x)),i=Math.min(...e.map(h=>h.y)),a=Math.max(...e.map(h=>h.y)),s=o-r,c=a-i;let u,d;if(n&&(n==null?void 0:n.x)>=0&&(n==null?void 0:n.y)>=0){const h=n.x,g=n.y;u=Math.max(-r,Math.min(1-o,h-(r+s/2))),d=Math.max(-i,Math.min(1-a,g-(i+c/2)))}else u=Math.max(-r,Math.min(1-o,(Math.random()*2-1)*t)),d=Math.max(-i,Math.min(1-a,(Math.random()*2-1)*t));return e.map(h=>({x:h.x+u,y:h.y+d}))}function WJ(e){const t=Math.min(...e.map(s=>s.x)),n=Math.max(...e.map(s=>s.x)),r=Math.min(...e.map(s=>s.y)),o=Math.max(...e.map(s=>s.y));return y_([{x:t,y:r},{x:n,y:o}])}function KJ(e){const t=Math.min(...e.map(s=>s.x)),n=Math.max(...e.map(s=>s.x)),r=Math.min(...e.map(s=>s.y)),o=Math.max(...e.map(s=>s.y)),i=(t+n)/2,a=(r+o)/2;return[{x:i,y:a}]}const Td=(e,t)=>(e.x-t.x)**2+(e.y-t.y)**2,QJ=(e,t,n)=>{const r=Td(t,n);if(r===0)return Td(e,t);let o=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;o=Math.max(0,Math.min(1,o));const i={x:t.x+o*(n.x-t.x),y:t.y+o*(n.y-t.y)};return Td(e,i)},GJ=(e,t)=>{let n=1/0;for(let r=0;r<(t==null?void 0:t.length);r++){const o=t[r],i=t[(r+1)%t.length],a=QJ(e,o,i);n=Math.min(n,a)}return Math.sqrt(n)},YJ=(e,t)=>{let n=1/0,r=-1;for(let o=0;o<(t==null?void 0:t.length);o++){const i=t[o],a=A_(e.x,e.y,i.x,i.y);if(a<n){const s=o%t.length;n=a,r=s}}return{minDistance:n,insertIndex:r}},Rd=(e=0)=>(e<=0?e=kJ:e>=1&&(e=OJ),e),qJ=e=>e.map(n=>({x:Rd(n.x),y:Rd(n.y)})),XJ=e=>{const t=new Set,n=[];for(let r=0;r<e.length;r++){const o=`${e[r].x},${e[r].y}`;t.has(o)||(t.add(o),n.push(e[r]))}return n.length>0&&n.push(n[0]),n},JJ=e=>{let t=0;for(let n=0;n<e.length;n++)if(e[n].x<=0){t=t+1;continue}else if(e[n].y<=0){t=t+1;continue}else if(e[n].x>=1){t=t+1;continue}else if(e[n].y>=1){t=t+1;continue}return t};function eee(e){const t=Math.min(...e.map(s=>s.x)),n=Math.min(...e.map(s=>s.y)),r=Math.max(...e.map(s=>s.x)),o=Math.max(...e.map(s=>s.y)),i=t<0?-t:r>1?1-r:0,a=n<0?-n:o>1?1-o:0;return e.map(({x:s,y:c})=>({x:s+i,y:c+a}))}const tee=(e,t)=>{const n=(e.x+t.x)/2,r=(e.y+t.y)/2,o=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)/2,i=Math.min(n,1-n),a=Math.min(r,1-r),s=Math.min(o,i,a),c=Math.atan2(t.y-e.y,t.x-e.x),u={x:n-s*Math.cos(c),y:r-s*Math.sin(c)},d={x:n+s*Math.cos(c),y:r+s*Math.sin(c)};return[u,d]},nee=(e,t)=>{const n=(e[0].x+e[1].x)/2,r=t,i=Math.sqrt(Math.pow(e[1].x-e[0].x,2))/2;let a=0;return n-i<0?a=i-n:n+i>1&&(a=1-(n+i)),e[0].x+=a,e[1].x+=a,e[0].y=r,e[1].y=r,e},y_=e=>{e=tee(e[0],e[1]);const t=(e[0].x+e[1].x)/2,n=(e[0].y+e[1].y)/2,o=Math.sqrt(Math.pow(e[1].x-e[0].x,2)+Math.pow(e[1].y-e[0].y,2))/2;let i=0;t-o<0?i=o-t:t+o>1&&(i=1-(t+o));let a=0;return n-o<0?a=o-n:n+o>1&&(a=1-(n+o)),e[0].x+=i,e[0].y+=a,e[1].x+=i,e[1].y+=a,nee(e,n)},ree=(e,t,n)=>{let{x:r,y:o}=w_(e.current,t);const i=n;r=Math.min(r,1),o=Math.min(o,1);const a=r-i.x,s=o-i.y;let c=[];return a===0||s===0?c=[{x:i.x,y:i.y},{x:i.x,y:i.y},{x:i.x,y:i.y},{x:i.x,y:i.y}]:a>0&&s>0?c=[{x:i.x,y:i.y},{x:r,y:i.y},{x:r,y:o},{x:i.x,y:o}]:a>0&&s<0?c=[{x:i.x,y:o},{x:r,y:o},{x:r,y:i.y},{x:i.x,y:i.y}]:a<0&&s>0?c=[{x:r,y:i.y},{x:i.x,y:i.y},{x:i.x,y:o},{x:r,y:o}]:c=[{x:r,y:o},{x:i.x,y:o},{x:i.x,y:i.y},{x:r,y:i.y}],c},w_=(e,t)=>{if(!e)return{x:0,y:0};const n=e.getBoundingClientRect();return{x:(t.clientX-n.left)/(n.right-n.left),y:(t.clientY-n.top)/(n.bottom-n.top)}},kn={gcd:__,getDistance:A_,isLeft:Dd,windingNumber:Pd,getDiameter:Nd,checkPointInsidePolygon:TJ,isAnnotationCoordinatesValid:zJ,distanceToSegment:b_,findClosestSegment:jJ,transformCoordinatesCheck:VJ,getBoundingBox:ZJ,translateCoordinatesWithFixedWidth:$J,clampValue:UJ,calculateCircleFromCoordinates:WJ,calculateCentroid:KJ,minDistanceToPolygon:GJ,closestCoordinates:YJ,fineTuneCoordinates:qJ,zoomLevelValue:cc,createPolygonLoop:XJ,breakPointCount:JJ,getBoundingBoxValues:PJ,shiftPolygon:eee,getPerfectPointValue:Rd,adjustToCircle:y_,getMousePos:w_,getMousePosAbsolute:(e,t)=>{if(!e)return{x:0,y:0};const n=e.getBoundingClientRect(),r={x:(t.clientX-n.left)/(n.right-n.left),y:(t.clientY-n.top)/(n.bottom-n.top)};return r.x<=0&&(r.x=1e-4),r.y<=0&&(r.y=1e-4),r.x>=1&&(r.x=1-1e-4),r.y>=1&&(r.y=1-1e-4),r},getUpdatedCoordinates:ree},oee=({imageUrl:e,showAnnotations:t=!1,createAnnotation:n,handleMultipleAnnotations:r,handleUpdateAnnotationCoordinates:o,content_id:i,request_id:a,className:s="",isEditing:c=!1,selectIndex:u="-1",handleSelectAnnotationIndex:d,handleSelectTool:h,showAnnotationType:g="all",loggedUser:m,isCarousel:v=!1,classColorMap:A=null,disableAnnotation:p=!1,SAMToggle:x,imageNumber:y=0,togglePagination:w,handleSAMToggle:E,unSelectedAnnotationIDsSet:S=new Set,setMousePosition:M,allowedToCopyPreview:H=!1,copyCallBackHandler:k,annotationSession:D,SAMToggleValue:P,selectedSAMTool:T,handleCopyAnnotations:N,setOpenRequestDetails:F,openRequestDetails:j,handleNextPage:z,handlePreviousPage:R,currentPage:$,handleUpdateImageIndex:W,requestId:q,showPagination:K,isAnnotationCreating:U,contentInfo:G,content_key:J,isAnnotationUpdating:Y,isDeleteAnnotationMutationLoading:ee,showGuidelinesFirst:oe,currentImage:de=0,selectedContent:se=null,switchToEditMode:xe,switchToCreateMode:we,goToNextImage:ve,goToPreviousImage:he,handleGoToPendingAnnotations:le,handlePasteAnnotationsByControlV:ae,annotationsResponse:_e,isAnnotationFetching:Oe,fetchAnnotationsKey:Ie,request:ge,parentReqData:et,clearAnnotationCache:fe,RequestInfoModal:ne,getAnnotationFromSAM:pe,getAnnotationsFromSAMPrompt:Se,fetchAnnotations:Le,pageCount:Be=10,annotationViewType:Ve="atom",AnnotationPagination:Ke,REACT_APP_SAM_ENABLED:ct="no",ImageGenerationHelper:tt=qb,fallbackImageUrl:Qe,activeColor:Fe,Carousel:ot,showTool:Ue=!0})=>{var Si,h9,f,b,B,V,X,ie,De,Je,rt,Bt,on,Pn,Yn,g0;const ze=km().isCtrlPressedFunc,Ge=km().isAltPressedFunc,[dt,qe]=O.useState(!1),[ft,Nt]=O.useState(!1),Kt=.007,sn=.03,Nn=.01,Yt=.005,An=.005,_n=.7,Qt=.005,kt=.005,Ht=.003,xt=.01,Zt="#40ff00",Cn="#fff",mt="#FFFF00",pt="red",Lt="rgba(0, 255, 255, 1)",Xe="rgba(0, 255, 255, 0.5)",Vt="#FF3131",Ae=4,it=5,$e={DEFAULT:1.5,SELECTED:4.5,CAROUSAL:2.5,CIRCLE:2},_t=O.useRef(""),Ye=O.useRef(null),Et=O.useRef(null),Ot=O.useRef(null),zt=Yv(),[Mn,At]=O.useState(!1),[bt,Tt]=O.useState(!1),[nt,Rt]=O.useState([]),[Ut,_1]=O.useState(),[O1,l1]=O.useState(),[e1,Kn]=O.useState({x:-1,y:-1}),[y1,Q1]=O.useState(-1),[tn,Hn]=O.useState({x:0,y:0}),[Pt,un]=O.useState(u),[Vn,T1]=O.useState("-1"),[r1,w1]=O.useState([]),[mn,$t]=O.useState(!1),[yn,Ln]=O.useState(null),[yt,Dt]=O.useState({width:0,height:0}),Ft=B1.INITIAL_ZOOM_PROPERTIES,[at,pn]=O.useState(Ft),[Tn,R1]=O.useState(!1),[u1,u0]=O.useState(!1),[fn,wn]=O.useState(-1),[rn,jt]=O.useState(!1),qt=B1.INITIAL_ZOOM_LEVEL,Qn=12,Gn=yt.width*qt,H1=O.useRef(null),[bn,Hr]=O.useState(_e),[Fn,ir]=O.useState(),[vn,hn]=O.useState([]),[In,I1]=O.useState(null),a0=B1.SAM_MODEL_NAME,L1=B1.SAM_MODEL_CONFIDENCE,J2=B1.SAM_MODEL_MAX_RESULTS,[Ur,zn]=O.useState(!1),[t1,ci]=O.useState(-1),[h3,o9]=O.useState(null),[eo,i9]=O.useState(null),[g3,C3]=O.useState(null),[C1,R0]=O.useState({modelName:"",modelConfidence:0,modelMaxResults:0,promptMessage:""}),[vr,Lr]=O.useState(null),[ui,a9]=O.useState(!1),[y0,W5]=O.useState({x:-1,y:-1}),[l2,K5]=O.useState({left:0,right:0,top:0,bottom:0}),[$r,s9]=O.useState(null),[c2,d0]=O.useState(""),Q5={SELECT:2e3,NOT_SELECT:500},[A0,to]=O.useState(""),di=window.devicePixelRatio,[j1,fi]=O.useState(window.innerWidth<768*di),[m3,e0]=O.useState(window.innerWidth<1200*di),Ar=O.useRef(null),hi=O.useRef(null),[G5,gi]=O.useState(!1);O.useEffect(()=>{const be=()=>{fi(window.innerWidth<768*di),e0(window.innerWidth<1200*di)};return window.addEventListener("resize",be),()=>window.removeEventListener("resize",be)},[]),O.useEffect(()=>{G5&&ha()},[G5,at,yt]),O.useEffect(()=>{if(!c2){hi.current=null,gi(!1);return}const be=new window.Image;be.onload=()=>{hi.current=be,gi(!0)},be.src=c2},[c2]),O.useEffect(()=>(ht(nt),vi(),()=>{$r&&clearTimeout($r)}),[Vn]),O.useEffect(()=>{v||document.fullscreenElement||ki.getItem("full_screen")=="yes"&&d2(!1),window.addEventListener("resize",Ir)},[]),O.useEffect(()=>{console.log("Change"),Rt([]),ia(),setTimeout(()=>{ht()},50)},[c]),O.useEffect(()=>{A&&ht(nt)},[A]),O.useEffect(()=>{i&&(i==null?void 0:i.length)>0&&r0()},[i]),O.useEffect(()=>{Hr(_e||null)},[_e,i]),O.useEffect(()=>{if(e){const be=tt.generateImageUrl(tt.getImageKitUrl(e,-1,-1,-1));br(be)}Rt([])},[e]),O.useEffect(()=>{c2&&(_t.current=c2,D1())},[c2]),O.useEffect(()=>{_t.current&&Ir()},[_t.current,c2]),O.useEffect(()=>{x=="SAM"?R1(!0):R1(!1),Y5()},[x]),O.useEffect(()=>{at.scale==1&&(at.x!=0||at.y!=0)&&r0()},[at.scale]),O.useEffect(()=>{if(((bn==null?void 0:bn.result)||[]).length>=0){const{x:be,y:Ce}=kn.getMousePos(Ye.current,{clientX:Ut==null?void 0:Ut.x,clientY:Ut==null?void 0:Ut.y});D1(nt,{x:be,y:Ce})}},[yt,t,at.scale,Vn]),O.useEffect(()=>{ia(),((bn==null?void 0:bn.result)||[]).length>=0&&ht()},[r1,Pt]),O.useEffect(()=>{if(ge&&bn&&(bn!=null&&bn.result)&&((bn==null?void 0:bn.result)||[]).length>=0){ht(nt);const be={},Ce={};for(let Me=0;Me<bn.result.length;Me++)be[bn.result[Me].awi_id]={...bn.result[Me],index:Me},(ge==null?void 0:ge.awi_annotation_type)=="polygon"&&(Ce[bn.result[Me].awi_id]=kn.getBoundingBoxValues(bn.result[Me].awi_coords));i9(be),(ge==null?void 0:ge.awi_annotation_type)=="polygon"&&I1(Ce),(ge==null?void 0:ge.awi_request_for)=="attributes"&&bn.result.length>0&&u=="-1"&&typeof d=="function"&&setTimeout(()=>{d(bn.result[0].awi_id)},100)}else i9(null),I1(null);v3()},[ge,bn]),O.useEffect(()=>{v3()},[S]),O.useEffect(()=>{console.log("Filter annotation change"),D1(nt),setTimeout(()=>{D1(nt)},100)},[vn]),O.useEffect(()=>{u!=="-1"?typeof h=="function"&&(ge==null?void 0:ge.awi_request_for)!=="outline"&&h("edit"):w1([]),Tn&&typeof h=="function"&&un("-1"),un(u||"-1")},[u]),O.useEffect(()=>{v||y==0&&Tn!==void 0&&(Tn?V1.success("Switched to Auto Annotation mode"):ge!=null&&ge.awi_annotation_type&&V1.success(`Switched to ${ge==null?void 0:ge.awi_annotation_type} Annotation mode`))},[Tn]),O.useEffect(()=>{if(!M||typeof M!="function")return;Ai();const be=setTimeout(()=>{const{x:Ce,y:Me}=kn.getMousePosAbsolute(Ye.current,{clientX:Ut==null?void 0:Ut.x,clientY:Ut==null?void 0:Ut.y});M({x:Ce,y:Me})},30);return()=>clearTimeout(be)},[Ut]),O.useEffect(()=>{u1?Ai():yi(-1,-1)},[u1]),O.useEffect(()=>{u!="-1"&&eo&&ir(eo[u])},[u,eo]),O.useEffect(()=>{pi(),Ai()},[at,yt]);const El=be=>{const Ce=be.message;to(Ce)};O.useEffect(()=>{let be="";U?be="Creating Annotation...":ee?be="Deleting Annotation...":Y?be="Updating Annotation...":Oe?be="Fetching Annotations...":rn&&(be="Generating AI Annotations..."),El({message:be})},[U,Y,ee,Oe,rn]),O.useEffect(()=>{Ir()},[K]);const Ci=pe&&typeof pe=="function"?qv(pe):null,mi=Se&&typeof Se=="function"?qv(Se):null,Br=()=>!!(dt||ze()),ar=()=>!!(ft||Ge()),pi=()=>{const be=yt.width*at.scale,Ce=yt.height*at.scale;K5({left:Math.abs(at.x),right:Math.max(0,be-yt.width+at.x),top:Math.abs(at.y),bottom:Math.max(0,Ce-yt.height+at.y)})},oa=O.useMemo(()=>{const be=(bn==null?void 0:bn.result)||[];if(be.length>0&&Pt!=="-1"){let Ce=null,Me=null;const Re=be.reduce((Pe,ut)=>{const{awi_id:wt}=ut;return wt===Pt?Ce=ut:wt===Vn?Me=ut:S.has(wt)||Pe.push(ut),Pe},[]);return Me&&Re.push(Me),Ce&&Re.push(Ce),Re}else return vn},[Pt,Vn,vn]),br=async be=>{Hv.checkImageValidity(be,d0,i,Ve,Qe)},ia=()=>{Vn!="-1"&&($r&&clearTimeout($r),T1("-1"))},vi=()=>{if(Vn!=="-1")if(Pt=="-1"||B1.HOVER_TO_SELECT_ON_ALREADY_SELECTED){const be=Pt=="-1"?Q5.NOT_SELECT:Q5.SELECT;$r&&clearTimeout($r);const Ce=setTimeout(()=>{c&&Vn!="-1"&&Pt!=Vn&&(Pt=="-1"&&mn?vi():typeof d=="function"&&(d(Vn),V1.success("Annotation selected successfully",Vn)))},be);s9(Ce)}else $r&&clearTimeout($r);else $r&&clearTimeout($r)},Ai=()=>{const be=Et.current;if(!be)return;const Ce=yt.width*at.scale,Me=yt.height*at.scale;if(be.width=Ce,be.height=Me,u1){const{x:Re,y:Pe}=kn.getMousePosAbsolute(Et.current,{clientX:Ut==null?void 0:Ut.x,clientY:Ut==null?void 0:Ut.y});yi(Re,Pe)}},kr=()=>{Rt([])},bi=(be=!1)=>{zt.invalidateQueries(Ie),be&&Rt([])},Or=be=>{var Ce;if(eo&&eo[be])if(c){const Me=eo[be].index,Re=bn==null?void 0:bn.result[Me];return Re||((Ce=bn==null?void 0:bn.result)==null?void 0:Ce.find(Pe=>Pe.awi_id==be))}else return eo[be];else return null},p3=be=>g3&&g3[be]?g3[be].index:-1,Y5=()=>{nt.length>0&&(console.log("clearCoordinate"),Rt([]),D1([],{x:0,y:0},!0))},v3=()=>{if(ge&&((bn==null?void 0:bn.result)||[]).length>=0){let be=[];(S==null?void 0:S.size)>0?be=((bn==null?void 0:bn.result)||[]).filter(Me=>!S.has(Me.awi_id)):be=(bn==null?void 0:bn.result)||[];const Ce={};for(let Me=0;Me<be.length;Me++)Ce[be[Me].awi_id]={...be[Me],index:Me};C3(Ce),hn(be)}else hn([])},n1=be=>(j1&&(be=be*3),kn.zoomLevelValue(be,at.scale)),Wr=new Map,aa=be=>{try{if(!be)return Promise.resolve(B1.DEFAULT_CANVAS_RATION);if(Wr.has(be))return Wr.get(be);const Ce=new Promise((Me,Re)=>{const Pe=new Image;Pe.onload=()=>{const wt={w:Pe.width,h:Pe.height};Wr.set(be,Promise.resolve(wt)),Me(wt)},Pe.onerror=Re;const ut=tt.getImageKitUrl(be,-1,-1,1);ut&&(Pe.src=ut)});return Wr.set(be,Ce),Ce}catch(Ce){return console.error(Ce),Promise.resolve(B1.DEFAULT_CANVAS_RATION)}},Ir=async()=>{var be,Ce,Me,Re,Pe;if(console.log("updateDimensions called"),((be=_t.current)==null?void 0:be.length)>0){console.log("Canvas true");let ut=B1.DEFAULT_CANVAS_RATION;a9(!0);try{ut=await aa(_t.current)}catch(Wt){console.error("Error fetching image dimensions:",Wt,_t.current),ut=B1.DEFAULT_CANVAS_RATION}const wt=kn.gcd(ut.w,ut.h),Jt={w:ut.w/wt,h:ut.h/wt};let gn=0,gt=0;if(gt=((Ce=Ot.current)==null?void 0:Ce.offsetHeight)||0,gn=gt*Jt.w/Jt.h,gn>(((Me=Ot.current)==null?void 0:Me.offsetWidth)||0)&&(gn=((Re=Ot.current)==null?void 0:Re.offsetWidth)||0,gt=gn*Jt.h/Jt.w),(Ye==null?void 0:Ye.current)!=null&&(Ye.current.width=gn,Ye.current.height=gt,vr==null)){const Wt=(Pe=Ye.current)==null?void 0:Pe.getBoundingClientRect();Lr({left:Wt==null?void 0:Wt.left,top:Wt==null?void 0:Wt.top})}Dt({width:gn,height:gt}),a9(!1),D1(nt)}},no=O.useCallback((be,Ce,Me,Re,Pe,ut)=>kn.checkPointInsidePolygon(be,Ce,Me,Re,Pe,ut,at.scale),[]),D2=(be,Ce=!0)=>{const{x:Me,y:Re}=kn.getMousePos(Ye.current,be);let Pe="",ut=1/0;if(c&&_i(Me,Re))return[Pt];const wt=vn||[];if(!Ce&&(wt==null?void 0:wt.length)>B1.MAX_ANNOTATIONS_TO_HOVER)return[];switch(ge==null?void 0:ge.awi_annotation_type){case"circle":{wt.forEach(({awi_coords:Jt,awi_id:gn})=>{if(no(Me,Re,Jt,0,0,ge)){const gt=kn.minDistanceToPolygon({x:Me,y:Re},Jt);gt<ut&&(Pe=gn,ut=gt)}});break}case"dot":{const Jt=n1(An);wt.forEach(({awi_coords:gn,awi_id:gt})=>{if(no(Me,Re,gn,Jt,Jt,ge)){const Wt=kn.minDistanceToPolygon({x:Me,y:Re},gn);Wt<ut&&(Pe=gt,ut=Wt)}});break}case"rectangle":{const Jt=n1(Qt)/2;for(let gn=0;gn<wt.length;gn++){const{awi_coords:gt,awi_id:Wt}=wt[gn];if(no(Me,Re,gt,Jt,0,ge)){const E1=kn.minDistanceToPolygon({x:Me,y:Re},gt);E1<ut&&(Pe=Wt,ut=E1)}}break}case"polygon":{for(let Jt=0;Jt<wt.length;Jt++){const{awi_coords:gn,awi_id:gt}=wt[Jt];if(In){const Wt=In[gt];if(Wt){const{minX:E1,minY:ce,maxX:C0,maxY:F0}=Wt;if(Me<E1||Me>C0||Re<ce||Re>F0)continue}}if(no(Me,Re,gn,0,0,ge)){const Wt=kn.minDistanceToPolygon({x:Me,y:Re},gn);Wt<ut&&(Pe=gt,ut=Wt)}}break}default:console.warn(`Unknown annotation type: ${ge==null?void 0:ge.awi_annotation_type}`);break}return Pe&&Pe.length>0?(Ce&&un(Pe),[Pe]):(Ce&&(console.log("setSelectAnnotationId "),typeof d=="function"&&u!="-1"&&d("-1",!1)),[])},Sl=L4.throttle(D2,50),_i=(be,Ce)=>{const Me=Or(u);if(Me){const Re=Me.awi_coords;if((ge==null?void 0:ge.awi_annotation_type)=="polygon"){const Pe=kn.minDistanceToPolygon({x:be,y:Ce},Re),ut=n1(kt);return Pe<=ut}else if((ge==null?void 0:ge.awi_annotation_type)=="rectangle"){const{insertIndex:Pe,minDistance:ut}=kn.closestCoordinates({x:be,y:Ce},Re),wt=n1(kt);return console.log(Pe),ut<=wt}}else return!1},q5=(be,Ce)=>{const{x:Me,y:Re}=kn.getMousePos(Ye.current,be),Pe=Or(Ce);if(console.log("selectAnnotation",Pe),Pe){const{awi_coords:ut}=Pe;if(ut.length===1){const gt=n1(Yt);no(Me,Re,ut,gt,gt,ge)&&(Tt(!0),$t(!0),l1({x:Me,y:Re}),Rt(ut));return}if(ut.length===2){const{x:gt,y:Wt}=ut[0],{x:E1,y:ce}=ut[1],C0=kn.getDiameter([{x:gt,y:Wt},{x:E1,y:ce}])/2,F0=(gt+E1)/2,p1=(Wt+ce)/2;Tt(!0),$t(!0),l1({x:Me,y:Re}),Kn({x:Me,y:Re}),Rt(ut);const an=(Me-F0)*(Me-F0)+(Re-p1)*(Re-p1),L0=n1(_n);an>L0*L0*C0*C0&&$t(!1);return}const wt=Br()?0:n1(Kt),Jt=no(Me,Re,ut,wt,0,ge),gn=_i(Me,Re);if(!Jt&&!gn)Kn({x:-1,y:-1}),l1({x:0,y:0}),$t(!1);else{if(l1({x:Me,y:Re}),Tt(!0),(ge==null?void 0:ge.awi_annotation_type)=="polygon")if(Br())$t(!0);else if(no(Me,Re,ut,wt,0,ge)){const{minDistance:Wt}=kn.findClosestSegment(ut,Me,Re),E1=n1(xt);Wt>=E1?$t(!0):$t(!1)}else $t(!1);else $t(!0);Rt(ut),Kn({x:-1,y:-1}),Br()||ut.forEach((gt,Wt)=>{if(Me<=gt.x+wt&&Me>=gt.x&&Re<=gt.y+wt&&Re>=gt.y||Me>=gt.x-wt&&Me<=gt.x&&Re>=gt.y-wt&&Re<=gt.y||Me<=gt.x+wt&&Me>=gt.x&&Re>=gt.y-wt&&Re<=gt.y||Me>=gt.x-wt&&Me<=gt.x&&Re<=gt.y+wt&&Re>=gt.y){if((ge==null?void 0:ge.awi_annotation_type)==="polygon")c?(Kn({x:Me,y:Re}),Q1(Wt)):(Q1(Wt),Kn(ut[Wt])),console.log("setSelectCornerCoordinates");else if((ge==null?void 0:ge.awi_annotation_type)==="rectangle"&&!Tn){const E1=ut[(Wt+2)%4];Kn(E1)}else if(c){const E1=ut[(Wt+2)%4];Kn(E1)}else Q1(Wt),Kn(ut[Wt]);$t(!1),Rt([])}})}}},sa=(be="all")=>{const Ce=window.devicePixelRatio;if(be!="cross"&&Ye.current)if(at.scale==1){const Me=+getComputedStyle(Ye.current).getPropertyValue("height").slice(0,-2),Re=+getComputedStyle(Ye.current).getPropertyValue("width").slice(0,-2);Ye.current.setAttribute("height",(Me*Ce).toString()),Ye.current.setAttribute("width",(Re*Ce).toString())}else{const Me=yt.height*at.scale,Re=yt.width*at.scale;Ye.current.setAttribute("height",(Me*Ce).toString()),Ye.current.setAttribute("width",(Re*Ce).toString())}if(Et.current)if(at.scale==1){const Me=+getComputedStyle(Et.current).getPropertyValue("height").slice(0,-2),Re=+getComputedStyle(Et.current).getPropertyValue("width").slice(0,-2);Et.current.setAttribute("height",(Me*Ce).toString()),Et.current.setAttribute("width",(Re*Ce).toString())}else{const Me=yt.height*at.scale,Re=yt.width*at.scale;Et.current.setAttribute("height",(Me*Ce).toString()),Et.current.setAttribute("width",(Re*Ce).toString())}},ko=(be,Ce)=>{const Me=kn.getDistance(be.x,be.y,Ce.x,Ce.y),Re=n1(Kt),Pe=n1(Nn);if(Me<=Pe){let ut=!1;return Me<=Re?ut=!1:Me<=Pe&&(ut=!0),{success:!0,distance:Me,zoomClosePoint:Re,zoomPointAnnotationValue:Pe,isExtraPointNeeded:ut}}else return{success:!1,distance:Me,zoomClosePoint:Re,zoomPointAnnotationValue:Pe,isExtraPointNeeded:!1}},ro=(be=[],Ce={x:0,y:0},Me=!1,Re=!1,Pe)=>{if((be||[]).length>0){Pe.beginPath();const ut=Dr(be);if((ge==null?void 0:ge.awi_annotation_type)==="rectangle")if(Tn){if(c){Pe.moveTo(ut[0].x,ut[0].y);for(let wt=1;wt<ut.length;wt++)Pe.lineTo(ut[wt].x,ut[wt].y);Pe.closePath()}else if(Tn){console.log("Sam function");const wt=Dr(be);Pe.clearRect(0,0,Pe.canvas.width,Pe.canvas.height),Pe.fillStyle="rgba(0, 0, 0, 0.35)",Pe.strokeStyle=Zt,Pe.lineWidth=$e.DEFAULT,wt.forEach(Jt=>{Pe.beginPath(),Pe.arc(Jt.x,Jt.y,it,0,B1.TWO_PIE,!0),Pe.fill(),Pe.stroke()})}}else{Pe.moveTo(ut[0].x,ut[0].y);for(let wt=1;wt<ut.length;wt++)Pe.lineTo(ut[wt].x,ut[wt].y);Pe.closePath()}else if((ge==null?void 0:ge.awi_annotation_type)==="circle")if(Tn&&!c){const wt=Dr(be);console.log("coordinatesVal ",wt),Pe.clearRect(0,0,Pe.canvas.width,Pe.canvas.height),Pe.fillStyle="rgba(0, 0, 0, 0.35)",Pe.strokeStyle=Zt,Pe.lineWidth=$e.DEFAULT,wt.forEach(Jt=>{Pe.beginPath(),Pe.arc(Jt.x,Jt.y,it,0,B1.TWO_PIE,!0),Pe.fill(),Pe.stroke()})}else{const wt=kn.getDiameter(ut);Pe.arc((ut[0].x+ut[1].x)/2,(ut[0].y+ut[1].y)/2,Math.floor(wt/2),0,B1.TWO_PIE)}Pe.save(),Pe.lineWidth=$e.DEFAULT,Pe.strokeStyle=Zt,Pe.stroke()}if((ge==null?void 0:ge.awi_annotation_type)==="polygon"&&(nt||[]).length>0&&!Me&&!c){if(!Tn){const ut=Dr(nt);if(Pe.beginPath(),Pe.lineWidth=$e.DEFAULT,Pe.strokeStyle=Zt,ut.forEach((wt,Jt)=>{if(Jt>0){const gn=ut[Jt-1];Pe.moveTo(gn.x,gn.y),Pe.lineTo(wt.x,wt.y)}}),Pe.stroke(),ut.forEach((wt,Jt)=>{Pe.beginPath(),Pe.arc(wt.x,wt.y,it,0,B1.TWO_PIE,!0),Pe.fillStyle=Jt===0?mt:Zt,Pe.fill()}),!ar()&&!Re&&Ce&&Ce.x>0&&Ce.y>0&&!(Ce.x>.998||Ce.y>.998||Ce.x<.002||Ce.y<.002)){const wt=Dr([Ce]);Pe.beginPath();const Jt=ko(nt[0],Ce);Jt!=null&&Jt.success&&(nt==null?void 0:nt.length)>2?Jt.isExtraPointNeeded?(Pe.beginPath(),Pe.rect(wt[0].x-Ae*3,wt[0].y-Ae*3,Ae*6,Ae*6),Pe.fillStyle=pt,Pe.fill(),Pe.lineWidth=4,Pe.strokeStyle=pt,Pe.stroke()):(Pe.beginPath(),Pe.rect(wt[0].x-Ae*3,wt[0].y-Ae*3,Ae*6,Ae*6),Pe.fillStyle=mt,Pe.fill(),Pe.lineWidth=2,Pe.strokeStyle=mt,Pe.stroke()):Pe.arc(wt[0].x,wt[0].y,Ae,0,B1.TWO_PIE,!0),Pe.fillStyle="rgba(0,0,0,0.35)",Pe.fill(),Pe.strokeStyle=Zt,Pe.stroke();const gn=ut[ut.length-1];Pe.beginPath(),Pe.moveTo(gn.x,gn.y),Pe.lineTo(wt[0].x,wt[0].y),Pe.strokeStyle="#ff0000",Pe.setLineDash([5,5]),Pe.lineWidth=$e.DEFAULT,Pe.stroke(),Pe.setLineDash([])}Pe.closePath(),Pe.lineWidth=$e.DEFAULT,Pe.stroke(),Pe.save()}if(Tn){const ut=Dr(be);Pe.clearRect(0,0,Pe.canvas.width,Pe.canvas.height),Pe.fillStyle="rgba(0, 0, 0, 0.35)",Pe.strokeStyle=Zt,Pe.lineWidth=$e.DEFAULT,ut.forEach(wt=>{Pe.beginPath(),Pe.arc(wt.x,wt.y,it,0,B1.TWO_PIE,!0),Pe.fill(),Pe.stroke()})}}},yi=(be,Ce)=>{const Me=Et.current;if(!Me)return;const Re=Me.getContext("2d");if(!Re||(Re.clearRect(0,0,Me.width,Me.height),be==-1&&Ce==-1))return;sa("cross");const Pe=Dr([{x:be,y:Ce}])[0],ut=Pe.x,wt=Pe.y;Re.strokeStyle="#800080",Re.lineWidth=$e.CAROUSAL,Re.setLineDash([3,3]),Re.beginPath(),Re.moveTo(ut,0),Re.lineTo(ut,Me.height),Re.stroke(),Re.beginPath(),Re.moveTo(0,wt),Re.lineTo(Me.width,wt),Re.stroke(),Re.setLineDash([])},D1=(be=[],Ce={x:0,y:0},Me=!1,Re=!1,Pe=0)=>{var ut,wt,Jt,gn;if(ge&&!ui){const gt=(ut=Ye.current)==null?void 0:ut.getContext("2d");if(sa(),gt!=null){gt.imageSmoothingEnabled=!1,gt.clearRect(0,0,yt.width,yt.height),!c&&(ge==null?void 0:ge.awi_request_for)!="attributes"&&ro(be,Ce,Me,Re,gt);const Wt=oa||[];for(let E1=0;E1<Wt.length;E1++){const ce=Wt[E1],{awi_coords:C0,awi_id:F0,awi_status:p1}=ce;if(C0.length===0)return;const an=Dr(C0);gt.beginPath(),gt.lineJoin="round";let L0=!1,cr="",Gr="";if(g==="all"||p1===g){ce.awi_status==="pending"?cr=ce.awi_outline_status==="approved"?"rgba(214, 204, 60, 0.3)":"rgba(0, 0, 0,0)":cr=B1.STATUS_COLOR_MAP[ce.awi_status]||"rgba(0, 0, 0,0)",Gr=cr;let lo=!1;if(F0===Pt?(gt.lineWidth=$e.SELECTED,gt.strokeStyle=Zt,gt.fillStyle="rgba(0,0,0,0.40)",lo=!0):F0===Vn&&(gt.lineWidth=$e.DEFAULT,gt.strokeStyle=Lt,gt.fillStyle=Xe,lo=!0),!lo)if(gt.fillStyle=cr,v?gt.lineWidth=$e.CAROUSAL:gt.lineWidth=$e.DEFAULT,A){const ur=A[ce.awi_classes[0].awi_id];ur?(Gr=ur,gt.strokeStyle=ur):(Gr=ce.awi_classes[0].awi_color,gt.strokeStyle=ce.awi_classes[0].awi_color)}else Gr=ce.awi_classes[0].awi_color,gt.strokeStyle=ce.awi_classes[0].awi_color;switch(ge==null?void 0:ge.awi_annotation_type){case"circle":{const ur=(an[0].x+an[1].x)/2,Mi=(an[0].y+an[1].y)/2,t4=Math.sqrt(Math.pow(an[1].x-an[0].x,2)+Math.pow(an[1].y-an[0].y,2));gt.beginPath(),gt.arc(ur,Mi,t4/2,0,B1.TWO_PIE),gt.stroke(),gt.closePath(),L0=!0;break}case"dot":{gt.beginPath(),gt.moveTo(an[0].x,an[0].y),gt.arc(an[0].x,an[0].y,Ae,0,B1.TWO_PIE,!0),gt.stroke(),gt.closePath(),L0=!0;break}case"rectangle":{gt.beginPath(),gt.moveTo((wt=an[0])==null?void 0:wt.x,(Jt=an[0])==null?void 0:Jt.y);for(let ur=1;ur<an.length;ur++)gt.lineTo(an[ur].x,an[ur].y);gt.closePath(),gt.stroke(),L0=!0;break}case"polygon":{L0=!0,gt.moveTo(an[0].x,an[0].y);const ur=an.length;for(let Mi=0;Mi<ur;Mi++)gt.lineTo(an[Mi].x,an[Mi].y);break}}if(gt.fill(),gt.save(),gt.stroke(),L0){gt.save();const ur=F0===Pt,Mi=F0===Vn,t4=ce.sam_status==="yes";an.forEach((fu,Hl)=>{gt.beginPath();let Pr=Ae,co="";ur?an.length==1&&(ge==null?void 0:ge.awi_annotation_type)=="dot"||Re&&Hl%(an.length-1)==Pe?(Pr=Ae*2,co=Zt):(co=Zt,Pr=Ae):Mi?(co=Lt,Pr=Ae):(co=Gr,Pr=Ae),(ge==null?void 0:ge.awi_annotation_type)==="polygon"?Hl%(an.length-1)==0&&(t4?co=Vt:co=mt):Hl==0&&an.length>1&&t4&&(co=Vt),gt.arc(fu.x,fu.y,Pr,0,2*Math.PI,!0),gt.fillStyle=co,gt.strokeStyle=co,gt.fill(),gt.stroke(),gt.restore()})}else console.log("Error")}}}Ai()}if(at.scale==1&&(Ye!=null&&Ye.current)){const gt=(gn=Ye==null?void 0:Ye.current)==null?void 0:gn.getBoundingClientRect();Lr({top:gt==null?void 0:gt.top,left:gt==null?void 0:gt.left})}},Dr=be=>be.map(Me=>({x:Me.x*Ye.current.width,y:Me.y*Ye.current.height})),oo=be=>{const{x:Ce,y:Me}=kn.getMousePos(Ye.current,be);Rt(Re=>{const Pe=[...Re];return Pe[1].x=Ce,Pe[1].y=Me,kn.adjustToCircle(Pe)})},f0=be=>{if(be.length===0)return!1;const Ce=kn.isAnnotationCoordinatesValid(ge,be,Tn,at.scale);return Ce||D1(),Ce},X5=(be,Ce)=>(console.log("Has Moved checking"),Math.abs(be.x-Ce.x)>0||Math.abs(be.y-Ce.y)>0),Oo=()=>{if((nt==null?void 0:nt.length)>1){const be=nt[nt.length-1],Ce=[];let Me=!1;for(let Re=0;Re<nt.length-1;Re++){const Pe=nt[Re],ut=n1(Yt);if(Math.abs(be.x-Pe.x)<=ut&&Math.abs(be.y-Pe.y)<=ut){Me=!0;continue}else Ce.push({x:Pe.x,y:Pe.y})}return Me||Ce.push(nt[nt.length-1]),Rt(Ce),Ce}else return nt},J5=()=>{if(typeof n=="function")if(nt.length>3){const be=ko(nt[0],nt[nt.length-1]);let Ce=[];be.success&&(be.isExtraPointNeeded==!1?(nt[nt.length-1].x=nt[0].x,nt[nt.length-1].y=nt[0].y,Ce=nt):be.isExtraPointNeeded&&(Ce=[...nt,{x:nt[0].x,y:nt[0].y}])),(Ce==null?void 0:Ce.length)>0?(Rt([]),n(Ce,null,!1,()=>{kr()})):D1(nt)}else D1(nt)},X0=(be,Ce)=>{console.log("deletePolygonPoint"),console.log("selectIndex ",Ce);const Me=[];for(let Re=0;Re<be.length;Re++)Re!=Ce&&Me.push(be[Re]);Ce==0&&(Me[Me.length-1]=Me[0]),Rt(Me),(Me==null?void 0:Me.length)>3?(D1(Me),typeof o=="function"&&f0(Me)&&!p&&(V1.success("Point deleted successfully"),o(Me,u,()=>{kr()}))):V1.error("Point can not be deleted, as polygon need minimum of three points"),ci(-1),o9(null)};function sr(be,Ce){console.log("handleAddAnnotationPoint");const Me=be.target;if(!(Me!=null&&Me.getBoundingClientRect))return;const Re=Me.getBoundingClientRect(),Pe=(be.clientX-Re.left)/Re.width,ut=(be.clientY-Re.top)/Re.height,{insertIndex:wt,minDistance:Jt}=kn.closestCoordinates({x:Pe,y:ut},Ce),gn=n1(Kt);if(Jt<gn){console.log("Very close point to insert"),console.log("minDistanceMin",Jt);const ce=n1(sn);if(Jt<ce&&Br())console.log("We can remove this"),(Ce==null?void 0:Ce.length)>3&&(o9(Ce),B1.POLYGON_POINT_REMOVE_CONFIRM_PROMPT?ci(wt):X0(Ce,wt));else{if(Jt<ce)V1.error("Press CTRL and then click to prompt for point deletion");else{const C0=(Jt*100).toFixed(1);V1.error("Very close point to draw "+C0+" it should be more than "+Kt*100)}ci(-1),o9(null)}return}if(Br())return;ci(-1),o9(null);const{insertIndex:gt,minDistance:Wt}=kn.findClosestSegment(Ce,Pe,ut),E1=n1(xt);Wt>=E1||(Ce.splice(gt,0,{x:Pe,y:ut}),Rt(Ce),D1(Ce),typeof o=="function"&&f0(nt)&&!p&&o(nt,u,()=>{kr()}))}const wi=be=>{M&&typeof M<"u"&&typeof M=="function"&&(M({x:-1,y:-1}),yi(-1,-1)),ca(be,!0),Vn!="-1"?ia():(ge==null?void 0:ge.awi_annotation_type)=="polygon"&&!c&&!v&&!Tn&&nt.length>0&&setTimeout(()=>{D1(nt)},200)},la=be=>{if(!Tn){if((mn||bt&&e1.x!==-1&&e1.y!==-1)&&X5(O1,kn.getMousePos(Ye.current,be))){const Ce=Or(u);if(Ce){const Me=f0(Ce.awi_coords);if(typeof o=="function"&&Me)if(e1.x!==-1&&e1.y!==-1)if((ge==null?void 0:ge.awi_annotation_type)=="polygon")o(Ce.awi_coords,Pt);else{const Re=kn.getUpdatedCoordinates(Ye,be,e1);o(Re,Pt)}else o(Ce.awi_coords,Pt);else Me||((ge==null?void 0:ge.awi_annotation_type)=="polygon"&&Kr(Ce.awi_coords,be),bi(!0))}}Mn?(At(!1),typeof n=="function"&&f0(nt)&&((ge==null?void 0:ge.awi_annotation_type)==="polygon"?J5():n(nt,null,!1,()=>{kr()}))):bt&&(Tt(!1),un("-1"),w1([]),typeof d=="function"&&d("-1"))}},l9=be=>{if(!(Ye!=null&&Ye.current))return;const Ce=Sl(be,!1);(Ce==null?void 0:Ce.length)>0&&Ce[0]!=Pt?(vi(),T1(Ce[0]),Ye.current.style.cursor="pointer"):Vn!="-1"&&(T1("-1"),Pt=="-1"&&(Ye.current.style.cursor="default"))},A3=(be,Ce=!1)=>{if(Ce){ht(nt);return}const{x:Me,y:Re}=kn.getMousePos(Ye.current,be),Pe=Or(u);if(Pe){const ut=Pe.awi_coords,{minDistance:wt,insertIndex:Jt}=kn.closestCoordinates({x:Me,y:Re},ut),gn=n1(Qt);if(wt<=gn&&Ye.current){const gt=Ye.current.getContext("2d");if(!gt||Jt==fn)return;Ye.current.style.cursor="pointer",wn(Jt),Ye.current.title="Point "+(Jt+1);const Wt=Dr([ut[Jt]])[0];gt.fillStyle=Cn,gt.beginPath(),gt.arc(Wt.x,Wt.y,Ae*2.5,0,B1.TWO_PIE),gt.strokeStyle="black",gt.lineWidth=$e.SELECTED,gt.stroke(),gt.fill()}else if(Ye.current){if(!Ye.current.getContext("2d"))return;const Wt=n1(Ht);fn!==-1&&(ht(),wn(-1)),(ge==null?void 0:ge.awi_annotation_type)=="polygon"&&kn.findClosestSegment(ut,Me,Re).minDistance<=Wt?(Ye.current.style.cursor="pointer",Ye.current.title="Add point"):(Ye.current.style.cursor="default",Ye.current.title="")}}},ca=p2.useThrottle(A3,100),xi=p2.useThrottle(l9,100),Kr=(be,Ce)=>{if(kn.breakPointCount(be)>0){console.log("================================BREAK================================"),$t(!1),Ce&&Ce.stopPropagation&&(Ce==null||Ce.stopPropagation());const Re=kn.shiftPolygon(be);if(typeof o=="function"&&f0(Re)){const Pe=u;o(Re,u,()=>{Pt!=Pe&&un(Pe),kr()})}}},Ze=()=>vn.length>B1.MAX_ANNOTATIONS_TO_RUN_FAST?ht:D1,ht=p2.useThrottle((be,Ce,Me=!1,Re=!1,Pe=-1)=>{D1(be,Ce,Me,Re,Pe)},50),st=(be="forward")=>{if((vn||[]).length!=0)if(be=="last_update"){const Ce=vn==null?void 0:vn.reduce((Me,Re)=>{const Pe=new Date(Me.awi_last_updation).getTime();return new Date(Re.awi_last_updation).getTime()>Pe?Re:Me});Ce&&(un(Ce.awi_id),typeof d=="function"&&d(Ce.awi_id))}else if(u==="-1")(vn||[]).length>0&&(un(vn[0].awi_id),typeof d=="function"&&d(vn[0].awi_id));else{const Ce=p3(u);be=="backward"?Ce!==-1?Ce>0?(un(vn[Ce-1].awi_id),typeof d=="function"&&d(vn[Ce-1].awi_id)):(un(vn[vn.length-1].awi_id),typeof d=="function"&&d(vn[vn.length-1].awi_id)):(vn||[]).length>0&&(un(vn[vn.length-1].awi_id),typeof d=="function"&&d(vn[vn.length-1].awi_id)):Ce!==-1?(vn||[]).length>Ce+1?(un((vn||[])[Ce+1].awi_id),typeof d=="function"&&d((vn||[])[Ce+1].awi_id)):(un((vn||[])[0].awi_id),typeof d=="function"&&d((vn||[])[0].awi_id)):(vn||[]).length>0&&(un(vn[0].awi_id),typeof d=="function"&&d(vn[0].awi_id))}},ln=()=>{if(console.log("handleCompleteAnnotation"),!(!ge||c))if(x==="SAM"){No();return}else{if((ge==null?void 0:ge.awi_annotation_type)!="polygon")return;if(typeof n=="function"&&f0(nt))if((nt==null?void 0:nt.length)>2){const be=[...nt,{x:nt[0].x,y:nt[0].y}];Rt([]),n(be,null,!1,()=>{kr()})}else{V1.error("Polygon requires minimum of three coordinates");return}else V1.error("Invalid coordinates, please create valid coordinates")}},$n=be=>{console.log("handle Complete Multiple Annotation SAM");const Ce=[];for(let Me=0;Me<(be==null?void 0:be.length);Me++){const Re=be[Me].outline,Pe=be[Me].classId;if(f0(Re)){const wt={coords:(ge==null?void 0:ge.awi_annotation_type)=="polygon"?kn.createPolygonLoop(Re):Re,classId:Pe,isSam:!0};Ce.push(wt)}}(Ce==null?void 0:Ce.length)>0&&typeof r=="function"&&(Rt([]),r(Ce,()=>{(Ce==null?void 0:Ce.length)>0&&bi()}))},m1=()=>{if(console.log("undoAnnotationPoint"),console.log("coordinates ------>",nt),u!="-1"){u9();return}if(nt.length>0&&(ge==null?void 0:ge.awi_annotation_type)==="polygon")nt.pop(),Rt([...nt]),D1(nt);else if(nt.length>0&&Tn)nt.pop(),Rt([...nt]),D1(nt);else return},r0=()=>{pn(Ft)},P1=(be,Ce="zoom-in")=>{if(Ye.current&&Ye)if(Ce=="zoom-in"){const Me=qt,Re=at.scale+Me,Pe=Ye.current.getBoundingClientRect(),ut=be.clientX-Pe.left,wt=be.clientY-Pe.top,Jt=Re/at.scale,gn=at.x-ut*(Jt-1),gt=at.y-wt*(Jt-1),Wt={scale:+Re.toFixed(2),x:gn,y:gt};pn(Wt),W5({x:be.clientX,y:be.clientY})}else{const Me=qt,Re=at.scale-Me;if(Re==1)r0();else{const Pe=Ye.current.getBoundingClientRect();(y0.x==-1||y0.y==-1)&&console.log("zoomTimeMousePoint");const ut=y0.x!=-1?y0.x:be.clientX,wt=y0.y!=-1?y0.y:be.clientY,Jt=ut-Pe.left,gn=wt-Pe.top,gt=Re/at.scale,Wt=-Math.abs(at.x+Jt*(1-gt)),E1=-Math.abs(at.y+gn*(1-gt)),ce=yt.width*(at.scale+qt-1),C0=yt.height*(at.scale+qt-1),{newXTransform:F0,newYTransform:p1}=kn.transformCoordinatesCheck(Wt,E1,ce,C0),an={scale:+Re.toFixed(2),x:F0,y:p1};pn(an)}}},Io=(be=null)=>{if(at.scale!==Qn&&Ye.current)if(!be||!be.clientX||!be.clientY||be.type=="click"){const Ce=yt.width*(at.scale+qt-1),Me=yt.height*(at.scale+qt-1),Re=at.x-yt.width*qt/2,Pe=at.y-yt.height*qt/2,{newXTransform:ut,newYTransform:wt}=kn.transformCoordinatesCheck(Re,Pe,Ce,Me),Jt={scale:+(at.scale+qt).toFixed(2),x:ut,y:wt};pn(Jt)}else P1(be,"zoom-in")},lr=(be=null)=>{if(at.scale!==1&&Ye.current)if(!be||!be.clientX||!be.clientY||be.type=="click"){const Ce=yt.width*(at.scale-qt-1),Me=yt.height*(at.scale-qt-1),Re=at.x+yt.width*qt/2,Pe=at.y+yt.height*qt/2,{newXTransform:ut,newYTransform:wt}=kn.transformCoordinatesCheck(Re,Pe,Ce,Me);pn({scale:+(at.scale-qt).toFixed(2),x:ut,y:wt})}else P1(be,"zoom-out")},H0=be=>{be.deltaY<0?Io(be):lr(be)},Do=()=>{const be=yt.width*(at.scale-1),Ce=yt.height*(at.scale-1),Me=at.x+Gn,Re=at.y,{newXTransform:Pe,newYTransform:ut}=kn.transformCoordinatesCheck(Me,Re,be,Ce);pn({...at,x:Pe,y:ut})},Po=()=>{const be=yt.width*(at.scale-1),Ce=yt.height*(at.scale-1),Me=at.x-Gn,Re=at.y,{newXTransform:Pe,newYTransform:ut}=kn.transformCoordinatesCheck(Me,Re,be,Ce);pn({...at,x:Pe,y:ut})},P2=()=>{const be=yt.width*(at.scale-1),Ce=yt.height*(at.scale-1),Me=at.x,Re=at.y+Gn,{newXTransform:Pe,newYTransform:ut}=kn.transformCoordinatesCheck(Me,Re,be,Ce);pn({...at,x:Pe,y:ut})},io=()=>{const be=yt.width*(at.scale-1),Ce=yt.height*(at.scale-1),Me=at.x,Re=at.y-Gn,{newXTransform:Pe,newYTransform:ut}=kn.transformCoordinatesCheck(Me,Re,be,Ce);pn({...at,x:Pe,y:ut})};if(!e||!i)return null;const No=()=>{if(rn){V1.error("Request already in progress");return}if(!(nt!=null&&nt.length)){V1.error("No points to send");return}const be={};be.image_url=e,be.coords=nt,console.log("Sent to SAM",be),ua(),typeof h=="function"&&h("annotate")},d1=()=>{if(Ur?zn(!1):Ur||zn(!0),rn){V1.error("Request already in progress");return}typeof h=="function"&&h("annotate")},Ml=be=>{console.log("Submitted data from SAMModal:",be),To(be),typeof h=="function"&&h("annotate")},To=be=>{if(!mi||!(mi!=null&&mi.mutate)){V1.error("SAM Prompt is not available");return}console.log("getSAMAnnotationsPrompt");const Ce=be.awi_annotation_prompt,Me=be.model_confidence,Re=be.model_name,Pe=be.model_max_results;R0({modelName:Re,modelConfidence:Me,modelMaxResults:Pe,promptMessage:Ce});const ut=tt.generateImageUrl(tt.getImageKitUrl(e,-1,-1,-1)),Jt={requestId:a||0,contents:[{url:c2||ut,contentKey:i,directPrompt:Ce||""}],confidence:Me||L1,modelName:Re||a0,modelMaxResults:Pe||J2};jt(!0),mi.mutate(Jt,{onSuccess:gn=>{var gt,Wt,E1,ce,C0;if(jt(!1),!gn.success)V1.error(gn.message);else{zn(!1);const F0=((E1=(Wt=(gt=gn.data)==null?void 0:gt[0])==null?void 0:Wt.contours)==null?void 0:E1[0])??null;if(F0){const p1=F0.coordinates;if((p1==null?void 0:p1.length)==0||!((C0=(ce=p1[0])==null?void 0:ce.box)!=null&&C0.length))V1.error("No auto annotation is possible to create");else{const an=[];(ge==null?void 0:ge.awi_annotation_type)=="polygon"?(console.log("coordinates",p1),p1.forEach(L0=>{var cr;(cr=L0==null?void 0:L0.mask_polygon)==null||cr.forEach(Gr=>{const ur={outline:Gr.outline,classId:p1.classId};an.push(ur)})})):(ge==null?void 0:ge.awi_annotation_type)=="rectangle"?p1.forEach(L0=>{const cr=kn.getBoundingBox(L0.box);Rt(cr);const Gr={outline:cr,classId:p1.classId};an.push(Gr)}):(ge==null?void 0:ge.awi_annotation_type)=="circle"?p1.forEach(L0=>{const cr=kn.calculateCircleFromCoordinates(kn.getBoundingBox(L0.box));Rt(cr);const Gr={outline:cr,classId:p1.classId};an.push(Gr)}):(ge==null?void 0:ge.awi_annotation_type)=="dot"&&p1.forEach(L0=>{const cr=kn.calculateCentroid(L0.box);Rt(cr);const Gr={outline:cr,classId:p1.classId};an.push(Gr)}),$n(an),typeof E=="function"&&E("Normal")}}else V1.error("No Auto Annotation found")}},onError:gn=>{V1.exception(gn),jt(!1)}})},ua=()=>{if(!Ci||!(Ci!=null&&Ci.mutate)){V1.error("SAM is not available");return}const be=tt.generateImageUrl(tt.getImageKitUrl(e,-1,-1,-1)),Ce=c2||be,Me=p2.chunkArray(nt),Re={img_url:Ce,coords:nt,coordinates:Me};jt(!0),Ci.mutate(Re,{onSuccess:Pe=>{var ut;if(jt(!1),!Pe.success)V1.error(Pe.message);else if(console.log("this is the SAM data",Pe),((ut=Pe==null?void 0:Pe.data)==null?void 0:ut.length)>0){const wt=[];(ge==null?void 0:ge.awi_annotation_type)=="polygon"?Pe.data.forEach(Jt=>{Jt.contours.forEach(gn=>{Rt(gn.outline);const Wt={outline:gn.outline,classId:null};wt.push(Wt)})}):(ge==null?void 0:ge.awi_annotation_type)=="rectangle"?Pe.data.forEach(Jt=>{Rt(Jt.bbox),console.log("this si the bbox",Jt.bbox);const gt={outline:Jt.bbox,classId:null};wt.push(gt)}):(ge==null?void 0:ge.awi_annotation_type)=="circle"?Pe.data.forEach(Jt=>{const gn=kn.calculateCircleFromCoordinates(Jt.bbox);Rt(gn);const gt={outline:gn,classId:null};wt.push(gt)}):(ge==null?void 0:ge.awi_annotation_type)=="dot"&&Pe.data.forEach(Jt=>{const gn=kn.calculateCentroid(Jt.bbox);Rt(gn);const gt={outline:gn,classId:null};wt.push(gt)}),$n(wt)}else V1.error("No annotations found from SAM")},onError:Pe=>{V1.exception(Pe),jt(!1)}})},c9=async()=>{if(fe&&typeof fe=="function"){V1.success("Loading Annotations...");const be=await fe();console.log("cacheRemoveAnnotationResponse ",be),be!=null&&be.success?(V1.success((be==null?void 0:be.message)+" and now loading final annotations..."),bi(!0)):V1.error(be==null?void 0:be.message)}},u9=()=>{var Ce;console.log("Undo last state annotation");const be=Or(u);if(((Ce=be.past_coords)==null?void 0:Ce.length)>0){const Me=be.past_coords[be.past_coords.length-1];typeof o=="function"&&f0(Me)&&!p&&o(Me,u,()=>{kr()})}},N2=be=>{console.log("Control p"),Ye.current&&Io(be)},da=be=>{console.log("Control m"),lr(be)},Qr=()=>{const be={clientX:(Ut==null?void 0:Ut.x)||0,clientY:(Ut==null?void 0:Ut.y)||0};N2(be)},u2=()=>{const be={clientX:(Ut==null?void 0:Ut.x)||0,clientY:(Ut==null?void 0:Ut.y)||0};da(be)},e4=()=>{console.log("Copying annotations"),k&&typeof k=="function"&&k((bn==null?void 0:bn.result)||[])},d2=(be=!0)=>{try{document.fullscreenElement?(document.exitFullscreen().then(()=>{console.log("Fullscreen exited")}).catch(Ce=>{console.log(Ce)}),be&&ki.setItem("full_screen","no")):(document.documentElement.requestFullscreen().then(()=>{console.log("Fullscreen entered")}).catch(Ce=>{console.log(Ce)}),be&&ki.setItem("full_screen","yes"))}catch(Ce){console.log(Ce)}},T2=be=>{var Ce;if(!(!v&&!["awi_annotator","awi_verifier","awi_developer"].includes(m.userObj.awi_level))){if((ge==null?void 0:ge.awi_request_for)=="attributes"){const Me=D2(be)||[];console.log("This is the temp annotation",Me),Me.length>0&&(w1(Me),typeof d=="function"&&d(Me[0]),D1()),mn&&$t(!1),Tt(!1);return}if(Mn)if(At(!1),Tn){if(nt&&(nt==null?void 0:nt.length)>0){let Me=[];j1?Br()?Me=Oo():Me=nt:Me=Oo(),D1(Me)}}else console.log("creating new annotation"),typeof n=="function"&&f0(nt)&&((ge==null?void 0:ge.awi_annotation_type)==="polygon"?J5():(Rt([]),n(nt,null,!1,()=>{kr()})));else if(c&&Pt!=="-1"||v){if((mn||e1.x!==-1&&e1.y!==-1)&&X5(O1,kn.getMousePos(Ye.current,be))){const Me=Or(Pt);if(Me){const Re=[...Me.awi_coords],Pe=f0(Re);typeof o=="function"&&Pe&&!p?o(Re,u,()=>{kr()}):Pe||((ge==null?void 0:ge.awi_annotation_type)=="polygon"?Kr(Re,be):bi(!0))}}else{const Me=D2(be)||[];if(Me.length>0)if(Me.every(Re=>r1.includes(Re))&&r1.every(Re=>Me.includes(Re))){if(un(Re=>(typeof d=="function"&&d(r1[(r1.indexOf(Re)+1)%r1.length]),ht(),r1[(r1.indexOf(Re)+1)%r1.length]==="-1"&&(l1({x:0,y:0}),Kn({x:-1,y:-1})),r1[(r1.indexOf(Re)+1)%r1.length])),(!mn||Br())&&(ge==null?void 0:ge.awi_annotation_type)=="polygon"){const Re=(Ce=Or(u))==null?void 0:Ce.awi_coords;sr(be,Re)}}else console.log("Selecting first temp"),un(Me[0]),typeof d=="function"&&d(Me[0]),D1();else un("-1"),D1();w1(Me)}mn&&$t(!1),Tt(!1)}else if(c){const Me=D2(be)||[];console.log("This is the temp annotation",Me),Me.length>0&&(w1(Me),typeof d=="function"&&d(Me[0]),D1()),Tt(!1)}}},Ei=be=>{if(console.log("Handle Mouse Down"),be.button==0&&!ar()){if(!["awi_annotator","awi_verifier","awi_developer"].includes(m.userObj.awi_level))return;if(!c&&!v){At(!0),console.log("Mouse down");const{x:Ce,y:Me}=kn.getMousePosAbsolute(Ye.current,be);Hn({x:Ce,y:Me}),Tn?j1&&Br()||Rt(Re=>[...Re||[],{x:Ce,y:Me}]):(ge==null?void 0:ge.awi_annotation_type)==="rectangle"?Rt([{x:Ce,y:Me},{x:Ce,y:Me},{x:Ce,y:Me},{x:Ce,y:Me}]):(ge==null?void 0:ge.awi_annotation_type)==="circle"?Rt([{x:Ce,y:Me},{x:Ce,y:Me}]):(ge==null?void 0:ge.awi_annotation_type)==="dot"?Rt([{x:Ce,y:Me}]):(ge==null?void 0:ge.awi_annotation_type)==="polygon"&&Rt(Re=>[...Re,{x:Ce,y:Me}])}else v||(q5(be,Pt),Tt(!0))}else if(be.button===1||be.button==0){const{clientX:Ce,clientY:Me}=be,{x:Re,y:Pe}=at,ut=Jt=>{console.log("PANNING!!!!!");const gn=Jt.clientX-Ce,gt=Jt.clientY-Me,Wt=Re+gn,E1=Pe+gt,ce=Math.max(Math.min(Wt,0),yt.width-yt.width*at.scale),C0=Math.max(Math.min(E1,0),yt.height-yt.height*at.scale);pn({scale:at.scale,x:ce,y:C0})},wt=()=>{window.removeEventListener("mousemove",ut),window.removeEventListener("mouseup",wt),window.addEventListener("touchmove",ut,{passive:!1}),window.addEventListener("touchend",wt)};at.scale>1&&(window.addEventListener("mousemove",ut),window.addEventListener("touchmove",ut,{passive:!1})),window.addEventListener("mouseup",wt),window.addEventListener("touchend",wt)}},ao=be=>{if(Ye!=null&&Ye.current&&_1({x:be.clientX,y:be.clientY}),c&&(Pt!="-1"&&(vn==null?void 0:vn.length)<=B1.MAX_ANNOTATIONS_TO_HOVER&&ca(be),!mn&&!bt?(vn==null?void 0:vn.length)<=B1.MAX_ANNOTATIONS_TO_HOVER&&xi(be):Vn!="-1"&&T1("-1")),p)return;let Ce=[];if(Mn){Tn?(Ce.length==0&&(Ce=[tn]),Rt(Me=>Me.length==0?[tn]:Me),D1(nt)):(ge==null?void 0:ge.awi_annotation_type)==="rectangle"?(Ce=kn.getUpdatedCoordinates(Ye,be,tn),Rt(Ce),D1(Ce)):(ge==null?void 0:ge.awi_annotation_type)==="circle"?(oo(be),D1(nt)):(ge==null||ge.awi_annotation_type,D1(nt));return}else if(c&&Pt!=="-1"&&bt){if(console.log("isDrawingAnnotation",Mn),mn){const{x:Me,y:Re}=kn.getMousePos(Ye.current,be),Pe=Me-(O1.x||0),ut=Re-(O1.y||0);if(u!=="-1"){Ce=[...nt].map(gn=>({x:gn.x+Pe,y:gn.y+ut}));const wt=Or(u);if(wt)switch(wt.awi_coords=[...Ce],ge==null?void 0:ge.awi_annotation_type){case"dot":{Ce.length===1&&(Ce[0].x=kn.getPerfectPointValue(Ce[0].x),Ce[0].y=kn.getPerfectPointValue(Ce[0].y));break}case"circle":{Ce.length===2&&(Ce=[...kn.adjustToCircle(Ce)],wt.awi_coords=[...Ce]);break}case"rectangle":{if(Ce.length===4){const gn=Math.abs(Ce[1].x-Ce[0].x),gt=Math.abs(Ce[3].y-Ce[1].y);for(let Wt=0;Wt<Ce.length;Wt++)Ce[Wt].x<0?(Ce[1].x=gn,Ce[2].x=gn,Ce[0].x=1e-4,Ce[3].x=1e-4):Ce[Wt].y<0?(Ce[2].y=gt,Ce[3].y=gt,Ce[0].y=1e-4,Ce[1].y=1e-4):Ce[Wt].x>1?(Ce[0].x=1-gn,Ce[3].x=1-gn,Ce[1].x=1-1e-4,Ce[2].x=1-1e-4):Ce[Wt].y>1&&(Ce[0].y=1-gt,Ce[1].y=1-gt,Ce[2].y=1-1e-4,Ce[3].y=1-1e-4)}break}case"polygon":{Ce.length>1&&Kr(Ce,be);break}default:{console.log("Unknown request type");break}}Ze()(Ce)}}else if(e1.x!==-1&&e1.y!==-1&&u!=="-1"){console.log("Corner coordinates");const Me=Or(u);if((ge==null?void 0:ge.awi_annotation_type)==="circle"){const Re=kn.getMousePos(Ye.current,be);if(Me){Ce=Me.awi_coords;const Pe=(Ce[0].x+Ce[1].x)/2,ut=(Ce[0].y+Ce[1].y)/2,wt=kn.getDistance(Re.x,Re.y,Pe,ut);Pe-wt<0?(Ce[0]={x:0,y:ut},Ce[1]={x:2*wt,y:ut}):Pe+wt>1?(Ce[0]={x:1-2*wt,y:ut},Ce[1]={x:1,y:ut}):ut-wt<0?(Ce[0]={x:Pe,y:0},Ce[1]={x:Pe,y:2*wt}):ut+wt>1?(Ce[0]={x:Pe,y:1-2*wt},Ce[1]={x:Pe,y:1}):(Ce[0]={x:Pe-wt,y:ut},Ce[1]={x:Pe+wt,y:ut}),Ce=[...kn.adjustToCircle(Ce)]}}else if((ge==null?void 0:ge.awi_annotation_type)==="polygon"&&!Tn){const Re=kn.getMousePos(Ye.current,be);Me!=null&&Me.awi_coords&&(Ce=[...Me.awi_coords],y1>-1&&(y1===0||y1===Ce.length-1?(Ce[0]={x:Re.x,y:Re.y},Ce[Ce.length-1]={x:Re.x,y:Re.y}):Ce[y1]={x:Re.x,y:Re.y},Kn({x:Re.x,y:Re.y})))}else Ce=kn.getUpdatedCoordinates(Ye,be,e1);if(f0(Ce)){Rt([...Ce]);const Re=Or(u);Re&&(Re.awi_coords=Ce,D1(Ce))}}}else if((ge==null?void 0:ge.awi_annotation_type)==="polygon"&&!c&&(nt==null?void 0:nt.length)>1){const{x:Me,y:Re}=kn.getMousePos(Ye.current,be);ht(nt,{x:Me,y:Re})}},d9=be=>{if(be.touches.length===1){const Ce=be.touches[0];if(ar()){if(at.scale==1)return;H1.current||(H1.current={x:Ce.clientX,y:Ce.clientY})}else{const Me={...Ce,clientX:Ce.clientX,clientY:Ce.clientY,currentTarget:be.currentTarget,button:0};Ei(Me)}}},so=be=>{if(be.preventDefault(),be.touches.length>=2){const[Ce,Me]=[be.touches[0],be.touches[1]],Re=Me.clientX-Ce.clientX,Pe=Me.clientY-Ce.clientY,ut=Math.hypot(Re,Pe);if(yn!==null){const wt=ut-yn,Jt=(Ce.clientX+Me.clientX)/2,gn=(Ce.clientY+Me.clientY)/2;H0({deltaY:-wt,clientX:Jt,clientY:gn,currentTarget:be.currentTarget})}Ln(ut)}if(be.touches.length===1){const Ce=be.touches[0];if(ar()){if(H1.current){console.log("PANNING!!!!!");const Me=Ce.clientX-H1.current.x,Re=Ce.clientY-H1.current.y,{x:Pe,y:ut}=at,wt=Pe+Me,Jt=ut+Re,gn=Math.max(Math.min(wt,0),yt.width-yt.width*at.scale),gt=Math.max(Math.min(Jt,0),yt.height-yt.height*at.scale);pn({scale:at.scale,x:gn,y:gt}),H1.current={x:Ce.clientX,y:Ce.clientY}}}else{H1.current&&(H1.current=null);const Me={...Ce,clientX:Ce.clientX,clientY:Ce.clientY,currentTarget:be.currentTarget};ao(Me)}}},f2=be=>{if(H1.current&&(H1.current=null),be.touches.length<2&&Ln(null),ar()){be.preventDefault();return}const Ce=be.touches[0]||be.changedTouches[0],Me={...Ce,clientX:Ce.clientX,clientY:Ce.clientY,currentTarget:be.currentTarget};T2(Me)},Ro=be=>{const Ce=be.touches[0]||be.changedTouches[0],Me={...Ce,clientX:Ce.clientX,clientY:Ce.clientY,currentTarget:be.currentTarget};wi(Me)},fa=(be="")=>{switch(be){case"left":Do();break;case"right":Po();break;case"top":P2();break;case"bottom":io();break;default:console.warn(`Unknown pan direction: ${be}`)}},f9=()=>{typeof w=="function"&&w(be=>!be)},b3=()=>{if(!u||u=="-1"){V1.error("Control copy will be work only when you have a selected annotation");return}else N&&typeof N=="function"&&N(bn==null?void 0:bn.result,!1)},ha=()=>{if(!Ar.current||!hi.current)return;const be=Ar.current,Ce=be.getContext("2d");if(!Ce)return;const Me=yt.width*at.scale,Re=yt.height*at.scale;!Me||!Re||(be.width=Me,be.height=Re,Ce.clearRect(0,0,Me,Re),Ce.save(),Ce.setTransform(1,0,0,1,0,0),Ce.clearRect(0,0,Me,Re),Ce.translate(at.x,at.y),Ce.scale(at.scale,at.scale),Ce.drawImage(hi.current,0,0,yt.width,yt.height),Ce.restore())};return Z.jsxs(Z.Fragment,{children:[Ur&&Z.jsx(zA,{closeSAMPromptModal:()=>zn(!1),onSubmit:Ml,directPrompt:C1,isLoading:rn,requestInfo:ge}),v&&H&&(bn==null?void 0:bn.success)&&Z.jsx(Z.Fragment,{children:Z.jsx("div",{style:{margin:"4px",display:"flex",justifyContent:"center"},children:Z.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"max-content"},children:Z.jsx("button",{className:"modalButton modalButton__purpleColor",onClick:e4,children:"Copy Annotations"})})})}),v&&Z.jsx("div",{className:qn(Sn.canvasContainer,{[s]:!!s}),ref:Ot,style:{minHeight:j1?"50vh":"unset",touchAction:"none !important",position:"relative"},children:ui?se&&(se!=null&&se.file_size)?Z.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",padding:"12px",borderRadius:"8px",backgroundColor:"#fff",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",width:"280px"},children:[Z.jsx("div",{style:{fontSize:"16px",fontWeight:"bold",color:"#333"},children:"📷 Image Details"}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Name:"})," ",se==null?void 0:se.awi_label]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Size:"})," ",p2.byteToSize(se.file_size)]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#007bff",fontWeight:"bold"},children:["🔄 Loading Image ",de+1,"..."]})]}):Z.jsxs("div",{children:["Image number ",de+1," is loading..."]}):Z.jsxs(Z.Fragment,{children:[Ue&&Z.jsx(ac,{isEditing:c,handleSelectTool:h,annotator_name:((f=(h9=(Si=D==null?void 0:D.result)==null?void 0:Si.annotatorInfo)==null?void 0:h9.awi_personal_info)==null?void 0:f.awi_full_name)||"",handleSAMToggle:E,hasAnnotation:bn,SAMToggleValue:P,currentSelectedSAMTool:T,handleCopyAnnotations:N,setOpenRequestDetails:F,openRequestDetails:j,show_guidelines_first:oe,handleZoomInClick:Io,zoomProperties:at,handleReset:r0,handleZoomOutClick:lr,handleCompleteAnnotation:ln,toggleFullscreen:d2,selectAnnotationId:Pt,selectedAnnotationInfo:Fn,undoLastStateAnnotation:u9,usingSamFunction:Tn,samAPIactive:rn,handleSendToSamFunction:No,coordinates:nt,reLoadAndReDrawAnnotations:c9,showGuidelinesFirst:oe,handleSendToSamFunctionPrompt:d1,isMobile:j1,toggleSelectAnnotation:st,handleLeftKeyDown:Do,handleRightKeyDown:Po,handleUpKeyDown:P2,handleDownKeyDown:io,undoAnnotationPoint:m1,togglePagination:f9,switchToEditMode:xe,switchToCreateMode:we,goToNextImage:ve,goToPreviousImage:he,handleGoToPendingAnnotations:le,handleCopyByCtrlC:b3,handlePasteAnnotationsByControlV:ae,showPagination:K,isControlViaToolPress:dt,setIsControlViaToolPress:qe,isAltViaToolPress:ft,setIsAltViaToolPress:Nt,isCarousel:v,allowedToCopyPreview:H,classColorMapToSend:A,request:ge,parentReqData:et,RequestInfoModal:ne,setCrossHair:u0,isCrossHair:u1,annotationViewType:Ve,REACT_APP_SAM_ENABLED:ct,loggedUser:m,controlMinusHotkey:u2,controlPlusHotkey:Qr,Carousel:ot},i),Z.jsx(lc,{canvasDimensions:yt,zoomProperties:at,isEditing:c,canvasRef:Ye,bgCanvasRef:Ar,overlayCanvasRef:Et,handleMouseDown:Ei,handleMouseUp:T2,handleMouseMove:ao,handleMouseMoveOut:la,handleOnMouseLeave:wi,handleWheel:H0,handleTouchStart:d9,handleTouchMove:so,handleTouchEnd:f2,handleTouchCancel:Ro})]})}),!v&&Ve=="atom"&&Z.jsxs("div",{style:{display:"flex",flexDirection:j1?"column":"row"},children:[Z.jsx("div",{style:{height:j1?"unset":"100%",width:j1?"100%":"5.4%",border:"1px solid #E4E0E6",backgroundColor:"white"},children:["awi_annotator","awi_verifier","awi_developer"].includes(m.userObj.awi_level)&&Z.jsx("div",{style:{width:"100%",gap:"10px",marginTop:"2px",height:"100% ",display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:j1?"row":"column"},children:Ue&&Z.jsx(ac,{isEditing:c,handleSelectTool:h,annotator_name:((V=(B=(b=D==null?void 0:D.result)==null?void 0:b.annotatorInfo)==null?void 0:B.awi_personal_info)==null?void 0:V.awi_full_name)||"",handleSAMToggle:E,hasAnnotation:bn,SAMToggleValue:P,currentSelectedSAMTool:T,handleCopyAnnotations:N,setOpenRequestDetails:F,openRequestDetails:j,show_guidelines_first:oe,handleZoomInClick:Io,zoomProperties:at,handleReset:r0,handleZoomOutClick:lr,handleCompleteAnnotation:ln,toggleFullscreen:d2,selectAnnotationId:Pt,selectedAnnotationInfo:Fn,undoLastStateAnnotation:u9,usingSamFunction:Tn,samAPIactive:rn,handleSendToSamFunction:No,coordinates:nt,reLoadAndReDrawAnnotations:c9,showGuidelinesFirst:oe,handleSendToSamFunctionPrompt:d1,isMobile:j1,toggleSelectAnnotation:st,handleLeftKeyDown:Do,handleRightKeyDown:Po,handleUpKeyDown:P2,handleDownKeyDown:io,undoAnnotationPoint:m1,togglePagination:f9,switchToEditMode:xe,switchToCreateMode:we,goToNextImage:ve,goToPreviousImage:he,handleGoToPendingAnnotations:le,handleCopyByCtrlC:b3,handlePasteAnnotationsByControlV:ae,showPagination:K,isControlViaToolPress:dt,setIsControlViaToolPress:qe,isAltViaToolPress:ft,setIsAltViaToolPress:Nt,isCarousel:v,allowedToCopyPreview:H,classColorMapToSend:A,request:ge,parentReqData:et,RequestInfoModal:ne,setCrossHair:u0,isCrossHair:u1,annotationViewType:Ve,REACT_APP_SAM_ENABLED:ct,loggedUser:m,controlMinusHotkey:u2,controlPlusHotkey:Qr,Carousel:ot},i)})}),Z.jsxs("div",{style:j1?{height:"100%",width:"100%"}:{width:"94.6%"},children:[!j1&&Z.jsxs("div",{style:{width:"100%",display:"flex",alignItems:"center",height:j1?"8%":"3%",border:"1px solid #E4E0E6",background:"white",justifyContent:"space-between"},children:[Z.jsxs("div",{style:{display:"flex",flexDirection:"row",height:"100%",alignItems:"center"},children:[Z.jsxs("div",{className:"color-black",style:{width:"4.8rem",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:[Z.jsx("span",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"50%",backgroundColor:" rgba(111, 41, 169, 0.20)",height:"100%"},children:de+1}),Z.jsx("span",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"50%",backgroundColor:Fe||"rgba(111, 41, 169, 0.1)",height:"100%"},children:(((X=D==null?void 0:D.result)==null?void 0:X.awi_contents)||[]).length})]}),Z.jsxs("p",{className:"color-black",style:{marginLeft:"1rem"},title:((ie=G==null?void 0:G.awi_label)==null?void 0:ie.length)>20?G.awi_label:J.length>20?J:"",children:["Image -"," ",((De=G==null?void 0:G.awi_label)==null?void 0:De.length)>0?G.awi_label.length>20?G.awi_label.substring(0,20)+"...":G.awi_label:J.length>20?J.substring(0,20)+"...":J]}),Z.jsx("p",{className:"color-black",style:{marginLeft:"1rem"},children:((_e==null?void 0:_e.result)||[]).length>0&&`Annotations - ${((_e==null?void 0:_e.result)||[]).length} (Recent First) ${S.size?`Selected - ${((_e==null?void 0:_e.result)||[]).length-S.size}`:""}`})]}),Z.jsx("div",{children:Z.jsxs("div",{style:{fontWeight:"bold",display:"flex",alignItems:"center",justifyContent:"center"},className:"color-black",children:[Z.jsx("div",{children:A0}),(A0==null?void 0:A0.length)>0&&Z.jsx(V6,{color:"#000"})]})})]}),Z.jsx("div",{children:K&&j1&&Ke&&Z.jsx("div",{style:{border:"1px solid #E4E0E6"},children:Z.jsx(Ke,{handleNextPage:z,handlePreviousPage:R,currentPage:$,images:(Je=D==null?void 0:D.result)==null?void 0:Je.awi_contents,handleIndexUpdate:W,currentIndex:de,request_id:q,requestFor:(rt=D==null?void 0:D.result)==null?void 0:rt.awi_request_for,imagePagination:K,showImages:!0,fetchAnnotations:Le,pageCount:Be})})}),Z.jsx("div",{style:{height:j1||m3?"25px":"3%",border:"1px solid #E4E0E6",justifyContent:"space-between",paddingLeft:"10px",paddingRight:"10px",backgroundColor:"#fff"},children:j1&&(A0==null?void 0:A0.length)>0?Z.jsx(Z.Fragment,{children:Z.jsx("div",{className:qn(Sn.zoom__container,"color-black"),style:{height:"25px",justifyContent:"center",alignItems:"center",fontWeight:"bold"},children:A0})}):Z.jsx(Z.Fragment,{children:at.scale>1?Z.jsx(Z.Fragment,{children:Z.jsxs("div",{className:qn(Sn.zoom__container,"color-black"),style:{height:"25px",justifyContent:"space-between",alignItems:"center"},children:[Z.jsx("button",{className:"modalButton modalButton__tertiaryChoice pan_small",onClick:()=>fa("left"),children:"Left"}),Z.jsx("progress",{value:l2.left,max:yt.width,title:l2.left==0?"You can not move left more":"Showing how much you can move left more"}),Z.jsx("button",{className:"modalButton modalButton__tertiaryChoice pan_small",onClick:()=>fa("right"),children:"Right"}),Z.jsx("progress",{value:l2.right,max:yt.width,title:l2.right==0?"You can not move right more":"Showing how much you can move right more"}),Z.jsx("button",{className:"modalButton modalButton__tertiaryChoice pan_small",onClick:()=>fa("top"),children:"Top"}),Z.jsx("progress",{value:l2.top,max:yt.height,title:l2.top==0?"You can not move top more":"Showing how much you can move top more"}),Z.jsx("button",{className:"modalButton modalButton__tertiaryChoice pan_small",onClick:()=>fa("bottom"),children:"Bottom"}),Z.jsx("progress",{value:l2.bottom,max:yt.height,title:l2.bottom==0?"You can not move bottom more":"Showing how much you can move bottom more"})]})}):Z.jsx("div",{className:qn(Sn.zoom__container,"color-black"),style:{height:"25px",justifyContent:"center",alignItems:"center"},children:"Zoom in to see image pan progress"})})}),Z.jsx("div",{className:qn(Sn.canvasContainer,{[s]:!!s}),ref:Ot,style:{height:K?"80%":"90%",width:"100%",touchAction:"none !important",minHeight:j1?"50vh":"unset",position:"relative"},children:ui?se&&(se!=null&&se.file_size)?Z.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",padding:"12px",borderRadius:"8px",backgroundColor:"#fff",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",width:"280px"},children:[Z.jsx("div",{style:{fontSize:"16px",fontWeight:"bold",color:"#333"},children:"📷 Image Details"}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Name:"})," ",se==null?void 0:se.awi_label]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Size:"})," ",p2.byteToSize(se.file_size)]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#007bff",fontWeight:"bold"},children:["🔄 Loading Image ",de+1,"..."]})]}):Z.jsxs("div",{children:["Image number ",de+1," is loading..."]}):Z.jsx(lc,{canvasDimensions:yt,zoomProperties:at,isEditing:c,canvasRef:Ye,bgCanvasRef:Ar,overlayCanvasRef:Et,handleMouseDown:Ei,handleMouseUp:T2,handleMouseMove:ao,handleMouseMoveOut:la,handleOnMouseLeave:wi,handleWheel:H0,handleTouchStart:d9,handleTouchMove:so,handleTouchEnd:f2,handleTouchCancel:Ro})}),K&&!j1&&Ke&&Z.jsx("div",{children:K&&Z.jsx("div",{style:{border:"1px solid #E4E0E6"},children:Z.jsx(Ke,{handleNextPage:z,handlePreviousPage:R,currentPage:$,images:(Bt=D==null?void 0:D.result)==null?void 0:Bt.awi_contents,handleIndexUpdate:W,currentIndex:de,request_id:q,requestFor:(on=D==null?void 0:D.result)==null?void 0:on.awi_request_for,imagePagination:K,showImages:!0,fetchAnnotations:Le,pageCount:Be})})})]})]}),!v&&Ve=="library"&&Z.jsxs(Z.Fragment,{children:[Ue&&Z.jsx(ac,{isEditing:c,handleSelectTool:h,annotator_name:((g0=(Yn=(Pn=D==null?void 0:D.result)==null?void 0:Pn.annotatorInfo)==null?void 0:Yn.awi_personal_info)==null?void 0:g0.awi_full_name)||"",handleSAMToggle:E,hasAnnotation:bn,SAMToggleValue:P,currentSelectedSAMTool:T,handleCopyAnnotations:N,setOpenRequestDetails:F,openRequestDetails:j,show_guidelines_first:oe,handleZoomInClick:Io,zoomProperties:at,handleReset:r0,handleZoomOutClick:lr,handleCompleteAnnotation:ln,toggleFullscreen:d2,selectAnnotationId:Pt,selectedAnnotationInfo:Fn,undoLastStateAnnotation:u9,usingSamFunction:Tn,samAPIactive:rn,handleSendToSamFunction:No,coordinates:nt,reLoadAndReDrawAnnotations:c9,showGuidelinesFirst:oe,handleSendToSamFunctionPrompt:d1,isMobile:!0,toggleSelectAnnotation:st,handleLeftKeyDown:Do,handleRightKeyDown:Po,handleUpKeyDown:P2,handleDownKeyDown:io,undoAnnotationPoint:m1,togglePagination:f9,switchToEditMode:xe,switchToCreateMode:we,goToNextImage:ve,goToPreviousImage:he,handleGoToPendingAnnotations:le,handleCopyByCtrlC:b3,handlePasteAnnotationsByControlV:ae,showPagination:K,isControlViaToolPress:dt,setIsControlViaToolPress:qe,isAltViaToolPress:ft,setIsAltViaToolPress:Nt,isCarousel:v,allowedToCopyPreview:H,classColorMapToSend:A,request:ge,parentReqData:et,RequestInfoModal:ne,setCrossHair:u0,isCrossHair:u1,annotationViewType:Ve,REACT_APP_SAM_ENABLED:ct,loggedUser:m,controlMinusHotkey:u2,controlPlusHotkey:Qr,Carousel:ot},i),Z.jsx("div",{className:qn(Sn.canvasContainer,{[s]:!!s}),ref:Ot,style:{height:K?"80%":"90%",width:"100%",touchAction:"none !important",minHeight:j1?"50vh":"unset",position:"relative"},children:ui?se&&(se!=null&&se.file_size)?Z.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",padding:"12px",borderRadius:"8px",backgroundColor:"#fff",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",width:"280px"},children:[Z.jsx("div",{style:{fontSize:"16px",fontWeight:"bold",color:"#333"},children:"📷 Image Details"}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Name:"})," ",se==null?void 0:se.awi_label]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#555"},children:[Z.jsx("strong",{children:"Size:"})," ",p2.byteToSize(se.file_size)]}),Z.jsxs("div",{style:{fontSize:"14px",color:"#007bff",fontWeight:"bold"},children:["🔄 Loading Image ",de+1,"..."]})]}):Z.jsxs("div",{children:["Image number ",de+1," is loading..."]}):Z.jsx(lc,{canvasDimensions:yt,zoomProperties:at,isEditing:c,canvasRef:Ye,bgCanvasRef:Ar,overlayCanvasRef:Et,handleMouseDown:Ei,handleMouseUp:T2,handleMouseMove:ao,handleMouseMoveOut:la,handleOnMouseLeave:wi,handleWheel:H0,handleTouchStart:d9,handleTouchMove:so,handleTouchEnd:f2,handleTouchCancel:Ro})})]}),t1!=-1&&h3&&Z.jsx(Gb,{callback:()=>X0(h3,t1),cancelCallBack:()=>{ci(-1)},trigger:"REMOVE_POLYGON_POINT",fireOnMount:!0,children:Z.jsx(Z.Fragment,{})})]})},_2={message__container:"_message__container_u7nyp_1",message__container__icon:"_message__container__icon_u7nyp_15",message__container__title:"_message__container__title_u7nyp_19",message__container__title__success:"_message__container__title__success_u7nyp_24",message__container__description:"_message__container__description_u7nyp_27",message__container__loading:"_message__container__loading_u7nyp_31",pulse:"_pulse_u7nyp_1"},uc=({iconUrl:e,title:t,description:n,messageType:r="information",isLoading:o=!1,textClass:i="",noPadding:a,iconName:s=""})=>{var c,u;return o?Z.jsxs("div",{className:qn(_2.message__container,_2.message__container__loading),children:[s&&(s==null?void 0:s.length)>0&&Z.jsx("img",{src:(c=q1[s])==null?void 0:c.IconComponent,className:_2.message__container__icon}),e&&(e==null?void 0:e.length)>0&&Z.jsx("img",{src:e,className:_2.message__container__icon}),Z.jsx("h1",{className:qn(_2.message__container__title,{[_2.message__container__title__success]:r==="success"}),children:t}),Z.jsx("p",{className:qn(_2.message__container__description,i),children:n})]}):Z.jsxs("div",{className:qn(_2.message__container,{noPadding:a}),children:[s&&(s==null?void 0:s.length)>0&&Z.jsx("img",{src:(u=q1[s])==null?void 0:u.IconComponent,className:_2.message__container__icon}),e&&(e==null?void 0:e.length)>0&&Z.jsx("img",{src:e,className:_2.message__container__icon}),Z.jsx("h1",{className:qn(_2.message__container__title,{[_2.message__container__title__success]:r==="success"}),children:t}),Z.jsx("p",{className:qn(_2.message__container__description,i),children:n})]})},x_={ATTRIBUTES:{labelValue:"Attributes",src:"noAttributes",description:"No attributes are available. Start by adding or configuring attributes.",messageType:"information",loadingMessage:"Loading attributes...",notFoundMessage:"No attributes found"},ORGANISATIONS:{labelValue:"Organisations",src:"noOrganisations",description:"There are no organisations available. Add a new organisation to get started.",messageType:"information",loadingMessage:"Loading organizations...",notFoundMessage:"No organisations found"},REQUESTS:{labelValue:"Requests",src:"noRequests",description:"There are no requests available. Raised requests will be displayed here.",messageType:"information",loadingMessage:"Loading requests...",notFoundMessage:"No requests found"},USERS:{labelValue:"Users",src:"noUsers",description:"No users have been added yet. Start by inviting or creating users.",messageType:"information",loadingMessage:"Loading users...",notFoundMessage:"No users found"},USERS_IN_REQUEST:{labelValue:"Users",src:"noUsers",description:"No users found.",messageType:"information",loadingMessage:"Loading users...",notFoundMessage:"No users found"},CLASSES:{labelValue:"Classes",src:"noClasses",description:"There are no classes available. Add a new class to begin.",messageType:"information",loadingMessage:"Loading classes...",notFoundMessage:"No classes found"},IMAGES:{labelValue:"Images",src:"noImages",description:"No images are currently available. Upload images to view them here.",messageType:"information",loadingMessage:"Loading images...",notFoundMessage:"No images found"},ANNOTATOR_NO_SESSIONS:{labelValue:"Sessions",src:"noSessions",description:"No sessions are currently available. Annotator Sessions will be listed here.",messageType:"information",loadingMessage:"Loading sessions...",notFoundMessage:"No sessions found"},VERIFIER_NO_SESSIONS:{labelValue:"Sessions",src:"noSessions",description:"No sessions are currently available. Verifier Sessions will be listed here.",messageType:"information",loadingMessage:"Loading sessions...",notFoundMessage:"No sessions found"},MODELS:{labelValue:"Models",src:"noModels",description:"There are no models available. Run jobs and train models to get started.",messageType:"information",loadingMessage:"Loading models...",notFoundMessage:"No models found"},JOBS:{labelValue:"Jobs",src:"noJobs",description:"No jobs are currently scheduled or running. Create a job to see it listed here.",messageType:"information",loadingMessage:"Loading jobs...",notFoundMessage:"No jobs found"},MODEL_LOGS:{labelValue:"Model Logs",src:"noJobLogs",description:"There are no logs available for the models. Generate or upload logs to view them.",messageType:"information",loadingMessage:"Loading model logs...",notFoundMessage:"No model logs found"},DATASETS:{labelValue:"Datasets",src:"noDatasets",description:"No datasets are available. Upload or create datasets to start working.",messageType:"information",loadingMessage:"Loading datasets...",notFoundMessage:"No datasets found"},BILLS:{labelValue:"Bills",src:"noBills",description:"No bills are currently available. Generated bills will be listed here.",messageType:"information",loadingMessage:"Loading bills...",notFoundMessage:"No bills found"},MODEL_METRICS:{labelValue:"Model Metrics",src:"noModelMetrics",description:"No metrics are available for the models. Generated metrics for analyzing performance will be listed here.",messageType:"information",loadingMessage:"Loading model metrics...",notFoundMessage:"No model metrics found"},MODEL_DETAILS:{labelValue:"Model Details",src:"noModelDetails",description:"Details for the models are not available. Add or update model details to view them.",messageType:"information",loadingMessage:"Loading model details...",notFoundMessage:"No model details found"},MODEL_RESOURCES:{labelValue:"Model Resources",src:"noModelResources",description:"No resources are available for the models. Add resources to start utilizing them.",messageType:"information",loadingMessage:"Loading model resources...",notFoundMessage:"No model resources found"},NOTIFICATIONS:{labelValue:"Notifications",src:"noNotifications",description:"No notifications are available. New notifications will be displayed here.",messageType:"information",loadingMessage:"Loading notifications...",notFoundMessage:"No notifications found"},REQUEST_IMAGES:{labelValue:"Request Images",src:"noRequestImages",description:"No request images are currently available.",messageType:"information",loadingMessage:"Loading images...",notFoundMessage:"No request images found"},REQUEST_PRICING:{labelValue:"Request Pricing",src:"noPrices",description:"No request pricing are currently available.",messageType:"information",loadingMessage:"Loading pricing...",notFoundMessage:"No request pricing found"},ANNOTATION_GRAPH:{labelValue:"Annotation Graph",src:"noAnnotationGraph",description:"No annotation analytics are available for the given date",messageType:"information",loadingMessage:"Loading annotation graph...",notFoundMessage:"No annotations"},LOADING_CAROUSAL:{labelValue:"Images",src:"noImages",description:"No images is available to load",messageType:"information",loadingMessage:"Loading images...",notFoundMessage:"No images found"},TAGS:{labelValue:"Tags",src:"noTags",description:"No tags are available. Start by adding or configuring tags.",messageType:"information",loadingMessage:"Loading tags...",notFoundMessage:"No tags found"},NO_CSV_REQUESTS:{labelValue:"Requests",src:"noRequests",description:"There are no requests available in sheet, kindly add and upload.",messageType:"information",loadingMessage:"Loading requests...",notFoundMessage:"No requests found"},NO_CSV_CLASS:{labelValue:"Classes",src:"noClasses",description:"There are no classes available in sheet, kindly add and upload.",messageType:"information",loadingMessage:"Loading classes...",notFoundMessage:"No classes found"},CLASS_PROPORTION:{labelValue:"Class proportion",src:"noClasses",description:"No class proportion available.",messageType:"information",loadingMessage:"Loading class proportion...",notFoundMessage:"No class proportion found"},SINGLE_CLASS:{labelValue:"Class",src:"noClasses",description:"No class available.",messageType:"information",loadingMessage:"Loading class...",notFoundMessage:"No classes found"},LOADING_FILTER:{labelValue:"Filter",src:"noClasses",description:"No filter configuration.",messageType:"information",loadingMessage:"Loading filter information...",notFoundMessage:"No filter configuration found"},LOADING_ANNOTATION:{labelValue:"Annotation Loading",src:"noImages",description:"No annotation found",messageType:"information",loadingMessage:"Please wait, loading annotation...",notFoundMessage:"No annotations"},LOADING_REQUEST:{labelValue:"Request Loading",src:"noRequests",description:"No request found",messageType:"information",loadingMessage:"Please wait, loading request info...",notFoundMessage:"No request"},NOT_FOUND_GENERAL:{labelValue:"Data Loading",src:"notFoundGeneral",description:"No data found",messageType:"information",loadingMessage:"Please wait, loading data...",notFoundMessage:"No data"}},iee=({stateKey:e="NOT_FOUND_GENERAL",loadState:t=!1,stateDescription:n=null,stateLoadDescription:r=null,showImage:o=!1,textClass:i="",noPadding:a=!1,stateTitle:s=""})=>{const c=x_[e]||x_.NOT_FOUND_GENERAL;if(!c)return Z.jsx(Z.Fragment,{});const{labelValue:u,src:d,messageType:h,description:g,notFoundMessage:m}=c;if(t)return Z.jsxs("div",{style:{width:"100%"},children:[o&&Z.jsx(uc,{title:c.loadingMessage,iconName:d,description:r||"",isLoading:!0,noPadding:a}),!o&&Z.jsx(uc,{title:c.loadingMessage,description:r||"",isLoading:!0,noPadding:a})]});{const v=(s==null?void 0:s.length)>0?s:m?m||`No ${u} Found`:"",A=n||g;return Z.jsx("div",{style:{width:"100%"},children:Z.jsx(uc,{title:v,iconName:d,description:A,messageType:h,textClass:i,noPadding:a})})}},e2={tableBar:"_tableBar_103oy_1",buttonGroup:"_buttonGroup_103oy_13",btnIcon:"_btnIcon_103oy_34",searchBar:"_searchBar_103oy_41",searchInput:"_searchInput_103oy_53",searchIcon:"_searchIcon_103oy_58",removeBorder:"_removeBorder_103oy_63",button:"_button_103oy_13",isSelected:"_isSelected_103oy_74",isDisabled:"_isDisabled_103oy_80",isActive:"_isActive_103oy_85",isText:"_isText_103oy_92"},aee=({showSearch:e=!1,leftButtons:t=[],rightButtons:n=[],searchFunction:r,searchDelay:o=300,onSearchClick:i,searchPlaceHolder:a="Search...",showSearchEye:s=!0,borderRequired:c=!0,borderColor:u})=>{const d=O.useCallback(L4.debounce((v,A)=>{typeof A=="function"&&A(v)},o),[o]),h=v=>{const A=v.currentTarget.value.trim();d(A,r)},g=()=>{typeof i=="function"&&i()};if(!t.length&&!n.length&&!e)return null;const m=(v,A)=>{const p=v.type==="text";return Z.jsxs("button",{onClick:!p&&!v.isDisabled?v.onClick:void 0,title:v.title||"",disabled:v.isDisabled,className:qn(e2.button,{[e2.isText]:p,[e2.isSelected]:v.isSelected,[e2.isDisabled]:v.isDisabled,[e2.isActive]:v.isActive&&!v.isSelected}),children:[v.icon&&Z.jsx("img",{src:v.icon,alt:v.name,className:e2.btnIcon}),Z.jsx("div",{children:v.name})]},A)};return Z.jsxs("div",{className:qn(e2.tableBar,!c&&e2.removeBorder),style:{borderColor:c?u||"#909090":void 0},children:[Z.jsxs("div",{className:e2.buttonGroup,children:[t.map(m)," "]}),Z.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"10px"},children:[Z.jsx("div",{className:e2.buttonGroup,children:n.map(m)}),e&&Z.jsx("div",{className:e2.searchBar,title:a,children:Z.jsxs("form",{autoComplete:"off",style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",position:"relative"},children:[Z.jsx("input",{type:"text",name:"userSearchInput",autoComplete:"off",placeholder:a,className:e2.searchInput,onKeyUp:h}),s&&Z.jsx("img",{src:q1.searchUrl.IconComponent,alt:a,className:qn(e2.btnIcon,"cursor-pointer",e2.searchIcon),onClick:g})]})})]})]})},E_=({currentPage:e,totalPages:t,onPageChange:n,isLoading:r=!1})=>{const[o,i]=O.useState(`${e}`);O.useEffect(()=>{i(`${e}`)},[e]);const a=()=>{const s=Number(o);s>=1&&s<=t&&n(s),i("")};return Z.jsx(Z.Fragment,{children:Z.jsxs("div",{className:gr.pagination_container,children:[Z.jsx("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",maxHeight:"2vh"},children:r?Z.jsx(Z.Fragment,{children:Z.jsx("div",{className:gr.pagination_loading,children:"Loading..."})}):Z.jsxs(Z.Fragment,{children:[Z.jsx("div",{className:gr.pagination_left,children:Z.jsx("input",{type:"number",min:"1",max:t,value:o,onChange:s=>{i(s.target.value)},onBlur:()=>{if(o==""){i(`${e}`);return}const s=parseInt(o,10);if(!isNaN(s)){let c=Math.max(1,Math.min(t,s)).toString();c!=null&&c.length||(c="1"),i(c),a()}},onKeyDown:s=>{if(s.key==="Enter"){s==null||s.preventDefault(),s==null||s.stopPropagation();const c=parseInt(o,10);if(!isNaN(c)){const u=Math.max(1,Math.min(t,c)).toString();i(u),a()}}},placeholder:o,style:{background:"transparent",border:"0",width:"100%",height:"100%"}})}),Z.jsx("div",{className:gr.pagination_right,children:t})]})}),Z.jsxs("div",{style:{gap:"20px",display:"flex"},children:[Z.jsx("img",{src:q1.backArrow.IconComponent,onClick:()=>e>1&&n(e-1),style:{cursor:e>1?"pointer":"not-allowed"},className:gr.nextPrevArrow,title:e>1?`Go to page number ${e-1} `:"Go to previous page is not allowed"}),Z.jsx("img",{src:q1.forwardArrow.IconComponent,onClick:()=>e<t&&n(e+1),style:{cursor:e<t?"pointer":"not-allowed"},className:gr.nextPrevArrow,title:e<t?`Go to page number ${e+1}`:"Go to next page is not allowed"})]})]})})},see=({hasNextPage:e,isFetchingNextPage:t=!1,fetchNextPage:n,isLoading:r=!1,totalResults:o=0,totalFetchedResults:i=0,currentPage:a=1,totalPages:s=10,onPageChange:c,isPagination:u=!1,loadText:d=""})=>{let h="Load More";return i+1===o?h="Load last results":r||t?u?a==1?h="Loading...":h=`Loading page number ${a}`:o===0?h="Loading...":i+1===o?h="Loading last results...":h=`Loading ${i+1} to ${o}`:i===0?(d==null?void 0:d.length)==0?h="Load":h=d:h=`Load ${i+1} to ${o}`,u&&c?Z.jsx(E_,{currentPage:a,totalPages:s,onPageChange:c,isLoading:r||t}):Z.jsx("div",{className:gr.loadMoreButtonDiv,style:{display:"flex",justifyContent:"center",marginTop:"16px"},children:e&&!t&&Z.jsx("div",{className:gr.loadMoreButtonContainer,children:Z.jsx("button",{onClick:()=>n?n():void 0,className:"modalButton modalButton__purpleColor",disabled:r||t,children:h})})})},lee=({items:e,listType:t="ul",maxHeight:n="100px"})=>{const r=t;return!e||e.length===0?Z.jsx("div",{style:{minWidth:"30px"},children:"N/A"}):Z.jsx(r,{style:{maxHeight:n,overflow:"auto",paddingLeft:"20px"},children:e.map((o,i)=>Z.jsx("li",{style:{minWidth:"10vw"},children:o},i))})};var S_=(e=>(e.LARGE="l",e.MEDIUM="m",e))(S_||{});const cee=({badgeContent:e,variant:t=S_.LARGE,backgroundColor:n,textColor:r,className:o,style:i,...a})=>Z.jsx("span",{className:`badge badge_${t} ${o} ${e?"":"badge_dot"}`,style:{"--c_background":n,"--c_text":r,...i},...a,children:e}),uee=({items:e,value:t,onChange:n=()=>{},color:r,width:o,size:i="s",gap:a})=>Z.jsx("div",{className:"button_group",style:{gap:a},children:e==null?void 0:e.map((s,c)=>Z.jsx(er,{variant:"primary",content:s==null?void 0:s.label,icon:s==null?void 0:s.icon,iconPosition:(s==null?void 0:s.iconPosition)??"before",textColor:s==null?void 0:s.contentColor,iconColor:s==null?void 0:s.contentColor,onClick:()=>n(s.value),width:o,className:`button_group_button ${c==0?"first":""} ${c==e.length-1?"last":""} ${s.value==t?"active":""}`,backgroundColor:r,borderColor:r,disabled:s.disabled,size:i},s.value))});/*!
341
341
  * @kurkle/color v0.3.4
342
342
  * https://github.com/kurkle/color#readme
343
343
  * (c) 2024 Jukka Kurkela
@@ -354,7 +354,7 @@ function print() { __p += __j.call(arguments, '') }
354
354
  * Released under the MIT License
355
355
  */class tne{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(s=>s({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=W_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,s=!1,c;for(;a>=0;--a)c=i[a],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(t),s=!0):(i[a]=i[i.length-1],i.pop());s&&(o.draw(),this._notify(o,r,t,"progress")),i.length||(r.running=!1,this._notify(o,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ji=new tne;const wy="transparent",nne={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=q_(e||wy),o=r.valid&&q_(t||wy);return o&&o.valid?o.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class rne{constructor(t,n,r,o){const i=n[r];o=yc([t.to,o,i,t.from]);const a=yc([t.from,i,o]);this._active=!0,this._fn=t.fn||nne[t.type||typeof a],this._easing=$4[t.easing]||$4.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=yc([t.to,n,o,t.from]),this._from=yc([t.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,s=this._to;let c;if(this._active=i!==s&&(a||n<r),!this._active){this._target[o]=s,this._notify(!0);return}if(n<0){this._target[o]=i;return}c=n/r%2,c=a&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[o]=this._fn(i,s,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let o=0;o<r.length;o++)r[o][n]()}}class xy{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!A1(t))return;const n=Object.keys(D0.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(o=>{const i=t[o];if(!A1(i))return;const a={};for(const s of n)a[s]=i[s];(W0(i.properties)&&i.properties||[o]).forEach(s=>{(s===o||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,o=ine(t,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&one(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,o=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let c;for(c=a.length-1;c>=0;--c){const u=a[c];if(u.charAt(0)==="$")continue;if(u==="options"){o.push(...this._animateOptions(t,n));continue}const d=n[u];let h=i[u];const g=r.get(u);if(h)if(g&&h.active()){h.update(g,d,s);continue}else h.cancel();if(!g||!g.duration){t[u]=d;continue}i[u]=h=new rne(g,t,u,d),o.push(h)}return o}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return ji.add(this._chart,r),!0}}function one(e,t){const n=[],r=Object.keys(t);for(let o=0;o<r.length;o++){const i=e[r[o]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function ine(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Ey(e,t){const n=e&&e.options||{},r=n.reverse,o=n.min===void 0?t:0,i=n.max===void 0?t:0;return{start:r?i:o,end:r?o:i}}function ane(e,t,n){if(n===!1)return!1;const r=Ey(e,n),o=Ey(t,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}function sne(e){let t,n,r,o;return A1(e)?(t=e.top,n=e.right,r=e.bottom,o=e.left):t=n=r=o=e,{top:t,right:n,bottom:r,left:o,disabled:e===!1}}function Sy(e,t){const n=[],r=e._getSortedDatasetMetas(t);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function My(e,t,n,r={}){const o=e.keys,i=r.mode==="single";let a,s,c,u;if(t===null)return;let d=!1;for(a=0,s=o.length;a<s;++a){if(c=+o[a],c===n){if(d=!0,r.all)continue;break}u=e.values[c],xr(u)&&(i||t===0||Ko(t)===Ko(u))&&(t+=u)}return!d&&!r.all?0:t}function lne(e,t){const{iScale:n,vScale:r}=t,o=n.axis==="x"?"x":"y",i=r.axis==="x"?"x":"y",a=Object.keys(e),s=new Array(a.length);let c,u,d;for(c=0,u=a.length;c<u;++c)d=a[c],s[c]={[o]:d,[i]:e[d]};return s}function sf(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function cne(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function une(e){const{min:t,max:n,minDefined:r,maxDefined:o}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}function dne(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Hy(e,t,n,r){for(const o of t.getMatchingVisibleMetas(r).reverse()){const i=e[o.index];if(n&&i>0||!n&&i<0)return o.index}return null}function Ly(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=r,c=i.axis,u=a.axis,d=cne(i,a,r),h=t.length;let g;for(let m=0;m<h;++m){const v=t[m],{[c]:A,[u]:p}=v,x=v._stacks||(v._stacks={});g=x[u]=dne(o,d,A),g[s]=p,g._top=Hy(g,a,!0,r.type),g._bottom=Hy(g,a,!1,r.type);const y=g._visualValues||(g._visualValues={});y[s]=p}}function lf(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function fne(e,t){return N9(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function hne(e,t,n){return N9(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Q4(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const o of t){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const cf=e=>e==="reset"||e==="none",By=(e,t)=>t?e:Object.assign({},e),gne=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Sy(n,!0),values:null};class z9{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=sf(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Q4(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(h,g,m,v)=>h==="x"?g:h==="r"?v:m,i=n.xAxisID=h1(r.xAxisID,lf(t,"x")),a=n.yAxisID=h1(r.yAxisID,lf(t,"y")),s=n.rAxisID=h1(r.rAxisID,lf(t,"r")),c=n.indexAxis,u=n.iAxisID=o(c,i,a,s),d=n.vAxisID=o(c,a,i,s);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&U_(this._data,this),t._stacked&&Q4(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(A1(n)){const o=this._cachedMeta;this._data=lne(n,o)}else if(r!==n){if(r){U_(r,this);const o=this._cachedMeta;Q4(o),o._parsed=[]}n&&Object.isExtensible(n)&&qee(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=sf(n.vScale,n),n.stack!==r.stack&&(o=!0,Q4(n),n.stack=r.stack),this._resyncElements(t),(o||i!==n._stacked)&&(Ly(this,n._parsed),n._stacked=sf(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,s=i.axis;let c=t===0&&n===o.length?!0:r._sorted,u=t>0&&r._parsed[t-1],d,h,g;if(this._parsing===!1)r._parsed=o,r._sorted=!0,g=o;else{W0(o[t])?g=this.parseArrayData(r,o,t,n):A1(o[t])?g=this.parseObjectData(r,o,t,n):g=this.parsePrimitiveData(r,o,t,n);const m=()=>h[s]===null||u&&h[s]<u[s];for(d=0;d<n;++d)r._parsed[d+t]=h=g[d],c&&(m()&&(c=!1),u=h);r._sorted=c}a&&Ly(this,g)}parsePrimitiveData(t,n,r,o){const{iScale:i,vScale:a}=t,s=i.axis,c=a.axis,u=i.getLabels(),d=i===a,h=new Array(o);let g,m,v;for(g=0,m=o;g<m;++g)v=g+r,h[g]={[s]:d||i.parse(u[v],v),[c]:a.parse(n[v],v)};return h}parseArrayData(t,n,r,o){const{xScale:i,yScale:a}=t,s=new Array(o);let c,u,d,h;for(c=0,u=o;c<u;++c)d=c+r,h=n[d],s[c]={x:i.parse(h[0],d),y:a.parse(h[1],d)};return s}parseObjectData(t,n,r,o){const{xScale:i,yScale:a}=t,{xAxisKey:s="x",yAxisKey:c="y"}=this._parsing,u=new Array(o);let d,h,g,m;for(d=0,h=o;d<h;++d)g=d+r,m=n[g],u[d]={x:i.parse(k9(m,s),g),y:a.parse(k9(m,c),g)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const o=this.chart,i=this._cachedMeta,a=n[t.axis],s={keys:Sy(o,!0),values:n._stacks[t.axis]._visualValues};return My(s,a,i.index,{mode:r})}updateRangeFromParsed(t,n,r,o){const i=r[n.axis];let a=i===null?NaN:i;const s=o&&r._stacks[n.axis];o&&s&&(o.values=s,a=My(o,i,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const r=this._cachedMeta,o=r._parsed,i=r._sorted&&t===r.iScale,a=o.length,s=this._getOtherScale(t),c=gne(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:h}=une(s);let g,m;function v(){m=o[g];const A=m[s.axis];return!xr(m[t.axis])||d>A||h<A}for(g=0;g<a&&!(!v()&&(this.updateRangeFromParsed(u,t,m,c),i));++g);if(i){for(g=a-1;g>=0;--g)if(!v()){this.updateRangeFromParsed(u,t,m,c);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o<i;++o)a=n[o][t.axis],xr(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,o=n.vScale,i=this.getParsed(t);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:o?""+o.getLabelForValue(i[o.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=sne(h1(this.options.clip,ane(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,o=r.data||[],i=n.chartArea,a=[],s=this._drawStart||0,c=this._drawCount||o.length-s,u=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(t,i,s,c),d=s;d<s+c;++d){const h=o[d];h.hidden||(h.active&&u?a.push(h):h.draw(t,i))}for(d=0;d<a.length;++d)a[d].draw(t,i)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const o=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];i=a.$context||(a.$context=hne(this.getContext(),t,a)),i.parsed=this.getParsed(t),i.raw=o.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=fne(this.chart.getContext(),this.index)),i.dataset=o,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=r,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const o=n==="active",i=this._cachedDataOpts,a=t+"-"+n,s=i[a],c=this.enableOptionSharing&&j4(r);if(s)return By(s,c);const u=this.chart.config,d=u.datasetElementScopeKeys(this._type,t),h=o?[`${t}Hover`,"hover",t,""]:[t,""],g=u.getOptionScopes(this.getDataset(),d),m=Object.keys(D0.elements[t]),v=()=>this.getContext(r,o,n),A=u.resolveNamedOptions(g,m,v,h);return A.$shared&&(A.$shared=c,i[a]=Object.freeze(By(A,c))),A}_resolveAnimations(t,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,s=i[a];if(s)return s;let c;if(o.options.animation!==!1){const d=this.chart.config,h=d.datasetAnimationScopeKeys(this._type,n),g=d.getOptionScopes(this.getDataset(),h);c=d.createResolver(g,this.getContext(t,r,n))}const u=new xy(o,c&&c.animations);return c&&c._cacheable&&(i[a]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||cf(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(t,n,r,o){cf(o)?Object.assign(t,r):this._resolveAnimations(n,o).update(t,r)}updateSharedOptions(t,n,r){t&&!cf(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,o){t.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,c,u]of this._syncList)this[s](c,u);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,t):i<o&&this._removeElements(i,o-i)}_insertElements(t,n,r=!0){const o=this._cachedMeta,i=o.data,a=t+n;let s;const c=u=>{for(u.length+=n,s=u.length-1;s>=a;s--)u[s]=u[s-n]};for(c(i),s=t;s<a;++s)i[s]=new this.dataElementType;this._parsing&&c(o._parsed),this.parse(t,n),r&&this.updateElements(i,t,n,"reset")}updateElements(t,n,r,o){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const o=r._parsed.splice(t,n);r._stacked&&Q4(r,o)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,o]=t;this[n](r,o)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}En(z9,"defaults",{}),En(z9,"datasetElementType",null),En(z9,"dataElementType",null);function Cne(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let o=0,i=n.length;o<i;o++)r=r.concat(n[o].controller.getAllParsedValues(e));e._cache.$bar=$_(r.sort((o,i)=>o-i))}return e._cache.$bar}function mne(e){const t=e.iScale,n=Cne(t,e.type);let r=t._length,o,i,a,s;const c=()=>{a===32767||a===-32768||(j4(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(o=0,i=n.length;o<i;++o)a=t.getPixelForValue(n[o]),c();for(s=void 0,o=0,i=t.ticks.length;o<i;++o)a=t.getPixelForTick(o),c();return r}function pne(e,t,n,r){const o=n.barThickness;let i,a;return $1(o)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:t.pixels[e]-i/2}}function vne(e,t,n,r){const o=t.pixels,i=o[e];let a=e>0?o[e-1]:null,s=e<o.length-1?o[e+1]:null;const c=n.categoryPercentage;a===null&&(a=i-(s===null?t.end-t.start:s-i)),s===null&&(s=i+i-a);const u=i-(i-Math.min(a,s))/2*c;return{chunk:Math.abs(s-a)/2*c/r,ratio:n.barPercentage,start:u}}function Ane(e,t,n,r){const o=n.parse(e[0],r),i=n.parse(e[1],r),a=Math.min(o,i),s=Math.max(o,i);let c=a,u=s;Math.abs(a)>Math.abs(s)&&(c=s,u=a),t[n.axis]=u,t._custom={barStart:c,barEnd:u,start:o,end:i,min:a,max:s}}function ky(e,t,n,r){return W0(e)?Ane(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Oy(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),s=o===i,c=[];let u,d,h,g;for(u=n,d=n+r;u<d;++u)g=t[u],h={},h[o.axis]=s||o.parse(a[u],u),c.push(ky(g,h,i,u));return c}function uf(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function bne(e,t,n){return e!==0?Ko(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function _ne(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:t,top:o,bottom:i}}function yne(e,t,n,r){let o=t.borderSkipped;const i={};if(!o){e.borderSkipped=i;return}if(o===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:s,reverse:c,top:u,bottom:d}=_ne(e);o==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?o=u:(n._bottom||0)===r?o=d:(i[Iy(d,a,s,c)]=!0,o=u)),i[Iy(o,a,s,c)]=!0,e.borderSkipped=i}function Iy(e,t,n,r){return r?(e=wne(e,t,n),e=Dy(e,n,t)):e=Dy(e,t,n),e}function wne(e,t,n){return e===t?n:e===n?t:e}function Dy(e,t,n){return e==="start"?t:e==="end"?n:e}function xne(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Hc extends z9{parsePrimitiveData(t,n,r,o){return Oy(t,n,r,o)}parseArrayData(t,n,r,o){return Oy(t,n,r,o)}parseObjectData(t,n,r,o){const{iScale:i,vScale:a}=t,{xAxisKey:s="x",yAxisKey:c="y"}=this._parsing,u=i.axis==="x"?s:c,d=a.axis==="x"?s:c,h=[];let g,m,v,A;for(g=r,m=r+o;g<m;++g)A=n[g],v={},v[i.axis]=i.parse(k9(A,u),g),h.push(ky(k9(A,d),v,a,g));return h}updateRangeFromParsed(t,n,r,o){super.updateRangeFromParsed(t,n,r,o);const i=r._custom;i&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:o}=n,i=this.getParsed(t),a=i._custom,s=uf(a)?"["+a.start+", "+a.end+"]":""+o.getLabelForValue(i[o.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,o){const i=o==="reset",{index:a,_cachedMeta:{vScale:s}}=this,c=s.getBasePixel(),u=s.isHorizontal(),d=this._getRuler(),{sharedOptions:h,includeOptions:g}=this._getSharedOptions(n,o);for(let m=n;m<n+r;m++){const v=this.getParsed(m),A=i||$1(v[s.axis])?{base:c,head:c}:this._calculateBarValuePixels(m),p=this._calculateBarIndexPixels(m,d),x=(v._stacks||{})[s.axis],y={horizontal:u,base:A.base,enableBorderRadius:!x||uf(v._custom)||a===x._top||a===x._bottom,x:u?A.head:p.center,y:u?p.center:A.head,height:u?p.size:Math.abs(A.size),width:u?Math.abs(A.size):p.size};g&&(y.options=h||this.resolveDataElementOptions(m,t[m].active?"active":o));const w=y.options||t[m].options;yne(y,w,x,a),xne(y,w,d.ratio),this.updateElement(t[m],m,y,o)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,o=r.getMatchingVisibleMetas(this._type).filter(d=>d.controller.options.grouped),i=r.options.stacked,a=[],s=this._cachedMeta.controller.getParsed(n),c=s&&s[r.axis],u=d=>{const h=d._parsed.find(m=>m[r.axis]===c),g=h&&h[d.vScale.axis];if($1(g)||isNaN(g))return!0};for(const d of o)if(!(n!==void 0&&u(d))&&((i===!1||a.indexOf(d.stack)===-1||i===void 0&&d.stack===void 0)&&a.push(d.stack),d.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const o=this._getStacks(t,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i<a;++i)o.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const s=t.barThickness;return{min:s||mne(n),pixels:o,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:o},options:{base:i,minBarLength:a}}=this,s=i||0,c=this.getParsed(t),u=c._custom,d=uf(u);let h=c[n.axis],g=0,m=r?this.applyStack(n,c,r):h,v,A;m!==h&&(g=m-h,m=h),d&&(h=u.barStart,m=u.barEnd-u.barStart,h!==0&&Ko(h)!==Ko(u.barEnd)&&(g=0),g+=h);const p=!$1(i)&&!d?i:g;let x=n.getPixelForValue(p);if(this.chart.getDataVisibility(t)?v=n.getPixelForValue(g+m):v=x,A=v-x,Math.abs(A)<a){A=bne(A,n,s)*a,h===s&&(x-=A/2);const y=n.getPixelForDecimal(0),w=n.getPixelForDecimal(1),E=Math.min(y,w),S=Math.max(y,w);x=Math.max(Math.min(x,S),E),v=x+A,r&&!d&&(c._stacks[n.axis]._visualValues[o]=n.getValueForPixel(v)-n.getValueForPixel(x))}if(x===n.getPixelForValue(s)){const y=Ko(A)*n.getLineWidthForValue(s)/2;x+=y,A-=y}return{size:A,base:x,head:v,center:v+A/2}}_calculateBarIndexPixels(t,n){const r=n.scale,o=this.options,i=o.skipNull,a=h1(o.maxBarThickness,1/0);let s,c;if(n.grouped){const u=i?this._getStackCount(t):n.stackCount,d=o.barThickness==="flex"?vne(t,n,o,u):pne(t,n,o,u),h=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0);s=d.start+d.chunk*h+d.chunk/2,c=Math.min(a,d.chunk*d.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),c=Math.min(a,n.min*n.ratio);return{base:s-c/2,head:s+c/2,center:s,size:c}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,o=r.length;let i=0;for(;i<o;++i)this.getParsed(i)[n.axis]!==null&&!r[i].hidden&&r[i].draw(this._ctx)}}En(Hc,"id","bar"),En(Hc,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),En(Hc,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function Ene(e,t,n){let r=1,o=1,i=0,a=0;if(t<_0){const s=e,c=s+t,u=Math.cos(s),d=Math.sin(s),h=Math.cos(c),g=Math.sin(c),m=(w,E,S)=>U4(w,s,c,!0)?1:Math.max(E,E*n,S,S*n),v=(w,E,S)=>U4(w,s,c,!0)?-1:Math.min(E,E*n,S,S*n),A=m(0,u,h),p=m(K0,d,g),x=v(V0,u,h),y=v(V0+K0,d,g);r=(A-x)/2,o=(p-y)/2,i=-(A+x)/2,a=-(p+y)/2}return{ratioX:r,ratioY:o,offsetX:i,offsetY:a}}class K3 extends z9{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let i=c=>+r[c];if(A1(r[t])){const{key:c="value"}=this._parsing;i=u=>+k9(r[u],c)}let a,s;for(a=t,s=t+n;a<s;++a)o._parsed[a]=i(a)}}_getRotation(){return Fi(this.options.rotation-90)}_getCircumference(){return Fi(this.options.circumference)}_getRotationExtents(){let t=_0,n=-_0;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const o=this.chart.getDatasetMeta(r).controller,i=o._getRotation(),a=o._getCircumference();t=Math.min(t,i),n=Math.max(n,i+a)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,o=this._cachedMeta,i=o.data,a=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-a)/2,0),c=Math.min(Dee(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:d,rotation:h}=this._getRotationExtents(),{ratioX:g,ratioY:m,offsetX:v,offsetY:A}=Ene(h,d,c),p=(r.width-a)/g,x=(r.height-a)/m,y=Math.max(Math.min(p,x)/2,0),w=P_(this.options.radius,y),E=Math.max(w*c,0),S=(w-E)/this._getVisibleDatasetWeightTotal();this.offsetX=v*w,this.offsetY=A*w,o.total=this.calculateTotal(),this.outerRadius=w-S*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-S*u,0),this.updateElements(i,0,i.length,t)}_circumference(t,n){const r=this.options,o=this._cachedMeta,i=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||o._parsed[t]===null||o.data[t].hidden?0:this.calculateCircumference(o._parsed[t]*i/_0)}updateElements(t,n,r,o){const i=o==="reset",a=this.chart,s=a.chartArea,u=a.options.animation,d=(s.left+s.right)/2,h=(s.top+s.bottom)/2,g=i&&u.animateScale,m=g?0:this.innerRadius,v=g?0:this.outerRadius,{sharedOptions:A,includeOptions:p}=this._getSharedOptions(n,o);let x=this._getRotation(),y;for(y=0;y<n;++y)x+=this._circumference(y,i);for(y=n;y<n+r;++y){const w=this._circumference(y,i),E=t[y],S={x:d+this.offsetX,y:h+this.offsetY,startAngle:x,endAngle:x+w,circumference:w,outerRadius:v,innerRadius:m};p&&(S.options=A||this.resolveDataElementOptions(y,E.active?"active":o)),x+=w,this.updateElement(E,y,S,o)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,o;for(o=0;o<n.length;o++){const i=t._parsed[o];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(o)&&!n[o].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?_0*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,o=r.data.labels||[],i=Yd(n._parsed[t],r.options.locale);return{label:o[t]||"",value:i}}getMaxBorderWidth(t){let n=0;const r=this.chart;let o,i,a,s,c;if(!t){for(o=0,i=r.data.datasets.length;o<i;++o)if(r.isDatasetVisible(o)){a=r.getDatasetMeta(o),t=a.data,s=a.controller;break}}if(!t)return 0;for(o=0,i=t.length;o<i;++o)c=s.resolveDataElementOptions(o),c.borderAlign!=="inner"&&(n=Math.max(n,c.borderWidth||0,c.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,o=t.length;r<o;++r){const i=this.resolveDataElementOptions(r);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(h1(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}En(K3,"id","doughnut"),En(K3,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),En(K3,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),En(K3,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:o}}=t.legend.options;return n.labels.map((i,a)=>{const c=t.getDatasetMeta(0).controller.getStyle(a);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Lc extends z9{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:o=[],_dataset:i}=n,a=this.chart._animationsDisabled;let{start:s,count:c}=ete(n,o,a);this._drawStart=s,this._drawCount=c,tte(n)&&(s=0,c=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=o;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:u},t),this.updateElements(o,s,c,t)}updateElements(t,n,r,o){const i=o==="reset",{iScale:a,vScale:s,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,o),g=a.axis,m=s.axis,{spanGaps:v,segment:A}=this.options,p=Z4(v)?v:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||i||o==="none",y=n+r,w=t.length;let E=n>0&&this.getParsed(n-1);for(let S=0;S<w;++S){const M=t[S],H=x?M:{};if(S<n||S>=y){H.skip=!0;continue}const k=this.getParsed(S),D=$1(k[m]),P=H[g]=a.getPixelForValue(k[g],S),T=H[m]=i||D?s.getBasePixel():s.getPixelForValue(c?this.applyStack(s,k,c):k[m],S);H.skip=isNaN(P)||isNaN(T)||D,H.stop=S>0&&Math.abs(k[g]-E[g])>p,A&&(H.parsed=k,H.raw=u.data[S]),h&&(H.options=d||this.resolveDataElementOptions(S,M.active?"active":o)),x||this.updateElement(M,S,H,o),E=k}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,o=t.data||[];if(!o.length)return r;const i=o[0].size(this.resolveDataElementOptions(0)),a=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,i,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}En(Lc,"id","line"),En(Lc,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),En(Lc,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class df extends K3{}En(df,"id","pie"),En(df,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function j9(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ff{constructor(t){En(this,"options");this.options=t||{}}static override(t){Object.assign(ff.prototype,t)}init(){}formats(){return j9()}parse(){return j9()}format(){return j9()}add(){return j9()}diff(){return j9()}startOf(){return j9()}endOf(){return j9()}}var Sne={_date:ff};function Mne(e,t,n,r){const{controller:o,data:i,_sorted:a}=e,s=o._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!=="r"&&a&&i.length){const u=s._reversePixels?Gee:I9;if(r){if(o._sharedOptions){const d=i[0],h=typeof d.getRange=="function"&&d.getRange(t);if(h){const g=u(i,t,n-h),m=u(i,t,n+h);return{lo:g.lo,hi:m.hi}}}}else{const d=u(i,t,n);if(c){const{vScale:h}=o._cachedMeta,{_parsed:g}=e,m=g.slice(0,d.lo+1).reverse().findIndex(A=>!$1(A[h.axis]));d.lo-=Math.max(0,m);const v=g.slice(d.hi).findIndex(A=>!$1(A[h.axis]));d.hi+=Math.max(0,v)}return d}}return{lo:0,hi:i.length-1}}function G4(e,t,n,r,o){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,c=i.length;s<c;++s){const{index:u,data:d}=i[s],{lo:h,hi:g}=Mne(i[s],t,a,o);for(let m=h;m<=g;++m){const v=d[m];v.skip||r(v,u,m)}}}function Hne(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,o){const i=t?Math.abs(r.x-o.x):0,a=n?Math.abs(r.y-o.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}function hf(e,t,n,r,o){const i=[];return!o&&!e.isPointInArea(t)||G4(e,n,t,function(s,c,u){!o&&!K4(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&i.push({element:s,datasetIndex:c,index:u})},!0),i}function Lne(e,t,n,r){let o=[];function i(a,s,c){const{startAngle:u,endAngle:d}=a.getProps(["startAngle","endAngle"],r),{angle:h}=V_(a,{x:t.x,y:t.y});U4(h,u,d)&&o.push({element:a,datasetIndex:s,index:c})}return G4(e,n,t,i),o}function Bne(e,t,n,r,o,i){let a=[];const s=Hne(n);let c=Number.POSITIVE_INFINITY;function u(d,h,g){const m=d.inRange(t.x,t.y,o);if(r&&!m)return;const v=d.getCenterPoint(o);if(!(!!i||e.isPointInArea(v))&&!m)return;const p=s(t,v);p<c?(a=[{element:d,datasetIndex:h,index:g}],c=p):p===c&&a.push({element:d,datasetIndex:h,index:g})}return G4(e,n,t,u),a}function gf(e,t,n,r,o,i){return!i&&!e.isPointInArea(t)?[]:n==="r"&&!r?Lne(e,t,n,o):Bne(e,t,n,r,o,i)}function Py(e,t,n,r,o){const i=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return G4(e,n,t,(c,u,d)=>{c[a]&&c[a](t[n],o)&&(i.push({element:c,datasetIndex:u,index:d}),s=s||c.inRange(t.x,t.y,o))}),r&&!s?[]:i}var kne={evaluateInteractionItems:G4,modes:{index(e,t,n,r){const o=R9(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?hf(e,o,i,r,a):gf(e,o,i,!1,r,a),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const d=s[0].index,h=u.data[d];h&&!h.skip&&c.push({element:h,datasetIndex:u.index,index:d})}),c):[]},dataset(e,t,n,r){const o=R9(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?hf(e,o,i,r,a):gf(e,o,i,!1,r,a);if(s.length>0){const c=s[0].datasetIndex,u=e.getDatasetMeta(c).data;s=[];for(let d=0;d<u.length;++d)s.push({element:u[d],datasetIndex:c,index:d})}return s},point(e,t,n,r){const o=R9(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return hf(e,o,i,r,a)},nearest(e,t,n,r){const o=R9(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return gf(e,o,i,n.intersect,r,a)},x(e,t,n,r){const o=R9(t,e);return Py(e,o,"x",n.intersect,r)},y(e,t,n,r){const o=R9(t,e);return Py(e,o,"y",n.intersect,r)}}};const Ny=["left","top","right","bottom"];function Y4(e,t){return e.filter(n=>n.pos===t)}function Ty(e,t){return e.filter(n=>Ny.indexOf(n.pos)===-1&&n.box.axis===t)}function q4(e,t){return e.sort((n,r)=>{const o=t?r:n,i=t?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function One(e){const t=[];let n,r,o,i,a,s;for(n=0,r=(e||[]).length;n<r;++n)o=e[n],{position:i,options:{stack:a,stackWeight:s=1}}=o,t.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return t}function Ine(e){const t={};for(const n of e){const{stack:r,pos:o,stackWeight:i}=n;if(!r||!Ny.includes(o))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=i}return t}function Dne(e,t){const n=Ine(e),{vBoxMaxWidth:r,hBoxMaxHeight:o}=t;let i,a,s;for(i=0,a=e.length;i<a;++i){s=e[i];const{fullSize:c}=s.box,u=n[s.stack],d=u&&s.stackWeight/u.weight;s.horizontal?(s.width=d?d*r:c&&t.availableWidth,s.height=o):(s.width=r,s.height=d?d*o:c&&t.availableHeight)}return n}function Pne(e){const t=One(e),n=q4(t.filter(u=>u.box.fullSize),!0),r=q4(Y4(t,"left"),!0),o=q4(Y4(t,"right")),i=q4(Y4(t,"top"),!0),a=q4(Y4(t,"bottom")),s=Ty(t,"x"),c=Ty(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(c).concat(a).concat(s),chartArea:Y4(t,"chartArea"),vertical:r.concat(o).concat(c),horizontal:i.concat(a).concat(s)}}function Ry(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Fy(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Nne(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!A1(o)){n.size&&(e[o]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?i.height:i.width),n.size=h.size/h.count,e[o]+=n.size}i.getPadding&&Fy(a,i.getPadding());const s=Math.max(0,t.outerWidth-Ry(a,e,"left","right")),c=Math.max(0,t.outerHeight-Ry(a,e,"top","bottom")),u=s!==e.w,d=c!==e.h;return e.w=s,e.h=c,n.horizontal?{same:u,other:d}:{same:d,other:u}}function Tne(e){const t=e.maxPadding;function n(r){const o=Math.max(t[r]-e[r],0);return e[r]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Rne(e,t){const n=t.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return r(e?["left","right"]:["top","bottom"])}function X4(e,t,n,r){const o=[];let i,a,s,c,u,d;for(i=0,a=e.length,u=0;i<a;++i){s=e[i],c=s.box,c.update(s.width||t.w,s.height||t.h,Rne(s.horizontal,t));const{same:h,other:g}=Nne(t,n,s,r);u|=h&&o.length,d=d||g,c.fullSize||o.push(s)}return u&&X4(o,t,n,r)||d}function Bc(e,t,n,r,o){e.top=n,e.left=t,e.right=t+r,e.bottom=n+o,e.width=r,e.height=o}function zy(e,t,n,r){const o=n.padding;let{x:i,y:a}=t;for(const s of e){const c=s.box,u=r[s.stack]||{count:1,placed:0,weight:1},d=s.stackWeight/u.weight||1;if(s.horizontal){const h=t.w*d,g=u.size||c.height;j4(u.start)&&(a=u.start),c.fullSize?Bc(c,o.left,a,n.outerWidth-o.right-o.left,g):Bc(c,t.left+u.placed,a,h,g),u.start=a,u.placed+=h,a=c.bottom}else{const h=t.h*d,g=u.size||c.width;j4(u.start)&&(i=u.start),c.fullSize?Bc(c,i,o.top,g,n.outerHeight-o.bottom-o.top):Bc(c,i,t.top+u.placed,g,h),u.start=i,u.placed+=h,i=c.right}}t.x=i,t.y=a}var Na={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const o=po(e.options.layout.padding),i=Math.max(t-o.width,0),a=Math.max(n-o.height,0),s=Pne(e.boxes),c=s.vertical,u=s.horizontal;J1(e.boxes,A=>{typeof A.beforeLayout=="function"&&A.beforeLayout()});const d=c.reduce((A,p)=>p.box.options&&p.box.options.display===!1?A:A+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),g=Object.assign({},o);Fy(g,po(r));const m=Object.assign({maxPadding:g,w:i,h:a,x:o.left,y:o.top},o),v=Dne(c.concat(u),h);X4(s.fullSize,m,h,v),X4(c,m,h,v),X4(u,m,h,v)&&X4(c,m,h,v),Tne(m),zy(s.leftAndTop,m,h,v),m.x+=m.w,m.y+=m.h,zy(s.rightAndBottom,m,h,v),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},J1(s.chartArea,A=>{const p=A.box;Object.assign(p,e.chartArea),p.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class jy{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,o){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(t){return!0}updateConfig(t){}}class Fne extends jy{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const kc="$chartjs",zne={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vy=e=>e===null||e==="";function jne(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[kc]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Vy(o)){const i=hy(e,"width");i!==void 0&&(e.width=i)}if(Vy(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=hy(e,"height");i!==void 0&&(e.height=i)}return e}const Zy=Zte?{passive:!0}:!1;function Vne(e,t,n){e&&e.addEventListener(t,n,Zy)}function Zne(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Zy)}function Une(e,t){const n=zne[e.type]||e.type,{x:r,y:o}=R9(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:o!==void 0?o:null}}function Oc(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function $ne(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const s of i)a=a||Oc(s.addedNodes,r),a=a&&!Oc(s.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Wne(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const s of i)a=a||Oc(s.removedNodes,r),a=a&&!Oc(s.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const J4=new Map;let Uy=0;function $y(){const e=window.devicePixelRatio;e!==Uy&&(Uy=e,J4.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Kne(e,t){J4.size||window.addEventListener("resize",$y),J4.set(e,t)}function Qne(e){J4.delete(e),J4.size||window.removeEventListener("resize",$y)}function Gne(e,t,n){const r=e.canvas,o=r&&af(r);if(!o)return;const i=K_((s,c)=>{const u=o.clientWidth;n(s,c),u<o.clientWidth&&n()},window),a=new ResizeObserver(s=>{const c=s[0],u=c.contentRect.width,d=c.contentRect.height;u===0&&d===0||i(u,d)});return a.observe(o),Kne(e,i),a}function Cf(e,t,n){n&&n.disconnect(),t==="resize"&&Qne(e)}function Yne(e,t,n){const r=e.canvas,o=K_(i=>{e.ctx!==null&&n(Une(i,e))},e);return Vne(r,t,o),o}class qne extends jy{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(jne(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[kc])return!1;const r=n[kc].initial;["height","width"].forEach(i=>{const a=r[i];$1(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[kc],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const o=t.$proxies||(t.$proxies={}),a={attach:$ne,detach:Wne,resize:Gne}[n]||Yne;o[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),o=r[n];if(!o)return;({attach:Cf,detach:Cf,resize:Cf}[n]||Zne)(t,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,o){return Vte(t,n,r,o)}isAttached(t){const n=t&&af(t);return!!(n&&n.isConnected)}}function Xne(e){return!of()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Fne:qne}let Ta=(du=class{constructor(){En(this,"x");En(this,"y");En(this,"active",!1);En(this,"options");En(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Z4(this.x)&&Z4(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const o={};return t.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}},En(du,"defaults",{}),En(du,"defaultRoutes"),du);function Jne(e,t){const n=e.options.ticks,r=e1e(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?n1e(t):[],a=i.length,s=i[0],c=i[a-1],u=[];if(a>o)return r1e(t,u,i,a/o),u;const d=t1e(i,t,o);if(a>0){let h,g;const m=a>1?Math.round((c-s)/(a-1)):null;for(Ic(t,u,d,$1(m)?0:s-m,s),h=0,g=a-1;h<g;h++)Ic(t,u,d,i[h],i[h+1]);return Ic(t,u,d,c,$1(m)?t.length:c+m),u}return Ic(t,u,d),u}function e1e(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),o=e._maxLength/n;return Math.floor(Math.min(r,o))}function t1e(e,t,n){const r=o1e(e),o=t.length/n;if(!r)return Math.max(o,1);const i=Vee(r);for(let a=0,s=i.length-1;a<s;a++){const c=i[a];if(c>o)return c}return Math.max(o,1)}function n1e(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function r1e(e,t,n,r){let o=0,i=n[0],a;for(r=Math.ceil(r),a=0;a<e.length;a++)a===i&&(t.push(e[a]),o++,i=n[o*r])}function Ic(e,t,n,r,o){const i=h1(r,0),a=Math.min(h1(o,e.length),e.length);let s=0,c,u,d;for(n=Math.ceil(n),o&&(c=o-r,n=c/Math.floor(c/n)),d=i;d<0;)s++,d=Math.round(i+s*n);for(u=Math.max(i,0);u<a;u++)u===d&&(t.push(e[u]),s++,d=Math.round(i+s*n))}function o1e(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const i1e=e=>e==="left"?"right":e==="right"?"left":e,Wy=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Ky=(e,t)=>Math.min(t||e,e);function Qy(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;i<o;i+=r)n.push(e[Math.floor(i)]);return n}function a1e(e,t,n){const r=e.ticks.length,o=Math.min(t,r-1),i=e._startPixel,a=e._endPixel,s=1e-6;let c=e.getPixelForTick(o),u;if(!(n&&(r===1?u=Math.max(c-i,a-c):t===0?u=(e.getPixelForTick(1)-c)/2:u=(c-e.getPixelForTick(o-1))/2,c+=o<t?u:-u,c<i-s||c>a+s)))return c}function s1e(e,t){J1(e,n=>{const r=n.gc,o=r.length/2;let i;if(o>t){for(i=0;i<o;++i)delete n.data[r[i]];r.splice(0,o)}})}function es(e){return e.drawTicks?e.tickLength:0}function Gy(e,t){if(!e.display)return 0;const n=t2(e.font,t),r=po(e.padding);return(W0(e.text)?e.text.length:1)*n.lineHeight+r.height}function l1e(e,t){return N9(e,{scale:t,type:"scale"})}function c1e(e,t,n){return N9(e,{tick:n,index:t,type:"tick"})}function u1e(e,t,n){let r=Q_(e);return(n&&t!=="right"||!n&&t==="right")&&(r=i1e(r)),r}function d1e(e,t,n,r){const{top:o,left:i,bottom:a,right:s,chart:c}=e,{chartArea:u,scales:d}=c;let h=0,g,m,v;const A=a-o,p=s-i;if(e.isHorizontal()){if(m=y2(r,i,s),A1(n)){const x=Object.keys(n)[0],y=n[x];v=d[x].getPixelForValue(y)+A-t}else n==="center"?v=(u.bottom+u.top)/2+A-t:v=Wy(e,n,t);g=s-i}else{if(A1(n)){const x=Object.keys(n)[0],y=n[x];m=d[x].getPixelForValue(y)-p+t}else n==="center"?m=(u.left+u.right)/2-p+t:m=Wy(e,n,t);v=y2(r,a,o),h=n==="left"?-K0:K0}return{titleX:m,titleY:v,maxWidth:g,rotation:h}}class Q3 extends Ta{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:o}=this;return t=Wo(t,Number.POSITIVE_INFINITY),n=Wo(n,Number.NEGATIVE_INFINITY),r=Wo(r,Number.POSITIVE_INFINITY),o=Wo(o,Number.NEGATIVE_INFINITY),{min:Wo(t,r),max:Wo(n,o),minDefined:xr(t),maxDefined:xr(n)}}getMinMax(t){let{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds(),a;if(o&&i)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let c=0,u=s.length;c<u;++c)a=s[c].controller.getMinMax(this,t),o||(n=Math.min(n,a.min)),i||(r=Math.max(r,a.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:Wo(n,Wo(r,n)),max:Wo(r,Wo(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){h0(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=bte(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=s<this.ticks.length;this._convertTicksToLabels(c?Qy(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=Jne(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){h0(this.options.afterUpdate,[this])}beforeSetDimensions(){h0(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){h0(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),h0(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){h0(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,o,i;for(r=0,o=t.length;r<o;r++)i=t[r],i.label=h0(n.callback,[i.value,r,t],this)}afterTickToLabelConversion(){h0(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){h0(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=Ky(this.ticks.length,t.ticks.maxTicksLimit),o=n.minRotation||0,i=n.maxRotation;let a=o,s,c,u;if(!this._isVisible()||!n.display||o>=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),h=d.widest.width,g=d.highest.height,m=Er(this.chart.width-h,0,this.maxWidth);s=t.offset?this.maxWidth/r:m/(r-1),h+6>s&&(s=m/(r-(t.offset?.5:1)),c=this.maxHeight-es(t.grid)-n.padding-Gy(t.title,this.chart.options.font),u=Math.sqrt(h*h+g*g),a=Wee(Math.min(Math.asin(Er((d.highest.height+6)/s,-1,1)),Math.asin(Er(c/u,-1,1))-Math.asin(Er(g/u,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){h0(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){h0(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const c=Gy(o,n.options.font);if(s?(t.width=this.maxWidth,t.height=es(i)+c):(t.height=this.maxHeight,t.width=es(i)+c),r.display&&this.ticks.length){const{first:u,last:d,widest:h,highest:g}=this._getLabelSizes(),m=r.padding*2,v=Fi(this.labelRotation),A=Math.cos(v),p=Math.sin(v);if(s){const x=r.mirror?0:p*h.width+A*g.height;t.height=Math.min(this.maxHeight,t.height+x+m)}else{const x=r.mirror?0:A*h.width+p*g.height;t.width=Math.min(this.maxWidth,t.width+x+m)}this._calculatePadding(u,d,p,A)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,o){const{ticks:{align:i,padding:a},position:s}=this.options,c=this.labelRotation!==0,u=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,m=0;c?u?(g=o*t.width,m=r*n.height):(g=r*t.height,m=o*n.width):i==="start"?m=n.width:i==="end"?g=t.width:i!=="inner"&&(g=t.width/2,m=n.width/2),this.paddingLeft=Math.max((g-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((m-h+a)*this.width/(this.width-h),0)}else{let d=n.height/2,h=t.height/2;i==="start"?(d=0,h=t.height):i==="end"&&(d=n.height,h=0),this.paddingTop=d+a,this.paddingBottom=h+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){h0(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)$1(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=Qy(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:o,_longestTextCache:i}=this,a=[],s=[],c=Math.floor(n/Ky(n,r));let u=0,d=0,h,g,m,v,A,p,x,y,w,E,S;for(h=0;h<n;h+=c){if(v=t[h].label,A=this._resolveTickFontOptions(h),o.font=p=A.string,x=i[p]=i[p]||{data:{},gc:[]},y=A.lineHeight,w=E=0,!$1(v)&&!W0(v))w=ty(o,x.data,x.gc,w,v),E=y;else if(W0(v))for(g=0,m=v.length;g<m;++g)S=v[g],!$1(S)&&!W0(S)&&(w=ty(o,x.data,x.gc,w,S),E+=y);a.push(w),s.push(E),u=Math.max(w,u),d=Math.max(E,d)}s1e(i,n);const M=a.indexOf(u),H=s.indexOf(d),k=D=>({width:a[D]||0,height:s[D]||0});return{first:k(0),last:k(n-1),widest:k(M),highest:k(H),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Qee(this._alignToPixels?P9(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=c1e(this.getContext(),t,r))}return this.$context||(this.$context=l1e(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Fi(this.labelRotation),r=Math.abs(Math.cos(n)),o=Math.abs(Math.sin(n)),i=this._getLabelSizes(),a=t.autoSkipPadding||0,s=i?i.widest.width+a:0,c=i?i.highest.height+a:0;return this.isHorizontal()?c*r>s*o?s/r:c/o:c*o<s*r?c/r:s/o}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:s}=o,c=i.offset,u=this.isHorizontal(),h=this.ticks.length+(c?1:0),g=es(i),m=[],v=s.setContext(this.getContext()),A=v.display?v.width:0,p=A/2,x=function(R){return P9(r,R,A)};let y,w,E,S,M,H,k,D,P,T,N,F;if(a==="top")y=x(this.bottom),H=this.bottom-g,D=y-p,T=x(t.top)+p,F=t.bottom;else if(a==="bottom")y=x(this.top),T=t.top,F=x(t.bottom)-p,H=y+p,D=this.top+g;else if(a==="left")y=x(this.right),M=this.right-g,k=y-p,P=x(t.left)+p,N=t.right;else if(a==="right")y=x(this.left),P=t.left,N=x(t.right)-p,M=y+p,k=this.left+g;else if(n==="x"){if(a==="center")y=x((t.top+t.bottom)/2+.5);else if(A1(a)){const R=Object.keys(a)[0],$=a[R];y=x(this.chart.scales[R].getPixelForValue($))}T=t.top,F=t.bottom,H=y+p,D=H+g}else if(n==="y"){if(a==="center")y=x((t.left+t.right)/2);else if(A1(a)){const R=Object.keys(a)[0],$=a[R];y=x(this.chart.scales[R].getPixelForValue($))}M=y-p,k=M-g,P=t.left,N=t.right}const j=h1(o.ticks.maxTicksLimit,h),z=Math.max(1,Math.ceil(h/j));for(w=0;w<h;w+=z){const R=this.getContext(w),$=i.setContext(R),W=s.setContext(R),q=$.lineWidth,K=$.color,U=W.dash||[],G=W.dashOffset,J=$.tickWidth,Y=$.tickColor,ee=$.tickBorderDash||[],oe=$.tickBorderDashOffset;E=a1e(this,w,c),E!==void 0&&(S=P9(r,E,q),u?M=k=P=N=S:H=D=T=F=S,m.push({tx1:M,ty1:H,tx2:k,ty2:D,x1:P,y1:T,x2:N,y2:F,width:q,color:K,borderDash:U,borderDashOffset:G,tickWidth:J,tickColor:Y,tickBorderDash:ee,tickBorderDashOffset:oe}))}return this._ticksLength=h,this._borderValue=y,m}_computeLabelItems(t){const n=this.axis,r=this.options,{position:o,ticks:i}=r,a=this.isHorizontal(),s=this.ticks,{align:c,crossAlign:u,padding:d,mirror:h}=i,g=es(r.grid),m=g+d,v=h?-d:m,A=-Fi(this.labelRotation),p=[];let x,y,w,E,S,M,H,k,D,P,T,N,F="middle";if(o==="top")M=this.bottom-v,H=this._getXAxisLabelAlignment();else if(o==="bottom")M=this.top+v,H=this._getXAxisLabelAlignment();else if(o==="left"){const z=this._getYAxisLabelAlignment(g);H=z.textAlign,S=z.x}else if(o==="right"){const z=this._getYAxisLabelAlignment(g);H=z.textAlign,S=z.x}else if(n==="x"){if(o==="center")M=(t.top+t.bottom)/2+m;else if(A1(o)){const z=Object.keys(o)[0],R=o[z];M=this.chart.scales[z].getPixelForValue(R)+m}H=this._getXAxisLabelAlignment()}else if(n==="y"){if(o==="center")S=(t.left+t.right)/2-m;else if(A1(o)){const z=Object.keys(o)[0],R=o[z];S=this.chart.scales[z].getPixelForValue(R)}H=this._getYAxisLabelAlignment(g).textAlign}n==="y"&&(c==="start"?F="top":c==="end"&&(F="bottom"));const j=this._getLabelSizes();for(x=0,y=s.length;x<y;++x){w=s[x],E=w.label;const z=i.setContext(this.getContext(x));k=this.getPixelForTick(x)+i.labelOffset,D=this._resolveTickFontOptions(x),P=D.lineHeight,T=W0(E)?E.length:1;const R=T/2,$=z.color,W=z.textStrokeColor,q=z.textStrokeWidth;let K=H;a?(S=k,H==="inner"&&(x===y-1?K=this.options.reverse?"left":"right":x===0?K=this.options.reverse?"right":"left":K="center"),o==="top"?u==="near"||A!==0?N=-T*P+P/2:u==="center"?N=-j.highest.height/2-R*P+P:N=-j.highest.height+P/2:u==="near"||A!==0?N=P/2:u==="center"?N=j.highest.height/2-R*P:N=j.highest.height-T*P,h&&(N*=-1),A!==0&&!z.showLabelBackdrop&&(S+=P/2*Math.sin(A))):(M=k,N=(1-T)*P/2);let U;if(z.showLabelBackdrop){const G=po(z.backdropPadding),J=j.heights[x],Y=j.widths[x];let ee=N-G.top,oe=0-G.left;switch(F){case"middle":ee-=J/2;break;case"bottom":ee-=J;break}switch(H){case"center":oe-=Y/2;break;case"right":oe-=Y;break;case"inner":x===y-1?oe-=Y:x>0&&(oe-=Y/2);break}U={left:oe,top:ee,width:Y+G.width,height:J+G.height,color:z.backdropColor}}p.push({label:E,font:D,textOffset:N,options:{rotation:A,color:$,strokeColor:W,strokeWidth:q,textAlign:K,textBaseline:F,translation:[S,M],backdrop:U}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Fi(this.labelRotation))return t==="top"?"left":"right";let o="center";return n.align==="start"?o="left":n.align==="end"?o="right":n.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:o,padding:i}}=this.options,a=this._getLabelSizes(),s=t+i,c=a.widest.width;let u,d;return n==="left"?o?(d=this.right+i,r==="near"?u="left":r==="center"?(u="center",d+=c/2):(u="right",d+=c)):(d=this.right-s,r==="near"?u="right":r==="center"?(u="center",d-=c/2):(u="left",d=this.left)):n==="right"?o?(d=this.left+i,r==="near"?u="right":r==="center"?(u="center",d-=c/2):(u="left",d-=c)):(d=this.left+s,r==="near"?u="left":r==="center"?(u="center",d+=c/2):(u="right",d=this.right)):u="right",{textAlign:u,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:o,width:i,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,o,i,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const o=this.ticks.findIndex(i=>i.value===t);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const s=(c,u,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i<a;++i){const c=o[i];n.drawOnChartArea&&s({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),n.drawTicks&&s({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:o}}=this,i=r.setContext(this.getContext()),a=r.display?i.width:0;if(!a)return;const s=o.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let u,d,h,g;this.isHorizontal()?(u=P9(t,this.left,a)-a/2,d=P9(t,this.right,s)+s/2,h=g=c):(h=P9(t,this.top,a)-a/2,g=P9(t,this.bottom,s)+s/2,u=d=c),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(u,h),n.lineTo(d,g),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,o=this._computeLabelArea();o&&vc(r,o);const i=this.getLabelItems(t);for(const a of i){const s=a.options,c=a.font,u=a.label,d=a.textOffset;bc(r,u,0,d,c,s)}o&&Ac(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:o}}=this;if(!r.display)return;const i=t2(r.font),a=po(r.padding),s=r.align;let c=i.lineHeight/2;n==="bottom"||n==="center"||A1(n)?(c+=a.bottom,W0(r.text)&&(c+=i.lineHeight*(r.text.length-1))):c+=a.top;const{titleX:u,titleY:d,maxWidth:h,rotation:g}=d1e(this,c,n,s);bc(t,r.text,0,0,i,{color:r.color,maxWidth:h,rotation:g,textAlign:u1e(s,n,o),textBaseline:"middle",translation:[u,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=h1(t.grid&&t.grid.z,-1),o=h1(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Q3.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i<a;++i){const s=n[i];s[r]===this.id&&(!t||s.type===t)&&o.push(s)}return o}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return t2(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Dc{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;g1e(n)&&(r=this.register(n));const o=this.items,i=t.id,a=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in o||(o[i]=t,f1e(t,a,r),this.override&&D0.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,o=this.scope;r in n&&delete n[r],o&&r in D0[o]&&(delete D0[o][r],this.override&&delete D9[r])}}function f1e(e,t,n){const r=F4(Object.create(null),[n?D0.get(n):{},D0.get(t),e.defaults]);D0.set(t,r),e.defaultRoutes&&h1e(t,e.defaultRoutes),e.descriptors&&D0.describe(t,e.descriptors)}function h1e(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),c=a.join(".");D0.route(i,o,c,s)})}function g1e(e){return"id"in e&&"defaults"in e}class C1e{constructor(){this.controllers=new Dc(z9,"datasets",!0),this.elements=new Dc(Ta,"elements"),this.plugins=new Dc(Object,"plugins"),this.scales=new Dc(Q3,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):J1(o,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const o=Ud(t);h0(r["before"+o],[],r),n[t](r),h0(r["after"+o],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const o=n.get(t);if(o===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return o}}var Go=new C1e;class m1e{constructor(){this._init=[]}notify(t,n,r,o){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=o?this._descriptors(t).filter(o):this._descriptors(t),a=this._notify(i,t,n,r);return n==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,n,r,o){o=o||{};for(const i of t){const a=i.plugin,s=a[r],c=[n,o,i.options];if(h0(s,c,a)===!1&&o.cancelable)return!1}return!0}invalidate(){$1(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,o=h1(r.options&&r.options.plugins,{}),i=p1e(r);return o===!1&&!n?[]:A1e(t,i,o,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,o=(i,a)=>i.filter(s=>!a.some(c=>s.plugin.id===c.plugin.id));this._notify(o(n,r),t,"stop"),this._notify(o(r,n),t,"start")}}function p1e(e){const t={},n=[],r=Object.keys(Go.plugins.items);for(let i=0;i<r.length;i++)n.push(Go.getPlugin(r[i]));const o=e.plugins||[];for(let i=0;i<o.length;i++){const a=o[i];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function v1e(e,t){return!t&&e===!1?null:e===!0?{}:e}function A1e(e,{plugins:t,localIds:n},r,o){const i=[],a=e.getContext();for(const s of t){const c=s.id,u=v1e(r[c],o);u!==null&&i.push({plugin:s,options:b1e(e.config,{plugin:s,local:n[c]},u,a)})}return i}function b1e(e,{plugin:t,local:n},r,o){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(r,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function mf(e,t){const n=D0.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function _1e(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function y1e(e,t){return e===t?"_index_":"_value_"}function Yy(e){if(e==="x"||e==="y"||e==="r")return e}function w1e(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function pf(e,...t){if(Yy(e))return e;for(const n of t){const r=n.axis||w1e(n.position)||e.length>1&&Yy(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function qy(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function x1e(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return qy(e,"x",n[0])||qy(e,"y",n[0])}return{}}function E1e(e,t){const n=D9[e.type]||{scales:{}},r=t.scales||{},o=mf(e.type,t),i=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!A1(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=pf(a,s,x1e(a,e),D0.scales[s.type]),u=y1e(c,o),d=n.scales||{};i[a]=z4(Object.create(null),[{axis:c},s,d[c],d[u]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,c=a.indexAxis||mf(s,t),d=(D9[s]||{}).scales||{};Object.keys(d).forEach(h=>{const g=_1e(h,c),m=a[g+"AxisID"]||g;i[m]=i[m]||Object.create(null),z4(i[m],[{axis:g},r[m],d[h]])})}),Object.keys(i).forEach(a=>{const s=i[a];z4(s,[D0.scales[s.type],D0.scale])}),i}function Xy(e){const t=e.options||(e.options={});t.plugins=h1(t.plugins,{}),t.scales=E1e(e,t)}function Jy(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function S1e(e){return e=e||{},e.data=Jy(e.data),Xy(e),e}const ew=new Map,tw=new Set;function Pc(e,t){let n=ew.get(e);return n||(n=t(),ew.set(e,n),tw.add(n)),n}const ts=(e,t,n)=>{const r=k9(t,n);r!==void 0&&e.add(r)};class M1e{constructor(t){this._config=S1e(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Jy(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Xy(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Pc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Pc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Pc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Pc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let o=r.get(t);return(!o||n)&&(o=new Map,r.set(t,o)),o}getOptionScopes(t,n,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const c=new Set;n.forEach(d=>{t&&(c.add(t),d.forEach(h=>ts(c,t,h))),d.forEach(h=>ts(c,o,h)),d.forEach(h=>ts(c,D9[i]||{},h)),d.forEach(h=>ts(c,D0,h)),d.forEach(h=>ts(c,qd,h))});const u=Array.from(c);return u.length===0&&u.push(Object.create(null)),tw.has(n)&&a.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,D9[n]||{},D0.datasets[n]||{},{type:n},D0,qd]}resolveNamedOptions(t,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:s}=nw(this._resolverCache,t,o);let c=a;if(L1e(a,n)){i.$shared=!1,r=Pa(r)?r():r;const u=this.createResolver(t,r,s);c=U3(a,r,u)}for(const u of n)i[u]=c[u];return i}createResolver(t,n,r=[""],o){const{resolver:i}=nw(this._resolverCache,t,r);return A1(n)?U3(i,n,void 0,o):i}}function nw(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:tf(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(o,i)),i}const H1e=e=>A1(e)&&Object.getOwnPropertyNames(e).some(t=>Pa(e[t]));function L1e(e,t){const{isScriptable:n,isIndexable:r}=iy(e);for(const o of t){const i=n(o),a=r(o),s=(a||i)&&e[o];if(i&&(Pa(s)||H1e(s))||a&&W0(s))return!0}return!1}var B1e="4.4.9";const k1e=["top","bottom","left","right","chartArea"];function rw(e,t){return e==="top"||e==="bottom"||k1e.indexOf(e)===-1&&t==="x"}function ow(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function iw(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),h0(n&&n.onComplete,[e],t)}function O1e(e){const t=e.chart,n=t.options.animation;h0(n&&n.onProgress,[e],t)}function aw(e){return of()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Nc={},sw=e=>{const t=aw(e);return Object.values(Nc).filter(n=>n.canvas===t).pop()};function I1e(e,t,n){const r=Object.keys(e);for(const o of r){const i=+o;if(i>=t){const a=e[o];delete e[o],(n>0||i>t)&&(e[i+n]=a)}}}function D1e(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}let G3=(r9=class{static register(...t){Go.add(...t),lw()}static unregister(...t){Go.remove(...t),lw()}constructor(t,n){const r=this.config=new M1e(n),o=aw(t),i=sw(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Xne(o)),this.platform.updateConfig(r);const s=this.platform.acquireContext(o,a.aspectRatio),c=s&&s.canvas,u=c&&c.height,d=c&&c.width;if(this.id=Iee(),this.ctx=s,this.canvas=c,this.width=d,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new m1e,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Xee(h=>this.update(h),a.resizeDelay||0),this._dataChanges=[],Nc[this.id]=this,!s||!c){console.error("Failed to create chart: can't acquire context from the given item");return}ji.listen(this,"complete",iw),ji.listen(this,"progress",O1e),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return $1(t)?n&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Go}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():fy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ny(this.canvas,this.ctx),this}stop(){return ji.stop(this),this}resize(t,n){ji.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,n,i),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,fy(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),h0(r.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};J1(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,o=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const s=n[a],c=pf(a,s),u=c==="r",d=c==="x";return{options:s,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),J1(i,a=>{const s=a.options,c=s.id,u=pf(c,s),d=h1(s.type,a.dtype);(s.position===void 0||rw(s.position,u)!==rw(a.dposition))&&(s.position=a.dposition),o[c]=!0;let h=null;if(c in r&&r[c].type===d)h=r[c];else{const g=Go.getScale(d);h=new g({id:c,type:d,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(s,t)}),J1(o,(a,s)=>{a||delete r[s]}),J1(r,a=>{Na.configure(this,a,a.options),Na.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((o,i)=>o.index-i.index),r>n){for(let o=n;o<r;++o)this._destroyDatasetMeta(o);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(ow("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r<o;r++){const i=n[r];let a=this.getDatasetMeta(r);const s=i.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=s,a.indexAxis=i.indexAxis||mf(s,this.options),a.order=i.order||0,a.index=r,a.label=""+i.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const c=Go.getController(s),{datasetElementType:u,dataElementType:d}=D0.datasets[s];Object.assign(c,{dataElementType:Go.getElement(d),datasetElementType:u&&Go.getElement(u)}),a.controller=new c(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){J1(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,d=this.data.datasets.length;u<d;u++){const{controller:h}=this.getDatasetMeta(u),g=!o&&i.indexOf(h)===-1;h.buildOrUpdateElements(g),a=Math.max(+h.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),o||J1(i,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ow("z","_idx"));const{_active:s,_lastEvent:c}=this;c?this._eventHandler(c,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){J1(this.scales,t=>{Na.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!R_(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;I1e(t,o,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(a=>a[0]===i).map((a,s)=>s+","+a.splice(1).join(","))),o=r(0);for(let i=1;i<n;i++)if(!R_(o,r(i)))return;return Array.from(o).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Na.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],J1(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Pa(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),o={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",o)!==!1&&(r.controller._update(n),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ji.has(this)?this.attached&&!ji.running(this)&&ji.start(this):(this.draw(),iw({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:o}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,o)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let o,i;for(o=0,i=n.length;o<i;++o){const a=n[o];(!t||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},o=yy(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&vc(n,o),t.controller.draw(),o&&Ac(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return K4(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,o){const i=kne.modes[n];return typeof i=="function"?i(this,t,r,o):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=N9(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);j4(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(s=>s.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),ji.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ny(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Nc[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(i,a)=>{n.addEventListener(this,i,a),t[i]=a},o=(i,a,s)=>{i.offsetX=a,i.offsetY=s,this._eventHandler(i)};J1(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(c,u)=>{n.addEventListener(this,c,u),t[c]=u},o=(c,u)=>{t[c]&&(n.removeEventListener(this,c,u),delete t[c])},i=(c,u)=>{this.canvas&&this.resize(c,u)};let a;const s=()=>{o("attach",s),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){J1(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},J1(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const o=r?"set":"remove";let i,a,s,c;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),s=0,c=t.length;s<c;++s){a=t[s];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[o+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:i,index:a})=>{const s=this.getDatasetMeta(i);if(!s)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:s.data[a],index:a}});!gc(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const o=this.options.hover,i=(c,u)=>c.filter(d=>!u.some(h=>d.datasetIndex===h.datasetIndex&&d.index===h.index)),a=i(n,t),s=r?t:i(t,n);a.length&&this.updateHoverStyle(a,o.mode,!1),s.length&&o.mode&&this.updateHoverStyle(s,o.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:o=[],options:i}=this,a=n,s=this._getActiveElements(t,o,r,a),c=Fee(t),u=D1e(t,this._lastEvent,r,c);r&&(this._lastEvent=null,h0(i.onHover,[t,s,this],this),c&&h0(i.onClick,[t,s,this],this));const d=!gc(s,o);return(d||n)&&(this._active=s,this._updateHoverStyles(s,o,n)),this._lastEvent=u,d}_getActiveElements(t,n,r,o){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}},En(r9,"defaults",D0),En(r9,"instances",Nc),En(r9,"overrides",D9),En(r9,"registry",Go),En(r9,"version",B1e),En(r9,"getChart",sw),r9);function lw(){return J1(G3.instances,e=>e._plugins.invalidate())}function P1e(e,t,n){const{startAngle:r,pixelMargin:o,x:i,y:a,outerRadius:s,innerRadius:c}=t;let u=o/s;e.beginPath(),e.arc(i,a,s,r-u,n+u),c>o?(u=o/c,e.arc(i,a,c,n+u,r-u,!0)):e.arc(i,a,o,n+K0,r-K0),e.closePath(),e.clip()}function N1e(e){return ef(e,["outerStart","outerEnd","innerStart","innerEnd"])}function T1e(e,t,n,r){const o=N1e(e.options.borderRadius),i=(n-t)/2,a=Math.min(i,r*t/2),s=c=>{const u=(n-Math.min(i,c))*r/2;return Er(c,0,Math.min(i,u))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Er(o.innerStart,0,a),innerEnd:Er(o.innerEnd,0,a)}}function Y3(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Tc(e,t,n,r,o,i){const{x:a,y:s,startAngle:c,pixelMargin:u,innerRadius:d}=t,h=Math.max(t.outerRadius+r+n-u,0),g=d>0?d+r+n+u:0;let m=0;const v=o-c;if(r){const z=d>0?d-r:0,R=h>0?h-r:0,$=(z+R)/2,W=$!==0?v*$/($+r):v;m=(v-W)/2}const A=Math.max(.001,v*h-n/V0)/h,p=(v-A)/2,x=c+p+m,y=o-p-m,{outerStart:w,outerEnd:E,innerStart:S,innerEnd:M}=T1e(t,g,h,y-x),H=h-w,k=h-E,D=x+w/H,P=y-E/k,T=g+S,N=g+M,F=x+S/T,j=y-M/N;if(e.beginPath(),i){const z=(D+P)/2;if(e.arc(a,s,h,D,z),e.arc(a,s,h,z,P),E>0){const q=Y3(k,P,a,s);e.arc(q.x,q.y,E,P,y+K0)}const R=Y3(N,y,a,s);if(e.lineTo(R.x,R.y),M>0){const q=Y3(N,j,a,s);e.arc(q.x,q.y,M,y+K0,j+Math.PI)}const $=(y-M/g+(x+S/g))/2;if(e.arc(a,s,g,y-M/g,$,!0),e.arc(a,s,g,$,x+S/g,!0),S>0){const q=Y3(T,F,a,s);e.arc(q.x,q.y,S,F+Math.PI,x-K0)}const W=Y3(H,x,a,s);if(e.lineTo(W.x,W.y),w>0){const q=Y3(H,D,a,s);e.arc(q.x,q.y,w,x-K0,D)}}else{e.moveTo(a,s);const z=Math.cos(D)*h+a,R=Math.sin(D)*h+s;e.lineTo(z,R);const $=Math.cos(P)*h+a,W=Math.sin(P)*h+s;e.lineTo($,W)}e.closePath()}function R1e(e,t,n,r,o){const{fullCircles:i,startAngle:a,circumference:s}=t;let c=t.endAngle;if(i){Tc(e,t,n,r,c,o);for(let u=0;u<i;++u)e.fill();isNaN(s)||(c=a+(s%_0||_0))}return Tc(e,t,n,r,c,o),e.fill(),c}function F1e(e,t,n,r,o){const{fullCircles:i,startAngle:a,circumference:s,options:c}=t,{borderWidth:u,borderJoinStyle:d,borderDash:h,borderDashOffset:g}=c,m=c.borderAlign==="inner";if(!u)return;e.setLineDash(h||[]),e.lineDashOffset=g,m?(e.lineWidth=u*2,e.lineJoin=d||"round"):(e.lineWidth=u,e.lineJoin=d||"bevel");let v=t.endAngle;if(i){Tc(e,t,n,r,v,o);for(let A=0;A<i;++A)e.stroke();isNaN(s)||(v=a+(s%_0||_0))}m&&P1e(e,t,v),i||(Tc(e,t,n,r,v,o),e.stroke())}class ns extends Ta{constructor(n){super();En(this,"circumference");En(this,"endAngle");En(this,"fullCircles");En(this,"innerRadius");En(this,"outerRadius");En(this,"pixelMargin");En(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,o){const i=this.getProps(["x","y"],o),{angle:a,distance:s}=V_(i,{x:n,y:r}),{startAngle:c,endAngle:u,innerRadius:d,outerRadius:h,circumference:g}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],o),m=(this.options.spacing+this.options.borderWidth)/2,v=h1(g,u-c),A=U4(a,c,u)&&c!==u,p=v>=_0||A,x=zi(s,d+m,h+m);return p&&x}getCenterPoint(n){const{x:r,y:o,startAngle:i,endAngle:a,innerRadius:s,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:d}=this.options,h=(i+a)/2,g=(s+c+d+u)/2;return{x:r+Math.cos(h)*g,y:o+Math.sin(h)*g}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:o}=this,i=(r.offset||0)/4,a=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=o>_0?Math.floor(o/_0):0,o===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const c=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(c)*i,Math.sin(c)*i);const u=1-Math.sin(Math.min(V0,o||0)),d=i*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,R1e(n,this,d,a,s),F1e(n,this,d,a,s),n.restore()}}En(ns,"id","arc"),En(ns,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),En(ns,"defaultRoutes",{backgroundColor:"backgroundColor"}),En(ns,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function cw(e,t,n=t){e.lineCap=h1(n.borderCapStyle,t.borderCapStyle),e.setLineDash(h1(n.borderDash,t.borderDash)),e.lineDashOffset=h1(n.borderDashOffset,t.borderDashOffset),e.lineJoin=h1(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=h1(n.borderWidth,t.borderWidth),e.strokeStyle=h1(n.borderColor,t.borderColor)}function z1e(e,t,n){e.lineTo(n.x,n.y)}function j1e(e){return e.stepped?dte:e.tension||e.cubicInterpolationMode==="monotone"?fte:z1e}function uw(e,t,n={}){const r=e.length,{start:o=0,end:i=r-1}=n,{start:a,end:s}=t,c=Math.max(o,a),u=Math.min(i,s),d=o<a&&i<a||o>s&&i>s;return{count:r,start:c,loop:t.loop,ilen:u<c&&!d?r+u-c:u-c}}function V1e(e,t,n,r){const{points:o,options:i}=t,{count:a,start:s,loop:c,ilen:u}=uw(o,n,r),d=j1e(i);let{move:h=!0,reverse:g}=r||{},m,v,A;for(m=0;m<=u;++m)v=o[(s+(g?u-m:m))%a],!v.skip&&(h?(e.moveTo(v.x,v.y),h=!1):d(e,A,v,g,i.stepped),A=v);return c&&(v=o[(s+(g?u:0))%a],d(e,A,v,g,i.stepped)),!!c}function Z1e(e,t,n,r){const o=t.points,{count:i,start:a,ilen:s}=uw(o,n,r),{move:c=!0,reverse:u}=r||{};let d=0,h=0,g,m,v,A,p,x;const y=E=>(a+(u?s-E:E))%i,w=()=>{A!==p&&(e.lineTo(d,p),e.lineTo(d,A),e.lineTo(d,x))};for(c&&(m=o[y(0)],e.moveTo(m.x,m.y)),g=0;g<=s;++g){if(m=o[y(g)],m.skip)continue;const E=m.x,S=m.y,M=E|0;M===v?(S<A?A=S:S>p&&(p=S),d=(h*d+E)/++h):(w(),e.lineTo(E,S),v=M,h=0,A=p=S),x=S}w()}function vf(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Z1e:V1e}function U1e(e){return e.stepped?Ute:e.tension||e.cubicInterpolationMode==="monotone"?$te:F9}function $1e(e,t,n,r){let o=t._path;o||(o=t._path=new Path2D,t.path(o,n,r)&&o.closePath()),cw(e,t.options),e.stroke(o)}function W1e(e,t,n,r){const{segments:o,options:i}=t,a=vf(t);for(const s of o)cw(e,i,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const K1e=typeof Path2D=="function";function Q1e(e,t,n,r){K1e&&!t.options.segment?$1e(e,t,n,r):W1e(e,t,n,r)}class Ra extends Ta{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const o=r.spanGaps?this._loop:this._fullLoop;Nte(this._points,r,t,o,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=qte(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,o=t[n],i=this.points,a=Ay(this,{property:n,start:o,end:o});if(!a.length)return;const s=[],c=U1e(r);let u,d;for(u=0,d=a.length;u<d;++u){const{start:h,end:g}=a[u],m=i[h],v=i[g];if(m===v){s.push(m);continue}const A=Math.abs((o-m[n])/(v[n]-m[n])),p=c(m,v,A,r.stepped);p[n]=t[n],s.push(p)}return s.length===1?s[0]:s}pathSegment(t,n,r){return vf(this)(t,this,n,r)}path(t,n,r){const o=this.segments,i=vf(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const s of o)a&=i(t,this,s,{start:n,end:n+r-1});return!!a}draw(t,n,r,o){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),Q1e(t,this,r,o),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}En(Ra,"id","line"),En(Ra,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),En(Ra,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),En(Ra,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function dw(e,t,n,r){const o=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<o.radius+o.hitRadius}class Rc extends Ta{constructor(n){super();En(this,"parsed");En(this,"skip");En(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,o){const i=this.options,{x:a,y:s}=this.getProps(["x","y"],o);return Math.pow(n-a,2)+Math.pow(r-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,r){return dw(this,n,"x",r)}inYRange(n,r){return dw(this,n,"y",r)}getCenterPoint(n){const{x:r,y:o}=this.getProps(["x","y"],n);return{x:r,y:o}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const o=r&&n.borderWidth||0;return(r+o)*2}draw(n,r){const o=this.options;this.skip||o.radius<.1||!K4(this,r,this.size(o)/2)||(n.strokeStyle=o.borderColor,n.lineWidth=o.borderWidth,n.fillStyle=o.backgroundColor,Jd(n,o,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}En(Rc,"id","point"),En(Rc,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),En(Rc,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function fw(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let s,c,u,d,h;return e.horizontal?(h=a/2,s=Math.min(n,o),c=Math.max(n,o),u=r-h,d=r+h):(h=i/2,s=n-h,c=n+h,u=Math.min(r,o),d=Math.max(r,o)),{left:s,top:u,right:c,bottom:d}}function Fa(e,t,n,r){return e?0:Er(t,n,r)}function G1e(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=oy(r);return{t:Fa(o.top,i.top,0,n),r:Fa(o.right,i.right,0,t),b:Fa(o.bottom,i.bottom,0,n),l:Fa(o.left,i.left,0,t)}}function Y1e(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=Z3(o),a=Math.min(t,n),s=e.borderSkipped,c=r||A1(o);return{topLeft:Fa(!c||s.top||s.left,i.topLeft,0,a),topRight:Fa(!c||s.top||s.right,i.topRight,0,a),bottomLeft:Fa(!c||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:Fa(!c||s.bottom||s.right,i.bottomRight,0,a)}}function q1e(e){const t=fw(e),n=t.right-t.left,r=t.bottom-t.top,o=G1e(e,n/2,r/2),i=Y1e(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function Af(e,t,n,r){const o=t===null,i=n===null,s=e&&!(o&&i)&&fw(e,r);return s&&(o||zi(t,s.left,s.right))&&(i||zi(n,s.top,s.bottom))}function X1e(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function J1e(e,t){e.rect(t.x,t.y,t.w,t.h)}function bf(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class Fc extends Ta{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=q1e(this),s=X1e(a.radius)?_c:J1e;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),s(t,bf(a,n,i)),t.clip(),s(t,bf(i,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,bf(i,n)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,n,r){return Af(this,t,n,r)}inXRange(t,n){return Af(this,t,null,n)}inYRange(t,n){return Af(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}En(Fc,"id","bar"),En(Fc,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),En(Fc,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function e0e(e,t,n){const r=e.segments,o=e.points,i=t.points,a=[];for(const s of r){let{start:c,end:u}=s;u=yf(c,u,o);const d=_f(n,o[c],o[u],s.loop);if(!t.segments){a.push({source:s,target:d,start:o[c],end:o[u]});continue}const h=Ay(t,d);for(const g of h){const m=_f(n,i[g.start],i[g.end],g.loop),v=vy(s,o,m);for(const A of v)a.push({source:A,target:g,start:{[n]:hw(d,m,"start",Math.max)},end:{[n]:hw(d,m,"end",Math.min)}})}}return a}function _f(e,t,n,r){if(r)return;let o=t[e],i=n[e];return e==="angle"&&(o=Qo(o),i=Qo(i)),{property:e,start:o,end:i}}function t0e(e,t){const{x:n=null,y:r=null}=e||{},o=t.points,i=[];return t.segments.forEach(({start:a,end:s})=>{s=yf(a,s,o);const c=o[a],u=o[s];r!==null?(i.push({x:c.x,y:r}),i.push({x:u.x,y:r})):n!==null&&(i.push({x:n,y:c.y}),i.push({x:n,y:u.y}))}),i}function yf(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function hw(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function gw(e,t){let n=[],r=!1;return W0(e)?(r=!0,n=e):n=t0e(e,t),n.length?new Ra({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Cw(e){return e&&e.fill!==!1}function n0e(e,t,n){let o=e[t].fill;const i=[t];let a;if(!n)return o;for(;o!==!1&&i.indexOf(o)===-1;){if(!xr(o))return o;if(a=e[o],!a)return!1;if(a.visible)return o;i.push(o),o=a.fill}return!1}function r0e(e,t,n){const r=s0e(e);if(A1(r))return isNaN(r.value)?!1:r;let o=parseFloat(r);return xr(o)&&Math.floor(o)===o?o0e(r[0],t,o,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function o0e(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function i0e(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:A1(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function a0e(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:A1(e)?r=e.value:r=t.getBaseValue(),r}function s0e(e){const t=e.options,n=t.fill;let r=h1(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function l0e(e){const{scale:t,index:n,line:r}=e,o=[],i=r.segments,a=r.points,s=c0e(t,n);s.push(gw({x:null,y:t.bottom},r));for(let c=0;c<i.length;c++){const u=i[c];for(let d=u.start;d<=u.end;d++)u0e(o,a[d],s)}return new Ra({points:o,options:{}})}function c0e(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let o=0;o<r.length;o++){const i=r[o];if(i.index===t)break;i.hidden||n.unshift(i.dataset)}return n}function u0e(e,t,n){const r=[];for(let o=0;o<n.length;o++){const i=n[o],{first:a,last:s,point:c}=d0e(i,t,"x");if(!(!c||a&&s)){if(a)r.unshift(c);else if(e.push(c),!s)break}}e.push(...r)}function d0e(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const o=r[n],i=e.segments,a=e.points;let s=!1,c=!1;for(let u=0;u<i.length;u++){const d=i[u],h=a[d.start][n],g=a[d.end][n];if(zi(o,h,g)){s=o===h,c=o===g;break}}return{first:s,last:c,point:r}}class mw{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:o,y:i,radius:a}=this;return n=n||{start:0,end:_0},t.arc(o,i,a,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:o}=this,i=t.angle;return{x:n+Math.cos(i)*o,y:r+Math.sin(i)*o,angle:i}}}function f0e(e){const{chart:t,fill:n,line:r}=e;if(xr(n))return h0e(t,n);if(n==="stack")return l0e(e);if(n==="shape")return!0;const o=g0e(e);return o instanceof mw?o:gw(o,r)}function h0e(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function g0e(e){return(e.scale||{}).getPointPositionForValue?m0e(e):C0e(e)}function C0e(e){const{scale:t={},fill:n}=e,r=i0e(n,t);if(xr(r)){const o=t.isHorizontal();return{x:o?r:null,y:o?null:r}}return null}function m0e(e){const{scale:t,fill:n}=e,r=t.options,o=t.getLabels().length,i=r.reverse?t.max:t.min,a=a0e(n,t,i),s=[];if(r.grid.circular){const c=t.getPointPositionForValue(0,i);return new mw({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(a)})}for(let c=0;c<o;++c)s.push(t.getPointPositionForValue(c,a));return s}function wf(e,t,n){const r=f0e(t),{chart:o,index:i,line:a,scale:s,axis:c}=t,u=a.options,d=u.fill,h=u.backgroundColor,{above:g=h,below:m=h}=d||{},v=o.getDatasetMeta(i),A=yy(o,v);r&&a.points.length&&(vc(e,n),p0e(e,{line:a,target:r,above:g,below:m,area:n,scale:s,axis:c,clip:A}),Ac(e))}function p0e(e,t){const{line:n,target:r,above:o,below:i,area:a,scale:s,clip:c}=t,u=n._loop?"angle":t.axis;e.save(),u==="x"&&i!==o&&(pw(e,r,a.top),vw(e,{line:n,target:r,color:o,scale:s,property:u,clip:c}),e.restore(),e.save(),pw(e,r,a.bottom)),vw(e,{line:n,target:r,color:i,scale:s,property:u,clip:c}),e.restore()}function pw(e,t,n){const{segments:r,points:o}=t;let i=!0,a=!1;e.beginPath();for(const s of r){const{start:c,end:u}=s,d=o[c],h=o[yf(c,u,o)];i?(e.moveTo(d.x,d.y),i=!1):(e.lineTo(d.x,n),e.lineTo(d.x,d.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(h.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function vw(e,t){const{line:n,target:r,property:o,color:i,scale:a,clip:s}=t,c=e0e(n,r,o);for(const{source:u,target:d,start:h,end:g}of c){const{style:{backgroundColor:m=i}={}}=u,v=r!==!0;e.save(),e.fillStyle=m,v0e(e,a,s,v&&_f(o,h,g)),e.beginPath();const A=!!n.pathSegment(e,u);let p;if(v){A?e.closePath():Aw(e,r,g,o);const x=!!r.pathSegment(e,d,{move:A,reverse:!0});p=A&&x,p||Aw(e,r,h,o)}e.closePath(),e.fill(p?"evenodd":"nonzero"),e.restore()}}function v0e(e,t,n,r){const o=t.chart.chartArea,{property:i,start:a,end:s}=r||{};if(i==="x"||i==="y"){let c,u,d,h;i==="x"?(c=a,u=o.top,d=s,h=o.bottom):(c=o.left,u=a,d=o.right,h=s),e.beginPath(),n&&(c=Math.max(c,n.left),d=Math.min(d,n.right),u=Math.max(u,n.top),h=Math.min(h,n.bottom)),e.rect(c,u,d-c,h-u),e.clip()}}function Aw(e,t,n,r){const o=t.interpolate(n,r);o&&e.lineTo(o.x,o.y)}var A0e={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,o=[];let i,a,s,c;for(a=0;a<r;++a)i=e.getDatasetMeta(a),s=i.dataset,c=null,s&&s.options&&s instanceof Ra&&(c={visible:e.isDatasetVisible(a),index:a,fill:r0e(s,a,r),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:s}),i.$filler=c,o.push(c);for(a=0;a<r;++a)c=o[a],!(!c||c.fill===!1)&&(c.fill=n0e(o,a,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",o=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let a=o.length-1;a>=0;--a){const s=o[a].$filler;s&&(s.line.updateControlPoints(i,s.axis),r&&s.fill&&wf(e.ctx,s,i))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let o=r.length-1;o>=0;--o){const i=r[o].$filler;Cw(i)&&wf(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!Cw(r)||n.drawTime!=="beforeDatasetDraw"||wf(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const bw=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},b0e=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class _w extends Ta{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=h0(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,o)=>t.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,o=t2(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:c}=bw(r,i);let u,d;n.font=o.string,this.isHorizontal()?(u=this.maxWidth,d=this._fitRows(a,i,s,c)+10):(d=this.maxHeight,u=this._fitCols(a,o,s,c)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:s}}}=this,c=this.legendHitBoxes=[],u=this.lineWidths=[0],d=o+s;let h=t;i.textAlign="left",i.textBaseline="middle";let g=-1,m=-d;return this.legendItems.forEach((v,A)=>{const p=r+n/2+i.measureText(v.text).width;(A===0||u[u.length-1]+p+2*s>a)&&(h+=d,u[u.length-(A>0?0:1)]=0,m+=d,g++),c[A]={left:0,top:m,row:g,width:p,height:o},u[u.length-1]+=p+s}),h}_fitCols(t,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:s}}}=this,c=this.legendHitBoxes=[],u=this.columnSizes=[],d=a-t;let h=s,g=0,m=0,v=0,A=0;return this.legendItems.forEach((p,x)=>{const{itemWidth:y,itemHeight:w}=_0e(r,n,i,p,o);x>0&&m+w+2*s>d&&(h+=g+s,u.push({width:g,height:m}),v+=g+s,A++,g=m=0),c[x]={left:v,top:m,col:A,width:y,height:w},g=Math.max(g,y),m+=w+s}),h+=g,u.push({width:g,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=W3(i,this.left,this.width);if(this.isHorizontal()){let s=0,c=y2(r,this.left+o,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,c=y2(r,this.left+o,this.right-this.lineWidths[s])),u.top+=this.top+t+o,u.left=a.leftForLtr(a.x(c),u.width),c+=u.width+o}else{let s=0,c=y2(r,this.top+t+o,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,c=y2(r,this.top+t+o,this.bottom-this.columnSizes[s].height)),u.top=c,u.left+=this.left+o,u.left=a.leftForLtr(a.x(u.left),u.width),c+=u.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;vc(t,this),this._draw(),Ac(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,s=D0.color,c=W3(t.rtl,this.left,this.width),u=t2(a.font),{padding:d}=a,h=u.size,g=h/2;let m;this.drawTitle(),o.textAlign=c.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=u.string;const{boxWidth:v,boxHeight:A,itemHeight:p}=bw(a,h),x=function(M,H,k){if(isNaN(v)||v<=0||isNaN(A)||A<0)return;o.save();const D=h1(k.lineWidth,1);if(o.fillStyle=h1(k.fillStyle,s),o.lineCap=h1(k.lineCap,"butt"),o.lineDashOffset=h1(k.lineDashOffset,0),o.lineJoin=h1(k.lineJoin,"miter"),o.lineWidth=D,o.strokeStyle=h1(k.strokeStyle,s),o.setLineDash(h1(k.lineDash,[])),a.usePointStyle){const P={radius:A*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:D},T=c.xPlus(M,v/2),N=H+g;ry(o,P,T,N,a.pointStyleWidth&&v)}else{const P=H+Math.max((h-A)/2,0),T=c.leftForLtr(M,v),N=Z3(k.borderRadius);o.beginPath(),Object.values(N).some(F=>F!==0)?_c(o,{x:T,y:P,w:v,h:A,radius:N}):o.rect(T,P,v,A),o.fill(),D!==0&&o.stroke()}o.restore()},y=function(M,H,k){bc(o,k.text,M,H+p/2,u,{strikethrough:k.hidden,textAlign:c.textAlign(k.textAlign)})},w=this.isHorizontal(),E=this._computeTitleHeight();w?m={x:y2(i,this.left+d,this.right-r[0]),y:this.top+d+E,line:0}:m={x:this.left+d,y:y2(i,this.top+E+d,this.bottom-n[0].height),line:0},gy(this.ctx,t.textDirection);const S=p+d;this.legendItems.forEach((M,H)=>{o.strokeStyle=M.fontColor,o.fillStyle=M.fontColor;const k=o.measureText(M.text).width,D=c.textAlign(M.textAlign||(M.textAlign=a.textAlign)),P=v+g+k;let T=m.x,N=m.y;c.setWidth(this.width),w?H>0&&T+P+d>this.right&&(N=m.y+=S,m.line++,T=m.x=y2(i,this.left+d,this.right-r[m.line])):H>0&&N+S>this.bottom&&(T=m.x=T+n[m.line].width+d,m.line++,N=m.y=y2(i,this.top+E+d,this.bottom-n[m.line].height));const F=c.x(T);if(x(F,N,M),T=Jee(D,T+v+g,w?T+P:this.right,t.rtl),y(c.x(T),N,M),w)m.x+=P+d;else if(typeof M.text!="string"){const j=u.lineHeight;m.y+=yw(M,j)+d}else m.y+=S}),Cy(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=t2(n.font),o=po(n.padding);if(!n.display)return;const i=W3(t.rtl,this.left,this.width),a=this.ctx,s=n.position,c=r.size/2,u=o.top+c;let d,h=this.left,g=this.width;if(this.isHorizontal())g=Math.max(...this.lineWidths),d=this.top+u,h=y2(t.align,h,this.right-g);else{const v=this.columnSizes.reduce((A,p)=>Math.max(A,p.height),0);d=u+y2(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const m=y2(s,h,h+g);a.textAlign=i.textAlign(Q_(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,bc(a,n.text,m,d,r)}_computeTitleHeight(){const t=this.options.title,n=t2(t.font),r=po(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,o,i;if(zi(t,this.left,this.right)&&zi(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(o=i[r],zi(t,o.left,o.left+o.width)&&zi(n,o.top,o.top+o.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!x0e(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const o=this._hoveredItem,i=b0e(o,r);o&&!i&&h0(n.onLeave,[t,o,this],this),this._hoveredItem=r,r&&!i&&h0(n.onHover,[t,r,this],this)}else r&&h0(n.onClick,[t,r,this],this)}}function _0e(e,t,n,r,o){const i=y0e(r,e,t,n),a=w0e(o,r,t.lineHeight);return{itemWidth:i,itemHeight:a}}function y0e(e,t,n,r){let o=e.text;return o&&typeof o!="string"&&(o=o.reduce((i,a)=>i.length>a.length?i:a)),t+n.size/2+r.measureText(o).width}function w0e(e,t,n){let r=e;return typeof t.text!="string"&&(r=yw(t,n)),r}function yw(e,t){const n=e.text?e.text.length:0;return t*n}function x0e(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var xf={id:"legend",_element:_w,start(e,t,n){const r=e.legend=new _w({ctx:e.ctx,options:n,chart:e});Na.configure(e,r,n),Na.addBox(e,r)},stop(e){Na.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Na.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(c=>{const u=c.controller.getStyle(n?0:void 0),d=po(u.borderWidth);return{text:t[c.index].label,fillStyle:u.backgroundColor,fontColor:i,hidden:!c.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:o||u.textAlign,borderRadius:a&&(s||u.borderRadius),datasetIndex:c.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const rs={average(e){if(!e.length)return!1;let t,n,r=new Set,o=0,i=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const c=s.tooltipPosition();r.add(c.x),o+=c.y,++i}}return i===0||r.size===0?!1:{x:[...r].reduce((s,c)=>s+c)/r.size,y:o/i}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,o=Number.POSITIVE_INFINITY,i,a,s;for(i=0,a=e.length;i<a;++i){const c=e[i].element;if(c&&c.hasValue()){const u=c.getCenterPoint(),d=Wd(t,u);d<o&&(o=d,s=c)}}if(s){const c=s.tooltipPosition();n=c.x,r=c.y}return{x:n,y:r}}};function Yo(e,t){return t&&(W0(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Vi(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
356
356
  `)>-1?e.split(`
357
- `):e}function E0e(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function ww(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:s}=t,c=t2(t.bodyFont),u=t2(t.titleFont),d=t2(t.footerFont),h=i.length,g=o.length,m=r.length,v=po(t.padding);let A=v.height,p=0,x=r.reduce((E,S)=>E+S.before.length+S.lines.length+S.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,h&&(A+=h*u.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),x){const E=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;A+=m*E+(x-m)*c.lineHeight+(x-1)*t.bodySpacing}g&&(A+=t.footerMarginTop+g*d.lineHeight+(g-1)*t.footerSpacing);let y=0;const w=function(E){p=Math.max(p,n.measureText(E).width+y)};return n.save(),n.font=u.string,J1(e.title,w),n.font=c.string,J1(e.beforeBody.concat(e.afterBody),w),y=t.displayColors?a+2+t.boxPadding:0,J1(r,E=>{J1(E.before,w),J1(E.lines,w),J1(E.after,w)}),y=0,n.font=d.string,J1(e.footer,w),n.restore(),p+=v.width,{width:p,height:A}}function S0e(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function M0e(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function H0e(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:s,right:c}}=e;let u="center";return r==="center"?u=o<=(s+c)/2?"left":"right":o<=i/2?u="left":o>=a-i/2&&(u="right"),M0e(u,e,t,n)&&(u="center"),u}function xw(e,t,n){const r=n.yAlign||t.yAlign||S0e(e,n);return{xAlign:n.xAlign||t.xAlign||H0e(e,t,n,r),yAlign:r}}function L0e(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function B0e(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function Ew(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:c}=n,u=o+i,{topLeft:d,topRight:h,bottomLeft:g,bottomRight:m}=Z3(a);let v=L0e(t,s);const A=B0e(t,c,u);return c==="center"?s==="left"?v+=u:s==="right"&&(v-=u):s==="left"?v-=Math.max(d,g)+o:s==="right"&&(v+=Math.max(h,m)+o),{x:Er(v,0,r.width-t.width),y:Er(A,0,r.height-t.height)}}function zc(e,t,n){const r=po(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Sw(e){return Yo([],Vi(e))}function k0e(e,t,n){return N9(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Mw(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Hw={beforeTitle:Ri,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Ri,beforeBody:Ri,beforeLabel:Ri,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return $1(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Ri,afterBody:Ri,beforeFooter:Ri,footer:Ri,afterFooter:Ri};function n2(e,t,n,r){const o=e[t].call(n,r);return typeof o>"u"?Hw[t].call(n,r):o}let Lw=(Im=class extends Ta{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new xy(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=k0e(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=n2(r,"beforeTitle",this,t),i=n2(r,"title",this,t),a=n2(r,"afterTitle",this,t);let s=[];return s=Yo(s,Vi(o)),s=Yo(s,Vi(i)),s=Yo(s,Vi(a)),s}getBeforeBody(t,n){return Sw(n2(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return J1(t,i=>{const a={before:[],lines:[],after:[]},s=Mw(r,i);Yo(a.before,Vi(n2(s,"beforeLabel",this,i))),Yo(a.lines,n2(s,"label",this,i)),Yo(a.after,Vi(n2(s,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return Sw(n2(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=n2(r,"beforeFooter",this,t),i=n2(r,"footer",this,t),a=n2(r,"afterFooter",this,t);let s=[];return s=Yo(s,Vi(o)),s=Yo(s,Vi(i)),s=Yo(s,Vi(a)),s}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let s=[],c,u;for(c=0,u=n.length;c<u;++c)s.push(E0e(this.chart,n[c]));return t.filter&&(s=s.filter((d,h,g)=>t.filter(d,h,g,r))),t.itemSort&&(s=s.sort((d,h)=>t.itemSort(d,h,r))),J1(s,d=>{const h=Mw(t.callbacks,d);o.push(n2(h,"labelColor",this,d)),i.push(n2(h,"labelPointStyle",this,d)),a.push(n2(h,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const s=rs[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const c=this._size=ww(this,r),u=Object.assign({},s,c),d=xw(this.chart,r,u),h=Ew(r,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:h.x,y:h.y,width:c.width,height:c.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:h}=Z3(s),{x:g,y:m}=t,{width:v,height:A}=n;let p,x,y,w,E,S;return i==="center"?(E=m+A/2,o==="left"?(p=g,x=p-a,w=E+a,S=E-a):(p=g+v,x=p+a,w=E-a,S=E+a),y=p):(o==="left"?x=g+Math.max(c,d)+a:o==="right"?x=g+v-Math.max(u,h)-a:x=this.caretX,i==="top"?(w=m,E=w-a,p=x-a,y=x+a):(w=m+A,E=w+a,p=x+a,y=x-a),S=w),{x1:p,x2:x,x3:y,y1:w,y2:E,y3:S}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,s,c;if(i){const u=W3(r.rtl,this.x,this.width);for(t.x=zc(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",a=t2(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,c=0;c<i;++c)n.fillText(o[c],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,c+1===i&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,o,i){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:c,boxWidth:u}=i,d=t2(i.bodyFont),h=zc(this,"left",i),g=o.x(h),m=c<d.lineHeight?(d.lineHeight-c)/2:0,v=n.y+m;if(i.usePointStyle){const A={radius:Math.min(u,c)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},p=o.leftForLtr(g,u)+u/2,x=v+c/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,Jd(t,A,p,x),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Jd(t,A,p,x)}else{t.lineWidth=A1(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const A=o.leftForLtr(g,u),p=o.leftForLtr(o.xPlus(g,1),u-2),x=Z3(a.borderRadius);Object.values(x).some(y=>y!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,_c(t,{x:A,y:v,w:u,h:c,radius:x}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),_c(t,{x:p,y:v+1,w:u-2,h:c-2,radius:x}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(A,v,u,c),t.strokeRect(A,v,u,c),t.fillStyle=a.backgroundColor,t.fillRect(p,v+1,u-2,c-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:s,boxHeight:c,boxWidth:u,boxPadding:d}=r,h=t2(r.bodyFont);let g=h.lineHeight,m=0;const v=W3(r.rtl,this.x,this.width),A=function(k){n.fillText(k,v.x(t.x+m),t.y+g/2),t.y+=g+i},p=v.textAlign(a);let x,y,w,E,S,M,H;for(n.textAlign=a,n.textBaseline="middle",n.font=h.string,t.x=zc(this,p,r),n.fillStyle=r.bodyColor,J1(this.beforeBody,A),m=s&&p!=="right"?a==="center"?u/2+d:u+2+d:0,E=0,M=o.length;E<M;++E){for(x=o[E],y=this.labelTextColors[E],n.fillStyle=y,J1(x.before,A),w=x.lines,s&&w.length&&(this._drawColorBox(n,t,E,v,r),g=Math.max(h.lineHeight,c)),S=0,H=w.length;S<H;++S)A(w[S]),g=h.lineHeight;J1(x.after,A)}m=0,g=h.lineHeight,J1(this.afterBody,A),t.y-=i}drawFooter(t,n,r){const o=this.footer,i=o.length;let a,s;if(i){const c=W3(r.rtl,this.x,this.width);for(t.x=zc(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=c.textAlign(r.footerAlign),n.textBaseline="middle",a=t2(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<i;++s)n.fillText(o[s],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,o){const{xAlign:i,yAlign:a}=this,{x:s,y:c}=t,{width:u,height:d}=r,{topLeft:h,topRight:g,bottomLeft:m,bottomRight:v}=Z3(o.cornerRadius);n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,n.lineWidth=o.borderWidth,n.beginPath(),n.moveTo(s+h,c),a==="top"&&this.drawCaret(t,n,r,o),n.lineTo(s+u-g,c),n.quadraticCurveTo(s+u,c,s+u,c+g),a==="center"&&i==="right"&&this.drawCaret(t,n,r,o),n.lineTo(s+u,c+d-v),n.quadraticCurveTo(s+u,c+d,s+u-v,c+d),a==="bottom"&&this.drawCaret(t,n,r,o),n.lineTo(s+m,c+d),n.quadraticCurveTo(s,c+d,s,c+d-m),a==="center"&&i==="left"&&this.drawCaret(t,n,r,o),n.lineTo(s,c+h),n.quadraticCurveTo(s,c,s+h,c),n.closePath(),n.fill(),o.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=rs[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=ww(this,t),c=Object.assign({},a,this._size),u=xw(n,t,c),d=Ew(t,c,u,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=po(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),gy(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),Cy(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:s,index:c})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[c],index:c}}),i=!gc(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),s=this._positionChanged(a,t),c=n||!gc(a,i)||s;return c&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),c}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=rs[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}},En(Im,"positioners",rs),Im);var Ef={id:"tooltip",_element:Lw,positioners:rs,afterInit(e,t,n){n&&(e.tooltip=new Lw({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Hw},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const O0e=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function I0e(e,t,n,r){const o=e.indexOf(t);if(o===-1)return O0e(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const D0e=(e,t)=>e===null?null:Er(Math.round(e),0,t);function Bw(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class os extends Q3{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:o,label:i}of n)r[o]===i&&r.splice(o,1);this._addedLabels=[]}super.init(t)}parse(t,n){if($1(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:I0e(r,t,h1(n,t),this._addedLabels),D0e(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,o=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)o.push({value:a});return o}getLabelForValue(t){return Bw.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}En(os,"id","category"),En(os,"defaults",{ticks:{callback:Bw}});function P0e(e,t){const n=[],{bounds:o,step:i,min:a,max:s,precision:c,count:u,maxTicks:d,maxDigits:h,includeBounds:g}=e,m=i||1,v=d-1,{min:A,max:p}=t,x=!$1(a),y=!$1(s),w=!$1(u),E=(p-A)/(h+1);let S=z_((p-A)/v/m)*m,M,H,k,D;if(S<1e-14&&!x&&!y)return[{value:A},{value:p}];D=Math.ceil(p/S)-Math.floor(A/S),D>v&&(S=z_(D*S/v/m)*m),$1(c)||(M=Math.pow(10,c),S=Math.ceil(S*M)/M),o==="ticks"?(H=Math.floor(A/S)*S,k=Math.ceil(p/S)*S):(H=A,k=p),x&&y&&i&&Uee((s-a)/i,S/1e3)?(D=Math.round(Math.min((s-a)/S,d)),S=(s-a)/D,H=a,k=s):w?(H=x?a:H,k=y?s:k,D=u-1,S=(k-H)/D):(D=(k-H)/S,V4(D,Math.round(D),S/1e3)?D=Math.round(D):D=Math.ceil(D));const P=Math.max(j_(S),j_(H));M=Math.pow(10,$1(c)?P:c),H=Math.round(H*M)/M,k=Math.round(k*M)/M;let T=0;for(x&&(g&&H!==a?(n.push({value:a}),H<a&&T++,V4(Math.round((H+T*S)*M)/M,a,kw(a,E,e))&&T++):H<a&&T++);T<D;++T){const N=Math.round((H+T*S)*M)/M;if(y&&N>s)break;n.push({value:N})}return y&&g&&k!==s?n.length&&V4(n[n.length-1].value,s,kw(s,E,e))?n[n.length-1].value=s:n.push({value:s}):(!y||k===s)&&n.push({value:k}),n}function kw(e,t,{horizontal:n,minRotation:r}){const o=Fi(r),i=(n?Math.sin(o):Math.cos(o))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class N0e extends Q3{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return $1(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:o,max:i}=this;const a=c=>o=n?o:c,s=c=>i=r?i:c;if(t){const c=Ko(o),u=Ko(i);c<0&&u<0?s(0):c>0&&u>0&&a(0)}if(o===i){let c=i===0?1:Math.abs(i*.05);s(i+c),t||a(o-c)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=P0e(o,i);return t.bounds==="ticks"&&$ee(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Yd(t,this.chart.options.locale,this.options.ticks.format)}}class is extends N0e{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=xr(t)?t:0,this.max=xr(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Fi(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}En(is,"id","linear"),En(is,"defaults",{ticks:{callback:ey.formatters.numeric}});const jc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},r2=Object.keys(jc);function Ow(e,t){return e-t}function Iw(e,t){if($1(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),xr(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(Z4(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function Dw(e,t,n,r){const o=r2.length;for(let i=r2.indexOf(e);i<o-1;++i){const a=jc[r2[i]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return r2[i]}return r2[o-1]}function T0e(e,t,n,r,o){for(let i=r2.length-1;i>=r2.indexOf(n);i--){const a=r2[i];if(jc[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return r2[n?r2.indexOf(n):0]}function R0e(e){for(let t=r2.indexOf(e)+1,n=r2.length;t<n;++t)if(jc[r2[t]].common)return r2[t]}function Pw(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:o}=Kd(n,t),i=n[r]>=t?n[r]:n[o];e[i]=!0}}function F0e(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let s,c;for(s=i;s<=a;s=+o.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function Nw(e,t,n){const r=[],o={},i=t.length;let a,s;for(a=0;a<i;++a)s=t[a],o[s]=a,r.push({value:s,major:!1});return i===0||!n?r:F0e(e,r,o,n)}class Vc extends Q3{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),o=this._adapter=new Sne._date(t.adapters.date);o.init(n),z4(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Iw(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:o,max:i,minDefined:a,maxDefined:s}=this.getUserBounds();function c(u){!a&&!isNaN(u.min)&&(o=Math.min(o,u.min)),!s&&!isNaN(u.max)&&(i=Math.max(i,u.max))}(!a||!s)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=xr(o)&&!isNaN(o)?o:+n.startOf(Date.now(),r),i=xr(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(o,i-1),this.max=Math.max(o+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const i=this.min,a=this.max,s=Yee(o,i,a);return this._unit=n.unit||(r.autoSkip?Dw(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):T0e(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:R0e(this._unit),this.initOffsets(o),t.reverse&&s.reverse(),Nw(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Er(n,0,a),r=Er(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||Dw(i.minUnit,n,r,this._getLabelCapacity(n)),s=h1(o.ticks.stepSize,1),c=a==="week"?i.isoWeekday:!1,u=Z4(c)||c===!0,d={};let h=n,g,m;if(u&&(h=+t.startOf(h,"isoWeek",c)),h=+t.startOf(h,u?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const v=o.ticks.source==="data"&&this.getDataTimestamps();for(g=h,m=0;g<r;g=+t.add(g,s,a),m++)Pw(d,g,v);return(g===r||o.bounds==="ticks"||m===1)&&Pw(d,g,v),Object.keys(d).sort(Ow).map(A=>+A)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return h0(a,[t,n,r],this);const s=i.time.displayFormats,c=this._unit,u=this._majorUnit,d=c&&s[c],h=u&&s[u],g=r[n],m=u&&h&&g&&g.major;return this._adapter.format(t,o||(m?h:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n<r;++n)o=t[n],o.label=this._tickFormatFunction(o.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,o=Fi(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(o),a=Math.sin(o),s=this._resolveTickFontOptions(0).size;return{w:r*i+s*a,h:r*a+s*i}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,o=r[n.unit]||r.millisecond,i=this._tickFormatFunction(t,0,Nw(this,[t],this._majorUnit),o),a=this._getLabelSize(i),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n<r;++n)t=t.concat(o[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const o=this.getLabels();for(n=0,r=o.length;n<r;++n)t.push(Iw(this,o[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return $_(t.sort(Ow))}}En(Vc,"id","time"),En(Vc,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Zc(e,t,n){let r=0,o=e.length-1,i,a,s,c;n?(t>=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=I9(e,"pos",t)),{pos:i,time:s}=e[r],{pos:a,time:c}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=I9(e,"time",t)),{time:i,pos:s}=e[r],{time:a,pos:c}=e[o]);const u=a-i;return u?s+(c-s)*(t-i)/u:s}class Tw extends Vc{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Zc(n,this.min),this._tableRange=Zc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,s,c,u,d;for(a=0,s=t.length;a<s;++a)u=t[a],u>=n&&u<=r&&o.push(u);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=o.length;a<s;++a)d=o[a+1],c=o[a-1],u=o[a],Math.round((d+c)/2)!==u&&i.push({time:u,pos:a/(s-1)});return i}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((o,i)=>o-i)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Zc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Zc(this._table,r*this._tableRange+this._minPos,!0)}}En(Tw,"id","timeseries"),En(Tw,"defaults",Vc.defaults);const Rw="label";function Fw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function z0e(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function zw(e,t){e.labels=t}function jw(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rw;const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function j0e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rw;const n={labels:[],datasets:[]};return zw(n,e.labels),jw(n,e.datasets,t),n}function V0e(e,t){const{height:n=150,width:r=300,redraw:o=!1,datasetIdKey:i,type:a,data:s,options:c,plugins:u=[],fallbackContent:d,updateMode:h,...g}=e,m=O.useRef(null),v=O.useRef(null),A=()=>{m.current&&(v.current=new G3(m.current,{type:a,data:j0e(s,i),options:c&&{...c},plugins:u}),Fw(t,v.current))},p=()=>{Fw(t,null),v.current&&(v.current.destroy(),v.current=null)};return O.useEffect(()=>{!o&&v.current&&c&&z0e(v.current,c)},[o,c]),O.useEffect(()=>{!o&&v.current&&zw(v.current.config.data,s.labels)},[o,s.labels]),O.useEffect(()=>{!o&&v.current&&s.datasets&&jw(v.current.config.data,s.datasets,i)},[o,s.datasets]),O.useEffect(()=>{v.current&&(o?(p(),setTimeout(A)):v.current.update(h))},[o,c,s.labels,s.datasets,h]),O.useEffect(()=>{v.current&&(p(),setTimeout(A))},[a]),O.useEffect(()=>(A(),()=>p()),[]),O.createElement("canvas",{ref:m,role:"img",height:n,width:r,...g},d)}const Z0e=O.forwardRef(V0e);function Uc(e,t){return G3.register(t),O.forwardRef((n,r)=>O.createElement(Z0e,{...n,ref:r,type:e}))}const U0e=Uc("line",Lc),$0e=Uc("bar",Hc),W0e=Uc("doughnut",K3),K0e=Uc("pie",df);function Q0e({input:e,type:t,lineVariant:n,lineTension:r,opacity:o,lineStroke:i,colors:a}){const s=a,c=t==="doughnut"||t==="pie";return{labels:e.labels,datasets:e.datasets.map((u,d)=>{var h;return c?{label:u.label,data:u.data,backgroundColor:u.colors&&u.colors.length===u.data.length?(h=u.colors)==null?void 0:h.map(g=>Sf(g,o)):u.data.map((g,m)=>Sf(s[m%s.length],o)),borderColor:u.colors&&u.colors.length===u.data.length?u.colors:u.data.map((g,m)=>s[m%s.length]),borderWidth:2}:{label:u.label,data:u.data,backgroundColor:Sf(u.color||s[d%s.length],o),borderColor:u.color||s[d%s.length],borderWidth:t==="line"?i:1,fill:n=="fill",tension:r??.4}})}}function G0e({barVariant:e,type:t}){const r={responsive:!0,plugins:{legend:{position:"bottom",labels:{font:{family:"Inter"},usePointStyle:!0,pointStyle:"circle",textAlign:"center"}},tooltip:{bodyFont:{family:"Inter"},titleFont:{family:"Inter"}}},scales:t==="doughnut"||t==="pie"?{}:{x:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}},y:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}}}};return t==="bar"&&e=="stacked"?L4.merge({},r,{scales:{x:{stacked:!0},y:{stacked:!0}}}):r}function Sf(e,t=.1){if(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)){let r=e.substring(1);r.length===3&&(r=r.split("").map(s=>s+s).join(""));const o=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),a=parseInt(r.substring(4,6),16);return`rgba(${o}, ${i}, ${a}, ${t})`}else if(e.startsWith("rgba")){const[r,o,i]=e.substring(5,e.length-1).split(",").map(a=>a.trim()).slice(0,3);return`rgba(${r}, ${o}, ${i}, ${t})`}else if(e.startsWith("rgb")){const[r,o,i]=e.substring(4,e.length-1).split(",").map(a=>a.trim());return`rgba(${r}, ${o}, ${i}, ${t})`}else throw new Error(`Unsupported color format: ${e}`)}let Vw=!1;function Y0e(){Vw||(G3.register(os,is,Fc,Ef,xf),Vw=!0)}let Zw=!1;function q0e(){Zw||(G3.register(ns,Ef,xf,os,is),Zw=!0)}let Uw=!1;function X0e(){Uw||(G3.register(os,is,Rc,Ra,Ef,xf,A0e),Uw=!0)}const J0e=({type:e,data:t,options:n,barVariant:r,lineVariant:o,lineTension:i,opacity:a=.1,lineStroke:s,width:c,height:u,backgroundColor:d,className:h="",colors:g=["#4e79a7","#f28e2b","#e15759","#76b7b2"]})=>{e==="line"?X0e():e==="bar"?Y0e():(e==="doughnut"||e==="pie")&&q0e();const m=Q0e({input:t,type:e,lineVariant:o,lineTension:i,opacity:a,lineStroke:s,colors:g}),v=L4.merge({maintainAspectRatio:!1},G0e({type:e,barVariant:r}),n),p={line:U0e,bar:$0e,doughnut:W0e,pie:K0e}[e];return Z.jsx(p,{data:m,options:v,style:{width:c,height:u,backgroundColor:d},className:`awi-chart ${h}`})},q3=(e,t)=>{const n=e;return isNaN(n.getTime())?"":t==="date"?n.toLocaleDateString(void 0,{day:"2-digit",month:"short",year:"numeric"}):n.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})},as={app:"cube",source:"source",severity:"warning_triangle",date:"calendar",time:"clock"},ere={app:"appName",source:"location",severity:"severity",date:"timeStamp",time:"timeStamp"},$w=(e,t,n)=>{const r=t==null?void 0:t[ere[e]];switch(e){case"app":return Z.jsxs("section",{className:"app_section event_element",style:n,children:[Z.jsx(Rr,{name:as[e]}),Z.jsx("p",{className:"font_secondary",title:r,children:r})]});case"source":return Z.jsxs("section",{className:"source_section event_element",style:n,children:[Z.jsx(Rr,{name:as[e]}),Z.jsx("p",{className:"font_secondary",title:r,children:r})]});case"severity":return Z.jsxs("section",{className:"severity_section event_element",style:n,children:[Z.jsx("span",{className:"status_indicator",style:{background:t==null?void 0:t.color}}),Z.jsx(Rr,{name:as[e]}),Z.jsx("p",{className:"font_secondary",title:r,children:r})]});case"date":{const o=q3(r,"date");return Z.jsxs("section",{className:"date_section event_element",style:n,children:[Z.jsx(Rr,{name:as[e]}),Z.jsx("p",{className:"font_secondary",title:o,children:o})]})}case"time":{const o=q3(r,"time");return Z.jsxs("section",{className:"time_section event_element",style:n,children:[Z.jsx(Rr,{name:as[e]}),Z.jsx("p",{className:"font_secondary",title:o,children:o})]})}}},Ww=({variant:e="new",data:t,width:n="100%",height:r="100%",className:o,sidePanelItems:i=["source","severity","date","time"],headerItem:a,headerHeight:s="20%",imageFit:c="cover",imageWidth:u="50%",isFocused:d=!1,focusedBorderColor:h="#ffcc00",focusedBorderThickness:g="2px",surfaceColor:m="#fff",surfaceBorderColor:v="#eaebee",surfaceSecondaryColor:A="#f3f5f7",textPrimaryColor:p="#292929",textSecondaryColor:x="#474747",fontSize:y="14px"})=>{switch(a==null&&(s="0%"),e){case"new":return Z.jsxs("div",{className:"compact_event_card_new "+(o||"")+" "+(d?"focused":""),style:{width:n,height:r,"--c_focused_border_color":h,"--c_focused_border_thickness":g,"--c_surface_primary":m,"--c_surface_primary_border":v,"--c_surface_secondary":A,"--c_data_color":t==null?void 0:t.color,"--c_text_primary":p,"--c_text_secondary":x,"--font_s":y},children:[a!=null?$w(a,t,{height:s,minHeight:s,maxHeight:s}):Z.jsx(Z.Fragment,{}),Z.jsx("img",{src:t==null?void 0:t.frameUrl,alt:"Alert",style:{objectFit:c,width:u,minWidth:u,maxWidth:u,height:`calc(100% - ${s})`,minHeight:`calc(100% - ${s})`,maxHeight:`calc(100% - ${s})`}}),Z.jsx("span",{className:"compact_event_card_content",style:{width:`calc(100% - ${u})`,minWidth:`calc(100% - ${u})`,maxWidth:`calc(100% - ${u})`,height:`calc(100% - ${s})`,minHeight:`calc(100% - ${s})`,maxHeight:`calc(100% - ${s})`},children:i.map(w=>$w(w,t))})]});case"old":return Z.jsxs("div",{className:"compact_event_card "+(o||"")+" "+(d?"focused":""),style:{width:n,height:r,"--c_focused_border_color":h,"--c_focused_border_thickness":g,"--c_surface_primary":m,"--c_surface_primary_border":v,"--c_surface_secondary":A,"--c_data_color":t==null?void 0:t.color,"--c_text_primary":p,"--c_text_secondary":x,"--font_s":y},children:[Z.jsx("img",{src:t==null?void 0:t.frameUrl,alt:"Alert"}),Z.jsxs("span",{className:"compact_event_card_content",children:[Z.jsx("header",{children:Z.jsx("h6",{children:t.appName})}),Z.jsxs("section",{className:"compact_event_card_details",children:[Z.jsx("h6",{children:t.location}),Z.jsxs("span",{children:[Z.jsx("p",{children:"Date"}),Z.jsx("h6",{title:q3(t==null?void 0:t.timeStamp,"date"),children:q3(t==null?void 0:t.timeStamp,"date")})]}),Z.jsxs("span",{children:[Z.jsx("p",{children:"Time"}),Z.jsx("h6",{title:q3(t==null?void 0:t.timeStamp,"time"),className:"font_secondary",children:q3(t==null?void 0:t.timeStamp,"time")})]})]}),Z.jsxs("footer",{children:[Z.jsx("span",{className:"status_indicator",style:{background:`linear-gradient(90deg, rgba(0,0,0,0), ${t==null?void 0:t.color})`}}),Z.jsx("p",{className:"font_secondary",children:t==null?void 0:t.severity})]})]})]})}},tre={s:"18.75rem",m:"25rem",l:"31.25rem"},V9=({className:e="",value:t=void 0,height:n="m",width:r="24rem",placement:o="flex-start",icon:i,backgroundColor:a,textColor:s,borderColor:c,disabledColor:u,iconPosition:d="after",iconColor:h="#292929",disabled:g=!1,onChange:m=()=>{},...v})=>(r=r||tre[n],Z.jsxs("div",{className:`input_wrapper h_${n} ${g?"disabled":""} icon_${d}`,style:{width:r,minWidth:r,justifyContent:o,"--c_input_text":s,"--c_input_border":c,"--c_input_background":a,"--c_input_background_disabled":u},children:[i&&Z.jsx(Rr,{name:i,color:h}),Z.jsx("input",{disabled:g,className:`input ${e}`,value:t,onChange:m,...v})]}));var Mf={exports:{}};/*!
357
+ `):e}function E0e(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function ww(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:s}=t,c=t2(t.bodyFont),u=t2(t.titleFont),d=t2(t.footerFont),h=i.length,g=o.length,m=r.length,v=po(t.padding);let A=v.height,p=0,x=r.reduce((E,S)=>E+S.before.length+S.lines.length+S.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,h&&(A+=h*u.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),x){const E=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;A+=m*E+(x-m)*c.lineHeight+(x-1)*t.bodySpacing}g&&(A+=t.footerMarginTop+g*d.lineHeight+(g-1)*t.footerSpacing);let y=0;const w=function(E){p=Math.max(p,n.measureText(E).width+y)};return n.save(),n.font=u.string,J1(e.title,w),n.font=c.string,J1(e.beforeBody.concat(e.afterBody),w),y=t.displayColors?a+2+t.boxPadding:0,J1(r,E=>{J1(E.before,w),J1(E.lines,w),J1(E.after,w)}),y=0,n.font=d.string,J1(e.footer,w),n.restore(),p+=v.width,{width:p,height:A}}function S0e(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function M0e(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function H0e(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:s,right:c}}=e;let u="center";return r==="center"?u=o<=(s+c)/2?"left":"right":o<=i/2?u="left":o>=a-i/2&&(u="right"),M0e(u,e,t,n)&&(u="center"),u}function xw(e,t,n){const r=n.yAlign||t.yAlign||S0e(e,n);return{xAlign:n.xAlign||t.xAlign||H0e(e,t,n,r),yAlign:r}}function L0e(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function B0e(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function Ew(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:c}=n,u=o+i,{topLeft:d,topRight:h,bottomLeft:g,bottomRight:m}=Z3(a);let v=L0e(t,s);const A=B0e(t,c,u);return c==="center"?s==="left"?v+=u:s==="right"&&(v-=u):s==="left"?v-=Math.max(d,g)+o:s==="right"&&(v+=Math.max(h,m)+o),{x:Er(v,0,r.width-t.width),y:Er(A,0,r.height-t.height)}}function zc(e,t,n){const r=po(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Sw(e){return Yo([],Vi(e))}function k0e(e,t,n){return N9(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Mw(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Hw={beforeTitle:Ri,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Ri,beforeBody:Ri,beforeLabel:Ri,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return $1(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Ri,afterBody:Ri,beforeFooter:Ri,footer:Ri,afterFooter:Ri};function n2(e,t,n,r){const o=e[t].call(n,r);return typeof o>"u"?Hw[t].call(n,r):o}let Lw=(Im=class extends Ta{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new xy(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=k0e(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=n2(r,"beforeTitle",this,t),i=n2(r,"title",this,t),a=n2(r,"afterTitle",this,t);let s=[];return s=Yo(s,Vi(o)),s=Yo(s,Vi(i)),s=Yo(s,Vi(a)),s}getBeforeBody(t,n){return Sw(n2(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return J1(t,i=>{const a={before:[],lines:[],after:[]},s=Mw(r,i);Yo(a.before,Vi(n2(s,"beforeLabel",this,i))),Yo(a.lines,n2(s,"label",this,i)),Yo(a.after,Vi(n2(s,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return Sw(n2(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=n2(r,"beforeFooter",this,t),i=n2(r,"footer",this,t),a=n2(r,"afterFooter",this,t);let s=[];return s=Yo(s,Vi(o)),s=Yo(s,Vi(i)),s=Yo(s,Vi(a)),s}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let s=[],c,u;for(c=0,u=n.length;c<u;++c)s.push(E0e(this.chart,n[c]));return t.filter&&(s=s.filter((d,h,g)=>t.filter(d,h,g,r))),t.itemSort&&(s=s.sort((d,h)=>t.itemSort(d,h,r))),J1(s,d=>{const h=Mw(t.callbacks,d);o.push(n2(h,"labelColor",this,d)),i.push(n2(h,"labelPointStyle",this,d)),a.push(n2(h,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const s=rs[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const c=this._size=ww(this,r),u=Object.assign({},s,c),d=xw(this.chart,r,u),h=Ew(r,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:h.x,y:h.y,width:c.width,height:c.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:h}=Z3(s),{x:g,y:m}=t,{width:v,height:A}=n;let p,x,y,w,E,S;return i==="center"?(E=m+A/2,o==="left"?(p=g,x=p-a,w=E+a,S=E-a):(p=g+v,x=p+a,w=E-a,S=E+a),y=p):(o==="left"?x=g+Math.max(c,d)+a:o==="right"?x=g+v-Math.max(u,h)-a:x=this.caretX,i==="top"?(w=m,E=w-a,p=x-a,y=x+a):(w=m+A,E=w+a,p=x+a,y=x-a),S=w),{x1:p,x2:x,x3:y,y1:w,y2:E,y3:S}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,s,c;if(i){const u=W3(r.rtl,this.x,this.width);for(t.x=zc(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",a=t2(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,c=0;c<i;++c)n.fillText(o[c],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,c+1===i&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,o,i){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:c,boxWidth:u}=i,d=t2(i.bodyFont),h=zc(this,"left",i),g=o.x(h),m=c<d.lineHeight?(d.lineHeight-c)/2:0,v=n.y+m;if(i.usePointStyle){const A={radius:Math.min(u,c)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},p=o.leftForLtr(g,u)+u/2,x=v+c/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,Jd(t,A,p,x),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Jd(t,A,p,x)}else{t.lineWidth=A1(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const A=o.leftForLtr(g,u),p=o.leftForLtr(o.xPlus(g,1),u-2),x=Z3(a.borderRadius);Object.values(x).some(y=>y!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,_c(t,{x:A,y:v,w:u,h:c,radius:x}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),_c(t,{x:p,y:v+1,w:u-2,h:c-2,radius:x}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(A,v,u,c),t.strokeRect(A,v,u,c),t.fillStyle=a.backgroundColor,t.fillRect(p,v+1,u-2,c-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:s,boxHeight:c,boxWidth:u,boxPadding:d}=r,h=t2(r.bodyFont);let g=h.lineHeight,m=0;const v=W3(r.rtl,this.x,this.width),A=function(k){n.fillText(k,v.x(t.x+m),t.y+g/2),t.y+=g+i},p=v.textAlign(a);let x,y,w,E,S,M,H;for(n.textAlign=a,n.textBaseline="middle",n.font=h.string,t.x=zc(this,p,r),n.fillStyle=r.bodyColor,J1(this.beforeBody,A),m=s&&p!=="right"?a==="center"?u/2+d:u+2+d:0,E=0,M=o.length;E<M;++E){for(x=o[E],y=this.labelTextColors[E],n.fillStyle=y,J1(x.before,A),w=x.lines,s&&w.length&&(this._drawColorBox(n,t,E,v,r),g=Math.max(h.lineHeight,c)),S=0,H=w.length;S<H;++S)A(w[S]),g=h.lineHeight;J1(x.after,A)}m=0,g=h.lineHeight,J1(this.afterBody,A),t.y-=i}drawFooter(t,n,r){const o=this.footer,i=o.length;let a,s;if(i){const c=W3(r.rtl,this.x,this.width);for(t.x=zc(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=c.textAlign(r.footerAlign),n.textBaseline="middle",a=t2(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<i;++s)n.fillText(o[s],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,o){const{xAlign:i,yAlign:a}=this,{x:s,y:c}=t,{width:u,height:d}=r,{topLeft:h,topRight:g,bottomLeft:m,bottomRight:v}=Z3(o.cornerRadius);n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,n.lineWidth=o.borderWidth,n.beginPath(),n.moveTo(s+h,c),a==="top"&&this.drawCaret(t,n,r,o),n.lineTo(s+u-g,c),n.quadraticCurveTo(s+u,c,s+u,c+g),a==="center"&&i==="right"&&this.drawCaret(t,n,r,o),n.lineTo(s+u,c+d-v),n.quadraticCurveTo(s+u,c+d,s+u-v,c+d),a==="bottom"&&this.drawCaret(t,n,r,o),n.lineTo(s+m,c+d),n.quadraticCurveTo(s,c+d,s,c+d-m),a==="center"&&i==="left"&&this.drawCaret(t,n,r,o),n.lineTo(s,c+h),n.quadraticCurveTo(s,c,s+h,c),n.closePath(),n.fill(),o.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=rs[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=ww(this,t),c=Object.assign({},a,this._size),u=xw(n,t,c),d=Ew(t,c,u,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=po(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),gy(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),Cy(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:s,index:c})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[c],index:c}}),i=!gc(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),s=this._positionChanged(a,t),c=n||!gc(a,i)||s;return c&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),c}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=rs[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}},En(Im,"positioners",rs),Im);var Ef={id:"tooltip",_element:Lw,positioners:rs,afterInit(e,t,n){n&&(e.tooltip=new Lw({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Hw},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const O0e=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function I0e(e,t,n,r){const o=e.indexOf(t);if(o===-1)return O0e(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const D0e=(e,t)=>e===null?null:Er(Math.round(e),0,t);function Bw(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class os extends Q3{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:o,label:i}of n)r[o]===i&&r.splice(o,1);this._addedLabels=[]}super.init(t)}parse(t,n){if($1(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:I0e(r,t,h1(n,t),this._addedLabels),D0e(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,o=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)o.push({value:a});return o}getLabelForValue(t){return Bw.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}En(os,"id","category"),En(os,"defaults",{ticks:{callback:Bw}});function P0e(e,t){const n=[],{bounds:o,step:i,min:a,max:s,precision:c,count:u,maxTicks:d,maxDigits:h,includeBounds:g}=e,m=i||1,v=d-1,{min:A,max:p}=t,x=!$1(a),y=!$1(s),w=!$1(u),E=(p-A)/(h+1);let S=z_((p-A)/v/m)*m,M,H,k,D;if(S<1e-14&&!x&&!y)return[{value:A},{value:p}];D=Math.ceil(p/S)-Math.floor(A/S),D>v&&(S=z_(D*S/v/m)*m),$1(c)||(M=Math.pow(10,c),S=Math.ceil(S*M)/M),o==="ticks"?(H=Math.floor(A/S)*S,k=Math.ceil(p/S)*S):(H=A,k=p),x&&y&&i&&Uee((s-a)/i,S/1e3)?(D=Math.round(Math.min((s-a)/S,d)),S=(s-a)/D,H=a,k=s):w?(H=x?a:H,k=y?s:k,D=u-1,S=(k-H)/D):(D=(k-H)/S,V4(D,Math.round(D),S/1e3)?D=Math.round(D):D=Math.ceil(D));const P=Math.max(j_(S),j_(H));M=Math.pow(10,$1(c)?P:c),H=Math.round(H*M)/M,k=Math.round(k*M)/M;let T=0;for(x&&(g&&H!==a?(n.push({value:a}),H<a&&T++,V4(Math.round((H+T*S)*M)/M,a,kw(a,E,e))&&T++):H<a&&T++);T<D;++T){const N=Math.round((H+T*S)*M)/M;if(y&&N>s)break;n.push({value:N})}return y&&g&&k!==s?n.length&&V4(n[n.length-1].value,s,kw(s,E,e))?n[n.length-1].value=s:n.push({value:s}):(!y||k===s)&&n.push({value:k}),n}function kw(e,t,{horizontal:n,minRotation:r}){const o=Fi(r),i=(n?Math.sin(o):Math.cos(o))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class N0e extends Q3{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return $1(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:o,max:i}=this;const a=c=>o=n?o:c,s=c=>i=r?i:c;if(t){const c=Ko(o),u=Ko(i);c<0&&u<0?s(0):c>0&&u>0&&a(0)}if(o===i){let c=i===0?1:Math.abs(i*.05);s(i+c),t||a(o-c)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=P0e(o,i);return t.bounds==="ticks"&&$ee(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Yd(t,this.chart.options.locale,this.options.ticks.format)}}class is extends N0e{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=xr(t)?t:0,this.max=xr(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Fi(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}En(is,"id","linear"),En(is,"defaults",{ticks:{callback:ey.formatters.numeric}});const jc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},r2=Object.keys(jc);function Ow(e,t){return e-t}function Iw(e,t){if($1(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),xr(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(Z4(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function Dw(e,t,n,r){const o=r2.length;for(let i=r2.indexOf(e);i<o-1;++i){const a=jc[r2[i]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return r2[i]}return r2[o-1]}function T0e(e,t,n,r,o){for(let i=r2.length-1;i>=r2.indexOf(n);i--){const a=r2[i];if(jc[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return r2[n?r2.indexOf(n):0]}function R0e(e){for(let t=r2.indexOf(e)+1,n=r2.length;t<n;++t)if(jc[r2[t]].common)return r2[t]}function Pw(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:o}=Kd(n,t),i=n[r]>=t?n[r]:n[o];e[i]=!0}}function F0e(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let s,c;for(s=i;s<=a;s=+o.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function Nw(e,t,n){const r=[],o={},i=t.length;let a,s;for(a=0;a<i;++a)s=t[a],o[s]=a,r.push({value:s,major:!1});return i===0||!n?r:F0e(e,r,o,n)}class Vc extends Q3{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),o=this._adapter=new Sne._date(t.adapters.date);o.init(n),z4(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Iw(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:o,max:i,minDefined:a,maxDefined:s}=this.getUserBounds();function c(u){!a&&!isNaN(u.min)&&(o=Math.min(o,u.min)),!s&&!isNaN(u.max)&&(i=Math.max(i,u.max))}(!a||!s)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=xr(o)&&!isNaN(o)?o:+n.startOf(Date.now(),r),i=xr(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(o,i-1),this.max=Math.max(o+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const i=this.min,a=this.max,s=Yee(o,i,a);return this._unit=n.unit||(r.autoSkip?Dw(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):T0e(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:R0e(this._unit),this.initOffsets(o),t.reverse&&s.reverse(),Nw(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Er(n,0,a),r=Er(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||Dw(i.minUnit,n,r,this._getLabelCapacity(n)),s=h1(o.ticks.stepSize,1),c=a==="week"?i.isoWeekday:!1,u=Z4(c)||c===!0,d={};let h=n,g,m;if(u&&(h=+t.startOf(h,"isoWeek",c)),h=+t.startOf(h,u?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const v=o.ticks.source==="data"&&this.getDataTimestamps();for(g=h,m=0;g<r;g=+t.add(g,s,a),m++)Pw(d,g,v);return(g===r||o.bounds==="ticks"||m===1)&&Pw(d,g,v),Object.keys(d).sort(Ow).map(A=>+A)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return h0(a,[t,n,r],this);const s=i.time.displayFormats,c=this._unit,u=this._majorUnit,d=c&&s[c],h=u&&s[u],g=r[n],m=u&&h&&g&&g.major;return this._adapter.format(t,o||(m?h:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n<r;++n)o=t[n],o.label=this._tickFormatFunction(o.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,o=Fi(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(o),a=Math.sin(o),s=this._resolveTickFontOptions(0).size;return{w:r*i+s*a,h:r*a+s*i}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,o=r[n.unit]||r.millisecond,i=this._tickFormatFunction(t,0,Nw(this,[t],this._majorUnit),o),a=this._getLabelSize(i),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n<r;++n)t=t.concat(o[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const o=this.getLabels();for(n=0,r=o.length;n<r;++n)t.push(Iw(this,o[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return $_(t.sort(Ow))}}En(Vc,"id","time"),En(Vc,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Zc(e,t,n){let r=0,o=e.length-1,i,a,s,c;n?(t>=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=I9(e,"pos",t)),{pos:i,time:s}=e[r],{pos:a,time:c}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=I9(e,"time",t)),{time:i,pos:s}=e[r],{time:a,pos:c}=e[o]);const u=a-i;return u?s+(c-s)*(t-i)/u:s}class Tw extends Vc{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Zc(n,this.min),this._tableRange=Zc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,s,c,u,d;for(a=0,s=t.length;a<s;++a)u=t[a],u>=n&&u<=r&&o.push(u);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=o.length;a<s;++a)d=o[a+1],c=o[a-1],u=o[a],Math.round((d+c)/2)!==u&&i.push({time:u,pos:a/(s-1)});return i}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((o,i)=>o-i)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Zc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Zc(this._table,r*this._tableRange+this._minPos,!0)}}En(Tw,"id","timeseries"),En(Tw,"defaults",Vc.defaults);const Rw="label";function Fw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function z0e(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function zw(e,t){e.labels=t}function jw(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rw;const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function j0e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rw;const n={labels:[],datasets:[]};return zw(n,e.labels),jw(n,e.datasets,t),n}function V0e(e,t){const{height:n=150,width:r=300,redraw:o=!1,datasetIdKey:i,type:a,data:s,options:c,plugins:u=[],fallbackContent:d,updateMode:h,...g}=e,m=O.useRef(null),v=O.useRef(null),A=()=>{m.current&&(v.current=new G3(m.current,{type:a,data:j0e(s,i),options:c&&{...c},plugins:u}),Fw(t,v.current))},p=()=>{Fw(t,null),v.current&&(v.current.destroy(),v.current=null)};return O.useEffect(()=>{!o&&v.current&&c&&z0e(v.current,c)},[o,c]),O.useEffect(()=>{!o&&v.current&&zw(v.current.config.data,s.labels)},[o,s.labels]),O.useEffect(()=>{!o&&v.current&&s.datasets&&jw(v.current.config.data,s.datasets,i)},[o,s.datasets]),O.useEffect(()=>{v.current&&(o?(p(),setTimeout(A)):v.current.update(h))},[o,c,s.labels,s.datasets,h]),O.useEffect(()=>{v.current&&(p(),setTimeout(A))},[a]),O.useEffect(()=>(A(),()=>p()),[]),O.createElement("canvas",{ref:m,role:"img",height:n,width:r,...g},d)}const Z0e=O.forwardRef(V0e);function Uc(e,t){return G3.register(t),O.forwardRef((n,r)=>O.createElement(Z0e,{...n,ref:r,type:e}))}const U0e=Uc("line",Lc),$0e=Uc("bar",Hc),W0e=Uc("doughnut",K3),K0e=Uc("pie",df);function Q0e({input:e,type:t,lineVariant:n,lineTension:r,opacity:o,lineStroke:i,colors:a}){const s=a,c=t==="doughnut"||t==="pie";return{labels:e.labels,datasets:e.datasets.map((u,d)=>{var h;return c?{label:u.label,data:u.data,backgroundColor:u.colors&&u.colors.length===u.data.length?(h=u.colors)==null?void 0:h.map(g=>Sf(g,o)):u.data.map((g,m)=>Sf(s[m%s.length],o)),borderColor:u.colors&&u.colors.length===u.data.length?u.colors:u.data.map((g,m)=>s[m%s.length]),borderWidth:2}:{label:u.label,data:u.data,backgroundColor:Sf(u.color||s[d%s.length],o),borderColor:u.color||s[d%s.length],borderWidth:t==="line"?i:1,fill:n=="fill",tension:r??.4}})}}function G0e({barVariant:e,type:t}){const r={responsive:!0,plugins:{legend:{position:"bottom",labels:{font:{family:"Inter"},usePointStyle:!0,pointStyle:"circle",textAlign:"center"}},tooltip:{bodyFont:{family:"Inter"},titleFont:{family:"Inter"}}},scales:t==="doughnut"||t==="pie"?{}:{x:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}},y:{ticks:{font:{family:"DM Mono"}},title:{font:{size:12,family:"Inter"}}}}};return t==="bar"&&e=="stacked"?L4.merge({},r,{scales:{x:{stacked:!0},y:{stacked:!0}}}):r}function Sf(e,t=.1){if(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)){let r=e.substring(1);r.length===3&&(r=r.split("").map(s=>s+s).join(""));const o=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),a=parseInt(r.substring(4,6),16);return`rgba(${o}, ${i}, ${a}, ${t})`}else if(e.startsWith("rgba")){const[r,o,i]=e.substring(5,e.length-1).split(",").map(a=>a.trim()).slice(0,3);return`rgba(${r}, ${o}, ${i}, ${t})`}else if(e.startsWith("rgb")){const[r,o,i]=e.substring(4,e.length-1).split(",").map(a=>a.trim());return`rgba(${r}, ${o}, ${i}, ${t})`}else throw new Error(`Unsupported color format: ${e}`)}let Vw=!1;function Y0e(){Vw||(G3.register(os,is,Fc,Ef,xf),Vw=!0)}let Zw=!1;function q0e(){Zw||(G3.register(ns,Ef,xf,os,is),Zw=!0)}let Uw=!1;function X0e(){Uw||(G3.register(os,is,Rc,Ra,Ef,xf,A0e),Uw=!0)}const J0e=({type:e,data:t,options:n,barVariant:r,lineVariant:o,lineTension:i,opacity:a=.1,lineStroke:s,width:c,height:u,backgroundColor:d,className:h="",colors:g=["#4e79a7","#f28e2b","#e15759","#76b7b2"]})=>{e==="line"?X0e():e==="bar"?Y0e():(e==="doughnut"||e==="pie")&&q0e();const m=Q0e({input:t,type:e,lineVariant:o,lineTension:i,opacity:a,lineStroke:s,colors:g}),v=L4.merge({maintainAspectRatio:!1},G0e({type:e,barVariant:r}),n),p={line:U0e,bar:$0e,doughnut:W0e,pie:K0e}[e];return Z.jsx(p,{data:m,options:v,style:{width:c,height:u,backgroundColor:d},className:`awi-chart ${h}`})},q3=(e,t)=>{const n=e;return isNaN(n.getTime())?"":t==="date"?n.toLocaleDateString(void 0,{day:"2-digit",month:"short",year:"numeric"}):n.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})},as={app:"cube",source:"source",severity:"warning_triangle",date:"calendar",time:"clock"},ere={app:"appName",source:"location",severity:"severity",date:"timeStamp",time:"timeStamp"},$w=(e,t,n)=>{const r=t==null?void 0:t[ere[e]];switch(e){case"app":return Z.jsxs("section",{className:"app_section event_element",style:n,children:[Z.jsx(Rr,{name:as[e]}),Z.jsx("p",{className:"font_secondary",title:r,children:r})]});case"source":return Z.jsxs("section",{className:"source_section event_element",style:n,children:[Z.jsx(Rr,{name:as[e]}),Z.jsx("p",{className:"font_secondary",title:r,children:r})]});case"severity":return Z.jsxs("section",{className:"severity_section event_element",style:n,children:[Z.jsx("span",{className:"status_indicator",style:{background:t==null?void 0:t.color}}),Z.jsx(Rr,{name:as[e],color:t==null?void 0:t.color}),Z.jsx("p",{className:"font_secondary",title:r,children:r})]});case"date":{const o=q3(r,"date");return Z.jsxs("section",{className:"date_section event_element",style:n,children:[Z.jsx(Rr,{name:as[e]}),Z.jsx("p",{className:"font_secondary",title:o,children:o})]})}case"time":{const o=q3(r,"time");return Z.jsxs("section",{className:"time_section event_element",style:n,children:[Z.jsx(Rr,{name:as[e]}),Z.jsx("p",{className:"font_secondary",title:o,children:o})]})}}},Ww=({variant:e="new",data:t,width:n="100%",height:r="100%",className:o,sidePanelItems:i=["source","severity","date","time"],headerItem:a,headerHeight:s="20%",imageFit:c="cover",imageWidth:u="50%",isFocused:d=!1,focusedBorderColor:h,focusedBorderThickness:g,surfaceColor:m,surfaceBorderColor:v,surfaceSecondaryColor:A,textPrimaryColor:p,fontSize:x})=>{switch(a==null&&(s="0%"),e){case"new":return Z.jsxs("div",{className:"compact_event_card_new "+(o||"")+" "+(d?"focused":""),style:{width:n,height:r,"--c_focused_border_color":h,"--c_focused_border_thickness":g,"--c_surface_primary":m,"--c_surface_primary_border":v,"--c_surface_secondary":A,"--c_data_color":t==null?void 0:t.color,"--c_text_primary":p,"--font_s":x},children:[a!=null?$w(a,t,{height:s,minHeight:s,maxHeight:s}):Z.jsx(Z.Fragment,{}),Z.jsx("img",{src:t==null?void 0:t.frameUrl,alt:"Alert",style:{objectFit:c,width:u,minWidth:u,maxWidth:u,height:`calc(100% - ${s})`,minHeight:`calc(100% - ${s})`,maxHeight:`calc(100% - ${s})`}}),Z.jsx("span",{className:"compact_event_card_content",style:{width:`calc(100% - ${u})`,minWidth:`calc(100% - ${u})`,maxWidth:`calc(100% - ${u})`,height:`calc(100% - ${s})`,minHeight:`calc(100% - ${s})`,maxHeight:`calc(100% - ${s})`},children:i.map(y=>$w(y,t,{height:`calc(100%/${i==null?void 0:i.length})`}))})]});case"old":return Z.jsxs("div",{className:"compact_event_card "+(o||"")+" "+(d?"focused":""),style:{width:n,height:r,"--c_focused_border_color":h,"--c_focused_border_thickness":g,"--c_surface_primary":m,"--c_surface_primary_border":v,"--c_surface_secondary":A,"--c_data_color":t==null?void 0:t.color,"--c_text_primary":p,"--font_s":x},children:[Z.jsx("img",{src:t==null?void 0:t.frameUrl,alt:"Alert"}),Z.jsxs("span",{className:"compact_event_card_content",children:[Z.jsx("header",{children:Z.jsx("h6",{children:t.appName})}),Z.jsxs("section",{className:"compact_event_card_details",children:[Z.jsx("h6",{children:t.location}),Z.jsxs("span",{children:[Z.jsx("p",{children:"Date"}),Z.jsx("h6",{title:q3(t==null?void 0:t.timeStamp,"date"),children:q3(t==null?void 0:t.timeStamp,"date")})]}),Z.jsxs("span",{children:[Z.jsx("p",{children:"Time"}),Z.jsx("h6",{title:q3(t==null?void 0:t.timeStamp,"time"),className:"font_secondary",children:q3(t==null?void 0:t.timeStamp,"time")})]})]}),Z.jsxs("footer",{children:[Z.jsx("span",{className:"status_indicator",style:{background:`linear-gradient(90deg, rgba(0,0,0,0), ${t==null?void 0:t.color})`}}),Z.jsx("p",{className:"font_secondary",children:t==null?void 0:t.severity})]})]})]})}},tre={s:"18.75rem",m:"25rem",l:"31.25rem"},V9=({className:e="",value:t=void 0,height:n="m",width:r="24rem",placement:o="flex-start",icon:i,backgroundColor:a,textColor:s,borderColor:c,disabledColor:u,iconPosition:d="after",iconColor:h="#292929",disabled:g=!1,onChange:m=()=>{},...v})=>(r=r||tre[n],Z.jsxs("div",{className:`input_wrapper h_${n} ${g?"disabled":""} icon_${d}`,style:{width:r,minWidth:r,justifyContent:o,"--c_input_text":s,"--c_input_border":c,"--c_input_background":a,"--c_input_background_disabled":u},children:[i&&Z.jsx(Rr,{name:i,color:h}),Z.jsx("input",{disabled:g,className:`input ${e}`,value:t,onChange:m,...v})]}));var Mf={exports:{}};/*!
358
358
  Copyright (c) 2018 Jed Watson.
359
359
  Licensed under the MIT License (MIT), see
360
360
  http://jedwatson.github.io/classnames