@nebula.js/cli-serve 3.2.1 → 3.2.2

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/eHub.js CHANGED
@@ -99,4 +99,4 @@
99
99
  animation: ${0} 1.4s linear infinite;
100
100
  `),Pa))),Va=(0,mt.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),za=(0,mt.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,Mt.Z)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,ct.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&Ai(Aa||(Aa=Ma`
101
101
  animation: ${0} 1.4s ease-in-out infinite;
102
- `),Fa))),Wa=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,u=(0,lt.Z)(n,qa),h=(0,ct.Z)({},n,{color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,r={root:["root",n,`color${(0,Mt.Z)(i)}`],svg:["svg"],circle:["circle",`circle${(0,Mt.Z)(n)}`,o&&"circleDisableShrink"]};return(0,ut.Z)(r,Ia,t)})(h),p={},m={},f={};if("determinate"===d){const e=2*Math.PI*((44-l)/2);p.strokeDasharray=e.toFixed(3),f["aria-valuenow"]=Math.round(c),p.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,bt.jsx)(Ba,(0,ct.Z)({className:(0,dt.Z)(g.root,i),style:(0,ct.Z)({width:s,height:s},m,a),ownerState:h,ref:t,role:"progressbar"},f,u,{children:(0,bt.jsx)(Va,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,bt.jsx)(za,{className:g.circle,style:p,ownerState:h,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))})),Ha=Wa,ja=()=>{const e=U(),t=j(),{info:i,glob:o,treatAsDesktop:r}=st(),{loading:s,appList:a}=(({glob:e,info:t})=>{const i=U(),{setInfo:o,setActiveStep:r}=st(),[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{r(1),Ye().then((e=>{o(e)}))}),[]),(0,n.useEffect)((()=>{if(s?.length)return;c(!0);const t=new URLSearchParams(window.location.search);t.get("qlik-client-id")&&!t.get("shouldFetchAppList")&&(async()=>{const{isAuthorized:e}=await(await fetch("/isAuthorized")).json();return{isAuthorized:e}})().then((({isAuthorized:e})=>{if(e){const e=new URL(window.location.href);e.search.includes("shouldFetchAppList")||e.searchParams.append("shouldFetchAppList",!0),i(decodeURIComponent(`${e.pathname}${e.search}`))}})),(t.get("shouldFetchAppList")?(async()=>await(await fetch("/apps")).json()||[])():e?.getDocList())?.then((e=>{a(e),e&&c(!1)}))}),[window.location.search,c,t,e]),{appList:s,loading:l}})({glob:o,info:i});return n.createElement(li,null,n.createElement(No,{variant:"h5",gutterBottom:!0},"Select an app"),s&&n.createElement(Ha,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&n.createElement(No,{component:"span"},"No apps found!"),a&&a.length>0&&n.createElement(gr,null,a.map((o=>n.createElement(Ir,{button:!0,component:"a",key:o.qDocId,onClick:()=>(({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,r=`${i.enigma.secure?"wss":"ws"}://${"localhost"===i.enigma.host?`${i.enigma.host}:${i.enigma.port}`:i.enigma.host}/app/${encodeURIComponent(n)}`;e(`/dev/${o.replace(i.engineUrl,r)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:t,targetApp:r?o.qDocName:o.qDocId})},n.createElement(Mr,{primary:o.qTitle,secondary:o.qDocId}))))))};s(16595);const Ua=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let i=e;const o={language:e=>(e&&(i=e),i),add:e=>{const{id:t,locale:i}=e;Object.keys(i).forEach((e=>{n[e]||(n[e]={}),n[e][t]=i[e]}))},get(e,o){let r;return r=n[i]&&void 0!==n[i][e]?n[i][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))})(r,o):r}};return o}({initial:e,fallback:t});return{translator:n}},$a=JSON.parse('{"Cancel":{"id":"Cancel","locale":{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},"CurrentSelections_All":{"id":"CurrentSelections.All","locale":{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},"CurrentSelections_Of":{"id":"CurrentSelections.Of","locale":{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},"Listbox_Dismiss":{"id":"Listbox.Dismiss","locale":{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},"Listbox_ItemsOverflow":{"id":"Listbox.ItemsOverflow","locale":{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},"Listbox_Lock":{"id":"Listbox.Lock","locale":{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},"Listbox_NoMatchesForYourTerms":{"id":"Listbox.NoMatchesForYourTerms","locale":{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},"Listbox_ResultFilterLabel":{"id":"Listbox.ResultFilterLabel","locale":{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},"Listbox_ScreenReaderInstructions":{"id":"Listbox.ScreenReaderInstructions","locale":{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L\'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L\'attivazione degli elementi sottostanti causerà l\'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},"Listbox_Search":{"id":"Listbox.Search","locale":{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},"Listbox_Search_ScreenReaderInstructions":{"id":"Listbox.Search.ScreenReaderInstructions","locale":{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},"Listbox_Unlock":{"id":"Listbox.Unlock","locale":{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},"Menu_More":{"id":"Menu.More","locale":{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},"Navigate_Back":{"id":"Navigate.Back","locale":{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},"Navigate_Forward":{"id":"Navigate.Forward","locale":{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},"OK":{"id":"OK","locale":{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},"Object_Update_Active":{"id":"Object.Update.Active","locale":{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},"Object_Update_Cancelled":{"id":"Object.Update.Cancelled","locale":{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},"Retry":{"id":"Retry","locale":{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},"Selection_Cancel":{"id":"Selection.Cancel","locale":{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},"Selection_Clear":{"id":"Selection.Clear","locale":{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},"Selection_ClearAll":{"id":"Selection.ClearAll","locale":{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},"Selection_ClearAllStates":{"id":"Selection.ClearAllStates","locale":{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},"Selection_Confirm":{"id":"Selection.Confirm","locale":{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},"Selection_Menu":{"id":"Selection.Menu","locale":{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":"Меню \\"Выборка\\"","sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},"Selection_SelectAll":{"id":"Selection.SelectAll","locale":{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},"Selection_SelectAlternative":{"id":"Selection.SelectAlternative","locale":{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},"Selection_SelectExcluded":{"id":"Selection.SelectExcluded","locale":{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},"Selection_SelectPossible":{"id":"Selection.SelectPossible","locale":{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},"Visualization_Incomplete":{"id":"Visualization.Incomplete","locale":{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},"Visualization_Incomplete_Dimensions":{"id":"Visualization.Incomplete.Dimensions","locale":{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},"Visualization_Incomplete_Measures":{"id":"Visualization.Incomplete.Measures","locale":{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},"Visualization_Invalid_Dimension":{"id":"Visualization.Invalid.Dimension","locale":{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},"Visualization_Invalid_Measure":{"id":"Visualization.Invalid.Measure","locale":{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},"Visualization_LayoutError":{"id":"Visualization.LayoutError","locale":{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},"Visualization_UnfulfilledCalculationCondition":{"id":"Visualization.UnfulfilledCalculationCondition","locale":{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}}');var Ka=s(25476),Ga=s.n(Ka);function Za(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Qa(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Ya(){}var Xa=.7,Ja=1/Xa,el="\\s*([+-]?\\d+)\\s*",tl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",il=/^#([0-9a-f]{3,8})$/,ol=new RegExp(`^rgb\\(${el},${el},${el}\\)$`),rl=new RegExp(`^rgb\\(${nl},${nl},${nl}\\)$`),sl=new RegExp(`^rgba\\(${el},${el},${el},${tl}\\)$`),al=new RegExp(`^rgba\\(${nl},${nl},${nl},${tl}\\)$`),ll=new RegExp(`^hsl\\(${tl},${nl},${nl}\\)$`),cl=new RegExp(`^hsla\\(${tl},${nl},${nl},${tl}\\)$`),dl={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ul(){return this.rgb().formatHex()}function hl(){return this.rgb().formatRgb()}function gl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=il.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?pl(t):3===n?new _l(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ml(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ml(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ol.exec(e))?new _l(t[1],t[2],t[3],1):(t=rl.exec(e))?new _l(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sl.exec(e))?ml(t[1],t[2],t[3],t[4]):(t=al.exec(e))?ml(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ll.exec(e))?xl(t[1],t[2]/100,t[3]/100,1):(t=cl.exec(e))?xl(t[1],t[2]/100,t[3]/100,t[4]):dl.hasOwnProperty(e)?pl(dl[e]):"transparent"===e?new _l(NaN,NaN,NaN,0):null}function pl(e){return new _l(e>>16&255,e>>8&255,255&e,1)}function ml(e,t,n,i){return i<=0&&(e=t=n=NaN),new _l(e,t,n,i)}function fl(e){return e instanceof Ya||(e=gl(e)),e?new _l((e=e.rgb()).r,e.g,e.b,e.opacity):new _l}function vl(e,t,n,i){return 1===arguments.length?fl(e):new _l(e,t,n,null==i?1:i)}function _l(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function bl(){return`#${Sl(this.r)}${Sl(this.g)}${Sl(this.b)}`}function Cl(){const e=yl(this.opacity);return`${1===e?"rgb(":"rgba("}${wl(this.r)}, ${wl(this.g)}, ${wl(this.b)}${1===e?")":`, ${e})`}`}function yl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Sl(e){return((e=wl(e))<16?"0":"")+e.toString(16)}function xl(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new kl(e,t,n,i)}function Ll(e){if(e instanceof kl)return new kl(e.h,e.s,e.l,e.opacity);if(e instanceof Ya||(e=gl(e)),!e)return new kl;if(e instanceof kl)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new kl(s,a,l,e.opacity)}function kl(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function El(e){return(e=(e||0)%360)<0?e+360:e}function Nl(e){return Math.max(0,Math.min(1,e||0))}function Dl(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Za(Ya,gl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ul,formatHex:ul,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ll(this).formatHsl()},formatRgb:hl,toString:hl}),Za(_l,vl,Qa(Ya,{brighter(e){return e=null==e?Ja:Math.pow(Ja,e),new _l(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Xa:Math.pow(Xa,e),new _l(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _l(wl(this.r),wl(this.g),wl(this.b),yl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bl,formatHex:bl,formatHex8:function(){return`#${Sl(this.r)}${Sl(this.g)}${Sl(this.b)}${Sl(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Cl,toString:Cl})),Za(kl,(function(e,t,n,i){return 1===arguments.length?Ll(e):new kl(e,t,n,null==i?1:i)}),Qa(Ya,{brighter(e){return e=null==e?Ja:Math.pow(Ja,e),new kl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Xa:Math.pow(Xa,e),new kl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new _l(Dl(e>=240?e-240:e+120,o,i),Dl(e,o,i),Dl(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new kl(El(this.h),Nl(this.s),Nl(this.l),yl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=yl(this.opacity);return`${1===e?"hsl(":"hsla("}${El(this.h)}, ${100*Nl(this.s)}%, ${100*Nl(this.l)}%${1===e?")":`, ${e})`}`}}));var Il=s(34415),ql=s.n(Il);const Rl=JSON.parse('{"fontSize":"13px","fontFamily":"\'Source Sans Pro\', \'Arial\', \'sans-serif\'","backgroundColor":"transparent","dataColors":{"primaryColor":"#26a0a7","othersColor":"#a5a5a5","errorColor":"#ff4444","nullColor":"#d2d2d2"},"scales":[{"name":"Sequential Gradient","translation":"properties.colorScheme.sequential","type":"gradient","propertyValue":"sg","scale":["#26a0a7","#c7ea8b"]},{"name":"Sequential Classes","translation":"properties.colorScheme.sequentialC","propertyValue":"sc","type":"class","scale":["#26a0a7","#c7ea8b"]},{"name":"Diverging gradient","translation":"properties.colorScheme.diverging","propertyValue":"dg","type":"gradient","scale":["#26a0a7","#c3ea8c","#ec983d"]},{"name":"Diverging Classes","translation":"properties.colorScheme.divergingC","propertyValue":"dc","type":"class","scale":["#26a0a7","#c3ea8c","#ec983d"]}],"palettes":{"data":[{"name":"12 Colors","translation":"properties.colorNumberOfColors.12","propertyValue":"12","type":"pyramid","scale":[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],"ui":[{"name":"Palette","colors":["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}}'),Ol=JSON.parse('{"_variables":{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},"type":"light","color":"@B35"}'),Tl=JSON.parse('{"_variables":{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},"type":"dark","color":"@B98"}');function Al(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function Ml(e,t,n){const i=[],o=new class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=gl(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([gl(e),gl(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const i=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(i);o=o===i?o-1:o;const r=this.colorParts[t][o],s=r[0],a=r[1];if(e===this.min)return a;if(e===this.max)return s;const l=function(e,t,n){return vl(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(s,a,i-o);return l}}(t);i.push(e[0]),n||i.push(e[0]);let r=1;for(;r<e.length-1;r++)i.push(e[r]),i.push(e[r]);i.push(e[r]),n||i.push(e[r]);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function Pl(e,t,n){const i=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const i=Al(1/t*o,t,n);r=e.getColor(i);break}}i.push(gl(r).formatHex())}return i}function Fl(e,t){const n=[];let i,o;if(e){let r=e.length;for(;r>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),r--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function Bl(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function Vl(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=Fl(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=Bl(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function zl(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?zl(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function Wl(e){const t=gl(e).rgb(),{r:n,g:i,b:o}=t,[r,s,a]=[n,i,o].map((e=>e/255)),[l,c,d]=[r,s,a].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*d).toFixed(5)}function Hl(){let e,t,n,i={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(i[t]||(i[t]=Vl(t,e)),i[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const i=gl(...e);return i?i.toString():void 0}},r={setTheme(r,s){e=function(e,t){const n="dark"===e.type?Tl:Ol,i=ql()(!0,{},Rl,n),o=ql()(!0,{},i,{scales:null,palettes:{data:null,ui:null}},e);return o.palettes.data&&o.palettes.data.length||(o.palettes.data=i.palettes.data),o.palettes.ui&&o.palettes.ui.length||(o.palettes.ui=i.palettes.ui),o.scales&&o.scales.length||(o.scales=i.scales),t(o)}(r,Vl.resolveRawTheme),i={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const a=o.getStyle("","","color"),l=Wl(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(Wl);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const r=Wl(o),s=i.map((e=>{return t=r,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),a=e[s.indexOf(Math.max(...s))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(Ga().prototype).forEach((e=>{o[e]=Ga().prototype[e]})),Ga().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}Vl.resolveRawTheme=e=>{const t=ql()(!0,{},e);return zl(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const i=Ml(e,n,!0),o=Ml(Pl(i,t-1,t),n,!1),r=[null];for(let e=0;e<t;e++)r.push(Pl(o,e,t));return r}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const jl=n.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),Ul=(e={},t=(()=>{}))=>{const i=e,o=[],r={get:e=>i[e],set:(e,n)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return i[e]=n,t({type:"SET",value:n}),n},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);i[e]=null},dispatch:e=>{o.forEach((t=>t(e?{}:i)))}};return[()=>{const[,e]=(0,n.useState)(i);return(0,n.useEffect)((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[r]},r]},[$l,Kl]=Ul({}),[Gl,Zl]=Ul({}),[Ql,Yl]=Ul({}),[Xl,Jl]=Ul({}),[ec,tc]=Ul({}),[,nc]=Ul({}),ic=({type:e,value:t})=>{const n=nc.get(t.id);nc.set(t.id,{});const i=()=>{Zl.clear(t.id),tc.set(t.id,{}),tc.dispatch(!0)},o=()=>{t.removeListener("changed",i),Kl.clear(t.id),Zl.clear(t.id),Yl.clear(t.id),Jl.clear(t.id),tc.clear(t.id),nc.clear(t.id)};return"SET"===e&&(n||(t.on("changed",i),t.once("closed",(()=>{o()})))),o},[oc,rc]=Ul({},ic),sc=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let r;switch(t.type){case"INVALID":r={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":r={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":r={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let s=n.get(i);return s||(s={}),s[o]=r,n.set(i,s),r};function ac(e,t){const i=e?`${e.id}`:null,[o]=$l(),[r,s]=(0,n.useReducer)(sc,i?o.get(i):null),[a]=ec(),[l]=Gl();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async n=>{let r=c[t];(!r||r&&r.rpcRetry)&&(r={rpc:e[t](),rpcRetry:!1},c[t]=r,s({type:"INVALID",method:t,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{const n=await r.rpc;s({type:"VALID",result:n,key:i,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||n||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},u={cancel:async()=>{const n=e.session.getObjectApi({handle:-1});await n.cancelRequest(c[t].rpc.requestId),s({type:"CANCELLED",key:i,method:t,model:e,rpcResultStore:o})},retry:()=>{c[t].rpcRetry=!0,d()}};return(0,n.useEffect)((()=>{e&&d()}),[e,a.get(e&&e.id),i,t]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},u]}function lc(e){return ac(e,"getLayout")}function cc(e){return ac(e,"getAppLayout")}function dc(e,t,...i){const o=t?`${t.id}/${JSON.stringify(e)}`:null,[r]=oc(),[s]=Ql(),[a,l]=(0,n.useState)();let c;return o&&(c=s.get(o)),(0,n.useEffect)((()=>{t&&(async()=>{if(!c){const n=t.createSessionObject(e);c=n,s.set(o,c)}const n=await c;r.set(o,n),l(n)})()}),[t,...i]),[a]}const uc={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function hc(e){return dc(uc,e)}function gc(e){const[t]=hc(e),[i]=lc(t),[o]=cc(e),[r,s]=(0,n.useState)(null);return(0,n.useEffect)((()=>{o&&t&&i&&((e,t,n)=>{const i=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(i)}],!0)})(t,i,o)}),[o,t,i]),(0,n.useEffect)((()=>{if(!i)return;let e=!1,t=!1,n=!1;[i,...i.alternateStates||[]].forEach((i=>{e=e||i.qSelectionObject&&i.qSelectionObject.qBackCount>0,t=t||i.qSelectionObject&&i.qSelectionObject.qForwardCount>0,n=n||(i.qSelectionObject&&i.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[i]),[r,t,i]}const[pc,mc]=Ul({}),[fc,vc]=Ul({}),[_c,bc]=Ul({}),[Cc,yc]=Ul({});function wc(e){if(!e.session)return[];const[t,i,o]=gc(e),[r]=pc(),s=e?e.id:null;let a=r.get(s);return(0,n.useEffect)((()=>{e&&i&&o&&t&&!a&&(a=function({app:e,currentSelectionsLayout:t,navState:n}){const i=`${e.id}`,o=async(e=!0)=>{const t=yc.get(i);t&&(await t.endSelections(e),yc.clear(i),bc.get(t.id).emit("deactivated"))},r={begin:async(t,n,r=!0)=>{if(t===yc.get(i))return;o(r),yc.set(i,t);const s=Array.isArray(n)?n:[n],a=async n=>{try{await t.beginSelections(s),yc.set(i,t)}catch(t){6003!==t.code||n?yc.clear(i):(await e.abortModal(r),a(!0))}};await a()},end:o};return vc.set(i,r),{model:e,isInModal:()=>!!yc.get(i),isModal:e=>e?yc.get(i)===e:!!yc.get(i),canGoForward:()=>n.canGoForward,canGoBack:()=>n.canGoBack,canClear:()=>n.canClear,layout:()=>t,forward:()=>r.end().then((()=>e.forward())),back:()=>r.end().then((()=>e.back())),clear:()=>r.end().then((()=>e.clearAll())),clearField:(t,n="$")=>r.end().then((()=>e.getField(t,n).then((e=>e.clear()))))}}({app:e,currentSelectionsLayout:o,navState:t}),r.set(s,a),r.dispatch(!0))}),[e,i,o,t]),[a,t]}const Sc=(0,n.forwardRef)((({initialContext:e,app:t},i)=>{const[o]=wc(t),[r,s]=(0,n.useState)(e),[a,l]=(0,n.useState)(),{theme:c}=(0,n.useMemo)((()=>({theme:vn(a)})),[a]),[d,u]=(0,n.useState)([]);return(0,n.useImperativeHandle)(i,(()=>({addComponent(e){u([...d,e])},removeComponent(e){const t=d.indexOf(e);-1!==t&&(d.splice(t,1),u([...d]))},setMuiThemeName:l,setContext:s,getAppSelections:()=>o}))),n.createElement(Xt,{injectFirst:!0},n.createElement(Qt,{theme:c},n.createElement(jl.Provider,{value:r},d)))}));function xc(){const[e,t]=(0,n.useState)(),[i,o]=(0,n.useState)(),r=(0,n.useCallback)((e=>{e&&t(e)}),[]),s=()=>{const{left:t,top:n,width:i,height:r}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:r})};return(0,n.useLayoutEffect)((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(s);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}}),[e]),[r,i,e]}const Lc=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e)),kc=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e)),Ec=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Nc(e){return`scale(${e}, ${e**2})`}const Dc={entering:{opacity:1,transform:Nc(1)},entered:{opacity:1,transform:"none"}},Ic="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),qc=n.forwardRef((function(e,t){const{addEndListener:i,appear:o=!0,children:r,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:u,onExited:h,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=$o}=e,v=(0,lt.Z)(e,Ec),_=n.useRef(),b=n.useRef(),C=zt(),y=n.useRef(null),w=(0,fi.Z)(y,r.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},x=S(d),L=S(((e,t)=>{Go(e);const{duration:n,delay:i,easing:o}=Zo({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=n,e.style.transition=[C.transitions.create("opacity",{duration:r,delay:i}),C.transitions.create("transform",{duration:Ic?r:.666*r,delay:i,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(g),N=S((e=>{const{duration:t,delay:n,easing:i}=Zo({style:p,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[C.transitions.create("opacity",{duration:o,delay:n}),C.transitions.create("transform",{duration:Ic?o:.666*o,delay:Ic?n:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Nc(.75),u&&u(e)})),D=S(h);return n.useEffect((()=>()=>{clearTimeout(_.current)}),[]),(0,bt.jsx)(f,(0,ct.Z)({appear:o,in:a,nodeRef:y,onEnter:L,onEntered:k,onEntering:x,onExit:N,onExited:D,onExiting:E,addEndListener:e=>{"auto"===m&&(_.current=setTimeout(e,b.current||0)),i&&i(y.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>n.cloneElement(r,(0,ct.Z)({style:(0,ct.Z)({opacity:0,transform:Nc(.75),visibility:"exited"!==e||a?void 0:"hidden"},Dc[e],p,r.props.style),ref:w},t))}))}));qc.muiSupportAuto=!0;const Rc=qc;var Oc=s(67653),Tc=s(69781),Ac=s(24784),Mc=s(44068);const Pc=n.forwardRef((function(e,t){const{children:i,container:o,disablePortal:r=!1}=e,[s,a]=n.useState(null),l=(0,Fs.Z)(n.isValidElement(i)?i.ref:null,t);if((0,zs.Z)((()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),(0,zs.Z)((()=>{if(s&&!r)return(0,Mc.Z)(t,s),()=>{(0,Mc.Z)(t,null)}}),[t,s,r]),r){if(n.isValidElement(i)){const e={ref:l};return n.cloneElement(i,e)}return(0,bt.jsx)(n.Fragment,{children:i})}return(0,bt.jsx)(n.Fragment,{children:s?Fo.createPortal(i,s):s})}));function Fc(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Bc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Vc(e){return parseInt((0,Bs.Z)(e).getComputedStyle(e).paddingRight,10)||0}function zc(e,t,n,i,o){const r=[t,n,...i];[].forEach.call(e.children,(e=>{const t=-1===r.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Bc(e,o)}))}function Wc(e,t){let n=-1;return e.some(((e,i)=>!!t(e)&&(n=i,!0))),n}const Hc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jc(e){const t=[],n=[];return Array.from(e.querySelectorAll(Hc)).forEach(((e,i)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:i,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Uc(){return!0}const $c=function(e){const{children:t,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=jc,isEnabled:a=Uc,open:l}=e,c=n.useRef(!1),d=n.useRef(null),u=n.useRef(null),h=n.useRef(null),g=n.useRef(null),p=n.useRef(!1),m=n.useRef(null),f=(0,Fs.Z)(t.ref,m),v=n.useRef(null);n.useEffect((()=>{l&&m.current&&(p.current=!i)}),[i,l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,Oc.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{r||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}}),[l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,Oc.Z)(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!o&&a()&&!c.current){if(!n.contains(e.activeElement)){if(t&&g.current!==t.target||e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let o=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(o=s(m.current)),o.length>0){var i,r;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(r=v.current)?void 0:r.key)),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else c.current=!1},n=t=>{v.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[i,o,r,a,l,s]);const _=e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0};return(0,bt.jsxs)(n.Fragment,{children:[(0,bt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:f,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0,g.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,bt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:u,"data-testid":"sentinelEnd"})]})};function Kc(e){return(0,vt.Z)("MuiModal",e)}function Gc(e,t,n){return void 0===e||pr(e)?t:Ms({},t,{ownerState:Ms({},t.ownerState,n)})}function Zc(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Zc(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}(0,ft.Z)("MuiModal",["root","hidden"]);const Qc=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Zc(e))&&(i&&(i+=" "),i+=t);return i};function Yc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Xc(e,t){return"function"==typeof e?e(t):e}const Jc=["elementType","externalSlotProps","ownerState"];function ed(e){var t;const{elementType:n,externalSlotProps:i,ownerState:o}=e,r=Ps(e,Jc),s=Xc(i,o),{props:a,internalRef:l}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:r}=e;if(!t){const e=Qc(null==o?void 0:o.className,null==i?void 0:i.className,r,null==n?void 0:n.className),t=Ms({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),s=Ms({},n,o,i);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(Ms({},o,i)),a=Yc(i),l=Yc(o),c=t(s),d=Qc(null==c?void 0:c.className,null==n?void 0:n.className,r,null==o?void 0:o.className,null==i?void 0:i.className),u=Ms({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),h=Ms({},c,n,l,a);return d.length>0&&(h.className=d),Object.keys(u).length>0&&(h.style=u),{props:h,internalRef:c.ref}}(Ms({},r,{externalSlotProps:s}));return Gc(n,Ms({},a,{ref:(0,Fs.Z)(l,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const td=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],nd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Bc(e.modalRef,!1);const i=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);zc(t,e.mount,e.modalRef,i,!0);const o=Wc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=Wc(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[n];i.restore||(i.restore=function(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Oc.Z)(e);return t.body===e?(0,Bs.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=Fc((0,Oc.Z)(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Vc(i)+e}px`;const t=(0,Oc.Z)(i).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Vc(t)+e}px`}))}let e;if(i.parentNode instanceof DocumentFragment)e=(0,Oc.Z)(i).body;else{const t=i.parentElement,n=(0,Bs.Z)(i);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:i}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const i=Wc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Bc(e.modalRef,t),zc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Bc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},id=n.forwardRef((function(e,t){var i,o;const{children:r,classes:s,closeAfterTransition:a=!1,component:l,container:c,disableAutoFocus:d=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:p=!1,disableScrollLock:m=!1,hideBackdrop:f=!1,keepMounted:v=!1,manager:_=nd,onBackdropClick:b,onClose:C,onKeyDown:y,open:w,onTransitionEnter:S,onTransitionExited:x,slotProps:L={},slots:k={}}=e,E=Ps(e,td),[N,D]=n.useState(!w),I=n.useRef({}),q=n.useRef(null),R=n.useRef(null),O=(0,Fs.Z)(R,t),T=function(e){return!!e&&e.props.hasOwnProperty("in")}(r),A=null==(i=e["aria-hidden"])||i,M=()=>(I.current.modalRef=R.current,I.current.mountNode=q.current,I.current),P=()=>{_.mount(M(),{disableScrollLock:m}),R.current&&(R.current.scrollTop=0)},F=(0,Tc.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(c)||(0,Oc.Z)(q.current).body;_.add(M(),e),R.current&&P()})),B=n.useCallback((()=>_.isTopModal(M())),[_]),V=(0,Tc.Z)((e=>{q.current=e,e&&R.current&&(w&&B()?P():Bc(R.current,A))})),z=n.useCallback((()=>{_.remove(M(),A)}),[_,A]);n.useEffect((()=>()=>{z()}),[z]),n.useEffect((()=>{w?F():T&&a||z()}),[w,z,T,a,F]);const W=Ms({},e,{classes:s,closeAfterTransition:a,disableAutoFocus:d,disableEnforceFocus:u,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:p,disableScrollLock:m,exited:N,hideBackdrop:f,keepMounted:v}),H=(e=>{const{open:t,exited:n,classes:i}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,ut.Z)(o,Kc,i)})(W),j={};void 0===r.props.tabIndex&&(j.tabIndex="-1"),T&&(j.onEnter=(0,Ac.Z)((()=>{D(!1),S&&S()}),r.props.onEnter),j.onExited=(0,Ac.Z)((()=>{D(!0),x&&x(),a&&z()}),r.props.onExited));const U=null!=(o=null!=l?l:k.root)?o:"div",$=ed({elementType:U,externalSlotProps:L.root,externalForwardedProps:E,additionalProps:{ref:O,role:"presentation",onKeyDown:e=>{y&&y(e),"Escape"===e.key&&B()&&(h||(e.stopPropagation(),C&&C(e,"escapeKeyDown")))}},className:H.root,ownerState:W}),K=k.backdrop,G=ed({elementType:K,externalSlotProps:L.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(b&&b(e),C&&C(e,"backdropClick"))},open:w},className:H.backdrop,ownerState:W});return v||w||T&&!N?(0,bt.jsx)(Pc,{ref:V,container:c,disablePortal:g,children:(0,bt.jsxs)(U,Ms({},$,{children:[!f&&K?(0,bt.jsx)(K,Ms({},G)):null,(0,bt.jsx)($c,{disableEnforceFocus:u,disableAutoFocus:d,disableRestoreFocus:p,isEnabled:B,open:w,children:n.cloneElement(r,j)})]}))}):null})),od=id,rd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sd={entering:{opacity:1},entered:{opacity:1}},ad=n.forwardRef((function(e,t){const i=zt(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:u,onEntering:h,onExit:g,onExited:p,onExiting:m,style:f,timeout:v=o,TransitionComponent:_=$o}=e,b=(0,lt.Z)(e,rd),C=n.useRef(null),y=(0,fi.Z)(C,a.ref,t),w=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},S=w(h),x=w(((e,t)=>{Go(e);const n=Zo({style:f,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",n),e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)})),L=w(u),k=w(m),E=w((e=>{const t=Zo({style:f,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)})),N=w(p);return(0,bt.jsx)(_,(0,ct.Z)({appear:s,in:c,nodeRef:C,onEnter:x,onEntered:L,onEntering:S,onExit:E,onExited:N,onExiting:k,addEndListener:e=>{r&&r(C.current,e)},timeout:v},b,{children:(e,t)=>n.cloneElement(a,(0,ct.Z)({style:(0,ct.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},sd[e],f,a.props.style),ref:y},t))}))})),ld=ad;function cd(e){return(0,vt.Z)("MuiBackdrop",e)}(0,ft.Z)("MuiBackdrop",["root","invisible"]);const dd=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],ud=(0,mt.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,ct.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),hd=n.forwardRef((function(e,t){var n,i,o;const r=(0,pt.Z)({props:e,name:"MuiBackdrop"}),{children:s,component:a="div",components:l={},componentsProps:c={},className:d,invisible:u=!1,open:h,slotProps:g={},slots:p={},transitionDuration:m,TransitionComponent:f=ld}=r,v=(0,lt.Z)(r,dd),_=(0,ct.Z)({},r,{component:a,invisible:u}),b=(e=>{const{classes:t,invisible:n}=e,i={root:["root",n&&"invisible"]};return(0,ut.Z)(i,cd,t)})(_),C=null!=(n=g.root)?n:c.root;return(0,bt.jsx)(f,(0,ct.Z)({in:h,timeout:m},v,{children:(0,bt.jsx)(ud,(0,ct.Z)({"aria-hidden":!0},C,{as:null!=(i=null!=(o=p.root)?o:l.Root)?i:a,className:(0,dt.Z)(b.root,d,null==C?void 0:C.className),ownerState:(0,ct.Z)({},_,null==C?void 0:C.ownerState),classes:b,ref:t,children:s}))}))})),gd=hd,pd=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],md=(0,mt.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,ct.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),fd=(0,mt.ZP)(gd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vd=n.forwardRef((function(e,t){var i,o,r,s,a,l;const c=(0,pt.Z)({name:"MuiModal",props:e}),{BackdropComponent:d=fd,BackdropProps:u,closeAfterTransition:h=!1,children:g,component:p,components:m={},componentsProps:f={},disableAutoFocus:v=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:b=!1,disablePortal:C=!1,disableRestoreFocus:y=!1,disableScrollLock:w=!1,hideBackdrop:S=!1,keepMounted:x=!1,slotProps:L,slots:k,theme:E}=c,N=(0,lt.Z)(c,pd),[D,I]=n.useState(!0),q={closeAfterTransition:h,disableAutoFocus:v,disableEnforceFocus:_,disableEscapeKeyDown:b,disablePortal:C,disableRestoreFocus:y,disableScrollLock:w,hideBackdrop:S,keepMounted:x},R=(0,ct.Z)({},c,q,{exited:D}),O=(e=>e.classes)(R),T=null!=(i=null!=(o=null==k?void 0:k.root)?o:m.Root)?i:md,A=null!=(r=null!=(s=null==k?void 0:k.backdrop)?s:m.Backdrop)?r:d,M=null!=(a=null==L?void 0:L.root)?a:f.root,P=null!=(l=null==L?void 0:L.backdrop)?l:f.backdrop;return(0,bt.jsx)(od,(0,ct.Z)({slots:{root:T,backdrop:A},slotProps:{root:()=>(0,ct.Z)({},Xc(M,R),!pr(T)&&{as:p,theme:E}),backdrop:()=>(0,ct.Z)({},u,Xc(P,R))},onTransitionEnter:()=>I(!1),onTransitionExited:()=>I(!0),ref:t},N,{classes:O},q,{children:g}))})),_d=vd,bd=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Cd(e){return(0,vt.Z)("MuiPaper",e)}(0,ft.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const yd=["className","component","elevation","square","variant"],wd=(0,mt.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,ct.Z)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,ct.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,mi.Fq)("#fff",bd(t.elevation))}, ${(0,mi.Fq)("#fff",bd(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Sd=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiPaper"}),{className:i,component:o="div",elevation:r=1,square:s=!1,variant:a="elevation"}=n,l=(0,lt.Z)(n,yd),c=(0,ct.Z)({},n,{component:o,elevation:r,square:s,variant:a}),d=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e,r={root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]};return(0,ut.Z)(r,Cd,o)})(c);return(0,bt.jsx)(wd,(0,ct.Z)({as:o,ownerState:c,className:(0,dt.Z)(d.root,i),ref:t},l))})),xd=Sd;function Ld(e){return(0,vt.Z)("MuiPopover",e)}(0,ft.Z)("MuiPopover",["root","paper"]);const kd=["onEntering"],Ed=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Nd(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Dd(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Id(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function qd(e){return"function"==typeof e?e():e}const Rd=(0,mt.ZP)(_d,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Od=(0,mt.ZP)(xd,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Td=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiPopover"}),{action:o,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:d,container:u,elevation:h=8,marginThreshold:g=16,open:p,PaperProps:m={},transformOrigin:f={vertical:"top",horizontal:"left"},TransitionComponent:v=Rc,transitionDuration:_="auto",TransitionProps:{onEntering:b}={}}=i,C=(0,lt.Z)(i.TransitionProps,kd),y=(0,lt.Z)(i,Ed),w=n.useRef(),S=(0,fi.Z)(w,m.ref),x=(0,ct.Z)({},i,{anchorOrigin:s,anchorReference:l,elevation:h,marginThreshold:g,PaperProps:m,transformOrigin:f,TransitionComponent:v,transitionDuration:_,TransitionProps:C}),L=(e=>{const{classes:t}=e;return(0,ut.Z)({root:["root"],paper:["paper"]},Ld,t)})(x),k=n.useCallback((()=>{if("anchorPosition"===l)return a;const e=qd(r),t=(e&&1===e.nodeType?e:(0,rs.Z)(w.current).body).getBoundingClientRect();return{top:t.top+Nd(t,s.vertical),left:t.left+Dd(t,s.horizontal)}}),[r,s.horizontal,s.vertical,a,l]),E=n.useCallback((e=>({vertical:Nd(e,f.vertical),horizontal:Dd(e,f.horizontal)})),[f.horizontal,f.vertical]),N=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if("none"===l)return{top:null,left:null,transformOrigin:Id(n)};const i=k();let o=i.top-n.vertical,s=i.left-n.horizontal;const a=o+t.height,c=s+t.width,d=(0,jr.Z)(qd(r)),u=d.innerHeight-g,h=d.innerWidth-g;if(o<g){const e=o-g;o-=e,n.vertical+=e}else if(a>u){const e=a-u;o-=e,n.vertical+=e}if(s<g){const e=s-g;s-=e,n.horizontal+=e}else if(c>h){const e=c-h;s-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(s)}px`,transformOrigin:Id(n)}}),[r,l,k,E,g]),[D,I]=n.useState(p),q=n.useCallback((()=>{const e=w.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[N]);n.useEffect((()=>{p&&q()})),n.useImperativeHandle(o,(()=>p?{updatePosition:()=>{q()}}:null),[p,q]),n.useEffect((()=>{if(!p)return;const e=(0,Br.Z)((()=>{q()})),t=(0,jr.Z)(r);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r,p,q]);let R=_;"auto"!==_||v.muiSupportAuto||(R=void 0);const O=u||(r?(0,rs.Z)(qd(r)).body:void 0);return(0,bt.jsx)(Rd,(0,ct.Z)({BackdropProps:{invisible:!0},className:(0,dt.Z)(L.root,d),container:O,open:p,ref:t,ownerState:x},y,{children:(0,bt.jsx)(v,(0,ct.Z)({appear:!0,in:p,onEntering:(e,t)=>{b&&b(e,t),q()},onExited:()=>{I(!1)},timeout:R},C,{children:(0,bt.jsx)(Od,(0,ct.Z)({elevation:h},m,{ref:S,className:(0,dt.Z)(L.paper,m.className)},D?void 0:{style:(0,ct.Z)({},m.style,{opacity:0})},{ownerState:x,children:c}))}))}))})),Ad=Td;var Md=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Pd=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Fd=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};const Bd=function(e){function t(){var e,n,i;Md(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=Fd(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;i._lastRenderedStartIndex=t,i._lastRenderedStopIndex=n,i._ensureRowsLoaded(t,n)},i._setRef=function(e){i._listRef=e},Fd(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Pd(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,i=n.isItemLoaded,o=n.itemCount,r=n.minimumBatchSize,s=void 0===r?10:r,a=n.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,i=e.minimumBatchSize,o=e.stopIndex,r=[],s=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(r.push(s,a),s=a=null):(a=l,null===s&&(s=l));if(null!==a){for(var c=Math.min(Math.max(a,s+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<i&&r[0]>0;){var u=r[0]-1;if(t(u))break;r[0]=u}return r}({isItemLoaded:i,itemCount:o,minimumBatchSize:s,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,i=function(i){var o=e[i],r=e[i+1],s=n(o,r);null!=s&&s.then((function(){if(e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r},!(e.startIndex>e.lastRenderedStopIndex||e.stopIndex<e.lastRenderedStartIndex)){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}var e}))},o=0;o<e.length;o+=2)i(o)}}]),t}(n.PureComponent),Vd=["S","XS"],zd=e=>e.reduce(((e,t)=>e.concat(t)));function Wd(e){return Vd.includes(e)}function Hd({layout:e,selections:t,pages:i=[],checkboxes:o=!1,selectDisabled:r,doc:s=document,isSingleSelect:a=!1}){const[l,c]=(0,n.useState)(i),[d,u]=(0,n.useState)(!1),[h,g]=(0,n.useState)(!1),[p,m]=(0,n.useState)(a),[f,v]=(0,n.useState)([]),[_,b]=(0,n.useState)(!1),[C,y]=(0,n.useState)([]),w=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return zd(t)}(i);(0,n.useEffect)((()=>{m(a)}),[a]);const S=async(e=[],n=!1)=>{if(r())return;g(!0);const i=n?e.filter((e=>!f.includes(e))):e;await async function({selections:e,elemNumbers:t,isSingleSelect:n=!1}){let i=Promise.resolve(!1);if(!t.some((e=>Number.isNaN(e)))){const o=t;i=e.select({method:"selectListObjectValues",params:["/qListObjectDef",o,!n]}).then((e=>!1!==e)).catch((()=>!1))}return i}({selections:t,elemNumbers:i,isSingleSelect:p}),g(!1),y([])},x=(e,t=!1)=>{r()||y((n=>{const i=(o=[...n,...e],Array.isArray(o)?Array.from(new Set(o)):void 0);var o;const r=t?i.filter((e=>!f.includes(e))):i,s=t?function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:i}=function(e,t){let n=1/0,i=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,i=o>i?o:i})),{min:n,max:i}}(e,t);return t.slice(n,i+1)}(i,w):r;return s}))},L=e=>{(e.ctrlKey||e.metaKey)&&(m(!0),e.currentTarget.focus(),e.preventDefault())},k=(0,n.useCallback)((e=>{if(h||r())return;const t=+e.currentTarget.getAttribute("data-n");y([t]),L(e)}),[h,r]),E=(0,n.useCallback)((e=>{if(h||r())return;b(!1),u(!0);const t=+e.currentTarget.getAttribute("data-n");y([t]),L(e)}),[h,r]),N=(0,n.useCallback)((e=>{const t=+e.currentTarget.getAttribute("data-n");p||!d||h||1===C.length&&C[0]===t||x([t])}),[d,h,C,f,_,r]),D=(0,n.useCallback)((()=>{u(!1),g(!1),b(!1),m(a)}),[a]),I=(0,n.useCallback)((e=>{if(p||!d||h||r())return;b(!0);const t=+e.currentTarget.getAttribute("data-n");x([t],!0)}),[d,h,_,C,f,r,e&&e.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);(0,n.useEffect)((()=>{const t=!d;C&&C.length&&!h&&t&&e&&S(C,_)}),[C,d,r()]),(0,n.useEffect)((()=>(s.addEventListener("mouseup",D),()=>{s.removeEventListener("mouseup",D)})),[D]),(0,n.useEffect)((()=>{if(h||d)return;const e=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return!!Wd(t.qState)&&t.qElemNumber})).filter((e=>!1!==e))));return zd(t)}(i);v(e)}),[i]),(0,n.useEffect)((()=>{if(h||!i||!o&&!d)return;const e=function(e,t,n=!1){return e.map((e=>{const i=e.qMatrix.map((e=>{const[i]=e,o=t.includes(i.qElemNumber);let r;return r=n?o?"S":"A":o?(e=>t.length<=1&&Wd(e)?"A":"S")(i.qState):i.qState,[{...i,qState:r},e.slice(1)]}));return{...e,qMatrix:i}}))}(i,C,p);c(e)}),[C]);const q={};return o?Object.assign(q,{onClick:k}):Object.assign(q,{onMouseUp:N,onMouseDown:E,onMouseEnter:I}),{instantPages:l,interactionEvents:q,select:(e=[],t=!1)=>{b(!1),u(!0),x(e,t||_);const n=S(e,t||_);return u(!1),n}}}function jd(e){return(0,vt.Z)("MuiFormControlLabel",e)}const Ud=(0,ft.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),$d=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],Kd=(0,mt.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ud.label}`]:t.label},t.root,t[`labelPlacement${(0,Mt.Z)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ud.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Ud.label}`]:{[`&.${Ud.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Gd=n.forwardRef((function(e,t){var i;const o=(0,pt.Z)({props:e,name:"MuiFormControlLabel"}),{className:r,componentsProps:s={},control:a,disabled:l,disableTypography:c,label:d,labelPlacement:u="end",slotProps:h={}}=o,g=(0,lt.Z)(o,$d),p=Ds();let m=l;void 0===m&&void 0!==a.props.disabled&&(m=a.props.disabled),void 0===m&&p&&(m=p.disabled);const f={disabled:m};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===a.props[e]&&void 0!==o[e]&&(f[e]=o[e])}));const v=Is({props:o,muiFormControl:p,states:["error"]}),_=(0,ct.Z)({},o,{disabled:m,labelPlacement:u,error:v.error}),b=(e=>{const{classes:t,disabled:n,labelPlacement:i,error:o}=e,r={root:["root",n&&"disabled",`labelPlacement${(0,Mt.Z)(i)}`,o&&"error"],label:["label",n&&"disabled"]};return(0,ut.Z)(r,jd,t)})(_),C=null!=(i=h.typography)?i:s.typography;let y=d;return null==y||y.type===No||c||(y=(0,bt.jsx)(No,(0,ct.Z)({component:"span"},C,{className:(0,dt.Z)(b.label,null==C?void 0:C.className),children:y}))),(0,bt.jsxs)(Kd,(0,ct.Z)({className:(0,dt.Z)(b.root,r),ownerState:_,ref:t},g,{children:[n.cloneElement(a,f),y]}))})),Zd=Gd,Qd=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),Yd=e=>sr(Qd(e));var Xd=s(66055);function Jd(e){return(0,vt.Z)("PrivateSwitchBase",e)}(0,ft.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const eu=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tu=(0,mt.ZP)(no)((({ownerState:e})=>(0,ct.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),nu=(0,mt.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),iu=n.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,className:r,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:u,inputProps:h,inputRef:g,name:p,onBlur:m,onChange:f,onFocus:v,readOnly:_,required:b=!1,tabIndex:C,type:y,value:w}=e,S=(0,lt.Z)(e,eu),[x,L]=(0,Xd.Z)({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),k=Ds();let E=a;k&&void 0===E&&(E=k.disabled);const N="checkbox"===y||"radio"===y,D=(0,ct.Z)({},e,{checked:x,disabled:E,disableFocusRipple:l,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,r={root:["root",n&&"checked",i&&"disabled",o&&`edge${(0,Mt.Z)(o)}`],input:["input"]};return(0,ut.Z)(r,Jd,t)})(D);return(0,bt.jsxs)(tu,(0,ct.Z)({component:"span",className:(0,dt.Z)(I.root,r),centerRipple:!0,focusRipple:!l,disabled:E,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),k&&k.onFocus&&k.onFocus(e)},onBlur:e=>{m&&m(e),k&&k.onBlur&&k.onBlur(e)},ownerState:D,ref:t},S,{children:[(0,bt.jsx)(nu,(0,ct.Z)({autoFocus:n,checked:i,defaultChecked:s,className:I.input,disabled:E,id:N&&u,name:p,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),f&&f(e,t)},readOnly:_,ref:g,required:b,ownerState:D,tabIndex:C,type:y},"checkbox"===y&&void 0===w?{}:{value:w},h)),x?o:d]}))})),ou=iu,ru=(0,zn.Z)((0,bt.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),su=(0,zn.Z)((0,bt.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),au=(0,zn.Z)((0,bt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function lu(e){return(0,vt.Z)("MuiCheckbox",e)}const cu=(0,ft.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),du=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],uu=(0,mt.ZP)(ou,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,Mt.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,mi.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${cu.checked}, &.${cu.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${cu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),hu=(0,bt.jsx)(su,{}),gu=(0,bt.jsx)(ru,{}),pu=(0,bt.jsx)(au,{}),mu=n.forwardRef((function(e,t){var i,o;const r=(0,pt.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=hu,color:a="primary",icon:l=gu,indeterminate:c=!1,indeterminateIcon:d=pu,inputProps:u,size:h="medium",className:g}=r,p=(0,lt.Z)(r,du),m=c?d:l,f=c?d:s,v=(0,ct.Z)({},r,{color:a,indeterminate:c,size:h}),_=(e=>{const{classes:t,indeterminate:n,color:i}=e,o={root:["root",n&&"indeterminate",`color${(0,Mt.Z)(i)}`]},r=(0,ut.Z)(o,lu,t);return(0,ct.Z)({},t,r)})(v);return(0,bt.jsx)(uu,(0,ct.Z)({type:"checkbox",inputProps:(0,ct.Z)({"data-indeterminate":c},u),icon:n.cloneElement(m,{fontSize:null!=(i=m.props.fontSize)?i:h}),checkedIcon:n.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:h}),ownerState:v,ref:t,className:(0,dt.Z)(_.root,g)},p,{classes:_}))})),fu=mu,vu="ListBoxCheckbox",_u={cbIcon:`${vu}-cbIcon`,cbIconChecked:`${vu}-cbIconChecked`,cbIconExcluded:`${vu}-cbIconExcluded`,cbIconAlternative:`${vu}-cbIconAlternative`,checkbox:`${vu}-checkbox`,dense:`${vu}-dense`},bu=(0,mt.ZP)(fu)((({theme:e})=>({[`& .${_u.cbIcon}`]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},[`& .${_u.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},[`& .${_u.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.excluded},[`& .${_u.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.alternative},[`&.${_u.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${_u.dense}`]:{padding:"4px 8px"}}))),Cu=(e,t=!0,i=!1)=>n.createElement("span",{className:e.cbIcon},i&&n.createElement("span",{className:t&&i?e.cbIconExcluded:""}));function yu({checked:e,label:t,dense:i,excluded:o,showGray:r=!0}){return n.createElement(bu,{edge:"start",checked:e,disableRipple:!0,className:[_u.checkbox,i&&_u.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":t},name:t,icon:Cu(_u,r,o),checkedIcon:n.createElement("span",{className:_u.cbIconChecked})})}const wu=(0,zn.Z)((0,bt.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Su=(0,zn.Z)((0,bt.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),xu=(0,mt.ZP)("span")({position:"relative",display:"flex"}),Lu=(0,mt.ZP)(wu)({transform:"scale(1)"}),ku=(0,mt.ZP)(Su)((({theme:e,ownerState:t})=>(0,ct.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}))),Eu=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o=(0,ct.Z)({},e,{checked:t});return(0,bt.jsxs)(xu,{className:n.root,ownerState:o,children:[(0,bt.jsx)(Lu,{fontSize:i,className:n.background,ownerState:o}),(0,bt.jsx)(ku,{fontSize:i,className:n.dot,ownerState:o})]})};var Nu=s(80062);const Du=n.createContext(void 0);function Iu(e){return(0,vt.Z)("MuiRadio",e)}const qu=(0,ft.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),Ru=["checked","checkedIcon","color","icon","name","onChange","size","className"],Ou=(0,mt.ZP)(ou,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,Mt.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,mi.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${qu.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${qu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Tu=(0,bt.jsx)(Eu,{checked:!0}),Au=(0,bt.jsx)(Eu,{}),Mu=n.forwardRef((function(e,t){var i,o;const r=(0,pt.Z)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=Tu,color:l="primary",icon:c=Au,name:d,onChange:u,size:h="medium",className:g}=r,p=(0,lt.Z)(r,Ru),m=(0,ct.Z)({},r,{color:l,size:h}),f=(e=>{const{classes:t,color:n}=e,i={root:["root",`color${(0,Mt.Z)(n)}`]};return(0,ct.Z)({},t,(0,ut.Z)(i,Iu,t))})(m),v=n.useContext(Du);let _=s;const b=(0,Nu.Z)(u,v&&v.onChange);let C=d;var y,w;return v&&(void 0===_&&(y=v.value,_="object"==typeof(w=r.value)&&null!==w?y===w:String(y)===String(w)),void 0===C&&(C=v.name)),(0,bt.jsx)(Ou,(0,ct.Z)({type:"radio",icon:n.cloneElement(c,{fontSize:null!=(i=Au.props.fontSize)?i:h}),checkedIcon:n.cloneElement(a,{fontSize:null!=(o=Tu.props.fontSize)?o:h}),ownerState:m,classes:f,name:C,checked:_,onChange:b,ref:t,className:(0,dt.Z)(f.root,g)},p))})),Pu=Mu,Fu="ListBoxRadioButton-radioButton",Bu=(0,mt.ZP)(Pu)((({theme:e,checked:t})=>({[`&.${Fu}`]:{right:"5px",color:t?e.palette.selected.main:e.palette.main}})));function Vu({checked:e,label:t,dense:i}){return n.createElement(Bu,{checked:e,value:t,name:t,className:Fu,style:{backgroundColor:"transparent"},disableRipple:!0,size:i?"small":"medium",sx:i&&{padding:"0px 0px 0px 12px"}})}const zu=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===zu.ARROW_UP||e===zu.ARROW_DOWN||e===zu.ARROW_LEFT||e===zu.ARROW_RIGHT}),Wu=zu;const Hu={row:"RowColumn-row",rowBorderBottom:"RowColumn-rowBorderBottom",column:"RowColumn-column",fieldRoot:"RowColumn-fieldRoot",cell:"RowColumn-cell",labelText:"RowColumn-labelText",labelDense:"RowColumn-labelDense",highlighted:"RowColumn-highlighted",checkboxLabel:"RowColumn-checkboxLabel",icon:"RowColumn-icon",S:"RowColumn-S",XS:"RowColumn-XS",A:"RowColumn-A",X:"RowColumn-X",frequencyCount:"RowColumn-frequencyCount",barContainer:"RowColumn-barContainer",bar:"RowColumn-bar",barSelected:"RowColumn-barSelected",barWithCheckbox:"RowColumn-barWithCheckbox",barSelectedWithCheckbox:"RowColumn-barSelectedWithCheckbox",excludedTextWithCheckbox:"RowColumn-excludedTextWithCheckbox"},ju={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},Uu=({theme:e})=>({background:e.palette.selected.main,color:e.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"},"& $cell":{paddingRight:0}}),$u=(0,mt.ZP)("div",{shouldForwardProp:e=>"flexBasisProp"!==e})((({theme:e,flexBasisProp:t,dense:n})=>({[`& .${Hu.row}`]:{flexWrap:"nowrap",color:e.listBox?.content?.color??e.palette.text.primary},[`& .${Hu.rowBorderBottom}`]:{borderBottom:`1px solid ${e.palette.divider}`},[`& .${Hu.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,color:e.listBox?.content?.color??e.palette.text.primary},[`& .${Hu.fieldRoot}`]:{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${Hu.cell}`]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},[`& .${Hu.labelText}`]:{flexBasis:t,lineHeight:"16px",userSelect:"none",whiteSpace:"pre",paddingRight:"9px",...ju,fontSize:e.listBox?.content?.fontSize,fontFamily:e.listBox?.content?.fontFamily},[`& .${Hu.labelDense}`]:{fontSize:12},[`& .${Hu.highlighted}`]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},[`& .${Hu.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...ju,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${Hu.icon}`]:{display:"flex",padding:e.spacing(1,1,1,0)},[`& .${Hu.S}`]:{...Uu({theme:e})},[`& .${Hu.XS}`]:{...Uu({theme:e}),background:e.palette.selected.excluded,color:e.palette.selected.mainContrastText},[`& .${Hu.A}`]:{background:e.palette.selected.alternative,color:e.palette.selected.alternativeContrastText},[`& .${Hu.X}`]:{background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText},[`& .${Hu.frequencyCount}`]:{width:"66px",justifyContent:"flex-end"},[`&.${Hu.barContainer}`]:{height:"100%",display:"inline-block"},[`& .${Hu.bar}`]:{border:"1px solid",borderColor:"#D9D9D9",height:n?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"4px",transition:"width 0.2s",backgroundColor:"#FAFAFA"},[`& .${Hu.barSelected}`]:{opacity:"30%",zIndex:"0",background:e.palette.background.lighter},[`& .${Hu.barWithCheckbox}`]:{left:"29px"},[`& .${Hu.barSelectedWithCheckbox}`]:{background:"#BFE5D0",borderColor:"#BFE5D0"},[`& .${Hu.excludedTextWithCheckbox}`]:{color:"#828282",fontStyle:"italic"}}))),Ku=function({index:e,rowIndex:t,columnIndex:i,style:o,data:r}){const{onClick:s,onMouseDown:a,onMouseUp:l,onMouseEnter:c,pages:d,isLocked:u,column:h=!1,checkboxes:g=!1,textAlign:p,direction:m,dense:f=!1,freqIsAllowed:v,isSingleSelect:_,actions:b,frequencyMax:C="",histogram:y=!1,keyboard:w,showGray:S=!0,columnCount:x=1,rowCount:L=1,layoutOrder:k,dataOffset:E,focusListItems:N,listCount:D}=r;let I,q;const R={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof i){"row"===k?(I=t*x+i,R.max=L,R.currentIndex=t):(I=i*L+t,R.max=x,R.currentIndex=i);const e=0;q={...o,left:e+(0===i?o.left:Number(o.left)+i*e),top:0===t?o.top:Number(o.top)+t*e}}else I=e,R.max=D,R.currentIndex=e,q={...o};I+=E;const O=(0,n.useRef)(null);(0,n.useEffect)((()=>{null!==O.current&&(0===R.currentIndex&&N.first&&(O.current.focus(),N.setFirst(!1)),R.currentIndex===R.max-1&&N.last&&(O.current.focus(),N.setLast(!1)))}),[O.current]);const T=(0,n.useCallback)(function({select:e,confirm:t,cancel:n,setScrollPosition:i,focusListItems:o}){const r=(e,t=!1)=>{const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let s=!1;const a=e=>{s=e};return l=>{let c;const{keyCode:d,shiftKey:u=!1,ctrlKey:h=!1}=l.nativeEvent;switch(d){case Wu.SHIFT:a(!0);break;case Wu.SPACE:e([+l.currentTarget.getAttribute("data-n")]);break;case Wu.ARROW_DOWN:case Wu.ARROW_RIGHT:c=r(l.currentTarget,!0),u&&c&&(s&&(e([+l.currentTarget.getAttribute("data-n")],!0),a(!1)),e([+c.getAttribute("data-n")],!0));break;case Wu.ARROW_UP:case Wu.ARROW_LEFT:c=r(l.currentTarget,!1),u&&c&&(s&&(e([+l.currentTarget.getAttribute("data-n")],!0),a(!1)),e([+c.getAttribute("data-n")],!0));break;case Wu.ENTER:t();break;case Wu.ESCAPE:return void n();case Wu.HOME:if(o.setFirst(!0),h){i?.("overflowStart");break}i?.("start");break;case Wu.END:if(o.setLast(!0),h){i?.("overflowEnd");break}i?.("end");break;default:return}c&&c.focus(),l.preventDefault(),l.stopPropagation()}}({...b,focusListItems:N}),[b]),[A,M]=(0,n.useState)(!1),[P,F]=(0,n.useState)(),[B,V]=(0,n.useState)([]);(0,n.useEffect)((()=>{if(!d)return;let e;const t=d.filter((e=>e.qArea.qTop<=I&&I<e.qArea.qTop+e.qArea.qHeight))[0];if(t){const n=t.qArea;I>=n.qTop&&I<n.qTop+n.qHeight&&([e]=t.qMatrix[I-n.qTop])}F(e)}),[d]);const z=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,W=e=>e?"A"===e.qState:null;if((0,n.useEffect)((()=>{if(!P)return;const e="S"===P.qState||"XS"===P.qState||"L"===P.qState;M(e);const t=[h?Hu.column:Hu.row];y&&f||g||t.push(Hu.rowBorderBottom),g||("XS"===P.qState?t.push(S?Hu.XS:Hu.S):"S"===P.qState||"L"===P.qState?t.push(Hu.S):S&&W(P)?t.push(Hu.A):S&&z(P)&&t.push(Hu.X)),V(t)}),[P&&P.qState,y,f,g]),!P)return null;const H=e=>e.filter((e=>!!e)).join(" ").trim(),j=()=>(W(P)||z(P))&&g,U=!["NaN",void 0].includes(P?.qNum);let $;const K=!p||p.auto;$=K?U?"right":{rtl:"right",ltr:"left"}[m]:p?.align||"left";const G=({lbl:e,ix:t,color:i,highlighted:o=!1})=>n.createElement(No,{component:"span",variant:"body2",key:t,className:H([Hu.labelText,o&&Hu.highlighted,f&&Hu.labelDense,S&&j()&&Hu.excludedTextWithCheckbox]),color:i,justifyContent:$},n.createElement("span",{style:{whiteSpace:"pre"}},e)),Z=({lbl:e,color:t,qElemNumber:i})=>{const o=n.createElement(yu,{label:e,checked:A,dense:f,excluded:z(P),showGray:S}),r=n.createElement(Vu,{label:e,checked:A,dense:f}),s="string"==typeof e?G({lbl:e,color:t,highlighted:!1}):e;return n.createElement(Zd,{color:t,control:_?r:o,className:Hu.checkboxLabel,label:s,key:i})},Q=P?P.qText:"",Y=()=>P?P.qFrequency?P.qFrequency:"-":"",X=P&&P.qHighlightRanges&&P.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[],J=function(e,t){if(!t.length)return[];const n=t.reduce(((n,i,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,r=[];return i>n&&r.push([e.slice(n,i),!1]),r.push([e.slice(i,i+o),!0]),r}(e,i,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&n.push([e.slice(a),!1]),n}),[]);return n}(Q,X),ee=g?Z:G,te={alignItems:"center",display:"flex",fontSize:"8px"},ne=A&&u,ie=!g&&A&&!u,oe={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:g?0:void 0,justifyContent:$},re=0===e,se=g?"auto":"max-content";return n.createElement($u,{className:Hu.barContainer,flexBasisProp:se,dense:f},n.createElement(yo,{ref:O,container:!0,gap:0,className:H(["value",...B]),classes:{root:Hu.fieldRoot},style:q,onClick:s,onMouseDown:a,onMouseUp:l,onMouseEnter:c,onKeyDown:T,onContextMenu:e=>{g&&s(e),e.preventDefault()},role:h?"column":"row",tabIndex:!re||w.enabled&&!w.active?-1:0,"data-n":P&&P.qElemNumber},P&&y&&"-"!==Y()&&n.createElement("div",{className:H([Hu.bar,g&&Hu.barWithCheckbox,A&&(g?Hu.barSelectedWithCheckbox:Hu.barSelected)]),style:{width:(e=>{const t=String(e),n="%"===t.substring(t.length-1),i=parseFloat(n?t:e);return`calc(${n?i:i/C*100}% - ${g?"(29px + 6px)":"10px"})`})(P.qFrequency)}}),n.createElement(yo,{item:!0,style:oe,className:H([Hu.cell,Hu.selectedCell]),title:`${Q}`},0===X.length?ee({lbl:Q,color:"inherit"}):(({lbls:e})=>{const t=e.map((([e,t],n)=>G({ix:n,highlighted:t,lbl:e})));return g?Z({lbl:t}):t})({lbls:J})),v&&n.createElement(yo,{item:!0,style:{display:"flex",alignItems:"center"},className:Hu.frequencyCount},n.createElement(No,{noWrap:!0,color:"inherit",variant:"body2",className:H([f&&Hu.labelDense,Hu.labelText,S&&j()&&Hu.excludedTextWithCheckbox])},Y())),!g&&n.createElement(yo,{item:!0,className:Hu.icon},!ne&&!ie&&n.createElement("span",{style:{minWidth:"12px"}}),ne&&n.createElement(Lc,{style:te,size:"small"}),ie&&n.createElement(Yd,{style:te,size:"small"}))))};function Gu({width:e,layout:t,frequencyMode:n}){const i=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["none",void 0].includes(n);return!(!i||!r&&!o)}var Zu=s(29834),Qu=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Yu(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((i=e[n])===(o=t[n])||Qu(i)&&Qu(o)))return!1;var i,o;return!0}const Xu=function(e,t){var n;void 0===t&&(t=Yu);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}};var Ju="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function eh(e){cancelAnimationFrame(e.id)}function th(e,t){var n=Ju(),i={id:requestAnimationFrame((function o(){Ju()-n>=t?e.call(null):i.id=requestAnimationFrame(o)}))};return i}var nh=-1;function ih(e){if(void 0===e&&(e=!1),-1===nh||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),nh=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nh}var oh=null;function rh(e){if(void 0===e&&(e=!1),null===oh||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?oh="positive-descending":(t.scrollLeft=1,oh=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),oh}return oh}var sh=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ah(e){var t,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,r=e.getColumnStopIndexForStartIndex,s=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,u=e.getRowHeight,h=e.getRowOffset,g=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,yi(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:yi(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Xu((function(e,t,i,o,r,s,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=Xu((function(e,t,i,o,r){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,r=n.props,a=r.columnWidth,l=r.direction,c=r.rowHeight,d=n._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=i(n.props,t,n._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:h(n.props,e,n._instanceProps),height:u(n.props,e,n._instanceProps),width:s(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Xu((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=n.props.direction,c=r;if("rtl"===t)switch(rh()){case"negative":c=-r;break;case"positive-descending":c=l-o-r}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(s,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&eh(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=th(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Si(t,e),t.getDerivedStateFromProps=function(e,t){return lh(e,t),v(e),null};var _=t.prototype;return _.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},_.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,r=this.props,s=r.columnCount,u=r.height,h=r.rowCount,g=r.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,v=ih();void 0!==i&&(i=Math.max(0,Math.min(i,s-1))),void 0!==o&&(o=Math.max(0,Math.min(o,h-1)));var _=a(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>g?v:0,C=_>u?v:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,C):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,b):f})},_.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var i=this._outerRef;"number"==typeof t&&(i.scrollLeft=t),"number"==typeof n&&(i.scrollTop=n)}this._callPropsCallbacks()},_.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,i=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(rh()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&eh(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,t=e.children,i=e.className,o=e.columnCount,r=e.direction,s=e.height,c=e.innerRef,d=e.innerElementType,u=e.innerTagName,h=e.itemData,g=e.itemKey,p=void 0===g?sh:g,m=e.outerElementType,f=e.outerTagName,v=e.rowCount,_=e.style,b=e.useIsScrolling,C=e.width,y=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],x=w[1],L=this._getVerticalRangeToRender(),k=L[0],E=L[1],N=[];if(o>0&&v)for(var D=k;D<=E;D++)for(var I=S;I<=x;I++)N.push((0,n.createElement)(t,{columnIndex:I,data:h,isScrolling:b?y:void 0,key:p({columnIndex:I,data:h,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,I)}));var q=a(this.props,this._instanceProps),R=l(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ci({position:"relative",height:s,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},_)},(0,n.createElement)(d||u||"div",{children:N,ref:c,style:{height:q,pointerEvents:y?"none":void 0,width:R}}))},_._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,i=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var r=this._getHorizontalRangeToRender(),s=r[0],a=r[1],l=r[2],c=r[3],d=this._getVerticalRangeToRender(),u=d[0],h=d[1],g=d[2],p=d[3];this._callOnItemsRendered(s,a,u,h,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,v=m.scrollLeft,_=m.scrollTop,b=m.scrollUpdateWasRequested,C=m.verticalScrollDirection;this._callOnScroll(v,_,f,C,b)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,u=l.scrollLeft,h=n||i||s||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,u,this._instanceProps),p=r(this.props,g,u,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,h),f=d&&"forward"!==c?1:Math.max(1,h);return[Math.max(0,g-m),Math.max(0,Math.min(t-1,p+f)),g,p]},_._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=i||o||n||1;if(0===t||0===r)return[0,0,0,0];var u=g(this.props,c,this._instanceProps),h=p(this.props,u,c,this._instanceProps),m=a&&"backward"!==l?1:Math.max(1,d),f=a&&"forward"!==l?1:Math.max(1,d);return[Math.max(0,u-m),Math.max(0,Math.min(r-1,h+f)),u,h]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var lh=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ch=function(e,t){return e};function dh(e){var t,i=e.getItemOffset,o=e.getEstimatedTotalSize,r=e.getItemSize,s=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,yi(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:yi(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Xu((function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Xu((function(e,t,i){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,s=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var u=i(n.props,e,n._instanceProps),h=r(n.props,e,n._instanceProps),g="horizontal"===s||"horizontal"===l,p="rtl"===s,m=g?u:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:u,height:g?"100%":h,width:g?h:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Xu((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,s=o;if("rtl"===t)switch(rh()){case"negative":s=-o;break;case"positive-descending":s=r-i-o}return s=Math.max(0,Math.min(s,r-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;n.setState((function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,o-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&eh(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=th(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Si(t,e),t.getDerivedStateFromProps=function(e,t){return uh(e,t),u(e),null};var h=t.prototype;return h.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},h.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,i=n.itemCount,o=n.layout,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?ih():0:l.scrollHeight>l.clientHeight?ih():0}this.scrollTo(s(this.props,e,t,r,this._instanceProps,a))},h.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,i=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===i?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},h.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,i=this.state,o=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(rh()){case"negative":r.scrollLeft=-o;break;case"positive-ascending":r.scrollLeft=o;break;default:var s=r.clientWidth,a=r.scrollWidth;r.scrollLeft=a-s-o}else r.scrollLeft=o;else r.scrollTop=o}this._callPropsCallbacks()},h.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&eh(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,i=e.className,r=e.direction,s=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,u=e.itemData,h=e.itemKey,g=void 0===h?ch:h,p=e.layout,m=e.outerElementType,f=e.outerTagName,v=e.style,_=e.useIsScrolling,b=e.width,C=this.state.isScrolling,y="horizontal"===r||"horizontal"===p,w=y?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),x=S[0],L=S[1],k=[];if(d>0)for(var E=x;E<=L;E++)k.push((0,n.createElement)(t,{data:u,key:g(E,u),index:E,isScrolling:_?C:void 0,style:this._getItemStyle(E)}));var N=o(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:w,ref:this._outerRefSetter,style:Ci({position:"relative",height:s,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},v)},(0,n.createElement)(l||c||"div",{children:k,ref:a,style:{height:y?"100%":N,pointerEvents:C?"none":void 0,width:y?N:"100%"}}))},h._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],i=e[2],o=e[3];this._callOnItemsRendered(t,n,i,o)}if("function"==typeof this.props.onScroll){var r=this.state,s=r.scrollDirection,a=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},h._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,r=i.scrollDirection,s=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),d=l(this.props,c,s,this._instanceProps),u=o&&"backward"!==r?1:Math.max(1,n),h=o&&"forward"!==r?1:Math.max(1,n);return[Math.max(0,c-u),Math.max(0,Math.min(t-1,d+h)),c,d]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var uh=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},hh=ah({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,i,o,r){var s=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,s*a-l),d=Math.min(c,t*a),u=Math.max(0,t*a-l+r+a);switch("smart"===n&&(n=i>=u-l&&i<=d+l?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(l/2)?0:h>c+Math.floor(l/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getOffsetForRowAndAlignment:function(e,t,n,i,o,r){var s=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*s-a),d=Math.min(c,t*s),u=Math.max(0,t*s-a+r+s);switch("smart"===n&&(n=i>=u-a&&i<=d+a?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(a/2)?0:h>c+Math.floor(a/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var i=e.columnWidth,o=e.columnCount,r=e.width,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var i=e.rowHeight,o=e.rowCount,r=e.height,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),gh=dh({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,i,o,r){var s=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,u=e.width,h="horizontal"===s||"horizontal"===d?u:a,g=Math.max(0,l*c-h),p=Math.min(g,t*c),m=Math.max(0,t*c-h+c+r);switch("smart"===n&&(n=i>=m-h&&i<=p+h?"auto":"center"),n){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(h/2)?0:f>g+Math.floor(h/2)?g:f;default:return i>=m&&i<=p?i:i<m?m:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,n){var i=e.direction,o=e.height,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===i||"horizontal"===a?l:o,u=Math.ceil((d+n-c)/s);return Math.max(0,Math.min(r-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const ph="#BBB",mh="#555",fh="#f1f1f1",vh="ListBox-styledScrollbars";function _h({renderProps:e,layoutOptions:t,maxCount:n,columnCount:i,rowCount:o,overflowDisclaimer:r,qCardinal:s,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=((e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(e,l),d=l?n.column:n.row,u=(l?i:o)>=d,h=((e,t,n,i)=>e===t*n+i+n)(s,c,l?o:i,a),g=!!a&&((e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(e,l),p=u&&!h&&c>=d-1||g||r.state.show;r.set(p)}function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bh.apply(this,arguments)}const{StyledFixedSizeList:Ch,StyledFixedSizeGrid:yh}=function(){const e={scrollbarColor:"#BBB #f1f1f1","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:fh},"&::-webkit-scrollbar-thumb":{backgroundColor:ph,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:mh}};return{StyledFixedSizeList:(0,Zu.Z)(gh)((()=>({[`&.${vh}`]:e,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:fh},"&::-webkit-scrollbar-thumb":{backgroundColor:ph,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:mh}}))),StyledFixedSizeGrid:(0,Zu.Z)(hh)((()=>({[`&.${vh}`]:e,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:fh},"&::-webkit-scrollbar-thumb":{backgroundColor:ph,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:mh}})))}}(),wh=e=>{const t=(0,n.useMemo)((()=>"text"in e?e:{}),[e]);return(0,n.useMemo)((()=>((e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();return n.font=t,Array.isArray(e)?Math.max(...e.map((e=>n.measureText(e).width))):n.measureText(e).width})(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])};function Sh(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}const[xh,Lh]=Ul({});function kh(e){const t=`${e.id}`,[n]=xh();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}function Eh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nh(e){return e instanceof Eh(e).Element||e instanceof Element}function Dh(e){return e instanceof Eh(e).HTMLElement||e instanceof HTMLElement}function Ih(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Eh(e).ShadowRoot||e instanceof ShadowRoot)}var qh=Math.max,Rh=Math.min,Oh=Math.round;function Th(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ah(){return!/^((?!chrome|android).)*safari/i.test(Th())}function Mh(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&Dh(e)&&(o=e.offsetWidth>0&&Oh(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Oh(i.height)/e.offsetHeight||1);var s=(Nh(e)?Eh(e):window).visualViewport,a=!Ah()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,d=i.width/o,u=i.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Ph(e){var t=Eh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fh(e){return e?(e.nodeName||"").toLowerCase():null}function Bh(e){return((Nh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vh(e){return Mh(Bh(e)).left+Ph(e).scrollLeft}function zh(e){return Eh(e).getComputedStyle(e)}function Wh(e){var t=zh(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Hh(e,t,n){void 0===n&&(n=!1);var i,o,r=Dh(t),s=Dh(t)&&function(e){var t=e.getBoundingClientRect(),n=Oh(t.width)/e.offsetWidth||1,i=Oh(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=Bh(t),l=Mh(e,s,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==Fh(t)||Wh(a))&&(c=(i=t)!==Eh(i)&&Dh(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:Ph(i)),Dh(t)?((d=Mh(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Vh(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function jh(e){var t=Mh(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Uh(e){return"html"===Fh(e)?e:e.assignedSlot||e.parentNode||(Ih(e)?e.host:null)||Bh(e)}function $h(e){return["html","body","#document"].indexOf(Fh(e))>=0?e.ownerDocument.body:Dh(e)&&Wh(e)?e:$h(Uh(e))}function Kh(e,t){var n;void 0===t&&(t=[]);var i=$h(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=Eh(i),s=o?[r].concat(r.visualViewport||[],Wh(i)?i:[]):i,a=t.concat(s);return o?a:a.concat(Kh(Uh(s)))}function Gh(e){return["table","td","th"].indexOf(Fh(e))>=0}function Zh(e){return Dh(e)&&"fixed"!==zh(e).position?e.offsetParent:null}function Qh(e){for(var t=Eh(e),n=Zh(e);n&&Gh(n)&&"static"===zh(n).position;)n=Zh(n);return n&&("html"===Fh(n)||"body"===Fh(n)&&"static"===zh(n).position)?t:n||function(e){var t=/firefox/i.test(Th());if(/Trident/i.test(Th())&&Dh(e)&&"fixed"===zh(e).position)return null;var n=Uh(e);for(Ih(n)&&(n=n.host);Dh(n)&&["html","body"].indexOf(Fh(n))<0;){var i=zh(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var Yh="top",Xh="bottom",Jh="right",eg="left",tg="auto",ng=[Yh,Xh,Jh,eg],ig="start",og="end",rg="viewport",sg="popper",ag=ng.reduce((function(e,t){return e.concat([t+"-"+ig,t+"-"+og])}),[]),lg=[].concat(ng,[tg]).reduce((function(e,t){return e.concat([t,t+"-"+ig,t+"-"+og])}),[]),cg=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function dg(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),i}var ug={placement:"bottom",modifiers:[],strategy:"absolute"};function hg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function gg(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?ug:o;return function(e,t,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ug,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:Nh(e)?Kh(e):e.contextElement?Kh(e.contextElement):[],popper:Kh(t)};var s,c,h=function(e){var t=dg(e);return cg.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(i,a.options.modifiers),c=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var r=o({state:a,name:t,instance:d,options:i});l.push(r||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(hg(t,n)){a.rects={reference:Hh(t,Qh(n),"fixed"===a.options.strategy),popper:jh(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,l=void 0===s?{}:s,u=o.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){u(),c=!0}};if(!hg(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var pg={passive:!0};function mg(e){return e.split("-")[0]}function fg(e){return e.split("-")[1]}function vg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _g(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?mg(o):null,s=o?fg(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Yh:t={x:a,y:n.y-i.height};break;case Xh:t={x:a,y:n.y+n.height};break;case Jh:t={x:n.x+n.width,y:l};break;case eg:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?vg(r):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case ig:t[c]=t[c]-(n[d]/2-i[d]/2);break;case og:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}var bg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cg(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=s.x,g=void 0===h?0:h,p=s.y,m=void 0===p?0:p,f="function"==typeof d?d({x:g,y:m}):{x:g,y:m};g=f.x,m=f.y;var v=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),b=eg,C=Yh,y=window;if(c){var w=Qh(n),S="clientHeight",x="clientWidth";w===Eh(n)&&"static"!==zh(w=Bh(n)).position&&"absolute"===a&&(S="scrollHeight",x="scrollWidth"),(o===Yh||(o===eg||o===Jh)&&r===og)&&(C=Xh,m-=(u&&w===y&&y.visualViewport?y.visualViewport.height:w[S])-i.height,m*=l?1:-1),o!==eg&&(o!==Yh&&o!==Xh||r!==og)||(b=Jh,g-=(u&&w===y&&y.visualViewport?y.visualViewport.width:w[x])-i.width,g*=l?1:-1)}var L,k=Object.assign({position:a},c&&bg),E=!0===d?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:Oh(t*i)/i||0,y:Oh(n*i)/i||0}}({x:g,y:m}):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},k,((L={})[C]=_?"0":"",L[b]=v?"0":"",L.transform=(y.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L)):Object.assign({},k,((t={})[C]=_?m+"px":"",t[b]=v?g+"px":"",t.transform="",t))}const yg={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];Dh(o)&&Fh(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Dh(i)&&Fh(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var wg={left:"right",right:"left",bottom:"top",top:"bottom"};function Sg(e){return e.replace(/left|right|bottom|top/g,(function(e){return wg[e]}))}var xg={start:"end",end:"start"};function Lg(e){return e.replace(/start|end/g,(function(e){return xg[e]}))}function kg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ih(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Eg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ng(e,t,n){return t===rg?Eg(function(e,t){var n=Eh(e),i=Bh(e),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=Ah();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+Vh(e),y:l}}(e,n)):Nh(t)?function(e,t){var n=Mh(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Eg(function(e){var t,n=Bh(e),i=Ph(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=qh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=qh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+Vh(e),l=-i.scrollTop;return"rtl"===zh(o||n).direction&&(a+=qh(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(Bh(e)))}function Dg(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ig(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function qg(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,s=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?rg:c,u=n.elementContext,h=void 0===u?sg:u,g=n.altBoundary,p=void 0!==g&&g,m=n.padding,f=void 0===m?0:m,v=Dg("number"!=typeof f?f:Ig(f,ng)),_=h===sg?"reference":sg,b=e.rects.popper,C=e.elements[p?_:h],y=function(e,t,n,i){var o="clippingParents"===t?function(e){var t=Kh(Uh(e)),n=["absolute","fixed"].indexOf(zh(e).position)>=0&&Dh(e)?Qh(e):e;return Nh(n)?t.filter((function(e){return Nh(e)&&kg(e,n)&&"body"!==Fh(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),s=r[0],a=r.reduce((function(t,n){var o=Ng(e,n,i);return t.top=qh(o.top,t.top),t.right=Rh(o.right,t.right),t.bottom=Rh(o.bottom,t.bottom),t.left=qh(o.left,t.left),t}),Ng(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Nh(C)?C:C.contextElement||Bh(e.elements.popper),l,d,s),w=Mh(e.elements.reference),S=_g({reference:w,element:b,strategy:"absolute",placement:o}),x=Eg(Object.assign({},b,S)),L=h===sg?x:w,k={top:y.top-L.top+v.top,bottom:L.bottom-y.bottom+v.bottom,left:y.left-L.left+v.left,right:L.right-y.right+v.right},E=e.modifiersData.offset;if(h===sg&&E){var N=E[o];Object.keys(k).forEach((function(e){var t=[Jh,Xh].indexOf(e)>=0?1:-1,n=[Yh,Xh].indexOf(e)>=0?"y":"x";k[e]+=N[n]*t}))}return k}function Rg(e,t,n){return qh(e,Rh(t,n))}function Og(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tg(e){return[Yh,Jh,Xh,eg].some((function(t){return e[t]>=0}))}var Ag=gg({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=Eh(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,pg)})),a&&l.addEventListener("resize",n.update,pg),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,pg)})),a&&l.removeEventListener("resize",n.update,pg)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=_g({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:mg(t.placement),variation:fg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Cg(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cg(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},yg,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,s=lg.reduce((function(e,n){return e[n]=function(e,t,n){var i=mg(e),o=[eg,Yh].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[eg,Jh].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,r),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=void 0===g||g,m=n.allowedAutoPlacements,f=t.options.placement,v=mg(f),_=l||(v!==f&&p?function(e){if(mg(e)===tg)return[];var t=Sg(e);return[Lg(e),t,Lg(t)]}(f):[Sg(f)]),b=[f].concat(_).reduce((function(e,n){return e.concat(mg(n)===tg?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?lg:l,d=fg(i),u=d?a?ag:ag.filter((function(e){return fg(e)===d})):ng,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var g=h.reduce((function(t,n){return t[n]=qg(e,{placement:n,boundary:o,rootBoundary:r,padding:s})[mg(n)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),C=t.rects.reference,y=t.rects.popper,w=new Map,S=!0,x=b[0],L=0;L<b.length;L++){var k=b[L],E=mg(k),N=fg(k)===ig,D=[Yh,Xh].indexOf(E)>=0,I=D?"width":"height",q=qg(t,{placement:k,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),R=D?N?Jh:eg:N?Xh:Yh;C[I]>y[I]&&(R=Sg(R));var O=Sg(R),T=[];if(r&&T.push(q[E]<=0),a&&T.push(q[R]<=0,q[O]<=0),T.every((function(e){return e}))){x=k,S=!1;break}w.set(k,T)}if(S)for(var A=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},M=p?3:1;M>0&&"break"!==A(M);M--);t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,g=void 0===h||h,p=n.tetherOffset,m=void 0===p?0:p,f=qg(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=mg(t.placement),_=fg(t.placement),b=!_,C=vg(v),y="x"===C?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,x=t.rects.popper,L="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(w){if(r){var D,I="y"===C?Yh:eg,q="y"===C?Xh:Jh,R="y"===C?"height":"width",O=w[C],T=O+f[I],A=O-f[q],M=g?-x[R]/2:0,P=_===ig?S[R]:x[R],F=_===ig?-x[R]:-S[R],B=t.elements.arrow,V=g&&B?jh(B):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=z[I],H=z[q],j=Rg(0,S[R],V[R]),U=b?S[R]/2-M-j-W-k.mainAxis:P-j-W-k.mainAxis,$=b?-S[R]/2+M+j+H+k.mainAxis:F+j+H+k.mainAxis,K=t.elements.arrow&&Qh(t.elements.arrow),G=K?"y"===C?K.clientTop||0:K.clientLeft||0:0,Z=null!=(D=null==E?void 0:E[C])?D:0,Q=O+$-Z,Y=Rg(g?Rh(T,O+U-Z-G):T,O,g?qh(A,Q):A);w[C]=Y,N[C]=Y-O}if(a){var X,J="x"===C?Yh:eg,ee="x"===C?Xh:Jh,te=w[y],ne="y"===y?"height":"width",ie=te+f[J],oe=te-f[ee],re=-1!==[Yh,eg].indexOf(v),se=null!=(X=null==E?void 0:E[y])?X:0,ae=re?ie:te-S[ne]-x[ne]-se+k.altAxis,le=re?te+S[ne]+x[ne]-se-k.altAxis:oe,ce=g&&re?function(e,t,n){var i=Rg(e,t,n);return i>n?n:i}(ae,te,le):Rg(g?ae:ie,te,g?le:oe);w[y]=ce,N[y]=ce-te}t.modifiersData[i]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=mg(n.placement),l=vg(a),c=[eg,Jh].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return Dg("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ig(e,ng))}(o.padding,n),u=jh(r),h="y"===l?Yh:eg,g="y"===l?Xh:Jh,p=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],f=Qh(r),v=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,_=p/2-m/2,b=d[h],C=v-u[c]-d[g],y=v/2-u[c]/2+_,w=Rg(b,y,C),S=l;n.modifiersData[i]=((t={})[S]=w,t.centerOffset=w-y,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&kg(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=qg(t,{elementContext:"reference"}),a=qg(t,{altBoundary:!0}),l=Og(s,i),c=Og(a,o,r),d=Tg(l),u=Tg(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]});function Mg(e){return(0,vt.Z)("MuiPopperUnstyled",e)}(0,ft.Z)("MuiPopperUnstyled",["root"]);const Pg=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],Fg=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Bg(e){return"function"==typeof e?e():e}const Vg={},zg=n.forwardRef((function(e,t){var i;const{anchorEl:o,children:r,component:s,direction:a,disablePortal:l,modifiers:c,open:d,ownerState:u,placement:h,popperOptions:g,popperRef:p,slotProps:m={},slots:f={},TransitionProps:v}=e,_=Ps(e,Pg),b=n.useRef(null),C=(0,Fs.Z)(b,t),y=n.useRef(null),w=(0,Fs.Z)(y,p),S=n.useRef(w);(0,zs.Z)((()=>{S.current=w}),[w]),n.useImperativeHandle(p,(()=>y.current),[]);const x=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,a),[L,k]=n.useState(x),[E,N]=n.useState(Bg(o));n.useEffect((()=>{y.current&&y.current.forceUpdate()})),n.useEffect((()=>{o&&N(Bg(o))}),[o]),(0,zs.Z)((()=>{if(!E||!d)return;let e=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{k(e.placement)}}];null!=c&&(e=e.concat(c)),g&&null!=g.modifiers&&(e=e.concat(g.modifiers));const t=Ag(E,b.current,Ms({placement:x},g,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[E,l,c,d,g,x]);const D={placement:L};null!==v&&(D.TransitionProps=v);const I=(0,ut.Z)({root:["root"]},Mg,{}),q=null!=(i=null!=s?s:f.root)?i:"div",R=ed({elementType:q,externalSlotProps:m.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:C},ownerState:Ms({},e,u),className:I.root});return(0,bt.jsx)(q,Ms({},R,{children:"function"==typeof r?r(D):r}))})),Wg=n.forwardRef((function(e,t){const{anchorEl:i,children:o,container:r,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:u="bottom",popperOptions:h=Vg,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:v={}}=e,_=Ps(e,Fg),[b,C]=n.useState(!0);if(!l&&!d&&(!m||b))return null;let y;if(r)y=r;else if(i){const e=Bg(i);y=e&&void 0!==e.nodeType?(0,Oc.Z)(e).body:(0,Oc.Z)(null).body}const w=d||!l||m&&!b?void 0:"none",S=m?{in:d,onEnter:()=>{C(!1)},onExited:()=>{C(!0)}}:void 0;return(0,bt.jsx)(Pc,{disablePortal:a,container:y,children:(0,bt.jsx)(zg,Ms({anchorEl:i,direction:s,disablePortal:a,modifiers:c,ref:t,open:m?!b:d,placement:u,popperOptions:h,popperRef:g,slotProps:f,slots:v},_,{style:Ms({position:"fixed",top:0,left:0,display:w},p),TransitionProps:S,children:o}))})})),Hg=Wg;var jg=s(11330);const Ug=["components","componentsProps","slots","slotProps"],$g=(0,mt.ZP)(Hg,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kg=n.forwardRef((function(e,t){var n;const i=(0,jg.Z)(),o=(0,pt.Z)({props:e,name:"MuiPopper"}),{components:r,componentsProps:s,slots:a,slotProps:l}=o,c=(0,lt.Z)(o,Ug),d=null!=(n=null==a?void 0:a.root)?n:null==r?void 0:r.Root;return(0,bt.jsx)($g,(0,ct.Z)({direction:null==i?void 0:i.direction,slots:{root:d},slotProps:null!=l?l:s},c,{ref:t}))}));var Gg=s(13212);function Zg(e){return(0,vt.Z)("MuiTooltip",e)}const Qg=(0,ft.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Yg=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],Xg=(0,mt.ZP)(Kg,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>(0,ct.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Qg.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qg.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qg.arrow}`]:(0,ct.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Qg.arrow}`]:(0,ct.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Jg=(0,mt.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Mt.Z)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,mi.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${Qg.popper}[data-popper-placement*="left"] &`]:(0,ct.Z)({transformOrigin:"right center"},t.isRtl?(0,ct.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,ct.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Qg.popper}[data-popper-placement*="right"] &`]:(0,ct.Z)({transformOrigin:"left center"},t.isRtl?(0,ct.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,ct.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Qg.popper}[data-popper-placement*="top"] &`]:(0,ct.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Qg.popper}[data-popper-placement*="bottom"] &`]:(0,ct.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),ep=(0,mt.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,mi.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let tp=!1,np=null,ip={x:0,y:0};function op(e,t){return n=>{t&&t(n),e(n)}}const rp=n.forwardRef((function(e,t){var i,o,r,s,a,l,c,d,u,h,g,p,m,f,v,_,b,C,y;const w=(0,pt.Z)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:x,components:L={},componentsProps:k={},describeChild:E=!1,disableFocusListener:N=!1,disableHoverListener:D=!1,disableInteractive:I=!1,disableTouchListener:q=!1,enterDelay:R=100,enterNextDelay:O=0,enterTouchDelay:T=700,followCursor:A=!1,id:M,leaveDelay:P=0,leaveTouchDelay:F=1500,onClose:B,onOpen:V,open:z,placement:W="bottom",PopperComponent:H,PopperProps:j={},slotProps:U={},slots:$={},title:K,TransitionComponent:G=Rc,TransitionProps:Z}=w,Q=(0,lt.Z)(w,Yg),Y=zt(),X="rtl"===Y.direction,[J,ee]=n.useState(),[te,ne]=n.useState(null),ie=n.useRef(!1),oe=I||A,re=n.useRef(),se=n.useRef(),ae=n.useRef(),le=n.useRef(),[ce,de]=(0,Xd.Z)({controlled:z,default:!1,name:"Tooltip",state:"open"});let ue=ce;const he=(0,Gg.Z)(M),ge=n.useRef(),pe=n.useCallback((()=>{void 0!==ge.current&&(document.body.style.WebkitUserSelect=ge.current,ge.current=void 0),clearTimeout(le.current)}),[]);n.useEffect((()=>()=>{clearTimeout(re.current),clearTimeout(se.current),clearTimeout(ae.current),pe()}),[pe]);const me=e=>{clearTimeout(np),tp=!0,de(!0),V&&!ue&&V(e)},fe=(0,vi.Z)((e=>{clearTimeout(np),np=setTimeout((()=>{tp=!1}),800+P),de(!1),B&&ue&&B(e),clearTimeout(re.current),re.current=setTimeout((()=>{ie.current=!1}),Y.transitions.duration.shortest)})),ve=e=>{ie.current&&"touchstart"!==e.type||(J&&J.removeAttribute("title"),clearTimeout(se.current),clearTimeout(ae.current),R||tp&&O?se.current=setTimeout((()=>{me(e)}),tp?O:R):me(e))},_e=e=>{clearTimeout(se.current),clearTimeout(ae.current),ae.current=setTimeout((()=>{fe(e)}),P)},{isFocusVisibleRef:be,onBlur:Ce,onFocus:ye,ref:we}=(0,_i.Z)(),[,Se]=n.useState(!1),xe=e=>{Ce(e),!1===be.current&&(Se(!1),_e(e))},Le=e=>{J||ee(e.currentTarget),ye(e),!0===be.current&&(Se(!0),ve(e))},ke=e=>{ie.current=!0;const t=x.props;t.onTouchStart&&t.onTouchStart(e)},Ee=ve,Ne=_e;n.useEffect((()=>{if(ue)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||fe(e)}}),[fe,ue]);const De=(0,fi.Z)(x.ref,we,ee,t);K||0===K||(ue=!1);const Ie=n.useRef(),qe={},Re="string"==typeof K;E?(qe.title=ue||!Re||D?null:K,qe["aria-describedby"]=ue?he:null):(qe["aria-label"]=Re?K:null,qe["aria-labelledby"]=ue&&!Re?he:null);const Oe=(0,ct.Z)({},qe,Q,x.props,{className:(0,dt.Z)(Q.className,x.props.className),onTouchStart:ke,ref:De},A?{onMouseMove:e=>{const t=x.props;t.onMouseMove&&t.onMouseMove(e),ip={x:e.clientX,y:e.clientY},Ie.current&&Ie.current.update()}}:{}),Te={};q||(Oe.onTouchStart=e=>{ke(e),clearTimeout(ae.current),clearTimeout(re.current),pe(),ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.current=setTimeout((()=>{document.body.style.WebkitUserSelect=ge.current,ve(e)}),T)},Oe.onTouchEnd=e=>{x.props.onTouchEnd&&x.props.onTouchEnd(e),pe(),clearTimeout(ae.current),ae.current=setTimeout((()=>{fe(e)}),F)}),D||(Oe.onMouseOver=op(Ee,Oe.onMouseOver),Oe.onMouseLeave=op(Ne,Oe.onMouseLeave),oe||(Te.onMouseOver=Ee,Te.onMouseLeave=Ne)),N||(Oe.onFocus=op(Le,Oe.onFocus),Oe.onBlur=op(xe,Oe.onBlur),oe||(Te.onFocus=Le,Te.onBlur=xe));const Ae=n.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=j.popperOptions)&&e.modifiers&&(t=t.concat(j.popperOptions.modifiers)),(0,ct.Z)({},j.popperOptions,{modifiers:t})}),[te,j]),Me=(0,ct.Z)({},w,{isRtl:X,arrow:S,disableInteractive:oe,placement:W,PopperComponentProp:H,touch:ie.current}),Pe=(e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:r}=e,s={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,Mt.Z)(r.split("-")[0])}`],arrow:["arrow"]};return(0,ut.Z)(s,Zg,t)})(Me),Fe=null!=(i=null!=(o=$.popper)?o:L.Popper)?i:Xg,Be=null!=(r=null!=(s=null!=(a=$.transition)?a:L.Transition)?s:G)?r:Rc,Ve=null!=(l=null!=(c=$.tooltip)?c:L.Tooltip)?l:Jg,ze=null!=(d=null!=(u=$.arrow)?u:L.Arrow)?d:ep,We=Gc(Fe,(0,ct.Z)({},j,null!=(h=U.popper)?h:k.popper,{className:(0,dt.Z)(Pe.popper,null==j?void 0:j.className,null==(g=null!=(p=U.popper)?p:k.popper)?void 0:g.className)}),Me),He=Gc(Be,(0,ct.Z)({},Z,null!=(m=U.transition)?m:k.transition),Me),je=Gc(Ve,(0,ct.Z)({},null!=(f=U.tooltip)?f:k.tooltip,{className:(0,dt.Z)(Pe.tooltip,null==(v=null!=(_=U.tooltip)?_:k.tooltip)?void 0:v.className)}),Me),Ue=Gc(ze,(0,ct.Z)({},null!=(b=U.arrow)?b:k.arrow,{className:(0,dt.Z)(Pe.arrow,null==(C=null!=(y=U.arrow)?y:k.arrow)?void 0:C.className)}),Me);return(0,bt.jsxs)(n.Fragment,{children:[n.cloneElement(x,Oe),(0,bt.jsx)(Fe,(0,ct.Z)({as:null!=H?H:Kg,placement:W,anchorEl:A?{getBoundingClientRect:()=>({top:ip.y,left:ip.x,right:ip.x,bottom:ip.y,width:0,height:0})}:J,popperRef:Ie,open:!!J&&ue,id:he,transition:!0},Te,We,{popperOptions:Ae,children:({TransitionProps:e})=>(0,bt.jsx)(Be,(0,ct.Z)({timeout:Y.transitions.duration.shorter},e,He,{children:(0,bt.jsxs)(Ve,(0,ct.Z)({},je,{children:[K,S?(0,bt.jsx)(ze,(0,ct.Z)({},Ue,{ref:ne})):null]}))}))}))]})})),sp=rp;function ap({width:e,text:t,dense:i,tooltip:o}){const{translator:r}=(0,n.useContext)(jl),s=(0,mt.ZP)(No)((()=>({minWidth:`${e}px`,textAlign:"center",fontSize:i?"12px":"14px",...i&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}})));return n.createElement(sp,{title:o?r.get(t):""},n.createElement(s,{component:"div",variant:"body1",py:"12px"},r.get(t)))}var lp=s(79246);const cp=(0,mt.ZP)(xd)((({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t}))),dp=(0,mt.ZP)("div")((()=>({paddingLeft:"6px",flexGrow:1}))),up=(0,mt.ZP)("div")((({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"}))),hp=(0,mt.ZP)(lp.Z)((()=>({fontSize:"14px"})));function gp({text:e,dismiss:t,dense:i,parentWidth:o=0}){const r="function"==typeof t,s=i?370:282,a=Math.max(o/2-s/2,0),l=Math.min(s,o)-42,c=i&&o<s;return n.createElement(cp,{left:a,style:{maxWidth:s}},n.createElement(dp,null,n.createElement(ap,{text:e,dense:i,width:l,tooltip:c})),n.createElement(up,{dense:i},r&&n.createElement(lo,{"aria-label":"close",onClick:()=>t()},n.createElement(hp,null))))}function pp({model:e,selections:t,direction:i,checkboxes:o,height:r,width:s,listLayout:a="vertical",frequencyMode:l,update:c,fetchStart:d,postProcessPages:u,calculatePagesHeight:h=!1,keyboard:g={},showGray:p=!0,scrollState:m,selectDisabled:f=(()=>!1)}){const[v,_]=(0,n.useState)(!1),[b]=lc(e),C=!(!b||!b.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:y=o,histogram:w}=b??{},S=(0,n.useRef)(null),x=(0,n.useRef)({queue:[],validPages:!1,dataOffset:0}),L=(0,n.useRef)({pages:[]}),{isLoadingData:k,...E}=function({local:e,loaderRef:t,model:i,fetchStart:o,scrollTimeout:r,postProcessPages:s,listData:a}){const[l,c]=(0,n.useState)(!1),[d,u]=(0,n.useState)([]);let[h]=(0,n.useState)(0);const g=(n,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:n+d,stop:l+d});const g=!!t.current&&t.current._listRef&&t.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise((t=>{e.current.timeout=setTimeout((()=>{const n=e.current.queue.slice(-1)[0],r=i.getListObjectData("/qListObjectDef",[{qTop:n.start>h?n.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:n.start,qHeight:h,qLeft:0,qWidth:1}]).then((n=>{const i=s?s(n):n;e.current.validPages=!0,a.current.pages=i,u(i),c(!1),t()}));o&&o(r)}),g?r:0)}))};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(h=e),g)},pages:d,isLoading:l}}({local:x,loaderRef:S,model:e,fetchStart:d,scrollTimeout:0,postProcessPages:u,listData:L}),[N,D]=(0,n.useState)([]),{setStoreValue:I}=kh(e),q=(0,n.useCallback)(E.loadMoreItems,[b]),[R,O]=(0,n.useState)({show:!1,dismissed:!1});(0,n.useEffect)((()=>{D(E?.pages||[])}),[E?.pages]);const T=(0,n.useCallback)((e=>{if(!N?.length||!x.current.validPages)return!1;x.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=N.filter((e=>t(e)))[0];return n&&t(n)}),[b,N]),{instantPages:A=[],interactionEvents:M,select:P}=Hd({layout:b,selections:t,pages:N,checkboxes:y,selectDisabled:f,doc:document,isSingleSelect:C}),{layoutOptions:F={}}=b||{};let B=!0;F.dataLayout&&(B="singleColumn"===F.dataLayout||"row"===F?.layoutOrder);const V="grid"===F?.dataLayout,z=e=>{const t={...B?{rowIndex:e}:{columnIndex:e}},n=V?t:e;S.current._listRef.scrollToItem(n)},W=()=>{if(x.current.queue=[],x.current.validPages=!1,S.current){if(S.current.resetloadMoreItemsCache(!0),b&&b.qSelectionInfo.qInSelections)return;x.current.dataOffset=0,z(0)}};c&&c.call(null,W),(0,n.useEffect)((()=>{A&&!k&&D(A)}),[A]),(0,n.useEffect)((()=>{m&&!v&&S.current&&(S.current._listRef.scrollToItem(m.initScrollPos),_(!0))}),[S.current]),(0,n.useEffect)((()=>{W()}),[b,x.current.dataOffset]);const H=wh({text:Sh(b),font:"14px Source sans pro"});let j=100;const U=F.dataLayout?"singleColumn"===F.dataLayout:"horizontal"!==a,$=b?.qListObject.qSize?.qcy,K=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:i=!1}){const o=e?.length&&i?(({pages:e=[],minimumBatchSize:t,count:n})=>{const i=e.some((e=>e.qArea.qHeight<t)),o=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return i?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}({pages:N,minimumBatchSize:j,count:$,calculatePagesHeight:h,layoutOptions:F,model:e}),G=function({layout:e,width:t,height:n,listCount:i,count:o,textWidth:r}){const{layoutOptions:s={}}=e||{},{layoutOrder:a,maxVisibleRows:l={},maxVisibleColumns:c,dense:d,dataLayout:u}=s,h=Math.min(150,r+18);let g,p,m,f;const v=d?20:29,_=n||8*v;if(a)if("row"===a){g={overflowX:"hidden"};const e=c?.maxColumns||3;p=!1!==c?.auto?Math.min(i,Math.ceil((t-10)/h)):Math.min(i,e),f=Math.ceil(i/p),m=(t-10)/p}else{g={overflowY:"hidden"};const e=l?.maxRows||3;f=!1!==l.auto?Math.floor(_/v):Math.min(i,e),p=Math.ceil(i/f),m=Math.max(h,t/p)}p=("singleColumn"===u?1:p)||1,f=("singleColumn"===u?o:f)||i;const b=s.dense?838e3:577e3;f=Math.min(f,b);const C=Math.floor(3355e4/m);p=Math.min(p,C)||1;const y=f*p;return{columnCount:p,columnWidth:m,rowCount:f,overflowStyling:g,itemSize:v,listHeight:_,scrollBarWidth:10,count:o,listCount:Math.min(i,y),maxCount:{row:b,column:C}}}({layout:b,width:s,height:r,listCount:K,count:$,textWidth:H}),{listCount:Z}=G;I("listCount",Z);const{textAlign:Q}=b?.qListObject.qDimensionInfo||{},[Y,X]=(0,n.useState)({first:!1,last:!1}),{List:J,Grid:ee}=function({layout:e,width:t,checkboxes:i,local:o,isVertical:r,pages:s,selectDisabled:a,interactionEvents:l,frequencyMode:c,histogram:d,isSingleSelect:u,select:h,textAlign:g,selections:p,keyboard:m,showGray:f,scrollState:v,direction:_,listLayout:b,sizes:C,listCount:y,overflowDisclaimer:w,setScrollPosition:S,focusListItems:x}){const{layoutOptions:L={},frequencyMax:k}=e||{},{dense:E=!1}=L||{},{listHeight:N,itemSize:D,rowCount:I,columnCount:q}=C||{},R={direction:"rtl"===_?"rtl":"ltr",useIsScrolling:!0,className:vh},O=e?.qListObject.qDimensionInfo.qLocked,T={isLocked:O,column:!r,pages:s,...O||a()?{}:l,checkboxes:i,dense:E,frequencyMode:c,freqIsAllowed:Gu({width:t,layout:e,frequencyMode:c}),isSingleSelect:u,textAlign:g,actions:{select:h,confirm:()=>p?.confirm.call(p),cancel:()=>p?.cancel.call(p),setScrollPosition:S},frequencyMax:k,histogram:d,keyboard:m,showGray:f,dataOffset:o.current.dataOffset,focusListItems:x};return{List:({onItemsRendered:i,ref:r})=>(o.current.listRef=r,n.createElement(Ch,bh({},R,{dataTestid:"fixed-size-list",height:N,width:t,itemCount:y,layout:b,itemData:{...T,listCount:y},itemSize:D,onItemsRendered:t=>{v&&v.setScrollPos(t.visibleStopIndex),_h({renderProps:t,layoutOptions:L,maxCount:C.maxCount,columnCount:q,rowCount:I,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i({...t})},ref:r}),Ku)),Grid:({onItemsRendered:i,ref:r})=>{const{columnWidth:s,overflowStyling:a,scrollBarWidth:l}=C,{layoutOrder:c}=L||{},d=Math.min(N,I*D+l);return o.current.listRef=r,n.createElement(yh,bh({},R,{dataTestid:"fixed-size-grid",height:d,width:t,columnCount:q,columnWidth:s,rowCount:I,rowHeight:D,style:{...a},itemData:{...T,column:void 0,columnCount:q,rowCount:I,layoutOrder:c},onItemsRendered:t=>{const n=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let u,h,g,p;return n&&n.setScrollPos(d),"column"===i?(u=l*o,h=s,g=c*o,p=a):(u=l,h=s*r,g=c,p=a*r),{visibleStartIndex:u+h,visibleStopIndex:g+p}}({renderProps:t,scrollState:v,layoutOrder:c,rowCount:I,columnCount:q});_h({renderProps:t,layoutOptions:L,maxCount:C.maxCount,columnCount:q,rowCount:I,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i(n)},ref:r}),Ku)}}}({direction:i,layout:b,height:r,width:s,checkboxes:y,frequencyMode:l,histogram:w,keyboard:g,showGray:p,interactionEvents:M,select:P,textAlign:Q,isVertical:U,pages:N,selectDisabled:f,isSingleSelect:C,selections:t,scrollState:m,local:x,sizes:G,listCount:Z,overflowDisclaimer:{state:R,set:e=>O((t=>({...t,show:e})))},setScrollPosition:e=>{const{scrollIndex:t,offset:n,triggerRerender:i}=function({position:e,isRow:t,sizes:n,layout:i,offset:o}){let r,s=!1,a=o??0;switch(e){case"start":r=0;break;case"end":r=t?n.rowCount:n.columnCount;break;case"overflowStart":a=0,r=0,s=!0;break;case"overflowEnd":a=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,n.listCount),r=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:r,offset:a,triggerRerender:s}}({position:e,isRow:B,sizes:G,layout:b,offset:x.current.dataOffset});x.current.dataOffset=n,i&&D((e=>[...e])),z(t)},focusListItems:{first:Y.first,setFirst:e=>X((t=>({...t,first:e}))),last:Y.last,setLast:e=>X((t=>({...t,last:e})))}}),{columnWidth:te,listHeight:ne,itemSize:ie}=G||{};return U||(j=function({width:e,columnWidth:t,listHeight:n,itemSize:i}){return Math.ceil(e/t)*Math.ceil(n/i)*2}({width:s,columnWidth:te,listHeight:ne,itemSize:ie})),n.createElement(n.Fragment,null,!Z&&n.createElement(ap,{width:s,text:"Listbox.NoMatchesForYourTerms"}),n.createElement(Bd,{isItemLoaded:T,itemCount:Z||1,loadMoreItems:q.with({minimumBatchSize:j}),threshold:0,minimumBatchSize:j,ref:S},U?J:ee),R.show&&!R.dismissed&&n.createElement(gp,{text:"Listbox.ItemsOverflow",dismiss:()=>O((e=>({...e,dismissed:!0}))),parentWidth:S?.current?._listRef?.props?.width,dense:F?.dense}))}const mp=e=>({...e,shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),fp=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),vp=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),_p=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),bp=({layout:e,model:t,translator:n})=>e.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:mp,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:vp,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:fp,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:_p,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectExcluded("/qListObjectDef")}}];function Cp(e){return(0,vt.Z)("MuiDivider",e)}const yp=(0,ft.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Sp=(0,mt.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,ct.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,mi.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,ct.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,ct.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,ct.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),xp=(0,mt.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Lp=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:r,component:s=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==s?"separator":void 0),textAlign:u="center",variant:h="fullWidth"}=n,g=(0,lt.Z)(n,wp),p=(0,ct.Z)({},n,{absolute:i,component:s,flexItem:a,light:l,orientation:c,role:d,textAlign:u,variant:h}),m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,ut.Z)(c,Cp,i)})(p);return(0,bt.jsx)(Sp,(0,ct.Z)({as:s,className:(0,dt.Z)(m.root,r),role:d,ref:t,ownerState:p},g,{children:o?(0,bt.jsx)(xp,{className:m.wrapper,ownerState:p,children:o}):null}))})),kp=Lp,Ep=e=>({...e,shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function Np(e){const t=zt(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,i="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:i}}const Dp=n.forwardRef((({ariaExpanded:e=!1,item:t,addAnchor:i=!1},o)=>{const r=zt(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=Np(t);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),u=t.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&t.keyboardAction():null;return n.createElement(lo,{ref:i?null:o,title:t.label,onClick:t.action,onKeyDown:u,disabled:a,style:l,className:"njs-cell-action",size:"large","aria-expanded":e,"aria-controls":"moreMenuList"},c&&sr(t.getSvgIconShape()),i&&n.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Ip=Dp,qp=e=>({...e,shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),Rp=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]}),Op=e=>sr(Rp(e));function Tp(e){return(0,vt.Z)("MuiListItemIcon",e)}const Ap=(0,ft.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function Mp(e){return(0,vt.Z)("MuiMenuItem",e)}const Pp=(0,ft.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Fp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Bp=(0,mt.ZP)(no,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,ct.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,mi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,mi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Pp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,mi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,mi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Pp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yp.inset}`]:{marginLeft:52},[`& .${Rr.root}`]:{marginTop:0,marginBottom:0},[`& .${Rr.inset}`]:{paddingLeft:36},[`& .${Ap.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,ct.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Ap.root} svg`]:{fontSize:"1.25rem"}})))),Vp=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:u,className:h}=i,g=(0,lt.Z)(i,Fp),p=n.useContext(lr),m=n.useMemo((()=>({dense:s||p.dense||!1,disableGutters:l})),[p.dense,s,l]),f=n.useRef(null);(0,fr.Z)((()=>{o&&f.current&&f.current.focus()}),[o]);const v=(0,ct.Z)({},i,{dense:m.dense,divider:a,disableGutters:l}),_=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:r,classes:s}=e,a={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",r&&"selected"]},l=(0,ut.Z)(a,Mp,s);return(0,ct.Z)({},s,l)})(i),b=(0,fi.Z)(f,t);let C;return i.disabled||(C=void 0!==u?u:-1),(0,bt.jsx)(lr.Provider,{value:m,children:(0,bt.jsx)(Bp,(0,ct.Z)({ref:b,role:d,tabIndex:C,component:r,focusVisibleClassName:(0,dt.Z)(_.focusVisible,c),className:(0,dt.Z)(_.root,h)},g,{ownerState:v,classes:_}))})})),zp=Vp,Wp=["className"],Hp=(0,mt.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,ct.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),jp=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiListItemIcon"}),{className:o}=i,r=(0,lt.Z)(i,Wp),s=n.useContext(lr),a=(0,ct.Z)({},i,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,i={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,ut.Z)(i,Tp,n)})(a);return(0,bt.jsx)(Hp,(0,ct.Z)({className:(0,dt.Z)(l.root,o),ownerState:a,ref:t},r))})),Up=jp,$p=Fc,Kp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Gp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Zp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Qp(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Yp(e,t,n,i,o,r){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&Qp(a,r)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const Xp=n.forwardRef((function(e,t){const{actions:i,autoFocus:o=!1,autoFocusItem:r=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu"}=e,h=(0,lt.Z)(e,Kp),g=n.useRef(null),p=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,fr.Z)((()=>{o&&g.current.focus()}),[o]),n.useImperativeHandle(i,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&n){const n=`${$p((0,rs.Z)(e))}px`;g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}})),[]);const m=(0,fi.Z)(g,t);let f=-1;n.Children.forEach(s,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===f)&&(f=t))}));const v=n.Children.map(s,((e,t)=>{if(t===f){const t={};return r&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,bt.jsx)(gr,(0,ct.Z)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,n=e.key,i=(0,rs.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Yp(t,i,c,l,Gp);else if("ArrowUp"===n)e.preventDefault(),Yp(t,i,c,l,Zp);else if("Home"===n)e.preventDefault(),Yp(t,null,c,l,Gp);else if("End"===n)e.preventDefault(),Yp(t,null,c,l,Zp);else if(1===n.length){const o=p.current,r=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&r!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(r);const a=i&&!o.repeating&&Qp(i,o);o.previousKeyMatched&&(a||Yp(t,i,!1,l,Gp,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},h,{children:v}))})),Jp=Xp;function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},em.apply(this,arguments)}const tm="More-icon",nm=(0,mt.ZP)(Ad)((({theme:e})=>({[`& .${tm}`]:{color:e.palette.text.primary}})));function im({item:e,onActionClick:t=(()=>{})}){const{hidden:i,disabled:o,hasSvgIconShape:r}=Np(e);return i?null:n.createElement(zp,{title:e.label,onClick:()=>{e.action(),t()},disabled:o,tabindex:"0"},r&&n.createElement(Up,{className:tm},sr(e.getSvgIconShape())),n.createElement(No,{noWrap:!0},e.label))}const om=n.forwardRef((({actions:e=[],show:t=!0,alignTo:i,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=(()=>{})},a)=>e.length>0&&n.createElement(nm,em({},o,{onClose:s,ref:a,open:t,anchorEl:i.current,getContentAnchorEl:null,hideBackdrop:!0,style:{pointerEvents:"none"},transitionDuration:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{style:{pointerEvents:"auto",maxWidth:"250px",...r}}}),n.createElement(Jp,{id:"moreMenuList"},e.map(((e,t)=>n.createElement(im,{key:t,item:e,onActionClick:s}))))))),rm="ActionsToolbar-itemSpacing",sm="ActionsToolbar-firstItemSpacing",am="ActionsToolbar-lastItemSpacing",lm=(0,mt.ZP)(Ad)((({theme:e})=>({[`& .${rm}`]:{padding:e.spacing(0,.5)},[`& .${sm}`]:{padding:e.spacing(0,.5,0,0)},[`& .${am}`]:{padding:e.spacing(0,0,0,.5)}}))),cm=n.forwardRef((({ariaExpanded:e=!1,actions:t=[],first:i=!1,last:o=!1,addAnchor:r=!1},s)=>t.length>0?n.createElement(yo,{item:!0,container:!0,gap:0,wrap:"nowrap"},t.map(((a,l)=>{let c=[];const d=i&&0===l,u=o&&t.length-1===l;return d&&!u&&(c=[sm]),u&&!d&&(c=[...c,am]),d||u||0!==c.length||(c=[rm]),n.createElement(yo,{item:!0,key:a.key,className:c.join(" ").trim()},n.createElement(Ip,{ariaExpanded:e,key:a.key,item:a,ref:0===l?s:null,addAnchor:r}))}))):null)),dm={pointerEvents:"none"},um={vertical:"top",horizontal:"right"},hm={vertical:"bottom",horizontal:"right"},gm=function({show:e=!0,actions:t=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:r={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:a=null,actionsRefMock:l=null}){const c=function({api:e,onConfirm:t=(()=>{}),onCancel:i=(()=>{}),onKeyDeactivate:o=(()=>{})}){const{translator:r}=(0,n.useContext)(jl);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(),action:()=>e.clear(),getSvgIconShape:Rp},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(),action:()=>{i(),e.cancel()},keyboardAction:t=>{o(t),i(),e.cancel()},getSvgIconShape:qp},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(),action:()=>{t(),e.confirm()},keyboardAction:n=>{o(n),t(),e.confirm()},getSvgIconShape:Qd}]}(o),{translator:d,keyboardNavigation:u}=(0,n.useContext)(jl),[h,g]=(0,n.useState)(!1),[p,m]=(0,n.useState)(r.enabled),[f,v]=(0,n.useState)(r.actions),_=(0,n.useRef)(),b=(0,n.useRef)(),C=zt(),y=(0,n.useMemo)((()=>({margin:C.spacing(.5,0)}))),w=e=>{const t=b.current||l;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};(0,n.useEffect)((()=>()=>g(!1)),[s.show]),(0,n.useEffect)((()=>{m(r.enabled)}),[r.enabled]),(0,n.useEffect)((()=>{a&&(a.on("focus_toolbar_first",(()=>{const e=w(!1);e&&e.focus()})),a.on("focus_toolbar_last",(()=>{const e=w(!0);e&&e.focus()})))}),[]);const S=(0,n.useMemo)((()=>t.filter((e=>!e.hidden))),[t]);if(!o.show&&0===S.length)return null;const x={key:"more",label:d.get("Menu.More"),getSvgIconShape:Ep,hidden:!1,active:h,enabled:()=>p,action:()=>g(!h)};if(S.length>i){const e=S.splice(-(S.length-i)-1);m(!0),v([...e,...r.actions])}const L=u&&a&&a.refocusContent?e=>{"Tab"===e.key&&(e.shiftKey&&w(!1)===e.target||!e.shiftKey&&w(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),a.refocusContent())}:null,k=S.length>0,E=f.length>0,N=k&&o.show||E&&o.show,D=n.createElement(yo,{ref:b,onKeyDown:L,container:!0,gap:0,wrap:"nowrap"},k&&n.createElement(cm,{actions:S,first:!0,last:!E&&!o.show}),E&&n.createElement(cm,{ref:_,ariaExpanded:h,actions:[x],first:!k,last:!o.show,addAnchor:!0}),N&&n.createElement(yo,{item:!0,className:rm,style:y},n.createElement(kp,{orientation:"vertical"})),o.show&&n.createElement(cm,{actions:c,first:!k&&!E,last:!0}),h&&n.createElement(om,{show:h,actions:f,alignTo:_,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{g(!1)}}));return s.show?n.createElement(lm,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:um,transformOrigin:hm,hideBackdrop:!0,style:dm,PaperProps:{className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:C.spacing(1,1)}}},D):e&&D};function pm(e){return(0,vt.Z)("MuiInputAdornment",e)}const mm=(0,ft.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var fm;const vm=["children","className","component","disablePointerEvents","disableTypography","position","variant"],_m=(0,mt.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Mt.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${mm.positionStart}&:not(.${mm.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),bm=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=i,u=(0,lt.Z)(i,vm),h=Ds()||{};let g=d;d&&h.variant,h&&!g&&(g=h.variant);const p=(0,ct.Z)({},i,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:r,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${(0,Mt.Z)(o)}`,s,i&&"hiddenLabel",r&&`size${(0,Mt.Z)(r)}`]};return(0,ut.Z)(a,pm,t)})(p);return(0,bt.jsx)(Ns.Provider,{value:null,children:(0,bt.jsx)(_m,(0,ct.Z)({as:s,ownerState:p,className:(0,dt.Z)(m.root,r),ref:t},u,{children:"string"!=typeof o||l?(0,bt.jsxs)(n.Fragment,{children:["start"===c?fm||(fm=(0,bt.jsx)("span",{className:"notranslate",children:"​"})):null,o]}):(0,bt.jsx)(No,{color:"text.secondary",children:o})}))})})),Cm=bm,ym=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e)),wm="/qListObjectDef",Sm=(0,mt.ZP)(Cm)((({theme:e})=>({color:e.listBox?.content?.color}))),xm=(0,mt.ZP)(ua)((({theme:e})=>({color:e.listBox?.content?.color})));function Lm({selections:e,model:t,keyboard:i,dense:o=!1,visible:r=!0,wildCardSearch:s=!0,searchEnabled:a}){const{translator:l}=(0,n.useContext)(jl),[c,d]=(0,n.useState)(""),[u,h]=(0,n.useState)(!1),g=(0,n.useRef)(),p=zt(),{getStoreValue:m}=kh(t),f=async()=>{if(e.isModal())try{await t.abortListObjectSearch(wm)}finally{d("")}};(0,n.useEffect)((()=>{r||f()}),[r]),(0,n.useEffect)((()=>(e.on("deactivated",f),()=>{e.removeListener&&e.removeListener("deactivated",f)})),[]),(0,n.useEffect)((()=>{if(u&&g.current){const e=c.length-1;g.current.setSelectionRange(e,e),h(!1)}}),[u,g.current]);return r&&!1!==a?n.createElement(xm,{startAdornment:n.createElement(Sm,{position:"start"},n.createElement(ym,{size:o?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,backgroundColor:"transparent","& fieldset":{border:`1px solid ${p.palette.divider}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},o&&{fontSize:12,paddingLeft:p.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],inputRef:g,size:"small",fullWidth:!0,placeholder:l.get("Listbox.Search"),value:c,onFocus:()=>{s&&(d("**"),h(!0)),e.isModal()||e.begin(["/qListObjectDef"])},onChange:async e=>(d(e.target.value),e.target.value.length?t.searchListObjectFor(wm,e.target.value):f()),onKeyDown:async n=>{let i;switch(n.key){case"Enter":i=await(async()=>{let n;return await t.searchListObjectFor(wm,c)&&c.length&&m("listCount")>0&&(n=t.acceptListObjectSearch(wm,!0),e.selectionsMade=!0,d("")),n})();break;case"Escape":i=e.isActive()&&e.cancel(),n.preventDefault(),n.stopPropagation()}return i},inputProps:{tabIndex:!i||i.enabled&&!i.active?-1:0}}):null}function km(e){return Object.keys(Ga().prototype).forEach((t=>{e[t]=Ga().prototype[t]})),Ga().init(e),e}const Em=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,r=!1;const s={id:n.id,setLayout(e){i=e},begin(e){const i=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",i),i.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin(n,e,!0))},clear(){return r=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return r=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return r=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const i=this.begin([t.params[0]]);if(!e.isModal())return!1;await i;const o=await n[t.method](...t.params);return r="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(n),goModal:e=>t.begin(n,e,!1),noModal:(e=!1)=>t.end(e)};return km(s),s};function Nm(e,t,i,o){const r=Array.isArray(i)?i:[i],[s]=wc(e),[a]=lc(t),l=t?t.id:null,[c]=fc(),[d]=_c(),u=c.get(e.id);let h=d.get(l);return(0,n.useEffect)((()=>{s&&t&&!h&&(h=Em({appSelections:s,appModal:u,model:t}),d.set(l,h),d.dispatch(!0))}),[s,t]),(0,n.useEffect)((()=>{if(!h)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=(({elements:e,objectSelections:t,options:n})=>{const i=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const i=e.map((e=>"string"==typeof e?document.querySelector(e):e?.current)).filter((e=>!!e&&!!document.contains(e)));i.length&&!i.some((e=>e.contains(n.target)))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",i),n.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",i),n.onSelectionDeactivated?.()}}})({elements:r,objectSelections:h,options:o});return h.addListener("activated",e),h.addListener("deactivated",t),()=>{h.removeListener("activated",e),h.removeListener("deactivated",t)}}),[h]),(0,n.useEffect)((()=>{h&&h.setLayout(a)}),[h,a]),[h]}const Dm=(e,t,n)=>e?.[t]??n;function Im({alignTo:e,anchorOrigin:t={vertical:"bottom",horizontal:"center"},transformOrigin:i={vertical:"top",horizontal:"center"},show:o,close:r,app:s,fieldName:a,stateName:l="$"}){const c=o&&Boolean(e.current),[d,u]=(0,n.useState)(0),h=zt(),[g]=dc({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:[a]}}},s,a,l),p=(0,n.useCallback)((()=>{g.lock("/qListObjectDef")}),[g]),m=(0,n.useCallback)((()=>{g.unlock("/qListObjectDef")}),[g]),{translator:f}=(0,n.useContext)(jl),v=(0,n.useRef)(),_=(0,n.useRef)(),[b]=Nm(s,g,_),[C]=lc(g);if((0,n.useEffect)((()=>{b&&c&&(b.isModal(g)||b.goModal("/qListObjectDef"))}),[b,c]),!g||!C||!f)return null;const y=!0===C.qListObject.qDimensionInfo.qLocked,w=(e,t)=>{const n="escapeKeyDown"!==t;b.noModal(n),r()},S=bp({layout:C,model:g,translator:f}),x=function(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return Dm(t,"qSelected",0)+Dm(t,"qSelectedExcluded",0)+Dm(t,"qLocked",0)+Dm(t,"qLockedExcluded",0)>0}(C);return n.createElement(Ad,{open:c,onClose:w,anchorEl:e.current,anchorOrigin:t,transformOrigin:i,PaperProps:{style:{minWidth:"250px"}}},n.createElement(yo,{container:!0,direction:"column",gap:0,ref:_},n.createElement(yo,{item:!0,container:!0,style:{padding:h.spacing(1)}},n.createElement(yo,{item:!0},y?n.createElement(lo,{onClick:m,disabled:!y,size:"large"},n.createElement(Lc,{title:f.get("Listbox.Unlock")})):n.createElement(lo,{onClick:p,disabled:!x,size:"large"},n.createElement(kc,{title:f.get("Listbox.Lock")}))),n.createElement(yo,{item:!0,xs:!0}),n.createElement(yo,{item:!0},n.createElement(gm,{more:{enabled:!y,actions:S,alignTo:v,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:b,onConfirm:w,onCancel:()=>w(0,"escapeKeyDown")}}))),n.createElement(yo,{item:!0,xs:!0},n.createElement("div",{ref:v}),n.createElement(Lm,{selections:b,model:g,listCount:d,visible:!0}),n.createElement(pp,{model:g,selections:b,direction:"ltr",onSetListCount:e=>u(e)}))))}function qm({field:e,api:t,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=(()=>{})}){const{translator:a}=(0,n.useContext)(jl),l=r||(0,n.useRef)(),c=zt(),[d,u]=(0,n.useState)(!1),h=()=>{u(!1),s()},g=e.selections[i];void 0===g.qTotal&&(g.qTotal=0);const p=g.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},m=(p.qSelected+p.qLocked)/g.qTotal,f=p.qAlternative/g.qTotal,v=(p.qExcluded+p.qLockedExcluded+p.qSelectedExcluded)/g.qTotal,_=p.qSelected+p.qSelectedExcluded+p.qLocked+p.qLockedExcluded,b=0===_&&0===g.qTotal;let C="";g.qTotal===_&&g.qTotal>1?C=a.get("CurrentSelections.All"):_>1&&g.qTotal?C=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(C=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[i]&&(C=`${e.states[i]}: ${C}`);const y=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:v}];y.forEach(((e,t)=>{e.offset=t?y[t-1].offset+y[t-1].ratio:0}));let w=null,S=null,x=null,L=null;return r||(w=n.createElement(yo,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},n.createElement(No,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},g.qField),n.createElement(No,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},C)),g.qLocked?S=n.createElement(yo,{item:!0},n.createElement(lo,{size:"large"},n.createElement(Lc,null))):g.qOneAndOnlyOne||(S=n.createElement(yo,{item:!0},n.createElement(lo,{title:a.get("Selection.Clear"),onClick:n=>{n.stopPropagation(),t.clearField(g.qField,e.states[i])},size:"large"},n.createElement(ar,null)))),x=n.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===b&&y.map((e=>n.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),L=n.createElement(yo,{container:!0,gap:1,ref:l,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&(e=>{e.currentTarget.contains(e.target)&&u(!d)})||null},w,S,x,d&&n.createElement(Im,{alignTo:l,show:d,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}))),r?n.createElement(Im,{alignTo:l,show:!0,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}):L}const Rm=e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current};function Om(e){return(0,vt.Z)("MuiBadge",e)}(0,ft.Z)("MuiBadge",["root","badge","invisible"]);const Tm=["badgeContent","component","children","invisible","max","slotProps","slots","showZero"],Am=n.forwardRef((function(e,t){const{component:n,children:i,max:o=99,slotProps:r={},slots:s={},showZero:a=!1}=e,l=Ps(e,Tm),{badgeContent:c,max:d,displayValue:u,invisible:h}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,r=Rm({badgeContent:t,max:i});let s=n;!1!==n||0!==t||o||(s=!0);const{badgeContent:a,max:l=i}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}(Ms({},e,{max:o})),g=Ms({},e,{badgeContent:c,invisible:h,max:d,showZero:a}),p=(e=>{const{invisible:t}=e,n={root:["root"],badge:["badge",t&&"invisible"]};return(0,ut.Z)(n,Om,void 0)})(g),m=n||s.root||"span",f=ed({elementType:m,externalSlotProps:r.root,externalForwardedProps:l,additionalProps:{ref:t},ownerState:g,className:p.root}),v=s.badge||"span",_=ed({elementType:v,externalSlotProps:r.badge,ownerState:g,className:p.badge});return(0,bt.jsxs)(m,Ms({},f,{children:[i,(0,bt.jsx)(v,Ms({},_,{children:u}))]}))})),Mm=Am,Pm=e=>!e||!pr(e);function Fm(e){return(0,vt.Z)("MuiBadge",e)}const Bm=(0,ft.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Vm=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],zm=(0,mt.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Wm=(0,mt.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,Mt.Z)(n.anchorOrigin.vertical)}${(0,Mt.Z)(n.anchorOrigin.horizontal)}${(0,Mt.Z)(n.overlap)}`],"default"!==n.color&&t[`color${(0,Mt.Z)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),Hm=n.forwardRef((function(e,t){var n,i,o,r,s,a;const l=(0,pt.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:u="span",components:h={},componentsProps:g={},overlap:p="rectangular",color:m="default",invisible:f=!1,max:v,badgeContent:_,slots:b,slotProps:C,showZero:y=!1,variant:w="standard"}=l,S=(0,lt.Z)(l,Vm),x=Rm({anchorOrigin:c,color:m,overlap:p,variant:w});let L=f;!1===f&&(0===_&&!y||null==_&&"dot"!==w)&&(L=!0);const{color:k=m,overlap:E=p,anchorOrigin:N=c,variant:D=w}=L?x:l,I=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:s={}}=e,a={root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${(0,Mt.Z)(n.vertical)}${(0,Mt.Z)(n.horizontal)}`,`anchorOrigin${(0,Mt.Z)(n.vertical)}${(0,Mt.Z)(n.horizontal)}${(0,Mt.Z)(o)}`,`overlap${(0,Mt.Z)(o)}`,"default"!==t&&`color${(0,Mt.Z)(t)}`]};return(0,ut.Z)(a,Fm,s)})((0,ct.Z)({},l,{anchorOrigin:N,invisible:L,color:k,overlap:E,variant:D}));let q;"dot"!==D&&(q=_&&Number(_)>v?`${v}+`:_);const R=null!=(n=null!=(i=null==b?void 0:b.root)?i:h.Root)?n:zm,O=null!=(o=null!=(r=null==b?void 0:b.badge)?r:h.Badge)?o:Wm,T=null!=(s=null==C?void 0:C.root)?s:g.root,A=null!=(a=null==C?void 0:C.badge)?a:g.badge;return(0,bt.jsx)(Mm,(0,ct.Z)({invisible:f,badgeContent:q,showZero:y,max:v},S,{slots:{root:R,badge:O},className:(0,dt.Z)(null==T?void 0:T.className,I.root,d),slotProps:{root:(0,ct.Z)({},T,Pm(R)&&{as:u,ownerState:(0,ct.Z)({},null==T?void 0:T.ownerState,{anchorOrigin:N,color:k,overlap:E,variant:D})}),badge:(0,ct.Z)({},A,{className:(0,dt.Z)(I.badge,null==A?void 0:A.className)},Pm(O)&&{ownerState:(0,ct.Z)({},null==A?void 0:A.ownerState,{anchorOrigin:N,color:k,overlap:E,variant:D})})},ref:t}))})),jm=Hm,Um=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e)),$m="MultiState-item",Km=(0,mt.ZP)(yo)((({theme:e})=>({[`&.${$m}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}})));function Gm({field:e,api:t,moreAlignTo:i=null,onClose:o=(()=>{})}){const[r,s]=(0,n.useState)(!!i),[a,l]=(0,n.useState)(-1),[c,d]=(0,n.useState)(i?i.current:null),u=i||(0,n.useRef)(),{translator:h}=(0,n.useContext)(jl),g=h.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=n.createElement(n.Fragment,null,n.createElement(yo,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(jm,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},n.createElement(No,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.name))),n.createElement(yo,{item:!0},n.createElement("div",{style:{width:"12px"}})),n.createElement(yo,{item:!0},n.createElement(lo,{size:"large"},n.createElement(Um,null)))));const f=n.createElement(gr,{dense:!0},n.createElement(Ir,{title:g,onClick:()=>{e.states.forEach((n=>t.clearField(e.name,n)))}},n.createElement(Ca,{variant:"contained",fullWidth:!0},g)),e.states.map(((i,o)=>n.createElement(Ir,{key:o,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},n.createElement(Nn,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},n.createElement(qm,{field:e,api:t,stateIx:o,skipHandleShowListBoxPopover:!0})))))),v=n.createElement(Ad,{open:r,onClose:()=>{s(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},f),_=i?v:n.createElement(Km,{container:!0,gap:0,className:$m,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),u.current=e.currentTarget,s(!r))}},m,r&&v,a>-1&&n.createElement(Im,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return i&&a>-1?n.createElement(Im,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const Zm="More-item",Qm="More-badge",Ym=(0,mt.ZP)(yo)((({theme:e})=>({[`&.${Zm}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${Qm}`]:{padding:e.spacing(0,1)}})));function Xm({items:e=[],api:t}){const i=zt(),[o,r]=(0,n.useState)(!1),[s,a]=(0,n.useState)(-1),[l,c]=(0,n.useState)(null),d=(0,n.useRef)(),u=()=>{a(-1)};let h=null;return s>-1&&(h=e[s].states.length>1?n.createElement(Gm,{field:e[s],api:t,moreAlignTo:d,onClose:u}):n.createElement(qm,{field:e[s],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:u})),n.createElement(Ym,{container:!0,gap:0,className:Zm,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},n.createElement(yo,{item:!0},n.createElement(Nn,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},n.createElement(No,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),n.createElement(yo,{item:!0},n.createElement(lo,{size:"large"},n.createElement(Um,null))),o&&n.createElement(Ad,{open:o,onClose:()=>{r(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},n.createElement(gr,{dense:!0},e.map(((e,i)=>n.createElement(Ir,{key:i,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,i)},n.createElement(Nn,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?n.createElement(Gm,{field:e,api:t}):n.createElement(qm,{field:e,api:t}))))))),h)}function Jm(e,t,n="$"){e.qSelections.forEach((e=>{const i=e.qField,o=t[i]=t[i]||{name:i,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function ef({api:e,app:t}){const i=zt(),[o]=hc(t),[r]=lc(o),[s,a]=(0,n.useState)({items:[],more:[]}),[l]=Cc(),[c,d]=xc(),[u,h]=(0,n.useState)(0);return(0,n.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-72,n=Math.floor(t/120);h(n)}),[d]),(0,n.useEffect)((()=>{if(!(t&&o&&r&&u))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&Jm(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>Jm(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e]))}(r);a((n=>{const i=e;if((()=>{const e=l.get(t.id);return e&&"njsListbox"===e.genericType})()&&i.length+1===n.items.length){const e=n.items.filter((e=>!1===i.some((t=>e.name===t.name))))[0],{qField:t}=e.selections[0];e.selections=[{qField:t}];const o=n.items.indexOf(e);i.splice(o,0,e)}let o=[];return u<i.length&&(o=i.splice(u-i.length)),{items:i,more:o}}))}),[t,o,r,e.isInModal(),u]),n.createElement(yo,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map((t=>n.createElement(yo,{item:!0,key:`${t.states.join("::")}::${t.name}`,style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},t.states.length>1?n.createElement(Gm,{field:t,api:e}):n.createElement(qm,{field:t,api:e})))),s.more.length>0&&n.createElement(yo,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},n.createElement(Xm,{items:s.more,api:e})))}const tf=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e)),nf=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));function of({api:e,app:t}){const{translator:i}=(0,n.useContext)(jl),[o]=gc(t);return n.createElement(yo,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},n.createElement(yo,{item:!0},n.createElement(lo,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},n.createElement(tf,null))),n.createElement(yo,{item:!0},n.createElement(lo,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},n.createElement(nf,null))),n.createElement(yo,{item:!0},n.createElement(lo,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},n.createElement(Op,null))))}const rf=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function sf([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function af(){return rf.map(sf).join("")}function lf({app:e}){const t=zt(),[i]=wc(e);return i?n.createElement(yo,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"}},n.createElement(yo,{item:!0,style:{borderRight:`1px solid ${t.palette.divider}`}},n.createElement(of,{api:i,app:e})),n.createElement(yo,{item:!0,xs:!0,style:{backgroundColor:t.palette.background.darker,overflow:"hidden"}},n.createElement(ef,{api:i,app:e}))):null}var cf=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},df=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),uf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hf=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},gf=void 0;gf="undefined"!=typeof window?window:"undefined"!=typeof self?self:s.g;var pf=null,mf=null,ff=gf.clearTimeout,vf=gf.setTimeout,_f=gf.cancelAnimationFrame||gf.mozCancelAnimationFrame||gf.webkitCancelAnimationFrame,bf=gf.requestAnimationFrame||gf.mozRequestAnimationFrame||gf.webkitRequestAnimationFrame;null==_f||null==bf?(pf=ff,mf=function(e){return vf(e,20)}):(pf=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,2),n=t[0],i=t[1];_f(n),ff(i)},mf=function(e){var t=bf((function(){ff(n),e()})),n=vf((function(){_f(t),e()}),20);return[t,n]});var Cf=function(e){function t(){var e,n,i;cf(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=hf(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var e=i.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(i._parentNode){var r=i._parentNode.offsetHeight||0,s=i._parentNode.offsetWidth||0,a=window.getComputedStyle(i._parentNode)||{},l=parseInt(a.paddingLeft,10)||0,c=parseInt(a.paddingRight,10)||0,d=parseInt(a.paddingTop,10)||0,u=parseInt(a.paddingBottom,10)||0,h=r-d-u,g=s-l-c;(!t&&i.state.height!==h||!n&&i.state.width!==g)&&(i.setState({height:r-d-u,width:s-l-c}),o({height:r,width:s}))}},i._setRef=function(e){i._autoSizer=e},hf(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),df(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=function(e){var t=void 0,n=void 0,i=void 0,o=void 0,r=void 0,s=void 0,a=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,o=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&pf(this.__resizeRAF__),this.__resizeRAF__=mf((function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,d="";i="animationstart";var u="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g=document.createElement("fakeelement");if(void 0!==g.style.animationName&&(c=!0),!1===c)for(var p=0;p<u.length;p++)if(void 0!==g.style[u[p]+"AnimationName"]){d="-"+u[p].toLowerCase()+"-",i=h[p],c=!0;break}t="@"+d+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=d+"animation: 1ms "+n+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){var d=r.ownerDocument,u=gf.getComputedStyle(r);u&&"static"===u.position&&(r.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var i=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=i:s.appendChild(n.createTextNode(i)),r.appendChild(s)}}(d),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=d.createElement("div")).className="resize-triggers";var h=d.createElement("div");h.className="expand-trigger",h.appendChild(d.createElement("div"));var g=d.createElement("div");g.className="contract-trigger",r.__resizeTriggers__.appendChild(h),r.__resizeTriggers__.appendChild(g),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),i&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(r)},r.__resizeTriggers__.addEventListener(i,r.__resizeTriggers__.__animationListener__))}r.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,i=e.className,o=e.disableHeight,r=e.disableWidth,s=e.style,a=this.state,l=a.height,c=a.width,d={overflow:"visible"},u={},h=!1;return o||(0===l&&(h=!0),d.height=0,u.height=l),r||(0===c&&(h=!0),d.width=0,u.width=c),(0,n.createElement)("div",{className:i,ref:this._setRef,style:uf({},d,s)},!h&&t(u))}}]),t}(n.PureComponent);Cf.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const yf=Cf,wf="ListBoxInline-listBoxHeader",Sf="ListBoxInline-screenReaderOnly",xf=(0,mt.ZP)(yo)((({theme:e})=>({backgroundColor:e.listBox?.backgroundColor??e.palette.background.default,[`& .${wf}`]:{alignSelf:"center",display:"inline-flex"},[`& .${Sf}`]:{position:"absolute",height:0,width:0,overflow:"hidden"}}))),Lf=(0,mt.ZP)(No)((({theme:e})=>({color:e.listBox?.title?.main?.color,fontSize:e.listBox?.title?.main?.fontSize,fontFamily:e.listBox?.title?.main?.fontFamily})));function kf({options:e={}}){const{direction:t,frequencyMode:i,listLayout:o,checkboxes:r,search:s=!0,focusSearch:a=!1,rangeSelect:l=!0,model:c,selections:d,update:u,fetchStart:h,selectDisabled:g=(()=>!1),postProcessPages:p,calculatePagesHeight:m,showGray:f=!0,scrollState:v}=e;let{toolbar:_=!0}=e;const b=zt(),C=(0,n.useCallback)((()=>{c.unlock("/qListObjectDef")}),[c]),{translator:y,keyboardNavigation:w,themeApi:S}=(0,n.useContext)(jl);b.listBox=(e=>{const t=t=>e.getStyle("object","",`listBox.${t}`);return{backgroundColor:t("backgroundColor"),title:{main:{color:t("title.main.color"),fontSize:t("title.main.fontSize"),fontFamily:t("title.main.fontFamily")}},content:{color:t("content.color"),fontSize:t("content.fontSize"),fontFamily:t("content.fontFamily")}}})(S);const x=(0,n.useRef)(),[L,k]=(()=>{const[e,t]=(0,n.useState)({});return[e,(0,n.useCallback)((e=>{t({current:e})}),[t])]})(),[E]=lc(c),[N,D]=(0,n.useState)(!1),[I,q]=(0,n.useState)(!1),[R,O]=(0,n.useState)(!1),T=function({setKeyboardActive:e}){return t=>{const{keyCode:n}=t.nativeEvent;switch(n){case Wu.ENTER:case Wu.SPACE:if(!t.target.classList.contains("listbox-container"))return;(t=>{const n=t.querySelector(".search input, .value.selector, .value, .ActionsToolbar-* button");e(!0),n&&n.focus()})(t.currentTarget);break;case Wu.ESCAPE:i=t.currentTarget,e(!1),i.focus();break;default:return}var i;t.preventDefault()}}({setKeyboardActive:O}),A={enabled:w,active:R};if(void 0!==E?.toolbar&&(_=E.toolbar),(0,n.useEffect)((()=>{const e=()=>{D(!0),"inSelection"===s&&q(!0)},t=()=>{D(!1),"toggle"!==s&&"inSelection"!==s||q(!1)};return d&&(d.isModal()||(d.on("deactivated",t),d.on("activated",e)),D(d.isActive())),()=>{d&&d.removeListener&&(d.removeListener("deactivated",e),d.removeListener("activated",t))}}),[d]),(0,n.useEffect)((()=>{if(L&&L.current&&(s&&a||"toggle"===s&&I)){const e=L.current.querySelector("input");e&&e.focus()}}),[L&&L.current,I,s,a]),!c||!E||!y)return null;const M=!0===E.qListObject.qDimensionInfo.qLocked,P=_?bp({layout:E,model:c,translator:y}):[],F=(!0===s||("toggle"===s||"inSelection"===s)&&I)&&!g(),B=E.layoutOptions?.dense??!1,V=49+(F?B?27:40:0)+(B?39:49),{wildCardSearch:z,searchEnabled:W}=E;return n.createElement(xf,{className:"listbox-container",container:!0,tabIndex:A.enabled&&!A.active?0:-1,direction:"column",gap:0,style:{height:"100%",minHeight:`${V}px`,flexFlow:"column nowrap"},onKeyDown:T},_&&E.title&&n.createElement(yo,{item:!0,container:!0,style:{padding:b.spacing(1)}},n.createElement(yo,{item:!0,sx:{display:"flex",alignItems:"center"}},M?n.createElement(lo,{tabIndex:-1,onClick:C,disabled:!M,size:"large"},n.createElement(Lc,{title:y.get("Listbox.Unlock"),style:{fontSize:"12px"}})):!1!==W&&n.createElement(lo,{onClick:()=>{q(!I)},tabIndex:-1,title:y.get("Listbox.Search"),size:"large"},n.createElement(ym,{style:{fontSize:"12px"}}))),n.createElement(yo,{item:!0,className:wf},n.createElement(Lf,{variant:"h6",noWrap:!0},E.title)),n.createElement(yo,{item:!0,xs:!0}),n.createElement(yo,{item:!0},n.createElement(gm,{more:{enabled:!M,actions:P,alignTo:x,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:N,api:d,onConfirm:()=>{},onCancel:()=>{}}}))),n.createElement(yo,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:`${V}px`},role:"region","aria-label":y.get("Listbox.ResultFilterLabel")},n.createElement(yo,{item:!0,ref:k},n.createElement("div",{className:Sf},y.get("Listbox.Search.ScreenReaderInstructions")),n.createElement(Lm,{selections:d,model:c,dense:B,keyboard:A,visible:F,searchContainerRef:k,wildCardSearch:z,searchEnabled:W})),n.createElement(yo,{item:!0,xs:!0},n.createElement("div",{ref:x}),n.createElement("div",{className:Sf},y.get("Listbox.ScreenReaderInstructions")),n.createElement(yf,null,(({height:e,width:s})=>n.createElement(pp,{model:c,selections:d,direction:t,listLayout:o,frequencyMode:i,rangeSelect:l,checkboxes:r,height:e,width:s,update:u,fetchStart:h,postProcessPages:p,calculatePagesHeight:m,selectDisabled:g,keyboard:A,showGray:f,scrollState:v}))))))}const Ef=(e={})=>{const{__DO_NOT_USE__:t={},...n}=e;return{...n,update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1,...t}};function Nf({app:e,fieldIdentifier:t,qId:i,stateName:o,element:r,options:s}){const{isExistingObject:a,hasExternalSelectionsApi:l}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:s}),[c,d]=(0,n.useState)(0);(0,n.useEffect)((()=>{if(c)throw new Error("Source or selection Api can not change after a listbox has been mounted");d(c+1)}),[a,l]);const u=a?function({app:e,qId:t,options:i={}}){const[o,r]=(0,n.useState)(),[s]=oc(),{sessionModel:a}=i,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(i).filter((e=>l.includes(e)));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,n.useEffect)((()=>{a?r(a):async function(){const n=s.get(t);if(n)r(n);else{const n=await e.getObject(t);s.set(n.id,n),r(n)}}()}),[]),o}({app:e,qId:i,options:s}):function({app:e,fieldIdentifier:t,stateName:i,options:o={}}){const[r,s]=(0,n.useState)(""),[a,l]=(0,n.useState)(!0),[c,d]=(0,n.useState)();(0,n.useEffect)((()=>{const n=o.histogram||"N"!==o.frequencyMode;t.qLibraryId&&n?async function(){try{const n=await e.getDimension(t.qLibraryId),i=await n.getLayout();s(i.qDim.qFieldDefs?i.qDim.qFieldDefs[0]:""),l(!1)}catch(e){throw l(!1),s({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():l(!1)}),[]);const{title:u,dense:h,checkboxes:g,properties:p={}}=o;let{frequencyMode:m,histogram:f=!1}=o;switch(r&&r.failedToFetchFieldDef&&(f=!1,m="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(m):m="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(m):m="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(m):m="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(m):m="R";break;default:m="N"}const v={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:i,qShowAlternatives:!0,qFrequencyMode:f&&"N"===m?"V":m,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:f,checkboxes:g,layoutOptions:{dense:h},title:u};let _;if(ql()(!0,v,p),t.qLibraryId?(v.qListObjectDef.qLibraryId=t.qLibraryId,_=t.qLibraryId):(v.qListObjectDef.qDef.qFieldDefs=[t],_=t),"N"!==m||f){const e=t.qLibraryId?r:_;v.frequencyMax={qValueExpression:`Max(AGGR(Count([${e}]), [${e}]))`}}const[b]=dc(v,a?null:e,_,i);return(0,n.useEffect)((()=>{b&&d(b)}),[b]),c}({app:e,fieldIdentifier:t,stateName:o,options:s}),h=(0,n.useRef)(r),g=l?s.selectionsApi:Nm(e,u,h,s)[0];if(!g||!u)return null;const p={...s,selections:g,model:u};return n.createElement(kf,{options:p})}const Df={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function If({app:e,fieldIdentifier:t,stateName:i,element:o,options:r={}}){const[s,a]=(0,n.useState)(!!r.show);return n.createElement(Im,{show:s,app:e,alignTo:{current:o},anchorOrigin:r.anchorOrigin,transformOrigin:r.transformOrigin,close:()=>{a(!1),r.onPopoverClose&&r.onPopoverClose()},fieldName:t,stateName:i})}function qf(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Rf(e,t){let n=0;for(let i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n}function Of({dc:e,def:t,properties:n}){e.qDimensions=e.qDimensions||[],e.qMeasures=e.qMeasures||[],e.qInterColumnSortOrder=e.qInterColumnSortOrder||[],e.qInitialDataFetch=e.qInitialDataFetch||[],e.qColumnOrder=e.qColumnOrder||[],e.qExpansionState=e.qExpansionState||[];const i=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const r="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return r.qDef.cId=r.qDef.cId||af(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(r),qf(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return Rf(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const r="string"==typeof n?{qDef:{qDef:n}}:{...n,qDef:n.qDef||{}};r.qDef.cId=r.qDef.cId||af(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(r),qf(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];Rf(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,i,n)},maxDimensions:()=>t.dimensions.max(e.qMeasures.length),maxMeasures:()=>t.measures.max(e.qDimensions.length),canAddDimension:()=>e.qDimensions.length<o.maxDimensions(),canAddMeasure:()=>e.qMeasures.length<o.maxMeasures()};return o}const Tf=(e,t,n)=>{if(null==e||null==t)return n;const i=t.split(".");let o=e;for(let e=0;e<i.length;++e){const t=i[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},Af=(e,t,n)=>{if(null==e||null==t)return;const i=t.split("."),o=i[i.length-1];let r=e;for(let e=0;e<i.length-1;++e){const t=i[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+i[e+1])?{}:[]),r=r[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?r[o]=n:delete r[o]},Mf=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let i=0;i<t.length;i++){const o=e.indexOf(t[i]);if(n>o)return!1;n=o}return!0}return!1},Pf=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},Ff=function(e,t){let n,i=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i},Bf=2**53-1;function Vf(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function zf(e,t){const n=ql()(!0,{},t,e);return Tf(n,"qOtherTotalSpec.qOtherCounted")||Af(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Tf(n,"qOtherTotalSpec.qOtherLimit")||Af(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Wf(e,t){return ql()(!0,{},t,e)}function Hf(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const jf={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===Tf(e,t)&&Af(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:Vf,importCommonProperties:function(e,t,n){const i="masterobject"===Tf(t,"properties.qInfo.qType")?"masterobject":Tf(n,"qInfo.qType");Af(e,"qInfo.qType",i),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,i){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=i},createDefaultDimension:zf,createDefaultMeasure:Wf,resolveValue:Hf,getHypercubePath:function(e){const t=Tf(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function({exportFormat:e,newHyperCubeDef:t}){const n=e.data[0],i=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==i)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==i;)o<i?(Pf(t.qInterColumnSortOrder,o),++o):(--o,Ff(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach((o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(i.qLayoutExclude.quarantine=ql()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?Af(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||Vf(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]})),i=ql()(!0,{},t,i),null===i.components&&(i.components=[]),i},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],i=t.dimensions||{max:0},o=t.measures||{max:0},r=Hf(o.max,n.dimensions.length,Bf),s=Hf(o.min,n.dimensions.length,0);return{maxDimensions:Hf(i.max,r,Bf),minDimensions:Hf(i.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>i&&i>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>n||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!i&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:r}){const s=e.data[0];r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.qHyperCubeDef||(r.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>t&&t>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&s.dimensions.length&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)i.qDimensions.length<t?i.qDimensions.push(zf(r.dimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(zf(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(zf(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)i.qDimensions.length<n?i.qDimensions.push(zf(r.excludedDimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(zf(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)i.qMeasures.length<t?i.qMeasures.push(Wf(r.measures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Wf(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Wf(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)i.qMeasures.length<n?i.qMeasures.push(Wf(r.excludedMeasures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Wf(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=Tf(e,n||"").qHyperCubeDef,o=[...i.qDimensions];i.qDimensions=[],o.forEach((n=>{i.qDimensions.push(n),t.dimensions.added(n,e)}))}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.measures&&"function"==typeof t.measures.added){const i=Tf(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach((n=>{i.qMeasures.push(n),t.measures.added(n,e)}))}}},Uf={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const n=function(e=1){const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),i=e.qProperty,o=Tf(i,t||""),r=o.qHyperCubeDef,s=n.data[0];if(r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),s.dimensions.push(...r.qDimensions),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...r.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...r.qMeasures),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...r.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=r.qInterColumnSortOrder.concat(),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();Mf(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.qLayoutExclude,Object.keys(i).forEach((e=>{n.properties[e]=i[e]})),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.disabled&&(Object.keys(i.qLayoutExclude.disabled).forEach((e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=i.qLayoutExclude.disabled[e])})),delete i.qLayoutExclude.disabled),i.qLayoutExclude.changed&&(jf.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&(a=i.qLayoutExclude.quarantine,!(0===Object.keys(a).length&&a.constructor===Object))||delete i.qLayoutExclude,n;var a}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const r={qChildren:[]},s=jf.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=Tf(t,o||"").qHyperCubeDef,l=Tf(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h}=jf.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=jf.getDefaultDimension(),defaultMeasure:p=jf.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,jf.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h})&&jf.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h,newHyperCubeDef:l}),jf.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),jf.addDefaultMeasures({exportFormat:e,maxMeasures:u,minMeasures:h,newHyperCubeDef:l,defaultMeasure:p}),jf.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),jf.copyPropertyIfExist("qMaxStackedCells",a,l),jf.copyPropertyIfExist("qNoOfLeftDims",a,l),jf.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),jf.copyPropertyOrSetDefault("qMode",a,l,"S"),jf.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),jf.copyPropertyOrSetDefault("qSortbyYValue",a,l),jf.copyPropertyOrSetDefault("qIndentMode",a,l),jf.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),jf.importCommonProperties(s,e,t),jf.updateDimensionsOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),jf.updateMeasuresOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),r.qProperty=s,r}(e)},$f=e=>Tf(e,"data.targets.0.propertyPath"),Kf={hypercube:Uf};function Gf(e){return(0,vt.Z)("MuiIcon",e)}(0,ft.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Zf=["baseClassName","className","color","component","fontSize"],Qf=(0,mt.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,Mt.Z)(n.color)}`],t[`fontSize${(0,Mt.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),Yf=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium"}=n,l=(0,lt.Z)(n,Zf),c=(0,ct.Z)({},n,{baseClassName:i,color:r,component:s,fontSize:a}),d=(e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root","inherit"!==t&&`color${(0,Mt.Z)(t)}`,`fontSize${(0,Mt.Z)(n)}`]};return(0,ut.Z)(o,Gf,i)})(c);return(0,bt.jsx)(Qf,(0,ct.Z)({as:s,className:(0,dt.Z)(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))}));Yf.muiName="Icon";const Xf=Yf,Jf=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function ev({d:e}){const t=zt();let i="inherit",o=t.palette.success.main;e.missing?o=t.palette.warning.main:e.error&&(i="error",o=t.palette.error.main);const r={color:o},s=n.createElement(No,{style:{lineHeight:"30px",paddingRight:t.spacing(1)}},n.createElement(Xf,null,e.missing||e.error?n.createElement(Jf,{style:r}):n.createElement(Yd,{style:r})));return n.createElement(yo,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},n.createElement(yo,{item:!0},s),n.createElement(yo,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},n.createElement(No,{noWrap:!0,component:"p"},n.createElement(No,{component:"span",variant:"subtitle2",color:i},e.description),n.createElement(No,{component:"span"}," "),n.createElement(No,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function tv({data:e}){const t=zt();return n.createElement(yo,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,i)=>{const o=e.descriptions.map(((e,t)=>n.createElement(ev,{d:e,key:t})));return o.length>0&&n.createElement(yo,{container:!0,item:!0,key:i,direction:"column",style:{paddingBottom:t.spacing(2)}},n.createElement(No,{noWrap:!0,key:i,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function nv({title:e="Error",message:t="",data:i=[]}){return n.createElement(yo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},n.createElement(yo,{item:!0},n.createElement(Jf,{style:{fontSize:"38px"}})),n.createElement(yo,{item:!0},n.createElement(No,{variant:"h6",align:"center","data-tid":"error-title"},e)),n.createElement(yo,{item:!0},n.createElement(No,{variant:"subtitle1",align:"center","data-tid":"error-message"},t)),n.createElement(tv,{data:i}))}function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},iv.apply(this,arguments)}const ov="Progress-root",rv="Progress-front",sv="Progress-back",av=(0,mt.ZP)("div")((({theme:e})=>({[`&.${ov}`]:{position:"relative",display:"inline-block"},[`& .${rv}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${sv}`]:{color:e.palette.divider}}))),lv={small:16,medium:32,large:64,xlarge:128};function cv({size:e="medium",...t}){const i=lv[e];return n.createElement(av,{className:ov},n.createElement(Ha,iv({variant:"determinate",value:100,className:sv,size:i,thickness:3},t)),n.createElement(Ha,iv({variant:"indeterminate",disableShrink:!0,className:rv,size:i,thickness:3},t)))}function dv(){return dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},dv.apply(this,arguments)}const uv={stripes:"LongRunningQuery-stripes"},hv=(0,mt.ZP)(yo)((()=>({[`& .${uv.stripes}`]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function gv({cancel:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(hv,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},n.createElement(yo,{item:!0},n.createElement(cv,null)),n.createElement(yo,{item:!0},n.createElement(No,{variant:"h6",align:"center","data-tid":"update-active"},t.get("Object.Update.Active")))),n.createElement(yo,dv({item:!0},i),n.createElement(Ca,{variant:"contained",onClick:e},t.get("Cancel"))))}function pv({retry:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(yo,{item:!0},n.createElement(Jf,{style:{fontSize:"38px"}})),n.createElement(yo,{item:!0},n.createElement(No,{variant:"h6",align:"center","data-tid":"update-cancelled"},t.get("Object.Update.Cancelled"))),n.createElement(yo,{item:!0},n.createElement(Ca,dv({variant:"contained",onClick:e},i),t.get("Retry"))))}function mv({canCancel:e,canRetry:t,api:i}){const{translator:o}=(0,n.useContext)(jl);return n.createElement(yo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:uv.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&n.createElement(gv,{cancel:i.cancel,translator:o,className:uv.cancel}),t&&n.createElement(pv,{retry:i.retry,translator:o,className:uv.retry}))}function fv(){return n.createElement(yo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n.createElement(cv,{size:"large"}))}const vv="Header-containerStyle",_v="Header-containerTitleStyle",bv=(0,mt.ZP)(yo)((({theme:e})=>({[`&.${vv}`]:{flexGrow:0},[`&.${_v}`]:{paddingBottom:e.spacing(1)}}))),Cv=function({layout:e,sn:t,anchorEl:i,hovering:o,focusHandler:r}){const s=e.showTitles&&!!e.title,a=e.showTitles&&!!e.subtitle,l=e.qSelectionInfo&&e.qSelectionInfo.qInSelections,[c,d]=(0,n.useState)([]),[u,h]=xc(),[g,p]=(0,n.useState)(!1);(0,n.useEffect)((()=>{t&&t.component&&t.component.isHooked&&t.component.observeActions((e=>{d([...e,...t&&t.selectionToolbar&&t.selectionToolbar.items||[]])}))}),[t]),(0,n.useEffect)((()=>{if(!h)return;const{width:e}=h;p(e<221)}),[h]);const m=s||a,f=[vv,...m?[_v]:[]],v=(o||l)&&(g||!m),_=m&&!v&&!g,b=n.createElement(gm,{show:_,selections:{show:l,api:t.component.selections,onKeyDeactivate:r.refocusContent},actions:c,popover:{show:v,anchorEl:i},focusHandler:r});return n.createElement(bv,{ref:u,item:!0,container:!0,wrap:"nowrap",className:f.join(" ")},n.createElement(yo,{item:!0,zeroMinWidth:!0,xs:!0},n.createElement(yo,{container:!0,wrap:"nowrap",direction:"column"},s&&n.createElement(No,{variant:"h6",noWrap:!0,className:"njs-cell-title"},e.title),a&&n.createElement(No,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title"},e.subtitle))),n.createElement(yo,{item:!0},b))},yv="Footer-itemStyle",wv=(0,mt.ZP)(yo)((({theme:e})=>({[`& .${yv}`]:{minWidth:0,paddingTop:e.spacing(1)}}))),Sv=function({layout:e}){return e&&e.showTitles&&e.footnote?n.createElement(wv,{container:!0},n.createElement(yo,{item:!0,className:yv},n.createElement(No,{noWrap:!0,variant:"body2",className:"njs-cell-footer"},e.footnote))):null};class xv{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout((()=>{this.doNext()}),10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const Lv=function({sn:e,snOptions:t,snPlugins:i,layout:o,appLayout:r,halo:s}){const{component:a}=e,{theme:l,language:c,constraints:d,keyboardNavigation:u}=(0,n.useContext)(jl),[h]=(0,n.useState)((()=>new xv)),[g,p]=(0,n.useState)(!1),[m,f]=(0,n.useState)(0),[v,_,b]=xc(),[C,y]=(0,n.useState)(null),w=(0,n.useCallback)((e=>{e&&y(e)}),[]);return(0,n.useEffect)((()=>{if(C)return a.created({options:t}),a.mounted(C),p(!0),()=>{h.stop(),a.willUnmount()}}),[C,a]),(0,n.useEffect)((()=>{g&&C&&_&&(!a.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const n=[];return d.passive||n.push("passive"),d.active||n.push("interact"),d.select||n.push("select"),s.app&&s.app.session&&n.push("fetch"),Promise.resolve(a.render({layout:o,options:t,plugins:i,embed:s.public.nebbie,context:{constraints:d,theme:s.public.theme,appLayout:r,keyboardNavigation:u,...a.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:n}}})).then((e=>{!1!==e&&(0===m&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),f(m+1))}))})))}),[_,t,i,C,b,o,r,l,c,d,g,u]),n.createElement("div",{ref:v,"data-render-count":m,style:{position:"relative",height:"100%"},className:"njs-viz"},n.createElement("div",{ref:w,style:{position:"absolute",width:"100%",height:"100%"}}))},kv={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Ev={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};const Nv=(e,t)=>{const n=e?.bgImage;if(n){let i="";"media"!==n.mode&&"media"!==e.useImage||(i=n?.mediaUrl?.qStaticContentUrl?.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=function(e,t){return t?function(e){let t,n,i,o;if(e?.session?.config)return t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://",i+n.host}(e)+t:void 0}(t,i)),"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){let t="center center";return e?.bgImage?.position&&(t=Ev[e.bgImage.position]),t}(e),r=function(e){let t=kv.originalSize;return e?.bgImage?.sizing&&(t=kv[e.bgImage.sizing]),t}(e);return i?{url:i,pos:o,size:r}:void 0}},Dv=(e,t)=>{const n=e?.bgColor;if(n&&t)return n.useExpression?t.validateColor(n.colorExpression):n.color&&"none"!==n.color.color?t.getColorPickerColor(n.color,!0):void 0},Iv=(e,t)=>{switch(t.type){case"LOADING":return{...e,loading:!0};case"LOADED":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization};case"RENDER":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null};case"LONG_RUNNING_QUERY":return{...e,longRunningQuery:!0};case"ERROR":return{...e,loading:!1,longRunningQuery:!1,error:t.error};default:throw new Error(`Unhandled type: ${t.type}`)}};function qv({delay:e=750}){const[t,i]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const t=setTimeout((()=>i(!0)),e);return()=>clearTimeout(t)}),[]),t?n.createElement(fv,null):null}const Rv=e=>!e.qError||7005===e.qError.qErrorCode,Ov=(e,t,n,i,o)=>[...Array(e).keys()].map((e=>{const r=!(!t||!t[e]),s=r&&t[e].qError&&7005===t[e].qError.qErrorCode,a=r&&!s&&t[e].qError,l=s&&t[e].qCalcCondMsg,c=`${a?i:s?l||o:r&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}})),Tv=e=>e&&(Array.isArray(e)?e:[e])||[],Av=(e,t,n,i)=>{const o=i.dimensions.min(),r=i.measures.min(),s=i.resolveLayout(t);return{reqDimErrors:Ov(o,Tv(s.qDimensionInfo),(e=>i.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Ov(r,Tv(s.qMeasureInfo),(e=>i.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Mv=(0,n.forwardRef)((({halo:e,model:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,currentId:a},l)=>{const{app:c,types:d}=e,{nebbie:u}=e.public,{disableCellPadding:h=!1}=e.context||{},{theme:g,translator:p,language:m,keyboardNavigation:f}=(0,n.useContext)(jl),v=zt(),[_,b,C]=xc(),[y,w]=(0,n.useReducer)(Iv,{loading:!1,loaded:!1,longRunningQuery:!1,error:(S=r)?{title:S.message}:null,sn:null,visualization:null});var S;const[x,{validating:L,canCancel:k,canRetry:E},N]=lc(t),[D]=cc(c),[I,q,R]=xc(),[O,T]=(0,n.useState)(i),[A,M]=(0,n.useState)(o),P=`njs-cell-${a}`,[F]=Nm(c,t,[`#${P}`,".njs-action-toolbar-popover"]),[B,V]=(0,n.useState)(!1),z=(0,n.useRef)({enter:null,leave:null}),[W,H]=(0,n.useState)(void 0),[j,U]=(0,n.useState)(void 0),$=(0,n.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,n.useEffect)((()=>{km($.current)}),[]),(0,n.useEffect)((()=>{const t=x?.components?x.components.find((e=>"general"===e.key)):null;H(Dv(t,e.public.theme)),U(Nv(t,e.app))}),[x,e.public.theme,e.app,g]),$.current.blurCallback=t=>{e.root.toggleFocusOfCells(),t&&R&&R.focus()},$.current.refocusContent=()=>{y.sn.component&&"function"==typeof y.sn.component.focus&&y.sn.component.focus()},(0,n.useEffect)((()=>{if(r||!D||!x)return;if(y.visualization===x.visualization&&y.sn)return void(async e=>{const[n,i]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,r=0,s=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],u=d.dimensions.min(),h=d.measures.min(),g=d.resolveLayout(n),p=Tv(g.qDimensionInfo).filter(Rv),m=Tv(g.qMeasureInfo).filter(Rv);if(o+=u,r+=h,(p.length<u||m.length<h)&&(i=!0),g.qError){s=!0,a=7005===g.qError.qErrorCode;const t=a&&g.qCalcCondMsg?g.qCalcCondMsg:a?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:i,aggMinD:o,aggMinM:r,hasLayoutErrors:s,layoutErrors:l}})(e,n,t),c=[],d=[];let u=null;for(let r=0;r<n.length;++r){const s=n[r];if(!a&&o){const n=u||await i.getProperties();u=n;const o=Av(e,t,n,s);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=c.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Dimensions",[h,r]),p=d.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Measures",[p,s]),f=[{title:g,descriptions:[...c]},{title:m,descriptions:[...d]}],v=a?l:f;return[a||o,{title:a?l[0].title:e.get("Visualization.Incomplete"),data:v}]})(p,x,e.generator.qae.data,t);w(n?{type:"ERROR",error:i}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const i=e&&e.component&&e.component.selections;if(i&&i.id&&n.id&&i.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!i.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;i.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||i.isModal()&&i.noModal()}})({sn:y.sn,layout:x,model:t})})(y.sn);const e=d.getSupportedVersion(x.visualization,x.version);if(e)return(async(e,n)=>{w({type:"LOADING"});const i=await(async({dispatch:e,types:t,visualization:n,version:i,model:o,app:r,selections:s,nebbie:a,focusHandler:l})=>{try{const e=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:i});return e.create({model:o,app:r,selections:s,nebbie:a,focusHandler:l})}catch(t){e({type:"ERROR",error:{title:t.message}})}})({dispatch:w,types:d,visualization:e,version:n,model:t,app:c,selections:F,nebbie:u,focusHandler:$.current});i&&(w({type:"LOADED",sn:i,visualization:e}),s())})(x.visualization,e),()=>{};w({type:"ERROR",error:{title:`Could not find a version of '${x.visualization}' that supports current object version. Did you forget to register ${x.visualization}?`}})}),[d,y.sn,t,F,x,D,m]),(0,n.useEffect)((()=>{if(!L)return;const e=setTimeout((()=>w({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[L]),(0,n.useImperativeHandle)(l,(()=>({getQae:()=>y.sn.generator.qae,toggleFocus(e){"function"==typeof y.sn.component.focus&&(e?y.sn.component.focus():y.sn.component.blur())},setSnOptions:T,setSnPlugins:M,async takeSnapshot(){const{width:e,height:t}=b;let n=JSON.parse(JSON.stringify(x));return"function"==typeof y.sn.component.setSnapshotData&&(n=await y.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:p.language(),theme:v.name,appLayout:D,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)}})),[y.sn,q,b,x,v.name,D]);let K=null;return y.loading&&!y.longRunningQuery?K=n.createElement(qv,null):y.error?K=n.createElement(nv,y.error):y.loaded&&(K=n.createElement(Lv,{key:x.visualization,sn:y.sn,halo:e,snOptions:O,snPlugins:A,layout:x,appLayout:D})),n.createElement(xd,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:W||"unset",backgroundImage:j&&j.url?`url(${j.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:j&&j.size,backgroundPosition:j&&j.pos},elevation:0,square:!0,className:"njs-cell",ref:_,id:P,onMouseEnter:()=>{z.current.leave&&clearTimeout(z.current.leave),z.enter||(z.current.enter=setTimeout((()=>{V(!0),z.current.enter=null}),250))},onMouseLeave:()=>{z.current.enter&&clearTimeout(z.current.enter),z.current.leave||(z.current.leave=setTimeout((()=>{V(!1),z.current.leave=null}),750))}},n.createElement(yo,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...h?{}:{padding:v.spacing(1)},...y.longRunningQuery?{opacity:"0.3"}:{}}},C&&x&&y.sn&&n.createElement(Cv,{layout:x,sn:y.sn,anchorEl:C,hovering:B,focusHandler:$.current}," "),n.createElement(yo,{tabIndex:f?0:-1,onKeyDown:f?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,item:!0,xs:!0,style:{height:"100%"},ref:I},K),n.createElement(Sv,{layout:x})),y.longRunningQuery&&n.createElement(mv,{canCancel:k,canRetry:E,api:N}))}));function Pv(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Fv(e="/",t,n){const i=[];return Object.keys(t).forEach((o=>{const r=t[o];var s,a;"object"!=typeof n[o]||"object"!=typeof r||Array.isArray(r)?(s=r,a=n[o],(Pv(s)&&Pv(a)?JSON.stringify(s)===JSON.stringify(a):!Array.isArray(s)&&!Array.isArray(a)&&s===a)||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):i.push(...Fv(`${e}${o}/`,t[o],n[o]))})),i}function Bv(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error(`Invalid plugin format: The plugin "${e.info.name}" has no "fn" function`)}))}const Vv=()=>{};function zv({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=Vv,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h={id:e.id,model:e,async destroy(){await o(),r(),r=Vv},async convertTo(n,i=!0){const o=await(async({halo:e,model:t,cellRef:n,newType:i})=>{const o=await t.getFullPropertyTree(),r=n.current.getQae(),s=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Uf.exportProperties})($f(e)))(r),a=await(async({halo:e,name:t,version:n})=>{const{types:i}=e;return await i.get({name:t,version:n}).supernova()})({halo:e,name:i}),l=a.qae;return(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Uf.importProperties})($f(e)))(l)({exportFormat:s({propertyTree:o,hypercubePath:jf.getHypercubePath(r)}),initialProperties:{qInfo:{qType:i},visualization:i,...Tf(l,"properties.initial",{})},dataDefinition:Tf(l,"data.targets.0.",{}),hypercubePath:jf.getHypercubePath(l)})})({halo:t,model:e,cellRef:s,newType:n});return i&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a}){const{root:l}=e,c=n.createRef(),d=af(),u=Fo.createPortal(n.createElement(Mv,{ref:c,halo:e,model:i,currentId:d,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s}),t,d),h=()=>{l.remove(u),i.removeListener("closed",h)};return i.on("closed",h),l.add(u),l.addCell(d,c),[h,c]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l}),c},async applyProperties(t){const n=Fv("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{Bv(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage:()=>s.current.exportImage(),takeSnapshot:()=>s.current.takeSnapshot(),getModel:()=>e}};return h}async function Wv(e,t,n,i,o=(async()=>{})){const r=zv({model:e,halo:n,initialError:i,onDestroy:o});return t.options&&r.__DO_NOT_USE__.options(t.options),t.plugins&&r.__DO_NOT_USE__.plugins(t.plugins),t.element&&await r.__DO_NOT_USE__.mount(t.element),r}const Hv=function({model:e,halo:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}){const{root:a}=t,[l]=lc(e),{theme:c}=(0,n.useContext)(jl),[d,u]=(0,n.useState)([]),[h,g]=(0,n.useState)(void 0),[p,m]=(0,n.useState)(void 0),[f,v]=(0,n.useState)("");(0,n.useEffect)((()=>{if(l){const e=JSON.stringify(l.cells);if(e===f)return;v(e);const i=async()=>{d.forEach((e=>{a.removeCell(e.currentId)}));const e=l.cells,i=await Promise.all(e.map((async e=>{let i;const o=new Promise((e=>{i=e})),r=d.find((t=>t.id===e.name));if(r)return r.bounds=e.bounds,delete r.mountedPromise,r;const s=await async function({id:e,options:t,plugins:n,element:i},o){const r=`${e}`;let s=Jl.get(r);s||(s=o.app.getObject(e),Jl.set(r,s));const a=await s;return rc.set(r,a),Wv(a,{options:t,plugins:n,element:i},o)}({id:e.name},t);return{model:s.model,id:e.name,bounds:e.bounds,cellRef:n.createRef(),currentId:af(),mounted:i,mountedPromise:o}})));i.forEach((e=>a.addCell(e.currentId,e.cellRef))),u(i)};i()}}),[l]);const _=(0,n.useMemo)((()=>d?d.map((e=>function(e,t,i,o,r,s){const{x:a,y:l,width:c,height:d}=e.bounds;return n.createElement("div",{style:{left:`${a}%`,top:`${l}%`,width:`${c}%`,height:`${d}%`,position:"absolute"}},n.createElement(Mv,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}))}(e,t,i,o,r,e.mounted))):[]),[d]);(0,n.useEffect)((()=>{const e=l?.components?l.components.find((e=>"general"===e.key)):null;g(Dv(e,t.public.theme)),m(Nv(e,t.app))}),[l,t.public.theme,t.app,c]);const b=!l||Number.isNaN(l.height)?"100%":`${Number(l.height)}%`,C=d.map((e=>e.mountedPromise));return C.filter((e=>!!e)).length&&Promise.all(C).then((()=>{s()})),n.createElement("div",{className:"njs-sheet",style:{width:"100%",height:b,position:"relative",backgroundColor:h,backgroundImage:p&&p.url?`url(${p.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:p&&p.size,backgroundPosition:p&&p.pos}},_)},jv=()=>{};async function Uv({id:e,options:t,plugins:i,element:o},r){const s=`${e}`;let a=Jl.get(s);a||(a=r.app.getObject(e),Jl.set(s,a));const l=await a;return rc.set(s,l),"sheet"===l.genericType?async function(e,t,i,o,r=(async()=>{})){const s=function({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=jv,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h={id:e.id,model:e,async destroy(){await o(),r(),r=jv},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a}){const{root:l}=e,c=n.createRef(),d=Fo.createPortal(n.createElement(Hv,{ref:c,halo:e,model:i,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s}),t,i.id),u=()=>{l.remove(d),i.removeListener("closed",u)};return i.on("closed",u),l.add(d),[u,c]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l}),c},async applyProperties(t){const n=Fv("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{Bv(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}({model:e,halo:i,initialError:void 0,onDestroy:r});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}(l,{options:t,plugins:i,element:o},r):Wv(l,{options:t,plugins:i,element:o},r)}function $v(e={}){return{isEnabled:t=>!0===e[t]}}const Kv=ql().bind(null,!0),Gv={},{isArray:Zv}=Array;function Qv(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Yv(e){return void 0===e}function Xv(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Jv(e,t){const n=t.substring(1).split("/").slice(0,-1);let i;return n.forEach(((t,o)=>{if(o===n.length)return;i=+t;const r=isNaN(i)?{}:[];e[i||t]=Yv(e[i||t])?r:e[t],e=e[i||t]})),e}function e_(e,t){let n=!0;if(Qv(e)&&Qv(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((i=>{e_(e[i],t[i])||(n=!1)})),n);if(Zv(e)&&Zv(t)){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n+=1)if(!e_(e[n],t[n]))return!1;return!0}return e===t}Gv.generate=function(e,t,n){n=n||"";let i=[];return Object.keys(t).forEach((o=>{const r=function(e){return e?Kv({},{val:e}).val:e}(t[o]),s=e[o],a=`${n}/${o}`;e_(r,s)||Xv(t,o)||(Yv(s)?i.push({op:"add",path:a,value:r}):Qv(r)&&Qv(s)?i=i.concat(Gv.generate(s,r,a)):Zv(r)&&Zv(s)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let r=-1;function s(e,t,n){if(e[n]&&Yv(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(e_(t,o))return i;if(!Yv(t[0])&&Yv(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(Gv.generate(o[e],t[r],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return i}(s,r,a)):i.push({op:"replace",path:`${n}/${o}`,value:r}))})),Object.keys(e).forEach((o=>{Yv(t[o])&&!Xv(e,o)&&i.push({op:"remove",path:`${n}/${o}`})})),i},Gv.apply=function(e,t){t.forEach((t=>{let n=Jv(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&isNaN(+i)?n[i]:n[+i]||n;const r=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Zv(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(Zv(o)&&Zv(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Qv(o)&&Qv(t.value))s=o,Object.keys(s).forEach((e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!Xv(s,e)&&delete s[e]})),Kv(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){const o=Jv(e,t.from);Zv(n)?n.splice(+i,0,o.splice(+r,1)[0]):(n[i]=o[r],delete o[r])}else"remove"===t.op&&(Zv(n)?n.splice(+i,1):delete n[i]);var s}))},Gv.clone=function(e){return Kv({},e)},Gv.createPatch=function(e,t,n){const i={op:e.toLowerCase(),path:n};return"move"===i.op?i.from=t:void 0!==t&&(i.value=t),i},Gv.updateObject=function(e,t){Object.keys(e).length?Gv.apply(e,Gv.generate(e,t)):Kv(e,t)};const t_=Gv;let n_,i_;function o_(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function r_(e,{explicitResize:t=!1}={}){e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function s_(e){l_(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function a_(e){if(e.__hooks.obsolete)return Promise.resolve();i_=-1,n_=e;let t=-1;n_.__hooks.initiated&&(t=n_.__hooks.list.length);try{n_.fn.call(null)}catch(e){console.error(e)}n_.__hooks.initiated=!0,t>-1&&t!==n_.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=n_.__hooks;return h_(n_),i_=void 0,n_=void 0,n.chain.promise||(n.chain.promise=new Promise((e=>{n.chain.resolve=e}))),function(e){l_(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){l_(e.pendingEffects),e.macro=null,function(e){e.pendingPromises.length||e.micro||e.macro||(e.chain.promise=null,e.chain.resolve(!e.waitForData))}(e)}(e)})))}(n),n.chain.promise}function l_(e,t){try{e.forEach((e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())}))}catch(e){console.error(e)}e.length=0}function c_(e,t){try{return Promise.all(e.__hooks.snaps.map((e=>Promise.resolve(e.fn(t))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function d_(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function u_(e){return e.__hooks.imperativeHandle}function h_(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function g_(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,h_(e))}function p_(e){if(void 0===n_)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=n_.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function m_(e){return p_(++i_),n_.context[e]}function f_(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function v_(e){return{__hooked:!0,fn:e,initiate:r_,run:a_,teardown:s_,runSnaps:c_,runMenu:d_,focus:U_,blur:$_,observeActions:g_,getImperativeHandle:u_,updateRectOnNextRun:f_}}function __(e){const t=p_(++i_);if(!t.value){t.component=n_;const n=e=>{if(t.component.__hooks.obsolete)throw new Error("Calling setState on an unmounted component is a no-op and indicates a memory leak in your component.");const n="function"==typeof e?e(t.value[0]):e;var i;n!==t.value[0]&&(t.value[0]=n,(i=t.component).__hooks.micro||(i.__hooks.micro=setTimeout((()=>{i.__hooks.micro=null,a_(i)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function b_(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=p_(++i_);o_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===n_.__hooks.pendingEffects.indexOf(n)&&n_.__hooks.pendingEffects.push(n))}function C_(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=p_(++i_);o_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],n_.__hooks.pendingLayoutEffects.push(n))}function y_(e,t){t||console.warn("useMemo called without dependencies.");const n=p_(++i_);return o_(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function w_(e,t){const[n,i]=__((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=p_(++i_);return o.component||(o.component=n_),C_((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),i({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),i({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]}function S_(){return m_("element")}function x_(){const e=S_(),t=n_.__hooks.resizer,[n,i]=__((()=>{const{left:t,top:n,width:i,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:i,height:o}}));return t.current=n,-1===t.setters.indexOf(i)&&t.setters.push(i),t.update&&t.resize&&(t.update=!1,t.resize()),C_((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===n&&s.top===i||t.setters.forEach((e=>e({left:n,top:i,width:o,height:r})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let i=new ResizeObserver(n);return i.observe(e),()=>{i.unobserve(e),i.disconnect(e),i=null,t.resize=void 0}}}),[e]),n}function L_(){return m_("layout")}function k_(){const e=m_("layout"),[t]=__({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function E_(){return m_("appLayout")}function N_(){const e=m_("model");return e&&e.session?e:void 0}function D_(){const e=m_("app");return e&&e.session?e:void 0}function I_(){const e=m_("global");return e&&e.session?e:void 0}function q_(){return m_("selections")}function R_(){return m_("theme")}function O_(){return m_("nebbie")}function T_(){return m_("translator")}function A_(){return m_("deviceType")}function M_(){return m_("plugins")}function P_(e,t){const[n]=__({action(){n._config.action.call(null)}});return n.component||(n.component=n_,n_.__hooks.actions.list.push(n)),y_((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action}function F_(){return m_("constraints")}function B_(){return m_("options")}function V_(e,t){const n=p_(++i_);if(!n.imperative){if(n_.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(o_(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],n_.__hooks.imperativeHandle=i}}function z_(e){const t=p_(++i_);t.value||(t.value=1,n_.__hooks.snaps.push(t)),t.fn=e}function W_(e){const t=p_(++i_);t.value||(t.value=1,n_.__hooks.menus.push(t)),t.fn=e}function H_(){p_(++i_);const e=n_.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function j_(){const e=m_("keyboardNavigation"),t=m_("focusHandler");if(!n_.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&($_(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(n_);n_.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),U_(this))}.bind(n_);n_.__hooks.accessibility.focusFunction=n;const i=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(n_);n_.__hooks.accessibility.focusSelectionFunction=i}const n=n_.__hooks.accessibility.focusFunction,i=n_.__hooks.accessibility.exitFunction,o=n_.__hooks.accessibility.focusSelectionFunction,[r,s]=__({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return n_.__hooks.accessibility.setter=s,n_.__hooks.accessibility.enabled=e,b_((()=>s({active:!1,enabled:e,blur:i,focus:n,focusSelection:o})),[e]),r}function U_(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function $_(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const K_={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},G_=Object.keys(K_);function Z_(e,t){console.warn("Obsolete API - time to get hooked!");const n={...K_};var i;i=n,Object.keys(Ga().prototype).forEach((e=>{i[e]=Ga().prototype[e]})),Ga().init(i);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==G_.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const r=function({sn:e,component:t}){const n={},i=[],o=(e=>t=>{const n=(i={...t,action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0},Object.keys(Ga().prototype).forEach((e=>{i[e]=Ga().prototype[e]})),Ga().init(i),i);var i;return n})(t);return((e.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=o(e);n[e.key]=t,i.push(t)})),(e.definition.actions||[]).forEach((e=>{const t=o(e);n[e.key]=t})),{actions:n,selectionToolbarItems:i,destroy(){i.length=0}}}({sn:e,component:o}),s=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:s,selections:t.selections,actions:r.actions}),Object.assign(n,{actions:r.actions,model:t.model,app:t.app,selections:t.selections}),[n,r]}const Q_=()=>{};function Y_(e,t){return void 0===e?()=>t:()=>e}function X_(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Y_(t.min,0),max:"function"==typeof t.max?t.max:Y_(t.max,1e3),added:t.added||t.add||Q_,description:t.description||Q_,moved:t.moved||t.move||Q_,removed:t.removed||t.remove||Q_,replaced:t.replaced||t.replace||Q_,isDefined:()=>!!e}}function J_(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error(`Incorrect definition for ${e} at ${t}. Valid paths include /qHyperCubeDef or /qListObjectDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(e,n,{}),dimensions:X_(e.dimensions),measures:X_(e.measures)}}function eb(e={}){let t,n=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(n=e.properties.initial,t=e.properties.onChange),{properties:{initial:n,onChange:t},data:{targets:((e.data||{}).targets||[]).map(J_)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function tb(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:eb(n.qae),component:n.component||{},create:e=>function(e,t,n){"function"==typeof e.component&&(e.component=v_(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==a_&&console.warn("Detected multiple supernova modules, this might cause problems.");const i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const r={},s=["appLayout","constraints"],a={};t.model&&t.model.session||(a.select=!0);const l={context:{model:t.model,app:t.app,global:i,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:a,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(l,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let i=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(i=!0)})),i&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}s.forEach((e=>{const i=t.context;if(i&&Object.prototype.hasOwnProperty.call(i,e)){let t=JSON.stringify(i[e]);"constraints"===e&&(t=JSON.stringify({...i[e],...a})),t!==r[e]&&(n=!0,r[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(n=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(n=!0,r.language=l.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return s.forEach((e=>{r[e]=JSON.stringify(l.context[e])})),r.themeName=l.context.theme?l.context.theme.name():void 0,r.language=l.context.translator?l.context.translator.language():void 0,Object.assign(l,{selections:t.selections}),[l,null]}(e,t,n):Z_(e,t),r=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(...n){return e.qae.properties.onChange.call({model:t.model},...n),t.model.__snInterceptor.setProperties.call(this,...n)},t.model.applyPatches=function(n,i){const o=i?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const r=t_.clone(o),s=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));t_.apply(o,s),e.qae.properties.onChange.call({model:t.model},o);const a=t_.generate(r,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,a,i)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}(i,e,t),definition:{}};return Object.keys(n).forEach((e=>{i[e]||(i.definition[e]=n[e])})),i}var nb=s(91068);const ib={};function ob(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,r)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:r}=n,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||(0,nb.satisfies)(e,r.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!ib[o]){const r=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(i||n.load)({name:e,version:t}),a=Promise.resolve(s);ib[o]=a.then((e=>{if(!e)throw new Error(`load() of visualization '${r}' resolved to an invalid object`);return e})).catch((e=>{throw console.warn(e),new Error(`Failed to load visualization: '${r}'`)}))}return ib[o]}(s.name,s.version,t,n.load).then((e=>(i=i||tb(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i))),initialProperties(e,t=!1){return this.supernova().then((()=>{const n={qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o)};return t?(ql()(!0,n,e),n):{...n,...e}}))}};return s}({name:e,version:o},t,r),i=null},getMatchingVersionFromProperties:e=>{var t;i||(t=Object.keys(n),i=[...t.filter((e=>"undefined"===e)),...t.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]);for(let t=i.length-1;t>=0;t--)if(n[i[t]].supportsPropertiesVersion(e))return i[t];return null},versions:n}}const rb={context:({},{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1}),load:()=>{},types:[],themes:[],anything:{},snapshot:{get:async e=>{const t=await fetch(`/njs/snapshot/${e}`);if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))}},sb=(e={},t={})=>({...e,...t}),ab=(e=[],t=[])=>[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t)),lb=function e(t={}){const i=function(e){const t=Ua({initial:e});return Object.keys($a).forEach((e=>{t.translator.add($a[e])})),{translator:t.translator}}(t.context.language);function o(e,r){if(r)return o.createConfiguration(r)(e);let s={...t.context,translator:i.translator};const[a]=function({app:e,context:t}){let i;const o=new Promise((e=>{i=e})),r=n.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","3.2.1"),s.setAttribute("data-app-id",e.id),document.body.appendChild(s),Fo.render(n.createElement(Sc,{ref:r,app:e,initialContext:t}),s,i);const a={};return[{toggleFocusOfCells(e){Object.keys(a).forEach((t=>{a[t].current.toggleFocus(t===e)}))},cells:a,addCell(e,t){a[e]=t},removeCell(e){delete a[e]},add(e){(async()=>{await o,r.current.addComponent(e)})()},remove(e){(async()=>{await o,r.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await o,r.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,r.current.setContext(e)})()},getAppSelections:async()=>(await o,r.current.getAppSelections())},r,o]}({app:e,context:s}),l=function({themes:e=[],root:t}={}){const n=Hl();return{setTheme:async i=>{const o=e.filter((e=>e.id===i))[0];let r="dark"===i?"dark":"light";if(o&&o.load)try{const e=await Promise.race([o.load(),(5e3,s={__timedOut:!0},new Promise((e=>{setTimeout((()=>e(s)),5e3)})))]);e.__timedOut?console.warn(`Timeout when loading theme '${i}'`):(r="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,i),t.setMuiThemeName(r))}catch(e){console.error(e)}else n.internalAPI.setTheme({type:r},i),t.setMuiThemeName(r);var s},externalAPI:n.externalAPI}}({themes:t.themes,root:a});s.themeApi=l.externalAPI;const c={galaxy:{translator:i.translator,flags:$v(t.flags),deviceType:(h=t.context.deviceType,"auto"!==h?h:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"),anything:t.anything},theme:l.externalAPI,translator:i.translator,nebbie:null},d={app:e,root:a,config:t,public:c,context:s,types:null},u=function({halo:e,parent:t}){const n={},i=t||{get:()=>{}};return{register:(t,i)=>{n[t.name]||(n[t.name]=ob(t.name,e)),n[t.name].register(t.version,i)},getSupportedVersion:(e,t)=>n[e]?n[e].getMatchingVersionFromProperties(t):null,get(e){const{name:t}=e;let{version:o}=e;if(n[t]){if(!n[t].versions[o]){const e=Object.keys(n[t].versions)[0];console.warn(`Version ${o} of ${t} is not registered. Falling back to version ${e}`),o=e}}else console.warn(`Visualization ${t} is not registered. Adding it now.`),this.register({name:t,version:o});return n[t].get(o)||i.get(e)},getList:()=>Object.keys(n).map((e=>({name:e,versions:Object.keys(n[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{n[e]&&(n[e]=void 0),function(e){Object.keys(ib).forEach((t=>{t.split("__")[0]===e&&(ib[t]=void 0)}))}(e)}}}({halo:d});var h;t.types.forEach((e=>u.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let g=l.setTheme(t.context.theme),p=null,m=null;const f={render:async e=>(await g,e.id?Uv(e,d):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:r,element:s,extendProperties:a},l){let c,d={};try{const o=l.types.get({name:e,version:t});d=await o.initialProperties(i,a);const r=await o.supernova();n&&function({sn:e,properties:t,fields:n}){if(!n.length)return;const i=e.qae.data.targets[0];if(!i)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:o}=i,r=o.split("/");let s=t;for(let e=0;e<r.length;e++){const t=r[e];s=t?s[t]:s}const a=Of({dc:s,def:i,properties:t});n.forEach((e=>{const t=function(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}(e);"measure"===t?a.addMeasure(e):a.addDimension(e)}))}({sn:r,properties:d,fields:n}),i&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},d)}catch(t){c=t,d={qInfo:{qType:e},visualization:e}}const u=await l.app.createSessionObject(d);rc.set(u.id,u);const h=(e=>{const t=ic({type:"SET",value:e});return()=>{t(),rc.clear(e.id)}})(u);return Wv(u,{options:o,plugins:r,element:s},l,c,(async()=>{await l.app.destroySessionObject(u.id),h()}))}(e,d)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==s[n]&&(t||(t={}),t[n]=e[n])})),t&&(s={...s,...t,translator:i.translator},d.context=s,t.theme&&(g=l.setTheme(t.theme),await g),t.language&&d.public.translator.language(t.language),a.context(s))},selections:async()=>(p||(p={mount(t){m?console.error("Already mounted"):(m=function({element:e,app:t}){return Fo.createPortal(n.createElement(lf,{app:t}),e,af())}({element:t,app:e}),a.add(m))},unmount(){m&&(a.remove(m),m=null)}}),p),field:async t=>{let i;const o="string"==typeof t?t:t.qLibraryId;if(t.qId)i=t.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const r={fieldName:o,mount(s,l={}){if(!s)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);this._instance=function({element:e,app:t,fieldIdentifier:i,qId:o,stateName:r="$",options:s={}}){return Fo.createPortal(n.createElement(Nf,{app:t,element:e,fieldIdentifier:i,qId:o,stateName:r,options:s}),e,af())}({element:s,app:e,fieldIdentifier:t,qId:i,options:Ef({onSelectionActivated:()=>r.emit("selectionActivated"),onSelectionDeactivated:()=>r.emit("selectionDeactivated"),...l}),stateName:l.stateName||"$"}),a.add(this._instance)},unmount(){this._instance&&(a.remove(this._instance),this._instance=null)}};return km(r),r},getRegisteredTypes:u.getList,__DO_NOT_USE__:{types:u,popover(t,i,o){f._popoverInstance&&(a.remove(f._popoverInstance),f._popoverInstance=null);const r=((e={})=>{const t={...Df};return ql()(!0,t,e),t})({onPopoverClose:()=>f.emit("fieldPopoverClose"),...o});f._popoverInstance=n.createElement(If,{element:t,key:af(),app:e,fieldIdentifier:i,options:r,stateName:o.stateName||"$"}),a.add(f._popoverInstance)}}};return d.public.nebbie=f,d.types=u,km(f),f}return o.createConfiguration=n=>e(((e,t)=>({context:sb(e.context,t.context),load:t.load||e.load,snapshot:{...t.snapshot||e.snapshot},types:ab(e.types,t.types),themes:ab(e.themes,t.themes),flags:sb(e.flags,t.flags),anything:sb(e.anything,t.anything)}))(t,n)),o.config=t,o}(rb),cb=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},db=globalThis.crypto||{getRandomValues:()=>123456},ub=function(){return e=>{const t=ql()({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^db.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const n=t._mock;let i=t;return n&&(delete t._mock,i=ql()({},t,n)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(i),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId,...t})}},hb=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,gb=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const r=hb(e,{defaultValue:t,args:o});return n?new Promise((e=>{setTimeout((()=>e(r)),i)})):r},pb=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function mb(e){return!pb.includes(e)}function fb(e){const t=hb(e.getLayout);return t.qInfo&&t.qInfo.qId}function vb(e,t){let n=fb(e);const{delay:i}=t,{id:o,session:r,...s}=e;if(o&&n&&o!==n)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${n}, id: ${o}`);return n=n||o||"object - "+ +Date.now(),{[n]:{id:n,session:hb(r,{defaultValue:!0}),on:()=>{},once:()=>{},...Object.entries(s).reduce(((e,[t,n])=>({...e,[t]:gb(n,{async:mb(t),delay:i})})),{}),genericType:e.type}}}function _b(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!fb(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const bb=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(_b);const n=function(e,t){return e.reduce(((e,n)=>({...e,...vb(n,t)})),{})}(e,t);return async e=>Promise.resolve(n[e])},Cb=function(){return()=>Promise.resolve({id:"app-layout"})},yb={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new cb,i=new ub,o=new bb(e,t),r=new Cb,s={id:"app - "+ +Date.now(),session:n,createSessionObject:i,getObject:o,getAppLayout:r};return Promise.resolve(s)}(e,t)},wb=yb,Sb={generator:tb,hook:v_,theme:Hl,locale:Ua};var xb=s(32981),Lb=s(16254),kb=s(26613),Eb=s(82665),Nb=s(70200);function Db(e){return(0,vt.Z)("MuiToolbar",e)}(0,ft.Z)("MuiToolbar",["root","gutters","regular","dense"]);const Ib=["className","component","disableGutters","variant"],qb=(0,mt.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),Rb=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:r=!1,variant:s="regular"}=n,a=(0,lt.Z)(n,Ib),l=(0,ct.Z)({},n,{component:o,disableGutters:r,variant:s}),c=(e=>{const{classes:t,disableGutters:n,variant:i}=e,o={root:["root",!n&&"gutters",i]};return(0,ut.Z)(o,Db,t)})(l);return(0,bt.jsx)(qb,(0,ct.Z)({as:o,className:(0,dt.Z)(c.root,i),ref:t,ownerState:l},a))})),Ob=Rb;function Tb(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function Ab(e){return(0,vt.Z)("MuiToggleButtonGroup",e)}const Mb=(0,ft.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),Pb=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Fb=(0,mt.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mb.grouped}`]:t.grouped},{[`& .${Mb.grouped}`]:t[`grouped${(0,Mt.Z)(n.orientation)}`]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,ct.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Mb.grouped}`]:(0,ct.Z)({},"horizontal"===e.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${Mb.selected} + .${Mb.grouped}.${Mb.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${Mb.selected} + .${Mb.grouped}.${Mb.selected}`]:{borderTop:0,marginTop:0}})}))),Bb=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:r,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:u="horizontal",size:h="medium",value:g}=i,p=(0,lt.Z)(i,Pb),m=(0,ct.Z)({},i,{disabled:a,fullWidth:c,orientation:u,size:h}),f=(e=>{const{classes:t,orientation:n,fullWidth:i,disabled:o}=e,r={root:["root","vertical"===n&&"vertical",i&&"fullWidth"],grouped:["grouped",`grouped${(0,Mt.Z)(n)}`,o&&"disabled"]};return(0,ut.Z)(r,Ab,t)})(m),v=(e,t)=>{if(!d)return;const n=g&&g.indexOf(t);let i;g&&n>=0?(i=g.slice(),i.splice(n,1)):i=g?g.concat(t):[t],d(e,i)},_=(e,t)=>{d&&d(e,g===t?null:t)};return(0,bt.jsx)(Fb,(0,ct.Z)({role:"group",className:(0,dt.Z)(f.root,r),ref:t,ownerState:m},p,{children:n.Children.map(o,(e=>n.isValidElement(e)?n.cloneElement(e,{className:(0,dt.Z)(f.grouped,e.props.className),onChange:l?_:v,selected:void 0===e.props.selected?Tb(e.props.value,g):e.props.selected,size:e.props.size||h,fullWidth:c,color:e.props.color||s,disabled:e.props.disabled||a}):null))}))})),Vb=Bb;function zb(e){return(0,vt.Z)("MuiToggleButton",e)}const Wb=(0,ft.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),Hb=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],jb=(0,mt.ZP)(no,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${(0,Mt.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>{let n,i="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(i="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,n="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,ct.Z)({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${Wb.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,mi.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wb.selected}`]:{color:i,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,mi.Fq)(i,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,mi.Fq)(i,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,mi.Fq)(i,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})})),Ub=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiToggleButton"}),{children:i,className:o,color:r="standard",disabled:s=!1,disableFocusRipple:a=!1,fullWidth:l=!1,onChange:c,onClick:d,selected:u,size:h="medium",value:g}=n,p=(0,lt.Z)(n,Hb),m=(0,ct.Z)({},n,{color:r,disabled:s,disableFocusRipple:a,fullWidth:l,size:h}),f=(e=>{const{classes:t,fullWidth:n,selected:i,disabled:o,size:r,color:s}=e,a={root:["root",i&&"selected",o&&"disabled",n&&"fullWidth",`size${(0,Mt.Z)(r)}`,s]};return(0,ut.Z)(a,zb,t)})(m);return(0,bt.jsx)(jb,(0,ct.Z)({className:(0,dt.Z)(f.root,o),disabled:s,focusRipple:!a,ref:t,onClick:e=>{d&&(d(e,g),e.defaultPrevented)||c&&c(e,g)},onChange:c,value:g,ownerState:m,"aria-pressed":u},p,{children:i}))})),$b=Ub;function Kb(e){return(0,vt.Z)("MuiMenu",e)}(0,ft.Z)("MuiMenu",["root","paper","list"]);const Gb=["onEntering"],Zb=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Qb={vertical:"top",horizontal:"right"},Yb={vertical:"top",horizontal:"left"},Xb=(0,mt.ZP)(Ad,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jb=(0,mt.ZP)(xd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eC=(0,mt.ZP)(Jp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),tC=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:r,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:l,open:c,PaperProps:d={},PopoverClasses:u,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:p="selectedMenu"}=i,m=(0,lt.Z)(i.TransitionProps,Gb),f=(0,lt.Z)(i,Zb),v=zt(),_="rtl"===v.direction,b=(0,ct.Z)({},i,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:g,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:p}),C=(e=>{const{classes:t}=e;return(0,ut.Z)({root:["root"],paper:["paper"],list:["list"]},Kb,t)})(b),y=o&&!s&&c,w=n.useRef(null);let S=-1;return n.Children.map(r,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===S)&&(S=t))})),(0,bt.jsx)(Xb,(0,ct.Z)({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?Qb:Yb,PaperProps:(0,ct.Z)({component:Jb},d,{classes:(0,ct.Z)({},d.classes,{root:C.paper})}),className:C.root,open:c,ref:t,transitionDuration:h,TransitionProps:(0,ct.Z)({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,v),g&&g(e,t)}},m),ownerState:b},f,{classes:u,children:(0,bt.jsx)(eC,(0,ct.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:w,autoFocus:o&&(-1===S||s),autoFocusItem:y,variant:p},a,{className:(0,dt.Z)(C.list,a.className),children:r}))}))})),nC=tC,iC=new Map,oC=[],rC=oC.map,sC=oC.some,aC=oC.hasOwnProperty,lC=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,cC=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,dC=/(?:\.[^/]*|\/)$/;class uC extends Error{constructor(e){super(e)}}function hC(e){const t=lC.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function gC(e){const t=new Map,n=o(null);function i(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise(((t,n)=>{const i=document.createElement("script");i.onload=()=>{try{t(oC.pop()(o(e)))}catch(e){n(new uC("invalid module"))}i.remove()},i.onerror=()=>{n(new uC("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=vC,document.head.appendChild(i)}))),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function r(e){return arguments.length>1?Promise.all(rC.call(arguments,n)).then(pC):n(e)}return r.alias=function(t){return gC(((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i)))},r.resolve=e,r}function pC(e){const t={};for(const n of e)for(const e in n)aC.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:mC(n,e)}):t[e]=n[e]);return t}function mC(e,t){return()=>e[t]}function fC(e){return"exports"==(e+="")||"module"===e}function vC(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),oC.push(sC.call(t,fC)?e=>{const i={},o={exports:i};return Promise.all(rC.call(t,(t=>"exports"==(t+="")?i:"module"===t?o:e(t)))).then((e=>(n.apply(null,e),o.exports)))}:e=>Promise.all(rC.call(t,e)).then((e=>"function"==typeof n?n.apply(null,e):n)))}uC.prototype.name=uC.name,gC(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function n(t){const n=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let i=iC.get(n);return i||iC.set(n,i=fetch(n).then((e=>{if(!e.ok)throw new uC("unable to load package.json");return e.redirected&&!iC.has(e.url)&&iC.set(e.url,i),e.json()}))),i}return async function(i,o){if(i.startsWith(e)&&(i=i.substring(e.length)),/^(\w+:)|\/\//i.test(i))return i;if(/^[.]{0,2}\//i.test(i))return new URL(i,null==o?location:o).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new uC("illegal name");const r=hC(i);if(!r)return`${e}${i}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await n(hC(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!dC.test(r.path)&&(r.path+=".js"),r.path&&r.version&&cC.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await n(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),dC.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),vC.amd={};const _C=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`;return gC((async e=>i(e))).alias({"@nebula.js/stardust":e})(n||t)},bC={};function CC(e){const[t]=oc(),n=t.get(e),[i,...o]=ac(n,"getProperties");return[i,e=>n.setProperties(e),...o]}window.onHotChange=(e,t)=>(bC[e]||(bC[e]=[]),bC[e].push(t),window[e]&&t(),()=>{const n=bC[e].indexOf(t);bC[e].splice(n,1)});const yC=n.createContext();function wC({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const i=n,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(n){const o="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return o.qDef.cId=o.qDef.cId||af(),o.qDef.qSortCriterias=e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(o).forEach((t=>{e[t]=o[t]})),t.dimensions.added(o,i),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,i,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}function SC({dc:e,def:t,properties:n,dimensions:i}){const o=n,r={dimensions:()=>i,measures:()=>[],addDimension(n){const i="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||af(),i.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(i,o),i},removeDimension(e){const n=i[e];return t.dimensions.removed(n,o,e),n},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>r.dimensions().length<r.maxDimensions(),canAddMeasure:()=>!1};return r}const xC={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},LC={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function kC(e,t="dimension"){const n="dimension"===t?xC:LC,[i]=dc(n,e),[o]=lc(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function EC(e){return(0,vt.Z)("MuiListSubheader",e)}(0,ft.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const NC=["className","color","component","disableGutters","disableSticky","inset"],DC=(0,mt.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Mt.Z)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,ct.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),IC=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=n,c=(0,lt.Z)(n,NC),d=(0,ct.Z)({},n,{color:o,component:r,disableGutters:s,disableSticky:a,inset:l}),u=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:r}=e,s={root:["root","default"!==n&&`color${(0,Mt.Z)(n)}`,!i&&"gutters",o&&"inset",!r&&"sticky"]};return(0,ut.Z)(s,EC,t)})(d);return(0,bt.jsx)(DC,(0,ct.Z)({as:r,className:(0,dt.Z)(u.root,i),ref:t,ownerState:d},c))})),qC=IC;var RC=s(25138),OC=s.n(RC),TC=s(18258),AC=s.n(TC),MC=s(38866),PC=s(44526),FC=s(7833);function BC(e){return(0,vt.Z)("MuiInput",e)}const VC=(0,ct.Z)({},Rs,(0,ft.Z)("MuiInput",["root","underline","input"])),zC=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],WC=(0,mt.ZP)(ta,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Js(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,ct.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${VC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${VC.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${VC.disabled}, .${VC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${VC.disabled}:before`]:{borderBottomStyle:"dotted"}})})),HC=(0,mt.ZP)(na,{name:"MuiInput",slot:"Input",overridesResolver:ea})({}),jC=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,pt.Z)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:u="input",multiline:h=!1,slotProps:g,slots:p={},type:m="text"}=s,f=(0,lt.Z)(s,zC),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,ut.Z)(i,BC,t);return(0,ct.Z)({},t,o)})(s),_={root:{ownerState:{disableUnderline:a}}},b=(null!=g?g:c)?(0,yn.Z)(null!=g?g:c,_):_,C=null!=(n=null!=(i=p.root)?i:l.Root)?n:WC,y=null!=(o=null!=(r=p.input)?r:l.Input)?o:HC;return(0,bt.jsx)(ra,(0,ct.Z)({slots:{root:C,input:y},slotProps:b,fullWidth:d,inputComponent:u,multiline:h,ref:t,type:m},f,{classes:v}))}));jC.muiName="Input";const UC=jC;function $C(e){return(0,vt.Z)("MuiFilledInput",e)}const KC=(0,ct.Z)({},Rs,(0,ft.Z)("MuiFilledInput",["root","underline","input"])),GC=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ZC=(0,mt.ZP)(ta,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Js(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const i="light"===e.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,ct.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${KC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${KC.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${KC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${KC.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${KC.disabled}, .${KC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${KC.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,ct.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),QC=(0,mt.ZP)(na,{name:"MuiFilledInput",slot:"Input",overridesResolver:ea})((({theme:e,ownerState:t})=>(0,ct.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),YC=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,pt.Z)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:u=!1,slotProps:h,slots:g={},type:p="text"}=s,m=(0,lt.Z)(s,GC),f=(0,ct.Z)({},s,{fullWidth:c,inputComponent:d,multiline:u,type:p}),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,ut.Z)(i,$C,t);return(0,ct.Z)({},t,o)})(s),_={root:{ownerState:f},input:{ownerState:f}},b=(null!=h?h:l)?(0,yn.Z)(null!=h?h:l,_):_,C=null!=(n=null!=(i=g.root)?i:a.Root)?n:ZC,y=null!=(o=null!=(r=g.input)?r:a.Input)?o:QC;return(0,bt.jsx)(ra,(0,ct.Z)({slots:{root:C,input:y},componentsProps:b,fullWidth:c,inputComponent:d,multiline:u,ref:t,type:p},m,{classes:v}))}));YC.muiName="Input";const XC=YC;function JC(e){return(0,vt.Z)("MuiFormLabel",e)}const ey=(0,ft.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ty=["children","className","color","component","disabled","error","filled","focused","required"],ny=(0,mt.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,ct.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,ct.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ey.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ey.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ey.error}`]:{color:(e.vars||e).palette.error.main}}))),iy=(0,mt.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${ey.error}`]:{color:(e.vars||e).palette.error.main}}))),oy=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiFormLabel"}),{children:i,className:o,component:r="label"}=n,s=(0,lt.Z)(n,ty),a=Is({props:n,muiFormControl:Ds(),states:["color","required","focused","disabled","error","filled"]}),l=(0,ct.Z)({},n,{color:a.color||"primary",component:r,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:n,focused:i,disabled:o,error:r,filled:s,required:a}=e,l={root:["root",`color${(0,Mt.Z)(n)}`,o&&"disabled",r&&"error",s&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return(0,ut.Z)(l,JC,t)})(l);return(0,bt.jsxs)(ny,(0,ct.Z)({as:r,ownerState:l,className:(0,dt.Z)(c.root,o),ref:t},s,{children:[i,a.required&&(0,bt.jsxs)(iy,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))})),ry=oy;function sy(e){return(0,vt.Z)("MuiInputLabel",e)}(0,ft.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ay=["disableAnimation","margin","shrink","variant","className"],ly=(0,mt.ZP)(ry,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ey.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,ct.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,ct.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,ct.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),cy=n.forwardRef((function(e,t){const n=(0,pt.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:o,className:r}=n,s=(0,lt.Z)(n,ay),a=Ds();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=Is({props:n,muiFormControl:a,states:["size","variant","required"]}),d=(0,ct.Z)({},n,{disableAnimation:i,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required}),u=(e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:r,variant:s,required:a}=e,l={root:["root",n&&"formControl",!r&&"animated",o&&"shrink","small"===i&&"sizeSmall",s],asterisk:[a&&"asterisk"]},c=(0,ut.Z)(l,sy,t);return(0,ct.Z)({},t,c)})(d);return(0,bt.jsx)(ly,(0,ct.Z)({"data-shrink":l,ownerState:d,ref:t,className:(0,dt.Z)(u.root,r)},s,{classes:u}))})),dy=cy;function uy(e){return(0,vt.Z)("MuiFormControl",e)}(0,ft.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const hy=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],gy=(0,mt.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,ct.Z)({},t.root,t[`margin${(0,Mt.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,ct.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),py=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiFormControl"}),{children:o,className:r,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:h=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined"}=i,v=(0,lt.Z)(i,hy),_=(0,ct.Z)({},i,{color:s,component:a,disabled:l,error:c,fullWidth:u,hiddenLabel:h,margin:g,required:p,size:m,variant:f}),b=(e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root","none"!==n&&`margin${(0,Mt.Z)(n)}`,i&&"fullWidth"]};return(0,ut.Z)(o,uy,t)})(_),[C,y]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{if(!(0,mr.Z)(t,["Input","Select"]))return;const n=(0,mr.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[w,S]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{(0,mr.Z)(t,["Input","Select"])&&Ys(t.props,!0)&&(e=!0)})),e})),[x,L]=n.useState(!1);l&&x&&L(!1);const k=void 0===d||l?x:d;let E;const N=n.useMemo((()=>({adornedStart:C,setAdornedStart:y,color:s,disabled:l,error:c,filled:w,focused:k,fullWidth:u,hiddenLabel:h,size:m,onBlur:()=>{L(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{L(!0)},registerEffect:E,required:p,variant:f})),[C,s,l,c,w,k,u,h,E,p,m,f]);return(0,bt.jsx)(Ns.Provider,{value:N,children:(0,bt.jsx)(gy,(0,ct.Z)({as:a,ownerState:_,className:(0,dt.Z)(b.root,r),ref:t},v,{children:o}))})})),my=py;function fy(e){return(0,vt.Z)("MuiFormHelperText",e)}const vy=(0,ft.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _y;const by=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Cy=(0,mt.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,Mt.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,ct.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vy.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vy.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),yy=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:r="p"}=n,s=(0,lt.Z)(n,by),a=Is({props:n,muiFormControl:Ds(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,ct.Z)({},n,{component:r,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,contained:n,size:i,disabled:o,error:r,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",r&&"error",i&&`size${(0,Mt.Z)(i)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,ut.Z)(c,fy,t)})(l);return(0,bt.jsx)(Cy,(0,ct.Z)({as:r,ownerState:l,className:(0,dt.Z)(c.root,o),ref:t},s,{children:" "===i?_y||(_y=(0,bt.jsx)("span",{className:"notranslate",children:"​"})):i}))})),wy=yy;function Sy(e){return(0,vt.Z)("MuiNativeSelect",e)}const xy=(0,ft.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Ly=["className","disabled","IconComponent","inputRef","variant"],ky=({ownerState:e,theme:t})=>(0,ct.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,ct.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${xy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Ey=(0,mt.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:mt.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${xy.multiple}`]:t.multiple}]}})(ky),Ny=({ownerState:e,theme:t})=>(0,ct.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${xy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Dy=(0,mt.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Mt.Z)(n.variant)}`],n.open&&t.iconOpen]}})(Ny),Iy=n.forwardRef((function(e,t){const{className:i,disabled:o,IconComponent:r,inputRef:s,variant:a="standard"}=e,l=(0,lt.Z)(e,Ly),c=(0,ct.Z)({},e,{disabled:o,variant:a}),d=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r}=e,s={select:["select",n,i&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,Mt.Z)(n)}`,r&&"iconOpen",i&&"disabled"]};return(0,ut.Z)(s,Sy,t)})(c);return(0,bt.jsxs)(n.Fragment,{children:[(0,bt.jsx)(Ey,(0,ct.Z)({ownerState:c,className:(0,dt.Z)(d.select,i),disabled:o,ref:s||t},l)),e.multiple?null:(0,bt.jsx)(Dy,{as:r,ownerState:c,className:d.icon})]})})),qy=Iy;function Ry(e){return(0,vt.Z)("MuiSelect",e)}const Oy=(0,ft.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var Ty;const Ay=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],My=(0,mt.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Oy.select}`]:t.select},{[`&.${Oy.select}`]:t[n.variant]},{[`&.${Oy.multiple}`]:t.multiple}]}})(ky,{[`&.${Oy.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Py=(0,mt.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Mt.Z)(n.variant)}`],n.open&&t.iconOpen]}})(Ny),Fy=(0,mt.ZP)("input",{shouldForwardProp:e=>(0,mt.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function By(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Vy(e){return null==e||"string"==typeof e&&!e.trim()}const zy=n.forwardRef((function(e,t){const{"aria-describedby":i,"aria-label":o,autoFocus:r,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:u,displayEmpty:h,IconComponent:g,inputRef:p,labelId:m,MenuProps:f={},multiple:v,name:_,onBlur:b,onChange:C,onClose:y,onFocus:w,onOpen:S,open:x,readOnly:L,renderValue:k,SelectDisplayProps:E={},tabIndex:N,value:D,variant:I="standard"}=e,q=(0,lt.Z)(e,Ay),[R,O]=(0,Xd.Z)({controlled:D,default:d,name:"Select"}),[T,A]=(0,Xd.Z)({controlled:x,default:c,name:"Select"}),M=n.useRef(null),P=n.useRef(null),[F,B]=n.useState(null),{current:V}=n.useRef(null!=x),[z,W]=n.useState(),H=(0,fi.Z)(t,p),j=n.useCallback((e=>{P.current=e,e&&B(e)}),[]),U=null==F?void 0:F.parentNode;n.useImperativeHandle(H,(()=>({focus:()=>{P.current.focus()},node:M.current,value:R})),[R]),n.useEffect((()=>{c&&T&&F&&!V&&(W(s?null:U.clientWidth),P.current.focus())}),[F,s]),n.useEffect((()=>{r&&P.current.focus()}),[r]),n.useEffect((()=>{if(!m)return;const e=(0,rs.Z)(P.current).getElementById(m);if(e){const t=()=>{getSelection().isCollapsed&&P.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[m]);const $=(e,t)=>{e?S&&S(t):y&&y(t),V||(W(s?null:U.clientWidth),A(e))},K=n.Children.toArray(a),G=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(R)?R.slice():[];const t=R.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),R!==n&&(O(n),C)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:_}}),C(o,e)}v||$(!1,t)}},Z=null!==F&&T;let Q,Y;delete q["aria-invalid"];const X=[];let J=!1,ee=!1;(Ys({value:R})||h)&&(k?Q=k(R):J=!0);const te=K.map(((e,t,i)=>{var o,r,s,a;if(!n.isValidElement(e))return null;let l;if(v){if(!Array.isArray(R))throw new Error((0,As.Z)(2));l=R.some((t=>By(t,e.props.value))),l&&J&&X.push(e.props.children)}else l=By(R,e.props.value),l&&J&&(Y=e.props.children);return l&&(ee=!0),void 0===e.props.value?n.cloneElement(e,{"aria-readonly":!0,role:"option"}):n.cloneElement(e,{"aria-selected":l?"true":"false",onClick:G(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===(null==(o=i[0])||null==(r=o.props)?void 0:r.value)||!0===(null==(s=i[0])||null==(a=s.props)?void 0:a.disabled)?(()=>{if(R)return l;const t=i.find((e=>{var t;return void 0!==(null==e||null==(t=e.props)?void 0:t.value)&&!0!==e.props.disabled}));return e===t||l})():l,value:void 0,"data-value":e.props.value})}));J&&(Q=v?0===X.length?null:X.reduce(((e,t,n)=>(e.push(t),n<X.length-1&&e.push(", "),e)),[]):Y);let ne,ie=z;!s&&V&&F&&(ie=U.clientWidth),ne=void 0!==N?N:u?null:0;const oe=E.id||(_?`mui-component-select-${_}`:void 0),re=(0,ct.Z)({},e,{variant:I,value:R,open:Z}),se=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r}=e,s={select:["select",n,i&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,Mt.Z)(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return(0,ut.Z)(s,Ry,t)})(re);return(0,bt.jsxs)(n.Fragment,{children:[(0,bt.jsx)(My,(0,ct.Z)({ref:j,tabIndex:ne,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[m,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:e=>{L||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),$(!0,e))},onMouseDown:u||L?null:e=>{0===e.button&&(e.preventDefault(),P.current.focus(),$(!0,e))},onBlur:e=>{!Z&&b&&(Object.defineProperty(e,"target",{writable:!0,value:{value:R,name:_}}),b(e))},onFocus:w},E,{ownerState:re,className:(0,dt.Z)(E.className,se.select,l),id:oe,children:Vy(Q)?Ty||(Ty=(0,bt.jsx)("span",{className:"notranslate",children:"​"})):Q})),(0,bt.jsx)(Fy,(0,ct.Z)({value:Array.isArray(R)?R.join(","):R,name:_,ref:M,"aria-hidden":!0,onChange:e=>{const t=K.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=K[t];O(n.props.value),C&&C(e,n)},tabIndex:-1,disabled:u,className:se.nativeInput,autoFocus:r,ownerState:re},q)),(0,bt.jsx)(Py,{as:g,className:se.icon,ownerState:re}),(0,bt.jsx)(nC,(0,ct.Z)({id:`menu-${_||""}`,anchorEl:U,open:Z,onClose:e=>{$(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},f,{MenuListProps:(0,ct.Z)({"aria-labelledby":m,role:"listbox",disableListWrap:!0},f.MenuListProps),PaperProps:(0,ct.Z)({},f.PaperProps,{style:(0,ct.Z)({minWidth:ie},null!=f.PaperProps?f.PaperProps.style:null)}),children:te}))]})})),Wy=zy,Hy=(0,zn.Z)((0,bt.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var jy,Uy;const $y=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ky={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,mt.FO)(e)&&"variant"!==e,slot:"Root"},Gy=(0,mt.ZP)(UC,Ky)(""),Zy=(0,mt.ZP)(ua,Ky)(""),Qy=(0,mt.ZP)(XC,Ky)(""),Yy=n.forwardRef((function(e,t){const i=(0,pt.Z)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=Hy,id:u,input:h,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:v=!1,native:_=!1,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:S,variant:x="outlined"}=i,L=(0,lt.Z)(i,$y),k=_?qy:Wy,E=Is({props:i,muiFormControl:Ds(),states:["variant"]}).variant||x,N=h||{standard:jy||(jy=(0,bt.jsx)(Gy,{})),outlined:(0,bt.jsx)(Zy,{label:p}),filled:Uy||(Uy=(0,bt.jsx)(Qy,{}))}[E],D=(e=>{const{classes:t}=e;return t})((0,ct.Z)({},i,{variant:E,classes:s})),I=(0,fi.Z)(t,N.ref);return(0,bt.jsx)(n.Fragment,{children:n.cloneElement(N,(0,ct.Z)({inputComponent:k,inputProps:(0,ct.Z)({children:r,IconComponent:d,variant:E,type:void 0,multiple:v},_?{id:u}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:(0,ct.Z)({id:u},S)},g,{classes:g?(0,yn.Z)(D,g.classes):D},h?h.props.inputProps:{})},v&&_&&"outlined"===E?{notched:!0}:{},{ref:I,className:(0,dt.Z)(N.props.className,a)},!h&&{variant:E},L))})}));Yy.muiName="Select";const Xy=Yy;function Jy(e){return(0,vt.Z)("MuiTextField",e)}(0,ft.Z)("MuiTextField",["root"]);const ew=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],tw={standard:UC,filled:XC,outlined:ua},nw=(0,mt.ZP)(my,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iw=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:r,className:s,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:u,fullWidth:h=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:v,inputRef:_,label:b,maxRows:C,minRows:y,multiline:w=!1,name:S,onBlur:x,onChange:L,onFocus:k,placeholder:E,required:N=!1,rows:D,select:I=!1,SelectProps:q,type:R,value:O,variant:T="outlined"}=n,A=(0,lt.Z)(n,ew),M=(0,ct.Z)({},n,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:h,multiline:w,required:N,select:I,variant:T}),P=(e=>{const{classes:t}=e;return(0,ut.Z)({root:["root"]},Jy,t)})(M),F={};"outlined"===T&&(m&&void 0!==m.shrink&&(F.notched=m.shrink),F.label=b),I&&(q&&q.native||(F.id=void 0),F["aria-describedby"]=void 0);const B=(0,FC.Z)(p),V=g&&B?`${B}-helper-text`:void 0,z=b&&B?`${B}-label`:void 0,W=tw[T],H=(0,bt.jsx)(W,(0,ct.Z)({"aria-describedby":V,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:h,multiline:w,name:S,rows:D,maxRows:C,minRows:y,type:R,value:O,id:B,inputRef:_,onBlur:x,onChange:L,onFocus:k,placeholder:E,inputProps:f},F,v));return(0,bt.jsxs)(nw,(0,ct.Z)({className:(0,dt.Z)(P.root,s),disabled:c,error:d,fullWidth:h,ref:t,required:N,color:a,variant:T,ownerState:M},A,{children:[null!=b&&""!==b&&(0,bt.jsx)(dy,(0,ct.Z)({htmlFor:B,id:z},m,{children:b})),I?(0,bt.jsx)(Xy,(0,ct.Z)({"aria-describedby":V,id:B,labelId:z,value:O,input:H},q,{children:r})):H,g&&(0,bt.jsx)(wy,(0,ct.Z)({id:V},u,{children:g}))]}))})),ow=iw,rw="Search-gridContainer",sw="Search-gridItem",aw=(0,mt.ZP)(yo)((({theme:e})=>({[`& .${rw}`]:{padding:e.spacing(0,1,0,1)},[`& .${sw}`]:{padding:e.spacing(0,1,0,1)}})));function lw({onChange:e=(()=>{}),onEnter:t=(()=>{}),onEscape:i=(()=>{})}){const[o,r]=(0,n.useState)("");return n.createElement(aw,{className:rw,item:!0,container:!0,direction:"row",alignItems:"center"},n.createElement(yo,{item:!0},n.createElement(ym,null)),n.createElement(yo,{className:sw,item:!0,xs:!0},n.createElement(ow,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{r(t.target.value),e(t.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":t(),r("");break;case"Escape":i()}}})))}function cw({field:e,onSelect:t,sub:i,parts:o}){return n.createElement(Ir,{button:!0,onClick:()=>t(e.qName),"data-key":e.qName},n.createElement(Mr,null,o.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),i&&n.createElement(MC.Z,{fontSize:"small"}))}function dw({item:e,onSelect:t,parts:i}){return n.createElement(Ir,{button:!0,onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId},n.createElement(Mr,null,i.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function uw({aggr:e,field:t,onSelect:i}){return n.createElement(Ir,{button:!0,onClick:()=>i(e),"data-key":e},n.createElement(Mr,null,`${e}(${t})`))}function hw({app:e,onSelect:t,title:i="",type:o="dimension",searchTerm:r=""}){const[s]=kC(e,o),a=(0,n.useMemo)((()=>s.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[s]);return s.length>0?n.createElement(n.Fragment,null,n.createElement(qC,{component:"div",style:{backgroundColor:"inherit"}},i),a.map((e=>{const i=AC()(e.qData.title,r),o=OC()(e.qData.title,i);return r&&0===i.length?null:n.createElement(dw,{key:e.qInfo.qId,item:e,onSelect:t,parts:o})}))):null}function gw({alignTo:e,show:t,close:i,onSelected:o,type:r}){const s=(0,n.useContext)(yC),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(""),u=zt(),[h]=dc({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=lc(h),p=(0,n.useMemo)((()=>(g&&g.qFieldList.qItems||[]).slice().sort(((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())))),[g]),m=e=>{e&&e.qId?(o(e),i()):"measure"===r?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return n.createElement(Ad,{open:t,onClose:i,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:u.palette.background.lightest}}},!a&&n.createElement(lw,{onChange:d}),a&&n.createElement(gr,{dense:!0,component:"nav"},n.createElement(Ir,{button:!0,onClick:()=>l(null)},n.createElement(Up,null,n.createElement(PC.Z,null)),n.createElement(Mr,null,"Back")),n.createElement(kp,null),n.createElement(qC,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>n.createElement(uw,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&n.createElement(gr,{dense:!0,component:"nav",style:{background:u.palette.background.lightest}},n.createElement(hw,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),n.createElement(qC,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const t=AC()(e.qName,c),i=OC()(e.qName,t);return c&&0===t.length?null:n.createElement(cw,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:i})}))))}const pw=({field:e,libraryItems:t})=>{if(e.qLibraryId){const n=t.filter((t=>t.qInfo.qId===e.qLibraryId))[0];return n?n.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function mw({items:e,type:t="dimension",label:i="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),u=(0,n.useContext)(yC),[h]=kC(u,t);return n.createElement("div",null,n.createElement(No,{variant:"overline"},i),n.createElement(gr,{dense:!0},e.map(((e,i)=>n.createElement(Ir,{disableGutters:!0,key:e.qDef&&e.qDef.cId||i},n.createElement(Mr,null,n.createElement(pw,{field:e,libraryItems:h,type:t})),n.createElement(xr,null,n.createElement(lo,{onClick:()=>{s(i)},size:"large"},n.createElement(ar,null))))))),n.createElement(Ca,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&n.createElement(gw,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?r(e):e&&r("dimension"===t?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:t}))}function fw({setProperties:e,target:t,properties:i}){const[o,r]=(0,n.useState)([]),s=t.dimensions&&t.dimensions.max&&t.dimensions.max()>1?SC:wC,a=t.propertyPath.match("/qHyperCube")?Of:s,l=((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(i,t.propertyPath),c=(0,n.useMemo)((()=>a({def:t,dc:l,properties:i,dimensions:o})),[l,t,i,o]);return n.createElement("div",{style:{width:"100%"}},n.createElement(No,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},t.propertyPath),n.createElement(mw,{key:"dimensions",onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(n);e(i).then((()=>{r([...o,s])}))},onRemoved:t=>{c.removeDimension(t),e(i).then((()=>{r([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),n.createElement(mw,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(i)},onRemoved:t=>{c.removeMeasure(t),e(i)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function vw({setProperties:e,sn:t,properties:i}){if(!t)return null;const{targets:o}=t.qae.data;return o.length?n.createElement(gr,null,o.map((t=>n.createElement(Ir,{key:t.propertyPath,divider:!0,disableGutters:!0},n.createElement(fw,{target:t,properties:i,setProperties:e}))))):n.createElement(No,null,"No data targets found")}const _w=n.createContext({});function bw(e){return(0,vt.Z)("MuiAccordion",e)}const Cw=(0,ft.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),yw=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],ww=(0,mt.ZP)(xd,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cw.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${Cw.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Cw.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,ct.Z)({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${Cw.expanded}`]:{margin:"16px 0"}}))),Sw=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiAccordion"}),{children:o,className:r,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:u=!1,TransitionComponent:h=nr,TransitionProps:g}=i,p=(0,lt.Z)(i,yw),[m,f]=(0,Xd.Z)({controlled:c,default:s,name:"Accordion",state:"expanded"}),v=n.useCallback((e=>{f(!m),d&&d(e,!m)}),[m,d,f]),[_,...b]=n.Children.toArray(o),C=n.useMemo((()=>({expanded:m,disabled:a,disableGutters:l,toggle:v})),[m,a,l,v]),y=(0,ct.Z)({},i,{square:u,disabled:a,disableGutters:l,expanded:m}),w=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:r}=e,s={root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!r&&"gutters"],region:["region"]};return(0,ut.Z)(s,bw,t)})(y);return(0,bt.jsxs)(ww,(0,ct.Z)({className:(0,dt.Z)(w.root,r),ref:t,ownerState:y,square:u},p,{children:[(0,bt.jsx)(_w.Provider,{value:C,children:_}),(0,bt.jsx)(h,(0,ct.Z)({in:m,timeout:"auto"},g,{children:(0,bt.jsx)("div",{"aria-labelledby":_.props.id,id:_.props["aria-controls"],role:"region",className:w.region,children:b})}))]}))})),xw=Sw;function Lw(e){return(0,vt.Z)("MuiAccordionSummary",e)}const kw=(0,ft.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Ew=["children","className","expandIcon","focusVisibleClassName","onClick"],Nw=(0,mt.ZP)(no,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return(0,ct.Z)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${kw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${kw.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${kw.expanded}`]:{minHeight:64}})})),Dw=(0,mt.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${kw.expanded}`]:{margin:"20px 0"}}))),Iw=(0,mt.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${kw.expanded}`]:{transform:"rotate(180deg)"}}))),qw=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l}=i,c=(0,lt.Z)(i,Ew),{disabled:d=!1,disableGutters:u,expanded:h,toggle:g}=n.useContext(_w),p=(0,ct.Z)({},i,{expanded:h,disabled:d,disableGutters:u}),m=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e,r={root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,ut.Z)(r,Lw,t)})(p);return(0,bt.jsxs)(Nw,(0,ct.Z)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":h,className:(0,dt.Z)(m.root,r),focusVisibleClassName:(0,dt.Z)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:t,ownerState:p},c,{children:[(0,bt.jsx)(Dw,{className:m.content,ownerState:p,children:o}),s&&(0,bt.jsx)(Iw,{className:m.expandIconWrapper,ownerState:p,children:s})]}))})),Rw=qw;function Ow(e){return(0,vt.Z)("MuiAccordionDetails",e)}(0,ft.Z)("MuiAccordionDetails",["root"]);const Tw=["className"],Aw=(0,mt.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),Mw=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiAccordionDetails"}),{className:i}=n,o=(0,lt.Z)(n,Tw),r=n,s=(e=>{const{classes:t}=e;return(0,ut.Z)({root:["root"]},Ow,t)})(r);return(0,bt.jsx)(Aw,(0,ct.Z)({className:(0,dt.Z)(s.root,i),ref:t,ownerState:r},o))})),Pw=Mw;var Fw=s(59579);let Bw=null;const Vw="AutoComponents-summary",zw="AutoComponents-details",Ww="AutoComponents-root",Hw=(0,mt.ZP)(yo)((({theme:e})=>({[`& .${Vw}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${zw}`]:{padding:e.spacing(1)}}))),jw=(0,mt.ZP)(xw)((({theme:e})=>({[`& .${Ww}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),Uw={boolean:function({property:e,value:t,target:i,changed:o}){return n.createElement(Zd,{control:n.createElement(fu,{checked:t,onChange:t=>{i[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(t);return n.createElement(ow,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=r,o())},label:e,value:r})},object:function({property:e,value:t,changed:i,app:o}){return n.createElement(jw,{square:!0,className:Ww},n.createElement(Rw,{expandIcon:n.createElement(Fw.Z,null),className:Vw},n.createElement(No,null,e)),n.createElement(Pw,{className:zw},Gw(t,i,o)))},number:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(+t);return n.createElement(ow,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:t,target:i,changed:o}){const r=t.qStringExpression&&t.qStringExpression.qExpr?t.qStringExpression.qExpr:"",[s,a]=(0,n.useState)(r);return n.createElement(ow,{variant:"standard",InputProps:{startAdornment:n.createElement(Cm,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==t&&(i[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:t,target:i,changed:o,app:r}){const[s,a]=(0,n.useState)(t.name),[l,c]=(0,n.useState)([]);return(0,n.useEffect)((()=>{!async function(){const e=await async function(e){return Bw||(Bw=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await Bw.getLayout()).qVariableList.qItems.map((e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName})))}(r);c(e)}()}),[]),0===l.length?n.createElement("em",null,"No variables in app"):n.createElement(my,{size:"small",fullWidth:!0},n.createElement(Xy,{onChange:t=>{a(t.target.value),i[e].name=t.target.value,i[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:s,renderValue:e=>0===e.length?n.createElement("em",null,"Select a variable"):e},l.map((e=>n.createElement(zp,{key:e.value,value:e.value},e.label)))))}},$w=/^q[A-Z]/;let Kw=!1;function Gw(e,t,i,o){o&&o.PP_EXPRESSIONS&&(Kw=!0);const r=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if($w.test(t))return!1;const n=((e,t)=>Array.isArray(e)?"array":Kw&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":Kw&&e&&"object"==typeof e&&"qStringExpression"in e?"expression":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"number"==typeof e?"number":e&&"object"==typeof e?"object":"unknown")(e[t],t);return!!Uw[n]&&{Component:Uw[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return n.createElement(Hw,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map((o=>n.createElement(yo,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},n.createElement(o.Component,{key:o.key,app:i,property:o.property,value:o.value,target:e,changed:t})))))}function Zw({viz:e,sn:t,isTemp:i,storage:o,flags:r}){const[s,a]=CC(e.id),l=(0,n.useContext)(yC),[c,d]=(0,n.useState)(!1!==o.get("readFromCache")),u=(0,n.useCallback)((()=>{a(s)}),[e,t,s]);return t&&e&&s?n.createElement("div",{style:{minWidth:"250px",padding:"8px"}},i&&n.createElement(n.Fragment,null,n.createElement(yo,{item:!0,container:!0,alignItems:"center"},n.createElement(Zd,{control:n.createElement(fu,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),n.createElement(kp,null)),n.createElement(vw,{properties:s,setProperties:a,sn:t}),Gw(s,u,l,r)):null}function Qw(e){return(0,vt.Z)("MuiDialog",e)}const Yw=(0,ft.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Xw=(0,n.createContext)({}),Jw=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],eS=(0,mt.ZP)(gd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),tS=(0,mt.ZP)(_d,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),nS=(0,mt.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,Mt.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,ct.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),iS=(0,mt.ZP)(xd,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,Mt.Z)(n.scroll)}`],t[`paperWidth${(0,Mt.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,ct.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${Yw.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Yw.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Yw.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),oS=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiDialog"}),o=zt(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:u,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:f,onClose:v,open:_,PaperComponent:b=xd,PaperProps:C={},scroll:y="paper",TransitionComponent:w=ld,transitionDuration:S=r,TransitionProps:x}=i,L=(0,lt.Z)(i,Jw),k=(0,ct.Z)({},i,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:p,maxWidth:m,scroll:y}),E=(e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${(0,Mt.Z)(n)}`],paper:["paper",`paperScroll${(0,Mt.Z)(n)}`,`paperWidth${(0,Mt.Z)(String(i))}`,o&&"paperFullWidth",r&&"paperFullScreen"]};return(0,ut.Z)(s,Qw,t)})(k),N=n.useRef(),D=(0,FC.Z)(a),I=n.useMemo((()=>({titleId:D})),[D]);return(0,bt.jsx)(tS,(0,ct.Z)({className:(0,dt.Z)(E.root,u),closeAfterTransition:!0,components:{Backdrop:eS},componentsProps:{backdrop:(0,ct.Z)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:h,onClose:v,open:_,ref:t,onClick:e=>{N.current&&(N.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:k},L,{children:(0,bt.jsx)(w,(0,ct.Z)({appear:!0,in:_,timeout:S,role:"presentation"},x,{children:(0,bt.jsx)(nS,{className:(0,dt.Z)(E.container),onMouseDown:e=>{N.current=e.target===e.currentTarget},ownerState:k,children:(0,bt.jsx)(iS,(0,ct.Z)({as:b,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},C,{className:(0,dt.Z)(E.paper,C.className),ownerState:k,children:(0,bt.jsx)(Xw.Provider,{value:I,children:d})}))})}))}))})),rS=oS;function sS(e){return(0,vt.Z)("MuiDialogTitle",e)}const aS=(0,ft.Z)("MuiDialogTitle",["root"]),lS=["className","id"],cS=(0,mt.ZP)(No,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),dS=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiDialogTitle"}),{className:o,id:r}=i,s=(0,lt.Z)(i,lS),a=i,l=(e=>{const{classes:t}=e;return(0,ut.Z)({root:["root"]},sS,t)})(a),{titleId:c=r}=n.useContext(Xw);return(0,bt.jsx)(cS,(0,ct.Z)({component:"h2",className:(0,dt.Z)(l.root,o),ownerState:a,ref:t,variant:"h6",id:c},s))})),uS=dS;function hS(e){return(0,vt.Z)("MuiDialogContent",e)}(0,ft.Z)("MuiDialogContent",["root","dividers"]);const gS=["className","dividers"],pS=(0,mt.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,ct.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${aS.root} + &`]:{paddingTop:0}}))),mS=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,r=(0,lt.Z)(n,gS),s=(0,ct.Z)({},n,{dividers:o}),a=(e=>{const{classes:t,dividers:n}=e,i={root:["root",n&&"dividers"]};return(0,ut.Z)(i,hS,t)})(s);return(0,bt.jsx)(pS,(0,ct.Z)({className:(0,dt.Z)(a.root,i),ownerState:s,ref:t},r))})),fS=mS;function vS(e){return(0,vt.Z)("MuiDialogActions",e)}(0,ft.Z)("MuiDialogActions",["root","spacing"]);const _S=["className","disableSpacing"],bS=(0,mt.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,ct.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),CS=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,r=(0,lt.Z)(n,_S),s=(0,ct.Z)({},n,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:n}=e,i={root:["root",!n&&"spacing"]};return(0,ut.Z)(i,vS,t)})(s);return(0,bt.jsx)(bS,(0,ct.Z)({className:(0,dt.Z)(a.root,i),ownerState:s,ref:t},r))})),yS=CS;var wS=s(1599);function SS({model:e,show:t,close:i}){const[o,r]=(0,n.useState)(""),[s,a]=(0,n.useState)(null),[l,c]=(0,n.useState)([]),[d,u,h]=xc(),g=zt(),p=(0,n.useCallback)((()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(i)}));return(0,n.useEffect)((()=>{if(!t)return;const n=()=>{e&&t&&e.getProperties().then((e=>{t&&r(JSON.stringify(e||{},null,2))}))};return e.on("changed",n),n(),()=>{e&&e.removeListener("changed",n)}}),[e&&e.id,t]),(0,n.useEffect)((()=>{if(!(d&&h&&u&&o))return;const{left:e,top:t,width:n,height:i}=u;if(0===e&&0===t&&0===n&&0===i)return;const r=wS.editor.create(h,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});r.layout({width:u.width,height:u.height});const s=r.onDidChangeModelDecorations((()=>{const e=wS.editor.getModelMarkers();c(e)}));return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}}),[h,u,o]),n.createElement(rS,{disableEscapeKeyDown:!0,open:t,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}}},n.createElement(uS,null,"Modify object properties"),n.createElement(fS,{dividers:!0},n.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),n.createElement(yS,null,n.createElement(Ca,{variant:"contained",onClick:i},"Cancel"),n.createElement(Ca,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const xS=n.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),LS=n.createContext();function kS({id:e,onLoad:t}){const i=(0,n.useContext)(LS),o=(0,n.useRef)();return(0,n.useEffect)((()=>{const n=i.render({id:e,element:o.current});return n.then((e=>{t(e,o.current)})),()=>{n.then((e=>{e.destroy()}))}}),[e]),n.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const ES="Cell-secondaryIcon",NS="Cell-drop",DS=(0,mt.ZP)(yo)((({theme:e})=>({[`& .${ES}`]:{color:e.palette.text.secondary},[`& .${NS}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function IS({id:e,expandable:t,minHeight:i}){const o=(0,n.useContext)(yC),[r,s]=(0,n.useState)(null),[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(null),{currentThemeName:u,activeViz:h,setActiveViz:g,setExpandedObject:p,expandedObject:m}=(0,n.useContext)(xS),f=m===e,v=(0,n.useRef)();(0,n.useEffect)((()=>{const t=o.getObject(e).then((e=>(s(e),e)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[_,b]=(0,n.useState)(!1),C=(0,n.useCallback)((()=>{b(!1)}),[]),y=(0,n.useCallback)(((e,t)=>{v.current={viz:e,el:t},d(e)}),[e]),w=(0,n.useCallback)(((e=!1)=>{if(v.current)if(e)l(!0),v.current.viz.__DO_NOT_USE__.exportImage().then((e=>{e&&e.url&&window.open(e.url),l(!1)}));else{const e=v.current.el.getBoundingClientRect();v.current.viz.__DO_NOT_USE__.takeSnapshot().then((t=>{fetch("/njs/snapshot",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),window.open(`/render?snapshot=${t.key}`,"snapshot",`height=${Math.round(e.height)},width=${Math.round(e.width)}`)}))}}),[r,u]),S=!f&&v.current&&h&&h===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=h===c;return n.createElement(DS,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"}},n.createElement(yo,{item:!0},n.createElement(Ob,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},n.createElement(SS,{model:r,show:_,close:C}),n.createElement(lo,{title:"Modify object properties",className:ES,disabled:!r,onClick:()=>b(!0),size:"large"},sr({size:"medium",viewBox:"0 0 16 16",shapes:[{type:"path",attrs:{d:"M14,8 C14,8.2 14,8.4 14,8.6 L16,9.6 L15.4,11.4 L13.2,11 C13,11.3 12.8,11.7 12.5,12 L13.6,14 L12,15 L10.4,13.4 C10,13.5 9.7,13.7 9.3,13.8 L9,16 L7,16 L6.7,13.8 C6.3,13.7 5.9,13.6 5.6,13.4 L4,15 L2.4,13.9 L3.5,11.9 C3.2,11.6 3,11.3 2.8,10.9 L0.6,11.3 L0,9.6 L2,8.6 C2,8.4 2,8.2 2,8 C2,7.8 2,7.6 2,7.4 L0,6.4 L0.6,4.6 L2.8,5 C3,4.7 3.2,4.3 3.5,4 L2.4,2 L4,1 L5.6,2.6 C6,2.4 6.3,2.3 6.7,2.2 L7,0 L9,0 L9.3,2.2 C9.7,2.3 10.1,2.4 10.4,2.6 L12,1 L13.6,2.1 L12.5,4.1 C12.8,4.4 13,4.7 13.2,5.1 L15.4,4.7 L16,6.4 L14,7.4 C14,7.6 14,7.8 14,8 Z M8,11 C9.7,11 11,9.7 11,8 C11,6.3 9.7,5 8,5 C6.3,5 5,6.3 5,8 C5,9.7 6.3,11 8,11 Z"}}]})),n.createElement(lo,{title:"Open in single render view",className:ES,disabled:!r,href:r?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${r.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large"},sr({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})),n.createElement(lo,{title:"Take and render as snapshot",className:ES,disabled:!r,onClick:()=>w(),size:"large"},sr({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})),a?n.createElement(Ha,{size:24}):n.createElement(lo,{title:"Export as image",className:ES,disabled:!r,onClick:()=>w(!0),size:"large"},sr({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})),n.createElement(yo,{item:!0,xs:!0}),t&&n.createElement(lo,{title:"Edit",className:ES,disabled:!c||x,onClick:()=>g(c),size:"large"},sr({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})),t&&n.createElement(lo,{title:"Expand",disabled:!r||!c,className:ES,onClick:()=>{f?p(null):(p(e),g(c))},size:"large"},sr({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:f?"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z":"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}}]})))),n.createElement(yo,{item:!0,xs:!0,style:{...S},className:NS},n.createElement(kS,{id:e,onLoad:y})))}function qS({info:e,storage:t,uid:i}){const o=(0,n.useContext)(LS),{activeViz:r,setActiveViz:s}=(0,n.useContext)(xS),[a]=CC(i);return(0,n.useEffect)((()=>{if(!i)return;const n=o.render({type:e.supernova.name,properties:{...!1!==t.get("readFromCache")?t.props(e.supernova.name):{},qInfo:{qId:i,qType:e.supernova.name}}});return n.then((e=>{s(e)})),()=>{n.then((e=>e.destroy()))}}),[i]),(0,n.useEffect)((()=>{a&&t.props(e.supernova.name,a)}),[a]),r&&r.id===i?n.createElement(yo,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},n.createElement(yo,{item:!0,xs:!0},n.createElement(IS,{id:i}))):null}function RS({types:e,cache:t}){const i=(0,n.useContext)(yC),[o]=cc(i),[r,s]=(0,n.useState)(null),{expandedObject:a}=(0,n.useContext)(xS);if((0,n.useEffect)((()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then((e=>{s(e.slice(0,20))}))}),[o,e.join(":")]),!r)return null;const l=a?r.filter((e=>e.qInfo.qId===a)):r;return n.createElement(yo,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>n.createElement(yo,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${t}`},n.createElement(IS,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):n.createElement(yo,{item:!0},n.createElement("div",null,n.createElement(No,{display:"inline"},"Could not find any components with "),n.createElement(No,{display:"inline"},n.createElement("code",null,`qType: "${e[0]}"`)),n.createElement(No,{display:"inline"}," in the current app"))))}const OS=["en-US","it-IT","zh-CN","zh-TW","ko-KR","de-DE","sv-SE","es-ES","pt-BR","ja-JP","fr-FR","nl-NL","tr-TR","pl-PL","ru-RU"],TS=[];function AS(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive")}}function MS(){const e=(0,n.useRef)(),t=U(),{info:i}=Je(),{waiting:o,app:r}=(({info:e})=>{const[t,i]=(0,n.useState)(null),[o,r]=(0,n.useState)(!0);(0,n.useEffect)((()=>{r(!0),e&&s().then((e=>i(e))).catch((e=>console.log(e))).finally((()=>r(!1)))}),[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:n,enigma:i=null,enigma:{host:o}={}}=e;let r="";if(n){const t=await Xe({webIntegrationId:n,host:o});r=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/getSocketUrl/${e?.enigma.appId}`)).json();r=t}else r=ue().buildUrl(i);return(await le().create({schema:ce,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:t,setApp:i}})({info:i}),s=(0,n.useMemo)((()=>it(r)),[r]),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[u,h]=(0,n.useState)(null),[g,p]=(0,n.useState)(s.get("themeName")),[m,f]=(0,n.useState)(s.get("language")||"en-US"),[v,_]=(0,n.useState)("light"),[b,C]=(0,n.useState)(TS),[y,w]=(0,n.useState)(!0===s.get("objectListMode")),S=(0,n.useRef)(null),[x,L]=(0,n.useState)(),[k,E]=n.useState(null),[N,D]=n.useState(null),[I,q]=(0,n.useState)(null),R=Array.isArray(i?.themes)&&i.themes.length?["light","dark",...i.themes]:[],O=(0,n.useMemo)((()=>vn(v)),[v]),T=(0,n.useMemo)((()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d})),[a,c,g]);(0,n.useEffect)((()=>{i&&function(e){const t=()=>{_C(e.supernova.name,e.supernova.url).then((t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,bC[n]&&bC[n].forEach((e=>e()))})),e.types&&e.types.forEach((e=>{_C(e.name,e.url).then((t=>{window[e.name]=t}))}))};e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t()}(i)}),[i]),(0,n.useEffect)((()=>{if(o)return;const e=lb(r,{context:{theme:g,language:m,constraints:AS(b),keyboardNavigation:i?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:i?.flags,themes:i?.themes?i?.themes.map((e=>({id:e,load:()=>fetch(`/theme/${e}`).then((e=>e.json())).then((e=>(_("dark"===e.type?"dark":"light"),e)))}))):null});e.__DO_NOT_USE__.types.register(i?.supernova),i?.types&&i?.types.forEach((t=>{e.__DO_NOT_USE__.types.register(t)})),q(e)}),[r,i,o]),(0,n.useLayoutEffect)((()=>{I&&(I.context({theme:g}),"light"!==g&&"dark"!==g||_(g))}),[I,g]),(0,n.useEffect)((()=>{I&&(I.selections().then((e=>e.mount(S.current))),window.onHotChange(i?.supernova.name,(()=>{I.__DO_NOT_USE__.types.clearFromCache(i?.supernova.name),I.__DO_NOT_USE__.types.register(i?.supernova),A(),I.__DO_NOT_USE__.types.get({name:i?.supernova.name}).supernova().then(h)})),A())}),[I,i]),(0,n.useEffect)((()=>{const t=()=>{r&&r.destroySessionObject(e.current)};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[r]);const A=()=>{window[i?.supernova.name]&&(e.current=String(Date.now()),L(e.current))};return n.createElement(yC.Provider,{value:r},n.createElement(Xt,{injectFirst:!0},n.createElement(Qt,{theme:O},n.createElement(LS.Provider,{value:I},n.createElement(yo,{container:!0,wrap:"nowrap",direction:"column",style:{background:O.palette.background.darkest,height:"100%"},gap:0},n.createElement(yo,{item:!0},n.createElement(Ob,{variant:"dense",style:{background:O.palette.background.paper,boxShadow:O.shadows[1]}},n.createElement(yo,{container:!0,gap:1},n.createElement(yo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(yo,{item:!0},n.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},n.createElement("img",{src:"/assets/logo.svg",alt:"nebula.js logo",href:"https://github.com/qlik-oss/nebula.js",style:{height:"24px",position:"relative",top:"2px"}})))),n.createElement(yo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(lo,{title:"Home",onClick:()=>t("/"),size:"large"},n.createElement(xb.Z,{style:{verticalAlign:"middle"}}))),n.createElement(yo,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(vs,{value:y?1:0,onChange:(e,t)=>{const n=1===t;s.save("objectListMode",n),n&&(l(null),d(null)),w(n)},"aria-label":"Navigation"},n.createElement(Ss,{label:n.createElement(No,null,"Create"),value:0}),n.createElement(Ss,{label:n.createElement(No,null,"Edit"),value:1}))),n.createElement(yo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(yo,{item:!0},n.createElement(No,null,"Constraints")),n.createElement(yo,{item:!0,gap:1},n.createElement(Vb,{size:"small",value:b,onChange:(e,t)=>{C(t),I.context({constraints:AS(t)})}},n.createElement($b,{value:"select"},"Select"),n.createElement($b,{value:"active"},"Active"),n.createElement($b,{value:"passive"},"Passive"))),n.createElement(yo,{item:!0},R.length?n.createElement(n.Fragment,null,n.createElement(lo,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},n.createElement(Lb.Z,{fontSize:"small"})),n.createElement(nC,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},R.map((e=>n.createElement(zp,{key:e,selected:e===g,onClick:()=>(e=>{E(null),s.save("themeName",e),p(e)})(e)},e))))):n.createElement(lo,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?n.createElement(kb.Z,{fontSize:"small"}):n.createElement(Eb.Z,{fontSize:"small"}))),n.createElement(yo,{item:!0},n.createElement(Ca,{startIcon:n.createElement(Nb.Z,null),title:"Select language",onClick:e=>D(e.currentTarget)},m),n.createElement(nC,{anchorEl:N,open:!!N,keepMounted:!0,onClose:()=>D(null)},OS.map((e=>n.createElement(zp,{key:e,selected:e===m,onClick:()=>{return t=e,D(null),s.save("language",t),f(t),void I.context({language:t});var t}},e))))))))),n.createElement(yo,{item:!0,style:{padding:O.spacing(1,1,0,1)}},n.createElement("div",{ref:S,style:{flex:"0 0 auto",boxShadow:O.shadows[1]}})),n.createElement(yo,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:O.spacing(0,1,1,1)}},n.createElement(xS.Provider,{value:T},u?n.createElement(yo,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},n.createElement(yo,{item:!0,xs:!0,zeroMinWidth:!0},y?n.createElement(RS,{cache:x,types:[i?.supernova.name]}):n.createElement(qS,{info:i,storage:s,uid:x})),a&&n.createElement(yo,{item:!0,style:{background:O.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:O.shadows[1],padding:0}},n.createElement(Zw,{sn:u,viz:a,isTemp:!y,storage:s,flags:i?.flags}))):n.createElement(yo,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},n.createElement(yo,{item:!0},n.createElement(Ha,null))))))))))}const PS=()=>n.createElement(se,null,n.createElement(at,null,n.createElement(oe,null,n.createElement(ne,{element:n.createElement(gi,null)},n.createElement(ne,{path:"/",element:n.createElement(Da,null)}),n.createElement(ne,{path:"/app-list",element:n.createElement(ja,null)})),n.createElement(ne,{path:"/dev",element:n.createElement(MS,null)}))));o.s(document.querySelector("#app")).render(n.createElement(PS,null))})()})();
102
+ `),Fa))),Wa=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,u=(0,lt.Z)(n,qa),h=(0,ct.Z)({},n,{color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,r={root:["root",n,`color${(0,Mt.Z)(i)}`],svg:["svg"],circle:["circle",`circle${(0,Mt.Z)(n)}`,o&&"circleDisableShrink"]};return(0,ut.Z)(r,Ia,t)})(h),p={},m={},f={};if("determinate"===d){const e=2*Math.PI*((44-l)/2);p.strokeDasharray=e.toFixed(3),f["aria-valuenow"]=Math.round(c),p.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,bt.jsx)(Ba,(0,ct.Z)({className:(0,dt.Z)(g.root,i),style:(0,ct.Z)({width:s,height:s},m,a),ownerState:h,ref:t,role:"progressbar"},f,u,{children:(0,bt.jsx)(Va,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,bt.jsx)(za,{className:g.circle,style:p,ownerState:h,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))})),Ha=Wa,ja=()=>{const e=U(),t=j(),{info:i,glob:o,treatAsDesktop:r}=st(),{loading:s,appList:a}=(({glob:e,info:t})=>{const i=U(),{setInfo:o,setActiveStep:r}=st(),[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{r(1),Ye().then((e=>{o(e)}))}),[]),(0,n.useEffect)((()=>{if(s?.length)return;c(!0);const t=new URLSearchParams(window.location.search);t.get("qlik-client-id")&&!t.get("shouldFetchAppList")&&(async()=>{const{isAuthorized:e}=await(await fetch("/isAuthorized")).json();return{isAuthorized:e}})().then((({isAuthorized:e})=>{if(e){const e=new URL(window.location.href);e.search.includes("shouldFetchAppList")||e.searchParams.append("shouldFetchAppList",!0),i(decodeURIComponent(`${e.pathname}${e.search}`))}})),(t.get("shouldFetchAppList")?(async()=>await(await fetch("/apps")).json()||[])():e?.getDocList())?.then((e=>{a(e),e&&c(!1)}))}),[window.location.search,c,t,e]),{appList:s,loading:l}})({glob:o,info:i});return n.createElement(li,null,n.createElement(No,{variant:"h5",gutterBottom:!0},"Select an app"),s&&n.createElement(Ha,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&n.createElement(No,{component:"span"},"No apps found!"),a&&a.length>0&&n.createElement(gr,null,a.map((o=>n.createElement(Ir,{button:!0,component:"a",key:o.qDocId,onClick:()=>(({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,r=`${i.enigma.secure?"wss":"ws"}://${"localhost"===i.enigma.host?`${i.enigma.host}:${i.enigma.port}`:i.enigma.host}/app/${encodeURIComponent(n)}`;e(`/dev/${o.replace(i.engineUrl,r)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:t,targetApp:r?o.qDocName:o.qDocId})},n.createElement(Mr,{primary:o.qTitle,secondary:o.qDocId}))))))};s(16595);const Ua=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let i=e;const o={language:e=>(e&&(i=e),i),add:e=>{const{id:t,locale:i}=e;Object.keys(i).forEach((e=>{n[e]||(n[e]={}),n[e][t]=i[e]}))},get(e,o){let r;return r=n[i]&&void 0!==n[i][e]?n[i][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))})(r,o):r}};return o}({initial:e,fallback:t});return{translator:n}},$a=JSON.parse('{"Cancel":{"id":"Cancel","locale":{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},"CurrentSelections_All":{"id":"CurrentSelections.All","locale":{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},"CurrentSelections_Of":{"id":"CurrentSelections.Of","locale":{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},"Listbox_Dismiss":{"id":"Listbox.Dismiss","locale":{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},"Listbox_ItemsOverflow":{"id":"Listbox.ItemsOverflow","locale":{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},"Listbox_Lock":{"id":"Listbox.Lock","locale":{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},"Listbox_NoMatchesForYourTerms":{"id":"Listbox.NoMatchesForYourTerms","locale":{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},"Listbox_ResultFilterLabel":{"id":"Listbox.ResultFilterLabel","locale":{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},"Listbox_ScreenReaderInstructions":{"id":"Listbox.ScreenReaderInstructions","locale":{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L\'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L\'attivazione degli elementi sottostanti causerà l\'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},"Listbox_Search":{"id":"Listbox.Search","locale":{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},"Listbox_Search_ScreenReaderInstructions":{"id":"Listbox.Search.ScreenReaderInstructions","locale":{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},"Listbox_Unlock":{"id":"Listbox.Unlock","locale":{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},"Menu_More":{"id":"Menu.More","locale":{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},"Navigate_Back":{"id":"Navigate.Back","locale":{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},"Navigate_Forward":{"id":"Navigate.Forward","locale":{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},"OK":{"id":"OK","locale":{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},"Object_Update_Active":{"id":"Object.Update.Active","locale":{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},"Object_Update_Cancelled":{"id":"Object.Update.Cancelled","locale":{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},"Retry":{"id":"Retry","locale":{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},"Selection_Cancel":{"id":"Selection.Cancel","locale":{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},"Selection_Clear":{"id":"Selection.Clear","locale":{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},"Selection_ClearAll":{"id":"Selection.ClearAll","locale":{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},"Selection_ClearAllStates":{"id":"Selection.ClearAllStates","locale":{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},"Selection_Confirm":{"id":"Selection.Confirm","locale":{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},"Selection_Menu":{"id":"Selection.Menu","locale":{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":"Меню \\"Выборка\\"","sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},"Selection_SelectAll":{"id":"Selection.SelectAll","locale":{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},"Selection_SelectAlternative":{"id":"Selection.SelectAlternative","locale":{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},"Selection_SelectExcluded":{"id":"Selection.SelectExcluded","locale":{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},"Selection_SelectPossible":{"id":"Selection.SelectPossible","locale":{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},"Visualization_Incomplete":{"id":"Visualization.Incomplete","locale":{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},"Visualization_Incomplete_Dimensions":{"id":"Visualization.Incomplete.Dimensions","locale":{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},"Visualization_Incomplete_Measures":{"id":"Visualization.Incomplete.Measures","locale":{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},"Visualization_Invalid_Dimension":{"id":"Visualization.Invalid.Dimension","locale":{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},"Visualization_Invalid_Measure":{"id":"Visualization.Invalid.Measure","locale":{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},"Visualization_LayoutError":{"id":"Visualization.LayoutError","locale":{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},"Visualization_UnfulfilledCalculationCondition":{"id":"Visualization.UnfulfilledCalculationCondition","locale":{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}}');var Ka=s(25476),Ga=s.n(Ka);function Za(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Qa(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Ya(){}var Xa=.7,Ja=1/Xa,el="\\s*([+-]?\\d+)\\s*",tl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",il=/^#([0-9a-f]{3,8})$/,ol=new RegExp(`^rgb\\(${el},${el},${el}\\)$`),rl=new RegExp(`^rgb\\(${nl},${nl},${nl}\\)$`),sl=new RegExp(`^rgba\\(${el},${el},${el},${tl}\\)$`),al=new RegExp(`^rgba\\(${nl},${nl},${nl},${tl}\\)$`),ll=new RegExp(`^hsl\\(${tl},${nl},${nl}\\)$`),cl=new RegExp(`^hsla\\(${tl},${nl},${nl},${tl}\\)$`),dl={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ul(){return this.rgb().formatHex()}function hl(){return this.rgb().formatRgb()}function gl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=il.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?pl(t):3===n?new _l(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ml(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ml(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ol.exec(e))?new _l(t[1],t[2],t[3],1):(t=rl.exec(e))?new _l(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sl.exec(e))?ml(t[1],t[2],t[3],t[4]):(t=al.exec(e))?ml(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ll.exec(e))?xl(t[1],t[2]/100,t[3]/100,1):(t=cl.exec(e))?xl(t[1],t[2]/100,t[3]/100,t[4]):dl.hasOwnProperty(e)?pl(dl[e]):"transparent"===e?new _l(NaN,NaN,NaN,0):null}function pl(e){return new _l(e>>16&255,e>>8&255,255&e,1)}function ml(e,t,n,i){return i<=0&&(e=t=n=NaN),new _l(e,t,n,i)}function fl(e){return e instanceof Ya||(e=gl(e)),e?new _l((e=e.rgb()).r,e.g,e.b,e.opacity):new _l}function vl(e,t,n,i){return 1===arguments.length?fl(e):new _l(e,t,n,null==i?1:i)}function _l(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function bl(){return`#${Sl(this.r)}${Sl(this.g)}${Sl(this.b)}`}function Cl(){const e=yl(this.opacity);return`${1===e?"rgb(":"rgba("}${wl(this.r)}, ${wl(this.g)}, ${wl(this.b)}${1===e?")":`, ${e})`}`}function yl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Sl(e){return((e=wl(e))<16?"0":"")+e.toString(16)}function xl(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new kl(e,t,n,i)}function Ll(e){if(e instanceof kl)return new kl(e.h,e.s,e.l,e.opacity);if(e instanceof Ya||(e=gl(e)),!e)return new kl;if(e instanceof kl)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new kl(s,a,l,e.opacity)}function kl(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function El(e){return(e=(e||0)%360)<0?e+360:e}function Nl(e){return Math.max(0,Math.min(1,e||0))}function Dl(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Za(Ya,gl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ul,formatHex:ul,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ll(this).formatHsl()},formatRgb:hl,toString:hl}),Za(_l,vl,Qa(Ya,{brighter(e){return e=null==e?Ja:Math.pow(Ja,e),new _l(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Xa:Math.pow(Xa,e),new _l(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _l(wl(this.r),wl(this.g),wl(this.b),yl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bl,formatHex:bl,formatHex8:function(){return`#${Sl(this.r)}${Sl(this.g)}${Sl(this.b)}${Sl(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Cl,toString:Cl})),Za(kl,(function(e,t,n,i){return 1===arguments.length?Ll(e):new kl(e,t,n,null==i?1:i)}),Qa(Ya,{brighter(e){return e=null==e?Ja:Math.pow(Ja,e),new kl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Xa:Math.pow(Xa,e),new kl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new _l(Dl(e>=240?e-240:e+120,o,i),Dl(e,o,i),Dl(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new kl(El(this.h),Nl(this.s),Nl(this.l),yl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=yl(this.opacity);return`${1===e?"hsl(":"hsla("}${El(this.h)}, ${100*Nl(this.s)}%, ${100*Nl(this.l)}%${1===e?")":`, ${e})`}`}}));var Il=s(34415),ql=s.n(Il);const Rl=JSON.parse('{"fontSize":"13px","fontFamily":"\'Source Sans Pro\', \'Arial\', \'sans-serif\'","backgroundColor":"transparent","dataColors":{"primaryColor":"#26a0a7","othersColor":"#a5a5a5","errorColor":"#ff4444","nullColor":"#d2d2d2"},"scales":[{"name":"Sequential Gradient","translation":"properties.colorScheme.sequential","type":"gradient","propertyValue":"sg","scale":["#26a0a7","#c7ea8b"]},{"name":"Sequential Classes","translation":"properties.colorScheme.sequentialC","propertyValue":"sc","type":"class","scale":["#26a0a7","#c7ea8b"]},{"name":"Diverging gradient","translation":"properties.colorScheme.diverging","propertyValue":"dg","type":"gradient","scale":["#26a0a7","#c3ea8c","#ec983d"]},{"name":"Diverging Classes","translation":"properties.colorScheme.divergingC","propertyValue":"dc","type":"class","scale":["#26a0a7","#c3ea8c","#ec983d"]}],"palettes":{"data":[{"name":"12 Colors","translation":"properties.colorNumberOfColors.12","propertyValue":"12","type":"pyramid","scale":[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],"ui":[{"name":"Palette","colors":["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}}'),Ol=JSON.parse('{"_variables":{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},"type":"light","color":"@B35"}'),Tl=JSON.parse('{"_variables":{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},"type":"dark","color":"@B98"}');function Al(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function Ml(e,t,n){const i=[],o=new class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=gl(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([gl(e),gl(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const i=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(i);o=o===i?o-1:o;const r=this.colorParts[t][o],s=r[0],a=r[1];if(e===this.min)return a;if(e===this.max)return s;const l=function(e,t,n){return vl(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(s,a,i-o);return l}}(t);i.push(e[0]),n||i.push(e[0]);let r=1;for(;r<e.length-1;r++)i.push(e[r]),i.push(e[r]);i.push(e[r]),n||i.push(e[r]);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function Pl(e,t,n){const i=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const i=Al(1/t*o,t,n);r=e.getColor(i);break}}i.push(gl(r).formatHex())}return i}function Fl(e,t){const n=[];let i,o;if(e){let r=e.length;for(;r>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),r--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function Bl(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function Vl(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=Fl(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=Bl(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function zl(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?zl(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function Wl(e){const t=gl(e).rgb(),{r:n,g:i,b:o}=t,[r,s,a]=[n,i,o].map((e=>e/255)),[l,c,d]=[r,s,a].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*d).toFixed(5)}function Hl(){let e,t,n,i={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(i[t]||(i[t]=Vl(t,e)),i[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const i=gl(...e);return i?i.toString():void 0}},r={setTheme(r,s){e=function(e,t){const n="dark"===e.type?Tl:Ol,i=ql()(!0,{},Rl,n),o=ql()(!0,{},i,{scales:null,palettes:{data:null,ui:null}},e);return o.palettes.data&&o.palettes.data.length||(o.palettes.data=i.palettes.data),o.palettes.ui&&o.palettes.ui.length||(o.palettes.ui=i.palettes.ui),o.scales&&o.scales.length||(o.scales=i.scales),t(o)}(r,Vl.resolveRawTheme),i={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const a=o.getStyle("","","color"),l=Wl(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(Wl);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const r=Wl(o),s=i.map((e=>{return t=r,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),a=e[s.indexOf(Math.max(...s))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(Ga().prototype).forEach((e=>{o[e]=Ga().prototype[e]})),Ga().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}Vl.resolveRawTheme=e=>{const t=ql()(!0,{},e);return zl(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const i=Ml(e,n,!0),o=Ml(Pl(i,t-1,t),n,!1),r=[null];for(let e=0;e<t;e++)r.push(Pl(o,e,t));return r}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const jl=n.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),Ul=(e={},t=(()=>{}))=>{const i=e,o=[],r={get:e=>i[e],set:(e,n)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return i[e]=n,t({type:"SET",value:n}),n},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);i[e]=null},dispatch:e=>{o.forEach((t=>t(e?{}:i)))}};return[()=>{const[,e]=(0,n.useState)(i);return(0,n.useEffect)((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[r]},r]},[$l,Kl]=Ul({}),[Gl,Zl]=Ul({}),[Ql,Yl]=Ul({}),[Xl,Jl]=Ul({}),[ec,tc]=Ul({}),[,nc]=Ul({}),ic=({type:e,value:t})=>{const n=nc.get(t.id);nc.set(t.id,{});const i=()=>{Zl.clear(t.id),tc.set(t.id,{}),tc.dispatch(!0)},o=()=>{t.removeListener("changed",i),Kl.clear(t.id),Zl.clear(t.id),Yl.clear(t.id),Jl.clear(t.id),tc.clear(t.id),nc.clear(t.id)};return"SET"===e&&(n||(t.on("changed",i),t.once("closed",(()=>{o()})))),o},[oc,rc]=Ul({},ic),sc=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let r;switch(t.type){case"INVALID":r={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":r={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":r={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let s=n.get(i);return s||(s={}),s[o]=r,n.set(i,s),r};function ac(e,t){const i=e?`${e.id}`:null,[o]=$l(),[r,s]=(0,n.useReducer)(sc,i?o.get(i):null),[a]=ec(),[l]=Gl();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async n=>{let r=c[t];(!r||r&&r.rpcRetry)&&(r={rpc:e[t](),rpcRetry:!1},c[t]=r,s({type:"INVALID",method:t,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{const n=await r.rpc;s({type:"VALID",result:n,key:i,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||n||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},u={cancel:async()=>{const n=e.session.getObjectApi({handle:-1});await n.cancelRequest(c[t].rpc.requestId),s({type:"CANCELLED",key:i,method:t,model:e,rpcResultStore:o})},retry:()=>{c[t].rpcRetry=!0,d()}};return(0,n.useEffect)((()=>{e&&d()}),[e,a.get(e&&e.id),i,t]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},u]}function lc(e){return ac(e,"getLayout")}function cc(e){return ac(e,"getAppLayout")}function dc(e,t,...i){const o=t?`${t.id}/${JSON.stringify(e)}`:null,[r]=oc(),[s]=Ql(),[a,l]=(0,n.useState)();let c;return o&&(c=s.get(o)),(0,n.useEffect)((()=>{t&&(async()=>{if(!c){const n=t.createSessionObject(e);c=n,s.set(o,c)}const n=await c;r.set(o,n),l(n)})()}),[t,...i]),[a]}const uc={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function hc(e){return dc(uc,e)}function gc(e){const[t]=hc(e),[i]=lc(t),[o]=cc(e),[r,s]=(0,n.useState)(null);return(0,n.useEffect)((()=>{o&&t&&i&&((e,t,n)=>{const i=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(i)}],!0)})(t,i,o)}),[o,t,i]),(0,n.useEffect)((()=>{if(!i)return;let e=!1,t=!1,n=!1;[i,...i.alternateStates||[]].forEach((i=>{e=e||i.qSelectionObject&&i.qSelectionObject.qBackCount>0,t=t||i.qSelectionObject&&i.qSelectionObject.qForwardCount>0,n=n||(i.qSelectionObject&&i.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[i]),[r,t,i]}const[pc,mc]=Ul({}),[fc,vc]=Ul({}),[_c,bc]=Ul({}),[Cc,yc]=Ul({});function wc(e){if(!e.session)return[];const[t,i,o]=gc(e),[r]=pc(),s=e?e.id:null;let a=r.get(s);return(0,n.useEffect)((()=>{e&&i&&o&&t&&!a&&(a=function({app:e,currentSelectionsLayout:t,navState:n}){const i=`${e.id}`,o=async(e=!0)=>{const t=yc.get(i);t&&(await t.endSelections(e),yc.clear(i),bc.get(t.id).emit("deactivated"))},r={begin:async(t,n,r=!0)=>{if(t===yc.get(i))return;o(r),yc.set(i,t);const s=Array.isArray(n)?n:[n],a=async n=>{try{await t.beginSelections(s),yc.set(i,t)}catch(t){6003!==t.code||n?yc.clear(i):(await e.abortModal(r),a(!0))}};await a()},end:o};return vc.set(i,r),{model:e,isInModal:()=>!!yc.get(i),isModal:e=>e?yc.get(i)===e:!!yc.get(i),canGoForward:()=>n.canGoForward,canGoBack:()=>n.canGoBack,canClear:()=>n.canClear,layout:()=>t,forward:()=>r.end().then((()=>e.forward())),back:()=>r.end().then((()=>e.back())),clear:()=>r.end().then((()=>e.clearAll())),clearField:(t,n="$")=>r.end().then((()=>e.getField(t,n).then((e=>e.clear()))))}}({app:e,currentSelectionsLayout:o,navState:t}),r.set(s,a),r.dispatch(!0))}),[e,i,o,t]),[a,t]}const Sc=(0,n.forwardRef)((({initialContext:e,app:t},i)=>{const[o]=wc(t),[r,s]=(0,n.useState)(e),[a,l]=(0,n.useState)(),{theme:c}=(0,n.useMemo)((()=>({theme:vn(a)})),[a]),[d,u]=(0,n.useState)([]);return(0,n.useImperativeHandle)(i,(()=>({addComponent(e){u([...d,e])},removeComponent(e){const t=d.indexOf(e);-1!==t&&(d.splice(t,1),u([...d]))},setMuiThemeName:l,setContext:s,getAppSelections:()=>o}))),n.createElement(Xt,{injectFirst:!0},n.createElement(Qt,{theme:c},n.createElement(jl.Provider,{value:r},d)))}));function xc(){const[e,t]=(0,n.useState)(),[i,o]=(0,n.useState)(),r=(0,n.useCallback)((e=>{e&&t(e)}),[]),s=()=>{const{left:t,top:n,width:i,height:r}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:r})};return(0,n.useLayoutEffect)((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(s);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}}),[e]),[r,i,e]}const Lc=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e)),kc=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e)),Ec=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Nc(e){return`scale(${e}, ${e**2})`}const Dc={entering:{opacity:1,transform:Nc(1)},entered:{opacity:1,transform:"none"}},Ic="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),qc=n.forwardRef((function(e,t){const{addEndListener:i,appear:o=!0,children:r,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:u,onExited:h,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=$o}=e,v=(0,lt.Z)(e,Ec),_=n.useRef(),b=n.useRef(),C=zt(),y=n.useRef(null),w=(0,fi.Z)(y,r.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},x=S(d),L=S(((e,t)=>{Go(e);const{duration:n,delay:i,easing:o}=Zo({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=n,e.style.transition=[C.transitions.create("opacity",{duration:r,delay:i}),C.transitions.create("transform",{duration:Ic?r:.666*r,delay:i,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(g),N=S((e=>{const{duration:t,delay:n,easing:i}=Zo({style:p,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[C.transitions.create("opacity",{duration:o,delay:n}),C.transitions.create("transform",{duration:Ic?o:.666*o,delay:Ic?n:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Nc(.75),u&&u(e)})),D=S(h);return n.useEffect((()=>()=>{clearTimeout(_.current)}),[]),(0,bt.jsx)(f,(0,ct.Z)({appear:o,in:a,nodeRef:y,onEnter:L,onEntered:k,onEntering:x,onExit:N,onExited:D,onExiting:E,addEndListener:e=>{"auto"===m&&(_.current=setTimeout(e,b.current||0)),i&&i(y.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>n.cloneElement(r,(0,ct.Z)({style:(0,ct.Z)({opacity:0,transform:Nc(.75),visibility:"exited"!==e||a?void 0:"hidden"},Dc[e],p,r.props.style),ref:w},t))}))}));qc.muiSupportAuto=!0;const Rc=qc;var Oc=s(67653),Tc=s(69781),Ac=s(24784),Mc=s(44068);const Pc=n.forwardRef((function(e,t){const{children:i,container:o,disablePortal:r=!1}=e,[s,a]=n.useState(null),l=(0,Fs.Z)(n.isValidElement(i)?i.ref:null,t);if((0,zs.Z)((()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),(0,zs.Z)((()=>{if(s&&!r)return(0,Mc.Z)(t,s),()=>{(0,Mc.Z)(t,null)}}),[t,s,r]),r){if(n.isValidElement(i)){const e={ref:l};return n.cloneElement(i,e)}return(0,bt.jsx)(n.Fragment,{children:i})}return(0,bt.jsx)(n.Fragment,{children:s?Fo.createPortal(i,s):s})}));function Fc(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Bc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Vc(e){return parseInt((0,Bs.Z)(e).getComputedStyle(e).paddingRight,10)||0}function zc(e,t,n,i,o){const r=[t,n,...i];[].forEach.call(e.children,(e=>{const t=-1===r.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Bc(e,o)}))}function Wc(e,t){let n=-1;return e.some(((e,i)=>!!t(e)&&(n=i,!0))),n}const Hc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jc(e){const t=[],n=[];return Array.from(e.querySelectorAll(Hc)).forEach(((e,i)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:i,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Uc(){return!0}const $c=function(e){const{children:t,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=jc,isEnabled:a=Uc,open:l}=e,c=n.useRef(!1),d=n.useRef(null),u=n.useRef(null),h=n.useRef(null),g=n.useRef(null),p=n.useRef(!1),m=n.useRef(null),f=(0,Fs.Z)(t.ref,m),v=n.useRef(null);n.useEffect((()=>{l&&m.current&&(p.current=!i)}),[i,l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,Oc.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{r||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}}),[l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,Oc.Z)(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!o&&a()&&!c.current){if(!n.contains(e.activeElement)){if(t&&g.current!==t.target||e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let o=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(o=s(m.current)),o.length>0){var i,r;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(r=v.current)?void 0:r.key)),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else c.current=!1},n=t=>{v.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[i,o,r,a,l,s]);const _=e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0};return(0,bt.jsxs)(n.Fragment,{children:[(0,bt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:f,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0,g.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,bt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:u,"data-testid":"sentinelEnd"})]})};function Kc(e){return(0,vt.Z)("MuiModal",e)}function Gc(e,t,n){return void 0===e||pr(e)?t:Ms({},t,{ownerState:Ms({},t.ownerState,n)})}function Zc(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Zc(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}(0,ft.Z)("MuiModal",["root","hidden"]);const Qc=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Zc(e))&&(i&&(i+=" "),i+=t);return i};function Yc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Xc(e,t){return"function"==typeof e?e(t):e}const Jc=["elementType","externalSlotProps","ownerState"];function ed(e){var t;const{elementType:n,externalSlotProps:i,ownerState:o}=e,r=Ps(e,Jc),s=Xc(i,o),{props:a,internalRef:l}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:r}=e;if(!t){const e=Qc(null==o?void 0:o.className,null==i?void 0:i.className,r,null==n?void 0:n.className),t=Ms({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),s=Ms({},n,o,i);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(Ms({},o,i)),a=Yc(i),l=Yc(o),c=t(s),d=Qc(null==c?void 0:c.className,null==n?void 0:n.className,r,null==o?void 0:o.className,null==i?void 0:i.className),u=Ms({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),h=Ms({},c,n,l,a);return d.length>0&&(h.className=d),Object.keys(u).length>0&&(h.style=u),{props:h,internalRef:c.ref}}(Ms({},r,{externalSlotProps:s}));return Gc(n,Ms({},a,{ref:(0,Fs.Z)(l,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const td=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],nd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Bc(e.modalRef,!1);const i=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);zc(t,e.mount,e.modalRef,i,!0);const o=Wc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=Wc(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[n];i.restore||(i.restore=function(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Oc.Z)(e);return t.body===e?(0,Bs.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=Fc((0,Oc.Z)(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Vc(i)+e}px`;const t=(0,Oc.Z)(i).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Vc(t)+e}px`}))}let e;if(i.parentNode instanceof DocumentFragment)e=(0,Oc.Z)(i).body;else{const t=i.parentElement,n=(0,Bs.Z)(i);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:i}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const i=Wc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Bc(e.modalRef,t),zc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Bc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},id=n.forwardRef((function(e,t){var i,o;const{children:r,classes:s,closeAfterTransition:a=!1,component:l,container:c,disableAutoFocus:d=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:p=!1,disableScrollLock:m=!1,hideBackdrop:f=!1,keepMounted:v=!1,manager:_=nd,onBackdropClick:b,onClose:C,onKeyDown:y,open:w,onTransitionEnter:S,onTransitionExited:x,slotProps:L={},slots:k={}}=e,E=Ps(e,td),[N,D]=n.useState(!w),I=n.useRef({}),q=n.useRef(null),R=n.useRef(null),O=(0,Fs.Z)(R,t),T=function(e){return!!e&&e.props.hasOwnProperty("in")}(r),A=null==(i=e["aria-hidden"])||i,M=()=>(I.current.modalRef=R.current,I.current.mountNode=q.current,I.current),P=()=>{_.mount(M(),{disableScrollLock:m}),R.current&&(R.current.scrollTop=0)},F=(0,Tc.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(c)||(0,Oc.Z)(q.current).body;_.add(M(),e),R.current&&P()})),B=n.useCallback((()=>_.isTopModal(M())),[_]),V=(0,Tc.Z)((e=>{q.current=e,e&&R.current&&(w&&B()?P():Bc(R.current,A))})),z=n.useCallback((()=>{_.remove(M(),A)}),[_,A]);n.useEffect((()=>()=>{z()}),[z]),n.useEffect((()=>{w?F():T&&a||z()}),[w,z,T,a,F]);const W=Ms({},e,{classes:s,closeAfterTransition:a,disableAutoFocus:d,disableEnforceFocus:u,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:p,disableScrollLock:m,exited:N,hideBackdrop:f,keepMounted:v}),H=(e=>{const{open:t,exited:n,classes:i}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,ut.Z)(o,Kc,i)})(W),j={};void 0===r.props.tabIndex&&(j.tabIndex="-1"),T&&(j.onEnter=(0,Ac.Z)((()=>{D(!1),S&&S()}),r.props.onEnter),j.onExited=(0,Ac.Z)((()=>{D(!0),x&&x(),a&&z()}),r.props.onExited));const U=null!=(o=null!=l?l:k.root)?o:"div",$=ed({elementType:U,externalSlotProps:L.root,externalForwardedProps:E,additionalProps:{ref:O,role:"presentation",onKeyDown:e=>{y&&y(e),"Escape"===e.key&&B()&&(h||(e.stopPropagation(),C&&C(e,"escapeKeyDown")))}},className:H.root,ownerState:W}),K=k.backdrop,G=ed({elementType:K,externalSlotProps:L.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(b&&b(e),C&&C(e,"backdropClick"))},open:w},className:H.backdrop,ownerState:W});return v||w||T&&!N?(0,bt.jsx)(Pc,{ref:V,container:c,disablePortal:g,children:(0,bt.jsxs)(U,Ms({},$,{children:[!f&&K?(0,bt.jsx)(K,Ms({},G)):null,(0,bt.jsx)($c,{disableEnforceFocus:u,disableAutoFocus:d,disableRestoreFocus:p,isEnabled:B,open:w,children:n.cloneElement(r,j)})]}))}):null})),od=id,rd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sd={entering:{opacity:1},entered:{opacity:1}},ad=n.forwardRef((function(e,t){const i=zt(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:u,onEntering:h,onExit:g,onExited:p,onExiting:m,style:f,timeout:v=o,TransitionComponent:_=$o}=e,b=(0,lt.Z)(e,rd),C=n.useRef(null),y=(0,fi.Z)(C,a.ref,t),w=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},S=w(h),x=w(((e,t)=>{Go(e);const n=Zo({style:f,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",n),e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)})),L=w(u),k=w(m),E=w((e=>{const t=Zo({style:f,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)})),N=w(p);return(0,bt.jsx)(_,(0,ct.Z)({appear:s,in:c,nodeRef:C,onEnter:x,onEntered:L,onEntering:S,onExit:E,onExited:N,onExiting:k,addEndListener:e=>{r&&r(C.current,e)},timeout:v},b,{children:(e,t)=>n.cloneElement(a,(0,ct.Z)({style:(0,ct.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},sd[e],f,a.props.style),ref:y},t))}))})),ld=ad;function cd(e){return(0,vt.Z)("MuiBackdrop",e)}(0,ft.Z)("MuiBackdrop",["root","invisible"]);const dd=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],ud=(0,mt.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,ct.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),hd=n.forwardRef((function(e,t){var n,i,o;const r=(0,pt.Z)({props:e,name:"MuiBackdrop"}),{children:s,component:a="div",components:l={},componentsProps:c={},className:d,invisible:u=!1,open:h,slotProps:g={},slots:p={},transitionDuration:m,TransitionComponent:f=ld}=r,v=(0,lt.Z)(r,dd),_=(0,ct.Z)({},r,{component:a,invisible:u}),b=(e=>{const{classes:t,invisible:n}=e,i={root:["root",n&&"invisible"]};return(0,ut.Z)(i,cd,t)})(_),C=null!=(n=g.root)?n:c.root;return(0,bt.jsx)(f,(0,ct.Z)({in:h,timeout:m},v,{children:(0,bt.jsx)(ud,(0,ct.Z)({"aria-hidden":!0},C,{as:null!=(i=null!=(o=p.root)?o:l.Root)?i:a,className:(0,dt.Z)(b.root,d,null==C?void 0:C.className),ownerState:(0,ct.Z)({},_,null==C?void 0:C.ownerState),classes:b,ref:t,children:s}))}))})),gd=hd,pd=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],md=(0,mt.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,ct.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),fd=(0,mt.ZP)(gd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vd=n.forwardRef((function(e,t){var i,o,r,s,a,l;const c=(0,pt.Z)({name:"MuiModal",props:e}),{BackdropComponent:d=fd,BackdropProps:u,closeAfterTransition:h=!1,children:g,component:p,components:m={},componentsProps:f={},disableAutoFocus:v=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:b=!1,disablePortal:C=!1,disableRestoreFocus:y=!1,disableScrollLock:w=!1,hideBackdrop:S=!1,keepMounted:x=!1,slotProps:L,slots:k,theme:E}=c,N=(0,lt.Z)(c,pd),[D,I]=n.useState(!0),q={closeAfterTransition:h,disableAutoFocus:v,disableEnforceFocus:_,disableEscapeKeyDown:b,disablePortal:C,disableRestoreFocus:y,disableScrollLock:w,hideBackdrop:S,keepMounted:x},R=(0,ct.Z)({},c,q,{exited:D}),O=(e=>e.classes)(R),T=null!=(i=null!=(o=null==k?void 0:k.root)?o:m.Root)?i:md,A=null!=(r=null!=(s=null==k?void 0:k.backdrop)?s:m.Backdrop)?r:d,M=null!=(a=null==L?void 0:L.root)?a:f.root,P=null!=(l=null==L?void 0:L.backdrop)?l:f.backdrop;return(0,bt.jsx)(od,(0,ct.Z)({slots:{root:T,backdrop:A},slotProps:{root:()=>(0,ct.Z)({},Xc(M,R),!pr(T)&&{as:p,theme:E}),backdrop:()=>(0,ct.Z)({},u,Xc(P,R))},onTransitionEnter:()=>I(!1),onTransitionExited:()=>I(!0),ref:t},N,{classes:O},q,{children:g}))})),_d=vd,bd=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Cd(e){return(0,vt.Z)("MuiPaper",e)}(0,ft.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const yd=["className","component","elevation","square","variant"],wd=(0,mt.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,ct.Z)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,ct.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,mi.Fq)("#fff",bd(t.elevation))}, ${(0,mi.Fq)("#fff",bd(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Sd=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiPaper"}),{className:i,component:o="div",elevation:r=1,square:s=!1,variant:a="elevation"}=n,l=(0,lt.Z)(n,yd),c=(0,ct.Z)({},n,{component:o,elevation:r,square:s,variant:a}),d=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e,r={root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]};return(0,ut.Z)(r,Cd,o)})(c);return(0,bt.jsx)(wd,(0,ct.Z)({as:o,ownerState:c,className:(0,dt.Z)(d.root,i),ref:t},l))})),xd=Sd;function Ld(e){return(0,vt.Z)("MuiPopover",e)}(0,ft.Z)("MuiPopover",["root","paper"]);const kd=["onEntering"],Ed=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Nd(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Dd(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Id(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function qd(e){return"function"==typeof e?e():e}const Rd=(0,mt.ZP)(_d,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Od=(0,mt.ZP)(xd,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Td=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiPopover"}),{action:o,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:d,container:u,elevation:h=8,marginThreshold:g=16,open:p,PaperProps:m={},transformOrigin:f={vertical:"top",horizontal:"left"},TransitionComponent:v=Rc,transitionDuration:_="auto",TransitionProps:{onEntering:b}={}}=i,C=(0,lt.Z)(i.TransitionProps,kd),y=(0,lt.Z)(i,Ed),w=n.useRef(),S=(0,fi.Z)(w,m.ref),x=(0,ct.Z)({},i,{anchorOrigin:s,anchorReference:l,elevation:h,marginThreshold:g,PaperProps:m,transformOrigin:f,TransitionComponent:v,transitionDuration:_,TransitionProps:C}),L=(e=>{const{classes:t}=e;return(0,ut.Z)({root:["root"],paper:["paper"]},Ld,t)})(x),k=n.useCallback((()=>{if("anchorPosition"===l)return a;const e=qd(r),t=(e&&1===e.nodeType?e:(0,rs.Z)(w.current).body).getBoundingClientRect();return{top:t.top+Nd(t,s.vertical),left:t.left+Dd(t,s.horizontal)}}),[r,s.horizontal,s.vertical,a,l]),E=n.useCallback((e=>({vertical:Nd(e,f.vertical),horizontal:Dd(e,f.horizontal)})),[f.horizontal,f.vertical]),N=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if("none"===l)return{top:null,left:null,transformOrigin:Id(n)};const i=k();let o=i.top-n.vertical,s=i.left-n.horizontal;const a=o+t.height,c=s+t.width,d=(0,jr.Z)(qd(r)),u=d.innerHeight-g,h=d.innerWidth-g;if(o<g){const e=o-g;o-=e,n.vertical+=e}else if(a>u){const e=a-u;o-=e,n.vertical+=e}if(s<g){const e=s-g;s-=e,n.horizontal+=e}else if(c>h){const e=c-h;s-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(s)}px`,transformOrigin:Id(n)}}),[r,l,k,E,g]),[D,I]=n.useState(p),q=n.useCallback((()=>{const e=w.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[N]);n.useEffect((()=>{p&&q()})),n.useImperativeHandle(o,(()=>p?{updatePosition:()=>{q()}}:null),[p,q]),n.useEffect((()=>{if(!p)return;const e=(0,Br.Z)((()=>{q()})),t=(0,jr.Z)(r);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r,p,q]);let R=_;"auto"!==_||v.muiSupportAuto||(R=void 0);const O=u||(r?(0,rs.Z)(qd(r)).body:void 0);return(0,bt.jsx)(Rd,(0,ct.Z)({BackdropProps:{invisible:!0},className:(0,dt.Z)(L.root,d),container:O,open:p,ref:t,ownerState:x},y,{children:(0,bt.jsx)(v,(0,ct.Z)({appear:!0,in:p,onEntering:(e,t)=>{b&&b(e,t),q()},onExited:()=>{I(!1)},timeout:R},C,{children:(0,bt.jsx)(Od,(0,ct.Z)({elevation:h},m,{ref:S,className:(0,dt.Z)(L.paper,m.className)},D?void 0:{style:(0,ct.Z)({},m.style,{opacity:0})},{ownerState:x,children:c}))}))}))})),Ad=Td;var Md=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Pd=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Fd=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};const Bd=function(e){function t(){var e,n,i;Md(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=Fd(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;i._lastRenderedStartIndex=t,i._lastRenderedStopIndex=n,i._ensureRowsLoaded(t,n)},i._setRef=function(e){i._listRef=e},Fd(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Pd(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,i=n.isItemLoaded,o=n.itemCount,r=n.minimumBatchSize,s=void 0===r?10:r,a=n.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,i=e.minimumBatchSize,o=e.stopIndex,r=[],s=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(r.push(s,a),s=a=null):(a=l,null===s&&(s=l));if(null!==a){for(var c=Math.min(Math.max(a,s+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<i&&r[0]>0;){var u=r[0]-1;if(t(u))break;r[0]=u}return r}({isItemLoaded:i,itemCount:o,minimumBatchSize:s,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,i=function(i){var o=e[i],r=e[i+1],s=n(o,r);null!=s&&s.then((function(){if(e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r},!(e.startIndex>e.lastRenderedStopIndex||e.stopIndex<e.lastRenderedStartIndex)){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}var e}))},o=0;o<e.length;o+=2)i(o)}}]),t}(n.PureComponent),Vd=["S","XS"],zd=e=>e.reduce(((e,t)=>e.concat(t)));function Wd(e){return Vd.includes(e)}function Hd({layout:e,selections:t,pages:i=[],checkboxes:o=!1,selectDisabled:r,doc:s=document,isSingleSelect:a=!1}){const[l,c]=(0,n.useState)(i),[d,u]=(0,n.useState)(!1),[h,g]=(0,n.useState)(!1),[p,m]=(0,n.useState)(a),[f,v]=(0,n.useState)([]),[_,b]=(0,n.useState)(!1),[C,y]=(0,n.useState)([]),w=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return zd(t)}(i);(0,n.useEffect)((()=>{m(a)}),[a]);const S=async(e=[],n=!1)=>{if(r())return;g(!0);const i=n?e.filter((e=>!f.includes(e))):e;await async function({selections:e,elemNumbers:t,isSingleSelect:n=!1}){let i=Promise.resolve(!1);if(!t.some((e=>Number.isNaN(e)))){const o=t;i=e.select({method:"selectListObjectValues",params:["/qListObjectDef",o,!n]}).then((e=>!1!==e)).catch((()=>!1))}return i}({selections:t,elemNumbers:i,isSingleSelect:p}),g(!1),y([])},x=(e,t=!1)=>{r()||y((n=>{const i=(o=[...n,...e],Array.isArray(o)?Array.from(new Set(o)):void 0);var o;const r=t?i.filter((e=>!f.includes(e))):i,s=t?function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:i}=function(e,t){let n=1/0,i=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,i=o>i?o:i})),{min:n,max:i}}(e,t);return t.slice(n,i+1)}(i,w):r;return s}))},L=e=>{(e.ctrlKey||e.metaKey)&&(m(!0),e.currentTarget.focus(),e.preventDefault())},k=(0,n.useCallback)((e=>{if(h||r())return;const t=+e.currentTarget.getAttribute("data-n");y([t]),L(e)}),[h,r]),E=(0,n.useCallback)((e=>{if(h||r())return;b(!1),u(!0);const t=+e.currentTarget.getAttribute("data-n");y([t]),L(e)}),[h,r]),N=(0,n.useCallback)((e=>{const t=+e.currentTarget.getAttribute("data-n");p||!d||h||1===C.length&&C[0]===t||x([t])}),[d,h,C,f,_,r]),D=(0,n.useCallback)((()=>{u(!1),g(!1),b(!1),m(a)}),[a]),I=(0,n.useCallback)((e=>{if(p||!d||h||r())return;b(!0);const t=+e.currentTarget.getAttribute("data-n");x([t],!0)}),[d,h,_,C,f,r,e&&e.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);(0,n.useEffect)((()=>{const t=!d;C&&C.length&&!h&&t&&e&&S(C,_)}),[C,d,r()]),(0,n.useEffect)((()=>(s.addEventListener("mouseup",D),()=>{s.removeEventListener("mouseup",D)})),[D]),(0,n.useEffect)((()=>{if(h||d)return;const e=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return!!Wd(t.qState)&&t.qElemNumber})).filter((e=>!1!==e))));return zd(t)}(i);v(e)}),[i]),(0,n.useEffect)((()=>{if(h||!i||!o&&!d)return;const e=function(e,t,n=!1){return e.map((e=>{const i=e.qMatrix.map((e=>{const[i]=e,o=t.includes(i.qElemNumber);let r;return r=n?o?"S":"A":o?(e=>t.length<=1&&Wd(e)?"A":"S")(i.qState):i.qState,[{...i,qState:r},e.slice(1)]}));return{...e,qMatrix:i}}))}(i,C,p);c(e)}),[C]);const q={};return o?Object.assign(q,{onClick:k}):Object.assign(q,{onMouseUp:N,onMouseDown:E,onMouseEnter:I}),{instantPages:l,interactionEvents:q,select:(e=[],t=!1)=>{b(!1),u(!0),x(e,t||_);const n=S(e,t||_);return u(!1),n}}}function jd(e){return(0,vt.Z)("MuiFormControlLabel",e)}const Ud=(0,ft.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),$d=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],Kd=(0,mt.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ud.label}`]:t.label},t.root,t[`labelPlacement${(0,Mt.Z)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ud.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Ud.label}`]:{[`&.${Ud.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Gd=n.forwardRef((function(e,t){var i;const o=(0,pt.Z)({props:e,name:"MuiFormControlLabel"}),{className:r,componentsProps:s={},control:a,disabled:l,disableTypography:c,label:d,labelPlacement:u="end",slotProps:h={}}=o,g=(0,lt.Z)(o,$d),p=Ds();let m=l;void 0===m&&void 0!==a.props.disabled&&(m=a.props.disabled),void 0===m&&p&&(m=p.disabled);const f={disabled:m};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===a.props[e]&&void 0!==o[e]&&(f[e]=o[e])}));const v=Is({props:o,muiFormControl:p,states:["error"]}),_=(0,ct.Z)({},o,{disabled:m,labelPlacement:u,error:v.error}),b=(e=>{const{classes:t,disabled:n,labelPlacement:i,error:o}=e,r={root:["root",n&&"disabled",`labelPlacement${(0,Mt.Z)(i)}`,o&&"error"],label:["label",n&&"disabled"]};return(0,ut.Z)(r,jd,t)})(_),C=null!=(i=h.typography)?i:s.typography;let y=d;return null==y||y.type===No||c||(y=(0,bt.jsx)(No,(0,ct.Z)({component:"span"},C,{className:(0,dt.Z)(b.label,null==C?void 0:C.className),children:y}))),(0,bt.jsxs)(Kd,(0,ct.Z)({className:(0,dt.Z)(b.root,r),ownerState:_,ref:t},g,{children:[n.cloneElement(a,f),y]}))})),Zd=Gd,Qd=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),Yd=e=>sr(Qd(e));var Xd=s(66055);function Jd(e){return(0,vt.Z)("PrivateSwitchBase",e)}(0,ft.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const eu=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tu=(0,mt.ZP)(no)((({ownerState:e})=>(0,ct.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),nu=(0,mt.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),iu=n.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,className:r,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:u,inputProps:h,inputRef:g,name:p,onBlur:m,onChange:f,onFocus:v,readOnly:_,required:b=!1,tabIndex:C,type:y,value:w}=e,S=(0,lt.Z)(e,eu),[x,L]=(0,Xd.Z)({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),k=Ds();let E=a;k&&void 0===E&&(E=k.disabled);const N="checkbox"===y||"radio"===y,D=(0,ct.Z)({},e,{checked:x,disabled:E,disableFocusRipple:l,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,r={root:["root",n&&"checked",i&&"disabled",o&&`edge${(0,Mt.Z)(o)}`],input:["input"]};return(0,ut.Z)(r,Jd,t)})(D);return(0,bt.jsxs)(tu,(0,ct.Z)({component:"span",className:(0,dt.Z)(I.root,r),centerRipple:!0,focusRipple:!l,disabled:E,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),k&&k.onFocus&&k.onFocus(e)},onBlur:e=>{m&&m(e),k&&k.onBlur&&k.onBlur(e)},ownerState:D,ref:t},S,{children:[(0,bt.jsx)(nu,(0,ct.Z)({autoFocus:n,checked:i,defaultChecked:s,className:I.input,disabled:E,id:N&&u,name:p,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),f&&f(e,t)},readOnly:_,ref:g,required:b,ownerState:D,tabIndex:C,type:y},"checkbox"===y&&void 0===w?{}:{value:w},h)),x?o:d]}))})),ou=iu,ru=(0,zn.Z)((0,bt.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),su=(0,zn.Z)((0,bt.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),au=(0,zn.Z)((0,bt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function lu(e){return(0,vt.Z)("MuiCheckbox",e)}const cu=(0,ft.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),du=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],uu=(0,mt.ZP)(ou,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,Mt.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,mi.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${cu.checked}, &.${cu.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${cu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),hu=(0,bt.jsx)(su,{}),gu=(0,bt.jsx)(ru,{}),pu=(0,bt.jsx)(au,{}),mu=n.forwardRef((function(e,t){var i,o;const r=(0,pt.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=hu,color:a="primary",icon:l=gu,indeterminate:c=!1,indeterminateIcon:d=pu,inputProps:u,size:h="medium",className:g}=r,p=(0,lt.Z)(r,du),m=c?d:l,f=c?d:s,v=(0,ct.Z)({},r,{color:a,indeterminate:c,size:h}),_=(e=>{const{classes:t,indeterminate:n,color:i}=e,o={root:["root",n&&"indeterminate",`color${(0,Mt.Z)(i)}`]},r=(0,ut.Z)(o,lu,t);return(0,ct.Z)({},t,r)})(v);return(0,bt.jsx)(uu,(0,ct.Z)({type:"checkbox",inputProps:(0,ct.Z)({"data-indeterminate":c},u),icon:n.cloneElement(m,{fontSize:null!=(i=m.props.fontSize)?i:h}),checkedIcon:n.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:h}),ownerState:v,ref:t,className:(0,dt.Z)(_.root,g)},p,{classes:_}))})),fu=mu,vu="ListBoxCheckbox",_u={cbIcon:`${vu}-cbIcon`,cbIconChecked:`${vu}-cbIconChecked`,cbIconExcluded:`${vu}-cbIconExcluded`,cbIconAlternative:`${vu}-cbIconAlternative`,checkbox:`${vu}-checkbox`,dense:`${vu}-dense`},bu=(0,mt.ZP)(fu)((({theme:e})=>({[`& .${_u.cbIcon}`]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},[`& .${_u.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},[`& .${_u.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.excluded},[`& .${_u.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.alternative},[`&.${_u.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${_u.dense}`]:{padding:"4px 8px"}}))),Cu=(e,t=!0,i=!1)=>n.createElement("span",{className:e.cbIcon},i&&n.createElement("span",{className:t&&i?e.cbIconExcluded:""}));function yu({checked:e,label:t,dense:i,excluded:o,showGray:r=!0}){return n.createElement(bu,{edge:"start",checked:e,disableRipple:!0,className:[_u.checkbox,i&&_u.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":t},name:t,icon:Cu(_u,r,o),checkedIcon:n.createElement("span",{className:_u.cbIconChecked})})}const wu=(0,zn.Z)((0,bt.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Su=(0,zn.Z)((0,bt.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),xu=(0,mt.ZP)("span")({position:"relative",display:"flex"}),Lu=(0,mt.ZP)(wu)({transform:"scale(1)"}),ku=(0,mt.ZP)(Su)((({theme:e,ownerState:t})=>(0,ct.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}))),Eu=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o=(0,ct.Z)({},e,{checked:t});return(0,bt.jsxs)(xu,{className:n.root,ownerState:o,children:[(0,bt.jsx)(Lu,{fontSize:i,className:n.background,ownerState:o}),(0,bt.jsx)(ku,{fontSize:i,className:n.dot,ownerState:o})]})};var Nu=s(80062);const Du=n.createContext(void 0);function Iu(e){return(0,vt.Z)("MuiRadio",e)}const qu=(0,ft.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),Ru=["checked","checkedIcon","color","icon","name","onChange","size","className"],Ou=(0,mt.ZP)(ou,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,Mt.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,mi.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${qu.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${qu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Tu=(0,bt.jsx)(Eu,{checked:!0}),Au=(0,bt.jsx)(Eu,{}),Mu=n.forwardRef((function(e,t){var i,o;const r=(0,pt.Z)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=Tu,color:l="primary",icon:c=Au,name:d,onChange:u,size:h="medium",className:g}=r,p=(0,lt.Z)(r,Ru),m=(0,ct.Z)({},r,{color:l,size:h}),f=(e=>{const{classes:t,color:n}=e,i={root:["root",`color${(0,Mt.Z)(n)}`]};return(0,ct.Z)({},t,(0,ut.Z)(i,Iu,t))})(m),v=n.useContext(Du);let _=s;const b=(0,Nu.Z)(u,v&&v.onChange);let C=d;var y,w;return v&&(void 0===_&&(y=v.value,_="object"==typeof(w=r.value)&&null!==w?y===w:String(y)===String(w)),void 0===C&&(C=v.name)),(0,bt.jsx)(Ou,(0,ct.Z)({type:"radio",icon:n.cloneElement(c,{fontSize:null!=(i=Au.props.fontSize)?i:h}),checkedIcon:n.cloneElement(a,{fontSize:null!=(o=Tu.props.fontSize)?o:h}),ownerState:m,classes:f,name:C,checked:_,onChange:b,ref:t,className:(0,dt.Z)(f.root,g)},p))})),Pu=Mu,Fu="ListBoxRadioButton-radioButton",Bu=(0,mt.ZP)(Pu)((({theme:e,checked:t})=>({[`&.${Fu}`]:{right:"5px",color:t?e.palette.selected.main:e.palette.main}})));function Vu({checked:e,label:t,dense:i}){return n.createElement(Bu,{checked:e,value:t,name:t,className:Fu,style:{backgroundColor:"transparent"},disableRipple:!0,size:i?"small":"medium",sx:i&&{padding:"0px 0px 0px 12px"}})}const zu=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===zu.ARROW_UP||e===zu.ARROW_DOWN||e===zu.ARROW_LEFT||e===zu.ARROW_RIGHT}),Wu=zu;const Hu={row:"RowColumn-row",rowBorderBottom:"RowColumn-rowBorderBottom",column:"RowColumn-column",fieldRoot:"RowColumn-fieldRoot",cell:"RowColumn-cell",labelText:"RowColumn-labelText",labelDense:"RowColumn-labelDense",highlighted:"RowColumn-highlighted",checkboxLabel:"RowColumn-checkboxLabel",icon:"RowColumn-icon",S:"RowColumn-S",XS:"RowColumn-XS",A:"RowColumn-A",X:"RowColumn-X",frequencyCount:"RowColumn-frequencyCount",barContainer:"RowColumn-barContainer",bar:"RowColumn-bar",barSelected:"RowColumn-barSelected",barWithCheckbox:"RowColumn-barWithCheckbox",barSelectedWithCheckbox:"RowColumn-barSelectedWithCheckbox",excludedTextWithCheckbox:"RowColumn-excludedTextWithCheckbox"},ju={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},Uu=({theme:e})=>({background:e.palette.selected.main,color:e.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"},"& $cell":{paddingRight:0}}),$u=(0,mt.ZP)("div",{shouldForwardProp:e=>"flexBasisProp"!==e})((({theme:e,flexBasisProp:t,dense:n})=>({[`& .${Hu.row}`]:{flexWrap:"nowrap",color:e.listBox?.content?.color??e.palette.text.primary},[`& .${Hu.rowBorderBottom}`]:{borderBottom:`1px solid ${e.palette.divider}`},[`& .${Hu.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,color:e.listBox?.content?.color??e.palette.text.primary},[`& .${Hu.fieldRoot}`]:{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${Hu.cell}`]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},[`& .${Hu.labelText}`]:{flexBasis:t,lineHeight:"16px",userSelect:"none",whiteSpace:"pre",paddingRight:"9px",...ju,fontSize:e.listBox?.content?.fontSize,fontFamily:e.listBox?.content?.fontFamily},[`& .${Hu.labelDense}`]:{fontSize:12},[`& .${Hu.highlighted}`]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},[`& .${Hu.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...ju,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${Hu.icon}`]:{display:"flex",padding:e.spacing(1,1,1,0)},[`& .${Hu.S}`]:{...Uu({theme:e})},[`& .${Hu.XS}`]:{...Uu({theme:e}),background:e.palette.selected.excluded,color:e.palette.selected.mainContrastText},[`& .${Hu.A}`]:{background:e.palette.selected.alternative,color:e.palette.selected.alternativeContrastText},[`& .${Hu.X}`]:{background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText},[`& .${Hu.frequencyCount}`]:{width:"66px",justifyContent:"flex-end"},[`&.${Hu.barContainer}`]:{height:"100%",display:"inline-block"},[`& .${Hu.bar}`]:{border:"1px solid",borderColor:"#D9D9D9",height:n?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"4px",transition:"width 0.2s",backgroundColor:"#FAFAFA"},[`& .${Hu.barSelected}`]:{opacity:"30%",zIndex:"0",background:e.palette.background.lighter},[`& .${Hu.barWithCheckbox}`]:{left:"29px"},[`& .${Hu.barSelectedWithCheckbox}`]:{background:"#BFE5D0",borderColor:"#BFE5D0"},[`& .${Hu.excludedTextWithCheckbox}`]:{color:"#828282",fontStyle:"italic"}}))),Ku=function({index:e,rowIndex:t,columnIndex:i,style:o,data:r}){const{onClick:s,onMouseDown:a,onMouseUp:l,onMouseEnter:c,pages:d,isLocked:u,column:h=!1,checkboxes:g=!1,textAlign:p,direction:m,dense:f=!1,freqIsAllowed:v,isSingleSelect:_,actions:b,frequencyMax:C="",histogram:y=!1,keyboard:w,showGray:S=!0,columnCount:x=1,rowCount:L=1,layoutOrder:k,dataOffset:E,focusListItems:N,listCount:D}=r;let I,q;const R={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof i){"row"===k?(I=t*x+i,R.max=L,R.currentIndex=t):(I=i*L+t,R.max=x,R.currentIndex=i);const e=0;q={...o,left:e+(0===i?o.left:Number(o.left)+i*e),top:0===t?o.top:Number(o.top)+t*e}}else I=e,R.max=D,R.currentIndex=e,q={...o};I+=E;const O=(0,n.useRef)(null);(0,n.useEffect)((()=>{null!==O.current&&(0===R.currentIndex&&N.first&&(O.current.focus(),N.setFirst(!1)),R.currentIndex===R.max-1&&N.last&&(O.current.focus(),N.setLast(!1)))}),[O.current]);const T=(0,n.useCallback)(function({select:e,confirm:t,cancel:n,setScrollPosition:i,focusListItems:o}){const r=(e,t=!1)=>{const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let s=!1;const a=e=>{s=e};return l=>{let c;const{keyCode:d,shiftKey:u=!1,ctrlKey:h=!1}=l.nativeEvent;switch(d){case Wu.SHIFT:a(!0);break;case Wu.SPACE:e([+l.currentTarget.getAttribute("data-n")]);break;case Wu.ARROW_DOWN:case Wu.ARROW_RIGHT:c=r(l.currentTarget,!0),u&&c&&(s&&(e([+l.currentTarget.getAttribute("data-n")],!0),a(!1)),e([+c.getAttribute("data-n")],!0));break;case Wu.ARROW_UP:case Wu.ARROW_LEFT:c=r(l.currentTarget,!1),u&&c&&(s&&(e([+l.currentTarget.getAttribute("data-n")],!0),a(!1)),e([+c.getAttribute("data-n")],!0));break;case Wu.ENTER:t();break;case Wu.ESCAPE:return void n();case Wu.HOME:if(o.setFirst(!0),h){i?.("overflowStart");break}i?.("start");break;case Wu.END:if(o.setLast(!0),h){i?.("overflowEnd");break}i?.("end");break;default:return}c&&c.focus(),l.preventDefault(),l.stopPropagation()}}({...b,focusListItems:N}),[b]),[A,M]=(0,n.useState)(!1),[P,F]=(0,n.useState)(),[B,V]=(0,n.useState)([]);(0,n.useEffect)((()=>{if(!d)return;let e;const t=d.filter((e=>e.qArea.qTop<=I&&I<e.qArea.qTop+e.qArea.qHeight))[0];if(t){const n=t.qArea;I>=n.qTop&&I<n.qTop+n.qHeight&&([e]=t.qMatrix[I-n.qTop])}F(e)}),[d]);const z=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,W=e=>e?"A"===e.qState:null;if((0,n.useEffect)((()=>{if(!P)return;const e="S"===P.qState||"XS"===P.qState||"L"===P.qState;M(e);const t=[h?Hu.column:Hu.row];y&&f||g||t.push(Hu.rowBorderBottom),g||("XS"===P.qState?t.push(S?Hu.XS:Hu.S):"S"===P.qState||"L"===P.qState?t.push(Hu.S):S&&W(P)?t.push(Hu.A):S&&z(P)&&t.push(Hu.X)),V(t)}),[P&&P.qState,y,f,g]),!P)return null;const H=e=>e.filter((e=>!!e)).join(" ").trim(),j=()=>(W(P)||z(P))&&g,U=!["NaN",void 0].includes(P?.qNum);let $;const K=!p||p.auto;$=K?U?"right":{rtl:"right",ltr:"left"}[m]:p?.align||"left";const G=({lbl:e,ix:t,color:i,highlighted:o=!1})=>n.createElement(No,{component:"span",variant:"body2",key:t,className:H([Hu.labelText,o&&Hu.highlighted,f&&Hu.labelDense,S&&j()&&Hu.excludedTextWithCheckbox]),color:i,justifyContent:$},n.createElement("span",{style:{whiteSpace:"pre"}},e)),Z=({lbl:e,color:t,qElemNumber:i})=>{const o=n.createElement(yu,{label:e,checked:A,dense:f,excluded:z(P),showGray:S}),r=n.createElement(Vu,{label:e,checked:A,dense:f}),s="string"==typeof e?G({lbl:e,color:t,highlighted:!1}):e;return n.createElement(Zd,{color:t,control:_?r:o,className:Hu.checkboxLabel,label:s,key:i})},Q=P?P.qText:"",Y=()=>P?P.qFrequency?P.qFrequency:"-":"",X=P&&P.qHighlightRanges&&P.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[],J=function(e,t){if(!t.length)return[];const n=t.reduce(((n,i,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,r=[];return i>n&&r.push([e.slice(n,i),!1]),r.push([e.slice(i,i+o),!0]),r}(e,i,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&n.push([e.slice(a),!1]),n}),[]);return n}(Q,X),ee=g?Z:G,te={alignItems:"center",display:"flex",fontSize:"8px"},ne=A&&u,ie=!g&&A&&!u,oe={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:g?0:void 0,justifyContent:$},re=0===e,se=g?"auto":"max-content";return n.createElement($u,{className:Hu.barContainer,flexBasisProp:se,dense:f},n.createElement(yo,{ref:O,container:!0,gap:0,className:H(["value",...B]),classes:{root:Hu.fieldRoot},style:q,onClick:s,onMouseDown:a,onMouseUp:l,onMouseEnter:c,onKeyDown:T,onContextMenu:e=>{g&&s(e),e.preventDefault()},role:h?"column":"row",tabIndex:!re||w.enabled&&!w.active?-1:0,"data-n":P&&P.qElemNumber},P&&y&&"-"!==Y()&&n.createElement("div",{className:H([Hu.bar,g&&Hu.barWithCheckbox,A&&(g?Hu.barSelectedWithCheckbox:Hu.barSelected)]),style:{width:(e=>{const t=String(e),n="%"===t.substring(t.length-1),i=parseFloat(n?t:e);return`calc(${n?i:i/C*100}% - ${g?"(29px + 6px)":"10px"})`})(P.qFrequency)}}),n.createElement(yo,{item:!0,style:oe,className:H([Hu.cell,Hu.selectedCell]),title:`${Q}`},0===X.length?ee({lbl:Q,color:"inherit"}):(({lbls:e})=>{const t=e.map((([e,t],n)=>G({ix:n,highlighted:t,lbl:e})));return g?Z({lbl:t}):t})({lbls:J})),v&&n.createElement(yo,{item:!0,style:{display:"flex",alignItems:"center"},className:Hu.frequencyCount},n.createElement(No,{noWrap:!0,color:"inherit",variant:"body2",className:H([f&&Hu.labelDense,Hu.labelText,S&&j()&&Hu.excludedTextWithCheckbox])},Y())),!g&&n.createElement(yo,{item:!0,className:Hu.icon},!ne&&!ie&&n.createElement("span",{style:{minWidth:"12px"}}),ne&&n.createElement(Lc,{style:te,size:"small"}),ie&&n.createElement(Yd,{style:te,size:"small"}))))};function Gu({width:e,layout:t,frequencyMode:n}){const i=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["none",void 0].includes(n);return!(!i||!r&&!o)}var Zu=s(29834),Qu=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Yu(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((i=e[n])===(o=t[n])||Qu(i)&&Qu(o)))return!1;var i,o;return!0}const Xu=function(e,t){var n;void 0===t&&(t=Yu);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}};var Ju="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function eh(e){cancelAnimationFrame(e.id)}function th(e,t){var n=Ju(),i={id:requestAnimationFrame((function o(){Ju()-n>=t?e.call(null):i.id=requestAnimationFrame(o)}))};return i}var nh=-1;function ih(e){if(void 0===e&&(e=!1),-1===nh||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),nh=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nh}var oh=null;function rh(e){if(void 0===e&&(e=!1),null===oh||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?oh="positive-descending":(t.scrollLeft=1,oh=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),oh}return oh}var sh=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ah(e){var t,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,r=e.getColumnStopIndexForStartIndex,s=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,u=e.getRowHeight,h=e.getRowOffset,g=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,yi(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:yi(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Xu((function(e,t,i,o,r,s,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=Xu((function(e,t,i,o,r){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,r=n.props,a=r.columnWidth,l=r.direction,c=r.rowHeight,d=n._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=i(n.props,t,n._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:h(n.props,e,n._instanceProps),height:u(n.props,e,n._instanceProps),width:s(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Xu((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=n.props.direction,c=r;if("rtl"===t)switch(rh()){case"negative":c=-r;break;case"positive-descending":c=l-o-r}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(s,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&eh(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=th(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Si(t,e),t.getDerivedStateFromProps=function(e,t){return lh(e,t),v(e),null};var _=t.prototype;return _.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},_.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,r=this.props,s=r.columnCount,u=r.height,h=r.rowCount,g=r.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,v=ih();void 0!==i&&(i=Math.max(0,Math.min(i,s-1))),void 0!==o&&(o=Math.max(0,Math.min(o,h-1)));var _=a(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>g?v:0,C=_>u?v:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,C):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,b):f})},_.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var i=this._outerRef;"number"==typeof t&&(i.scrollLeft=t),"number"==typeof n&&(i.scrollTop=n)}this._callPropsCallbacks()},_.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,i=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(rh()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&eh(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,t=e.children,i=e.className,o=e.columnCount,r=e.direction,s=e.height,c=e.innerRef,d=e.innerElementType,u=e.innerTagName,h=e.itemData,g=e.itemKey,p=void 0===g?sh:g,m=e.outerElementType,f=e.outerTagName,v=e.rowCount,_=e.style,b=e.useIsScrolling,C=e.width,y=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],x=w[1],L=this._getVerticalRangeToRender(),k=L[0],E=L[1],N=[];if(o>0&&v)for(var D=k;D<=E;D++)for(var I=S;I<=x;I++)N.push((0,n.createElement)(t,{columnIndex:I,data:h,isScrolling:b?y:void 0,key:p({columnIndex:I,data:h,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,I)}));var q=a(this.props,this._instanceProps),R=l(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ci({position:"relative",height:s,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},_)},(0,n.createElement)(d||u||"div",{children:N,ref:c,style:{height:q,pointerEvents:y?"none":void 0,width:R}}))},_._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,i=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var r=this._getHorizontalRangeToRender(),s=r[0],a=r[1],l=r[2],c=r[3],d=this._getVerticalRangeToRender(),u=d[0],h=d[1],g=d[2],p=d[3];this._callOnItemsRendered(s,a,u,h,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,v=m.scrollLeft,_=m.scrollTop,b=m.scrollUpdateWasRequested,C=m.verticalScrollDirection;this._callOnScroll(v,_,f,C,b)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,u=l.scrollLeft,h=n||i||s||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,u,this._instanceProps),p=r(this.props,g,u,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,h),f=d&&"forward"!==c?1:Math.max(1,h);return[Math.max(0,g-m),Math.max(0,Math.min(t-1,p+f)),g,p]},_._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=i||o||n||1;if(0===t||0===r)return[0,0,0,0];var u=g(this.props,c,this._instanceProps),h=p(this.props,u,c,this._instanceProps),m=a&&"backward"!==l?1:Math.max(1,d),f=a&&"forward"!==l?1:Math.max(1,d);return[Math.max(0,u-m),Math.max(0,Math.min(r-1,h+f)),u,h]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var lh=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ch=function(e,t){return e};function dh(e){var t,i=e.getItemOffset,o=e.getEstimatedTotalSize,r=e.getItemSize,s=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,yi(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:yi(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Xu((function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Xu((function(e,t,i){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,s=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var u=i(n.props,e,n._instanceProps),h=r(n.props,e,n._instanceProps),g="horizontal"===s||"horizontal"===l,p="rtl"===s,m=g?u:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:u,height:g?"100%":h,width:g?h:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Xu((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,s=o;if("rtl"===t)switch(rh()){case"negative":s=-o;break;case"positive-descending":s=r-i-o}return s=Math.max(0,Math.min(s,r-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;n.setState((function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,o-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&eh(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=th(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Si(t,e),t.getDerivedStateFromProps=function(e,t){return uh(e,t),u(e),null};var h=t.prototype;return h.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},h.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,i=n.itemCount,o=n.layout,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?ih():0:l.scrollHeight>l.clientHeight?ih():0}this.scrollTo(s(this.props,e,t,r,this._instanceProps,a))},h.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,i=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===i?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},h.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,i=this.state,o=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(rh()){case"negative":r.scrollLeft=-o;break;case"positive-ascending":r.scrollLeft=o;break;default:var s=r.clientWidth,a=r.scrollWidth;r.scrollLeft=a-s-o}else r.scrollLeft=o;else r.scrollTop=o}this._callPropsCallbacks()},h.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&eh(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,i=e.className,r=e.direction,s=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,u=e.itemData,h=e.itemKey,g=void 0===h?ch:h,p=e.layout,m=e.outerElementType,f=e.outerTagName,v=e.style,_=e.useIsScrolling,b=e.width,C=this.state.isScrolling,y="horizontal"===r||"horizontal"===p,w=y?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),x=S[0],L=S[1],k=[];if(d>0)for(var E=x;E<=L;E++)k.push((0,n.createElement)(t,{data:u,key:g(E,u),index:E,isScrolling:_?C:void 0,style:this._getItemStyle(E)}));var N=o(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:w,ref:this._outerRefSetter,style:Ci({position:"relative",height:s,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},v)},(0,n.createElement)(l||c||"div",{children:k,ref:a,style:{height:y?"100%":N,pointerEvents:C?"none":void 0,width:y?N:"100%"}}))},h._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],i=e[2],o=e[3];this._callOnItemsRendered(t,n,i,o)}if("function"==typeof this.props.onScroll){var r=this.state,s=r.scrollDirection,a=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},h._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,r=i.scrollDirection,s=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),d=l(this.props,c,s,this._instanceProps),u=o&&"backward"!==r?1:Math.max(1,n),h=o&&"forward"!==r?1:Math.max(1,n);return[Math.max(0,c-u),Math.max(0,Math.min(t-1,d+h)),c,d]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var uh=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},hh=ah({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,i,o,r){var s=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,s*a-l),d=Math.min(c,t*a),u=Math.max(0,t*a-l+r+a);switch("smart"===n&&(n=i>=u-l&&i<=d+l?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(l/2)?0:h>c+Math.floor(l/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getOffsetForRowAndAlignment:function(e,t,n,i,o,r){var s=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*s-a),d=Math.min(c,t*s),u=Math.max(0,t*s-a+r+s);switch("smart"===n&&(n=i>=u-a&&i<=d+a?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(a/2)?0:h>c+Math.floor(a/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var i=e.columnWidth,o=e.columnCount,r=e.width,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var i=e.rowHeight,o=e.rowCount,r=e.height,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),gh=dh({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,i,o,r){var s=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,u=e.width,h="horizontal"===s||"horizontal"===d?u:a,g=Math.max(0,l*c-h),p=Math.min(g,t*c),m=Math.max(0,t*c-h+c+r);switch("smart"===n&&(n=i>=m-h&&i<=p+h?"auto":"center"),n){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(h/2)?0:f>g+Math.floor(h/2)?g:f;default:return i>=m&&i<=p?i:i<m?m:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,n){var i=e.direction,o=e.height,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===i||"horizontal"===a?l:o,u=Math.ceil((d+n-c)/s);return Math.max(0,Math.min(r-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const ph="#BBB",mh="#555",fh="#f1f1f1",vh="ListBox-styledScrollbars";function _h({renderProps:e,layoutOptions:t,maxCount:n,columnCount:i,rowCount:o,overflowDisclaimer:r,qCardinal:s,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=((e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(e,l),d=l?n.column:n.row,u=(l?i:o)>=d,h=((e,t,n,i)=>e===t*n+i+n)(s,c,l?o:i,a),g=!!a&&((e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(e,l),p=u&&!h&&c>=d-1||g||r.state.show;r.set(p)}function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bh.apply(this,arguments)}const{StyledFixedSizeList:Ch,StyledFixedSizeGrid:yh}=function(){const e={scrollbarColor:"#BBB #f1f1f1","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:fh},"&::-webkit-scrollbar-thumb":{backgroundColor:ph,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:mh}};return{StyledFixedSizeList:(0,Zu.Z)(gh)((()=>({[`&.${vh}`]:e,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:fh},"&::-webkit-scrollbar-thumb":{backgroundColor:ph,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:mh}}))),StyledFixedSizeGrid:(0,Zu.Z)(hh)((()=>({[`&.${vh}`]:e,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:fh},"&::-webkit-scrollbar-thumb":{backgroundColor:ph,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:mh}})))}}(),wh=e=>{const t=(0,n.useMemo)((()=>"text"in e?e:{}),[e]);return(0,n.useMemo)((()=>((e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();return n.font=t,Array.isArray(e)?Math.max(...e.map((e=>n.measureText(e).width))):n.measureText(e).width})(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])};function Sh(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}const[xh,Lh]=Ul({});function kh(e){const t=`${e.id}`,[n]=xh();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}function Eh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nh(e){return e instanceof Eh(e).Element||e instanceof Element}function Dh(e){return e instanceof Eh(e).HTMLElement||e instanceof HTMLElement}function Ih(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Eh(e).ShadowRoot||e instanceof ShadowRoot)}var qh=Math.max,Rh=Math.min,Oh=Math.round;function Th(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ah(){return!/^((?!chrome|android).)*safari/i.test(Th())}function Mh(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&Dh(e)&&(o=e.offsetWidth>0&&Oh(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Oh(i.height)/e.offsetHeight||1);var s=(Nh(e)?Eh(e):window).visualViewport,a=!Ah()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,d=i.width/o,u=i.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Ph(e){var t=Eh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fh(e){return e?(e.nodeName||"").toLowerCase():null}function Bh(e){return((Nh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vh(e){return Mh(Bh(e)).left+Ph(e).scrollLeft}function zh(e){return Eh(e).getComputedStyle(e)}function Wh(e){var t=zh(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Hh(e,t,n){void 0===n&&(n=!1);var i,o,r=Dh(t),s=Dh(t)&&function(e){var t=e.getBoundingClientRect(),n=Oh(t.width)/e.offsetWidth||1,i=Oh(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=Bh(t),l=Mh(e,s,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==Fh(t)||Wh(a))&&(c=(i=t)!==Eh(i)&&Dh(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:Ph(i)),Dh(t)?((d=Mh(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Vh(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function jh(e){var t=Mh(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Uh(e){return"html"===Fh(e)?e:e.assignedSlot||e.parentNode||(Ih(e)?e.host:null)||Bh(e)}function $h(e){return["html","body","#document"].indexOf(Fh(e))>=0?e.ownerDocument.body:Dh(e)&&Wh(e)?e:$h(Uh(e))}function Kh(e,t){var n;void 0===t&&(t=[]);var i=$h(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=Eh(i),s=o?[r].concat(r.visualViewport||[],Wh(i)?i:[]):i,a=t.concat(s);return o?a:a.concat(Kh(Uh(s)))}function Gh(e){return["table","td","th"].indexOf(Fh(e))>=0}function Zh(e){return Dh(e)&&"fixed"!==zh(e).position?e.offsetParent:null}function Qh(e){for(var t=Eh(e),n=Zh(e);n&&Gh(n)&&"static"===zh(n).position;)n=Zh(n);return n&&("html"===Fh(n)||"body"===Fh(n)&&"static"===zh(n).position)?t:n||function(e){var t=/firefox/i.test(Th());if(/Trident/i.test(Th())&&Dh(e)&&"fixed"===zh(e).position)return null;var n=Uh(e);for(Ih(n)&&(n=n.host);Dh(n)&&["html","body"].indexOf(Fh(n))<0;){var i=zh(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var Yh="top",Xh="bottom",Jh="right",eg="left",tg="auto",ng=[Yh,Xh,Jh,eg],ig="start",og="end",rg="viewport",sg="popper",ag=ng.reduce((function(e,t){return e.concat([t+"-"+ig,t+"-"+og])}),[]),lg=[].concat(ng,[tg]).reduce((function(e,t){return e.concat([t,t+"-"+ig,t+"-"+og])}),[]),cg=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function dg(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),i}var ug={placement:"bottom",modifiers:[],strategy:"absolute"};function hg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function gg(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?ug:o;return function(e,t,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ug,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:Nh(e)?Kh(e):e.contextElement?Kh(e.contextElement):[],popper:Kh(t)};var s,c,h=function(e){var t=dg(e);return cg.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(i,a.options.modifiers),c=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var r=o({state:a,name:t,instance:d,options:i});l.push(r||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(hg(t,n)){a.rects={reference:Hh(t,Qh(n),"fixed"===a.options.strategy),popper:jh(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,l=void 0===s?{}:s,u=o.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){u(),c=!0}};if(!hg(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var pg={passive:!0};function mg(e){return e.split("-")[0]}function fg(e){return e.split("-")[1]}function vg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _g(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?mg(o):null,s=o?fg(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Yh:t={x:a,y:n.y-i.height};break;case Xh:t={x:a,y:n.y+n.height};break;case Jh:t={x:n.x+n.width,y:l};break;case eg:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?vg(r):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case ig:t[c]=t[c]-(n[d]/2-i[d]/2);break;case og:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}var bg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cg(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=s.x,g=void 0===h?0:h,p=s.y,m=void 0===p?0:p,f="function"==typeof d?d({x:g,y:m}):{x:g,y:m};g=f.x,m=f.y;var v=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),b=eg,C=Yh,y=window;if(c){var w=Qh(n),S="clientHeight",x="clientWidth";w===Eh(n)&&"static"!==zh(w=Bh(n)).position&&"absolute"===a&&(S="scrollHeight",x="scrollWidth"),(o===Yh||(o===eg||o===Jh)&&r===og)&&(C=Xh,m-=(u&&w===y&&y.visualViewport?y.visualViewport.height:w[S])-i.height,m*=l?1:-1),o!==eg&&(o!==Yh&&o!==Xh||r!==og)||(b=Jh,g-=(u&&w===y&&y.visualViewport?y.visualViewport.width:w[x])-i.width,g*=l?1:-1)}var L,k=Object.assign({position:a},c&&bg),E=!0===d?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:Oh(t*i)/i||0,y:Oh(n*i)/i||0}}({x:g,y:m}):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},k,((L={})[C]=_?"0":"",L[b]=v?"0":"",L.transform=(y.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L)):Object.assign({},k,((t={})[C]=_?m+"px":"",t[b]=v?g+"px":"",t.transform="",t))}const yg={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];Dh(o)&&Fh(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Dh(i)&&Fh(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var wg={left:"right",right:"left",bottom:"top",top:"bottom"};function Sg(e){return e.replace(/left|right|bottom|top/g,(function(e){return wg[e]}))}var xg={start:"end",end:"start"};function Lg(e){return e.replace(/start|end/g,(function(e){return xg[e]}))}function kg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ih(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Eg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ng(e,t,n){return t===rg?Eg(function(e,t){var n=Eh(e),i=Bh(e),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=Ah();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+Vh(e),y:l}}(e,n)):Nh(t)?function(e,t){var n=Mh(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Eg(function(e){var t,n=Bh(e),i=Ph(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=qh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=qh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+Vh(e),l=-i.scrollTop;return"rtl"===zh(o||n).direction&&(a+=qh(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(Bh(e)))}function Dg(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ig(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function qg(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,s=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?rg:c,u=n.elementContext,h=void 0===u?sg:u,g=n.altBoundary,p=void 0!==g&&g,m=n.padding,f=void 0===m?0:m,v=Dg("number"!=typeof f?f:Ig(f,ng)),_=h===sg?"reference":sg,b=e.rects.popper,C=e.elements[p?_:h],y=function(e,t,n,i){var o="clippingParents"===t?function(e){var t=Kh(Uh(e)),n=["absolute","fixed"].indexOf(zh(e).position)>=0&&Dh(e)?Qh(e):e;return Nh(n)?t.filter((function(e){return Nh(e)&&kg(e,n)&&"body"!==Fh(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),s=r[0],a=r.reduce((function(t,n){var o=Ng(e,n,i);return t.top=qh(o.top,t.top),t.right=Rh(o.right,t.right),t.bottom=Rh(o.bottom,t.bottom),t.left=qh(o.left,t.left),t}),Ng(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Nh(C)?C:C.contextElement||Bh(e.elements.popper),l,d,s),w=Mh(e.elements.reference),S=_g({reference:w,element:b,strategy:"absolute",placement:o}),x=Eg(Object.assign({},b,S)),L=h===sg?x:w,k={top:y.top-L.top+v.top,bottom:L.bottom-y.bottom+v.bottom,left:y.left-L.left+v.left,right:L.right-y.right+v.right},E=e.modifiersData.offset;if(h===sg&&E){var N=E[o];Object.keys(k).forEach((function(e){var t=[Jh,Xh].indexOf(e)>=0?1:-1,n=[Yh,Xh].indexOf(e)>=0?"y":"x";k[e]+=N[n]*t}))}return k}function Rg(e,t,n){return qh(e,Rh(t,n))}function Og(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tg(e){return[Yh,Jh,Xh,eg].some((function(t){return e[t]>=0}))}var Ag=gg({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=Eh(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,pg)})),a&&l.addEventListener("resize",n.update,pg),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,pg)})),a&&l.removeEventListener("resize",n.update,pg)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=_g({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:mg(t.placement),variation:fg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Cg(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cg(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},yg,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,s=lg.reduce((function(e,n){return e[n]=function(e,t,n){var i=mg(e),o=[eg,Yh].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[eg,Jh].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,r),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=void 0===g||g,m=n.allowedAutoPlacements,f=t.options.placement,v=mg(f),_=l||(v!==f&&p?function(e){if(mg(e)===tg)return[];var t=Sg(e);return[Lg(e),t,Lg(t)]}(f):[Sg(f)]),b=[f].concat(_).reduce((function(e,n){return e.concat(mg(n)===tg?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?lg:l,d=fg(i),u=d?a?ag:ag.filter((function(e){return fg(e)===d})):ng,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var g=h.reduce((function(t,n){return t[n]=qg(e,{placement:n,boundary:o,rootBoundary:r,padding:s})[mg(n)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),C=t.rects.reference,y=t.rects.popper,w=new Map,S=!0,x=b[0],L=0;L<b.length;L++){var k=b[L],E=mg(k),N=fg(k)===ig,D=[Yh,Xh].indexOf(E)>=0,I=D?"width":"height",q=qg(t,{placement:k,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),R=D?N?Jh:eg:N?Xh:Yh;C[I]>y[I]&&(R=Sg(R));var O=Sg(R),T=[];if(r&&T.push(q[E]<=0),a&&T.push(q[R]<=0,q[O]<=0),T.every((function(e){return e}))){x=k,S=!1;break}w.set(k,T)}if(S)for(var A=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},M=p?3:1;M>0&&"break"!==A(M);M--);t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,g=void 0===h||h,p=n.tetherOffset,m=void 0===p?0:p,f=qg(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=mg(t.placement),_=fg(t.placement),b=!_,C=vg(v),y="x"===C?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,x=t.rects.popper,L="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(w){if(r){var D,I="y"===C?Yh:eg,q="y"===C?Xh:Jh,R="y"===C?"height":"width",O=w[C],T=O+f[I],A=O-f[q],M=g?-x[R]/2:0,P=_===ig?S[R]:x[R],F=_===ig?-x[R]:-S[R],B=t.elements.arrow,V=g&&B?jh(B):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=z[I],H=z[q],j=Rg(0,S[R],V[R]),U=b?S[R]/2-M-j-W-k.mainAxis:P-j-W-k.mainAxis,$=b?-S[R]/2+M+j+H+k.mainAxis:F+j+H+k.mainAxis,K=t.elements.arrow&&Qh(t.elements.arrow),G=K?"y"===C?K.clientTop||0:K.clientLeft||0:0,Z=null!=(D=null==E?void 0:E[C])?D:0,Q=O+$-Z,Y=Rg(g?Rh(T,O+U-Z-G):T,O,g?qh(A,Q):A);w[C]=Y,N[C]=Y-O}if(a){var X,J="x"===C?Yh:eg,ee="x"===C?Xh:Jh,te=w[y],ne="y"===y?"height":"width",ie=te+f[J],oe=te-f[ee],re=-1!==[Yh,eg].indexOf(v),se=null!=(X=null==E?void 0:E[y])?X:0,ae=re?ie:te-S[ne]-x[ne]-se+k.altAxis,le=re?te+S[ne]+x[ne]-se-k.altAxis:oe,ce=g&&re?function(e,t,n){var i=Rg(e,t,n);return i>n?n:i}(ae,te,le):Rg(g?ae:ie,te,g?le:oe);w[y]=ce,N[y]=ce-te}t.modifiersData[i]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=mg(n.placement),l=vg(a),c=[eg,Jh].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return Dg("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ig(e,ng))}(o.padding,n),u=jh(r),h="y"===l?Yh:eg,g="y"===l?Xh:Jh,p=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],f=Qh(r),v=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,_=p/2-m/2,b=d[h],C=v-u[c]-d[g],y=v/2-u[c]/2+_,w=Rg(b,y,C),S=l;n.modifiersData[i]=((t={})[S]=w,t.centerOffset=w-y,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&kg(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=qg(t,{elementContext:"reference"}),a=qg(t,{altBoundary:!0}),l=Og(s,i),c=Og(a,o,r),d=Tg(l),u=Tg(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]});function Mg(e){return(0,vt.Z)("MuiPopperUnstyled",e)}(0,ft.Z)("MuiPopperUnstyled",["root"]);const Pg=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],Fg=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Bg(e){return"function"==typeof e?e():e}const Vg={},zg=n.forwardRef((function(e,t){var i;const{anchorEl:o,children:r,component:s,direction:a,disablePortal:l,modifiers:c,open:d,ownerState:u,placement:h,popperOptions:g,popperRef:p,slotProps:m={},slots:f={},TransitionProps:v}=e,_=Ps(e,Pg),b=n.useRef(null),C=(0,Fs.Z)(b,t),y=n.useRef(null),w=(0,Fs.Z)(y,p),S=n.useRef(w);(0,zs.Z)((()=>{S.current=w}),[w]),n.useImperativeHandle(p,(()=>y.current),[]);const x=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,a),[L,k]=n.useState(x),[E,N]=n.useState(Bg(o));n.useEffect((()=>{y.current&&y.current.forceUpdate()})),n.useEffect((()=>{o&&N(Bg(o))}),[o]),(0,zs.Z)((()=>{if(!E||!d)return;let e=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{k(e.placement)}}];null!=c&&(e=e.concat(c)),g&&null!=g.modifiers&&(e=e.concat(g.modifiers));const t=Ag(E,b.current,Ms({placement:x},g,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[E,l,c,d,g,x]);const D={placement:L};null!==v&&(D.TransitionProps=v);const I=(0,ut.Z)({root:["root"]},Mg,{}),q=null!=(i=null!=s?s:f.root)?i:"div",R=ed({elementType:q,externalSlotProps:m.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:C},ownerState:Ms({},e,u),className:I.root});return(0,bt.jsx)(q,Ms({},R,{children:"function"==typeof r?r(D):r}))})),Wg=n.forwardRef((function(e,t){const{anchorEl:i,children:o,container:r,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:u="bottom",popperOptions:h=Vg,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:v={}}=e,_=Ps(e,Fg),[b,C]=n.useState(!0);if(!l&&!d&&(!m||b))return null;let y;if(r)y=r;else if(i){const e=Bg(i);y=e&&void 0!==e.nodeType?(0,Oc.Z)(e).body:(0,Oc.Z)(null).body}const w=d||!l||m&&!b?void 0:"none",S=m?{in:d,onEnter:()=>{C(!1)},onExited:()=>{C(!0)}}:void 0;return(0,bt.jsx)(Pc,{disablePortal:a,container:y,children:(0,bt.jsx)(zg,Ms({anchorEl:i,direction:s,disablePortal:a,modifiers:c,ref:t,open:m?!b:d,placement:u,popperOptions:h,popperRef:g,slotProps:f,slots:v},_,{style:Ms({position:"fixed",top:0,left:0,display:w},p),TransitionProps:S,children:o}))})})),Hg=Wg;var jg=s(11330);const Ug=["components","componentsProps","slots","slotProps"],$g=(0,mt.ZP)(Hg,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kg=n.forwardRef((function(e,t){var n;const i=(0,jg.Z)(),o=(0,pt.Z)({props:e,name:"MuiPopper"}),{components:r,componentsProps:s,slots:a,slotProps:l}=o,c=(0,lt.Z)(o,Ug),d=null!=(n=null==a?void 0:a.root)?n:null==r?void 0:r.Root;return(0,bt.jsx)($g,(0,ct.Z)({direction:null==i?void 0:i.direction,slots:{root:d},slotProps:null!=l?l:s},c,{ref:t}))}));var Gg=s(13212);function Zg(e){return(0,vt.Z)("MuiTooltip",e)}const Qg=(0,ft.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Yg=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],Xg=(0,mt.ZP)(Kg,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>(0,ct.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Qg.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qg.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qg.arrow}`]:(0,ct.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Qg.arrow}`]:(0,ct.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Jg=(0,mt.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Mt.Z)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,mi.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${Qg.popper}[data-popper-placement*="left"] &`]:(0,ct.Z)({transformOrigin:"right center"},t.isRtl?(0,ct.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,ct.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Qg.popper}[data-popper-placement*="right"] &`]:(0,ct.Z)({transformOrigin:"left center"},t.isRtl?(0,ct.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,ct.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Qg.popper}[data-popper-placement*="top"] &`]:(0,ct.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Qg.popper}[data-popper-placement*="bottom"] &`]:(0,ct.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),ep=(0,mt.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,mi.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let tp=!1,np=null,ip={x:0,y:0};function op(e,t){return n=>{t&&t(n),e(n)}}const rp=n.forwardRef((function(e,t){var i,o,r,s,a,l,c,d,u,h,g,p,m,f,v,_,b,C,y;const w=(0,pt.Z)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:x,components:L={},componentsProps:k={},describeChild:E=!1,disableFocusListener:N=!1,disableHoverListener:D=!1,disableInteractive:I=!1,disableTouchListener:q=!1,enterDelay:R=100,enterNextDelay:O=0,enterTouchDelay:T=700,followCursor:A=!1,id:M,leaveDelay:P=0,leaveTouchDelay:F=1500,onClose:B,onOpen:V,open:z,placement:W="bottom",PopperComponent:H,PopperProps:j={},slotProps:U={},slots:$={},title:K,TransitionComponent:G=Rc,TransitionProps:Z}=w,Q=(0,lt.Z)(w,Yg),Y=zt(),X="rtl"===Y.direction,[J,ee]=n.useState(),[te,ne]=n.useState(null),ie=n.useRef(!1),oe=I||A,re=n.useRef(),se=n.useRef(),ae=n.useRef(),le=n.useRef(),[ce,de]=(0,Xd.Z)({controlled:z,default:!1,name:"Tooltip",state:"open"});let ue=ce;const he=(0,Gg.Z)(M),ge=n.useRef(),pe=n.useCallback((()=>{void 0!==ge.current&&(document.body.style.WebkitUserSelect=ge.current,ge.current=void 0),clearTimeout(le.current)}),[]);n.useEffect((()=>()=>{clearTimeout(re.current),clearTimeout(se.current),clearTimeout(ae.current),pe()}),[pe]);const me=e=>{clearTimeout(np),tp=!0,de(!0),V&&!ue&&V(e)},fe=(0,vi.Z)((e=>{clearTimeout(np),np=setTimeout((()=>{tp=!1}),800+P),de(!1),B&&ue&&B(e),clearTimeout(re.current),re.current=setTimeout((()=>{ie.current=!1}),Y.transitions.duration.shortest)})),ve=e=>{ie.current&&"touchstart"!==e.type||(J&&J.removeAttribute("title"),clearTimeout(se.current),clearTimeout(ae.current),R||tp&&O?se.current=setTimeout((()=>{me(e)}),tp?O:R):me(e))},_e=e=>{clearTimeout(se.current),clearTimeout(ae.current),ae.current=setTimeout((()=>{fe(e)}),P)},{isFocusVisibleRef:be,onBlur:Ce,onFocus:ye,ref:we}=(0,_i.Z)(),[,Se]=n.useState(!1),xe=e=>{Ce(e),!1===be.current&&(Se(!1),_e(e))},Le=e=>{J||ee(e.currentTarget),ye(e),!0===be.current&&(Se(!0),ve(e))},ke=e=>{ie.current=!0;const t=x.props;t.onTouchStart&&t.onTouchStart(e)},Ee=ve,Ne=_e;n.useEffect((()=>{if(ue)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||fe(e)}}),[fe,ue]);const De=(0,fi.Z)(x.ref,we,ee,t);K||0===K||(ue=!1);const Ie=n.useRef(),qe={},Re="string"==typeof K;E?(qe.title=ue||!Re||D?null:K,qe["aria-describedby"]=ue?he:null):(qe["aria-label"]=Re?K:null,qe["aria-labelledby"]=ue&&!Re?he:null);const Oe=(0,ct.Z)({},qe,Q,x.props,{className:(0,dt.Z)(Q.className,x.props.className),onTouchStart:ke,ref:De},A?{onMouseMove:e=>{const t=x.props;t.onMouseMove&&t.onMouseMove(e),ip={x:e.clientX,y:e.clientY},Ie.current&&Ie.current.update()}}:{}),Te={};q||(Oe.onTouchStart=e=>{ke(e),clearTimeout(ae.current),clearTimeout(re.current),pe(),ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.current=setTimeout((()=>{document.body.style.WebkitUserSelect=ge.current,ve(e)}),T)},Oe.onTouchEnd=e=>{x.props.onTouchEnd&&x.props.onTouchEnd(e),pe(),clearTimeout(ae.current),ae.current=setTimeout((()=>{fe(e)}),F)}),D||(Oe.onMouseOver=op(Ee,Oe.onMouseOver),Oe.onMouseLeave=op(Ne,Oe.onMouseLeave),oe||(Te.onMouseOver=Ee,Te.onMouseLeave=Ne)),N||(Oe.onFocus=op(Le,Oe.onFocus),Oe.onBlur=op(xe,Oe.onBlur),oe||(Te.onFocus=Le,Te.onBlur=xe));const Ae=n.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=j.popperOptions)&&e.modifiers&&(t=t.concat(j.popperOptions.modifiers)),(0,ct.Z)({},j.popperOptions,{modifiers:t})}),[te,j]),Me=(0,ct.Z)({},w,{isRtl:X,arrow:S,disableInteractive:oe,placement:W,PopperComponentProp:H,touch:ie.current}),Pe=(e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:r}=e,s={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,Mt.Z)(r.split("-")[0])}`],arrow:["arrow"]};return(0,ut.Z)(s,Zg,t)})(Me),Fe=null!=(i=null!=(o=$.popper)?o:L.Popper)?i:Xg,Be=null!=(r=null!=(s=null!=(a=$.transition)?a:L.Transition)?s:G)?r:Rc,Ve=null!=(l=null!=(c=$.tooltip)?c:L.Tooltip)?l:Jg,ze=null!=(d=null!=(u=$.arrow)?u:L.Arrow)?d:ep,We=Gc(Fe,(0,ct.Z)({},j,null!=(h=U.popper)?h:k.popper,{className:(0,dt.Z)(Pe.popper,null==j?void 0:j.className,null==(g=null!=(p=U.popper)?p:k.popper)?void 0:g.className)}),Me),He=Gc(Be,(0,ct.Z)({},Z,null!=(m=U.transition)?m:k.transition),Me),je=Gc(Ve,(0,ct.Z)({},null!=(f=U.tooltip)?f:k.tooltip,{className:(0,dt.Z)(Pe.tooltip,null==(v=null!=(_=U.tooltip)?_:k.tooltip)?void 0:v.className)}),Me),Ue=Gc(ze,(0,ct.Z)({},null!=(b=U.arrow)?b:k.arrow,{className:(0,dt.Z)(Pe.arrow,null==(C=null!=(y=U.arrow)?y:k.arrow)?void 0:C.className)}),Me);return(0,bt.jsxs)(n.Fragment,{children:[n.cloneElement(x,Oe),(0,bt.jsx)(Fe,(0,ct.Z)({as:null!=H?H:Kg,placement:W,anchorEl:A?{getBoundingClientRect:()=>({top:ip.y,left:ip.x,right:ip.x,bottom:ip.y,width:0,height:0})}:J,popperRef:Ie,open:!!J&&ue,id:he,transition:!0},Te,We,{popperOptions:Ae,children:({TransitionProps:e})=>(0,bt.jsx)(Be,(0,ct.Z)({timeout:Y.transitions.duration.shorter},e,He,{children:(0,bt.jsxs)(Ve,(0,ct.Z)({},je,{children:[K,S?(0,bt.jsx)(ze,(0,ct.Z)({},Ue,{ref:ne})):null]}))}))}))]})})),sp=rp;function ap({width:e,text:t,dense:i,tooltip:o}){const{translator:r}=(0,n.useContext)(jl),s=(0,mt.ZP)(No)((()=>({minWidth:`${e}px`,textAlign:"center",fontSize:i?"12px":"14px",...i&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}})));return n.createElement(sp,{title:o?r.get(t):""},n.createElement(s,{component:"div",variant:"body1",py:"12px"},r.get(t)))}var lp=s(79246);const cp=(0,mt.ZP)(xd)((({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t}))),dp=(0,mt.ZP)("div")((()=>({paddingLeft:"6px",flexGrow:1}))),up=(0,mt.ZP)("div")((({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"}))),hp=(0,mt.ZP)(lp.Z)((()=>({fontSize:"14px"})));function gp({text:e,dismiss:t,dense:i,parentWidth:o=0}){const r="function"==typeof t,s=i?370:282,a=Math.max(o/2-s/2,0),l=Math.min(s,o)-42,c=i&&o<s;return n.createElement(cp,{left:a,style:{maxWidth:s}},n.createElement(dp,null,n.createElement(ap,{text:e,dense:i,width:l,tooltip:c})),n.createElement(up,{dense:i},r&&n.createElement(lo,{"aria-label":"close",onClick:()=>t()},n.createElement(hp,null))))}function pp({model:e,selections:t,direction:i,checkboxes:o,height:r,width:s,listLayout:a="vertical",frequencyMode:l,update:c,fetchStart:d,postProcessPages:u,calculatePagesHeight:h=!1,keyboard:g={},showGray:p=!0,scrollState:m,selectDisabled:f=(()=>!1)}){const[v,_]=(0,n.useState)(!1),[b]=lc(e),C=!(!b||!b.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:y=o,histogram:w}=b??{},S=(0,n.useRef)(null),x=(0,n.useRef)({queue:[],validPages:!1,dataOffset:0}),L=(0,n.useRef)({pages:[]}),{isLoadingData:k,...E}=function({local:e,loaderRef:t,model:i,fetchStart:o,scrollTimeout:r,postProcessPages:s,listData:a}){const[l,c]=(0,n.useState)(!1),[d,u]=(0,n.useState)([]);let[h]=(0,n.useState)(0);const g=(n,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:n+d,stop:l+d});const g=!!t.current&&t.current._listRef&&t.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise((t=>{e.current.timeout=setTimeout((()=>{const n=e.current.queue.slice(-1)[0],r=i.getListObjectData("/qListObjectDef",[{qTop:n.start>h?n.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:n.start,qHeight:h,qLeft:0,qWidth:1}]).then((n=>{const i=s?s(n):n;e.current.validPages=!0,a.current.pages=i,u(i),c(!1),t()}));o&&o(r)}),g?r:0)}))};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(h=e),g)},pages:d,isLoading:l}}({local:x,loaderRef:S,model:e,fetchStart:d,scrollTimeout:0,postProcessPages:u,listData:L}),[N,D]=(0,n.useState)([]),{setStoreValue:I}=kh(e),q=(0,n.useCallback)(E.loadMoreItems,[b]),[R,O]=(0,n.useState)({show:!1,dismissed:!1});(0,n.useEffect)((()=>{D(E?.pages||[])}),[E?.pages]);const T=(0,n.useCallback)((e=>{if(!N?.length||!x.current.validPages)return!1;x.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=N.filter((e=>t(e)))[0];return n&&t(n)}),[b,N]),{instantPages:A=[],interactionEvents:M,select:P}=Hd({layout:b,selections:t,pages:N,checkboxes:y,selectDisabled:f,doc:document,isSingleSelect:C}),{layoutOptions:F={}}=b||{};let B=!0;F.dataLayout&&(B="singleColumn"===F.dataLayout||"row"===F?.layoutOrder);const V="grid"===F?.dataLayout,z=e=>{const t={...B?{rowIndex:e}:{columnIndex:e}},n=V?t:e;S.current._listRef.scrollToItem(n)},W=()=>{if(x.current.queue=[],x.current.validPages=!1,S.current){if(S.current.resetloadMoreItemsCache(!0),b&&b.qSelectionInfo.qInSelections)return;x.current.dataOffset=0,z(0)}};c&&c.call(null,W),(0,n.useEffect)((()=>{A&&!k&&D(A)}),[A]),(0,n.useEffect)((()=>{m&&!v&&S.current&&(S.current._listRef.scrollToItem(m.initScrollPos),_(!0))}),[S.current]),(0,n.useEffect)((()=>{W()}),[b,x.current.dataOffset]);const H=wh({text:Sh(b),font:"14px Source sans pro"});let j=100;const U=F.dataLayout?"singleColumn"===F.dataLayout:"horizontal"!==a,$=b?.qListObject.qSize?.qcy,K=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:i=!1}){const o=e?.length&&i?(({pages:e=[],minimumBatchSize:t,count:n})=>{const i=e.some((e=>e.qArea.qHeight<t)),o=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return i?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}({pages:N,minimumBatchSize:j,count:$,calculatePagesHeight:h,layoutOptions:F,model:e}),G=function({layout:e,width:t,height:n,listCount:i,count:o,textWidth:r}){const{layoutOptions:s={}}=e||{},{layoutOrder:a,maxVisibleRows:l={},maxVisibleColumns:c,dense:d,dataLayout:u}=s,h=Math.min(150,r+18);let g,p,m,f;const v=d?20:29,_=n||8*v;if(a)if("row"===a){g={overflowX:"hidden"};const e=c?.maxColumns||3;p=!1!==c?.auto?Math.min(i,Math.ceil((t-10)/h)):Math.min(i,e),f=Math.ceil(i/p),m=(t-10)/p}else{g={overflowY:"hidden"};const e=l?.maxRows||3;f=!1!==l.auto?Math.floor(_/v):Math.min(i,e),p=Math.ceil(i/f),m=Math.max(h,t/p)}p=("singleColumn"===u?1:p)||1,f=("singleColumn"===u?o:f)||i;const b=s.dense?838e3:577e3;f=Math.min(f,b);const C=Math.floor(3355e4/m);p=Math.min(p,C)||1;const y=f*p;return{columnCount:p,columnWidth:m,rowCount:f,overflowStyling:g,itemSize:v,listHeight:_,scrollBarWidth:10,count:o,listCount:Math.min(i,y),maxCount:{row:b,column:C}}}({layout:b,width:s,height:r,listCount:K,count:$,textWidth:H}),{listCount:Z}=G;I("listCount",Z);const{textAlign:Q}=b?.qListObject.qDimensionInfo||{},[Y,X]=(0,n.useState)({first:!1,last:!1}),{List:J,Grid:ee}=function({layout:e,width:t,checkboxes:i,local:o,isVertical:r,pages:s,selectDisabled:a,interactionEvents:l,frequencyMode:c,histogram:d,isSingleSelect:u,select:h,textAlign:g,selections:p,keyboard:m,showGray:f,scrollState:v,direction:_,listLayout:b,sizes:C,listCount:y,overflowDisclaimer:w,setScrollPosition:S,focusListItems:x}){const{layoutOptions:L={},frequencyMax:k}=e||{},{dense:E=!1}=L||{},{listHeight:N,itemSize:D,rowCount:I,columnCount:q}=C||{},R={direction:"rtl"===_?"rtl":"ltr",useIsScrolling:!0,className:vh},O=e?.qListObject.qDimensionInfo.qLocked,T={isLocked:O,column:!r,pages:s,...O||a()?{}:l,checkboxes:i,dense:E,frequencyMode:c,freqIsAllowed:Gu({width:t,layout:e,frequencyMode:c}),isSingleSelect:u,textAlign:g,actions:{select:h,confirm:()=>p?.confirm.call(p),cancel:()=>p?.cancel.call(p),setScrollPosition:S},frequencyMax:k,histogram:d,keyboard:m,showGray:f,dataOffset:o.current.dataOffset,focusListItems:x};return{List:({onItemsRendered:i,ref:r})=>(o.current.listRef=r,n.createElement(Ch,bh({},R,{dataTestid:"fixed-size-list",height:N,width:t,itemCount:y,layout:b,itemData:{...T,listCount:y},itemSize:D,onItemsRendered:t=>{v&&v.setScrollPos(t.visibleStopIndex),_h({renderProps:t,layoutOptions:L,maxCount:C.maxCount,columnCount:q,rowCount:I,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i({...t})},ref:r}),Ku)),Grid:({onItemsRendered:i,ref:r})=>{const{columnWidth:s,overflowStyling:a,scrollBarWidth:l}=C,{layoutOrder:c}=L||{},d=Math.min(N,I*D+l);return o.current.listRef=r,n.createElement(yh,bh({},R,{dataTestid:"fixed-size-grid",height:d,width:t,columnCount:q,columnWidth:s,rowCount:I,rowHeight:D,style:{...a},itemData:{...T,column:void 0,columnCount:q,rowCount:I,layoutOrder:c},onItemsRendered:t=>{const n=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let u,h,g,p;return n&&n.setScrollPos(d),"column"===i?(u=l*o,h=s,g=c*o,p=a):(u=l,h=s*r,g=c,p=a*r),{visibleStartIndex:u+h,visibleStopIndex:g+p}}({renderProps:t,scrollState:v,layoutOrder:c,rowCount:I,columnCount:q});_h({renderProps:t,layoutOptions:L,maxCount:C.maxCount,columnCount:q,rowCount:I,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i(n)},ref:r}),Ku)}}}({direction:i,layout:b,height:r,width:s,checkboxes:y,frequencyMode:l,histogram:w,keyboard:g,showGray:p,interactionEvents:M,select:P,textAlign:Q,isVertical:U,pages:N,selectDisabled:f,isSingleSelect:C,selections:t,scrollState:m,local:x,sizes:G,listCount:Z,overflowDisclaimer:{state:R,set:e=>O((t=>({...t,show:e})))},setScrollPosition:e=>{const{scrollIndex:t,offset:n,triggerRerender:i}=function({position:e,isRow:t,sizes:n,layout:i,offset:o}){let r,s=!1,a=o??0;switch(e){case"start":r=0;break;case"end":r=t?n.rowCount:n.columnCount;break;case"overflowStart":a=0,r=0,s=!0;break;case"overflowEnd":a=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,n.listCount),r=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:r,offset:a,triggerRerender:s}}({position:e,isRow:B,sizes:G,layout:b,offset:x.current.dataOffset});x.current.dataOffset=n,i&&D((e=>[...e])),z(t)},focusListItems:{first:Y.first,setFirst:e=>X((t=>({...t,first:e}))),last:Y.last,setLast:e=>X((t=>({...t,last:e})))}}),{columnWidth:te,listHeight:ne,itemSize:ie}=G||{};return U||(j=function({width:e,columnWidth:t,listHeight:n,itemSize:i}){return Math.ceil(e/t)*Math.ceil(n/i)*2}({width:s,columnWidth:te,listHeight:ne,itemSize:ie})),n.createElement(n.Fragment,null,!Z&&n.createElement(ap,{width:s,text:"Listbox.NoMatchesForYourTerms"}),n.createElement(Bd,{isItemLoaded:T,itemCount:Z||1,loadMoreItems:q.with({minimumBatchSize:j}),threshold:0,minimumBatchSize:j,ref:S},U?J:ee),R.show&&!R.dismissed&&n.createElement(gp,{text:"Listbox.ItemsOverflow",dismiss:()=>O((e=>({...e,dismissed:!0}))),parentWidth:S?.current?._listRef?.props?.width,dense:F?.dense}))}const mp=e=>({...e,shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),fp=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),vp=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),_p=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),bp=({layout:e,model:t,translator:n})=>e.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:mp,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:vp,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:fp,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:_p,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectExcluded("/qListObjectDef")}}];function Cp(e){return(0,vt.Z)("MuiDivider",e)}const yp=(0,ft.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Sp=(0,mt.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,ct.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,mi.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,ct.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,ct.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,ct.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),xp=(0,mt.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Lp=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:r,component:s=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==s?"separator":void 0),textAlign:u="center",variant:h="fullWidth"}=n,g=(0,lt.Z)(n,wp),p=(0,ct.Z)({},n,{absolute:i,component:s,flexItem:a,light:l,orientation:c,role:d,textAlign:u,variant:h}),m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,ut.Z)(c,Cp,i)})(p);return(0,bt.jsx)(Sp,(0,ct.Z)({as:s,className:(0,dt.Z)(m.root,r),role:d,ref:t,ownerState:p},g,{children:o?(0,bt.jsx)(xp,{className:m.wrapper,ownerState:p,children:o}):null}))})),kp=Lp,Ep=e=>({...e,shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function Np(e){const t=zt(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,i="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:i}}const Dp=n.forwardRef((({ariaExpanded:e=!1,item:t,addAnchor:i=!1},o)=>{const r=zt(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=Np(t);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),u=t.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&t.keyboardAction():null;return n.createElement(lo,{ref:i?null:o,title:t.label,onClick:t.action,onKeyDown:u,disabled:a,style:l,className:"njs-cell-action",size:"large","aria-expanded":e,"aria-controls":"moreMenuList"},c&&sr(t.getSvgIconShape()),i&&n.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Ip=Dp,qp=e=>({...e,shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),Rp=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]}),Op=e=>sr(Rp(e));function Tp(e){return(0,vt.Z)("MuiListItemIcon",e)}const Ap=(0,ft.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function Mp(e){return(0,vt.Z)("MuiMenuItem",e)}const Pp=(0,ft.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Fp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Bp=(0,mt.ZP)(no,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,ct.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,mi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,mi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Pp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,mi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,mi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Pp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yp.inset}`]:{marginLeft:52},[`& .${Rr.root}`]:{marginTop:0,marginBottom:0},[`& .${Rr.inset}`]:{paddingLeft:36},[`& .${Ap.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,ct.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Ap.root} svg`]:{fontSize:"1.25rem"}})))),Vp=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:u,className:h}=i,g=(0,lt.Z)(i,Fp),p=n.useContext(lr),m=n.useMemo((()=>({dense:s||p.dense||!1,disableGutters:l})),[p.dense,s,l]),f=n.useRef(null);(0,fr.Z)((()=>{o&&f.current&&f.current.focus()}),[o]);const v=(0,ct.Z)({},i,{dense:m.dense,divider:a,disableGutters:l}),_=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:r,classes:s}=e,a={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",r&&"selected"]},l=(0,ut.Z)(a,Mp,s);return(0,ct.Z)({},s,l)})(i),b=(0,fi.Z)(f,t);let C;return i.disabled||(C=void 0!==u?u:-1),(0,bt.jsx)(lr.Provider,{value:m,children:(0,bt.jsx)(Bp,(0,ct.Z)({ref:b,role:d,tabIndex:C,component:r,focusVisibleClassName:(0,dt.Z)(_.focusVisible,c),className:(0,dt.Z)(_.root,h)},g,{ownerState:v,classes:_}))})})),zp=Vp,Wp=["className"],Hp=(0,mt.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,ct.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),jp=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiListItemIcon"}),{className:o}=i,r=(0,lt.Z)(i,Wp),s=n.useContext(lr),a=(0,ct.Z)({},i,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,i={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,ut.Z)(i,Tp,n)})(a);return(0,bt.jsx)(Hp,(0,ct.Z)({className:(0,dt.Z)(l.root,o),ownerState:a,ref:t},r))})),Up=jp,$p=Fc,Kp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Gp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Zp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Qp(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Yp(e,t,n,i,o,r){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&Qp(a,r)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const Xp=n.forwardRef((function(e,t){const{actions:i,autoFocus:o=!1,autoFocusItem:r=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu"}=e,h=(0,lt.Z)(e,Kp),g=n.useRef(null),p=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,fr.Z)((()=>{o&&g.current.focus()}),[o]),n.useImperativeHandle(i,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&n){const n=`${$p((0,rs.Z)(e))}px`;g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}})),[]);const m=(0,fi.Z)(g,t);let f=-1;n.Children.forEach(s,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===f)&&(f=t))}));const v=n.Children.map(s,((e,t)=>{if(t===f){const t={};return r&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,bt.jsx)(gr,(0,ct.Z)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,n=e.key,i=(0,rs.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Yp(t,i,c,l,Gp);else if("ArrowUp"===n)e.preventDefault(),Yp(t,i,c,l,Zp);else if("Home"===n)e.preventDefault(),Yp(t,null,c,l,Gp);else if("End"===n)e.preventDefault(),Yp(t,null,c,l,Zp);else if(1===n.length){const o=p.current,r=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&r!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(r);const a=i&&!o.repeating&&Qp(i,o);o.previousKeyMatched&&(a||Yp(t,i,!1,l,Gp,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},h,{children:v}))})),Jp=Xp;function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},em.apply(this,arguments)}const tm="More-icon",nm=(0,mt.ZP)(Ad)((({theme:e})=>({[`& .${tm}`]:{color:e.palette.text.primary}})));function im({item:e,onActionClick:t=(()=>{})}){const{hidden:i,disabled:o,hasSvgIconShape:r}=Np(e);return i?null:n.createElement(zp,{title:e.label,onClick:()=>{e.action(),t()},disabled:o,tabindex:"0"},r&&n.createElement(Up,{className:tm},sr(e.getSvgIconShape())),n.createElement(No,{noWrap:!0},e.label))}const om=n.forwardRef((({actions:e=[],show:t=!0,alignTo:i,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=(()=>{})},a)=>e.length>0&&n.createElement(nm,em({},o,{onClose:s,ref:a,open:t,anchorEl:i.current,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{style:{pointerEvents:"auto",maxWidth:"250px",...r}}}),n.createElement(Jp,{id:"moreMenuList"},e.map(((e,t)=>n.createElement(im,{key:t,item:e,onActionClick:s}))))))),rm="ActionsToolbar-itemSpacing",sm="ActionsToolbar-firstItemSpacing",am="ActionsToolbar-lastItemSpacing",lm=(0,mt.ZP)(Ad)((({theme:e})=>({[`& .${rm}`]:{padding:e.spacing(0,.5)},[`& .${sm}`]:{padding:e.spacing(0,.5,0,0)},[`& .${am}`]:{padding:e.spacing(0,0,0,.5)}}))),cm=n.forwardRef((({ariaExpanded:e=!1,actions:t=[],first:i=!1,last:o=!1,addAnchor:r=!1},s)=>t.length>0?n.createElement(yo,{item:!0,container:!0,gap:0,wrap:"nowrap"},t.map(((a,l)=>{let c=[];const d=i&&0===l,u=o&&t.length-1===l;return d&&!u&&(c=[sm]),u&&!d&&(c=[...c,am]),d||u||0!==c.length||(c=[rm]),n.createElement(yo,{item:!0,key:a.key,className:c.join(" ").trim()},n.createElement(Ip,{ariaExpanded:e,key:a.key,item:a,ref:0===l?s:null,addAnchor:r}))}))):null)),dm={pointerEvents:"none"},um={vertical:"top",horizontal:"right"},hm={vertical:"bottom",horizontal:"right"},gm=function({show:e=!0,actions:t=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:r={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:a=null,actionsRefMock:l=null}){const c=function({api:e,onConfirm:t=(()=>{}),onCancel:i=(()=>{}),onKeyDeactivate:o=(()=>{})}){const{translator:r}=(0,n.useContext)(jl);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(),action:()=>e.clear(),getSvgIconShape:Rp},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(),action:()=>{i(),e.cancel()},keyboardAction:t=>{o(t),i(),e.cancel()},getSvgIconShape:qp},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(),action:()=>{t(),e.confirm()},keyboardAction:n=>{o(n),t(),e.confirm()},getSvgIconShape:Qd}]}(o),{translator:d,keyboardNavigation:u}=(0,n.useContext)(jl),[h,g]=(0,n.useState)(!1),p=(0,n.useRef)(),m=(0,n.useRef)(),f=zt(),v=(0,n.useMemo)((()=>({margin:f.spacing(.5,0)}))),_=e=>{const t=m.current||l;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};(0,n.useEffect)((()=>()=>g(!1)),[s.show]),(0,n.useEffect)((()=>{a&&(a.on("focus_toolbar_first",(()=>{const e=_(!1);e&&e.focus()})),a.on("focus_toolbar_last",(()=>{const e=_(!0);e&&e.focus()})))}),[]);let b=r.enabled,C=r.actions;const y=t.filter((e=>!e.hidden));if(y.length>i){const e=y.splice(-(y.length-i)-1);b=!0,C=[...e,...r.actions]}if(!o.show&&0===y.length)return null;const w={key:"more",label:d.get("Menu.More"),getSvgIconShape:Ep,hidden:!1,active:h,enabled:()=>b,action:()=>g(!h)},S=u&&a&&a.refocusContent?e=>{"Tab"===e.key&&(e.shiftKey&&_(!1)===e.target||!e.shiftKey&&_(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),a.refocusContent())}:null,x=y.length>0,L=C.length>0,k=x&&o.show||L&&o.show,E=n.createElement(yo,{ref:m,onKeyDown:S,container:!0,gap:0,wrap:"nowrap"},x&&n.createElement(cm,{actions:y,first:!0,last:!L&&!o.show}),L&&n.createElement(cm,{ref:p,ariaExpanded:h,actions:[w],first:!x,last:!o.show,addAnchor:!0}),k&&n.createElement(yo,{item:!0,className:rm,style:v},n.createElement(kp,{orientation:"vertical"})),o.show&&n.createElement(cm,{actions:c,first:!x&&!L,last:!0}),h&&n.createElement(om,{show:h,actions:C,alignTo:p,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{g(!1)}}));return s.show?n.createElement(lm,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:um,transformOrigin:hm,hideBackdrop:!0,style:dm,PaperProps:{className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:f.spacing(1,1)}}},E):e&&E};function pm(e){return(0,vt.Z)("MuiInputAdornment",e)}const mm=(0,ft.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var fm;const vm=["children","className","component","disablePointerEvents","disableTypography","position","variant"],_m=(0,mt.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Mt.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${mm.positionStart}&:not(.${mm.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),bm=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=i,u=(0,lt.Z)(i,vm),h=Ds()||{};let g=d;d&&h.variant,h&&!g&&(g=h.variant);const p=(0,ct.Z)({},i,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:r,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${(0,Mt.Z)(o)}`,s,i&&"hiddenLabel",r&&`size${(0,Mt.Z)(r)}`]};return(0,ut.Z)(a,pm,t)})(p);return(0,bt.jsx)(Ns.Provider,{value:null,children:(0,bt.jsx)(_m,(0,ct.Z)({as:s,ownerState:p,className:(0,dt.Z)(m.root,r),ref:t},u,{children:"string"!=typeof o||l?(0,bt.jsxs)(n.Fragment,{children:["start"===c?fm||(fm=(0,bt.jsx)("span",{className:"notranslate",children:"​"})):null,o]}):(0,bt.jsx)(No,{color:"text.secondary",children:o})}))})})),Cm=bm,ym=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e)),wm="/qListObjectDef",Sm=(0,mt.ZP)(Cm)((({theme:e})=>({color:e.listBox?.content?.color}))),xm=(0,mt.ZP)(ua)((({theme:e})=>({color:e.listBox?.content?.color})));function Lm({selections:e,model:t,keyboard:i,dense:o=!1,visible:r=!0,wildCardSearch:s=!0,searchEnabled:a}){const{translator:l}=(0,n.useContext)(jl),[c,d]=(0,n.useState)(""),[u,h]=(0,n.useState)(!1),g=(0,n.useRef)(),p=zt(),{getStoreValue:m}=kh(t),f=async()=>{if(e.isModal())try{await t.abortListObjectSearch(wm)}finally{d("")}};(0,n.useEffect)((()=>{r||f()}),[r]),(0,n.useEffect)((()=>(e.on("deactivated",f),()=>{e.removeListener&&e.removeListener("deactivated",f)})),[]),(0,n.useEffect)((()=>{if(u&&g.current){const e=c.length-1;g.current.setSelectionRange(e,e),h(!1)}}),[u,g.current]);return r&&!1!==a?n.createElement(xm,{startAdornment:n.createElement(Sm,{position:"start"},n.createElement(ym,{size:o?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,backgroundColor:"transparent","& fieldset":{border:`1px solid ${p.palette.divider}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},o&&{fontSize:12,paddingLeft:p.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],inputRef:g,size:"small",fullWidth:!0,placeholder:l.get("Listbox.Search"),value:c,onFocus:()=>{s&&(d("**"),h(!0)),e.isModal()||e.begin(["/qListObjectDef"])},onChange:async e=>(d(e.target.value),e.target.value.length?t.searchListObjectFor(wm,e.target.value):f()),onKeyDown:async n=>{let i;switch(n.key){case"Enter":i=await(async()=>{let n;return await t.searchListObjectFor(wm,c)&&c.length&&m("listCount")>0&&(n=t.acceptListObjectSearch(wm,!0),e.selectionsMade=!0,d("")),n})();break;case"Escape":i=e.isActive()&&e.cancel(),n.preventDefault(),n.stopPropagation()}return i},inputProps:{tabIndex:!i||i.enabled&&!i.active?-1:0}}):null}function km(e){return Object.keys(Ga().prototype).forEach((t=>{e[t]=Ga().prototype[t]})),Ga().init(e),e}const Em=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,r=!1;const s={id:n.id,setLayout(e){i=e},begin(e){const i=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",i),i.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin(n,e,!0))},clear(){return r=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return r=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return r=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const i=this.begin([t.params[0]]);if(!e.isModal())return!1;await i;const o=await n[t.method](...t.params);return r="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(n),goModal:e=>t.begin(n,e,!1),noModal:(e=!1)=>t.end(e)};return km(s),s};function Nm(e,t,i,o){const r=Array.isArray(i)?i:[i],[s]=wc(e),[a]=lc(t),l=t?t.id:null,[c]=fc(),[d]=_c(),u=c.get(e.id);let h=d.get(l);return(0,n.useEffect)((()=>{s&&t&&!h&&(h=Em({appSelections:s,appModal:u,model:t}),d.set(l,h),d.dispatch(!0))}),[s,t]),(0,n.useEffect)((()=>{if(!h)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=(({elements:e,objectSelections:t,options:n})=>{const i=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const i=e.map((e=>"string"==typeof e?document.querySelector(e):e?.current)).filter((e=>!!e&&!!document.contains(e)));i.length&&!i.some((e=>e.contains(n.target)))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",i),n?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",i),n?.onSelectionDeactivated?.()}}})({elements:r,objectSelections:h,options:o});return h.addListener("activated",e),h.addListener("deactivated",t),()=>{h.removeListener("activated",e),h.removeListener("deactivated",t)}}),[h]),(0,n.useEffect)((()=>{h&&h.setLayout(a)}),[h,a]),[h]}const Dm=(e,t,n)=>e?.[t]??n;function Im({alignTo:e,anchorOrigin:t={vertical:"bottom",horizontal:"center"},transformOrigin:i={vertical:"top",horizontal:"center"},show:o,close:r,app:s,fieldName:a,stateName:l="$"}){const c=Boolean(a?.qLibraryId),d=o&&Boolean(e.current),[u,h]=(0,n.useState)(0),g=zt(),[p]=dc({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:c?void 0:[a]},qLibraryId:c?a.qLibraryId:void 0}},s,a,l),m=(0,n.useCallback)((()=>{p.lock("/qListObjectDef")}),[p]),f=(0,n.useCallback)((()=>{p.unlock("/qListObjectDef")}),[p]),{translator:v}=(0,n.useContext)(jl),_=(0,n.useRef)(),b=(0,n.useRef)(),[C]=Nm(s,p,b),[y]=lc(p);if((0,n.useEffect)((()=>{C&&d&&(C.isModal(p)||C.goModal("/qListObjectDef"))}),[C,d]),!p||!y||!v)return null;const w=!0===y.qListObject.qDimensionInfo.qLocked,S=(e,t)=>{const n="escapeKeyDown"!==t;C.noModal(n),r()},x=bp({layout:y,model:p,translator:v}),L=function(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return Dm(t,"qSelected",0)+Dm(t,"qSelectedExcluded",0)+Dm(t,"qLocked",0)+Dm(t,"qLockedExcluded",0)>0}(y);return n.createElement(Ad,{open:d,onClose:S,anchorEl:e.current,anchorOrigin:t,transformOrigin:i,PaperProps:{style:{minWidth:"250px"}}},n.createElement(yo,{container:!0,direction:"column",gap:0,ref:b},n.createElement(yo,{item:!0,container:!0,style:{padding:g.spacing(1)}},n.createElement(yo,{item:!0},w?n.createElement(lo,{onClick:f,disabled:!w,size:"large"},n.createElement(Lc,{title:v.get("Listbox.Unlock")})):n.createElement(lo,{onClick:m,disabled:!L,size:"large"},n.createElement(kc,{title:v.get("Listbox.Lock")}))),n.createElement(yo,{item:!0,xs:!0}),n.createElement(yo,{item:!0},n.createElement(gm,{more:{enabled:!w,actions:x,alignTo:_,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:C,onConfirm:S,onCancel:()=>S(0,"escapeKeyDown")}}))),n.createElement(yo,{item:!0,xs:!0},n.createElement("div",{ref:_}),n.createElement(Lm,{selections:C,model:p,listCount:u,visible:!0}),n.createElement(pp,{model:p,selections:C,direction:"ltr",onSetListCount:e=>h(e)}))))}function qm({field:e,api:t,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=(()=>{})}){const{translator:a}=(0,n.useContext)(jl),l=r||(0,n.useRef)(),c=zt(),[d,u]=(0,n.useState)(!1),h=()=>{u(!1),s()},g=e.selections[i];void 0===g.qTotal&&(g.qTotal=0);const p=g.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},m=(p.qSelected+p.qLocked)/g.qTotal,f=p.qAlternative/g.qTotal,v=(p.qExcluded+p.qLockedExcluded+p.qSelectedExcluded)/g.qTotal,_=p.qSelected+p.qSelectedExcluded+p.qLocked+p.qLockedExcluded,b=0===_&&0===g.qTotal;let C="";g.qTotal===_&&g.qTotal>1?C=a.get("CurrentSelections.All"):_>1&&g.qTotal?C=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(C=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[i]&&(C=`${e.states[i]}: ${C}`);const y=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:v}];y.forEach(((e,t)=>{e.offset=t?y[t-1].offset+y[t-1].ratio:0}));let w=null,S=null,x=null,L=null;return r||(w=n.createElement(yo,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},n.createElement(No,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},g.qField),n.createElement(No,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},C)),g.qLocked?S=n.createElement(yo,{item:!0},n.createElement(lo,{size:"large"},n.createElement(Lc,null))):g.qOneAndOnlyOne||(S=n.createElement(yo,{item:!0},n.createElement(lo,{title:a.get("Selection.Clear"),onClick:n=>{n.stopPropagation(),t.clearField(g.qField,e.states[i])},size:"large"},n.createElement(ar,null)))),x=n.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===b&&y.map((e=>n.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),L=n.createElement(yo,{container:!0,gap:1,ref:l,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&(e=>{e.currentTarget.contains(e.target)&&u(!d)})||null},w,S,x,d&&n.createElement(Im,{alignTo:l,show:d,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}))),r?n.createElement(Im,{alignTo:l,show:!0,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}):L}const Rm=e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current};function Om(e){return(0,vt.Z)("MuiBadge",e)}(0,ft.Z)("MuiBadge",["root","badge","invisible"]);const Tm=["badgeContent","component","children","invisible","max","slotProps","slots","showZero"],Am=n.forwardRef((function(e,t){const{component:n,children:i,max:o=99,slotProps:r={},slots:s={},showZero:a=!1}=e,l=Ps(e,Tm),{badgeContent:c,max:d,displayValue:u,invisible:h}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,r=Rm({badgeContent:t,max:i});let s=n;!1!==n||0!==t||o||(s=!0);const{badgeContent:a,max:l=i}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}(Ms({},e,{max:o})),g=Ms({},e,{badgeContent:c,invisible:h,max:d,showZero:a}),p=(e=>{const{invisible:t}=e,n={root:["root"],badge:["badge",t&&"invisible"]};return(0,ut.Z)(n,Om,void 0)})(g),m=n||s.root||"span",f=ed({elementType:m,externalSlotProps:r.root,externalForwardedProps:l,additionalProps:{ref:t},ownerState:g,className:p.root}),v=s.badge||"span",_=ed({elementType:v,externalSlotProps:r.badge,ownerState:g,className:p.badge});return(0,bt.jsxs)(m,Ms({},f,{children:[i,(0,bt.jsx)(v,Ms({},_,{children:u}))]}))})),Mm=Am,Pm=e=>!e||!pr(e);function Fm(e){return(0,vt.Z)("MuiBadge",e)}const Bm=(0,ft.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Vm=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],zm=(0,mt.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Wm=(0,mt.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,Mt.Z)(n.anchorOrigin.vertical)}${(0,Mt.Z)(n.anchorOrigin.horizontal)}${(0,Mt.Z)(n.overlap)}`],"default"!==n.color&&t[`color${(0,Mt.Z)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Bm.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),Hm=n.forwardRef((function(e,t){var n,i,o,r,s,a;const l=(0,pt.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:u="span",components:h={},componentsProps:g={},overlap:p="rectangular",color:m="default",invisible:f=!1,max:v,badgeContent:_,slots:b,slotProps:C,showZero:y=!1,variant:w="standard"}=l,S=(0,lt.Z)(l,Vm),x=Rm({anchorOrigin:c,color:m,overlap:p,variant:w});let L=f;!1===f&&(0===_&&!y||null==_&&"dot"!==w)&&(L=!0);const{color:k=m,overlap:E=p,anchorOrigin:N=c,variant:D=w}=L?x:l,I=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:s={}}=e,a={root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${(0,Mt.Z)(n.vertical)}${(0,Mt.Z)(n.horizontal)}`,`anchorOrigin${(0,Mt.Z)(n.vertical)}${(0,Mt.Z)(n.horizontal)}${(0,Mt.Z)(o)}`,`overlap${(0,Mt.Z)(o)}`,"default"!==t&&`color${(0,Mt.Z)(t)}`]};return(0,ut.Z)(a,Fm,s)})((0,ct.Z)({},l,{anchorOrigin:N,invisible:L,color:k,overlap:E,variant:D}));let q;"dot"!==D&&(q=_&&Number(_)>v?`${v}+`:_);const R=null!=(n=null!=(i=null==b?void 0:b.root)?i:h.Root)?n:zm,O=null!=(o=null!=(r=null==b?void 0:b.badge)?r:h.Badge)?o:Wm,T=null!=(s=null==C?void 0:C.root)?s:g.root,A=null!=(a=null==C?void 0:C.badge)?a:g.badge;return(0,bt.jsx)(Mm,(0,ct.Z)({invisible:f,badgeContent:q,showZero:y,max:v},S,{slots:{root:R,badge:O},className:(0,dt.Z)(null==T?void 0:T.className,I.root,d),slotProps:{root:(0,ct.Z)({},T,Pm(R)&&{as:u,ownerState:(0,ct.Z)({},null==T?void 0:T.ownerState,{anchorOrigin:N,color:k,overlap:E,variant:D})}),badge:(0,ct.Z)({},A,{className:(0,dt.Z)(I.badge,null==A?void 0:A.className)},Pm(O)&&{ownerState:(0,ct.Z)({},null==A?void 0:A.ownerState,{anchorOrigin:N,color:k,overlap:E,variant:D})})},ref:t}))})),jm=Hm,Um=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e)),$m="MultiState-item",Km=(0,mt.ZP)(yo)((({theme:e})=>({[`&.${$m}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}})));function Gm({field:e,api:t,moreAlignTo:i=null,onClose:o=(()=>{})}){const[r,s]=(0,n.useState)(!!i),[a,l]=(0,n.useState)(-1),[c,d]=(0,n.useState)(i?i.current:null),u=i||(0,n.useRef)(),{translator:h}=(0,n.useContext)(jl),g=h.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=n.createElement(n.Fragment,null,n.createElement(yo,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(jm,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},n.createElement(No,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.name))),n.createElement(yo,{item:!0},n.createElement("div",{style:{width:"12px"}})),n.createElement(yo,{item:!0},n.createElement(lo,{size:"large"},n.createElement(Um,null)))));const f=n.createElement(gr,{dense:!0},n.createElement(Ir,{title:g,onClick:()=>{e.states.forEach((n=>t.clearField(e.name,n)))}},n.createElement(Ca,{variant:"contained",fullWidth:!0},g)),e.states.map(((i,o)=>n.createElement(Ir,{key:o,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},n.createElement(Nn,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},n.createElement(qm,{field:e,api:t,stateIx:o,skipHandleShowListBoxPopover:!0})))))),v=n.createElement(Ad,{open:r,onClose:()=>{s(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},f),_=i?v:n.createElement(Km,{container:!0,gap:0,className:$m,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),u.current=e.currentTarget,s(!r))}},m,r&&v,a>-1&&n.createElement(Im,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return i&&a>-1?n.createElement(Im,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const Zm="More-item",Qm="More-badge",Ym=(0,mt.ZP)(yo)((({theme:e})=>({[`&.${Zm}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${Qm}`]:{padding:e.spacing(0,1)}})));function Xm({items:e=[],api:t}){const i=zt(),[o,r]=(0,n.useState)(!1),[s,a]=(0,n.useState)(-1),[l,c]=(0,n.useState)(null),d=(0,n.useRef)(),u=()=>{a(-1)};let h=null;return s>-1&&(h=e[s].states.length>1?n.createElement(Gm,{field:e[s],api:t,moreAlignTo:d,onClose:u}):n.createElement(qm,{field:e[s],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:u})),n.createElement(Ym,{container:!0,gap:0,className:Zm,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},n.createElement(yo,{item:!0},n.createElement(Nn,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},n.createElement(No,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),n.createElement(yo,{item:!0},n.createElement(lo,{size:"large"},n.createElement(Um,null))),o&&n.createElement(Ad,{open:o,onClose:()=>{r(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},n.createElement(gr,{dense:!0},e.map(((e,i)=>n.createElement(Ir,{key:i,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,i)},n.createElement(Nn,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?n.createElement(Gm,{field:e,api:t}):n.createElement(qm,{field:e,api:t}))))))),h)}function Jm(e,t,n="$"){e.qSelections.forEach((e=>{const i=e.qField,o=t[i]=t[i]||{name:i,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function ef({api:e,app:t}){const i=zt(),[o]=hc(t),[r]=lc(o),[s,a]=(0,n.useState)({items:[],more:[]}),[l]=Cc(),[c,d]=xc(),[u,h]=(0,n.useState)(0);return(0,n.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-72,n=Math.floor(t/120);h(n)}),[d]),(0,n.useEffect)((()=>{if(!(t&&o&&r&&u))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&Jm(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>Jm(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e]))}(r);a((n=>{const i=e;if((()=>{const e=l.get(t.id);return e&&"njsListbox"===e.genericType})()&&i.length+1===n.items.length){const e=n.items.filter((e=>!1===i.some((t=>e.name===t.name))))[0],{qField:t}=e.selections[0];e.selections=[{qField:t}];const o=n.items.indexOf(e);i.splice(o,0,e)}let o=[];return u<i.length&&(o=i.splice(u-i.length)),{items:i,more:o}}))}),[t,o,r,e.isInModal(),u]),n.createElement(yo,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map((t=>n.createElement(yo,{item:!0,key:`${t.states.join("::")}::${t.name}`,style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},t.states.length>1?n.createElement(Gm,{field:t,api:e}):n.createElement(qm,{field:t,api:e})))),s.more.length>0&&n.createElement(yo,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},n.createElement(Xm,{items:s.more,api:e})))}const tf=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e)),nf=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));function of({api:e,app:t}){const{translator:i}=(0,n.useContext)(jl),[o]=gc(t);return n.createElement(yo,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},n.createElement(yo,{item:!0},n.createElement(lo,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},n.createElement(tf,null))),n.createElement(yo,{item:!0},n.createElement(lo,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},n.createElement(nf,null))),n.createElement(yo,{item:!0},n.createElement(lo,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},n.createElement(Op,null))))}const rf=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function sf([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function af(){return rf.map(sf).join("")}function lf({app:e}){const t=zt(),[i]=wc(e);return i?n.createElement(yo,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"}},n.createElement(yo,{item:!0,style:{borderRight:`1px solid ${t.palette.divider}`}},n.createElement(of,{api:i,app:e})),n.createElement(yo,{item:!0,xs:!0,style:{backgroundColor:t.palette.background.darker,overflow:"hidden"}},n.createElement(ef,{api:i,app:e}))):null}var cf=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},df=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),uf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hf=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},gf=void 0;gf="undefined"!=typeof window?window:"undefined"!=typeof self?self:s.g;var pf=null,mf=null,ff=gf.clearTimeout,vf=gf.setTimeout,_f=gf.cancelAnimationFrame||gf.mozCancelAnimationFrame||gf.webkitCancelAnimationFrame,bf=gf.requestAnimationFrame||gf.mozRequestAnimationFrame||gf.webkitRequestAnimationFrame;null==_f||null==bf?(pf=ff,mf=function(e){return vf(e,20)}):(pf=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,2),n=t[0],i=t[1];_f(n),ff(i)},mf=function(e){var t=bf((function(){ff(n),e()})),n=vf((function(){_f(t),e()}),20);return[t,n]});var Cf=function(e){function t(){var e,n,i;cf(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=hf(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var e=i.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(i._parentNode){var r=i._parentNode.offsetHeight||0,s=i._parentNode.offsetWidth||0,a=window.getComputedStyle(i._parentNode)||{},l=parseInt(a.paddingLeft,10)||0,c=parseInt(a.paddingRight,10)||0,d=parseInt(a.paddingTop,10)||0,u=parseInt(a.paddingBottom,10)||0,h=r-d-u,g=s-l-c;(!t&&i.state.height!==h||!n&&i.state.width!==g)&&(i.setState({height:r-d-u,width:s-l-c}),o({height:r,width:s}))}},i._setRef=function(e){i._autoSizer=e},hf(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),df(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=function(e){var t=void 0,n=void 0,i=void 0,o=void 0,r=void 0,s=void 0,a=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,o=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&pf(this.__resizeRAF__),this.__resizeRAF__=mf((function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,d="";i="animationstart";var u="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g=document.createElement("fakeelement");if(void 0!==g.style.animationName&&(c=!0),!1===c)for(var p=0;p<u.length;p++)if(void 0!==g.style[u[p]+"AnimationName"]){d="-"+u[p].toLowerCase()+"-",i=h[p],c=!0;break}t="@"+d+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=d+"animation: 1ms "+n+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){var d=r.ownerDocument,u=gf.getComputedStyle(r);u&&"static"===u.position&&(r.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var i=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=i:s.appendChild(n.createTextNode(i)),r.appendChild(s)}}(d),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=d.createElement("div")).className="resize-triggers";var h=d.createElement("div");h.className="expand-trigger",h.appendChild(d.createElement("div"));var g=d.createElement("div");g.className="contract-trigger",r.__resizeTriggers__.appendChild(h),r.__resizeTriggers__.appendChild(g),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),i&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(r)},r.__resizeTriggers__.addEventListener(i,r.__resizeTriggers__.__animationListener__))}r.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,i=e.className,o=e.disableHeight,r=e.disableWidth,s=e.style,a=this.state,l=a.height,c=a.width,d={overflow:"visible"},u={},h=!1;return o||(0===l&&(h=!0),d.height=0,u.height=l),r||(0===c&&(h=!0),d.width=0,u.width=c),(0,n.createElement)("div",{className:i,ref:this._setRef,style:uf({},d,s)},!h&&t(u))}}]),t}(n.PureComponent);Cf.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const yf=Cf,wf="ListBoxInline-listBoxHeader",Sf="ListBoxInline-screenReaderOnly",xf=(0,mt.ZP)(yo)((({theme:e})=>({backgroundColor:e.listBox?.backgroundColor??e.palette.background.default,[`& .${wf}`]:{alignSelf:"center",display:"inline-flex"},[`& .${Sf}`]:{position:"absolute",height:0,width:0,overflow:"hidden"}}))),Lf=(0,mt.ZP)(No)((({theme:e})=>({color:e.listBox?.title?.main?.color,fontSize:e.listBox?.title?.main?.fontSize,fontFamily:e.listBox?.title?.main?.fontFamily})));function kf({options:e={}}){const{direction:t,frequencyMode:i,listLayout:o,checkboxes:r,search:s=!0,focusSearch:a=!1,rangeSelect:l=!0,model:c,selections:d,update:u,fetchStart:h,selectDisabled:g=(()=>!1),postProcessPages:p,calculatePagesHeight:m,showGray:f=!0,scrollState:v}=e;let{toolbar:_=!0}=e;const b=zt(),C=(0,n.useCallback)((()=>{c.unlock("/qListObjectDef")}),[c]),{translator:y,keyboardNavigation:w,themeApi:S}=(0,n.useContext)(jl);b.listBox=(e=>{const t=t=>e.getStyle("object","",`listBox.${t}`);return{backgroundColor:t("backgroundColor"),title:{main:{color:t("title.main.color"),fontSize:t("title.main.fontSize"),fontFamily:t("title.main.fontFamily")}},content:{color:t("content.color"),fontSize:t("content.fontSize"),fontFamily:t("content.fontFamily")}}})(S);const x=(0,n.useRef)(),[L,k]=(()=>{const[e,t]=(0,n.useState)({});return[e,(0,n.useCallback)((e=>{t({current:e})}),[t])]})(),[E]=lc(c),[N,D]=(0,n.useState)(!1),[I,q]=(0,n.useState)(!1),[R,O]=(0,n.useState)(!1),T=function({setKeyboardActive:e}){return t=>{const{keyCode:n}=t.nativeEvent;switch(n){case Wu.ENTER:case Wu.SPACE:if(!t.target.classList.contains("listbox-container"))return;(t=>{const n=t.querySelector(".search input, .value.selector, .value, .ActionsToolbar-* button");e(!0),n&&n.focus()})(t.currentTarget);break;case Wu.ESCAPE:i=t.currentTarget,e(!1),i.focus();break;default:return}var i;t.preventDefault()}}({setKeyboardActive:O}),A={enabled:w,active:R};if(void 0!==E?.toolbar&&(_=E.toolbar),(0,n.useEffect)((()=>{const e=()=>{D(!0),"inSelection"===s&&q(!0)},t=()=>{D(!1),"toggle"!==s&&"inSelection"!==s||q(!1)};return d&&(d.isModal()||(d.on("deactivated",t),d.on("activated",e)),D(d.isActive())),()=>{d&&d.removeListener&&(d.removeListener("deactivated",e),d.removeListener("activated",t))}}),[d]),(0,n.useEffect)((()=>{if(L&&L.current&&(s&&a||"toggle"===s&&I)){const e=L.current.querySelector("input");e&&e.focus()}}),[L&&L.current,I,s,a]),!c||!E||!y)return null;const M=!0===E.qListObject.qDimensionInfo.qLocked,P=_?bp({layout:E,model:c,translator:y}):[],F=(!0===s||("toggle"===s||"inSelection"===s)&&I)&&!g(),B=E.layoutOptions?.dense??!1,V=49+(F?B?27:40:0)+(B?39:49),{wildCardSearch:z,searchEnabled:W}=E;return n.createElement(xf,{className:"listbox-container",container:!0,tabIndex:A.enabled&&!A.active?0:-1,direction:"column",gap:0,style:{height:"100%",minHeight:`${V}px`,flexFlow:"column nowrap"},onKeyDown:T},_&&E.title&&n.createElement(yo,{item:!0,container:!0,style:{padding:b.spacing(1)}},n.createElement(yo,{item:!0,sx:{display:"flex",alignItems:"center"}},M?n.createElement(lo,{tabIndex:-1,onClick:C,disabled:!M,size:"large"},n.createElement(Lc,{title:y.get("Listbox.Unlock"),style:{fontSize:"12px"}})):!1!==W&&n.createElement(lo,{onClick:()=>{q(!I)},tabIndex:-1,title:y.get("Listbox.Search"),size:"large"},n.createElement(ym,{style:{fontSize:"12px"}}))),n.createElement(yo,{item:!0,className:wf},n.createElement(Lf,{variant:"h6",noWrap:!0},E.title)),n.createElement(yo,{item:!0,xs:!0}),n.createElement(yo,{item:!0},n.createElement(gm,{more:{enabled:!M,actions:P,alignTo:x,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:N,api:d,onConfirm:()=>{},onCancel:()=>{}}}))),n.createElement(yo,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:`${V}px`},role:"region","aria-label":y.get("Listbox.ResultFilterLabel")},n.createElement(yo,{item:!0,ref:k},n.createElement("div",{className:Sf},y.get("Listbox.Search.ScreenReaderInstructions")),n.createElement(Lm,{selections:d,model:c,dense:B,keyboard:A,visible:F,searchContainerRef:k,wildCardSearch:z,searchEnabled:W})),n.createElement(yo,{item:!0,xs:!0},n.createElement("div",{ref:x}),n.createElement("div",{className:Sf},y.get("Listbox.ScreenReaderInstructions")),n.createElement(yf,null,(({height:e,width:s})=>n.createElement(pp,{model:c,selections:d,direction:t,listLayout:o,frequencyMode:i,rangeSelect:l,checkboxes:r,height:e,width:s,update:u,fetchStart:h,postProcessPages:p,calculatePagesHeight:m,selectDisabled:g,keyboard:A,showGray:f,scrollState:v}))))))}const Ef=(e={})=>{const{__DO_NOT_USE__:t={},...n}=e;return{...n,update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1,...t}};function Nf({app:e,fieldIdentifier:t,qId:i,stateName:o,element:r,options:s}){const{isExistingObject:a,hasExternalSelectionsApi:l}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:s}),[c,d]=(0,n.useState)(0);(0,n.useEffect)((()=>{if(c)throw new Error("Source or selection Api can not change after a listbox has been mounted");d(c+1)}),[a,l]);const u=a?function({app:e,qId:t,options:i={}}){const[o,r]=(0,n.useState)(),[s]=oc(),{sessionModel:a}=i,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(i).filter((e=>l.includes(e)));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,n.useEffect)((()=>{a?r(a):async function(){const n=s.get(t);if(n)r(n);else{const n=await e.getObject(t);s.set(n.id,n),r(n)}}()}),[]),o}({app:e,qId:i,options:s}):function({app:e,fieldIdentifier:t,stateName:i,options:o={}}){const[r,s]=(0,n.useState)(""),[a,l]=(0,n.useState)(!0),[c,d]=(0,n.useState)();(0,n.useEffect)((()=>{const n=o.histogram||"N"!==o.frequencyMode;t.qLibraryId&&n?async function(){try{const n=await e.getDimension(t.qLibraryId),i=await n.getLayout();s(i.qDim.qFieldDefs?i.qDim.qFieldDefs[0]:""),l(!1)}catch(e){throw l(!1),s({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():l(!1)}),[]);const{title:u,dense:h,checkboxes:g,properties:p={}}=o;let{frequencyMode:m,histogram:f=!1}=o;switch(r&&r.failedToFetchFieldDef&&(f=!1,m="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(m):m="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(m):m="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(m):m="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(m):m="R";break;default:m="N"}const v={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:i,qShowAlternatives:!0,qFrequencyMode:f&&"N"===m?"V":m,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:f,checkboxes:g,layoutOptions:{dense:h},title:u};let _;if(ql()(!0,v,p),t.qLibraryId?(v.qListObjectDef.qLibraryId=t.qLibraryId,_=t.qLibraryId):(v.qListObjectDef.qDef.qFieldDefs=[t],_=t),"N"!==m||f){const e=t.qLibraryId?r:_;v.frequencyMax={qValueExpression:`Max(AGGR(Count([${e}]), [${e}]))`}}const[b]=dc(v,a?null:e,_,i);return(0,n.useEffect)((()=>{b&&d(b)}),[b]),c}({app:e,fieldIdentifier:t,stateName:o,options:s}),h=(0,n.useRef)(r),g=l?s.selectionsApi:Nm(e,u,[h,".njs-action-toolbar-more"],s)[0];if(!g||!u)return null;const p={...s,selections:g,model:u};return n.createElement(kf,{options:p})}const Df={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function If({app:e,fieldIdentifier:t,stateName:i,element:o,options:r={}}){const[s,a]=(0,n.useState)(!!r.show);return n.createElement(Im,{show:s,app:e,alignTo:{current:o},anchorOrigin:r.anchorOrigin,transformOrigin:r.transformOrigin,close:()=>{a(!1),r.onPopoverClose&&r.onPopoverClose()},fieldName:t,stateName:i})}function qf(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Rf(e,t){let n=0;for(let i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n}function Of({dc:e,def:t,properties:n}){e.qDimensions=e.qDimensions||[],e.qMeasures=e.qMeasures||[],e.qInterColumnSortOrder=e.qInterColumnSortOrder||[],e.qInitialDataFetch=e.qInitialDataFetch||[],e.qColumnOrder=e.qColumnOrder||[],e.qExpansionState=e.qExpansionState||[];const i=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const r="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return r.qDef.cId=r.qDef.cId||af(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(r),qf(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return Rf(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const r="string"==typeof n?{qDef:{qDef:n}}:{...n,qDef:n.qDef||{}};r.qDef.cId=r.qDef.cId||af(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(r),qf(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];Rf(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,i,n)},maxDimensions:()=>t.dimensions.max(e.qMeasures.length),maxMeasures:()=>t.measures.max(e.qDimensions.length),canAddDimension:()=>e.qDimensions.length<o.maxDimensions(),canAddMeasure:()=>e.qMeasures.length<o.maxMeasures()};return o}const Tf=(e,t,n)=>{if(null==e||null==t)return n;const i=t.split(".");let o=e;for(let e=0;e<i.length;++e){const t=i[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},Af=(e,t,n)=>{if(null==e||null==t)return;const i=t.split("."),o=i[i.length-1];let r=e;for(let e=0;e<i.length-1;++e){const t=i[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+i[e+1])?{}:[]),r=r[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?r[o]=n:delete r[o]},Mf=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let i=0;i<t.length;i++){const o=e.indexOf(t[i]);if(n>o)return!1;n=o}return!0}return!1},Pf=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},Ff=function(e,t){let n,i=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i},Bf=2**53-1;function Vf(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function zf(e,t){const n=ql()(!0,{},t,e);return Tf(n,"qOtherTotalSpec.qOtherCounted")||Af(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Tf(n,"qOtherTotalSpec.qOtherLimit")||Af(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Wf(e,t){return ql()(!0,{},t,e)}function Hf(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const jf={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===Tf(e,t)&&Af(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:Vf,importCommonProperties:function(e,t,n){const i="masterobject"===Tf(t,"properties.qInfo.qType")?"masterobject":Tf(n,"qInfo.qType");Af(e,"qInfo.qType",i),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,i){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=i},createDefaultDimension:zf,createDefaultMeasure:Wf,resolveValue:Hf,getHypercubePath:function(e){const t=Tf(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function({exportFormat:e,newHyperCubeDef:t}){const n=e.data[0],i=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==i)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==i;)o<i?(Pf(t.qInterColumnSortOrder,o),++o):(--o,Ff(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach((o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(i.qLayoutExclude.quarantine=ql()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?Af(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||Vf(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]})),i=ql()(!0,{},t,i),null===i.components&&(i.components=[]),i},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],i=t.dimensions||{max:0},o=t.measures||{max:0},r=Hf(o.max,n.dimensions.length,Bf),s=Hf(o.min,n.dimensions.length,0);return{maxDimensions:Hf(i.max,r,Bf),minDimensions:Hf(i.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>i&&i>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>n||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!i&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:r}){const s=e.data[0];r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.qHyperCubeDef||(r.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>t&&t>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&s.dimensions.length&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)i.qDimensions.length<t?i.qDimensions.push(zf(r.dimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(zf(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(zf(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)i.qDimensions.length<n?i.qDimensions.push(zf(r.excludedDimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(zf(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)i.qMeasures.length<t?i.qMeasures.push(Wf(r.measures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Wf(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Wf(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)i.qMeasures.length<n?i.qMeasures.push(Wf(r.excludedMeasures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Wf(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=Tf(e,n||"").qHyperCubeDef,o=[...i.qDimensions];i.qDimensions=[],o.forEach((n=>{i.qDimensions.push(n),t.dimensions.added(n,e)}))}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.measures&&"function"==typeof t.measures.added){const i=Tf(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach((n=>{i.qMeasures.push(n),t.measures.added(n,e)}))}}},Uf={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const n=function(e=1){const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),i=e.qProperty,o=Tf(i,t||""),r=o.qHyperCubeDef,s=n.data[0];if(r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),s.dimensions.push(...r.qDimensions),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...r.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...r.qMeasures),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...r.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=r.qInterColumnSortOrder.concat(),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();Mf(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.qLayoutExclude,Object.keys(i).forEach((e=>{n.properties[e]=i[e]})),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.disabled&&(Object.keys(i.qLayoutExclude.disabled).forEach((e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=i.qLayoutExclude.disabled[e])})),delete i.qLayoutExclude.disabled),i.qLayoutExclude.changed&&(jf.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&(a=i.qLayoutExclude.quarantine,!(0===Object.keys(a).length&&a.constructor===Object))||delete i.qLayoutExclude,n;var a}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const r={qChildren:[]},s=jf.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=Tf(t,o||"").qHyperCubeDef,l=Tf(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h}=jf.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=jf.getDefaultDimension(),defaultMeasure:p=jf.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,jf.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h})&&jf.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h,newHyperCubeDef:l}),jf.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),jf.addDefaultMeasures({exportFormat:e,maxMeasures:u,minMeasures:h,newHyperCubeDef:l,defaultMeasure:p}),jf.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),jf.copyPropertyIfExist("qMaxStackedCells",a,l),jf.copyPropertyIfExist("qNoOfLeftDims",a,l),jf.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),jf.copyPropertyOrSetDefault("qMode",a,l,"S"),jf.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),jf.copyPropertyOrSetDefault("qSortbyYValue",a,l),jf.copyPropertyOrSetDefault("qIndentMode",a,l),jf.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),jf.importCommonProperties(s,e,t),jf.updateDimensionsOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),jf.updateMeasuresOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),r.qProperty=s,r}(e)},$f=e=>Tf(e,"data.targets.0.propertyPath"),Kf={hypercube:Uf};function Gf(e){return(0,vt.Z)("MuiIcon",e)}(0,ft.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Zf=["baseClassName","className","color","component","fontSize"],Qf=(0,mt.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,Mt.Z)(n.color)}`],t[`fontSize${(0,Mt.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),Yf=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium"}=n,l=(0,lt.Z)(n,Zf),c=(0,ct.Z)({},n,{baseClassName:i,color:r,component:s,fontSize:a}),d=(e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root","inherit"!==t&&`color${(0,Mt.Z)(t)}`,`fontSize${(0,Mt.Z)(n)}`]};return(0,ut.Z)(o,Gf,i)})(c);return(0,bt.jsx)(Qf,(0,ct.Z)({as:s,className:(0,dt.Z)(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))}));Yf.muiName="Icon";const Xf=Yf,Jf=e=>sr((e=>({...e,shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function ev({d:e}){const t=zt();let i="inherit",o=t.palette.success.main;e.missing?o=t.palette.warning.main:e.error&&(i="error",o=t.palette.error.main);const r={color:o},s=n.createElement(No,{style:{lineHeight:"30px",paddingRight:t.spacing(1)}},n.createElement(Xf,null,e.missing||e.error?n.createElement(Jf,{style:r}):n.createElement(Yd,{style:r})));return n.createElement(yo,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},n.createElement(yo,{item:!0},s),n.createElement(yo,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},n.createElement(No,{noWrap:!0,component:"p"},n.createElement(No,{component:"span",variant:"subtitle2",color:i},e.description),n.createElement(No,{component:"span"}," "),n.createElement(No,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function tv({data:e}){const t=zt();return n.createElement(yo,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,i)=>{const o=e.descriptions.map(((e,t)=>n.createElement(ev,{d:e,key:t})));return o.length>0&&n.createElement(yo,{container:!0,item:!0,key:i,direction:"column",style:{paddingBottom:t.spacing(2)}},n.createElement(No,{noWrap:!0,key:i,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function nv({title:e="Error",message:t="",data:i=[]}){return n.createElement(yo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},n.createElement(yo,{item:!0},n.createElement(Jf,{style:{fontSize:"38px"}})),n.createElement(yo,{item:!0},n.createElement(No,{variant:"h6",align:"center","data-tid":"error-title"},e)),n.createElement(yo,{item:!0},n.createElement(No,{variant:"subtitle1",align:"center","data-tid":"error-message"},t)),n.createElement(tv,{data:i}))}function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},iv.apply(this,arguments)}const ov="Progress-root",rv="Progress-front",sv="Progress-back",av=(0,mt.ZP)("div")((({theme:e})=>({[`&.${ov}`]:{position:"relative",display:"inline-block"},[`& .${rv}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${sv}`]:{color:e.palette.divider}}))),lv={small:16,medium:32,large:64,xlarge:128};function cv({size:e="medium",...t}){const i=lv[e];return n.createElement(av,{className:ov},n.createElement(Ha,iv({variant:"determinate",value:100,className:sv,size:i,thickness:3},t)),n.createElement(Ha,iv({variant:"indeterminate",disableShrink:!0,className:rv,size:i,thickness:3},t)))}function dv(){return dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},dv.apply(this,arguments)}const uv={stripes:"LongRunningQuery-stripes"},hv=(0,mt.ZP)(yo)((()=>({[`& .${uv.stripes}`]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function gv({cancel:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(hv,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},n.createElement(yo,{item:!0},n.createElement(cv,null)),n.createElement(yo,{item:!0},n.createElement(No,{variant:"h6",align:"center","data-tid":"update-active"},t.get("Object.Update.Active")))),n.createElement(yo,dv({item:!0},i),n.createElement(Ca,{variant:"contained",onClick:e},t.get("Cancel"))))}function pv({retry:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(yo,{item:!0},n.createElement(Jf,{style:{fontSize:"38px"}})),n.createElement(yo,{item:!0},n.createElement(No,{variant:"h6",align:"center","data-tid":"update-cancelled"},t.get("Object.Update.Cancelled"))),n.createElement(yo,{item:!0},n.createElement(Ca,dv({variant:"contained",onClick:e},i),t.get("Retry"))))}function mv({canCancel:e,canRetry:t,api:i}){const{translator:o}=(0,n.useContext)(jl);return n.createElement(yo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:uv.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&n.createElement(gv,{cancel:i.cancel,translator:o,className:uv.cancel}),t&&n.createElement(pv,{retry:i.retry,translator:o,className:uv.retry}))}function fv(){return n.createElement(yo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n.createElement(cv,{size:"large"}))}const vv="Header-containerStyle",_v="Header-containerTitleStyle",bv=(0,mt.ZP)(yo)((({theme:e})=>({[`&.${vv}`]:{flexGrow:0},[`&.${_v}`]:{paddingBottom:e.spacing(1)}}))),Cv=function({layout:e,sn:t,anchorEl:i,hovering:o,focusHandler:r}){const s=e.showTitles&&!!e.title,a=e.showTitles&&!!e.subtitle,l=e.qSelectionInfo&&e.qSelectionInfo.qInSelections,[c,d]=(0,n.useState)([]),[u,h]=xc(),[g,p]=(0,n.useState)(!1);(0,n.useEffect)((()=>{t&&t.component&&t.component.isHooked&&t.component.observeActions((e=>{d([...e,...t&&t.selectionToolbar&&t.selectionToolbar.items||[]])}))}),[t]),(0,n.useEffect)((()=>{if(!h)return;const{width:e}=h;p(e<221)}),[h]);const m=s||a,f=[vv,...m?[_v]:[]],v=(o||l)&&(g||!m),_=m&&!v&&!g,b=n.createElement(gm,{show:_,selections:{show:l,api:t.component.selections,onKeyDeactivate:r.refocusContent},actions:c,popover:{show:v,anchorEl:i},focusHandler:r});return n.createElement(bv,{ref:u,item:!0,container:!0,wrap:"nowrap",className:f.join(" ")},n.createElement(yo,{item:!0,zeroMinWidth:!0,xs:!0},n.createElement(yo,{container:!0,wrap:"nowrap",direction:"column"},s&&n.createElement(No,{variant:"h6",noWrap:!0,className:"njs-cell-title"},e.title),a&&n.createElement(No,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title"},e.subtitle))),n.createElement(yo,{item:!0},b))},yv="Footer-itemStyle",wv=(0,mt.ZP)(yo)((({theme:e})=>({[`& .${yv}`]:{minWidth:0,paddingTop:e.spacing(1)}}))),Sv=function({layout:e}){return e&&e.showTitles&&e.footnote?n.createElement(wv,{container:!0},n.createElement(yo,{item:!0,className:yv},n.createElement(No,{noWrap:!0,variant:"body2",className:"njs-cell-footer"},e.footnote))):null};class xv{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout((()=>{this.doNext()}),10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const Lv=function({sn:e,snOptions:t,snPlugins:i,layout:o,appLayout:r,halo:s}){const{component:a}=e,{theme:l,language:c,constraints:d,keyboardNavigation:u}=(0,n.useContext)(jl),[h]=(0,n.useState)((()=>new xv)),[g,p]=(0,n.useState)(!1),[m,f]=(0,n.useState)(0),[v,_,b]=xc(),[C,y]=(0,n.useState)(null),w=(0,n.useCallback)((e=>{e&&y(e)}),[]);return(0,n.useEffect)((()=>{if(C)return a.created({options:t}),a.mounted(C),p(!0),()=>{h.stop(),a.willUnmount()}}),[C,a]),(0,n.useEffect)((()=>{g&&C&&_&&(!a.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const n=[];return d.passive||n.push("passive"),d.active||n.push("interact"),d.select||n.push("select"),s.app&&s.app.session&&n.push("fetch"),Promise.resolve(a.render({layout:o,options:t,plugins:i,embed:s.public.nebbie,context:{constraints:d,theme:s.public.theme,appLayout:r,keyboardNavigation:u,...a.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:n}}})).then((e=>{!1!==e&&(0===m&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),f(m+1))}))})))}),[_,t,i,C,b,o,r,l,c,d,g,u]),n.createElement("div",{ref:v,"data-render-count":m,style:{position:"relative",height:"100%"},className:"njs-viz"},n.createElement("div",{ref:w,style:{position:"absolute",width:"100%",height:"100%"}}))},kv={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Ev={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};const Nv=(e,t)=>{const n=e?.bgImage;if(n){let i="";"media"!==n.mode&&"media"!==e.useImage||(i=n?.mediaUrl?.qStaticContentUrl?.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=function(e,t){return t?function(e){let t,n,i,o;if(e?.session?.config)return t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://",i+n.host}(e)+t:void 0}(t,i)),"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){let t="center center";return e?.bgImage?.position&&(t=Ev[e.bgImage.position]),t}(e),r=function(e){let t=kv.originalSize;return e?.bgImage?.sizing&&(t=kv[e.bgImage.sizing]),t}(e);return i?{url:i,pos:o,size:r}:void 0}},Dv=(e,t)=>{const n=e?.bgColor;if(n&&t)return n.useExpression?t.validateColor(n.colorExpression):n.color&&"none"!==n.color.color?t.getColorPickerColor(n.color,!0):void 0},Iv=(e,t)=>{switch(t.type){case"LOADING":return{...e,loading:!0};case"LOADED":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization};case"RENDER":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null};case"LONG_RUNNING_QUERY":return{...e,longRunningQuery:!0};case"ERROR":return{...e,loading:!1,longRunningQuery:!1,error:t.error};default:throw new Error(`Unhandled type: ${t.type}`)}};function qv({delay:e=750}){const[t,i]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const t=setTimeout((()=>i(!0)),e);return()=>clearTimeout(t)}),[]),t?n.createElement(fv,null):null}const Rv=e=>!e.qError||7005===e.qError.qErrorCode,Ov=(e,t,n,i,o)=>[...Array(e).keys()].map((e=>{const r=!(!t||!t[e]),s=r&&t[e].qError&&7005===t[e].qError.qErrorCode,a=r&&!s&&t[e].qError,l=s&&t[e].qCalcCondMsg,c=`${a?i:s?l||o:r&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}})),Tv=e=>e&&(Array.isArray(e)?e:[e])||[],Av=(e,t,n,i)=>{const o=i.dimensions.min(),r=i.measures.min(),s=i.resolveLayout(t);return{reqDimErrors:Ov(o,Tv(s.qDimensionInfo),(e=>i.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Ov(r,Tv(s.qMeasureInfo),(e=>i.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Mv=(0,n.forwardRef)((({halo:e,model:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,currentId:a},l)=>{const{app:c,types:d}=e,{nebbie:u}=e.public,{disableCellPadding:h=!1}=e.context||{},{theme:g,translator:p,language:m,keyboardNavigation:f}=(0,n.useContext)(jl),v=zt(),[_,b,C]=xc(),[y,w]=(0,n.useReducer)(Iv,{loading:!1,loaded:!1,longRunningQuery:!1,error:(S=r)?{title:S.message}:null,sn:null,visualization:null});var S;const[x,{validating:L,canCancel:k,canRetry:E},N]=lc(t),[D]=cc(c),[I,q,R]=xc(),[O,T]=(0,n.useState)(i),[A,M]=(0,n.useState)(o),P=`njs-cell-${a}`,[F]=Nm(c,t,[`#${P}`,".njs-action-toolbar-popover"]),[B,V]=(0,n.useState)(!1),z=(0,n.useRef)({enter:null,leave:null}),[W,H]=(0,n.useState)(void 0),[j,U]=(0,n.useState)(void 0),$=(0,n.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,n.useEffect)((()=>{km($.current)}),[]),(0,n.useEffect)((()=>{const t=x?.components?x.components.find((e=>"general"===e.key)):null;H(Dv(t,e.public.theme)),U(Nv(t,e.app))}),[x,e.public.theme,e.app,g]),$.current.blurCallback=t=>{e.root.toggleFocusOfCells(),t&&R&&R.focus()},$.current.refocusContent=()=>{y.sn.component&&"function"==typeof y.sn.component.focus&&y.sn.component.focus()},(0,n.useEffect)((()=>{if(r||!D||!x)return;if(y.visualization===x.visualization&&y.sn)return void(async e=>{const[n,i]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,r=0,s=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],u=d.dimensions.min(),h=d.measures.min(),g=d.resolveLayout(n),p=Tv(g.qDimensionInfo).filter(Rv),m=Tv(g.qMeasureInfo).filter(Rv);if(o+=u,r+=h,(p.length<u||m.length<h)&&(i=!0),g.qError){s=!0,a=7005===g.qError.qErrorCode;const t=a&&g.qCalcCondMsg?g.qCalcCondMsg:a?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:i,aggMinD:o,aggMinM:r,hasLayoutErrors:s,layoutErrors:l}})(e,n,t),c=[],d=[];let u=null;for(let r=0;r<n.length;++r){const s=n[r];if(!a&&o){const n=u||await i.getProperties();u=n;const o=Av(e,t,n,s);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=c.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Dimensions",[h,r]),p=d.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Measures",[p,s]),f=[{title:g,descriptions:[...c]},{title:m,descriptions:[...d]}],v=a?l:f;return[a||o,{title:a?l[0].title:e.get("Visualization.Incomplete"),data:v}]})(p,x,e.generator.qae.data,t);w(n?{type:"ERROR",error:i}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const i=e&&e.component&&e.component.selections;if(i&&i.id&&n.id&&i.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!i.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;i.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||i.isModal()&&i.noModal()}})({sn:y.sn,layout:x,model:t})})(y.sn);const e=d.getSupportedVersion(x.visualization,x.version);if(e)return(async(e,n)=>{w({type:"LOADING"});const i=await(async({dispatch:e,types:t,visualization:n,version:i,model:o,app:r,selections:s,nebbie:a,focusHandler:l})=>{try{const e=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:i});return e.create({model:o,app:r,selections:s,nebbie:a,focusHandler:l})}catch(t){e({type:"ERROR",error:{title:t.message}})}})({dispatch:w,types:d,visualization:e,version:n,model:t,app:c,selections:F,nebbie:u,focusHandler:$.current});i&&(w({type:"LOADED",sn:i,visualization:e}),s())})(x.visualization,e),()=>{};w({type:"ERROR",error:{title:`Could not find a version of '${x.visualization}' that supports current object version. Did you forget to register ${x.visualization}?`}})}),[d,y.sn,t,F,x,D,m]),(0,n.useEffect)((()=>{if(!L)return;const e=setTimeout((()=>w({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[L]),(0,n.useImperativeHandle)(l,(()=>({getQae:()=>y.sn.generator.qae,toggleFocus(e){"function"==typeof y.sn.component.focus&&(e?y.sn.component.focus():y.sn.component.blur())},setSnOptions:T,setSnPlugins:M,async takeSnapshot(){const{width:e,height:t}=b;let n=JSON.parse(JSON.stringify(x));return"function"==typeof y.sn.component.setSnapshotData&&(n=await y.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:p.language(),theme:v.name,appLayout:D,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)}})),[y.sn,q,b,x,v.name,D]);let K=null;return y.loading&&!y.longRunningQuery?K=n.createElement(qv,null):y.error?K=n.createElement(nv,y.error):y.loaded&&(K=n.createElement(Lv,{key:x.visualization,sn:y.sn,halo:e,snOptions:O,snPlugins:A,layout:x,appLayout:D})),n.createElement(xd,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:W||"unset",backgroundImage:j&&j.url?`url(${j.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:j&&j.size,backgroundPosition:j&&j.pos},elevation:0,square:!0,className:"njs-cell",ref:_,id:P,onMouseEnter:()=>{z.current.leave&&clearTimeout(z.current.leave),z.enter||(z.current.enter=setTimeout((()=>{V(!0),z.current.enter=null}),250))},onMouseLeave:()=>{z.current.enter&&clearTimeout(z.current.enter),z.current.leave||(z.current.leave=setTimeout((()=>{V(!1),z.current.leave=null}),750))}},n.createElement(yo,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...h?{}:{padding:v.spacing(1)},...y.longRunningQuery?{opacity:"0.3"}:{}}},C&&x&&y.sn&&n.createElement(Cv,{layout:x,sn:y.sn,anchorEl:C,hovering:B,focusHandler:$.current}," "),n.createElement(yo,{tabIndex:f?0:-1,onKeyDown:f?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,item:!0,xs:!0,style:{height:"100%"},ref:I},K),n.createElement(Sv,{layout:x})),y.longRunningQuery&&n.createElement(mv,{canCancel:k,canRetry:E,api:N}))}));function Pv(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Fv(e="/",t,n){const i=[];return Object.keys(t).forEach((o=>{const r=t[o];var s,a;"object"!=typeof n[o]||"object"!=typeof r||Array.isArray(r)?(s=r,a=n[o],(Pv(s)&&Pv(a)?JSON.stringify(s)===JSON.stringify(a):!Array.isArray(s)&&!Array.isArray(a)&&s===a)||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):i.push(...Fv(`${e}${o}/`,t[o],n[o]))})),i}function Bv(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error(`Invalid plugin format: The plugin "${e.info.name}" has no "fn" function`)}))}const Vv=()=>{};function zv({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=Vv,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h={id:e.id,model:e,async destroy(){await o(),r(),r=Vv},async convertTo(n,i=!0){const o=await(async({halo:e,model:t,cellRef:n,newType:i})=>{const o=await t.getFullPropertyTree(),r=n.current.getQae(),s=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Uf.exportProperties})($f(e)))(r),a=await(async({halo:e,name:t,version:n})=>{const{types:i}=e;return await i.get({name:t,version:n}).supernova()})({halo:e,name:i}),l=a.qae;return(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Uf.importProperties})($f(e)))(l)({exportFormat:s({propertyTree:o,hypercubePath:jf.getHypercubePath(r)}),initialProperties:{qInfo:{qType:i},visualization:i,...Tf(l,"properties.initial",{})},dataDefinition:Tf(l,"data.targets.0.",{}),hypercubePath:jf.getHypercubePath(l)})})({halo:t,model:e,cellRef:s,newType:n});return i&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a}){const{root:l}=e,c=n.createRef(),d=af(),u=Fo.createPortal(n.createElement(Mv,{ref:c,halo:e,model:i,currentId:d,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s}),t,d),h=()=>{l.remove(u),i.removeListener("closed",h)};return i.on("closed",h),l.add(u),l.addCell(d,c),[h,c]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l}),c},async applyProperties(t){const n=Fv("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{Bv(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage:()=>s.current.exportImage(),takeSnapshot:()=>s.current.takeSnapshot(),getModel:()=>e}};return h}async function Wv(e,t,n,i,o=(async()=>{})){const r=zv({model:e,halo:n,initialError:i,onDestroy:o});return t.options&&r.__DO_NOT_USE__.options(t.options),t.plugins&&r.__DO_NOT_USE__.plugins(t.plugins),t.element&&await r.__DO_NOT_USE__.mount(t.element),r}const Hv=function({model:e,halo:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}){const{root:a}=t,[l]=lc(e),{theme:c}=(0,n.useContext)(jl),[d,u]=(0,n.useState)([]),[h,g]=(0,n.useState)(void 0),[p,m]=(0,n.useState)(void 0),[f,v]=(0,n.useState)("");(0,n.useEffect)((()=>{if(l){const e=JSON.stringify(l.cells);if(e===f)return;v(e);const i=async()=>{d.forEach((e=>{a.removeCell(e.currentId)}));const e=l.cells,i=await Promise.all(e.map((async e=>{let i;const o=new Promise((e=>{i=e})),r=d.find((t=>t.id===e.name));if(r)return r.bounds=e.bounds,delete r.mountedPromise,r;const s=await async function({id:e,options:t,plugins:n,element:i},o){const r=`${e}`;let s=Jl.get(r);s||(s=o.app.getObject(e),Jl.set(r,s));const a=await s;return rc.set(r,a),Wv(a,{options:t,plugins:n,element:i},o)}({id:e.name},t);return{model:s.model,id:e.name,bounds:e.bounds,cellRef:n.createRef(),currentId:af(),mounted:i,mountedPromise:o}})));i.forEach((e=>a.addCell(e.currentId,e.cellRef))),u(i)};i()}}),[l]);const _=(0,n.useMemo)((()=>d?d.map((e=>function(e,t,i,o,r,s){const{x:a,y:l,width:c,height:d}=e.bounds;return n.createElement("div",{style:{left:`${a}%`,top:`${l}%`,width:`${c}%`,height:`${d}%`,position:"absolute"}},n.createElement(Mv,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}))}(e,t,i,o,r,e.mounted))):[]),[d]);(0,n.useEffect)((()=>{const e=l?.components?l.components.find((e=>"general"===e.key)):null;g(Dv(e,t.public.theme)),m(Nv(e,t.app))}),[l,t.public.theme,t.app,c]);const b=!l||Number.isNaN(l.height)?"100%":`${Number(l.height)}%`,C=d.map((e=>e.mountedPromise));return C.filter((e=>!!e)).length&&Promise.all(C).then((()=>{s()})),n.createElement("div",{className:"njs-sheet",style:{width:"100%",height:b,position:"relative",backgroundColor:h,backgroundImage:p&&p.url?`url(${p.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:p&&p.size,backgroundPosition:p&&p.pos}},_)},jv=()=>{};async function Uv({id:e,options:t,plugins:i,element:o},r){const s=`${e}`;let a=Jl.get(s);a||(a=r.app.getObject(e),Jl.set(s,a));const l=await a;return rc.set(s,l),"sheet"===l.genericType?async function(e,t,i,o,r=(async()=>{})){const s=function({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=jv,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h={id:e.id,model:e,async destroy(){await o(),r(),r=jv},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a}){const{root:l}=e,c=n.createRef(),d=Fo.createPortal(n.createElement(Hv,{ref:c,halo:e,model:i,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s}),t,i.id),u=()=>{l.remove(d),i.removeListener("closed",u)};return i.on("closed",u),l.add(d),[u,c]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l}),c},async applyProperties(t){const n=Fv("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{Bv(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}({model:e,halo:i,initialError:void 0,onDestroy:r});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}(l,{options:t,plugins:i,element:o},r):Wv(l,{options:t,plugins:i,element:o},r)}function $v(e={}){return{isEnabled:t=>!0===e[t]}}const Kv=ql().bind(null,!0),Gv={},{isArray:Zv}=Array;function Qv(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Yv(e){return void 0===e}function Xv(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Jv(e,t){const n=t.substring(1).split("/").slice(0,-1);let i;return n.forEach(((t,o)=>{if(o===n.length)return;i=+t;const r=isNaN(i)?{}:[];e[i||t]=Yv(e[i||t])?r:e[t],e=e[i||t]})),e}function e_(e,t){let n=!0;if(Qv(e)&&Qv(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((i=>{e_(e[i],t[i])||(n=!1)})),n);if(Zv(e)&&Zv(t)){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n+=1)if(!e_(e[n],t[n]))return!1;return!0}return e===t}Gv.generate=function(e,t,n){n=n||"";let i=[];return Object.keys(t).forEach((o=>{const r=function(e){return e?Kv({},{val:e}).val:e}(t[o]),s=e[o],a=`${n}/${o}`;e_(r,s)||Xv(t,o)||(Yv(s)?i.push({op:"add",path:a,value:r}):Qv(r)&&Qv(s)?i=i.concat(Gv.generate(s,r,a)):Zv(r)&&Zv(s)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let r=-1;function s(e,t,n){if(e[n]&&Yv(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(e_(t,o))return i;if(!Yv(t[0])&&Yv(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(Gv.generate(o[e],t[r],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return i}(s,r,a)):i.push({op:"replace",path:`${n}/${o}`,value:r}))})),Object.keys(e).forEach((o=>{Yv(t[o])&&!Xv(e,o)&&i.push({op:"remove",path:`${n}/${o}`})})),i},Gv.apply=function(e,t){t.forEach((t=>{let n=Jv(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&isNaN(+i)?n[i]:n[+i]||n;const r=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Zv(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(Zv(o)&&Zv(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Qv(o)&&Qv(t.value))s=o,Object.keys(s).forEach((e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!Xv(s,e)&&delete s[e]})),Kv(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){const o=Jv(e,t.from);Zv(n)?n.splice(+i,0,o.splice(+r,1)[0]):(n[i]=o[r],delete o[r])}else"remove"===t.op&&(Zv(n)?n.splice(+i,1):delete n[i]);var s}))},Gv.clone=function(e){return Kv({},e)},Gv.createPatch=function(e,t,n){const i={op:e.toLowerCase(),path:n};return"move"===i.op?i.from=t:void 0!==t&&(i.value=t),i},Gv.updateObject=function(e,t){Object.keys(e).length?Gv.apply(e,Gv.generate(e,t)):Kv(e,t)};const t_=Gv;let n_,i_;function o_(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function r_(e,{explicitResize:t=!1}={}){e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function s_(e){l_(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function a_(e){if(e.__hooks.obsolete)return Promise.resolve();i_=-1,n_=e;let t=-1;n_.__hooks.initiated&&(t=n_.__hooks.list.length);try{n_.fn.call(null)}catch(e){console.error(e)}n_.__hooks.initiated=!0,t>-1&&t!==n_.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=n_.__hooks;return h_(n_),i_=void 0,n_=void 0,n.chain.promise||(n.chain.promise=new Promise((e=>{n.chain.resolve=e}))),function(e){l_(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){l_(e.pendingEffects),e.macro=null,function(e){e.pendingPromises.length||e.micro||e.macro||(e.chain.promise=null,e.chain.resolve(!e.waitForData))}(e)}(e)})))}(n),n.chain.promise}function l_(e,t){try{e.forEach((e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())}))}catch(e){console.error(e)}e.length=0}function c_(e,t){try{return Promise.all(e.__hooks.snaps.map((e=>Promise.resolve(e.fn(t))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function d_(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function u_(e){return e.__hooks.imperativeHandle}function h_(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function g_(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,h_(e))}function p_(e){if(void 0===n_)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=n_.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function m_(e){return p_(++i_),n_.context[e]}function f_(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function v_(e){return{__hooked:!0,fn:e,initiate:r_,run:a_,teardown:s_,runSnaps:c_,runMenu:d_,focus:U_,blur:$_,observeActions:g_,getImperativeHandle:u_,updateRectOnNextRun:f_}}function __(e){const t=p_(++i_);if(!t.value){t.component=n_;const n=e=>{if(t.component.__hooks.obsolete)throw new Error("Calling setState on an unmounted component is a no-op and indicates a memory leak in your component.");const n="function"==typeof e?e(t.value[0]):e;var i;n!==t.value[0]&&(t.value[0]=n,(i=t.component).__hooks.micro||(i.__hooks.micro=setTimeout((()=>{i.__hooks.micro=null,a_(i)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function b_(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=p_(++i_);o_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===n_.__hooks.pendingEffects.indexOf(n)&&n_.__hooks.pendingEffects.push(n))}function C_(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=p_(++i_);o_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],n_.__hooks.pendingLayoutEffects.push(n))}function y_(e,t){t||console.warn("useMemo called without dependencies.");const n=p_(++i_);return o_(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function w_(e,t){const[n,i]=__((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=p_(++i_);return o.component||(o.component=n_),C_((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),i({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),i({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]}function S_(){return m_("element")}function x_(){const e=S_(),t=n_.__hooks.resizer,[n,i]=__((()=>{const{left:t,top:n,width:i,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:i,height:o}}));return t.current=n,-1===t.setters.indexOf(i)&&t.setters.push(i),t.update&&t.resize&&(t.update=!1,t.resize()),C_((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===n&&s.top===i||t.setters.forEach((e=>e({left:n,top:i,width:o,height:r})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let i=new ResizeObserver(n);return i.observe(e),()=>{i.unobserve(e),i.disconnect(e),i=null,t.resize=void 0}}}),[e]),n}function L_(){return m_("layout")}function k_(){const e=m_("layout"),[t]=__({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function E_(){return m_("appLayout")}function N_(){const e=m_("model");return e&&e.session?e:void 0}function D_(){const e=m_("app");return e&&e.session?e:void 0}function I_(){const e=m_("global");return e&&e.session?e:void 0}function q_(){return m_("selections")}function R_(){return m_("theme")}function O_(){return m_("nebbie")}function T_(){return m_("translator")}function A_(){return m_("deviceType")}function M_(){return m_("plugins")}function P_(e,t){const[n]=__({action(){n._config.action.call(null)}});return n.component||(n.component=n_,n_.__hooks.actions.list.push(n)),y_((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action}function F_(){return m_("constraints")}function B_(){return m_("options")}function V_(e,t){const n=p_(++i_);if(!n.imperative){if(n_.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(o_(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],n_.__hooks.imperativeHandle=i}}function z_(e){const t=p_(++i_);t.value||(t.value=1,n_.__hooks.snaps.push(t)),t.fn=e}function W_(e){const t=p_(++i_);t.value||(t.value=1,n_.__hooks.menus.push(t)),t.fn=e}function H_(){p_(++i_);const e=n_.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function j_(){const e=m_("keyboardNavigation"),t=m_("focusHandler");if(!n_.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&($_(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(n_);n_.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),U_(this))}.bind(n_);n_.__hooks.accessibility.focusFunction=n;const i=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(n_);n_.__hooks.accessibility.focusSelectionFunction=i}const n=n_.__hooks.accessibility.focusFunction,i=n_.__hooks.accessibility.exitFunction,o=n_.__hooks.accessibility.focusSelectionFunction,[r,s]=__({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return n_.__hooks.accessibility.setter=s,n_.__hooks.accessibility.enabled=e,b_((()=>s({active:!1,enabled:e,blur:i,focus:n,focusSelection:o})),[e]),r}function U_(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function $_(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const K_={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},G_=Object.keys(K_);function Z_(e,t){console.warn("Obsolete API - time to get hooked!");const n={...K_};var i;i=n,Object.keys(Ga().prototype).forEach((e=>{i[e]=Ga().prototype[e]})),Ga().init(i);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==G_.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const r=function({sn:e,component:t}){const n={},i=[],o=(e=>t=>{const n=(i={...t,action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0},Object.keys(Ga().prototype).forEach((e=>{i[e]=Ga().prototype[e]})),Ga().init(i),i);var i;return n})(t);return((e.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=o(e);n[e.key]=t,i.push(t)})),(e.definition.actions||[]).forEach((e=>{const t=o(e);n[e.key]=t})),{actions:n,selectionToolbarItems:i,destroy(){i.length=0}}}({sn:e,component:o}),s=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:s,selections:t.selections,actions:r.actions}),Object.assign(n,{actions:r.actions,model:t.model,app:t.app,selections:t.selections}),[n,r]}const Q_=()=>{};function Y_(e,t){return void 0===e?()=>t:()=>e}function X_(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Y_(t.min,0),max:"function"==typeof t.max?t.max:Y_(t.max,1e3),added:t.added||t.add||Q_,description:t.description||Q_,moved:t.moved||t.move||Q_,removed:t.removed||t.remove||Q_,replaced:t.replaced||t.replace||Q_,isDefined:()=>!!e}}function J_(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error(`Incorrect definition for ${e} at ${t}. Valid paths include /qHyperCubeDef or /qListObjectDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(e,n,{}),dimensions:X_(e.dimensions),measures:X_(e.measures)}}function eb(e={}){let t,n=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(n=e.properties.initial,t=e.properties.onChange),{properties:{initial:n,onChange:t},data:{targets:((e.data||{}).targets||[]).map(J_)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function tb(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:eb(n.qae),component:n.component||{},create:e=>function(e,t,n){"function"==typeof e.component&&(e.component=v_(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==a_&&console.warn("Detected multiple supernova modules, this might cause problems.");const i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const r={},s=["appLayout","constraints"],a={};t.model&&t.model.session||(a.select=!0);const l={context:{model:t.model,app:t.app,global:i,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:a,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(l,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let i=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(i=!0)})),i&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}s.forEach((e=>{const i=t.context;if(i&&Object.prototype.hasOwnProperty.call(i,e)){let t=JSON.stringify(i[e]);"constraints"===e&&(t=JSON.stringify({...i[e],...a})),t!==r[e]&&(n=!0,r[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(n=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(n=!0,r.language=l.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return s.forEach((e=>{r[e]=JSON.stringify(l.context[e])})),r.themeName=l.context.theme?l.context.theme.name():void 0,r.language=l.context.translator?l.context.translator.language():void 0,Object.assign(l,{selections:t.selections}),[l,null]}(e,t,n):Z_(e,t),r=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(...n){return e.qae.properties.onChange.call({model:t.model},...n),t.model.__snInterceptor.setProperties.call(this,...n)},t.model.applyPatches=function(n,i){const o=i?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const r=t_.clone(o),s=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));t_.apply(o,s),e.qae.properties.onChange.call({model:t.model},o);const a=t_.generate(r,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,a,i)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}(i,e,t),definition:{}};return Object.keys(n).forEach((e=>{i[e]||(i.definition[e]=n[e])})),i}var nb=s(91068);const ib={};function ob(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,r)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:r}=n,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||(0,nb.satisfies)(e,r.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!ib[o]){const r=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(i||n.load)({name:e,version:t}),a=Promise.resolve(s);ib[o]=a.then((e=>{if(!e)throw new Error(`load() of visualization '${r}' resolved to an invalid object`);return e})).catch((e=>{throw console.warn(e),new Error(`Failed to load visualization: '${r}'`)}))}return ib[o]}(s.name,s.version,t,n.load).then((e=>(i=i||tb(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i))),initialProperties(e,t=!1){return this.supernova().then((()=>{const n={qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o)};return t?(ql()(!0,n,e),n):{...n,...e}}))}};return s}({name:e,version:o},t,r),i=null},getMatchingVersionFromProperties:e=>{var t;i||(t=Object.keys(n),i=[...t.filter((e=>"undefined"===e)),...t.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]);for(let t=i.length-1;t>=0;t--)if(n[i[t]].supportsPropertiesVersion(e))return i[t];return null},versions:n}}const rb={context:({},{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1}),load:()=>{},types:[],themes:[],anything:{},snapshot:{get:async e=>{const t=await fetch(`/njs/snapshot/${e}`);if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))}},sb=(e={},t={})=>({...e,...t}),ab=(e=[],t=[])=>[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t)),lb=function e(t={}){const i=function(e){const t=Ua({initial:e});return Object.keys($a).forEach((e=>{t.translator.add($a[e])})),{translator:t.translator}}(t.context.language);function o(e,r){if(r)return o.createConfiguration(r)(e);let s={...t.context,translator:i.translator};const[a]=function({app:e,context:t}){let i;const o=new Promise((e=>{i=e})),r=n.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","3.2.2"),s.setAttribute("data-app-id",e.id),document.body.appendChild(s),Fo.render(n.createElement(Sc,{ref:r,app:e,initialContext:t}),s,i);const a={};return[{toggleFocusOfCells(e){Object.keys(a).forEach((t=>{a[t].current.toggleFocus(t===e)}))},cells:a,addCell(e,t){a[e]=t},removeCell(e){delete a[e]},add(e){(async()=>{await o,r.current.addComponent(e)})()},remove(e){(async()=>{await o,r.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await o,r.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,r.current.setContext(e)})()},getAppSelections:async()=>(await o,r.current.getAppSelections())},r,o]}({app:e,context:s}),l=function({themes:e=[],root:t}={}){const n=Hl();return{setTheme:async i=>{const o=e.filter((e=>e.id===i))[0];let r="dark"===i?"dark":"light";if(o&&o.load)try{const e=await Promise.race([o.load(),(5e3,s={__timedOut:!0},new Promise((e=>{setTimeout((()=>e(s)),5e3)})))]);e.__timedOut?console.warn(`Timeout when loading theme '${i}'`):(r="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,i),t.setMuiThemeName(r))}catch(e){console.error(e)}else n.internalAPI.setTheme({type:r},i),t.setMuiThemeName(r);var s},externalAPI:n.externalAPI}}({themes:t.themes,root:a});s.themeApi=l.externalAPI;const c={galaxy:{translator:i.translator,flags:$v(t.flags),deviceType:(h=t.context.deviceType,"auto"!==h?h:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"),anything:t.anything},theme:l.externalAPI,translator:i.translator,nebbie:null},d={app:e,root:a,config:t,public:c,context:s,types:null},u=function({halo:e,parent:t}){const n={},i=t||{get:()=>{}};return{register:(t,i)=>{n[t.name]||(n[t.name]=ob(t.name,e)),n[t.name].register(t.version,i)},getSupportedVersion:(e,t)=>n[e]?n[e].getMatchingVersionFromProperties(t):null,get(e){const{name:t}=e;let{version:o}=e;if(n[t]){if(!n[t].versions[o]){const e=Object.keys(n[t].versions)[0];console.warn(`Version ${o} of ${t} is not registered. Falling back to version ${e}`),o=e}}else console.warn(`Visualization ${t} is not registered. Adding it now.`),this.register({name:t,version:o});return n[t].get(o)||i.get(e)},getList:()=>Object.keys(n).map((e=>({name:e,versions:Object.keys(n[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{n[e]&&(n[e]=void 0),function(e){Object.keys(ib).forEach((t=>{t.split("__")[0]===e&&(ib[t]=void 0)}))}(e)}}}({halo:d});var h;t.types.forEach((e=>u.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let g=l.setTheme(t.context.theme),p=null,m=null;const f={render:async e=>(await g,e.id?Uv(e,d):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:r,element:s,extendProperties:a},l){let c,d={};try{const o=l.types.get({name:e,version:t});d=await o.initialProperties(i,a);const r=await o.supernova();n&&function({sn:e,properties:t,fields:n}){if(!n.length)return;const i=e.qae.data.targets[0];if(!i)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:o}=i,r=o.split("/");let s=t;for(let e=0;e<r.length;e++){const t=r[e];s=t?s[t]:s}const a=Of({dc:s,def:i,properties:t});n.forEach((e=>{const t=function(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}(e);"measure"===t?a.addMeasure(e):a.addDimension(e)}))}({sn:r,properties:d,fields:n}),i&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},d)}catch(t){c=t,d={qInfo:{qType:e},visualization:e}}const u=await l.app.createSessionObject(d);rc.set(u.id,u);const h=(e=>{const t=ic({type:"SET",value:e});return()=>{t(),rc.clear(e.id)}})(u);return Wv(u,{options:o,plugins:r,element:s},l,c,(async()=>{await l.app.destroySessionObject(u.id),h()}))}(e,d)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==s[n]&&(t||(t={}),t[n]=e[n])})),t&&(s={...s,...t,translator:i.translator},d.context=s,t.theme&&(g=l.setTheme(t.theme),await g),t.language&&d.public.translator.language(t.language),a.context(s))},selections:async()=>(p||(p={mount(t){m?console.error("Already mounted"):(m=function({element:e,app:t}){return Fo.createPortal(n.createElement(lf,{app:t}),e,af())}({element:t,app:e}),a.add(m))},unmount(){m&&(a.remove(m),m=null)}}),p),field:async t=>{let i;const o="string"==typeof t?t:t.qLibraryId;if(t.qId)i=t.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const r={fieldName:o,mount(s,l={}){if(!s)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);this._instance=function({element:e,app:t,fieldIdentifier:i,qId:o,stateName:r="$",options:s={}}){return Fo.createPortal(n.createElement(Nf,{app:t,element:e,fieldIdentifier:i,qId:o,stateName:r,options:s}),e,af())}({element:s,app:e,fieldIdentifier:t,qId:i,options:Ef({onSelectionActivated:()=>r.emit("selectionActivated"),onSelectionDeactivated:()=>r.emit("selectionDeactivated"),...l}),stateName:l.stateName||"$"}),a.add(this._instance)},unmount(){this._instance&&(a.remove(this._instance),this._instance=null)}};return km(r),r},getRegisteredTypes:u.getList,__DO_NOT_USE__:{types:u,popover(t,i,o){f._popoverInstance&&(a.remove(f._popoverInstance),f._popoverInstance=null);const r=((e={})=>{const t={...Df};return ql()(!0,t,e),t})({onPopoverClose:()=>f.emit("fieldPopoverClose"),...o});f._popoverInstance=n.createElement(If,{element:t,key:af(),app:e,fieldIdentifier:i,options:r,stateName:o.stateName||"$"}),a.add(f._popoverInstance)}}};return d.public.nebbie=f,d.types=u,km(f),f}return o.createConfiguration=n=>e(((e,t)=>({context:sb(e.context,t.context),load:t.load||e.load,snapshot:{...t.snapshot||e.snapshot},types:ab(e.types,t.types),themes:ab(e.themes,t.themes),flags:sb(e.flags,t.flags),anything:sb(e.anything,t.anything)}))(t,n)),o.config=t,o}(rb),cb=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},db=globalThis.crypto||{getRandomValues:()=>123456},ub=function(){return e=>{const t=ql()({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^db.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const n=t._mock;let i=t;return n&&(delete t._mock,i=ql()({},t,n)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(i),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId,...t})}},hb=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,gb=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const r=hb(e,{defaultValue:t,args:o});return n?new Promise((e=>{setTimeout((()=>e(r)),i)})):r},pb=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function mb(e){return!pb.includes(e)}function fb(e){const t=hb(e.getLayout);return t.qInfo&&t.qInfo.qId}function vb(e,t){let n=fb(e);const{delay:i}=t,{id:o,session:r,...s}=e;if(o&&n&&o!==n)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${n}, id: ${o}`);return n=n||o||"object - "+ +Date.now(),{[n]:{id:n,session:hb(r,{defaultValue:!0}),on:()=>{},once:()=>{},...Object.entries(s).reduce(((e,[t,n])=>({...e,[t]:gb(n,{async:mb(t),delay:i})})),{}),genericType:e.type}}}function _b(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!fb(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const bb=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(_b);const n=function(e,t){return e.reduce(((e,n)=>({...e,...vb(n,t)})),{})}(e,t);return async e=>Promise.resolve(n[e])},Cb=function(){return()=>Promise.resolve({id:"app-layout"})},yb={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new cb,i=new ub,o=new bb(e,t),r=new Cb,s={id:"app - "+ +Date.now(),session:n,createSessionObject:i,getObject:o,getAppLayout:r};return Promise.resolve(s)}(e,t)},wb=yb,Sb={generator:tb,hook:v_,theme:Hl,locale:Ua};var xb=s(32981),Lb=s(16254),kb=s(26613),Eb=s(82665),Nb=s(70200);function Db(e){return(0,vt.Z)("MuiToolbar",e)}(0,ft.Z)("MuiToolbar",["root","gutters","regular","dense"]);const Ib=["className","component","disableGutters","variant"],qb=(0,mt.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),Rb=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:r=!1,variant:s="regular"}=n,a=(0,lt.Z)(n,Ib),l=(0,ct.Z)({},n,{component:o,disableGutters:r,variant:s}),c=(e=>{const{classes:t,disableGutters:n,variant:i}=e,o={root:["root",!n&&"gutters",i]};return(0,ut.Z)(o,Db,t)})(l);return(0,bt.jsx)(qb,(0,ct.Z)({as:o,className:(0,dt.Z)(c.root,i),ref:t,ownerState:l},a))})),Ob=Rb;function Tb(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function Ab(e){return(0,vt.Z)("MuiToggleButtonGroup",e)}const Mb=(0,ft.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),Pb=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Fb=(0,mt.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mb.grouped}`]:t.grouped},{[`& .${Mb.grouped}`]:t[`grouped${(0,Mt.Z)(n.orientation)}`]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,ct.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Mb.grouped}`]:(0,ct.Z)({},"horizontal"===e.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${Mb.selected} + .${Mb.grouped}.${Mb.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${Mb.selected} + .${Mb.grouped}.${Mb.selected}`]:{borderTop:0,marginTop:0}})}))),Bb=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:r,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:u="horizontal",size:h="medium",value:g}=i,p=(0,lt.Z)(i,Pb),m=(0,ct.Z)({},i,{disabled:a,fullWidth:c,orientation:u,size:h}),f=(e=>{const{classes:t,orientation:n,fullWidth:i,disabled:o}=e,r={root:["root","vertical"===n&&"vertical",i&&"fullWidth"],grouped:["grouped",`grouped${(0,Mt.Z)(n)}`,o&&"disabled"]};return(0,ut.Z)(r,Ab,t)})(m),v=(e,t)=>{if(!d)return;const n=g&&g.indexOf(t);let i;g&&n>=0?(i=g.slice(),i.splice(n,1)):i=g?g.concat(t):[t],d(e,i)},_=(e,t)=>{d&&d(e,g===t?null:t)};return(0,bt.jsx)(Fb,(0,ct.Z)({role:"group",className:(0,dt.Z)(f.root,r),ref:t,ownerState:m},p,{children:n.Children.map(o,(e=>n.isValidElement(e)?n.cloneElement(e,{className:(0,dt.Z)(f.grouped,e.props.className),onChange:l?_:v,selected:void 0===e.props.selected?Tb(e.props.value,g):e.props.selected,size:e.props.size||h,fullWidth:c,color:e.props.color||s,disabled:e.props.disabled||a}):null))}))})),Vb=Bb;function zb(e){return(0,vt.Z)("MuiToggleButton",e)}const Wb=(0,ft.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),Hb=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],jb=(0,mt.ZP)(no,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${(0,Mt.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>{let n,i="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(i="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,n="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,ct.Z)({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${Wb.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,mi.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wb.selected}`]:{color:i,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,mi.Fq)(i,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,mi.Fq)(i,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,mi.Fq)(i,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})})),Ub=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiToggleButton"}),{children:i,className:o,color:r="standard",disabled:s=!1,disableFocusRipple:a=!1,fullWidth:l=!1,onChange:c,onClick:d,selected:u,size:h="medium",value:g}=n,p=(0,lt.Z)(n,Hb),m=(0,ct.Z)({},n,{color:r,disabled:s,disableFocusRipple:a,fullWidth:l,size:h}),f=(e=>{const{classes:t,fullWidth:n,selected:i,disabled:o,size:r,color:s}=e,a={root:["root",i&&"selected",o&&"disabled",n&&"fullWidth",`size${(0,Mt.Z)(r)}`,s]};return(0,ut.Z)(a,zb,t)})(m);return(0,bt.jsx)(jb,(0,ct.Z)({className:(0,dt.Z)(f.root,o),disabled:s,focusRipple:!a,ref:t,onClick:e=>{d&&(d(e,g),e.defaultPrevented)||c&&c(e,g)},onChange:c,value:g,ownerState:m,"aria-pressed":u},p,{children:i}))})),$b=Ub;function Kb(e){return(0,vt.Z)("MuiMenu",e)}(0,ft.Z)("MuiMenu",["root","paper","list"]);const Gb=["onEntering"],Zb=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Qb={vertical:"top",horizontal:"right"},Yb={vertical:"top",horizontal:"left"},Xb=(0,mt.ZP)(Ad,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jb=(0,mt.ZP)(xd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eC=(0,mt.ZP)(Jp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),tC=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:r,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:l,open:c,PaperProps:d={},PopoverClasses:u,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:p="selectedMenu"}=i,m=(0,lt.Z)(i.TransitionProps,Gb),f=(0,lt.Z)(i,Zb),v=zt(),_="rtl"===v.direction,b=(0,ct.Z)({},i,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:g,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:p}),C=(e=>{const{classes:t}=e;return(0,ut.Z)({root:["root"],paper:["paper"],list:["list"]},Kb,t)})(b),y=o&&!s&&c,w=n.useRef(null);let S=-1;return n.Children.map(r,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===S)&&(S=t))})),(0,bt.jsx)(Xb,(0,ct.Z)({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?Qb:Yb,PaperProps:(0,ct.Z)({component:Jb},d,{classes:(0,ct.Z)({},d.classes,{root:C.paper})}),className:C.root,open:c,ref:t,transitionDuration:h,TransitionProps:(0,ct.Z)({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,v),g&&g(e,t)}},m),ownerState:b},f,{classes:u,children:(0,bt.jsx)(eC,(0,ct.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:w,autoFocus:o&&(-1===S||s),autoFocusItem:y,variant:p},a,{className:(0,dt.Z)(C.list,a.className),children:r}))}))})),nC=tC,iC=new Map,oC=[],rC=oC.map,sC=oC.some,aC=oC.hasOwnProperty,lC=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,cC=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,dC=/(?:\.[^/]*|\/)$/;class uC extends Error{constructor(e){super(e)}}function hC(e){const t=lC.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function gC(e){const t=new Map,n=o(null);function i(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise(((t,n)=>{const i=document.createElement("script");i.onload=()=>{try{t(oC.pop()(o(e)))}catch(e){n(new uC("invalid module"))}i.remove()},i.onerror=()=>{n(new uC("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=vC,document.head.appendChild(i)}))),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function r(e){return arguments.length>1?Promise.all(rC.call(arguments,n)).then(pC):n(e)}return r.alias=function(t){return gC(((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i)))},r.resolve=e,r}function pC(e){const t={};for(const n of e)for(const e in n)aC.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:mC(n,e)}):t[e]=n[e]);return t}function mC(e,t){return()=>e[t]}function fC(e){return"exports"==(e+="")||"module"===e}function vC(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),oC.push(sC.call(t,fC)?e=>{const i={},o={exports:i};return Promise.all(rC.call(t,(t=>"exports"==(t+="")?i:"module"===t?o:e(t)))).then((e=>(n.apply(null,e),o.exports)))}:e=>Promise.all(rC.call(t,e)).then((e=>"function"==typeof n?n.apply(null,e):n)))}uC.prototype.name=uC.name,gC(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function n(t){const n=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let i=iC.get(n);return i||iC.set(n,i=fetch(n).then((e=>{if(!e.ok)throw new uC("unable to load package.json");return e.redirected&&!iC.has(e.url)&&iC.set(e.url,i),e.json()}))),i}return async function(i,o){if(i.startsWith(e)&&(i=i.substring(e.length)),/^(\w+:)|\/\//i.test(i))return i;if(/^[.]{0,2}\//i.test(i))return new URL(i,null==o?location:o).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new uC("illegal name");const r=hC(i);if(!r)return`${e}${i}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await n(hC(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!dC.test(r.path)&&(r.path+=".js"),r.path&&r.version&&cC.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await n(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),dC.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),vC.amd={};const _C=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`;return gC((async e=>i(e))).alias({"@nebula.js/stardust":e})(n||t)},bC={};function CC(e){const[t]=oc(),n=t.get(e),[i,...o]=ac(n,"getProperties");return[i,e=>n.setProperties(e),...o]}window.onHotChange=(e,t)=>(bC[e]||(bC[e]=[]),bC[e].push(t),window[e]&&t(),()=>{const n=bC[e].indexOf(t);bC[e].splice(n,1)});const yC=n.createContext();function wC({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const i=n,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(n){const o="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return o.qDef.cId=o.qDef.cId||af(),o.qDef.qSortCriterias=e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(o).forEach((t=>{e[t]=o[t]})),t.dimensions.added(o,i),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,i,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}function SC({dc:e,def:t,properties:n,dimensions:i}){const o=n,r={dimensions:()=>i,measures:()=>[],addDimension(n){const i="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||af(),i.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(i,o),i},removeDimension(e){const n=i[e];return t.dimensions.removed(n,o,e),n},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>r.dimensions().length<r.maxDimensions(),canAddMeasure:()=>!1};return r}const xC={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},LC={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function kC(e,t="dimension"){const n="dimension"===t?xC:LC,[i]=dc(n,e),[o]=lc(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function EC(e){return(0,vt.Z)("MuiListSubheader",e)}(0,ft.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const NC=["className","color","component","disableGutters","disableSticky","inset"],DC=(0,mt.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Mt.Z)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,ct.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),IC=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=n,c=(0,lt.Z)(n,NC),d=(0,ct.Z)({},n,{color:o,component:r,disableGutters:s,disableSticky:a,inset:l}),u=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:r}=e,s={root:["root","default"!==n&&`color${(0,Mt.Z)(n)}`,!i&&"gutters",o&&"inset",!r&&"sticky"]};return(0,ut.Z)(s,EC,t)})(d);return(0,bt.jsx)(DC,(0,ct.Z)({as:r,className:(0,dt.Z)(u.root,i),ref:t,ownerState:d},c))})),qC=IC;var RC=s(25138),OC=s.n(RC),TC=s(18258),AC=s.n(TC),MC=s(38866),PC=s(44526),FC=s(7833);function BC(e){return(0,vt.Z)("MuiInput",e)}const VC=(0,ct.Z)({},Rs,(0,ft.Z)("MuiInput",["root","underline","input"])),zC=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],WC=(0,mt.ZP)(ta,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Js(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,ct.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${VC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${VC.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${VC.disabled}, .${VC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${VC.disabled}:before`]:{borderBottomStyle:"dotted"}})})),HC=(0,mt.ZP)(na,{name:"MuiInput",slot:"Input",overridesResolver:ea})({}),jC=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,pt.Z)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:u="input",multiline:h=!1,slotProps:g,slots:p={},type:m="text"}=s,f=(0,lt.Z)(s,zC),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,ut.Z)(i,BC,t);return(0,ct.Z)({},t,o)})(s),_={root:{ownerState:{disableUnderline:a}}},b=(null!=g?g:c)?(0,yn.Z)(null!=g?g:c,_):_,C=null!=(n=null!=(i=p.root)?i:l.Root)?n:WC,y=null!=(o=null!=(r=p.input)?r:l.Input)?o:HC;return(0,bt.jsx)(ra,(0,ct.Z)({slots:{root:C,input:y},slotProps:b,fullWidth:d,inputComponent:u,multiline:h,ref:t,type:m},f,{classes:v}))}));jC.muiName="Input";const UC=jC;function $C(e){return(0,vt.Z)("MuiFilledInput",e)}const KC=(0,ct.Z)({},Rs,(0,ft.Z)("MuiFilledInput",["root","underline","input"])),GC=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ZC=(0,mt.ZP)(ta,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Js(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const i="light"===e.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,ct.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${KC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${KC.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${KC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${KC.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${KC.disabled}, .${KC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${KC.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,ct.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),QC=(0,mt.ZP)(na,{name:"MuiFilledInput",slot:"Input",overridesResolver:ea})((({theme:e,ownerState:t})=>(0,ct.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),YC=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,pt.Z)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:u=!1,slotProps:h,slots:g={},type:p="text"}=s,m=(0,lt.Z)(s,GC),f=(0,ct.Z)({},s,{fullWidth:c,inputComponent:d,multiline:u,type:p}),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,ut.Z)(i,$C,t);return(0,ct.Z)({},t,o)})(s),_={root:{ownerState:f},input:{ownerState:f}},b=(null!=h?h:l)?(0,yn.Z)(null!=h?h:l,_):_,C=null!=(n=null!=(i=g.root)?i:a.Root)?n:ZC,y=null!=(o=null!=(r=g.input)?r:a.Input)?o:QC;return(0,bt.jsx)(ra,(0,ct.Z)({slots:{root:C,input:y},componentsProps:b,fullWidth:c,inputComponent:d,multiline:u,ref:t,type:p},m,{classes:v}))}));YC.muiName="Input";const XC=YC;function JC(e){return(0,vt.Z)("MuiFormLabel",e)}const ey=(0,ft.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ty=["children","className","color","component","disabled","error","filled","focused","required"],ny=(0,mt.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,ct.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,ct.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ey.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ey.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ey.error}`]:{color:(e.vars||e).palette.error.main}}))),iy=(0,mt.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${ey.error}`]:{color:(e.vars||e).palette.error.main}}))),oy=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiFormLabel"}),{children:i,className:o,component:r="label"}=n,s=(0,lt.Z)(n,ty),a=Is({props:n,muiFormControl:Ds(),states:["color","required","focused","disabled","error","filled"]}),l=(0,ct.Z)({},n,{color:a.color||"primary",component:r,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:n,focused:i,disabled:o,error:r,filled:s,required:a}=e,l={root:["root",`color${(0,Mt.Z)(n)}`,o&&"disabled",r&&"error",s&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return(0,ut.Z)(l,JC,t)})(l);return(0,bt.jsxs)(ny,(0,ct.Z)({as:r,ownerState:l,className:(0,dt.Z)(c.root,o),ref:t},s,{children:[i,a.required&&(0,bt.jsxs)(iy,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))})),ry=oy;function sy(e){return(0,vt.Z)("MuiInputLabel",e)}(0,ft.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ay=["disableAnimation","margin","shrink","variant","className"],ly=(0,mt.ZP)(ry,{shouldForwardProp:e=>(0,mt.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ey.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,ct.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,ct.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,ct.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),cy=n.forwardRef((function(e,t){const n=(0,pt.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:o,className:r}=n,s=(0,lt.Z)(n,ay),a=Ds();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=Is({props:n,muiFormControl:a,states:["size","variant","required"]}),d=(0,ct.Z)({},n,{disableAnimation:i,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required}),u=(e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:r,variant:s,required:a}=e,l={root:["root",n&&"formControl",!r&&"animated",o&&"shrink","small"===i&&"sizeSmall",s],asterisk:[a&&"asterisk"]},c=(0,ut.Z)(l,sy,t);return(0,ct.Z)({},t,c)})(d);return(0,bt.jsx)(ly,(0,ct.Z)({"data-shrink":l,ownerState:d,ref:t,className:(0,dt.Z)(u.root,r)},s,{classes:u}))})),dy=cy;function uy(e){return(0,vt.Z)("MuiFormControl",e)}(0,ft.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const hy=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],gy=(0,mt.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,ct.Z)({},t.root,t[`margin${(0,Mt.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,ct.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),py=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiFormControl"}),{children:o,className:r,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:h=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined"}=i,v=(0,lt.Z)(i,hy),_=(0,ct.Z)({},i,{color:s,component:a,disabled:l,error:c,fullWidth:u,hiddenLabel:h,margin:g,required:p,size:m,variant:f}),b=(e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root","none"!==n&&`margin${(0,Mt.Z)(n)}`,i&&"fullWidth"]};return(0,ut.Z)(o,uy,t)})(_),[C,y]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{if(!(0,mr.Z)(t,["Input","Select"]))return;const n=(0,mr.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[w,S]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{(0,mr.Z)(t,["Input","Select"])&&Ys(t.props,!0)&&(e=!0)})),e})),[x,L]=n.useState(!1);l&&x&&L(!1);const k=void 0===d||l?x:d;let E;const N=n.useMemo((()=>({adornedStart:C,setAdornedStart:y,color:s,disabled:l,error:c,filled:w,focused:k,fullWidth:u,hiddenLabel:h,size:m,onBlur:()=>{L(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{L(!0)},registerEffect:E,required:p,variant:f})),[C,s,l,c,w,k,u,h,E,p,m,f]);return(0,bt.jsx)(Ns.Provider,{value:N,children:(0,bt.jsx)(gy,(0,ct.Z)({as:a,ownerState:_,className:(0,dt.Z)(b.root,r),ref:t},v,{children:o}))})})),my=py;function fy(e){return(0,vt.Z)("MuiFormHelperText",e)}const vy=(0,ft.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _y;const by=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Cy=(0,mt.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,Mt.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,ct.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vy.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vy.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),yy=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:r="p"}=n,s=(0,lt.Z)(n,by),a=Is({props:n,muiFormControl:Ds(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,ct.Z)({},n,{component:r,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,contained:n,size:i,disabled:o,error:r,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",r&&"error",i&&`size${(0,Mt.Z)(i)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,ut.Z)(c,fy,t)})(l);return(0,bt.jsx)(Cy,(0,ct.Z)({as:r,ownerState:l,className:(0,dt.Z)(c.root,o),ref:t},s,{children:" "===i?_y||(_y=(0,bt.jsx)("span",{className:"notranslate",children:"​"})):i}))})),wy=yy;function Sy(e){return(0,vt.Z)("MuiNativeSelect",e)}const xy=(0,ft.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Ly=["className","disabled","IconComponent","inputRef","variant"],ky=({ownerState:e,theme:t})=>(0,ct.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,ct.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${xy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Ey=(0,mt.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:mt.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${xy.multiple}`]:t.multiple}]}})(ky),Ny=({ownerState:e,theme:t})=>(0,ct.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${xy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Dy=(0,mt.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Mt.Z)(n.variant)}`],n.open&&t.iconOpen]}})(Ny),Iy=n.forwardRef((function(e,t){const{className:i,disabled:o,IconComponent:r,inputRef:s,variant:a="standard"}=e,l=(0,lt.Z)(e,Ly),c=(0,ct.Z)({},e,{disabled:o,variant:a}),d=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r}=e,s={select:["select",n,i&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,Mt.Z)(n)}`,r&&"iconOpen",i&&"disabled"]};return(0,ut.Z)(s,Sy,t)})(c);return(0,bt.jsxs)(n.Fragment,{children:[(0,bt.jsx)(Ey,(0,ct.Z)({ownerState:c,className:(0,dt.Z)(d.select,i),disabled:o,ref:s||t},l)),e.multiple?null:(0,bt.jsx)(Dy,{as:r,ownerState:c,className:d.icon})]})})),qy=Iy;function Ry(e){return(0,vt.Z)("MuiSelect",e)}const Oy=(0,ft.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var Ty;const Ay=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],My=(0,mt.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Oy.select}`]:t.select},{[`&.${Oy.select}`]:t[n.variant]},{[`&.${Oy.multiple}`]:t.multiple}]}})(ky,{[`&.${Oy.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Py=(0,mt.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Mt.Z)(n.variant)}`],n.open&&t.iconOpen]}})(Ny),Fy=(0,mt.ZP)("input",{shouldForwardProp:e=>(0,mt.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function By(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Vy(e){return null==e||"string"==typeof e&&!e.trim()}const zy=n.forwardRef((function(e,t){const{"aria-describedby":i,"aria-label":o,autoFocus:r,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:u,displayEmpty:h,IconComponent:g,inputRef:p,labelId:m,MenuProps:f={},multiple:v,name:_,onBlur:b,onChange:C,onClose:y,onFocus:w,onOpen:S,open:x,readOnly:L,renderValue:k,SelectDisplayProps:E={},tabIndex:N,value:D,variant:I="standard"}=e,q=(0,lt.Z)(e,Ay),[R,O]=(0,Xd.Z)({controlled:D,default:d,name:"Select"}),[T,A]=(0,Xd.Z)({controlled:x,default:c,name:"Select"}),M=n.useRef(null),P=n.useRef(null),[F,B]=n.useState(null),{current:V}=n.useRef(null!=x),[z,W]=n.useState(),H=(0,fi.Z)(t,p),j=n.useCallback((e=>{P.current=e,e&&B(e)}),[]),U=null==F?void 0:F.parentNode;n.useImperativeHandle(H,(()=>({focus:()=>{P.current.focus()},node:M.current,value:R})),[R]),n.useEffect((()=>{c&&T&&F&&!V&&(W(s?null:U.clientWidth),P.current.focus())}),[F,s]),n.useEffect((()=>{r&&P.current.focus()}),[r]),n.useEffect((()=>{if(!m)return;const e=(0,rs.Z)(P.current).getElementById(m);if(e){const t=()=>{getSelection().isCollapsed&&P.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[m]);const $=(e,t)=>{e?S&&S(t):y&&y(t),V||(W(s?null:U.clientWidth),A(e))},K=n.Children.toArray(a),G=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(R)?R.slice():[];const t=R.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),R!==n&&(O(n),C)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:_}}),C(o,e)}v||$(!1,t)}},Z=null!==F&&T;let Q,Y;delete q["aria-invalid"];const X=[];let J=!1,ee=!1;(Ys({value:R})||h)&&(k?Q=k(R):J=!0);const te=K.map(((e,t,i)=>{var o,r,s,a;if(!n.isValidElement(e))return null;let l;if(v){if(!Array.isArray(R))throw new Error((0,As.Z)(2));l=R.some((t=>By(t,e.props.value))),l&&J&&X.push(e.props.children)}else l=By(R,e.props.value),l&&J&&(Y=e.props.children);return l&&(ee=!0),void 0===e.props.value?n.cloneElement(e,{"aria-readonly":!0,role:"option"}):n.cloneElement(e,{"aria-selected":l?"true":"false",onClick:G(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===(null==(o=i[0])||null==(r=o.props)?void 0:r.value)||!0===(null==(s=i[0])||null==(a=s.props)?void 0:a.disabled)?(()=>{if(R)return l;const t=i.find((e=>{var t;return void 0!==(null==e||null==(t=e.props)?void 0:t.value)&&!0!==e.props.disabled}));return e===t||l})():l,value:void 0,"data-value":e.props.value})}));J&&(Q=v?0===X.length?null:X.reduce(((e,t,n)=>(e.push(t),n<X.length-1&&e.push(", "),e)),[]):Y);let ne,ie=z;!s&&V&&F&&(ie=U.clientWidth),ne=void 0!==N?N:u?null:0;const oe=E.id||(_?`mui-component-select-${_}`:void 0),re=(0,ct.Z)({},e,{variant:I,value:R,open:Z}),se=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r}=e,s={select:["select",n,i&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,Mt.Z)(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return(0,ut.Z)(s,Ry,t)})(re);return(0,bt.jsxs)(n.Fragment,{children:[(0,bt.jsx)(My,(0,ct.Z)({ref:j,tabIndex:ne,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[m,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:e=>{L||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),$(!0,e))},onMouseDown:u||L?null:e=>{0===e.button&&(e.preventDefault(),P.current.focus(),$(!0,e))},onBlur:e=>{!Z&&b&&(Object.defineProperty(e,"target",{writable:!0,value:{value:R,name:_}}),b(e))},onFocus:w},E,{ownerState:re,className:(0,dt.Z)(E.className,se.select,l),id:oe,children:Vy(Q)?Ty||(Ty=(0,bt.jsx)("span",{className:"notranslate",children:"​"})):Q})),(0,bt.jsx)(Fy,(0,ct.Z)({value:Array.isArray(R)?R.join(","):R,name:_,ref:M,"aria-hidden":!0,onChange:e=>{const t=K.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=K[t];O(n.props.value),C&&C(e,n)},tabIndex:-1,disabled:u,className:se.nativeInput,autoFocus:r,ownerState:re},q)),(0,bt.jsx)(Py,{as:g,className:se.icon,ownerState:re}),(0,bt.jsx)(nC,(0,ct.Z)({id:`menu-${_||""}`,anchorEl:U,open:Z,onClose:e=>{$(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},f,{MenuListProps:(0,ct.Z)({"aria-labelledby":m,role:"listbox",disableListWrap:!0},f.MenuListProps),PaperProps:(0,ct.Z)({},f.PaperProps,{style:(0,ct.Z)({minWidth:ie},null!=f.PaperProps?f.PaperProps.style:null)}),children:te}))]})})),Wy=zy,Hy=(0,zn.Z)((0,bt.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var jy,Uy;const $y=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ky={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,mt.FO)(e)&&"variant"!==e,slot:"Root"},Gy=(0,mt.ZP)(UC,Ky)(""),Zy=(0,mt.ZP)(ua,Ky)(""),Qy=(0,mt.ZP)(XC,Ky)(""),Yy=n.forwardRef((function(e,t){const i=(0,pt.Z)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=Hy,id:u,input:h,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:v=!1,native:_=!1,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:S,variant:x="outlined"}=i,L=(0,lt.Z)(i,$y),k=_?qy:Wy,E=Is({props:i,muiFormControl:Ds(),states:["variant"]}).variant||x,N=h||{standard:jy||(jy=(0,bt.jsx)(Gy,{})),outlined:(0,bt.jsx)(Zy,{label:p}),filled:Uy||(Uy=(0,bt.jsx)(Qy,{}))}[E],D=(e=>{const{classes:t}=e;return t})((0,ct.Z)({},i,{variant:E,classes:s})),I=(0,fi.Z)(t,N.ref);return(0,bt.jsx)(n.Fragment,{children:n.cloneElement(N,(0,ct.Z)({inputComponent:k,inputProps:(0,ct.Z)({children:r,IconComponent:d,variant:E,type:void 0,multiple:v},_?{id:u}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:(0,ct.Z)({id:u},S)},g,{classes:g?(0,yn.Z)(D,g.classes):D},h?h.props.inputProps:{})},v&&_&&"outlined"===E?{notched:!0}:{},{ref:I,className:(0,dt.Z)(N.props.className,a)},!h&&{variant:E},L))})}));Yy.muiName="Select";const Xy=Yy;function Jy(e){return(0,vt.Z)("MuiTextField",e)}(0,ft.Z)("MuiTextField",["root"]);const ew=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],tw={standard:UC,filled:XC,outlined:ua},nw=(0,mt.ZP)(my,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iw=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:r,className:s,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:u,fullWidth:h=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:v,inputRef:_,label:b,maxRows:C,minRows:y,multiline:w=!1,name:S,onBlur:x,onChange:L,onFocus:k,placeholder:E,required:N=!1,rows:D,select:I=!1,SelectProps:q,type:R,value:O,variant:T="outlined"}=n,A=(0,lt.Z)(n,ew),M=(0,ct.Z)({},n,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:h,multiline:w,required:N,select:I,variant:T}),P=(e=>{const{classes:t}=e;return(0,ut.Z)({root:["root"]},Jy,t)})(M),F={};"outlined"===T&&(m&&void 0!==m.shrink&&(F.notched=m.shrink),F.label=b),I&&(q&&q.native||(F.id=void 0),F["aria-describedby"]=void 0);const B=(0,FC.Z)(p),V=g&&B?`${B}-helper-text`:void 0,z=b&&B?`${B}-label`:void 0,W=tw[T],H=(0,bt.jsx)(W,(0,ct.Z)({"aria-describedby":V,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:h,multiline:w,name:S,rows:D,maxRows:C,minRows:y,type:R,value:O,id:B,inputRef:_,onBlur:x,onChange:L,onFocus:k,placeholder:E,inputProps:f},F,v));return(0,bt.jsxs)(nw,(0,ct.Z)({className:(0,dt.Z)(P.root,s),disabled:c,error:d,fullWidth:h,ref:t,required:N,color:a,variant:T,ownerState:M},A,{children:[null!=b&&""!==b&&(0,bt.jsx)(dy,(0,ct.Z)({htmlFor:B,id:z},m,{children:b})),I?(0,bt.jsx)(Xy,(0,ct.Z)({"aria-describedby":V,id:B,labelId:z,value:O,input:H},q,{children:r})):H,g&&(0,bt.jsx)(wy,(0,ct.Z)({id:V},u,{children:g}))]}))})),ow=iw,rw="Search-gridContainer",sw="Search-gridItem",aw=(0,mt.ZP)(yo)((({theme:e})=>({[`& .${rw}`]:{padding:e.spacing(0,1,0,1)},[`& .${sw}`]:{padding:e.spacing(0,1,0,1)}})));function lw({onChange:e=(()=>{}),onEnter:t=(()=>{}),onEscape:i=(()=>{})}){const[o,r]=(0,n.useState)("");return n.createElement(aw,{className:rw,item:!0,container:!0,direction:"row",alignItems:"center"},n.createElement(yo,{item:!0},n.createElement(ym,null)),n.createElement(yo,{className:sw,item:!0,xs:!0},n.createElement(ow,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{r(t.target.value),e(t.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":t(),r("");break;case"Escape":i()}}})))}function cw({field:e,onSelect:t,sub:i,parts:o}){return n.createElement(Ir,{button:!0,onClick:()=>t(e.qName),"data-key":e.qName},n.createElement(Mr,null,o.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),i&&n.createElement(MC.Z,{fontSize:"small"}))}function dw({item:e,onSelect:t,parts:i}){return n.createElement(Ir,{button:!0,onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId},n.createElement(Mr,null,i.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function uw({aggr:e,field:t,onSelect:i}){return n.createElement(Ir,{button:!0,onClick:()=>i(e),"data-key":e},n.createElement(Mr,null,`${e}(${t})`))}function hw({app:e,onSelect:t,title:i="",type:o="dimension",searchTerm:r=""}){const[s]=kC(e,o),a=(0,n.useMemo)((()=>s.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[s]);return s.length>0?n.createElement(n.Fragment,null,n.createElement(qC,{component:"div",style:{backgroundColor:"inherit"}},i),a.map((e=>{const i=AC()(e.qData.title,r),o=OC()(e.qData.title,i);return r&&0===i.length?null:n.createElement(dw,{key:e.qInfo.qId,item:e,onSelect:t,parts:o})}))):null}function gw({alignTo:e,show:t,close:i,onSelected:o,type:r}){const s=(0,n.useContext)(yC),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(""),u=zt(),[h]=dc({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=lc(h),p=(0,n.useMemo)((()=>(g&&g.qFieldList.qItems||[]).slice().sort(((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())))),[g]),m=e=>{e&&e.qId?(o(e),i()):"measure"===r?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return n.createElement(Ad,{open:t,onClose:i,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:u.palette.background.lightest}}},!a&&n.createElement(lw,{onChange:d}),a&&n.createElement(gr,{dense:!0,component:"nav"},n.createElement(Ir,{button:!0,onClick:()=>l(null)},n.createElement(Up,null,n.createElement(PC.Z,null)),n.createElement(Mr,null,"Back")),n.createElement(kp,null),n.createElement(qC,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>n.createElement(uw,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&n.createElement(gr,{dense:!0,component:"nav",style:{background:u.palette.background.lightest}},n.createElement(hw,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),n.createElement(qC,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const t=AC()(e.qName,c),i=OC()(e.qName,t);return c&&0===t.length?null:n.createElement(cw,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:i})}))))}const pw=({field:e,libraryItems:t})=>{if(e.qLibraryId){const n=t.filter((t=>t.qInfo.qId===e.qLibraryId))[0];return n?n.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function mw({items:e,type:t="dimension",label:i="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),u=(0,n.useContext)(yC),[h]=kC(u,t);return n.createElement("div",null,n.createElement(No,{variant:"overline"},i),n.createElement(gr,{dense:!0},e.map(((e,i)=>n.createElement(Ir,{disableGutters:!0,key:e.qDef&&e.qDef.cId||i},n.createElement(Mr,null,n.createElement(pw,{field:e,libraryItems:h,type:t})),n.createElement(xr,null,n.createElement(lo,{onClick:()=>{s(i)},size:"large"},n.createElement(ar,null))))))),n.createElement(Ca,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&n.createElement(gw,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?r(e):e&&r("dimension"===t?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:t}))}function fw({setProperties:e,target:t,properties:i}){const[o,r]=(0,n.useState)([]),s=t.dimensions&&t.dimensions.max&&t.dimensions.max()>1?SC:wC,a=t.propertyPath.match("/qHyperCube")?Of:s,l=((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(i,t.propertyPath),c=(0,n.useMemo)((()=>a({def:t,dc:l,properties:i,dimensions:o})),[l,t,i,o]);return n.createElement("div",{style:{width:"100%"}},n.createElement(No,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},t.propertyPath),n.createElement(mw,{key:"dimensions",onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(n);e(i).then((()=>{r([...o,s])}))},onRemoved:t=>{c.removeDimension(t),e(i).then((()=>{r([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),n.createElement(mw,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(i)},onRemoved:t=>{c.removeMeasure(t),e(i)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function vw({setProperties:e,sn:t,properties:i}){if(!t)return null;const{targets:o}=t.qae.data;return o.length?n.createElement(gr,null,o.map((t=>n.createElement(Ir,{key:t.propertyPath,divider:!0,disableGutters:!0},n.createElement(fw,{target:t,properties:i,setProperties:e}))))):n.createElement(No,null,"No data targets found")}const _w=n.createContext({});function bw(e){return(0,vt.Z)("MuiAccordion",e)}const Cw=(0,ft.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),yw=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],ww=(0,mt.ZP)(xd,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cw.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${Cw.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Cw.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,ct.Z)({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${Cw.expanded}`]:{margin:"16px 0"}}))),Sw=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiAccordion"}),{children:o,className:r,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:u=!1,TransitionComponent:h=nr,TransitionProps:g}=i,p=(0,lt.Z)(i,yw),[m,f]=(0,Xd.Z)({controlled:c,default:s,name:"Accordion",state:"expanded"}),v=n.useCallback((e=>{f(!m),d&&d(e,!m)}),[m,d,f]),[_,...b]=n.Children.toArray(o),C=n.useMemo((()=>({expanded:m,disabled:a,disableGutters:l,toggle:v})),[m,a,l,v]),y=(0,ct.Z)({},i,{square:u,disabled:a,disableGutters:l,expanded:m}),w=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:r}=e,s={root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!r&&"gutters"],region:["region"]};return(0,ut.Z)(s,bw,t)})(y);return(0,bt.jsxs)(ww,(0,ct.Z)({className:(0,dt.Z)(w.root,r),ref:t,ownerState:y,square:u},p,{children:[(0,bt.jsx)(_w.Provider,{value:C,children:_}),(0,bt.jsx)(h,(0,ct.Z)({in:m,timeout:"auto"},g,{children:(0,bt.jsx)("div",{"aria-labelledby":_.props.id,id:_.props["aria-controls"],role:"region",className:w.region,children:b})}))]}))})),xw=Sw;function Lw(e){return(0,vt.Z)("MuiAccordionSummary",e)}const kw=(0,ft.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Ew=["children","className","expandIcon","focusVisibleClassName","onClick"],Nw=(0,mt.ZP)(no,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return(0,ct.Z)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${kw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${kw.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${kw.expanded}`]:{minHeight:64}})})),Dw=(0,mt.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,ct.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${kw.expanded}`]:{margin:"20px 0"}}))),Iw=(0,mt.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${kw.expanded}`]:{transform:"rotate(180deg)"}}))),qw=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l}=i,c=(0,lt.Z)(i,Ew),{disabled:d=!1,disableGutters:u,expanded:h,toggle:g}=n.useContext(_w),p=(0,ct.Z)({},i,{expanded:h,disabled:d,disableGutters:u}),m=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e,r={root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,ut.Z)(r,Lw,t)})(p);return(0,bt.jsxs)(Nw,(0,ct.Z)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":h,className:(0,dt.Z)(m.root,r),focusVisibleClassName:(0,dt.Z)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:t,ownerState:p},c,{children:[(0,bt.jsx)(Dw,{className:m.content,ownerState:p,children:o}),s&&(0,bt.jsx)(Iw,{className:m.expandIconWrapper,ownerState:p,children:s})]}))})),Rw=qw;function Ow(e){return(0,vt.Z)("MuiAccordionDetails",e)}(0,ft.Z)("MuiAccordionDetails",["root"]);const Tw=["className"],Aw=(0,mt.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),Mw=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiAccordionDetails"}),{className:i}=n,o=(0,lt.Z)(n,Tw),r=n,s=(e=>{const{classes:t}=e;return(0,ut.Z)({root:["root"]},Ow,t)})(r);return(0,bt.jsx)(Aw,(0,ct.Z)({className:(0,dt.Z)(s.root,i),ref:t,ownerState:r},o))})),Pw=Mw;var Fw=s(59579);let Bw=null;const Vw="AutoComponents-summary",zw="AutoComponents-details",Ww="AutoComponents-root",Hw=(0,mt.ZP)(yo)((({theme:e})=>({[`& .${Vw}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${zw}`]:{padding:e.spacing(1)}}))),jw=(0,mt.ZP)(xw)((({theme:e})=>({[`& .${Ww}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),Uw={boolean:function({property:e,value:t,target:i,changed:o}){return n.createElement(Zd,{control:n.createElement(fu,{checked:t,onChange:t=>{i[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(t);return n.createElement(ow,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=r,o())},label:e,value:r})},object:function({property:e,value:t,changed:i,app:o}){return n.createElement(jw,{square:!0,className:Ww},n.createElement(Rw,{expandIcon:n.createElement(Fw.Z,null),className:Vw},n.createElement(No,null,e)),n.createElement(Pw,{className:zw},Gw(t,i,o)))},number:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(+t);return n.createElement(ow,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:t,target:i,changed:o}){const r=t.qStringExpression&&t.qStringExpression.qExpr?t.qStringExpression.qExpr:"",[s,a]=(0,n.useState)(r);return n.createElement(ow,{variant:"standard",InputProps:{startAdornment:n.createElement(Cm,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==t&&(i[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:t,target:i,changed:o,app:r}){const[s,a]=(0,n.useState)(t.name),[l,c]=(0,n.useState)([]);return(0,n.useEffect)((()=>{!async function(){const e=await async function(e){return Bw||(Bw=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await Bw.getLayout()).qVariableList.qItems.map((e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName})))}(r);c(e)}()}),[]),0===l.length?n.createElement("em",null,"No variables in app"):n.createElement(my,{size:"small",fullWidth:!0},n.createElement(Xy,{onChange:t=>{a(t.target.value),i[e].name=t.target.value,i[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:s,renderValue:e=>0===e.length?n.createElement("em",null,"Select a variable"):e},l.map((e=>n.createElement(zp,{key:e.value,value:e.value},e.label)))))}},$w=/^q[A-Z]/;let Kw=!1;function Gw(e,t,i,o){o&&o.PP_EXPRESSIONS&&(Kw=!0);const r=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if($w.test(t))return!1;const n=((e,t)=>Array.isArray(e)?"array":Kw&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":Kw&&e&&"object"==typeof e&&"qStringExpression"in e?"expression":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"number"==typeof e?"number":e&&"object"==typeof e?"object":"unknown")(e[t],t);return!!Uw[n]&&{Component:Uw[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return n.createElement(Hw,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map((o=>n.createElement(yo,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},n.createElement(o.Component,{key:o.key,app:i,property:o.property,value:o.value,target:e,changed:t})))))}function Zw({viz:e,sn:t,isTemp:i,storage:o,flags:r}){const[s,a]=CC(e.id),l=(0,n.useContext)(yC),[c,d]=(0,n.useState)(!1!==o.get("readFromCache")),u=(0,n.useCallback)((()=>{a(s)}),[e,t,s]);return t&&e&&s?n.createElement("div",{style:{minWidth:"250px",padding:"8px"}},i&&n.createElement(n.Fragment,null,n.createElement(yo,{item:!0,container:!0,alignItems:"center"},n.createElement(Zd,{control:n.createElement(fu,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),n.createElement(kp,null)),n.createElement(vw,{properties:s,setProperties:a,sn:t}),Gw(s,u,l,r)):null}function Qw(e){return(0,vt.Z)("MuiDialog",e)}const Yw=(0,ft.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Xw=(0,n.createContext)({}),Jw=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],eS=(0,mt.ZP)(gd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),tS=(0,mt.ZP)(_d,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),nS=(0,mt.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,Mt.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,ct.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),iS=(0,mt.ZP)(xd,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,Mt.Z)(n.scroll)}`],t[`paperWidth${(0,Mt.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,ct.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${Yw.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Yw.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Yw.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),oS=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiDialog"}),o=zt(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:u,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:f,onClose:v,open:_,PaperComponent:b=xd,PaperProps:C={},scroll:y="paper",TransitionComponent:w=ld,transitionDuration:S=r,TransitionProps:x}=i,L=(0,lt.Z)(i,Jw),k=(0,ct.Z)({},i,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:p,maxWidth:m,scroll:y}),E=(e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${(0,Mt.Z)(n)}`],paper:["paper",`paperScroll${(0,Mt.Z)(n)}`,`paperWidth${(0,Mt.Z)(String(i))}`,o&&"paperFullWidth",r&&"paperFullScreen"]};return(0,ut.Z)(s,Qw,t)})(k),N=n.useRef(),D=(0,FC.Z)(a),I=n.useMemo((()=>({titleId:D})),[D]);return(0,bt.jsx)(tS,(0,ct.Z)({className:(0,dt.Z)(E.root,u),closeAfterTransition:!0,components:{Backdrop:eS},componentsProps:{backdrop:(0,ct.Z)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:h,onClose:v,open:_,ref:t,onClick:e=>{N.current&&(N.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:k},L,{children:(0,bt.jsx)(w,(0,ct.Z)({appear:!0,in:_,timeout:S,role:"presentation"},x,{children:(0,bt.jsx)(nS,{className:(0,dt.Z)(E.container),onMouseDown:e=>{N.current=e.target===e.currentTarget},ownerState:k,children:(0,bt.jsx)(iS,(0,ct.Z)({as:b,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},C,{className:(0,dt.Z)(E.paper,C.className),ownerState:k,children:(0,bt.jsx)(Xw.Provider,{value:I,children:d})}))})}))}))})),rS=oS;function sS(e){return(0,vt.Z)("MuiDialogTitle",e)}const aS=(0,ft.Z)("MuiDialogTitle",["root"]),lS=["className","id"],cS=(0,mt.ZP)(No,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),dS=n.forwardRef((function(e,t){const i=(0,pt.Z)({props:e,name:"MuiDialogTitle"}),{className:o,id:r}=i,s=(0,lt.Z)(i,lS),a=i,l=(e=>{const{classes:t}=e;return(0,ut.Z)({root:["root"]},sS,t)})(a),{titleId:c=r}=n.useContext(Xw);return(0,bt.jsx)(cS,(0,ct.Z)({component:"h2",className:(0,dt.Z)(l.root,o),ownerState:a,ref:t,variant:"h6",id:c},s))})),uS=dS;function hS(e){return(0,vt.Z)("MuiDialogContent",e)}(0,ft.Z)("MuiDialogContent",["root","dividers"]);const gS=["className","dividers"],pS=(0,mt.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,ct.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${aS.root} + &`]:{paddingTop:0}}))),mS=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,r=(0,lt.Z)(n,gS),s=(0,ct.Z)({},n,{dividers:o}),a=(e=>{const{classes:t,dividers:n}=e,i={root:["root",n&&"dividers"]};return(0,ut.Z)(i,hS,t)})(s);return(0,bt.jsx)(pS,(0,ct.Z)({className:(0,dt.Z)(a.root,i),ownerState:s,ref:t},r))})),fS=mS;function vS(e){return(0,vt.Z)("MuiDialogActions",e)}(0,ft.Z)("MuiDialogActions",["root","spacing"]);const _S=["className","disableSpacing"],bS=(0,mt.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,ct.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),CS=n.forwardRef((function(e,t){const n=(0,pt.Z)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,r=(0,lt.Z)(n,_S),s=(0,ct.Z)({},n,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:n}=e,i={root:["root",!n&&"spacing"]};return(0,ut.Z)(i,vS,t)})(s);return(0,bt.jsx)(bS,(0,ct.Z)({className:(0,dt.Z)(a.root,i),ownerState:s,ref:t},r))})),yS=CS;var wS=s(1599);function SS({model:e,show:t,close:i}){const[o,r]=(0,n.useState)(""),[s,a]=(0,n.useState)(null),[l,c]=(0,n.useState)([]),[d,u,h]=xc(),g=zt(),p=(0,n.useCallback)((()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(i)}));return(0,n.useEffect)((()=>{if(!t)return;const n=()=>{e&&t&&e.getProperties().then((e=>{t&&r(JSON.stringify(e||{},null,2))}))};return e.on("changed",n),n(),()=>{e&&e.removeListener("changed",n)}}),[e&&e.id,t]),(0,n.useEffect)((()=>{if(!(d&&h&&u&&o))return;const{left:e,top:t,width:n,height:i}=u;if(0===e&&0===t&&0===n&&0===i)return;const r=wS.editor.create(h,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});r.layout({width:u.width,height:u.height});const s=r.onDidChangeModelDecorations((()=>{const e=wS.editor.getModelMarkers();c(e)}));return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}}),[h,u,o]),n.createElement(rS,{disableEscapeKeyDown:!0,open:t,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}}},n.createElement(uS,null,"Modify object properties"),n.createElement(fS,{dividers:!0},n.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),n.createElement(yS,null,n.createElement(Ca,{variant:"contained",onClick:i},"Cancel"),n.createElement(Ca,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const xS=n.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),LS=n.createContext();function kS({id:e,onLoad:t}){const i=(0,n.useContext)(LS),o=(0,n.useRef)();return(0,n.useEffect)((()=>{const n=i.render({id:e,element:o.current});return n.then((e=>{t(e,o.current)})),()=>{n.then((e=>{e.destroy()}))}}),[e]),n.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const ES="Cell-secondaryIcon",NS="Cell-drop",DS=(0,mt.ZP)(yo)((({theme:e})=>({[`& .${ES}`]:{color:e.palette.text.secondary},[`& .${NS}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function IS({id:e,expandable:t,minHeight:i}){const o=(0,n.useContext)(yC),[r,s]=(0,n.useState)(null),[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(null),{currentThemeName:u,activeViz:h,setActiveViz:g,setExpandedObject:p,expandedObject:m}=(0,n.useContext)(xS),f=m===e,v=(0,n.useRef)();(0,n.useEffect)((()=>{const t=o.getObject(e).then((e=>(s(e),e)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[_,b]=(0,n.useState)(!1),C=(0,n.useCallback)((()=>{b(!1)}),[]),y=(0,n.useCallback)(((e,t)=>{v.current={viz:e,el:t},d(e)}),[e]),w=(0,n.useCallback)(((e=!1)=>{if(v.current)if(e)l(!0),v.current.viz.__DO_NOT_USE__.exportImage().then((e=>{e&&e.url&&window.open(e.url),l(!1)}));else{const e=v.current.el.getBoundingClientRect();v.current.viz.__DO_NOT_USE__.takeSnapshot().then((t=>{fetch("/njs/snapshot",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),window.open(`/render?snapshot=${t.key}`,"snapshot",`height=${Math.round(e.height)},width=${Math.round(e.width)}`)}))}}),[r,u]),S=!f&&v.current&&h&&h===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=h===c;return n.createElement(DS,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"}},n.createElement(yo,{item:!0},n.createElement(Ob,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},n.createElement(SS,{model:r,show:_,close:C}),n.createElement(lo,{title:"Modify object properties",className:ES,disabled:!r,onClick:()=>b(!0),size:"large"},sr({size:"medium",viewBox:"0 0 16 16",shapes:[{type:"path",attrs:{d:"M14,8 C14,8.2 14,8.4 14,8.6 L16,9.6 L15.4,11.4 L13.2,11 C13,11.3 12.8,11.7 12.5,12 L13.6,14 L12,15 L10.4,13.4 C10,13.5 9.7,13.7 9.3,13.8 L9,16 L7,16 L6.7,13.8 C6.3,13.7 5.9,13.6 5.6,13.4 L4,15 L2.4,13.9 L3.5,11.9 C3.2,11.6 3,11.3 2.8,10.9 L0.6,11.3 L0,9.6 L2,8.6 C2,8.4 2,8.2 2,8 C2,7.8 2,7.6 2,7.4 L0,6.4 L0.6,4.6 L2.8,5 C3,4.7 3.2,4.3 3.5,4 L2.4,2 L4,1 L5.6,2.6 C6,2.4 6.3,2.3 6.7,2.2 L7,0 L9,0 L9.3,2.2 C9.7,2.3 10.1,2.4 10.4,2.6 L12,1 L13.6,2.1 L12.5,4.1 C12.8,4.4 13,4.7 13.2,5.1 L15.4,4.7 L16,6.4 L14,7.4 C14,7.6 14,7.8 14,8 Z M8,11 C9.7,11 11,9.7 11,8 C11,6.3 9.7,5 8,5 C6.3,5 5,6.3 5,8 C5,9.7 6.3,11 8,11 Z"}}]})),n.createElement(lo,{title:"Open in single render view",className:ES,disabled:!r,href:r?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${r.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large"},sr({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})),n.createElement(lo,{title:"Take and render as snapshot",className:ES,disabled:!r,onClick:()=>w(),size:"large"},sr({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})),a?n.createElement(Ha,{size:24}):n.createElement(lo,{title:"Export as image",className:ES,disabled:!r,onClick:()=>w(!0),size:"large"},sr({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})),n.createElement(yo,{item:!0,xs:!0}),t&&n.createElement(lo,{title:"Edit",className:ES,disabled:!c||x,onClick:()=>g(c),size:"large"},sr({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})),t&&n.createElement(lo,{title:"Expand",disabled:!r||!c,className:ES,onClick:()=>{f?p(null):(p(e),g(c))},size:"large"},sr({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:f?"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z":"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}}]})))),n.createElement(yo,{item:!0,xs:!0,style:{...S},className:NS},n.createElement(kS,{id:e,onLoad:y})))}function qS({info:e,storage:t,uid:i}){const o=(0,n.useContext)(LS),{activeViz:r,setActiveViz:s}=(0,n.useContext)(xS),[a]=CC(i);return(0,n.useEffect)((()=>{if(!i)return;const n=o.render({type:e.supernova.name,properties:{...!1!==t.get("readFromCache")?t.props(e.supernova.name):{},qInfo:{qId:i,qType:e.supernova.name}}});return n.then((e=>{s(e)})),()=>{n.then((e=>e.destroy()))}}),[i]),(0,n.useEffect)((()=>{a&&t.props(e.supernova.name,a)}),[a]),r&&r.id===i?n.createElement(yo,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},n.createElement(yo,{item:!0,xs:!0},n.createElement(IS,{id:i}))):null}function RS({types:e,cache:t}){const i=(0,n.useContext)(yC),[o]=cc(i),[r,s]=(0,n.useState)(null),{expandedObject:a}=(0,n.useContext)(xS);if((0,n.useEffect)((()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then((e=>{s(e.slice(0,20))}))}),[o,e.join(":")]),!r)return null;const l=a?r.filter((e=>e.qInfo.qId===a)):r;return n.createElement(yo,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>n.createElement(yo,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${t}`},n.createElement(IS,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):n.createElement(yo,{item:!0},n.createElement("div",null,n.createElement(No,{display:"inline"},"Could not find any components with "),n.createElement(No,{display:"inline"},n.createElement("code",null,`qType: "${e[0]}"`)),n.createElement(No,{display:"inline"}," in the current app"))))}const OS=["en-US","it-IT","zh-CN","zh-TW","ko-KR","de-DE","sv-SE","es-ES","pt-BR","ja-JP","fr-FR","nl-NL","tr-TR","pl-PL","ru-RU"],TS=[];function AS(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive")}}function MS(){const e=(0,n.useRef)(),t=U(),{info:i}=Je(),{waiting:o,app:r}=(({info:e})=>{const[t,i]=(0,n.useState)(null),[o,r]=(0,n.useState)(!0);(0,n.useEffect)((()=>{r(!0),e&&s().then((e=>i(e))).catch((e=>console.log(e))).finally((()=>r(!1)))}),[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:n,enigma:i=null,enigma:{host:o}={}}=e;let r="";if(n){const t=await Xe({webIntegrationId:n,host:o});r=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/getSocketUrl/${e?.enigma.appId}`)).json();r=t}else r=ue().buildUrl(i);return(await le().create({schema:ce,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:t,setApp:i}})({info:i}),s=(0,n.useMemo)((()=>it(r)),[r]),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[u,h]=(0,n.useState)(null),[g,p]=(0,n.useState)(s.get("themeName")),[m,f]=(0,n.useState)(s.get("language")||"en-US"),[v,_]=(0,n.useState)("light"),[b,C]=(0,n.useState)(TS),[y,w]=(0,n.useState)(!0===s.get("objectListMode")),S=(0,n.useRef)(null),[x,L]=(0,n.useState)(),[k,E]=n.useState(null),[N,D]=n.useState(null),[I,q]=(0,n.useState)(null),R=Array.isArray(i?.themes)&&i.themes.length?["light","dark",...i.themes]:[],O=(0,n.useMemo)((()=>vn(v)),[v]),T=(0,n.useMemo)((()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d})),[a,c,g]);(0,n.useEffect)((()=>{i&&function(e){const t=()=>{_C(e.supernova.name,e.supernova.url).then((t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,bC[n]&&bC[n].forEach((e=>e()))})),e.types&&e.types.forEach((e=>{_C(e.name,e.url).then((t=>{window[e.name]=t}))}))};e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t()}(i)}),[i]),(0,n.useEffect)((()=>{if(o)return;const e=lb(r,{context:{theme:g,language:m,constraints:AS(b),keyboardNavigation:i?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:i?.flags,themes:i?.themes?i?.themes.map((e=>({id:e,load:()=>fetch(`/theme/${e}`).then((e=>e.json())).then((e=>(_("dark"===e.type?"dark":"light"),e)))}))):null});e.__DO_NOT_USE__.types.register(i?.supernova),i?.types&&i?.types.forEach((t=>{e.__DO_NOT_USE__.types.register(t)})),q(e)}),[r,i,o]),(0,n.useLayoutEffect)((()=>{I&&(I.context({theme:g}),"light"!==g&&"dark"!==g||_(g))}),[I,g]),(0,n.useEffect)((()=>{I&&(I.selections().then((e=>e.mount(S.current))),window.onHotChange(i?.supernova.name,(()=>{I.__DO_NOT_USE__.types.clearFromCache(i?.supernova.name),I.__DO_NOT_USE__.types.register(i?.supernova),A(),I.__DO_NOT_USE__.types.get({name:i?.supernova.name}).supernova().then(h)})),A())}),[I,i]),(0,n.useEffect)((()=>{const t=()=>{r&&r.destroySessionObject(e.current)};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[r]);const A=()=>{window[i?.supernova.name]&&(e.current=String(Date.now()),L(e.current))};return n.createElement(yC.Provider,{value:r},n.createElement(Xt,{injectFirst:!0},n.createElement(Qt,{theme:O},n.createElement(LS.Provider,{value:I},n.createElement(yo,{container:!0,wrap:"nowrap",direction:"column",style:{background:O.palette.background.darkest,height:"100%"},gap:0},n.createElement(yo,{item:!0},n.createElement(Ob,{variant:"dense",style:{background:O.palette.background.paper,boxShadow:O.shadows[1]}},n.createElement(yo,{container:!0,gap:1},n.createElement(yo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(yo,{item:!0},n.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},n.createElement("img",{src:"/assets/logo.svg",alt:"nebula.js logo",href:"https://github.com/qlik-oss/nebula.js",style:{height:"24px",position:"relative",top:"2px"}})))),n.createElement(yo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(lo,{title:"Home",onClick:()=>t("/"),size:"large"},n.createElement(xb.Z,{style:{verticalAlign:"middle"}}))),n.createElement(yo,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(vs,{value:y?1:0,onChange:(e,t)=>{const n=1===t;s.save("objectListMode",n),n&&(l(null),d(null)),w(n)},"aria-label":"Navigation"},n.createElement(Ss,{label:n.createElement(No,null,"Create"),value:0}),n.createElement(Ss,{label:n.createElement(No,null,"Edit"),value:1}))),n.createElement(yo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(yo,{item:!0},n.createElement(No,null,"Constraints")),n.createElement(yo,{item:!0,gap:1},n.createElement(Vb,{size:"small",value:b,onChange:(e,t)=>{C(t),I.context({constraints:AS(t)})}},n.createElement($b,{value:"select"},"Select"),n.createElement($b,{value:"active"},"Active"),n.createElement($b,{value:"passive"},"Passive"))),n.createElement(yo,{item:!0},R.length?n.createElement(n.Fragment,null,n.createElement(lo,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},n.createElement(Lb.Z,{fontSize:"small"})),n.createElement(nC,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},R.map((e=>n.createElement(zp,{key:e,selected:e===g,onClick:()=>(e=>{E(null),s.save("themeName",e),p(e)})(e)},e))))):n.createElement(lo,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?n.createElement(kb.Z,{fontSize:"small"}):n.createElement(Eb.Z,{fontSize:"small"}))),n.createElement(yo,{item:!0},n.createElement(Ca,{startIcon:n.createElement(Nb.Z,null),title:"Select language",onClick:e=>D(e.currentTarget)},m),n.createElement(nC,{anchorEl:N,open:!!N,keepMounted:!0,onClose:()=>D(null)},OS.map((e=>n.createElement(zp,{key:e,selected:e===m,onClick:()=>{return t=e,D(null),s.save("language",t),f(t),void I.context({language:t});var t}},e))))))))),n.createElement(yo,{item:!0,style:{padding:O.spacing(1,1,0,1)}},n.createElement("div",{ref:S,style:{flex:"0 0 auto",boxShadow:O.shadows[1]}})),n.createElement(yo,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:O.spacing(0,1,1,1)}},n.createElement(xS.Provider,{value:T},u?n.createElement(yo,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},n.createElement(yo,{item:!0,xs:!0,zeroMinWidth:!0},y?n.createElement(RS,{cache:x,types:[i?.supernova.name]}):n.createElement(qS,{info:i,storage:s,uid:x})),a&&n.createElement(yo,{item:!0,style:{background:O.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:O.shadows[1],padding:0}},n.createElement(Zw,{sn:u,viz:a,isTemp:!y,storage:s,flags:i?.flags}))):n.createElement(yo,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},n.createElement(yo,{item:!0},n.createElement(Ha,null))))))))))}const PS=()=>n.createElement(se,null,n.createElement(at,null,n.createElement(oe,null,n.createElement(ne,{element:n.createElement(gi,null)},n.createElement(ne,{path:"/",element:n.createElement(Da,null)}),n.createElement(ne,{path:"/app-list",element:n.createElement(ja,null)})),n.createElement(ne,{path:"/dev",element:n.createElement(MS,null)}))));o.s(document.querySelector("#app")).render(n.createElement(PS,null))})()})();