@nebula.js/cli-serve 4.8.1 → 4.9.0
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 +1 -1
- package/dist/eRender.js +2 -2
- package/package.json +8 -8
package/dist/eHub.js
CHANGED
|
@@ -99,4 +99,4 @@
|
|
|
99
99
|
animation: ${0} 1.4s linear infinite;
|
|
100
100
|
`),el))),nl=(0,It.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ol=(0,It.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.circle,t[`circle${(0,Gt.Z)(i.variant)}`],i.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,St.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&&Kn(Qa||(Qa=Ja`
|
|
101
101
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
102
|
-
`),tl))),rl=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=i,u=(0,wt.Z)(i,Ga),h=(0,St.Z)({},i,{color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:i,color:n,disableShrink:o}=e,r={root:["root",i,`color${(0,Gt.Z)(n)}`],svg:["svg"],circle:["circle",`circle${(0,Gt.Z)(i)}`,o&&"circleDisableShrink"]};return(0,Lt.Z)(r,Za,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,Tt.jsx)(il,(0,St.Z)({className:(0,xt.Z)(g.root,n),style:(0,St.Z)({width:s,height:s},m,a),ownerState:h,ref:t,role:"progressbar"},f,u,{children:(0,Tt.jsx)(nl,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,Tt.jsx)(ol,{className:g.circle,style:p,ownerState:h,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))})),sl=rl,al=()=>{const e=X(),t=G(),{info:n,glob:o,treatAsDesktop:r}=yt(),{loading:s,appList:a}=(({glob:e,info:t})=>{const n=X(),{setInfo:o,setActiveStep:r}=yt(),[s,a]=(0,i.useState)(),[l,c]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{r(1),ut().then((e=>{o(e)}))}),[]),(0,i.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),n(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:n});return i.createElement(wn,null,i.createElement(zo,{variant:"h5",gutterBottom:!0},"Select an app"),s&&i.createElement(sl,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&i.createElement(zo,{component:"span"},"No apps found!"),a&&a.length>0&&i.createElement(kr,null,a.map((o=>i.createElement(Hr,{button:!0,component:"a",key:o.qDocId,onClick:()=>(({navigate:e,location:t,targetApp:i,info:n})=>{const{search:o}=t,r=`${n.enigma.secure?"wss":"ws"}://${"localhost"===n.enigma.host?`${n.enigma.host}:${n.enigma.port}`:n.enigma.host}/app/${encodeURIComponent(i)}`;e(`/dev/${o.replace(n.engineUrl,r)}`.replace("&shouldFetchAppList=true",""))})({info:n,navigate:e,location:t,targetApp:r?o.qDocName:o.qDocId})},i.createElement(Kr,{primary:o.qTitle,secondary:o.qDocId}))))))};s(9779);const ll=({initial:e="en-US",fallback:t="en-US"}={})=>{const i=function({initial:e="en-US",fallback:t="en-US"}={}){const i={};let n=e;const o={language:e=>(e&&(n=e),n),add:e=>{const{id:t,locale:n}=e;Object.keys(n).forEach((e=>{i[e]||(i[e]={}),i[e][t]=n[e]}))},get(e,o){let r;return r=i[n]&&void 0!==i[n][e]?i[n][e]:i[t]&&void 0!==i[t][e]?i[t][e]:e,void 0!==o?((e="",t=[])=>{const i="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==i[t]?i[t]:e))})(r,o):r}};return o}({initial:e,fallback:t});return{translator:i}},cl=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_DrillDown":{"id":"Listbox.DrillDown","locale":{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","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_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},"Listbox_ScreenReader_SelectionMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},"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_Listbox_Alternative":{"id":"Object.Listbox.Alternative","locale":{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},"Object_Listbox_Excluded":{"id":"Object.Listbox.Excluded","locale":{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},"Object_Listbox_ExcludedLock":{"id":"Object.Listbox.ExcludedLock","locale":{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},"Object_Listbox_Locked":{"id":"Object.Listbox.Locked","locale":{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},"Object_Listbox_Optional":{"id":"Object.Listbox.Optional","locale":{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},"Object_Listbox_Selected":{"id":"Object.Listbox.Selected","locale":{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},"Object_Listbox_SelectedExcluded":{"id":"Object.Listbox.SelectedExcluded","locale":{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","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":"重試"}},"ScreenReader_ManySearchResults":{"id":"ScreenReader.ManySearchResults","locale":{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},"ScreenReader_ManySelected":{"id":"ScreenReader.ManySelected","locale":{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},"ScreenReader_OneSearchResult":{"id":"ScreenReader.OneSearchResult","locale":{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},"ScreenReader_OneSelected":{"id":"ScreenReader.OneSelected","locale":{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},"ScreenReader_ZeroSelected":{"id":"ScreenReader.ZeroSelected","locale":{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n\'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","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":"選取可能值"}},"SelectionToolbar_ClickToUnlock":{"id":"SelectionToolbar.ClickToUnlock","locale":{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","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 dl=s(9544),ul=s.n(dl);function hl(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function gl(e,t){var i=Object.create(e.prototype);for(var n in t)i[n]=t[n];return i}function pl(){}var ml=.7,fl=1/ml,vl="\\s*([+-]?\\d+)\\s*",_l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yl=/^#([0-9a-f]{3,8})$/,Cl=new RegExp(`^rgb\\(${vl},${vl},${vl}\\)$`),wl=new RegExp(`^rgb\\(${bl},${bl},${bl}\\)$`),Sl=new RegExp(`^rgba\\(${vl},${vl},${vl},${_l}\\)$`),xl=new RegExp(`^rgba\\(${bl},${bl},${bl},${_l}\\)$`),Ll=new RegExp(`^hsl\\(${_l},${bl},${bl}\\)$`),kl=new RegExp(`^hsla\\(${_l},${bl},${bl},${_l}\\)$`),El={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 Dl(){return this.rgb().formatHex()}function Il(){return this.rgb().formatRgb()}function Nl(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=yl.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?Rl(t):3===i?new Ol(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?ql(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?ql(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=Cl.exec(e))?new Ol(t[1],t[2],t[3],1):(t=wl.exec(e))?new Ol(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Sl.exec(e))?ql(t[1],t[2],t[3],t[4]):(t=xl.exec(e))?ql(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ll.exec(e))?Wl(t[1],t[2]/100,t[3]/100,1):(t=kl.exec(e))?Wl(t[1],t[2]/100,t[3]/100,t[4]):El.hasOwnProperty(e)?Rl(El[e]):"transparent"===e?new Ol(NaN,NaN,NaN,0):null}function Rl(e){return new Ol(e>>16&255,e>>8&255,255&e,1)}function ql(e,t,i,n){return n<=0&&(e=t=i=NaN),new Ol(e,t,i,n)}function Tl(e,t,i,n){return 1===arguments.length?((o=e)instanceof pl||(o=Nl(o)),o?new Ol((o=o.rgb()).r,o.g,o.b,o.opacity):new Ol):new Ol(e,t,i,null==n?1:n);var o}function Ol(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function Ml(){return`#${Bl(this.r)}${Bl(this.g)}${Bl(this.b)}`}function Al(){const e=Pl(this.opacity);return`${1===e?"rgb(":"rgba("}${Fl(this.r)}, ${Fl(this.g)}, ${Fl(this.b)}${1===e?")":`, ${e})`}`}function Pl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bl(e){return((e=Fl(e))<16?"0":"")+e.toString(16)}function Wl(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new zl(e,t,i,n)}function Vl(e){if(e instanceof zl)return new zl(e.h,e.s,e.l,e.opacity);if(e instanceof pl||(e=Nl(e)),!e)return new zl;if(e instanceof zl)return e;var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,o=Math.min(t,i,n),r=Math.max(t,i,n),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(i-n)/a+6*(i<n):i===r?(n-t)/a+2:(t-i)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new zl(s,a,l,e.opacity)}function zl(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function Hl(e){return(e=(e||0)%360)<0?e+360:e}function jl(e){return Math.max(0,Math.min(1,e||0))}function Ul(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}hl(pl,Nl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Dl,formatHex:Dl,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Vl(this).formatHsl()},formatRgb:Il,toString:Il}),hl(Ol,Tl,gl(pl,{brighter(e){return e=null==e?fl:Math.pow(fl,e),new Ol(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ml:Math.pow(ml,e),new Ol(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ol(Fl(this.r),Fl(this.g),Fl(this.b),Pl(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:Ml,formatHex:Ml,formatHex8:function(){return`#${Bl(this.r)}${Bl(this.g)}${Bl(this.b)}${Bl(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Al,toString:Al})),hl(zl,(function(e,t,i,n){return 1===arguments.length?Vl(e):new zl(e,t,i,null==n?1:n)}),gl(pl,{brighter(e){return e=null==e?fl:Math.pow(fl,e),new zl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ml:Math.pow(ml,e),new zl(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,i=this.l,n=i+(i<.5?i:1-i)*t,o=2*i-n;return new Ol(Ul(e>=240?e-240:e+120,o,n),Ul(e,o,n),Ul(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new zl(Hl(this.h),jl(this.s),jl(this.l),Pl(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=Pl(this.opacity);return`${1===e?"hsl(":"hsla("}${Hl(this.h)}, ${100*jl(this.s)}%, ${100*jl(this.l)}%${1===e?")":`, ${e})`}`}}));var $l=s(1302),Zl=s.n($l);const Gl=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"]}]}}'),Kl=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"}'),Xl=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"}'),Yl=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),Ql=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Nl(e)}addColorPart(e,t,i){i=i||0,this.startLevel=Math.max(i,this.startLevel),this.colorParts[i]||(this.colorParts[i]=[]),this.colorParts[i].push([Nl(e),Nl(t)])}getColor(e,t){const i=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+i))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const n=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(i,this.colorParts[t].length);let o=Math.floor(n);o=o===n?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,i){return Tl(Math.floor(e.r+(t.r-e.r)*i),Math.floor(e.g+(t.g-e.g)*i),Math.floor(e.b+(t.b-e.b)*i),Math.floor(e.opacity+(t.opacity-e.opacity)*i))}(s,a,n-o);return l}};function Jl(e,t,i){const n=.25+(t+1)/i*.25,o=.5-n;return o+e/1*(.5+n-o)}function ec(e,t,i){const n=[],o=new Ql(t);n.push(e[0]),i||n.push(e[0]);let r=1;for(;r<e.length-1;r++)n.push(e[r]),n.push(e[r]);n.push(e[r]),i||n.push(e[r]);for(let e=0;e<n.length;e+=2)o.addColorPart(n[e],n[e+1]);return o}function tc(e,t,i){const n=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const n=Jl(1/t*o,t,i);r=e.getColor(n);break}}n.push(Nl(r).formatHex())}return n}function ic(e,t){const i=[];let n,o;if(e){let r=e.length;for(;r>=0;){for(n=t.slice(),o=n.length;o>=0;)i.push(n.concat(e)),n.pop(),o--;e.pop(),r--}}else for(n=t.slice(),o=n.length;o>=0;)i.push(n.concat()),n.pop(),o--;return i}function nc(e,t){let i=e;for(let e=0;e<t.length;e++){if(!i[t[e]])return;i=i[t[e]]}return i}function oc(e,t){const i=e.split(".");return{getStyle:(e,n)=>function(e,t,i,n){let o;return o=ic(""===e?null:e.split("."),i),function(e,t,i){const n=t.split(".");for(let t=0;t<e.length;t++){const o=nc(i,[...e[t],...n]);if(void 0!==o)return o}}(o,t,n)}(e,n,i.concat(),t)}}function rc(e,t){Object.keys(e).forEach((i=>{"object"==typeof e[i]&&null!==e[i]?rc(e[i],t):"string"==typeof e[i]&&"@"===e[i].charAt(0)&&(e[i]=t[e[i]])}))}function sc(e){const t=Nl(e).rgb(),{r:i,g:n,b:o}=t,[r,s,a]=[i,n,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)}oc.resolveRawTheme=e=>{const t=Zl()(!0,{},e);return rc(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const i=function(e,t,i){const n=ec(e,i,!0),o=ec(tc(n,t-1,t),i,!1),r=[null];for(let e=0;e<t;e++)r.push(tc(o,e,t));return r}(e.scale,Math.max(e.scale.length,7),t);e.scale=i,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const ac=1e3;function lc(){let e,t,i,n={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>i.getBestContrastColor(e),getStyle:(t,i,o)=>(n[t]||(n[t]=oc(t,e)),n[t].getStyle(i,o)),validateColor(...e){const t=e[0];let i;if("string"==typeof t&&(i=/^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(i[1],10)/255;return`rgba(${parseInt(i[2],10)},${parseInt(i[3],10)},${parseInt(i[4],10)},${e})`}const n=Nl(...e);return n?n.toString():void 0}},r={setTheme(r,s){e=function(e,t){const i="dark"===e.type?Xl:Kl;let n=Yl;!1!==e._inherit&&"false"!==e._inherit||(n={});const o=Zl()(!0,{},Gl,i,n),r=Zl()(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return r.palettes.data&&r.palettes.data.length||(r.palettes.data=o.palettes.data),r.palettes.ui&&r.palettes.ui.length||(r.palettes.ui=o.palettes.ui),r.scales&&r.scales.length||(r.scales=o.scales),t(r)}(r,oc.resolveRawTheme),n={},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,i){return i=!!i,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-i]?e.color:t.colors[e.index-i]:e.color)}}}(e);const a=o.getStyle("","","color"),l=sc(a);i=function(e=["#333333","#ffffff"]){let t={},i=0;const n=e.map(sc);return{getBestContrastColor(o){if(!t[o]){i>ac&&(t={},i=0);const r=sc(o),s=n.map((e=>{return t=r,i=e,+((Math.max(t,i)+.05)/(Math.min(t,i)+.05)).toFixed(5);var t,i})),a=e[s.indexOf(Math.max(...s))];t[o]=a,i++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(ul().prototype).forEach((e=>{o[e]=ul().prototype[e]})),ul().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}const cc=i.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),dc=(e={},t=(()=>{}))=>{const n=e,o=[],r={get:e=>n[e],set:(e,i)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return n[e]=i,t({type:"SET",value:i}),i},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);n[e]=null},dispatch:e=>{o.forEach((t=>t(e?{}:n)))}};return[()=>{const[,e]=(0,i.useState)(n);return(0,i.useEffect)((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[r]},r]},[uc,hc]=dc({}),[gc,pc]=dc({}),[mc,fc]=dc({});function vc(e){if(!e.session)return[];const[t]=uc(),n=e?e.id:null;let o=t.get(n);return(0,i.useEffect)((()=>{e&&!o&&(o=function({app:e}){const t=`${e.id}`,i=async(e=!0)=>{const{model:i,objectSelections:n}=fc.get(t)||{};i&&(await i.endSelections(e),fc.clear(t),n.emit("deactivated"))},n={begin:async({model:n,paths:o,accept:r=!0,objectSelections:s})=>{if(s===fc.get(t)?.objectSelections)return;i(r),fc.set(t,{model:n,objectSelections:s});const a=Array.isArray(o)?o:[o],l=async i=>{try{await n.beginSelections(a),fc.set(t,{model:n,objectSelections:s})}catch(n){6003!==n.code||i?fc.clear(t):(await e.abortModal(r),l(!0))}};await l()},end:i};return pc.set(t,n),{model:e,isInModal:()=>!!fc.get(t),isModal:e=>e?fc.get(t)?.objectSelections===e:!!fc.get(t),forward:()=>n.end().then((()=>e.forward())),back:()=>n.end().then((()=>e.back())),clear:()=>n.end().then((()=>e.clearAll())),clearField:(t,i="$")=>n.end().then((()=>e.getField(t,i).then((e=>e.clear()))))}}({app:e}),t.set(n,o),t.dispatch(!0))}),[e]),[o]}const _c={active:!0,select:!0,passive:!0,edit:!1};function bc(e){const t={},i={},n=function(e){const{constraints:t={},interactions:i={}}=e;if(Object.keys(i).length>0)return i;const n={};return Object.keys(t).forEach((e=>{n[e]=!t[e]})),n}(e);Object.keys(_c).forEach((e=>{void 0!==n[e]?(t[e]=n[e],i[e]=!n[e]):(t[e]=_c[e],i[e]=!_c[e])})),e.constraints=i,e.interactions=t}const yc=(0,i.forwardRef)((({initialContext:e,app:t,renderCallback:n},o)=>{const[r]=vc(t),[s,a]=(0,i.useState)(e),[l,c]=(0,i.useState)(),{theme:d}=(0,i.useMemo)((()=>({theme:Ii(l)})),[l]),[u,h]=(0,i.useState)([]);return(0,i.useEffect)((()=>{n&&n()}),[]),(0,i.useImperativeHandle)(o,(()=>({setComps(e){h([...e])},setMuiThemeName:c,setContext:e=>a((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>r})),[]),i.createElement(mi,{injectFirst:!0},i.createElement(hi,{theme:d},i.createElement(cc.Provider,{value:s},u)))})),[Cc,wc]=dc({}),[Sc,xc]=dc({}),[Lc,kc]=dc({}),[Ec,Dc]=dc({}),[Ic,Nc]=dc({}),[,Rc]=dc({}),qc=({type:e,value:t})=>{const i=Rc.get(t.id);Rc.set(t.id,{});const n=()=>{xc.clear(t.id),Nc.set(t.id,{}),Nc.dispatch(!0)},o=()=>{t.removeListener("changed",n),wc.clear(t.id),xc.clear(t.id),kc.clear(t.id),Dc.clear(t.id),Nc.clear(t.id),Rc.clear(t.id)};return"SET"===e&&(i||(t.on("changed",n),t.once("closed",(()=>{o()})))),o},[Tc,Oc]=dc({},qc);function Mc(e,t,...n){const o=t?`${t.id}/${JSON.stringify(e)}`:null,[r]=Tc(),[s]=Lc(),[a,l]=(0,i.useState)();return(0,i.useEffect)((()=>{t&&(async()=>{let i=s.get(o);i||(i=t.createSessionObject(e),s.set(o,i));const n=await i;r.set(o,n),l(n)})()}),[t,...n]),[a]}const Ac={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Pc(e){return Mc(Ac,e)}const Fc=e=>new Promise((t=>{setTimeout(t,e)})),Bc=(e,t)=>{const{rpcResultStore:i,key:n,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=i.get(n);return s||(s={}),s[o]=r,i.set(n,s),r};function Wc(e,t){const n=e?`${e.id}`:null,[o]=Cc(),[r,s]=(0,i.useReducer)(Bc,n?o.get(n):null),[a]=Ic(),[l]=Sc();let c;n&&(c=l.get(n),c||(c={},l.set(n,c)));const d=async i=>{let r=c[t];(!r||r&&r.rpcRetry)&&(r={rpc:e[t](),rpcRetry:!1},c[t]=r,s({type:"INVALID",method:t,key:n,model:e,rpcResultStore:o,canCancel:!0}));try{await Fc(0);const i=await r.rpc;s({type:"VALID",result:i,key:n,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||i||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},u={cancel:async()=>{const i=e.session.getObjectApi({handle:-1});await i.cancelRequest(c[t].rpc.requestId),s({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:o})},retry:()=>{c[t].rpcRetry=!0,d()}};return(0,i.useEffect)((()=>{e&&d()}),[e,a.get(e&&e.id),n,t]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},u]}function Vc(e){return Wc(e,"getLayout")}function zc(e){return Wc(e,"getAppLayout")}function Hc(){const[e,t]=(0,i.useState)(),[n,o]=(0,i.useState)(),r=(0,i.useCallback)((e=>{e&&t(e)}),[]),s=()=>{const{left:t,top:i,width:n,height:r}=e.getBoundingClientRect();o({left:t,top:i,width:n,height:r})};return(0,i.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,n,e]}const jc=e=>br((e=>({...e,shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e)),Uc=e=>br((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)),$c=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Zc(e){return`scale(${e}, ${e**2})`}const Gc={entering:{opacity:1,transform:Zc(1)},entered:{opacity:1,transform:"none"}},Kc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Xc=i.forwardRef((function(e,t){const{addEndListener:n,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=rr}=e,v=(0,wt.Z)(e,$c),_=i.useRef(),b=i.useRef(),y=ei(),C=i.useRef(null),w=(0,Nn.Z)(C,r.ref,t),S=e=>t=>{if(e){const i=C.current;void 0===t?e(i):e(i,t)}},x=S(d),L=S(((e,t)=>{ar(e);const{duration:i,delay:n,easing:o}=lr({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=i,e.style.transition=[y.transitions.create("opacity",{duration:r,delay:n}),y.transitions.create("transform",{duration:Kc?r:.666*r,delay:n,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(g),D=S((e=>{const{duration:t,delay:i,easing:n}=lr({style:p,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:i}),y.transitions.create("transform",{duration:Kc?o:.666*o,delay:Kc?i:i||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Zc(.75),u&&u(e)})),I=S(h);return i.useEffect((()=>()=>{clearTimeout(_.current)}),[]),(0,Tt.jsx)(f,(0,St.Z)({appear:o,in:a,nodeRef:C,onEnter:L,onEntered:k,onEntering:x,onExit:D,onExited:I,onExiting:E,addEndListener:e=>{"auto"===m&&(_.current=setTimeout(e,b.current||0)),n&&n(C.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>i.cloneElement(r,(0,St.Z)({style:(0,St.Z)({opacity:0,transform:Zc(.75),visibility:"exited"!==e||a?void 0:"hidden"},Gc[e],p,r.props.style),ref:w},t))}))}));Xc.muiSupportAuto=!0;const Yc=Xc;var Qc=s(6074),Jc=s(6734),ed=s(4603);function td(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function id(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nd(e){return parseInt((0,ta.Z)(e).getComputedStyle(e).paddingRight,10)||0}function od(e,t,i,n,o){const r=[t,i,...n];[].forEach.call(e.children,(e=>{const t=-1===r.indexOf(e),i=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),i="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||i}(e);t&&i&&id(e,o)}))}function rd(e,t){let i=-1;return e.some(((e,n)=>!!t(e)&&(i=n,!0))),i}const sd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let i=this.modals.indexOf(e);if(-1!==i)return i;i=this.modals.length,this.modals.push(e),e.modalRef&&id(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);od(t,e.mount,e.modalRef,n,!0);const o=rd(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),i):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),i)}mount(e,t){const i=rd(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[i];n.restore||(n.restore=function(e,t){const i=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Qc.Z)(e);return t.body===e?(0,ta.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=td((0,Qc.Z)(n));i.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${nd(n)+e}px`;const t=(0,Qc.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{i.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${nd(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,Qc.Z)(n).body;else{const t=n.parentElement,i=(0,ta.Z)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===i.getComputedStyle(t).overflowY?t:n}i.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()=>{i.forEach((({value:e,el:t,property:i})=>{e?t.style.setProperty(i,e):t.style.removeProperty(i)}))}}(n,t))}remove(e,t=!0){const i=this.modals.indexOf(e);if(-1===i)return i;const n=rd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(i,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&id(e.modalRef,t),od(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&id(e.modalRef,!1)}return i}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const ad=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ld(e){const t=[],i=[];return Array.from(e.querySelectorAll(ad)).forEach(((e,n)=>{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 i=t(`[name="${e.name}"]:checked`);return i||(i=t(`[name="${e.name}"]`)),i!==e}(e))}(e)&&(0===o?t.push(e):i.push({documentOrder:n,tabIndex:o,node:e}))})),i.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function cd(){return!0}function dd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=ld,isEnabled:a=cd,open:l}=e,c=i.useRef(!1),d=i.useRef(null),u=i.useRef(null),h=i.useRef(null),g=i.useRef(null),p=i.useRef(!1),m=i.useRef(null),f=(0,es.Z)(t.ref,m),v=i.useRef(null);i.useEffect((()=>{l&&m.current&&(p.current=!n)}),[n,l]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,Qc.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]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,Qc.Z)(m.current),t=t=>{v.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},i=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==d.current&&e.activeElement!==u.current)return;if(e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let i=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(i=s(m.current)),i.length>0){var n,r;const e=Boolean((null==(n=v.current)?void 0:n.shiftKey)&&"Tab"===(null==(r=v.current)?void 0:r.key)),t=i[0],o=i[i.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",i),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&i()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",i),e.removeEventListener("keydown",t,!0)}}),[n,o,r,a,l,s]);const _=e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0};return(0,Tt.jsxs)(i.Fragment,{children:[(0,Tt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:f,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0,g.current=e.target;const i=t.props.onFocus;i&&i(e)}}),(0,Tt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:u,"data-testid":"sentinelEnd"})]})}var ud=s(513);const hd=i.forwardRef((function(e,t){const{children:n,container:o,disablePortal:s=!1}=e,[a,l]=i.useState(null),c=(0,es.Z)(i.isValidElement(n)?n.ref:null,t);if((0,ia.Z)((()=>{s||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,s]),(0,ia.Z)((()=>{if(a&&!s)return(0,ud.Z)(t,a),()=>{(0,ud.Z)(t,null)}}),[t,a,s]),s){if(i.isValidElement(n)){const e={ref:c};return i.cloneElement(n,e)}return(0,Tt.jsx)(i.Fragment,{children:n})}return(0,Tt.jsx)(i.Fragment,{children:a?r.createPortal(n,a):a})})),gd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pd={entering:{opacity:1},entered:{opacity:1}},md=i.forwardRef((function(e,t){const n=ei(),o={enter:n.transitions.duration.enteringScreen,exit:n.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:_=rr}=e,b=(0,wt.Z)(e,gd),y=i.useRef(null),C=(0,Nn.Z)(y,a.ref,t),w=e=>t=>{if(e){const i=y.current;void 0===t?e(i):e(i,t)}},S=w(h),x=w(((e,t)=>{ar(e);const i=lr({style:f,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",i),e.style.transition=n.transitions.create("opacity",i),d&&d(e,t)})),L=w(u),k=w(m),E=w((e=>{const t=lr({style:f,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),D=w(p);return(0,Tt.jsx)(_,(0,St.Z)({appear:s,in:c,nodeRef:y,onEnter:x,onEntered:L,onEntering:S,onExit:E,onExited:D,onExiting:k,addEndListener:e=>{r&&r(y.current,e)},timeout:v},b,{children:(e,t)=>i.cloneElement(a,(0,St.Z)({style:(0,St.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},pd[e],f,a.props.style),ref:C},t))}))})),fd=md;function vd(e){return(0,Rt.Z)("MuiBackdrop",e)}(0,Nt.Z)("MuiBackdrop",["root","invisible"]);const _d=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bd=(0,It.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.invisible&&t.invisible]}})((({ownerState:e})=>(0,St.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"}))),yd=i.forwardRef((function(e,t){var i,n,o;const r=(0,Dt.Z)({props:e,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:h,slotProps:g={},slots:p={},TransitionComponent:m=fd,transitionDuration:f}=r,v=(0,wt.Z)(r,_d),_=(0,St.Z)({},r,{component:l,invisible:u}),b=(e=>{const{classes:t,invisible:i}=e,n={root:["root",i&&"invisible"]};return(0,Lt.Z)(n,vd,t)})(_),y=null!=(i=g.root)?i:d.root;return(0,Tt.jsx)(m,(0,St.Z)({in:h,timeout:f},v,{children:(0,Tt.jsx)(bd,(0,St.Z)({"aria-hidden":!0},y,{as:null!=(n=null!=(o=p.root)?o:c.Root)?n:l,className:(0,xt.Z)(b.root,a,null==y?void 0:y.className),ownerState:(0,St.Z)({},_,null==y?void 0:y.ownerState),classes:b,ref:t,children:s}))}))})),Cd=yd;function wd(e){return(0,Rt.Z)("MuiModal",e)}(0,Nt.Z)("MuiModal",["root","hidden","backdrop"]);const Sd=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],xd=(0,It.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.open&&i.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,St.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ld=(0,It.ZP)(Cd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kd=i.forwardRef((function(e,t){var n,o,r,s,a,l;const c=(0,Dt.Z)({name:"MuiModal",props:e}),{BackdropComponent:d=Ld,BackdropProps:u,className:h,closeAfterTransition:g=!1,children:p,container:m,component:f,components:v={},componentsProps:_={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:x=!1,hideBackdrop:L=!1,keepMounted:k=!1,onBackdropClick:E,open:D,slotProps:I,slots:N}=c,R=(0,wt.Z)(c,Sd),q=(0,St.Z)({},c,{closeAfterTransition:g,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:S,disableScrollLock:x,hideBackdrop:L,keepMounted:k}),{getRootProps:T,getBackdropProps:O,getTransitionProps:M,portalRef:A,isTopModal:P,exited:F,hasTransition:B}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:r=sd,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:u,rootRef:h}=e,g=i.useRef({}),p=i.useRef(null),m=i.useRef(null),f=(0,es.Z)(m,h),[v,_]=i.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const C=()=>(g.current.modalRef=m.current,g.current.mount=p.current,g.current),w=()=>{r.mount(C(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},S=(0,Jc.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||(0,Qc.Z)(p.current).body;r.add(C(),e),m.current&&w()})),x=i.useCallback((()=>r.isTopModal(C())),[r]),L=(0,Jc.Z)((e=>{p.current=e,e&&(u&&x()?w():m.current&&id(m.current,y))})),k=i.useCallback((()=>{r.remove(C(),y)}),[y,r]);i.useEffect((()=>()=>{k()}),[k]),i.useEffect((()=>{u?S():b&&s||k()}),[u,k,b,s,S]);const E=e=>t=>{var i;null==(i=e.onKeyDown)||i.call(e,t),"Escape"===t.key&&229!==t.which&&x()&&(n||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},D=e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(t={})=>{const i=is(e);delete i.onTransitionEnter,delete i.onTransitionExited;const n=Qr({},i,t);return Qr({role:"presentation"},n,{onKeyDown:E(n),ref:f})},getBackdropProps:(e={})=>Qr({"aria-hidden":!0},e,{onClick:D(e),open:u}),getTransitionProps:()=>({onEnter:(0,ed.Z)((()=>{_(!1),a&&a()}),null==c?void 0:c.props.onEnter),onExited:(0,ed.Z)((()=>{_(!0),l&&l(),s&&k()}),null==c?void 0:c.props.onExited)}),rootRef:f,portalRef:L,isTopModal:x,exited:v,hasTransition:b}}((0,St.Z)({},q,{rootRef:t})),W=(0,St.Z)({},q,{exited:F}),V=(e=>{const{open:t,exited:i,classes:n}=e,o={root:["root",!t&&i&&"hidden"],backdrop:["backdrop"]};return(0,Lt.Z)(o,wd,n)})(W),z={};if(void 0===p.props.tabIndex&&(z.tabIndex="-1"),B){const{onEnter:e,onExited:t}=M();z.onEnter=e,z.onExited=t}const H=null!=(n=null!=(o=null==N?void 0:N.root)?o:v.Root)?n:xd,j=null!=(r=null!=(s=null==N?void 0:N.backdrop)?s:v.Backdrop)?r:d,U=null!=(a=null==I?void 0:I.root)?a:_.root,$=null!=(l=null==I?void 0:I.backdrop)?l:_.backdrop,Z=rs({elementType:H,externalSlotProps:U,externalForwardedProps:R,getSlotProps:T,additionalProps:{ref:t,as:f},ownerState:W,className:(0,xt.Z)(h,null==U?void 0:U.className,null==V?void 0:V.root,!W.open&&W.exited&&(null==V?void 0:V.hidden))}),G=rs({elementType:j,externalSlotProps:$,additionalProps:u,getSlotProps:e=>O((0,St.Z)({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,xt.Z)(null==$?void 0:$.className,null==u?void 0:u.className,null==V?void 0:V.backdrop),ownerState:W});return k||D||B&&!F?(0,Tt.jsx)(hd,{ref:A,container:m,disablePortal:w,children:(0,Tt.jsxs)(H,(0,St.Z)({},Z,{children:[!L&&d?(0,Tt.jsx)(j,(0,St.Z)({},G)):null,(0,Tt.jsx)(dd,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:P,open:D,children:i.cloneElement(p,z)})]}))}):null})),Ed=kd,Dd=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Id(e){return(0,Rt.Z)("MuiPaper",e)}(0,Nt.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 Nd=["className","component","elevation","square","variant"],Rd=(0,It.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],!i.square&&t.rounded,"elevation"===i.variant&&t[`elevation${i.elevation}`]]}})((({theme:e,ownerState:t})=>{var i;return(0,St.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,St.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,In.Fq)("#fff",Dd(t.elevation))}, ${(0,In.Fq)("#fff",Dd(t.elevation))})`},e.vars&&{backgroundImage:null==(i=e.vars.overlays)?void 0:i[t.elevation]}))})),qd=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:r=1,square:s=!1,variant:a="elevation"}=i,l=(0,wt.Z)(i,Nd),c=(0,St.Z)({},i,{component:o,elevation:r,square:s,variant:a}),d=(e=>{const{square:t,elevation:i,variant:n,classes:o}=e,r={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${i}`]};return(0,Lt.Z)(r,Id,o)})(c);return(0,Tt.jsx)(Rd,(0,St.Z)({as:o,ownerState:c,className:(0,xt.Z)(d.root,n),ref:t},l))})),Td=qd;function Od(e){return(0,Rt.Z)("MuiPopover",e)}(0,Nt.Z)("MuiPopover",["root","paper"]);const Md=["onEntering"],Ad=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Pd=["slotProps"];function Fd(e,t){let i=0;return"number"==typeof t?i=t:"center"===t?i=e.height/2:"bottom"===t&&(i=e.height),i}function Bd(e,t){let i=0;return"number"==typeof t?i=t:"center"===t?i=e.width/2:"right"===t&&(i=e.width),i}function Wd(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Vd(e){return"function"==typeof e?e():e}const zd=(0,It.ZP)(Ed,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hd=(0,It.ZP)(Td,{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}),jd=i.forwardRef((function(e,t){var n,o,r;const s=(0,Dt.Z)({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:u="anchorEl",children:h,className:g,container:p,elevation:m=8,marginThreshold:f=16,open:v,PaperProps:_={},slots:b,slotProps:y,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w=Yc,transitionDuration:S="auto",TransitionProps:{onEntering:x}={},disableScrollLock:L=!1}=s,k=(0,wt.Z)(s.TransitionProps,Md),E=(0,wt.Z)(s,Ad),D=null!=(n=null==y?void 0:y.paper)?n:_,I=i.useRef(),N=(0,Nn.Z)(I,D.ref),R=(0,St.Z)({},s,{anchorOrigin:c,anchorReference:u,elevation:m,marginThreshold:f,externalPaperSlotProps:D,transformOrigin:C,TransitionComponent:w,transitionDuration:S,TransitionProps:k}),q=(e=>{const{classes:t}=e;return(0,Lt.Z)({root:["root"],paper:["paper"]},Od,t)})(R),T=i.useCallback((()=>{if("anchorPosition"===u)return d;const e=Vd(l),t=(e&&1===e.nodeType?e:(0,xs.Z)(I.current).body).getBoundingClientRect();return{top:t.top+Fd(t,c.vertical),left:t.left+Bd(t,c.horizontal)}}),[l,c.horizontal,c.vertical,d,u]),O=i.useCallback((e=>({vertical:Fd(e,C.vertical),horizontal:Bd(e,C.horizontal)})),[C.horizontal,C.vertical]),M=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},i=O(t);if("none"===u)return{top:null,left:null,transformOrigin:Wd(i)};const n=T();let o=n.top-i.vertical,r=n.left-i.horizontal;const s=o+t.height,a=r+t.width,c=(0,us.Z)(Vd(l)),d=c.innerHeight-f,h=c.innerWidth-f;if(null!==f&&o<f){const e=o-f;o-=e,i.vertical+=e}else if(null!==f&&s>d){const e=s-d;o-=e,i.vertical+=e}if(null!==f&&r<f){const e=r-f;r-=e,i.horizontal+=e}else if(a>h){const e=a-h;r-=e,i.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(r)}px`,transformOrigin:Wd(i)}}),[l,u,T,O,f]),[A,P]=i.useState(v),F=i.useCallback((()=>{const e=I.current;if(!e)return;const t=M(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[M]);i.useEffect((()=>(L&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,L,F]),i.useEffect((()=>{v&&F()})),i.useImperativeHandle(a,(()=>v?{updatePosition:()=>{F()}}:null),[v,F]),i.useEffect((()=>{if(!v)return;const e=(0,ss.Z)((()=>{F()})),t=(0,us.Z)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,v,F]);let B=S;"auto"!==S||w.muiSupportAuto||(B=void 0);const W=p||(l?(0,xs.Z)(Vd(l)).body:void 0),V=null!=(o=null==b?void 0:b.root)?o:zd,z=null!=(r=null==b?void 0:b.paper)?r:Hd,H=rs({elementType:z,externalSlotProps:(0,St.Z)({},D,{style:A?D.style:(0,St.Z)({},D.style,{opacity:0})}),additionalProps:{elevation:m,ref:N},ownerState:R,className:(0,xt.Z)(q.paper,null==D?void 0:D.className)}),j=rs({elementType:V,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:E,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:W,open:v},ownerState:R,className:(0,xt.Z)(q.root,g)}),{slotProps:U}=j,$=(0,wt.Z)(j,Pd);return(0,Tt.jsx)(V,(0,St.Z)({},$,!Er(V)&&{slotProps:U,disableScrollLock:L},{children:(0,Tt.jsx)(w,(0,St.Z)({appear:!0,in:v,onEntering:(e,t)=>{x&&x(e,t),F()},onExited:()=>{P(!1)},timeout:B},k,{children:(0,Tt.jsx)(z,(0,St.Z)({},H,{children:h}))}))}))})),Ud=jd;var $d=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),Zd=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 Gd=function(e){function t(){var e,i,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return i=n=Zd(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),n._lastRenderedStartIndex=-1,n._lastRenderedStopIndex=-1,n._memoizedUnloadedRanges=[],n._onItemsRendered=function(e){var t=e.visibleStartIndex,i=e.visibleStopIndex;n._lastRenderedStartIndex=t,n._lastRenderedStopIndex=i,n._ensureRowsLoaded(t,i)},n._setRef=function(e){n._listRef=e},Zd(n,i)}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),$d(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 i=this.props,n=i.isItemLoaded,o=i.itemCount,r=i.minimumBatchSize,s=void 0===r?10:r,a=i.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,i=e.itemCount,n=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+n-1),i-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<n&&r[0]>0;){var u=r[0]-1;if(t(u))break;r[0]=u}return r}({isItemLoaded:n,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,i=this.props.loadMoreItems||this.props.loadMoreRows,n=function(n){var o=e[n],r=e[n+1],s=i(o,r);null!=s&&s.then((function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r}).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)n(o)}}]),t}(i.PureComponent),Kd=["S","XS"],Xd=e=>e.reduce(((e,t)=>e.concat(t)));async function Yd({selections:e,elemNumbers:t,toggle:i,isSingleSelect:n}){if(0===t.length)return!1;let o=!1;if(!t.some((e=>Number.isNaN(e)))){const r=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",r,i]})}catch{o=!1}o||(n?e.cancel():e.clear())}return o}const Qd="RowColumn",Jd={row:`${Qd}-row`,rowBorderBottom:`${Qd}-rowBorderBottom`,column:`${Qd}-column`,fieldRoot:`${Qd}-fieldRoot`,cell:`${Qd}-cell`,labelText:`${Qd}-labelText`,labelDense:`${Qd}-labelDense`,highlighted:`${Qd}-highlighted`,checkboxLabel:`${Qd}-checkboxLabel`,icon:`${Qd}-icon`,S:`${Qd}-S`,XS:`${Qd}-XS`,A:`${Qd}-A`,X:`${Qd}-X`,frequencyCount:`${Qd}-frequencyCount`,barContainer:`${Qd}-barContainer`,bar:`${Qd}-bar`,barSelected:`${Qd}-barSelected`,barWithCheckbox:`${Qd}-barWithCheckbox`,barSelectedWithCheckbox:`${Qd}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Qd}-excludedTextWithCheckbox`},eu=`.${Jd.fieldRoot}`,tu=e=>!(e?.metaKey||e?.ctrlKey);const iu=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),nu=e=>br(iu(e)),ou=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,ru=e=>e?"A"===e.qState:null,su=({cell:e,checkboxes:t})=>(ru(e)||ou(e))&&t,au=80,lu=32,cu=29,du=20,uu=4,hu=e=>e.filter((e=>!!e)).join(" ").trim(),gu=e=>e||"-",pu=({sizes:e,frequencyMode:t,isGridMode:i,freqHitsValue:n})=>"P"===t?`${e.freqMinWidth}px`:i&&!n?"max-content":"25%",mu=({sizes:e,frequencyMode:t,isGridMode:i})=>i?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,fu=({theme:e,styles:t,selectedState:i})=>{const n=t.selections,o=n[i],r=n[`${i}Contrast`];return{background:o,color:r,"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`,outline:"none"},"& $cell":{paddingRight:0},[`& .${Jd.labelText}`]:{color:r},[`& .${Jd.icon}`]:{color:r}}},vu={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},_u=(0,It.ZP)("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((({theme:e,checkboxes:t,isGridMode:i,isGridCol:n,dense:o,direction:r,sizes:s,frequencyMode:a,freqHitsValue:l,styles:c})=>{const{backgroundColor:d,...u}=c.content,h=fu({theme:e,styles:c,selectedState:"selected"}),g=fu({theme:e,styles:c,selectedState:"excluded"});return{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${Jd.row}`]:{flexWrap:"nowrap",...c.content},[`& .${Jd.rowBorderBottom}`]:{borderBottom:n?"none":`1px solid ${e.palette.divider}`,borderLeft:n?`1px solid ${e.palette.divider}`:"none"},[`& .${Jd.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${Jd.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${Jd.labelText}`]:{lineHeight:"16px",userSelect:"none",paddingRight:"1px",...vu,...u},[`& .${Jd.labelDense}`]:{fontSize:12},[`& .${Jd.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${Jd.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...vu,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${Jd.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:u.color},[`& .${Jd.S}`]:{...h,border:i?"none":void 0},[`& .${Jd.XS}`]:{...fu({theme:e,styles:c,selectedState:"selectedExcluded"}),border:i?"none":void 0},[`& .${Jd.A}`]:{...fu({theme:e,styles:c,selectedState:"alternative"}),border:i?"none":void 0},[`& .${Jd.X}`]:{...g,border:i?"none":void 0},[`& .${Jd.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...vu,flex:`0 0 ${pu({sizes:s,frequencyMode:a,isGridMode:i,freqHitsValue:l})}`,minWidth:!i&&"P"!==a&&l?s.freqMinWidth:"max-content",maxWidth:mu({sizes:s,frequencyMode:a,isGridMode:i}),textAlign:"rtl"===r?"left":"right",paddingLeft:"rtl"!==r?"8px":0},[`&.${Jd.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${Jd.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{border:"1px solid",borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},[`& .${Jd.barSelected}`]:{"& .bar-filled":{opacity:"30%",background:e.palette.background.lighter}},[`& .${Jd.barWithCheckbox}`]:{left:"rtl"===r?4:29,width:"calc(100% - 33px)"},[`& .${Jd.barSelectedWithCheckbox}`]:{"& .bar-filled":{opacity:"30%",background:h.background||"#BFE5D0",borderColor:h.background||"#BFE5D0"}},[`& .${Jd.excludedTextWithCheckbox}`]:{color:"#828282",fontStyle:"italic"}}})),bu=i.memo(_u);var yu=s(9546);const Cu=["component","direction","spacing","divider","children","className","useFlexGap"],wu=(0,Ht.Z)(),Su=zt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function xu(e){return(0,Vt.Z)({props:e,name:"MuiStack",defaultTheme:wu})}function Lu(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce(((e,o,r)=>(e.push(o),r<n.length-1&&e.push(i.cloneElement(t,{key:`separator-${r}`})),e)),[])}const ku=({ownerState:e,theme:t})=>{let i=(0,Bt.Z)({display:"flex",flexDirection:"column"},(0,xo.k9)({theme:t},(0,xo.P$)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,yu.hB)(t),o=Object.keys(t.breakpoints.values).reduce(((t,i)=>(("object"==typeof e.spacing&&null!=e.spacing[i]||"object"==typeof e.direction&&null!=e.direction[i])&&(t[i]=!0),t)),{}),r=(0,xo.P$)({values:e.direction,base:o}),s=(0,xo.P$)({values:e.spacing,base:o});"object"==typeof r&&Object.keys(r).forEach(((e,t,i)=>{if(!r[e]){const n=t>0?r[i[t-1]]:"column";r[e]=n}}));const a=(t,i)=>{return e.useFlexGap?{gap:(0,yu.NA)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=i?r[i]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,yu.NA)(n,t)}};var o};i=(0,Ti.Z)(i,(0,xo.k9)({theme:t},s,a))}return i=(0,xo.dt)(t.breakpoints,i),i},Eu=function(e={}){const{createStyledComponent:t=Su,useThemeProps:n=xu,componentName:o="MuiStack"}=e,r=t(ku),s=i.forwardRef((function(e,t){const i=Ai(n(e)),{component:s="div",direction:a="column",spacing:l=0,divider:c,children:d,className:u,useFlexGap:h=!1}=i,g=(0,Ft.Z)(i,Cu),p={direction:a,spacing:l,useFlexGap:h},m=(0,Lt.Z)({root:["root"]},(e=>(0,Rt.Z)(o,e)),{});return(0,Tt.jsx)(r,(0,Bt.Z)({as:s,ownerState:p,ref:t,className:(0,xt.Z)(m.root,u)},g,{children:c?Lu(d,c):d}))}));return s}({createStyledComponent:(0,It.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Dt.Z)({props:e,name:"MuiStack"})}),Du=Eu;function Iu(e){return(0,Rt.Z)("MuiFormControlLabel",e)}const Nu=(0,Nt.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Ru=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],qu=(0,It.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${Nu.label}`]:t.label},t.root,t[`labelPlacement${(0,Gt.Z)(i.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,St.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Nu.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},{[`& .${Nu.label}`]:{[`&.${Nu.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Tu=(0,It.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Nu.error}`]:{color:(e.vars||e).palette.error.main}}))),Ou=i.forwardRef((function(e,t){var n,o;const r=(0,Dt.Z)({props:e,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:u,labelPlacement:h="end",required:g,slotProps:p={}}=r,m=(0,wt.Z)(r,Ru),f=Gs(),v=null!=(n=null!=c?c:l.props.disabled)?n:null==f?void 0:f.disabled,_=null!=g?g:l.props.required,b={disabled:v,required:_};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==r[e]&&(b[e]=r[e])}));const y=Ks({props:r,muiFormControl:f,states:["error"]}),C=(0,St.Z)({},r,{disabled:v,labelPlacement:h,required:_,error:y.error}),w=(e=>{const{classes:t,disabled:i,labelPlacement:n,error:o,required:r}=e,s={root:["root",i&&"disabled",`labelPlacement${(0,Gt.Z)(n)}`,o&&"error",r&&"required"],label:["label",i&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,Lt.Z)(s,Iu,t)})(C),S=null!=(o=p.typography)?o:a.typography;let x=u;return null==x||x.type===zo||d||(x=(0,Tt.jsx)(zo,(0,St.Z)({component:"span"},S,{className:(0,xt.Z)(w.label,null==S?void 0:S.className),children:x}))),(0,Tt.jsxs)(qu,(0,St.Z)({className:(0,xt.Z)(w.root,s),ownerState:C,ref:t},m,{children:[i.cloneElement(l,b),_?(0,Tt.jsxs)(Du,{display:"block",children:[x,(0,Tt.jsxs)(Tu,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):x]}))})),Mu=Ou;var Au=s(6262);function Pu(e){return(0,Rt.Z)("PrivateSwitchBase",e)}(0,Nt.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Fu=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Bu=(0,It.ZP)(vo)((({ownerState:e})=>(0,St.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Wu=(0,It.ZP)("input",{shouldForwardProp:It.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Vu=i.forwardRef((function(e,t){const{autoFocus:i,checked:n,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:y,type:C,value:w}=e,S=(0,wt.Z)(e,Fu),[x,L]=(0,Au.Z)({controlled:n,default:Boolean(s),name:"SwitchBase",state:"checked"}),k=Gs();let E=a;k&&void 0===E&&(E=k.disabled);const D="checkbox"===C||"radio"===C,I=(0,St.Z)({},e,{checked:x,disabled:E,disableFocusRipple:l,edge:c}),N=(e=>{const{classes:t,checked:i,disabled:n,edge:o}=e,r={root:["root",i&&"checked",n&&"disabled",o&&`edge${(0,Gt.Z)(o)}`],input:["input"]};return(0,Lt.Z)(r,Pu,t)})(I);return(0,Tt.jsxs)(Bu,(0,St.Z)({component:"span",className:(0,xt.Z)(N.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:I,ref:t},S,{children:[(0,Tt.jsx)(Wu,(0,St.Z)({autoFocus:i,checked:n,defaultChecked:s,className:N.input,disabled:E,id:D?u:void 0,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:I,tabIndex:y,type:C},"checkbox"===C&&void 0===w?{}:{value:w},h)),x?o:d]}))})),zu=Vu,Hu=(0,en.Z)((0,Tt.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"),ju=(0,en.Z)((0,Tt.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"),Uu=(0,en.Z)((0,Tt.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 $u(e){return(0,Rt.Z)("MuiCheckbox",e)}const Zu=(0,Nt.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Gu=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Ku=(0,It.ZP)(zu,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.indeterminate&&t.indeterminate,t[`size${(0,Gt.Z)(i.size)}`],"default"!==i.color&&t[`color${(0,Gt.Z)(i.color)}`]]}})((({theme:e,ownerState:t})=>(0,St.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,In.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&&{[`&.${Zu.checked}, &.${Zu.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Xu=(0,Tt.jsx)(ju,{}),Yu=(0,Tt.jsx)(Hu,{}),Qu=(0,Tt.jsx)(Uu,{}),Ju=i.forwardRef((function(e,t){var n,o;const r=(0,Dt.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=Xu,color:a="primary",icon:l=Yu,indeterminate:c=!1,indeterminateIcon:d=Qu,inputProps:u,size:h="medium",className:g}=r,p=(0,wt.Z)(r,Gu),m=c?d:l,f=c?d:s,v=(0,St.Z)({},r,{color:a,indeterminate:c,size:h}),_=(e=>{const{classes:t,indeterminate:i,color:n,size:o}=e,r={root:["root",i&&"indeterminate",`color${(0,Gt.Z)(n)}`,`size${(0,Gt.Z)(o)}`]},s=(0,Lt.Z)(r,$u,t);return(0,St.Z)({},t,s)})(v);return(0,Tt.jsx)(Ku,(0,St.Z)({type:"checkbox",inputProps:(0,St.Z)({"data-indeterminate":c},u),icon:i.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:h}),checkedIcon:i.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:h}),ownerState:v,ref:t,className:(0,xt.Z)(_.root,g)},p,{classes:_}))})),eh=Ju,th="ListBoxCheckbox",ih={cbIcon:`${th}-cbIcon`,cbIconChecked:`${th}-cbIconChecked`,cbIconExcluded:`${th}-cbIconExcluded`,cbIconAlternative:`${th}-cbIconAlternative`,checkbox:`${th}-checkbox`,dense:`${th}-dense`},nh=(0,It.ZP)(eh,{shouldForwardProp:e=>"styles"!==e})((({styles:e})=>({[`& .${ih.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"},[`& .${ih.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.selections.selected,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:'""'}},[`& .${ih.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${ih.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${ih.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${ih.dense}`]:{padding:"4px 8px"}}))),oh=(e,t=!0,n=!1)=>i.createElement("span",{className:e.cbIcon},n&&i.createElement("span",{className:t&&n?e.cbIconExcluded:""}));function rh({onChange:e,checked:t,label:n,dense:o,excluded:r,styles:s,showGray:a=!0,dataN:l}){return i.createElement(nh,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[ih.checkbox,o&&ih.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":l},name:n,icon:oh(ih,a,r),checkedIcon:i.createElement("span",{className:ih.cbIconChecked}),styles:s})}const sh=(0,en.Z)((0,Tt.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"),ah=(0,en.Z)((0,Tt.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"),lh=(0,It.ZP)("span",{shouldForwardProp:It.FO})({position:"relative",display:"flex"}),ch=(0,It.ZP)(sh)({transform:"scale(1)"}),dh=(0,It.ZP)(ah)((({theme:e,ownerState:t})=>(0,St.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})}))),uh=function(e){const{checked:t=!1,classes:i={},fontSize:n}=e,o=(0,St.Z)({},e,{checked:t});return(0,Tt.jsxs)(lh,{className:i.root,ownerState:o,children:[(0,Tt.jsx)(ch,{fontSize:n,className:i.background,ownerState:o}),(0,Tt.jsx)(dh,{fontSize:n,className:i.dot,ownerState:o})]})};var hh=s(1882);const gh=i.createContext(void 0);function ph(e){return(0,Rt.Z)("MuiRadio",e)}const mh=(0,Nt.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),fh=["checked","checkedIcon","color","icon","name","onChange","size","className"],vh=(0,It.ZP)(zu,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"medium"!==i.size&&t[`size${(0,Gt.Z)(i.size)}`],t[`color${(0,Gt.Z)(i.color)}`]]}})((({theme:e,ownerState:t})=>(0,St.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,In.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&&{[`&.${mh.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${mh.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),_h=(0,Tt.jsx)(uh,{checked:!0}),bh=(0,Tt.jsx)(uh,{}),yh=i.forwardRef((function(e,t){var n,o;const r=(0,Dt.Z)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=_h,color:l="primary",icon:c=bh,name:d,onChange:u,size:h="medium",className:g}=r,p=(0,wt.Z)(r,fh),m=(0,St.Z)({},r,{color:l,size:h}),f=(e=>{const{classes:t,color:i,size:n}=e,o={root:["root",`color${(0,Gt.Z)(i)}`,"medium"!==n&&`size${(0,Gt.Z)(n)}`]};return(0,St.Z)({},t,(0,Lt.Z)(o,ph,t))})(m),v=i.useContext(gh);let _=s;const b=(0,hh.Z)(u,v&&v.onChange);let y=d;var C,w;return v&&(void 0===_&&(C=v.value,_="object"==typeof(w=r.value)&&null!==w?C===w:String(C)===String(w)),void 0===y&&(y=v.name)),(0,Tt.jsx)(vh,(0,St.Z)({type:"radio",icon:i.cloneElement(c,{fontSize:null!=(n=bh.props.fontSize)?n:h}),checkedIcon:i.cloneElement(a,{fontSize:null!=(o=_h.props.fontSize)?o:h}),ownerState:m,classes:f,name:y,checked:_,onChange:b,ref:t,className:(0,xt.Z)(f.root,g)},p))})),Ch=yh,wh="ListBoxRadioButton",Sh={denseRadioButton:`${wh}-denseRadioButton`,radioButton:`${wh}-radioButton`},xh=(0,It.ZP)(Ch)((({theme:e,checked:t})=>({[`&.${Sh.radioButton}`]:{right:"5px",color:t?e.palette.selected.main:e.palette.main}})));function Lh({onChange:e,checked:t,label:n,dense:o,dataN:r}){return i.createElement(xh,{checked:t,onChange:e,value:n,name:n,className:Sh.radioButton,inputProps:{"data-n":r},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}const kh=function({label:e,dense:t,showGray:n=!0,checkboxes:o,cell:r,valueTextAlign:s}){return i.createElement(zo,{component:"span",variant:"body2",className:hu([Jd.labelText,t&&Jd.labelDense,n&&su({cell:r,checkboxes:o})&&Jd.excludedTextWithCheckbox]),align:s,dir:"auto"},i.createElement("span",null,e))},Eh=function({label:e,color:t,dense:n,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}){return"string"==typeof e?i.createElement(kh,{label:e,color:t,dense:n,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}):e},Dh=function({onChange:e,label:t,qElemNumber:n,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:u,styles:h}){const g=i.createElement(rh,{onChange:e,label:t,checked:o,dense:r,excluded:ou(s),isGridCol:a,showGray:l,dataN:n,styles:h}),p=i.createElement(Lh,{onChange:e,label:t,checked:o,dense:r,dataN:n});return i.createElement(Mu,{control:c?p:g,className:Jd.checkboxLabel,label:i.createElement(Eh,{label:t,dense:r,showGray:l,checkboxes:d,cell:s,valueTextAlign:u}),key:n})};function Ih({labels:e,dense:t,showGray:n,checkboxes:o}){const r=e.map((([e,t],n)=>i.createElement("span",{id:n,className:t?Jd.highlighted:""},e)));return i.createElement(kh,{label:r,dense:t,showGray:n,checkboxes:o})}const Nh=function({onChange:e,labels:t,checkboxes:n,dense:o,showGray:r,qElemNumber:s,isSelected:a,cell:l,isGridCol:c,isSingleSelect:d,valueTextAlign:u,styles:h}){const g=i.createElement(Ih,{labels:t,dense:o,showGray:r,checkboxes:n});return n?i.createElement(Dh,{onChange:e,label:g,qElemNumber:s,isSelected:a,dense:o,cell:l,isGridCol:c,showGray:r,isSingleSelect:d,checkboxes:n,valueTextAlign:u,styles:h}):g};function Rh({onChange:e,label:t,qElemNumber:n,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:u,styles:h}){return d?i.createElement(Dh,{onChange:e,label:t,qElemNumber:n,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:u,styles:h}):i.createElement(kh,{label:t,dense:r,showGray:!0,checkboxes:d,cell:s,valueTextAlign:u})}const qh=i.memo(Rh),Th=function({qFrequency:e,histogram:t,checkboxes:n,isSelected:o,frequencyMax:r}){if(!e||!t||"-"===gu(e))return;const s=(({qFrequency:e,frequencyMax:t})=>{const i=String(e),n="%"===i.substring(i.length-1),o=parseFloat(n?i:e);return`${n?o:o/t*100}%`})({qFrequency:e,checkboxes:n,frequencyMax:r});return i.createElement(Vi,{className:hu([Jd.bar,n&&Jd.barWithCheckbox,o&&(n?Jd.barSelectedWithCheckbox:Jd.barSelected)])},i.createElement(Vi,{className:"bar-filled",width:s}))},Oh=function({cell:e,checkboxes:t,dense:n,showGray:o}){const r=gu(e?.qFrequency);return i.createElement(Mo,{item:!0,style:{display:"flex",alignItems:"center"},className:Jd.frequencyCount,"aria-label":r,title:r},i.createElement(zo,{noWrap:!0,color:"inherit",variant:"body2",className:hu([n&&Jd.labelDense,Jd.labelText,o&&su({cell:e,checkboxes:t})&&Jd.excludedTextWithCheckbox])},r))};function Mh({dataLayout:e,layoutOrder:t,itemPadding:i,fillHeight:n}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:n?"100%":`calc(100% - ${i}px)`,width:`calc(100% - ${2*i}px)`,position:"absolute",left:4};default:return{}}}const Ah=(0,It.ZP)(Mo,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((({dataLayout:e,layoutOrder:t,itemPadding:i,cellPaddingRight:n,direction:o,fillHeight:r})=>{const s="padding"+("rtl"===o?"Left":"Right");return{[`&.${Jd.fieldRoot}`]:{...Mh({dataLayout:e,layoutOrder:t,itemPadding:i,fillHeight:r}),[s]:n?"8px":void 0}}})),Ph={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function Fh({layout:e}){const{translator:t}=(0,i.useContext)(cc),{qStateCounts:n={}}=e?.qListObject?.qDimensionInfo||{},o=n.qSelected+n.qSelectedExcluded+n.qLocked+n.qLockedExcluded;let r;switch(o){case 0:r="ScreenReader.ZeroSelected";break;case 1:r="ScreenReader.OneSelected";break;default:r="ScreenReader.ManySelected"}const s=t.get(r,[o]);return i.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},s)}const Bh=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===Bh.ARROW_UP||e===Bh.ARROW_DOWN||e===Bh.ARROW_LEFT||e===Bh.ARROW_RIGHT}),Wh=Bh,Vh=e=>+e.getAttribute("data-n"),zh=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},Hh=e=>{const t=e?.querySelector(".value.last-focused, .value.selector, .value");return t?.setAttribute("tabIndex",0),t?.focus(),t},jh=function({index:e,rowIndex:t,columnIndex:n,style:o,data:r}){const{onChange:s,onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onTouchStart:u,onTouchEnd:h,pages:g,isLocked:p,column:m=!1,checkboxes:f=!1,textAlign:v,direction:_,layoutOptions:b={},freqIsAllowed:y,isSingleSelect:C,actions:w,frequencyMax:S="",histogram:x=!1,keyboard:L,showGray:k=!0,showTick:E=!0,columnCount:D=1,rowCount:I=1,dataOffset:N,deducedFrequencyMode:R,focusListItems:q,listCount:T,sizes:O,translator:M,showSearch:A,isModal:P,contentFontStyle:F,styles:B,fillHeight:W}=r,{dense:V=!1,dataLayout:z="singleColumn",layoutOrder:H}=b,{itemPadding:j}=O;let U,$;const Z={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof n){"row"===H?(U=t*D+n,Z.max=I,Z.currentIndex=t):(U=n*I+t,Z.max=D,Z.currentIndex=n);const e=0;$={...o,height:W?"100%":o.height,left:e+(0===n?o.left:Number(o.left)+n*e),top:0===t?o.top:Number(o.top)+t*e}}else U=e,Z.max=T,Z.currentIndex=e,$={...o};U+=N;const[G,K]=(0,i.useState)(null);(0,i.useEffect)((()=>{null!==G&&(0===Z.currentIndex&&q.first&&(G.focus(),q.setFirst(!1)),Z.currentIndex===Z.max-1&&q.last&&(G.focus(),q.setLast(!1)))}),[G,q.first,q.last]);const X=(0,i.useCallback)(function({select:e,selectAll:t,onCtrlF:i,confirm:n,cancel:o,setScrollPosition:r,focusListItems:s,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:u,columnIndex:h,layoutOrder:g}){const p=(e,t,i=!1)=>{if(e===Wh.ARROW_LEFT||e===Wh.ARROW_RIGHT||"number"!=typeof u||"number"!=typeof h){const e=t?.parentElement[i?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const n=t?.parentElement.parentElement,o=n?.childElementCount;if(o){const i=(({rowIndex:e,columnIndex:t,rowCount:i,columnCount:n,layoutOrder:o,keyCode:r,numCells:s})=>{const a=e=>{let t;return"row"===o?(t=s%n,e<t?i:i-1):(t=s%i,e<n-1?i:t)};let l=e,c=t;if(r===Wh.ARROW_DOWN)if(e>=a(t)-1){if(t===n-1)return-1;l=0,c=t+1}else l=e+1;else if(0===e){if(0===t)return-1;l=a(t-1)-1,c=t-1}else l=e-1;if("row"===o)return l*n+c;const d=s%i;return 0===d||l<d?l*n+c:(l-d)*(n-1)+c+d*n})({rowIndex:u,columnIndex:h,rowCount:c,columnCount:d,layoutOrder:g,keyCode:e,numCells:o}),n=t?.parentElement.parentElement.children[i];return n?.querySelector("[role]")}};let m=!1;const f=e=>{m=e};return c=>{let d;const{currentTarget:u,nativeEvent:h}=c,{keyCode:g,shiftKey:v=!1,ctrlKey:_=!1,metaKey:b=!1}=h;switch(g){case Wh.TAB:{const e=u.closest(".listbox-container"),t=l();if(u.classList.add("last-focused"),v){zh(e)||(t?a.focusSelection():a.blur(!0));break}t?a.focusSelection():(u.blur(),a.blur());break}case Wh.SHIFT:f(!0);break;case Wh.SPACE:e([Vh(u)],!1,c);break;case Wh.ARROW_DOWN:case Wh.ARROW_RIGHT:d=p(g,u,!0),v&&d&&(m&&(e([Vh(u)],!0),f(!1)),e([Vh(d)],!0));break;case Wh.ARROW_UP:case Wh.ARROW_LEFT:d=p(g,u,!1),v&&d&&(m&&(e([Vh(u)],!0),f(!1)),e([Vh(d)],!0));break;case Wh.ENTER:n();break;case Wh.ESCAPE:if(!l())return;o();break;case Wh.HOME:if(s.setFirst(!0),_){r?.("overflowStart");break}r?.("start");break;case Wh.END:if(s.setLast(!0),_){r?.("overflowEnd");break}r?.("end");break;case Wh.A:if(_||b){t();break}return;case Wh.F:if(_||b){i();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:q,keyboard:L,isModal:P,rowCount:I,columnCount:D,rowIndex:t,columnIndex:n,layoutOrder:H}),[w,L?.innerTabStops,I,D,t,n,H]),Y=(0,i.useMemo)((()=>function({pages:e,cellIndex:t}){let i;const n=e.filter((e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight))[0];if(n){const e=n.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([i]=n.qMatrix[t-e.qTop])}return i}({pages:g,cellIndex:U})),[g,U]),Q="S"===Y?.qState||"XS"===Y?.qState||"L"===Y?.qState||"XL"===Y?.qState,J=(0,i.useMemo)((()=>(({column:e,histogram:t,checkboxes:i,cell:n,showGray:o})=>{const r=[e?Jd.column:Jd.row];return t||r.push(Jd.rowBorderBottom),n?(i||("XS"===n.qState?r.push(o?Jd.XS:Jd.S):"S"===n.qState||"L"===n.qState?r.push(Jd.S):o&&ru(n)?r.push(Jd.A):o&&ou(n)&&r.push(Jd.X)),r):[]})({column:m,histogram:x,checkboxes:f,cell:Y,showGray:k})),[Y?.qState,x,V,f]),ee=(0,i.useCallback)((e=>{e.preventDefault()}),[f]),te=(0,i.useMemo)((()=>Y&&function({direction:e,cell:t,textAlign:i}){const n=!["NaN",void 0].includes(t?.qNum);let o;return o=!i||i.auto?n?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:i?.align||"left",["left","center","right"].includes(o)?o:"left"}({direction:_,cell:Y,textAlign:v})),[_,Y,v]);if(!Y)return null;const ie="grid"===z&&"column"===H,ne=Y?.qText??"";let oe;Y.qHighlightRanges?.qRanges?.length&&(oe=function(e,t){if(!t.length)return[];const i=t.reduce(((i,n,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;i.push(...function(e,t,i=0){const{qCharPos:n,qCharCount:o}=t,r=[];return n>i&&r.push([e.slice(i,n),!1]),r.push([e.slice(n,n+o),!0]),r}(e,n,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&i.push([e.slice(a),!1]),i}),[]);return i}(ne,Y.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[]));const re={alignItems:"center",display:"flex",fontSize:"8px"},se="rtl"===_,ae={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:se?8:f?0:void 0,paddingRight:f?0:se?8:0,justifyContent:te},le=0===e,ce=Q&&p,de=!f&&Q&&!p,ue=!f&&E,he=f||!E,ge=function({translator:e,label:t,qState:i,isSelected:n,currentIndex:o,maxIndex:r,showSearch:s}){const a=Ph[i],l=e.get(a),c=[];if(n){const t=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",i=e.get(t);c.push(i)}const d=`${t} ${l}`,u=e.get("CurrentSelections.Of",[o+1,r+1]);return c.unshift(d,u),c.join(". ").trim()}({translator:M,label:ne,qState:Y.qState,currentIndex:Z.currentIndex,maxIndex:Z.max,showSearch:A}),pe=!se&&"right"===te||se&&"left"===te;return i.createElement(bu,{className:Jd.barContainer,checkboxes:f,style:$,styles:B,isGridCol:ie,isGridMode:"grid"===z,dense:V,direction:_,sizes:O,frequencyMode:R,freqHitsValue:pe,contentFontStyle:F,"data-testid":"listbox.item"},i.createElement(Ah,{role:"row","aria-label":ge,"aria-selected":Q,"aria-setsize":Z.max,"aria-rowindex":Z.currentIndex,ref:K,container:!0,dataLayout:z,cellPaddingRight:he,layoutOrder:H,itemPadding:j,gap:0,className:hu(["value",...J]),classes:{root:Jd.fieldRoot},onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:X,onTouchStart:u,onTouchEnd:h,onContextMenu:ee,tabIndex:le&&L.innerTabStops?0:-1,"data-n":Y?.qElemNumber,direction:_,fillHeight:W},Y?.qFrequency&&i.createElement(Th,{qFrequency:Y?.qFrequency,histogram:x,checkboxes:f,isSelected:Q,frequencyMax:S}),i.createElement(Mo,{item:!0,style:ae,className:hu([Jd.cell,Jd.selectedCell]),title:`${ne}`},oe?i.createElement(Nh,{onChange:s,labels:oe,checkboxes:f,dense:V,showGray:k,qElemNumber:Y.qElemNumber,isSelected:Q,cell:Y,isGridCol:ie,isSingleSelect:C,valueTextAlign:te,styles:B}):i.createElement(qh,{onChange:s,label:ne,qElemNumber:Y.qElemNumber,isSelected:Q,dense:V,cell:Y,isGridCol:ie,showGray:k,isSingleSelect:C,checkboxes:f,valueTextAlign:te,styles:B})),y&&i.createElement(Oh,{cell:Y,checkboxes:f,dense:V,showGray:k}),ue&&i.createElement(Mo,{item:!0,className:Jd.icon},ce&&i.createElement(jc,{style:re,size:"small"}),de&&i.createElement(nu,{style:re,size:"small"}))))};var Uh=s(411),$h=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Zh(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!((n=e[i])===(o=t[i])||$h(n)&&$h(o)))return!1;var n,o;return!0}const Gh=function(e,t){var i;void 0===t&&(t=Zh);var n,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&i===this&&t(s,o)||(n=e.apply(this,s),r=!0,i=this,o=s),n}};var Kh="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Xh(e){cancelAnimationFrame(e.id)}function Yh(e,t){var i=Kh(),n={id:requestAnimationFrame((function o(){Kh()-i>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var Qh=-1;function Jh(e){if(void 0===e&&(e=!1),-1===Qh||e){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",document.body.appendChild(t),Qh=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Qh}var eg=null;function tg(e){if(void 0===e&&(e=!1),null===eg||e){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",i.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?eg="positive-descending":(t.scrollLeft=1,eg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),eg}return eg}var ig=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ng(e){var t,n=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 i;return(i=e.call(this,t)||this)._instanceProps=m(i.props,Mn(i)),i._resetIsScrollingTimeoutId=null,i._outerRef=void 0,i.state={instance:Mn(i),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof i.props.initialScrollLeft?i.props.initialScrollLeft:0,scrollTop:"number"==typeof i.props.initialScrollTop?i.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},i._callOnItemsRendered=void 0,i._callOnItemsRendered=Gh((function(e,t,n,o,r,s,a,l){return i.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})})),i._callOnScroll=void 0,i._callOnScroll=Gh((function(e,t,n,o,r){return i.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})})),i._getItemStyle=void 0,i._getItemStyle=function(e,t){var o,r=i.props,a=r.columnWidth,l=r.direction,c=r.rowHeight,d=i._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=n(i.props,t,i._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:h(i.props,e,i._instanceProps),height:u(i.props,e,i._instanceProps),width:s(i.props,t,i._instanceProps)}}return o},i._getItemStyleCache=void 0,i._getItemStyleCache=Gh((function(e,t,i){return{}})),i._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;i.setState((function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=i.props.direction,c=r;if("rtl"===t)switch(tg()){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-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"forward":"backward",scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._outerRefSetter=function(e){var t=i.props.outerRef;i._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},i._resetIsScrollingDebounced=function(){null!==i._resetIsScrollingTimeoutId&&Xh(i._resetIsScrollingTimeoutId),i._resetIsScrollingTimeoutId=Yh(i._resetIsScrolling,150)},i._resetIsScrolling=function(){i._resetIsScrollingTimeoutId=null,i.setState({isScrolling:!1},(function(){i._getItemStyleCache(-1)}))},i}Pn(t,e),t.getDerivedStateFromProps=function(e,t){return og(e,t),v(e),null};var _=t.prototype;return _.scrollTo=function(e){var t=e.scrollLeft,i=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==i&&(i=Math.max(0,i)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===i&&(i=e.scrollTop),e.scrollLeft===t&&e.scrollTop===i?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:i,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<i?"forward":"backward"}}),this._resetIsScrollingDebounced)},_.scrollToItem=function(e){var t=e.align,i=void 0===t?"auto":t,n=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=Jh();void 0!==n&&(n=Math.max(0,Math.min(n,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,y=_>u?v:0;this.scrollTo({scrollLeft:void 0!==n?c(this.props,n,i,m,this._instanceProps,y):m,scrollTop:void 0!==o?d(this.props,o,i,f,this._instanceProps,b):f})},_.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,i=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof i&&(n.scrollTop=i)}this._callPropsCallbacks()},_.componentDidUpdate=function(){var e=this.props.direction,t=this.state,i=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(tg()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-i}else o.scrollLeft=Math.max(0,i);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Xh(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,t=e.children,n=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?ig:g,m=e.outerElementType,f=e.outerTagName,v=e.rowCount,_=e.style,b=e.useIsScrolling,y=e.width,C=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],x=w[1],L=this._getVerticalRangeToRender(),k=L[0],E=L[1],D=[];if(o>0&&v)for(var I=k;I<=E;I++)for(var N=S;N<=x;N++)D.push((0,i.createElement)(t,{columnIndex:N,data:h,isScrolling:b?C:void 0,key:p({columnIndex:N,data:h,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,N)}));var R=a(this.props,this._instanceProps),q=l(this.props,this._instanceProps);return(0,i.createElement)(m||f||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:On({position:"relative",height:s,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},_)},(0,i.createElement)(d||u||"div",{children:D,ref:c,style:{height:R,pointerEvents:C?"none":void 0,width:q}}))},_._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,i=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof i&&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 n){var m=this.state,f=m.horizontalScrollDirection,v=m.scrollLeft,_=m.scrollTop,b=m.scrollUpdateWasRequested,y=m.verticalScrollDirection;this._callOnScroll(v,_,f,y,b)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,i=e.overscanColumnCount,n=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,u=l.scrollLeft,h=i||n||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,i=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=n||o||i||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}(i.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var og=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},rg=function(e,t){return e};function sg(e){var t,n=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 i;return(i=e.call(this,t)||this)._instanceProps=c(i.props,Mn(i)),i._outerRef=void 0,i._resetIsScrollingTimeoutId=null,i.state={instance:Mn(i),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof i.props.initialScrollOffset?i.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},i._callOnItemsRendered=void 0,i._callOnItemsRendered=Gh((function(e,t,n,o){return i.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),i._callOnScroll=void 0,i._callOnScroll=Gh((function(e,t,n){return i.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),i._getItemStyle=void 0,i._getItemStyle=function(e){var t,o=i.props,s=o.direction,a=o.itemSize,l=o.layout,c=i._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var u=n(i.props,e,i._instanceProps),h=r(i.props,e,i._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},i._getItemStyleCache=void 0,i._getItemStyleCache=Gh((function(e,t,i){return{}})),i._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;i.setState((function(e){if(e.scrollOffset===o)return null;var t=i.props.direction,s=o;if("rtl"===t)switch(tg()){case"negative":s=-o;break;case"positive-descending":s=r-n-o}return s=Math.max(0,Math.min(s,r-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<s?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;i.setState((function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._outerRefSetter=function(e){var t=i.props.outerRef;i._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},i._resetIsScrollingDebounced=function(){null!==i._resetIsScrollingTimeoutId&&Xh(i._resetIsScrollingTimeoutId),i._resetIsScrollingTimeoutId=Yh(i._resetIsScrolling,150)},i._resetIsScrolling=function(){i._resetIsScrollingTimeoutId=null,i.setState({isScrolling:!1},(function(){i._getItemStyleCache(-1,null)}))},i}Pn(t,e),t.getDerivedStateFromProps=function(e,t){return ag(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 i=this.props,n=i.itemCount,o=i.layout,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?Jh():0:l.scrollHeight>l.clientHeight?Jh():0}this.scrollTo(s(this.props,e,t,r,this._instanceProps,a))},h.componentDidMount=function(){var e=this.props,t=e.direction,i=e.initialScrollOffset,n=e.layout;if("number"==typeof i&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=i:o.scrollTop=i}this._callPropsCallbacks()},h.componentDidUpdate=function(){var e=this.props,t=e.direction,i=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===i)if("rtl"===t)switch(tg()){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&&Xh(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,n=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?rg:h,p=e.layout,m=e.outerElementType,f=e.outerTagName,v=e.style,_=e.useIsScrolling,b=e.width,y=this.state.isScrolling,C="horizontal"===r||"horizontal"===p,w=C?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,i.createElement)(t,{data:u,key:g(E,u),index:E,isScrolling:_?y:void 0,style:this._getItemStyle(E)}));var D=o(this.props,this._instanceProps);return(0,i.createElement)(m||f||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:On({position:"relative",height:s,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},v)},(0,i.createElement)(l||c||"div",{children:k,ref:a,style:{height:C?"100%":D,pointerEvents:y?"none":void 0,width:C?D:"100%"}}))},h._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],i=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,i,n,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,i=e.overscanCount,n=this.state,o=n.isScrolling,r=n.scrollDirection,s=n.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,i),h=o&&"forward"!==r?1:Math.max(1,i);return[Math.max(0,c-u),Math.max(0,Math.min(t-1,d+h)),c,d]},t}(i.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ag=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},lg=ng({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,i,n,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"===i&&(i=n>=u-l&&n<=d+l?"auto":"center"),i){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 n>=u&&n<=d?n:u>d||n<u?u:d}},getOffsetForRowAndAlignment:function(e,t,i,n,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"===i&&(i=n>=u-a&&n<=d+a?"auto":"center"),i){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 n>=u&&n<=d?n:u>d||n<u?u:d}},getColumnStartIndexForOffset:function(e,t){var i=e.columnWidth,n=e.columnCount;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getColumnStopIndexForStartIndex:function(e,t,i){var n=e.columnWidth,o=e.columnCount,r=e.width,s=t*n,a=Math.ceil((r+i-s)/n);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var i=e.rowHeight,n=e.rowCount;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getRowStopIndexForStartIndex:function(e,t,i){var n=e.rowHeight,o=e.rowCount,r=e.height,s=t*n,a=Math.ceil((r+i-s)/n);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),cg=sg({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,i,n,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"===i&&(i=n>=m-h&&n<=p+h?"auto":"center"),i){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 n>=m&&n<=p?n:n<m?m:p}},getStartIndexForOffset:function(e,t){var i=e.itemCount,n=e.itemSize;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getStopIndexForStartIndex:function(e,t,i){var n=e.direction,o=e.height,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===n||"horizontal"===a?l:o,u=Math.ceil((d+i-c)/s);return Math.max(0,Math.min(r-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const dg="#BBB",ug="#f1f1f1",hg={styledScrollbars:"ListBox-styledScrollbars"},gg=(e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,pg=(e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,mg=(e,t,i,n)=>e===t*i+n+i;function fg({renderProps:e,layoutOptions:t,maxCount:i,columnCount:n,rowCount:o,overflowDisclaimer:r,qCardinal:s,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=gg(e,l),d=l?i.column:i.row,u=(l?n:o)>=d,h=mg(s,c,l?o:n,a),g=!!a&&pg(e,l),p=u&&!h&&c>=d-1||g||r.state.show;r.set(p)}function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},vg.apply(this,arguments)}const{StyledFixedSizeList:_g,StyledFixedSizeGrid:bg}=function(){const e=e=>({scrollbarColor:`${dg} ${ug}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:ug},"&::-webkit-scrollbar-thumb":{backgroundColor:dg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:(0,Uh.Z)(cg,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${hg.styledScrollbars}`]:e(t)}))),StyledFixedSizeGrid:(0,Uh.Z)(lg,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${hg.styledScrollbars}`]:e(t)})))}}(),yg=e=>{const t=(0,i.useMemo)((()=>"text"in e?e:{}),[e]);return(0,i.useMemo)((()=>((e,t)=>{const i=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(i.font=t,Array.isArray(e))return Math.max(...e.map((e=>i.measureText(e).width)));const n=i.measureText(e);return Math.ceil(n.width||0)})(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Cg(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function wg({isGridMode:e,dense:t}){let i=t?du:e?lu:cu;return e&&(i+=uu),i}const Sg=function({layout:e,width:t,height:i,listCount:n,count:o,freqIsAllowed:r,checkboxes:s,styles:a}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:d={},maxVisibleColumns:u,dense:h,dataLayout:g}=l,{fontSize:p="12px",fontFamily:m="Source sans pro"}=a?.content||{},f=`${p} ${m}`,v=yg({text:Cg(e),font:f}),_=yg({text:Cg(5),font:f}),b=yg({text:Cg(8),font:f}),y=r?_:0,C=s?20:0;let w=56+y+C;!s&&w>=au&&(w+=20);let S,x,L,k,E=v+18+y+C;!s&&E>=au&&(E+=20),E=Math.min(150,Math.max(E,w));const D=wg({isGridMode:"grid"===g,dense:h}),I=i??8*D;if(c){let e=t;"row"===c?(S={overflowX:"hidden"},e+=2*uu,({rowCount:k,columnWidth:L,columnCount:x}=function({maxVisibleColumns:e,listCount:t,containerWidth:i,columnAutoWidth:n,itemMinWidth:o}){const r=e?.maxColumns||3,s=i-10;let a;const l=Math.min(t,Math.max(1,Math.round(s/Math.max(o,n))));a=!1!==e?.auto?l:Math.min(t,r,l),a=Math.max(a,1);const c=s/a;return{rowCount:Math.ceil(t/a),columnWidth:c,columnCount:a}}({maxVisibleColumns:u,listCount:n,containerWidth:e,columnAutoWidth:E,itemMinWidth:w}))):(S={overflowY:"hidden"},({rowCount:k,columnWidth:L,columnCount:x}=function({maxVisibleRows:e,itemHeight:t,listCount:i,listHeight:n,columnAutoWidth:o,containerWidth:r,itemMinWidth:s}){let a;const l=e?.maxRows||3,c=Math.floor(n/t);a=!1!==e.auto?c:Math.min(i,l,c),a=Math.max(a,1);const d=Math.ceil(i/a);return{columnWidth:Math.max(o,r/d,s),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:D,listCount:n,listHeight:I,columnAutoWidth:E,containerWidth:e,itemMinWidth:w})))}x=("singleColumn"===g?1:x)||1,k=("singleColumn"===g?o:k)||n;const N=l.dense?838e3:577e3;k=Math.min(k,N);const R=Math.floor(3355e4/L);x=Math.min(x,R)||1;const q=k*x;return{columnCount:x,columnWidth:L,rowCount:k,overflowStyling:S,itemHeight:D,listHeight:I,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(n,q),maxCount:{row:N,column:R},itemPadding:uu,textWidth:v,freqMinWidth:_,freqMaxWidth:b}},xg=({pages:e=[],minimumBatchSize:t,count:i})=>{const n=e.some((e=>e.qArea.qHeight<t)),o=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return n?o:i},[Lg,kg]=dc({});function Eg(e){const t=`${e.id}`,[i]=Lg();return{setStoreValue:(e,n)=>i.set(`${t}/${e}`,n),getStoreValue:e=>i.get(`${t}/${e}`)}}function Dg(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ig(e){return e instanceof Dg(e).Element||e instanceof Element}function Ng(e){return e instanceof Dg(e).HTMLElement||e instanceof HTMLElement}function Rg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Dg(e).ShadowRoot||e instanceof ShadowRoot)}var qg=Math.max,Tg=Math.min,Og=Math.round;function Mg(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ag(){return!/^((?!chrome|android).)*safari/i.test(Mg())}function Pg(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),o=1,r=1;t&&Ng(e)&&(o=e.offsetWidth>0&&Og(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Og(n.height)/e.offsetHeight||1);var s=(Ig(e)?Dg(e):window).visualViewport,a=!Ag()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/o,c=(n.top+(a&&s?s.offsetTop:0))/r,d=n.width/o,u=n.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Fg(e){var t=Dg(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Bg(e){return e?(e.nodeName||"").toLowerCase():null}function Wg(e){return((Ig(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vg(e){return Pg(Wg(e)).left+Fg(e).scrollLeft}function zg(e){return Dg(e).getComputedStyle(e)}function Hg(e){var t=zg(e),i=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function jg(e,t,i){void 0===i&&(i=!1);var n,o,r=Ng(t),s=Ng(t)&&function(e){var t=e.getBoundingClientRect(),i=Og(t.width)/e.offsetWidth||1,n=Og(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=Wg(t),l=Pg(e,s,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!i)&&(("body"!==Bg(t)||Hg(a))&&(c=(n=t)!==Dg(n)&&Ng(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Fg(n)),Ng(t)?((d=Pg(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Vg(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Ug(e){var t=Pg(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function $g(e){return"html"===Bg(e)?e:e.assignedSlot||e.parentNode||(Rg(e)?e.host:null)||Wg(e)}function Zg(e){return["html","body","#document"].indexOf(Bg(e))>=0?e.ownerDocument.body:Ng(e)&&Hg(e)?e:Zg($g(e))}function Gg(e,t){var i;void 0===t&&(t=[]);var n=Zg(e),o=n===(null==(i=e.ownerDocument)?void 0:i.body),r=Dg(n),s=o?[r].concat(r.visualViewport||[],Hg(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(Gg($g(s)))}function Kg(e){return["table","td","th"].indexOf(Bg(e))>=0}function Xg(e){return Ng(e)&&"fixed"!==zg(e).position?e.offsetParent:null}function Yg(e){for(var t=Dg(e),i=Xg(e);i&&Kg(i)&&"static"===zg(i).position;)i=Xg(i);return i&&("html"===Bg(i)||"body"===Bg(i)&&"static"===zg(i).position)?t:i||function(e){var t=/firefox/i.test(Mg());if(/Trident/i.test(Mg())&&Ng(e)&&"fixed"===zg(e).position)return null;var i=$g(e);for(Rg(i)&&(i=i.host);Ng(i)&&["html","body"].indexOf(Bg(i))<0;){var n=zg(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var Qg="top",Jg="bottom",ep="right",tp="left",ip="auto",np=[Qg,Jg,ep,tp],op="start",rp="end",sp="viewport",ap="popper",lp=np.reduce((function(e,t){return e.concat([t+"-"+op,t+"-"+rp])}),[]),cp=[].concat(np,[ip]).reduce((function(e,t){return e.concat([t,t+"-"+op,t+"-"+rp])}),[]),dp=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function up(e){var t=new Map,i=new Set,n=[];function o(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||o(e)})),n}var hp={placement:"bottom",modifiers:[],strategy:"absolute"};function gp(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function pp(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,o=t.defaultOptions,r=void 0===o?hp:o;return function(e,t,i){void 0===i&&(i=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},hp,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var o="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:Ig(e)?Gg(e):e.contextElement?Gg(e.contextElement):[],popper:Gg(t)};var s,c,h=function(e){var t=up(e);return dp.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((s=[].concat(n,a.options.modifiers),c=s.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.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,i=e.options,n=void 0===i?{}:i,o=e.effect;if("function"==typeof o){var r=o({state:a,name:t,instance:d,options:n});l.push(r||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(gp(t,i)){a.rects={reference:jg(t,Yg(i),"fixed"===a.options.strategy),popper:Ug(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var o=a.orderedModifiers[n],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,n=-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(!gp(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),d}}var mp={passive:!0};function fp(e){return e.split("-")[0]}function vp(e){return e.split("-")[1]}function _p(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bp(e){var t,i=e.reference,n=e.element,o=e.placement,r=o?fp(o):null,s=o?vp(o):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case Qg:t={x:a,y:i.y-n.height};break;case Jg:t={x:a,y:i.y+i.height};break;case ep:t={x:i.x+i.width,y:l};break;case tp:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?_p(r):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case op:t[c]=t[c]-(i[d]/2-n[d]/2);break;case rp:t[c]=t[c]+(i[d]/2-n[d]/2)}}return t}var yp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cp(e){var t,i=e.popper,n=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=tp,y=Qg,C=window;if(c){var w=Yg(i),S="clientHeight",x="clientWidth";w===Dg(i)&&"static"!==zg(w=Wg(i)).position&&"absolute"===a&&(S="scrollHeight",x="scrollWidth"),(o===Qg||(o===tp||o===ep)&&r===rp)&&(y=Jg,m-=(u&&w===C&&C.visualViewport?C.visualViewport.height:w[S])-n.height,m*=l?1:-1),o!==tp&&(o!==Qg&&o!==Jg||r!==rp)||(b=ep,g-=(u&&w===C&&C.visualViewport?C.visualViewport.width:w[x])-n.width,g*=l?1:-1)}var L,k=Object.assign({position:a},c&&yp),E=!0===d?function(e,t){var i=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Og(i*o)/o||0,y:Og(n*o)/o||0}}({x:g,y:m},Dg(i)):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},k,((L={})[y]=_?"0":"",L[b]=v?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L)):Object.assign({},k,((t={})[y]=_?m+"px":"",t[b]=v?g+"px":"",t.transform="",t))}const wp={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Ng(o)&&Bg(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});Ng(n)&&Bg(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Sp={left:"right",right:"left",bottom:"top",top:"bottom"};function xp(e){return e.replace(/left|right|bottom|top/g,(function(e){return Sp[e]}))}var Lp={start:"end",end:"start"};function kp(e){return e.replace(/start|end/g,(function(e){return Lp[e]}))}function Ep(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Rg(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Dp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ip(e,t,i){return t===sp?Dp(function(e,t){var i=Dg(e),n=Wg(e),o=i.visualViewport,r=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=Ag();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+Vg(e),y:l}}(e,i)):Ig(t)?function(e,t){var i=Pg(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):Dp(function(e){var t,i=Wg(e),n=Fg(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=qg(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=qg(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Vg(e),l=-n.scrollTop;return"rtl"===zg(o||i).direction&&(a+=qg(i.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(Wg(e)))}function Np(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Rp(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function qp(e,t){void 0===t&&(t={});var i=t,n=i.placement,o=void 0===n?e.placement:n,r=i.strategy,s=void 0===r?e.strategy:r,a=i.boundary,l=void 0===a?"clippingParents":a,c=i.rootBoundary,d=void 0===c?sp:c,u=i.elementContext,h=void 0===u?ap:u,g=i.altBoundary,p=void 0!==g&&g,m=i.padding,f=void 0===m?0:m,v=Np("number"!=typeof f?f:Rp(f,np)),_=h===ap?"reference":ap,b=e.rects.popper,y=e.elements[p?_:h],C=function(e,t,i,n){var o="clippingParents"===t?function(e){var t=Gg($g(e)),i=["absolute","fixed"].indexOf(zg(e).position)>=0&&Ng(e)?Yg(e):e;return Ig(i)?t.filter((function(e){return Ig(e)&&Ep(e,i)&&"body"!==Bg(e)})):[]}(e):[].concat(t),r=[].concat(o,[i]),s=r[0],a=r.reduce((function(t,i){var o=Ip(e,i,n);return t.top=qg(o.top,t.top),t.right=Tg(o.right,t.right),t.bottom=Tg(o.bottom,t.bottom),t.left=qg(o.left,t.left),t}),Ip(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Ig(y)?y:y.contextElement||Wg(e.elements.popper),l,d,s),w=Pg(e.elements.reference),S=bp({reference:w,element:b,strategy:"absolute",placement:o}),x=Dp(Object.assign({},b,S)),L=h===ap?x:w,k={top:C.top-L.top+v.top,bottom:L.bottom-C.bottom+v.bottom,left:C.left-L.left+v.left,right:L.right-C.right+v.right},E=e.modifiersData.offset;if(h===ap&&E){var D=E[o];Object.keys(k).forEach((function(e){var t=[ep,Jg].indexOf(e)>=0?1:-1,i=[Qg,Jg].indexOf(e)>=0?"y":"x";k[e]+=D[i]*t}))}return k}function Tp(e,t,i){return qg(e,Tg(t,i))}function Op(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Mp(e){return[Qg,ep,Jg,tp].some((function(t){return e[t]>=0}))}var Ap=pp({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,o=n.scroll,r=void 0===o||o,s=n.resize,a=void 0===s||s,l=Dg(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",i.update,mp)})),a&&l.addEventListener("resize",i.update,mp),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",i.update,mp)})),a&&l.removeEventListener("resize",i.update,mp)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=bp({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,i=e.options,n=i.gpuAcceleration,o=void 0===n||n,r=i.adaptive,s=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:fp(t.placement),variation:vp(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,Cp(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,Cp(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:{}},wp,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.offset,r=void 0===o?[0,0]:o,s=cp.reduce((function(e,i){return e[i]=function(e,t,i){var n=fp(e),o=[tp,Qg].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[tp,ep].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}(i,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[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=i.mainAxis,r=void 0===o||o,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,c=i.padding,d=i.boundary,u=i.rootBoundary,h=i.altBoundary,g=i.flipVariations,p=void 0===g||g,m=i.allowedAutoPlacements,f=t.options.placement,v=fp(f),_=l||(v!==f&&p?function(e){if(fp(e)===ip)return[];var t=xp(e);return[kp(e),t,kp(t)]}(f):[xp(f)]),b=[f].concat(_).reduce((function(e,i){return e.concat(fp(i)===ip?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,o=i.boundary,r=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?cp:l,d=vp(n),u=d?a?lp:lp.filter((function(e){return vp(e)===d})):np,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var g=h.reduce((function(t,i){return t[i]=qp(e,{placement:i,boundary:o,rootBoundary:r,padding:s})[fp(i)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:i,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=t.rects.reference,C=t.rects.popper,w=new Map,S=!0,x=b[0],L=0;L<b.length;L++){var k=b[L],E=fp(k),D=vp(k)===op,I=[Qg,Jg].indexOf(E)>=0,N=I?"width":"height",R=qp(t,{placement:k,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),q=I?D?ep:tp:D?Jg:Qg;y[N]>C[N]&&(q=xp(q));var T=xp(q),O=[];if(r&&O.push(R[E]<=0),a&&O.push(R[q]<=0,R[T]<=0),O.every((function(e){return e}))){x=k,S=!1;break}w.set(k,O)}if(S)for(var M=function(e){var t=b.find((function(t){var i=w.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},A=p?3:1;A>0&&"break"!==M(A);A--);t.placement!==x&&(t.modifiersData[n]._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,i=e.options,n=e.name,o=i.mainAxis,r=void 0===o||o,s=i.altAxis,a=void 0!==s&&s,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,u=i.padding,h=i.tether,g=void 0===h||h,p=i.tetherOffset,m=void 0===p?0:p,f=qp(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=fp(t.placement),_=vp(t.placement),b=!_,y=_p(v),C="x"===y?"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,D={x:0,y:0};if(w){if(r){var I,N="y"===y?Qg:tp,R="y"===y?Jg:ep,q="y"===y?"height":"width",T=w[y],O=T+f[N],M=T-f[R],A=g?-x[q]/2:0,P=_===op?S[q]:x[q],F=_===op?-x[q]:-S[q],B=t.elements.arrow,W=g&&B?Ug(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[N],H=V[R],j=Tp(0,S[q],W[q]),U=b?S[q]/2-A-j-z-k.mainAxis:P-j-z-k.mainAxis,$=b?-S[q]/2+A+j+H+k.mainAxis:F+j+H+k.mainAxis,Z=t.elements.arrow&&Yg(t.elements.arrow),G=Z?"y"===y?Z.clientTop||0:Z.clientLeft||0:0,K=null!=(I=null==E?void 0:E[y])?I:0,X=T+$-K,Y=Tp(g?Tg(O,T+U-K-G):O,T,g?qg(M,X):M);w[y]=Y,D[y]=Y-T}if(a){var Q,J="x"===y?Qg:tp,ee="x"===y?Jg:ep,te=w[C],ie="y"===C?"height":"width",ne=te+f[J],oe=te-f[ee],re=-1!==[Qg,tp].indexOf(v),se=null!=(Q=null==E?void 0:E[C])?Q:0,ae=re?ne:te-S[ie]-x[ie]-se+k.altAxis,le=re?te+S[ie]+x[ie]-se-k.altAxis:oe,ce=g&&re?function(e,t,i){var n=Tp(e,t,i);return n>i?i:n}(ae,te,le):Tp(g?ae:ne,te,g?le:oe);w[C]=ce,D[C]=ce-te}t.modifiersData[n]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,o=e.options,r=i.elements.arrow,s=i.modifiersData.popperOffsets,a=fp(i.placement),l=_p(a),c=[tp,ep].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return Np("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Rp(e,np))}(o.padding,i),u=Ug(r),h="y"===l?Qg:tp,g="y"===l?Jg:ep,p=i.rects.reference[c]+i.rects.reference[l]-s[l]-i.rects.popper[c],m=s[l]-i.rects.reference[l],f=Yg(r),v=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,_=p/2-m/2,b=d[h],y=v-u[c]-d[g],C=v/2-u[c]/2+_,w=Tp(b,C,y),S=l;i.modifiersData[n]=((t={})[S]=w,t.centerOffset=w-C,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Ep(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=qp(t,{elementContext:"reference"}),a=qp(t,{altBoundary:!0}),l=Op(s,n),c=Op(a,o,r),d=Mp(l),u=Mp(c);t.modifiersData[i]={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 Pp(e){return(0,Rt.Z)("MuiPopper",e)}(0,Nt.Z)("MuiPopper",["root"]);const Fp={disableDefaultClasses:!1},Bp=i.createContext(Fp),Wp=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Vp=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function zp(e){return"function"==typeof e?e():e}const Hp={},jp=i.forwardRef((function(e,t){var n;const{anchorEl:o,children:r,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:h,slotProps:g={},slots:p={},TransitionProps:m}=e,f=Jr(e,Wp),v=i.useRef(null),_=(0,es.Z)(v,t),b=i.useRef(null),y=(0,es.Z)(b,h),C=i.useRef(y);(0,ia.Z)((()=>{C.current=y}),[y]),i.useImperativeHandle(h,(()=>b.current),[]);const w=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}}(d,s),[S,x]=i.useState(w),[L,k]=i.useState(zp(o));i.useEffect((()=>{b.current&&b.current.forceUpdate()})),i.useEffect((()=>{o&&k(zp(o))}),[o]),(0,ia.Z)((()=>{if(!L||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{x(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Ap(L,v.current,Qr({placement:w},u,{modifiers:e}));return C.current(t),()=>{t.destroy(),C.current(null)}}),[L,a,l,c,u,w]);const E={placement:S};null!==m&&(E.TransitionProps=m);const D=(0,Lt.Z)({root:["root"]},function(e){const{disableDefaultClasses:t}=i.useContext(Bp);return i=>t?"":e(i)}(Pp)),I=null!=(n=p.root)?n:"div",N=rs({elementType:I,externalSlotProps:g.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:_},ownerState:e,className:D.root});return(0,Tt.jsx)(I,Qr({},N,{children:"function"==typeof r?r(E):r}))})),Up=i.forwardRef((function(e,t){const{anchorEl:n,children:o,container:r,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:u="bottom",popperOptions:h=Hp,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:v={}}=e,_=Jr(e,Vp),[b,y]=i.useState(!0);if(!l&&!d&&(!m||b))return null;let C;if(r)C=r;else if(n){const e=zp(n);C=e&&void 0!==e.nodeType?(0,Qc.Z)(e).body:(0,Qc.Z)(null).body}const w=d||!l||m&&!b?void 0:"none",S=m?{in:d,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return(0,Tt.jsx)(hd,{disablePortal:a,container:C,children:(0,Tt.jsx)(jp,Qr({anchorEl:n,direction:s,disablePortal:a,modifiers:c,ref:t,open:m?!b:d,placement:u,popperOptions:h,popperRef:g,slotProps:f,slots:v},_,{style:Qr({position:"fixed",top:0,left:0,display:w},p),TransitionProps:S,children:o}))})})),$p=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Zp=(0,It.ZP)(Up,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gp=i.forwardRef((function(e,t){var i;const n=(0,ai.Z)(),o=(0,Dt.Z)({props:e,name:"MuiPopper"}),{anchorEl:r,component:s,components:a,componentsProps:l,container:c,disablePortal:d,keepMounted:u,modifiers:h,open:g,placement:p,popperOptions:m,popperRef:f,transition:v,slots:_,slotProps:b}=o,y=(0,wt.Z)(o,$p),C=null!=(i=null==_?void 0:_.root)?i:null==a?void 0:a.Root,w=(0,St.Z)({anchorEl:r,container:c,disablePortal:d,keepMounted:u,modifiers:h,open:g,placement:p,popperOptions:m,popperRef:f,transition:v},y);return(0,Tt.jsx)(Zp,(0,St.Z)({as:s,direction:null==n?void 0:n.direction,slots:{root:C},slotProps:null!=b?b:l},w,{ref:t}))}));var Kp=s(9673);function Xp(e){return(0,Rt.Z)("MuiTooltip",e)}const Yp=(0,Nt.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Qp=["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"],Jp=(0,It.ZP)(Gp,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.popper,!i.disableInteractive&&t.popperInteractive,i.arrow&&t.popperArrow,!i.open&&t.popperClose]}})((({theme:e,ownerState:t,open:i})=>(0,St.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Yp.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Yp.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Yp.arrow}`]:(0,St.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"] .${Yp.arrow}`]:(0,St.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),em=(0,It.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.tooltip,i.touch&&t.touch,i.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Gt.Z)(i.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,St.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,In.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},{[`.${Yp.popper}[data-popper-placement*="left"] &`]:(0,St.Z)({transformOrigin:"right center"},t.isRtl?(0,St.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,St.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Yp.popper}[data-popper-placement*="right"] &`]:(0,St.Z)({transformOrigin:"left center"},t.isRtl?(0,St.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,St.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Yp.popper}[data-popper-placement*="top"] &`]:(0,St.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Yp.popper}[data-popper-placement*="bottom"] &`]:(0,St.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),tm=(0,It.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,In.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let im=!1,nm=null,om={x:0,y:0};function rm(e,t){return i=>{t&&t(i),e(i)}}const sm=i.forwardRef((function(e,t){var n,o,r,s,a,l,c,d,u,h,g,p,m,f,v,_,b,y,C;const w=(0,Dt.Z)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:x,components:L={},componentsProps:k={},describeChild:E=!1,disableFocusListener:D=!1,disableHoverListener:I=!1,disableInteractive:N=!1,disableTouchListener:R=!1,enterDelay:q=100,enterNextDelay:T=0,enterTouchDelay:O=700,followCursor:M=!1,id:A,leaveDelay:P=0,leaveTouchDelay:F=1500,onClose:B,onOpen:W,open:V,placement:z="bottom",PopperComponent:H,PopperProps:j={},slotProps:U={},slots:$={},title:Z,TransitionComponent:G=Yc,TransitionProps:K}=w,X=(0,wt.Z)(w,Qp),Y=i.isValidElement(x)?x:(0,Tt.jsx)("span",{children:x}),Q=ei(),J="rtl"===Q.direction,[ee,te]=i.useState(),[ie,ne]=i.useState(null),oe=i.useRef(!1),re=N||M,se=i.useRef(),ae=i.useRef(),le=i.useRef(),ce=i.useRef(),[de,ue]=(0,Au.Z)({controlled:V,default:!1,name:"Tooltip",state:"open"});let he=de;const ge=(0,Kp.Z)(A),pe=i.useRef(),me=i.useCallback((()=>{void 0!==pe.current&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),clearTimeout(ce.current)}),[]);i.useEffect((()=>()=>{clearTimeout(se.current),clearTimeout(ae.current),clearTimeout(le.current),me()}),[me]);const fe=e=>{clearTimeout(nm),im=!0,ue(!0),W&&!he&&W(e)},ve=(0,Rn.Z)((e=>{clearTimeout(nm),nm=setTimeout((()=>{im=!1}),800+P),ue(!1),B&&he&&B(e),clearTimeout(se.current),se.current=setTimeout((()=>{oe.current=!1}),Q.transitions.duration.shortest)})),_e=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(le.current),q||im&&T?ae.current=setTimeout((()=>{fe(e)}),im?T:q):fe(e))},be=e=>{clearTimeout(ae.current),clearTimeout(le.current),le.current=setTimeout((()=>{ve(e)}),P)},{isFocusVisibleRef:ye,onBlur:Ce,onFocus:we,ref:Se}=(0,qn.Z)(),[,xe]=i.useState(!1),Le=e=>{Ce(e),!1===ye.current&&(xe(!1),be(e))},ke=e=>{ee||te(e.currentTarget),we(e),!0===ye.current&&(xe(!0),_e(e))},Ee=e=>{oe.current=!0;const t=Y.props;t.onTouchStart&&t.onTouchStart(e)},De=_e,Ie=be;i.useEffect((()=>{if(he)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,he]);const Ne=(0,Nn.Z)(Y.ref,Se,te,t);Z||0===Z||(he=!1);const Re=i.useRef(),qe={},Te="string"==typeof Z;E?(qe.title=he||!Te||I?null:Z,qe["aria-describedby"]=he?ge:null):(qe["aria-label"]=Te?Z:null,qe["aria-labelledby"]=he&&!Te?ge:null);const Oe=(0,St.Z)({},qe,X,Y.props,{className:(0,xt.Z)(X.className,Y.props.className),onTouchStart:Ee,ref:Ne},M?{onMouseMove:e=>{const t=Y.props;t.onMouseMove&&t.onMouseMove(e),om={x:e.clientX,y:e.clientY},Re.current&&Re.current.update()}}:{}),Me={};R||(Oe.onTouchStart=e=>{Ee(e),clearTimeout(le.current),clearTimeout(se.current),me(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.current=setTimeout((()=>{document.body.style.WebkitUserSelect=pe.current,_e(e)}),O)},Oe.onTouchEnd=e=>{Y.props.onTouchEnd&&Y.props.onTouchEnd(e),me(),clearTimeout(le.current),le.current=setTimeout((()=>{ve(e)}),F)}),I||(Oe.onMouseOver=rm(De,Oe.onMouseOver),Oe.onMouseLeave=rm(Ie,Oe.onMouseLeave),re||(Me.onMouseOver=De,Me.onMouseLeave=Ie)),D||(Oe.onFocus=rm(ke,Oe.onFocus),Oe.onBlur=rm(Le,Oe.onBlur),re||(Me.onFocus=ke,Me.onBlur=Le));const Ae=i.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ie),options:{element:ie,padding:4}}];return null!=(e=j.popperOptions)&&e.modifiers&&(t=t.concat(j.popperOptions.modifiers)),(0,St.Z)({},j.popperOptions,{modifiers:t})}),[ie,j]),Pe=(0,St.Z)({},w,{isRtl:J,arrow:S,disableInteractive:re,placement:z,PopperComponentProp:H,touch:oe.current}),Fe=(e=>{const{classes:t,disableInteractive:i,arrow:n,touch:o,placement:r}=e,s={popper:["popper",!i&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,Gt.Z)(r.split("-")[0])}`],arrow:["arrow"]};return(0,Lt.Z)(s,Xp,t)})(Pe),Be=null!=(n=null!=(o=$.popper)?o:L.Popper)?n:Jp,We=null!=(r=null!=(s=null!=(a=$.transition)?a:L.Transition)?s:G)?r:Yc,Ve=null!=(l=null!=(c=$.tooltip)?c:L.Tooltip)?l:em,ze=null!=(d=null!=(u=$.arrow)?u:L.Arrow)?d:tm,He=ts(Be,(0,St.Z)({},j,null!=(h=U.popper)?h:k.popper,{className:(0,xt.Z)(Fe.popper,null==j?void 0:j.className,null==(g=null!=(p=U.popper)?p:k.popper)?void 0:g.className)}),Pe),je=ts(We,(0,St.Z)({},K,null!=(m=U.transition)?m:k.transition),Pe),Ue=ts(Ve,(0,St.Z)({},null!=(f=U.tooltip)?f:k.tooltip,{className:(0,xt.Z)(Fe.tooltip,null==(v=null!=(_=U.tooltip)?_:k.tooltip)?void 0:v.className)}),Pe),$e=ts(ze,(0,St.Z)({},null!=(b=U.arrow)?b:k.arrow,{className:(0,xt.Z)(Fe.arrow,null==(y=null!=(C=U.arrow)?C:k.arrow)?void 0:y.className)}),Pe);return(0,Tt.jsxs)(i.Fragment,{children:[i.cloneElement(Y,Oe),(0,Tt.jsx)(Be,(0,St.Z)({as:null!=H?H:Gp,placement:z,anchorEl:M?{getBoundingClientRect:()=>({top:om.y,left:om.x,right:om.x,bottom:om.y,width:0,height:0})}:ee,popperRef:Re,open:!!ee&&he,id:ge,transition:!0},Me,He,{popperOptions:Ae,children:({TransitionProps:e})=>(0,Tt.jsx)(We,(0,St.Z)({timeout:Q.transitions.duration.shorter},e,je,{children:(0,Tt.jsxs)(Ve,(0,St.Z)({},Ue,{children:[Z,S?(0,Tt.jsx)(ze,(0,St.Z)({},$e,{ref:ne})):null]}))}))}))]})})),am=sm,lm=(0,It.ZP)(zo,{shouldForwardProp:e=>!["width","dense"].includes(e)})((({width:e,dense:t})=>({minWidth:`${e}px`,textAlign:"center",fontSize:t?"12px":"14px",...t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}})));function cm({width:e,text:t,dense:n,tooltip:o}){const{translator:r}=(0,i.useContext)(cc);return i.createElement(am,{title:o?r.get(t):""},i.createElement(lm,{width:e,dense:n,component:"div",variant:"body1",py:"12px"},r.get(t)))}var dm=s(528);const um=(0,It.ZP)(Td)((({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t}))),hm=(0,It.ZP)("div")((()=>({paddingLeft:"6px",flexGrow:1}))),gm=(0,It.ZP)("div")((({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"}))),pm=(0,It.ZP)(dm.Z)((()=>({fontSize:"14px"})));function mm({text:e,dismiss:t,dense:n,parentWidth:o=0}){const r="function"==typeof t,s=n?370:282,a=Math.max(o/2-s/2,0),l=Math.min(s,o)-42,c=n&&o<s;return i.createElement(um,{left:a,style:{maxWidth:s}},i.createElement(hm,null,i.createElement(cm,{text:e,dense:n,width:l,tooltip:c})),i.createElement(gm,{dense:n},r&&i.createElement(So,{"aria-label":"close",onClick:()=>t()},i.createElement(pm,null))))}const fm=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t,vm=80;function _m({itemWidth:e,layout:t,frequencyMode:i}){const n=e>vm,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["N",void 0].includes(i);return!(!n||!r&&!o)}const bm=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e)(e);return`Max(AGGR(Count(${t}), ${t}))`},ym=(e,t)=>{const n=(e=>"fetch"===e?.frequencyMax)(t),[o,r]=(0,i.useState)(),[s,a]=(0,i.useState)(n);return(0,i.useEffect)((()=>{n&&(async()=>{const i=await(async(e,t)=>{const i=e.qListObject.qDimensionInfo,n=i.qGroupFieldDefs[i.qGroupPos],o=bm(n);return(await t.evaluateEx(o)).qNumber})(t,e);r(i),a(!1)})()}),[n&&t]),{frequencyMax:n?o:t?.frequencyMax,awaitingFrequencyMax:s}},Cm=100,wm=(0,It.ZP)("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function Sm({model:e,app:t,constraints:n,layout:o,selections:r,selectionState:s,direction:a,checkboxes:l,height:c,width:d,frequencyMode:u,update:h,fetchStart:g,postProcessPages:p,calculatePagesHeight:m=!1,keyboard:f={},showGray:v=!0,scrollState:_,selectDisabled:b=(()=>!1),keyScroll:y={state:{},reset:()=>{}},currentScrollIndex:C={set:()=>{}},renderedCallback:w,onCtrlF:S,showSearch:x,isModal:L,styles:k}){const{translator:E}=(0,i.useContext)(cc),[D,I]=(0,i.useState)(!1),N=!(!o||!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:R=l,histogram:q}=o??{},[T,O]=(0,i.useState)(""),M=(0,i.useRef)(null),A=(0,i.useRef)({queue:[],validPages:!1,dataOffset:0}),P=(0,i.useRef)({pages:[]}),{frequencyMax:F,awaitingFrequencyMax:B}=ym(t,o),{isLoadingData:W,...V}=function({local:e,loaderRef:t,model:n,fetchStart:o,scrollTimeout:r,postProcessPages:s,listData:a}){const[l,c]=(0,i.useState)(!1),[d,u]=(0,i.useState)([]);let[h]=(0,i.useState)(0);const g=(i,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:i+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 i=e.current.queue.slice(-1)[0],r=n.getListObjectData("/qListObjectDef",[{qTop:i.start>h?i.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:i.start,qHeight:h,qLeft:0,qWidth:1}]).then((i=>{const n=s?s(i):i;e.current.validPages=!0,a.current.pages=n,u(n),c(!1),t()}));o&&o(r)}),g?r:0)}))};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(h=e),g)},pages:d,isLoading:l}}({local:A,loaderRef:M,model:e,fetchStart:g,scrollTimeout:0,postProcessPages:p,listData:P}),{getStoreValue:z,setStoreValue:H}=Eg(e),j=(0,i.useCallback)(V.loadMoreItems,[o]),[U,$]=(0,i.useState)({show:!1,dismissed:!1}),[Z,G]=(0,i.useState)([]);V?.pages&&s.update({setPages:G,pages:V.pages,isSingleSelect:N,selectDisabled:b,layout:o});const K=o?.qListObject.qDimensionInfo.qCardinal;(V?.pages.length&&!B||0===K)&&w?.();const X=(0,i.useCallback)((e=>{if(!Z?.length||!A.current.validPages)return!1;A.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,i=Z.filter((e=>t(e)))[0];return i&&t(i)}),[o,Z]),{interactionEvents:Y,select:Q}=function({selectionState:e,selections:t,checkboxes:n=!1,doc:o=document,loaderRef:r}){const s=(0,i.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,i.useEffect)((()=>{if(!r.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),i=e=>e.preventDefault(),n=r.current._listRef._outerRef;return n.addEventListener("gesturestart",e),n.addEventListener("gesturechange",t),n.addEventListener("gestureend",i),()=>{n.removeEventListener("gesturestart",e),n.removeEventListener("gesturechange",t),n.removeEventListener("gestureend",i)}}),[r.current?._listRef?._outerRef]);const a=()=>(e.setSelectableValuesUpdating(),Yd({selections:t,elemNumbers:s.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:s.current.toggle})),l=(t,i)=>function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:i,max:n}=function(e,t){let i=1/0,n=-1/0;return e.forEach((e=>{const o=t.indexOf(e);i=o<i?o:i,n=o>n?o:n})),{min:i,max:n}}(e,t);return t.slice(i,n+1)}([t,i],function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return Xd(t)}(e.enginePages)),c=t=>{const{startElemNumber:i}=s.current;if(i===t)return;const n=l(s.current.startElemNumber,t);e.updateItems(n,!0,s.current.elemNumbers)},d=(0,i.useCallback)((t=>{if(e.selectDisabled())return;const i=+t.target.getAttribute("data-n"),n=!e.isSingleSelect&&tu(t.nativeEvent);s.current.elemNumbers=[i],s.current.toggle=n,n||e.clearItemStates(!0),e.updateItem(i),s.current.active=!1,a()}),[]),u=(0,i.useCallback)((t=>{if(0!==t.button||e.selectDisabled())return;const i=+t.currentTarget.getAttribute("data-n"),n=!e.isSingleSelect&&tu(t);s.current.isRange=!1,s.current.startElemNumber=i,s.current.elemNumbers=[i],s.current.toggle=n,s.current.active=!0,n||e.clearItemStates(!0),e.updateItem(i),e.isSingleSelect&&(s.current.active=!1,a()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)}),[]),h=(0,i.useCallback)((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}a()}}),[]),g=(0,i.useCallback)((e=>{0===e.button&&s.current.active&&(s.current.active=!1,a())}),[]),p=(0,i.useCallback)((t=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,e.isSelected(s.current.startElemNumber)||(e.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const i=+t.currentTarget.getAttribute("data-n");c(i)}),[]),m=(0,i.useCallback)((t=>{if(s.current.active||s.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void a();const i=Number(t.touches[0].target?.closest(eu)?.getAttribute("data-n")),n=Number(t.touches[1].target?.closest(eu)?.getAttribute("data-n"));Number.isNaN(i)||Number.isNaN(i)?a():(s.current.active=!0,l(i,n).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[i,n])}),[]),f=(0,i.useCallback)((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,c(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,a()}),[]);(0,i.useEffect)((()=>(o.addEventListener("mouseup",g),()=>{o.removeEventListener("mouseup",g)})),[g]),(0,i.useEffect)((()=>{const i=()=>{e.clearItemStates(!1)},n=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return t.on("clearItemStates",i),t.on("deactivated",i),t.on("cleared",n),()=>{t.removeListener("clearItemStates",i),t.removeListener("deactivated",i),t.removeListener("cleared",n)}}),[t]);const v={};return n?Object.assign(v,{onChange:d}):Object.assign(v,{onMouseUp:h,onMouseDown:u,onMouseEnter:p,onTouchStart:m,onTouchEnd:f}),{interactionEvents:v,select:(i=[],n=!1,o=void 0)=>{const r=!e.isSingleSelect&&tu(o?.nativeEvent);r||e.clearItemStates(!0);const s=[];return e.updateItems(i,n,s),e.setSelectableValuesUpdating(),Yd({selections:t,elemNumbers:n?s:i,isSingleSelect:e.isSingleSelect,toggle:r})}}}({selectionState:s,selections:r,checkboxes:R,doc:document,loaderRef:M}),{layoutOptions:J={}}=o||{};let ee=!0;J.dataLayout&&(ee="singleColumn"===J.dataLayout||"row"===J?.layoutOrder);const te="grid"===J?.dataLayout,ie=e=>{const t={...ee?{rowIndex:e}:{columnIndex:e}},i=te?t:e;M.current._listRef.scrollToItem(i)},ne=()=>{if(A.current.queue=[],A.current.validPages=!1,M.current){M.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===y.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&y.reset());A.current.dataOffset=0,ie(0)}};h&&h.call(null,ne),(0,i.useEffect)((()=>{_&&!D&&M.current&&(M.current._listRef.scrollToItem(_.initScrollPos),I(!0))}),[M.current]),(0,i.useEffect)((()=>{ne()}),[o,A.current.dataOffset]);let oe=Cm;const re="grid"!==J.dataLayout,se=o?.qListObject.qSize?.qcy,ae=function({pages:e,minimumBatchSize:t,count:i,calculatePagesHeight:n=!1}){return(e?.length&&n?xg({pages:e,minimumBatchSize:t,count:i}):i)||0}({pages:Z,minimumBatchSize:oe,count:se,calculatePagesHeight:m,layoutOptions:J,model:e});let le=_m({itemWidth:d,layout:o,frequencyMode:u});const ce=function(e){return e.some((({qMatrix:e})=>e.some((([e])=>!!e.qFrequency?.match("%")))))?"P":"-"}(Z),de=Sg({layout:o,width:d,height:c,listCount:ae,count:se,freqIsAllowed:le,checkboxes:R,styles:k});de.columnWidth&&(le=_m({itemWidth:de.columnWidth,layout:o,frequencyMode:u}));const{listCount:ue}=de;H("listCount",ue);const he=z("inputText");(0,i.useEffect)((()=>{if(he){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(ue),t=E.get(e,[ue]);O(t)}}),[he,ue]);const ge=e=>{const{scrollIndex:t,offset:i,triggerRerender:n}=function({position:e,isRow:t,sizes:i,layout:n,offset:o}){let r,s=!1,a=o??0;switch(e){case"start":r=0;break;case"end":r=t?i.rowCount:i.columnCount;break;case"overflowStart":a=0,r=0,s=!0;break;case"overflowEnd":a=fm(n,i.listCount),r=n.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:r,offset:a,triggerRerender:s}}({position:e,isRow:ee,sizes:de,layout:o,offset:A.current.dataOffset});A.current.dataOffset=i,n&&s.triggerStateChanged(),ie(t)};(0,i.useEffect)((()=>{const e=y.state;e.up?ie(C.state.start-e.up):e.down?ie(C.state.stop+e.down):e.scrollPosition&&ge(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&y.reset()}),[y.state.up,y.state.down,y.state.scrollPosition]);const{textAlign:pe}=o?.qListObject.qDimensionInfo||{},[me,fe]=(0,i.useState)({first:!1,last:!1}),{List:ve,Grid:_e}=function({layout:e,width:t,checkboxes:n,local:o,isVertical:r,pages:s,selectDisabled:a,interactionEvents:l,deducedFrequencyMode:c,histogram:d,isSingleSelect:u,select:h,selectAll:g,onCtrlF:p,textAlign:m,selections:f,keyboard:v,showGray:_,scrollState:b,direction:y,sizes:C,listCount:w,overflowDisclaimer:S,setScrollPosition:x,focusListItems:L,setCurrentScrollIndex:k,constraints:E,frequencyMax:D,freqIsAllowed:I,translator:N,showSearch:R,isModal:q,styles:T}){const{layoutOptions:O={}}=e||{},{columnWidth:M,listHeight:A,itemHeight:P,rowCount:F,columnCount:B}=C||{},W=("grid"===O.dataLayout?M:t)>au,V={direction:"rtl"===y?"rtl":"ltr",useIsScrolling:!0,className:hg.styledScrollbars},z=e?.qListObject.qDimensionInfo.qLocked,H=A<=P,j={isLocked:z,column:!r,pages:s,...z||a()?{}:l,checkboxes:n,layoutOptions:O,deducedFrequencyMode:c,freqIsAllowed:I,isSingleSelect:u,textAlign:m,sizes:C,actions:{select:h,confirm:()=>f?.confirm.call(f),cancel:()=>f?.cancel.call(f),setScrollPosition:x,selectAll:g,onCtrlF:p},frequencyMax:D,histogram:d,keyboard:v,showGray:_,showTick:W,dataOffset:o.current.dataOffset,focusListItems:L,direction:y,translator:N,showSearch:R,isModal:q,styles:T,fillHeight:H};return{List:({onItemsRendered:n,ref:r})=>(o.current.listRef=r,i.createElement(_g,vg({},V,{dataTestid:"fixed-size-list",scrollDisabled:E?.active,height:A,width:t,itemCount:w,itemData:{...j,listCount:w},itemSize:P,onItemsRendered:t=>{k({start:t.visibleStartIndex,stop:t.visibleStopIndex}),b&&b.setScrollPos(t.visibleStopIndex),fg({renderProps:t,layoutOptions:O,maxCount:C.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),n({...t})},ref:r}),jh)),Grid:({onItemsRendered:n,ref:r})=>{const{overflowStyling:s,scrollBarWidth:a}=C,{layoutOrder:l}=O||{},c=Math.min(A,F*P+a);return o.current.listRef=r,i.createElement(bg,vg({},V,{dataTestid:"fixed-size-grid",scrollDisabled:E?.active,height:c,width:t,columnCount:B,columnWidth:M,rowCount:F,rowHeight:P,style:{...s},itemData:{...j,column:void 0,columnCount:B,rowCount:F},onItemsRendered:t=>{const i="row"===l;k({start:i?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:i?t.visibleRowStopIndex:t.visibleColumnStopIndex});const r=function(e){const{renderProps:t,scrollState:i,layoutOrder:n,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let u,h,g,p;return i&&i.setScrollPos(d),"column"===n?(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:b,layoutOrder:l,rowCount:F,columnCount:B});fg({renderProps:t,layoutOptions:O,maxCount:C.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),n(r)},ref:r}),jh)}}}({direction:a,layout:o,height:c,width:d,checkboxes:R,deducedFrequencyMode:ce,histogram:q,keyboard:f,showGray:v,interactionEvents:Y,select:Q,selectAll:()=>{s.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:S,textAlign:pe,isVertical:re,pages:Z,selectDisabled:b,isSingleSelect:N,selections:r,scrollState:_,local:A,sizes:de,listCount:ue,overflowDisclaimer:{state:U,set:e=>$((t=>({...t,show:e})))},setScrollPosition:ge,focusListItems:{first:me.first,setFirst:e=>fe((t=>({...t,first:e}))),last:me.last,setLast:e=>fe((t=>({...t,last:e})))},setCurrentScrollIndex:C.set,constraints:n,frequencyMax:F,freqIsAllowed:le,translator:E,showSearch:x,isModal:L,styles:k}),{columnWidth:be,listHeight:ye,itemHeight:Ce}=de||{};return re||(oe=function({width:e,columnWidth:t,listHeight:i,itemHeight:n}){return Math.ceil(e/t)*Math.ceil(i/n)*2}({width:d,columnWidth:be,listHeight:ye,itemHeight:Ce})),i.createElement(wm,null,i.createElement(Fh,{className:"screenReaderOnly",layout:o}),i.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},T),!ue&&K>0&&i.createElement(cm,{width:d,text:"Listbox.NoMatchesForYourTerms"}),i.createElement(Gd,{isItemLoaded:X,itemCount:ue||1,loadMoreItems:j.with({minimumBatchSize:oe}),threshold:0,minimumBatchSize:oe,ref:M,role:"grid"},re?ve:_e),U.show&&!U.dismissed&&i.createElement(mm,{text:"Listbox.ItemsOverflow",dismiss:()=>$((e=>({...e,dismissed:!0}))),parentWidth:M?.current?._listRef?.props?.width,dense:J?.dense}))}const xm=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"}}]}),Lm=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"}}]}),km=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"}}]}),Em=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"}}]}),Dm=({layout:e,model:t,translator:i,selectionState:n,isDirectQuery:o=!1})=>e.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:i.get("Selection.SelectAll"),getSvgIconShape:xm,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:i.get("Selection.SelectPossible"),getSvgIconShape:km,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectPossible("/qListObjectDef")}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:i.get("Selection.SelectAlternative"),getSvgIconShape:Lm,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectAlternative("/qListObjectDef")}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:i.get("Selection.SelectExcluded"),getSvgIconShape:Em,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean);function Im(e){return(0,Rt.Z)("MuiDivider",e)}const Nm=(0,Nt.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Rm=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],qm=(0,It.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.absolute&&t.absolute,t[i.variant],i.light&&t.light,"vertical"===i.orientation&&t.vertical,i.flexItem&&t.flexItem,i.children&&t.withChildren,i.children&&"vertical"===i.orientation&&t.withChildrenVertical,"right"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignRight,"left"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,St.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,In.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"})),(({ownerState:e})=>(0,St.Z)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,St.Z)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,St.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,St.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%"}}))),Tm=(0,It.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.wrapper,"vertical"===i.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,St.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)`}))),Om=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiDivider"}),{absolute:n=!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"}=i,g=(0,wt.Z)(i,Rm),p=(0,St.Z)({},i,{absolute:n,component:s,flexItem:a,light:l,orientation:c,role:d,textAlign:u,variant:h}),m=(e=>{const{absolute:t,children:i,classes:n,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",i&&"withChildren",i&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,Lt.Z)(c,Im,n)})(p);return(0,Tt.jsx)(qm,(0,St.Z)({as:s,className:(0,xt.Z)(m.root,r),role:d,ref:t,ownerState:p},g,{children:o?(0,Tt.jsx)(Tm,{className:m.wrapper,ownerState:p,children:o}):null}))}));Om.muiSkipListHighlight=!0;const Mm=Om,Am=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 Pm(e){const t=ei(),i="function"==typeof e.enabled?!e.enabled():!!e.disabled,n="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:i,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:n}}const Fm={className:"njs-cell-action"},Bm=i.forwardRef((({ariaExpanded:e=!1,item:t,addAnchor:n=!1},o)=>{const r=ei(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=Pm(t);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),u=t.keyboardAction||t.action,h=u?e=>["Enter"].includes(e.key)&&u():null,g=u?e=>[" ","Spacebar"].includes(e.key)&&u():null,p=`actions-toolbar-${t.key}`;return i.createElement(So,{ref:n?null:o,title:t.label,onClick:t.action,onKeyDown:h,onKeyUp:g,disabled:a,style:l,className:[Fm.className,p].join(" "),size:"large",disableRipple:!0,"aria-expanded":e,"aria-controls":"moreMenuList","data-testid":p},c&&br(t.getSvgIconShape()),n&&i.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Wm=Bm,Vm=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"}}]}),zm=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"}}]}),Hm=e=>br(zm(e));function jm(e){return(0,Rt.Z)("MuiListItemIcon",e)}const Um=(0,Nt.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function $m(e){return(0,Rt.Z)("MuiMenuItem",e)}const Zm=(0,Nt.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Gm=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Km=(0,It.ZP)(vo,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.dense&&t.dense,i.divider&&t.divider,!i.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,St.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"}},[`&.${Zm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,In.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,In.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,In.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,In.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Nm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Nm.inset}`]:{marginLeft:52},[`& .${Ur.root}`]:{marginTop:0,marginBottom:0},[`& .${Ur.inset}`]:{paddingLeft:36},[`& .${Um.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,St.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Um.root} svg`]:{fontSize:"1.25rem"}})))),Xm=i.forwardRef((function(e,t){const n=(0,Dt.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}=n,g=(0,wt.Z)(n,Gm),p=i.useContext(Cr),m=i.useMemo((()=>({dense:s||p.dense||!1,disableGutters:l})),[p.dense,s,l]),f=i.useRef(null);(0,Ir.Z)((()=>{o&&f.current&&f.current.focus()}),[o]);const v=(0,St.Z)({},n,{dense:m.dense,divider:a,disableGutters:l}),_=(e=>{const{disabled:t,dense:i,divider:n,disableGutters:o,selected:r,classes:s}=e,a={root:["root",i&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",r&&"selected"]},l=(0,Lt.Z)(a,$m,s);return(0,St.Z)({},s,l)})(n),b=(0,Nn.Z)(f,t);let y;return n.disabled||(y=void 0!==u?u:-1),(0,Tt.jsx)(Cr.Provider,{value:m,children:(0,Tt.jsx)(Km,(0,St.Z)({ref:b,role:d,tabIndex:y,component:r,focusVisibleClassName:(0,xt.Z)(_.focusVisible,c),className:(0,xt.Z)(_.root,h)},g,{ownerState:v,classes:_}))})})),Ym=Xm,Qm=["className"],Jm=(0,It.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"flex-start"===i.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,St.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),ef=i.forwardRef((function(e,t){const n=(0,Dt.Z)({props:e,name:"MuiListItemIcon"}),{className:o}=n,r=(0,wt.Z)(n,Qm),s=i.useContext(Cr),a=(0,St.Z)({},n,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:i}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Lt.Z)(n,jm,i)})(a);return(0,Tt.jsx)(Jm,(0,St.Z)({className:(0,xt.Z)(l.root,o),ownerState:a,ref:t},r))})),tf=ef,nf=td,of=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function rf(e,t,i){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:i?null:e.firstChild}function sf(e,t,i){return e===t?i?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:i?null:e.lastChild}function af(e,t){if(void 0===t)return!0;let i=e.innerText;return void 0===i&&(i=e.textContent),i=i.trim().toLowerCase(),0!==i.length&&(t.repeating?i[0]===t.keys[0]:0===i.indexOf(t.keys.join("")))}function lf(e,t,i,n,o,r){let s=!1,a=o(e,t,!!t&&i);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&af(a,r)&&!t)return a.focus(),!0;a=o(e,a,i)}return!1}const cf=i.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:r=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu"}=e,h=(0,wt.Z)(e,of),g=i.useRef(null),p=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Ir.Z)((()=>{o&&g.current.focus()}),[o]),i.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const i=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&i){const i=`${nf((0,xs.Z)(e))}px`;g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=i,g.current.style.width=`calc(100% + ${i})`}return g.current}})),[]);const m=(0,Nn.Z)(g,t);let f=-1;i.Children.forEach(s,((e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===f)&&(f=t),f===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=s.length&&(f=-1))):f===t&&(f+=1,f>=s.length&&(f=-1))}));const v=i.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),i.cloneElement(e,t)}return e}));return(0,Tt.jsx)(kr,(0,St.Z)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,i=e.key,n=(0,xs.Z)(t).activeElement;if("ArrowDown"===i)e.preventDefault(),lf(t,n,c,l,rf);else if("ArrowUp"===i)e.preventDefault(),lf(t,n,c,l,sf);else if("Home"===i)e.preventDefault(),lf(t,null,c,l,rf);else if("End"===i)e.preventDefault(),lf(t,null,c,l,sf);else if(1===i.length){const o=p.current,r=i.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=n&&!o.repeating&&af(n,o);o.previousKeyMatched&&(a||lf(t,n,!1,l,rf,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},h,{children:v}))})),df=cf;function uf(){return uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},uf.apply(this,arguments)}const hf="More-icon",gf=(0,It.ZP)(Ud)((({theme:e})=>({pointerEvents:"none",[`& .${hf} *`]:{color:e.palette.text.primary}})));function pf({item:e,autoFocus:t,onActionClick:n=(()=>{})}){const{hidden:o,disabled:r,hasSvgIconShape:s}=Pm(e);return o?null:i.createElement(Ym,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:r,tabindex:"0"},s&&i.createElement(tf,{className:hf},br(e.getSvgIconShape())),i.createElement(zo,{noWrap:!0},e.label))}const mf=i.forwardRef((({actions:e=[],show:t=!0,alignTo:n,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=(()=>{})},a)=>{const l=e.length>0,c=e.findIndex((e=>!e.disabled));return l&&i.createElement(gf,uf({},o,{onClose:s,ref:a,open:t,anchorEl:n.current,getContentAnchorEl:null,container:n.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:{pointerEvents:"auto",maxWidth:"250px",...r}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),i.createElement(df,{id:"moreMenuList"},e.map(((e,t)=>i.createElement(pf,{key:t,item:e,autoFocus:t===c,onActionClick:s})))))})),ff="ActionsToolbar",vf={item:`${ff}-item`,itemSpacing:`${ff}-itemSpacing`},_f=(0,It.ZP)(Ud)((({theme:e})=>({[`& .${vf.itemSpacing}`]:{padding:e.spacing(0,.25)}}))),bf=i.forwardRef((({className:e,ariaExpanded:t=!1,actions:n=[],addAnchor:o=!1,isRtl:r=!1},s)=>n.length>0?i.createElement(Mo,{item:!0,container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e},n.map(((e,n)=>i.createElement(Mo,{item:!0,key:e.key,className:`${vf.itemSpacing} ${vf.item}`},i.createElement(Wm,{ariaExpanded:t,key:e.key,item:e,ref:0===n?s:null,addAnchor:o}))))):null)),yf={pointerEvents:"none"},Cf={vertical:"bottom",horizontal:"right"},wf=function({show:e=!0,actions:t=[],maxItems:n=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,direction:c="ltr",autoConfirm:d=!1}){const u=function({api:e,onConfirm:t=(()=>{}),onCancel:n=(()=>{}),onKeyDeactivate:o=(()=>{})}){const{translator:r}=(0,i.useContext)(cc);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(),action:()=>e.clear(),getSvgIconShape:zm},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(),action:()=>{n(),e.cancel()},keyboardAction:()=>{o(),n(),e.cancel()},getSvgIconShape:Vm},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(),action:()=>{t(),e.confirm()},keyboardAction:()=>{o(),t(),e.confirm()},getSvgIconShape:iu}]}(o),{translator:h,keyboardNavigation:g}=(0,i.useContext)(cc),[p,m]=(0,i.useState)(!1),f={vertical:12,horizontal:(s.anchorEl?.clientWidth??0)-7},v=(0,i.useRef)(),_=(0,i.useRef)(),b=ei(),y=(0,i.useMemo)((()=>({margin:b.spacing(.5,0)}))),C=e=>{const t=v.current||l;if(!t)return null;const i=t.querySelectorAll("button:not(.Mui-disabled)");return i[e?i.length-1:0]},w=(0,i.useMemo)((()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:i,selections:n}){return o=>{const{target:r,nativeEvent:s}=o,{keyCode:a}=s;switch(a){case Wh.ARROW_LEFT:case Wh.ARROW_DOWN:case Wh.ARROW_RIGHT:case Wh.ARROW_UP:if(r.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),i=t?.querySelectorAll(".njs-cell-action");return Array.from(i).indexOf(e)})(r);(e=>{const t=document.querySelector("#actions-toolbar"),i=t?.querySelectorAll(".njs-cell-action");i.length&&i[Math.min(Math.max(0,e),i.length-1)].focus()})([Wh.ARROW_LEFT,Wh.ARROW_DOWN].includes(a)?e-1:e+1)}o.stopPropagation(),o.preventDefault();break;case Wh.SPACE:o.preventDefault();break;case Wh.TAB:e&&t?.refocusContent&&(o.shiftKey&&i(!1)===o.target||!o.shiftKey&&i(!0)===o.target)&&(o.preventDefault(),o.stopPropagation(),t.refocusContent());break;case Wh.ESCAPE:n&&(n.onCancel(),n.api.cancel(),o.preventDefault(),o.stopPropagation())}}}({keyboardNavigation:g,focusHandler:a,getEnabledButton:C,selections:o})),[g,a,C,o]);if((0,i.useEffect)((()=>()=>{m(!1)}),[s.show,e,o.show]),(0,i.useEffect)((()=>{a&&(a.on("focus_toolbar_first",(()=>{const e=C(!1);e&&e.focus()})),a.on("focus_toolbar_last",(()=>{const e=C(!0);e&&e.focus()})))}),[]),d)return;let S=r.enabled,x=r.actions;const L=r.alignTo||_,k=t.filter((e=>!e.hidden));if(k.length>n){const e=k.splice(-(k.length-n)-1);S=!0,x=[...e,...r.actions]}if(!o.show&&0===k.length)return null;const E={key:"more",label:h.get("Menu.More"),getSvgIconShape:Am,hidden:!1,active:p,enabled:()=>S,action:()=>m(!p)},D=k.length>0,I=x.length>0,N=D&&o.show||I&&o.show,R="rtl"===c,q=i.createElement(Mo,{ref:v,onKeyDown:w,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:R?"row-reverse":"row"}},D&&i.createElement(bf,{actions:k}),I&&i.createElement(bf,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:_,ariaExpanded:p,actions:[E],addAnchor:!0}),N&&i.createElement(Mo,{item:!0,className:vf.itemSpacing,style:y},i.createElement(Mm,{orientation:"vertical"})),o.show&&i.createElement(bf,{className:"actions-toolbar-default-actions",actions:u,isRtl:R}),p&&i.createElement(mf,{show:p,actions:x,alignTo:L,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{m(!1)}}));return s.show?i.createElement(_f,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:f,transformOrigin:Cf,hideBackdrop:!0,style:yf,slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:b.spacing(.5,.25)}}}},q):e&&q};function Sf(e){return(0,Rt.Z)("MuiInputAdornment",e)}const xf=(0,Nt.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Lf;const kf=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Ef=(0,It.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`position${(0,Gt.Z)(i.position)}`],!0===i.disablePointerEvents&&t.disablePointerEvents,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,St.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${xf.positionStart}&:not(.${xf.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Df=i.forwardRef((function(e,t){const n=(0,Dt.Z)({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=n,u=(0,wt.Z)(n,kf),h=Gs()||{};let g=d;d&&h.variant,h&&!g&&(g=h.variant);const p=(0,St.Z)({},n,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:i,hiddenLabel:n,position:o,size:r,variant:s}=e,a={root:["root",i&&"disablePointerEvents",o&&`position${(0,Gt.Z)(o)}`,s,n&&"hiddenLabel",r&&`size${(0,Gt.Z)(r)}`]};return(0,Lt.Z)(a,Sf,t)})(p);return(0,Tt.jsx)(Zs.Provider,{value:null,children:(0,Tt.jsx)(Ef,(0,St.Z)({as:s,ownerState:p,className:(0,xt.Z)(m.root,r),ref:t},u,{children:"string"!=typeof o||l?(0,Tt.jsxs)(i.Fragment,{children:["start"===c?Lf||(Lf=(0,Tt.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,Tt.jsx)(zo,{color:"text.secondary",children:o})}))})})),If=Df,Nf=e=>br((e=>({...e,shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e)),Rf="/qListObjectDef",qf="**",Tf=(0,It.ZP)(Ea,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((({theme:e,styles:t,dense:i,isRtl:n})=>{let o={};return i&&(o={fontSize:12,paddingLeft:e.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),{display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,paddingLeft:"9px",flexDirection:n?"row-reverse":"row","& fieldset":{borderColor:`${t.search.borderColor}`,borderWidth:"1px 0 1px 0",borderRadius:0},"& .MuiInputBase-root":{...t.search},"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:n?"right":"left"},"&.Mui-focused fieldset.OutlinedInput-notchedOutline":{borderColor:`${t.search.highlightBorderColor} !important`},...o}}));function Of({selections:e,selectionState:t,model:n,keyboard:o,dense:r=!1,visible:s=!0,autoFocus:a=!0,wildCardSearch:l=!1,searchEnabled:c,direction:d,hide:u,styles:h}){const{translator:g}=(0,i.useContext)(cc),[p,m]=(0,i.useState)(""),[f,v]=(0,i.useState)(!1),_=(0,i.useRef)(),{getStoreValue:b,setStoreValue:y}=Eg(n),C="rtl"===d,w=async()=>{if(e.isModal())try{await n.abortListObjectSearch(Rf)}finally{m("")}};(0,i.useEffect)((()=>{s||w()}),[s]),(0,i.useEffect)((()=>(e.on("deactivated",w),()=>{e.removeListener&&e.removeListener("deactivated",w)})),[]),(0,i.useEffect)((()=>{if(f&&_.current){const e=p.length-1;_.current.setSelectionRange(e,e),v(!1)}}),[f,_.current]),(0,i.useEffect)((()=>{y("inputText",p)}),[p]);function S(e){const t=e?.querySelector(".last-focused")||e?.querySelector('[role="row"]:first-child');t.setAttribute("tabIndex",0),t?.focus()}return s&&!1!==c?i.createElement(Tf,{styles:h,dense:r,isRtl:C,startAdornment:i.createElement(If,{position:"start"},i.createElement(Nf,{size:r?"small":"normal"})),className:"search",inputRef:_,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:p,onFocus:()=>{l&&(m(qf),v(!0)),e.isModal()||e.begin(["/qListObjectDef"])},onChange:async e=>(m(e.target.value),e.target.value.length?n.searchListObjectFor(Rf,e.target.value):w()),onKeyDown:async i=>{const{currentTarget:r}=i,s=r.closest(".listbox-container");switch(i.key){case"Enter":(async()=>{let i;await n.searchListObjectFor(Rf,p)&&p.length&&b("listCount")>0&&(i=n.acceptListObjectSearch(Rf,!0),e.selectionsMade=!0,t.clearItemStates(!1),m(""))})();break;case"Escape":S(s),e.isActive()&&e.cancel();break;case"Tab":i.shiftKey?o.focusSelection():(S(s),s?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!i.ctrlKey&&!i.metaKey)return;u&&(u(),S(s));break;default:return}i.preventDefault(),i.stopPropagation()},autoFocus:a,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}function Mf(e){return Object.keys(ul().prototype).forEach((t=>{e[t]=ul().prototype[t]})),ul().init(e),e}const Af=({appSelections:e,appModal:t,model:i})=>{let n,o=!1,r=!1;const s={id:i.id,setLayout(e){n=e},begin(e){const n=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",n),n.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:i,paths:e,accept:!0,objectSelections:s}))},clear(){return r=!1,this.emit("cleared"),n.qListObject?i.clearSelections("/qListObjectDef"):i.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 n=this.begin([t.params[0]]);if(!e.isModal())return!1;await n;const o=await i[t.method](...t.params);return r="resetMadeSelections"!==t.method,!!o||(i.resetMadeSelections(),!1)},canClear:()=>n&&n.qListObject&&n.qListObject.qDimensionInfo?!n.qListObject.qDimensionInfo.qLocked&&!n.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>n&&n.qListObject&&n.qListObject.qDimensionInfo?!n.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(n&&n.qListObject&&n.qListObject.qDimensionInfo&&n.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(s),goModal:e=>t.begin({model:i,paths:e,accept:!1,objectSelections:s}),noModal:(e=!1)=>t.end(e)};return Mf(s),s},Pf=({elements:e,objectSelections:t,options:i={}})=>{const n=function({elements:e,handleClickOutside:t}){return i=>{if(!document.contains(i.target))return;const n=e.map((e=>"string"==typeof e?document.querySelector(e):e?.current)).filter((e=>!!e&&!!document.contains(e)));n.length&&!n.some((e=>e.contains(i.target)))&&t(i)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",n),i?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",n),i?.onSelectionDeactivated?.()}}};function Ff(e,t,n,o){const r=Array.isArray(n)?n:[n],[s]=vc(e),[a]=Vc(t),[l]=gc(),c=l.get(e.id),[d,u]=(0,i.useState)();return(0,i.useEffect)((()=>{s&&t&&!d&&u(Af({appSelections:s,appModal:c,model:t}))}),[s,t]),(0,i.useEffect)((()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Pf({elements:r,objectSelections:d,options:o});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}}),[d]),(0,i.useEffect)((()=>{d&&d.setLayout(a)}),[d,a]),[d]}function Bf(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update({setPages:t,pages:i,isSingleSelect:n,selectDisabled:o,layout:r}){this.setPages=t;const s=this.lastRowCount===r.qListObject.qSize.qcy,a=this.lastApprMaxGlyphCount===r.qListObject.qDimensionInfo.qApprMaxGlyphCount;s&&a||(this.lastRowCount=r.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=r.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==i&&void 0!==i&&(e.enginePages=i??[],e.selectedInEngine=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return i=t.qState,!!Kd.includes(i)&&t.qElemNumber;var i})).filter((e=>!1!==e))));return Xd(t)}(i),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=n,e.selectDisabled=o,e.isDimCalculated=r?.qListObject?.qDimensionInfo?.qIsCalculated??!1},allowedToSelect:()=>!(e.selectDisabled()||e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:i,qState:n}=t;return e.useClientItemState(i)?e.itemStates[i]?"XS"===n?"XS":"S":"S"===n||"XS"===n?"A":n:n},updateItemNoEvents(t,i,n){const o=e.isSelected(t);o&&!i?e.itemStates[t]=!1:o||(n?.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages:t=>t.map((t=>{const i=t.qMatrix.map((t=>{const[i]=t,n=e.getState(i);return[{...i,qState:n},...t.slice(1)]}));return{...t,qMatrix:i}})),updateItem(t,i,n){e.updateItemNoEvents(t,i,n),e.triggerStateChanged()},updateItems(t,i,n){t.forEach((t=>{e.updateItemNoEvents(t,i,n)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}};return e}const Wf=(e,t,i=void 0)=>e?.[t]??i,Vf={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},zf=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Hf=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,jf=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,Uf=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,$f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Zf=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Gf}=Math,{round:Kf}=Math;class Xf{constructor(...e){let t,i,n,o,r,s,a,l,c,d,u,h,g=0,p=0,m=0,f=1;if(this._invalid=!1,e[0]instanceof Xf)g=e[0]._r,p=e[0]._g,m=e[0]._b,f=e[0]._a,this._invalid=e[0]._invalid;else if(e.length<3)if("string"==typeof e[0])if(h=e[0],u=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))g=parseInt(u[1],10),p=parseInt(u[2],10),m=parseInt(u[3],10);else if(u=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))g=parseInt(u[1],10),p=parseInt(u[2],10),m=parseInt(u[3],10),f=parseFloat(u[4]);else if(u=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))f=parseInt(u[1],10)/255,g=parseInt(u[2],10),p=parseInt(u[3],10),m=parseInt(u[4],10);else if(u=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))g=parseInt(u[1],16),p=parseInt(u[2],16),m=parseInt(u[3],16),f=1;else if(u=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))g=parseInt(u[1]+u[1],16),p=parseInt(u[2]+u[2],16),m=parseInt(u[3]+u[3],16),f=1;else if(u=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(t=parseFloat(u[1]),i=parseFloat(u[3]),o=parseFloat(u[5]),t%=360,i/=100,o/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,o=o<0?0:o>1?1:o,s=o<=.5?2*o*i:(2-2*o)*i,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=o-.5*s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Kf(255*g),p=Kf(255*p),m=Kf(255*m),f=1}else if(u=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(t=parseFloat(u[1]),i=parseFloat(u[3]),o=parseFloat(u[5]),f=parseFloat(u[7]),t%=360,i/=100,o/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,o=o<0?0:o>1?1:o,s=o<=.5?2*o*i:(2-2*o)*i,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=o-.5*s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Kf(255*g),p=Kf(255*p),m=Kf(255*m)}else if(u=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(t=parseFloat(u[1]),i=parseFloat(u[3]),r=parseFloat(u[5]),t%=360,i/=100,r/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,r=r<0?0:r>1?1:r,s=r*i,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=r-s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Kf(255*g),p=Kf(255*p),m=Kf(255*m),f=1}else Vf[h.toLowerCase()]?(n=h.toLowerCase(),g=Vf[n].r,p=Vf[n].g,m=Vf[n].b,f="number"==typeof Vf[n].a?Vf[n].a:1):this._invalid=!0;else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(f=(4278190080&e[0])>>>24,f/=255,g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):this._invalid=!0;else e.length>=3?(g=e[0],p=e[1],m=e[2],f=arguments.length>=4?e[3]:1):this._invalid=!0;Number.isNaN(+g+p+m+f)&&(this._invalid=!0),this._r=Gf(g),this._g=Gf(p),this._b=Gf(m),this._a=f,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=Xf.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Xf.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Xf.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Xf.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Xf.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Xf.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return`hsv(${e.h},${e.s},${e.v})`}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=Xf.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Xf.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),i=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),n=parseFloat(i[1]),o=parseFloat(i[3]);let r=parseFloat(i[5]);const s=parseFloat(i[7]);return r+=e,r=Math.max(0,Math.min(r,100)),`hsla(${n},${o},${r},${s})`}isEqual(e){return e instanceof Xf||(e=new Xf(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[Gf(this._r+(e._r-this._r)*t),Gf(this._g+(e._g-this._g)*t),Gf(this._b+(e._b-this._b)*t),Gf(this._a+(e._a-this._a)*t)].join(",")})`}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),i=this._g<126?1:1+this._g/512,n=this.shiftLuminance(20*(t*i<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Xf(n)}static toRGB(e){return e instanceof Xf?`rgb(${[e._r,e._g,e._b].join(",")})`:("string"==typeof e&&(e=Xf.toNumber(e)),`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`)}static toRGBA(e,t){return e instanceof Xf?`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`:("string"==typeof e&&(e=Xf.toNumber(e)),`rgba(${(16711680&e)>>16},${(65280&e)>>8},${255&e},${void 0!==t?t:e._a})`)}static toHex(e){let t,i,n;return e instanceof Xf?(t=e._r.toString(16),i=e._g.toString(16),n=e._b.toString(16),1===t.length&&(t=`0${t}`),1===i.length&&(i=`0${i}`),1===n.length&&(n=`0${n}`),`#${[t,i,n].join("")}`):("string"==typeof e&&(e=Xf.toNumber(e)),t=((16711680&e)>>16).toString(16),i=((65280&e)>>8).toString(16),n=(255&e).toString(16),1===t.length&&(t=`0${t}`),1===i.length&&(i=`0${i}`),1===n.length&&(n=`0${n}`),`#${t}${i}${n}`)}static toHSL(e,t){let i,n,o,r=0;"string"==typeof e&&(e=new Xf(e));const s=e._r/255,a=e._g/255,l=e._b/255,c=Math.max(s,a,l),d=Math.min(s,a,l);if(n=t?.21*s+.72*a+.07*l:(c+d)/2,c===d)i=0,r=0;else{switch(o=c-d,i=n>.5?o/(2-c-d):o/(c+d),c){case s:r=(a-l)/o+(a<l?6:0);break;case a:r=(l-s)/o+2;break;case l:r=(s-a)/o+4}r/=6}return`hsl(${360*r},${100*i},${100*n})`}static toHSLA(e,t){let i,n,o,r=0;"string"==typeof e&&(e=new Xf(e));const s=e._r/255,a=e._g/255,l=e._b/255,c=e._a,d=Math.max(s,a,l),u=Math.min(s,a,l);if(n=t?.21*s+.72*a+.07*l:(d+u)/2,d===u)i=0,r=0;else{switch(o=d-u,i=n>.5?o/(2-d-u):o/(d+u),d){case s:r=(a-l)/o+(a<l?6:0);break;case a:r=(l-s)/o+2;break;case l:r=(s-a)/o+4}r/=6}return`hsla(${360*r},${100*i},${100*n},${c})`}static toHSVComponents(e){let t,i,n=0;"string"==typeof e&&(e=new Xf(e));const o=e._r/255,r=e._g/255,s=e._b/255,a=Math.max(o,r,s),l=Math.min(o,r,s),c=a;if(a===l)t=0,n=0;else{switch(i=a-l,t=0===i?0:i/c,a){case o:n=(r-s)/i+(r<s?6:0);break;case r:n=(s-o)/i+2;break;case s:n=(o-r)/i+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}static toNumber(...e){if(1===e.length&&e[0]instanceof Xf)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,i,n=0,o=0,r=0;return 1===e.length&&"string"==typeof e[0]&&(i=e[0],(t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(i))?(n=parseInt(t[1],10),o=parseInt(t[2],10),r=parseInt(t[3],10)):(t=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(i))?(n=parseInt(t[1],16),o=parseInt(t[2],16),r=parseInt(t[3],16)):(t=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(i))&&(n=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),r=parseInt(t[3]+t[3],16))),(n<<16)+(o<<8)+r}static blend(e,t,i){const n=(16711680&(e=Xf.toNumber(e)))>>16,o=(65280&e)>>8,r=255&e;return(n+(((16711680&(t=Xf.toNumber(t)))>>16)-n)*i<<16)+(o+(((65280&t)>>8)-o)*i<<8)+(r+((255&t)-r)*i)}static getBlend(e,t,i){const n=e._r+(t._r-e._r)*i,o=e._g+(t._g-e._g)*i,r=e._b+(t._b-e._b)*i,s=e._a+(t._a-e._a)*i;return new Xf(n,o,r,s)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(zf.test(e)||Hf.test(e)||jf.test(e)||Uf.test(e)||$f.test(e)||Zf.test(e)||Vf[e.toLowerCase()])}static getBestContrast(e,t,i){const n=e.getLuminance();return Math.abs(n-t.getLuminance())>Math.abs(n-i.getLuminance())?t:i}static getContrast(e,t){if(!e||!t)return;const i=e.getLuminance()/100,n=t.getLuminance()/100;return i>n?(i+.05)/(n+.05):(n+.05)/(i+.05)}static isDark(...e){return new Xf(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const Yf=Xf,Qf=/,(?![^(]*\))/,Jf=/\s(?![^(]*\))/,ev=/^[0-9]+[a-zA-Z%]+?$/,tv=["none","inset","initial","inherit"],iv=e=>{if(!e)return;const t=e.split(Jf).filter((e=>!tv.includes(e.toLowerCase()))).at(-1);var i;return!t||"0"===(i=t)||ev.test(i)||tv.includes(t.toLowerCase())?void 0:t},nv=e=>e?e.split(Qf).map((e=>e.trim())):[];function ov(e,t,i,n){return i&&n?i.getStyle(`object.${n}`,e,t):i?i.getStyle("",e,t):void 0}const rv=!0;function sv(e,t,i,n,o){return e&&n?"none"!==e.color?n.getColorPickerColor(e,rv):void 0:ov(t,i,n,o)}const av={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},lv={"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"};function cv(e,t){const i=e?.bgImage;if(i){let n="";if("media"===i.mode||"media"===e.useImage){const e=i?.mediaUrl,{qUrl:o}=e?.qStaticContentUrl||{};n=o?decodeURIComponent(o):void 0,n=function(e,t){return t?function(e){let t,i,n,o;return e?.session?.config?(t=e.session.config,i=new URL(t.url),o="wss:"===i.protocol,n=o?"https://":"http://",n+i.host):""}(e)+t:void 0}(t,n)}"expression"===i.mode&&(n=i.expressionUrl?decodeURIComponent(i.expressionUrl):void 0);const o=function(e){let t="center center";return e?.bgImage?.position&&(t=lv[e.bgImage.position]),t}(e),r=function(e){let t=av.originalSize;const i=e?.bgImage?.sizing;return i&&(t=av[i]),t}(e);return n?{url:n,pos:o,size:r}:void 0}}function dv(e,t,i){const n=e?.bgColor;return n&&t&&n.useExpression?t.validateColor(n.colorExpression):sv(n?.color,"","backgroundColor",t,i)}function uv(e,t,i){const n=ov("shadow","boxShadow",t,i);return((e,t,i)=>{if(e&&tv.includes(e.toLowerCase()))return e.toLowerCase();const n=nv(e);if(1!==n.length)return e;let o=i;if(!o){const i=nv(t);if(1!==i.length)return e;o=iv(i[0])}if(!o)return e;const r=iv(n[0]);return r?e.replace(r,o):`${e} ${o}`})(e?.shadow?.boxShadow||n,n,sv(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,i))}function hv(e,t,i,n){const o=e?.title?.[t]||{},r=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(o.fontStyle,t);return{fontFamily:o.fontFamily||i.getStyle(`object.${n}`,`title.${t}`,"fontFamily"),color:o.color&&"none"!==o.color.color?i.getColorPickerColor(o.color,!0):i.getStyle(`object.${n}`,t,"color"),fontWeight:r.includes("bold")?"bold":"normal",fontStyle:r.includes("italic")?"italic":"normal",textDecoration:r.includes("underline")?"underline":"initial"}}const gv="#FFF",pv="#000",mv=1.5,fv=3,vv=(e,t)=>{let i=!1;const n=new Yf(e),o=new Yf(t);if(!(o.isInvalid()||n.isInvalid()||o.getAlpha()<1||n.getAlpha()<1)){try{i=Yf.getContrast(n,o)}catch(e){i=void 0}return i}};function _v(e,t=void 0,i=pv,n=gv){const o=new Yf(n),r=new Yf(e),s=new Yf(t);if(r.isInvalid()||s.isInvalid()||r.getAlpha()<1||s.getAlpha()<1)return t;const a=vv(o,r),l=vv(s,r),c=a>l||a>fv;let d;return d=t&&l>mv&&!c?t:c?n:i,d}const bv=["theme","selections"];function yv({app:e,themeApi:t,theme:i,components:n=[],checkboxes:o=!1}){const r=function(e=[]){const t={};return e.forEach((e=>{const i=e?.key;bv.includes(i)&&(t[i]=e)})),t}(n),s=(e,i)=>t.getStyle("object.listBox",e,i),a=function({theme:e,getListboxStyle:t,overrides:i,checkboxes:n}){const o=i.theme?.content?.fontColor?.color,r=o||t("content","color")||e.palette?.text.primary,s=!n&&(i.theme?.content?.useContrastColor??!0),a=i.selections?.colors||{},l=a.selected?.color||e.palette?.selected.main||"#009845",c=a.alternative?.color||e.palette?.selected.alternative||"#E4E4E4",d=a.excluded?.color||e.palette?.selected.excluded||"#A9A9A9",u=a.selectedExcluded?.color||e.palette?.selected.selectedExcluded||"#A9A9A9",h=a.possible?.color||t("","backgroundColor")||e.palette?.selected.possible||"#FFFFFF";let g=r||e.palette?.selected.selectedContrastText,p=r||e.palette?.selected.alternativeContrastText,m=r||e.palette?.selected.excludedContrastText,f=r||e.palette?.selected.selectedExcludedContrastText,v=r||e.palette?.selected.possibleContrastText;return s&&(g=_v(l,r),p=_v(c,r),m=_v(d,r),f=_v(u,r),v=_v(h,r)),{selected:l,alternative:c,excluded:d,selectedExcluded:u,possible:h,selectedContrast:g,alternativeContrast:p,excludedContrast:m,selectedExcludedContrast:f,possibleContrast:v}}({theme:i,getListboxStyle:s,overrides:r,checkboxes:o}),l=r.theme||{},c=l.header?.fontColor?.color||s("title.main","color"),d=function({themeApi:e,themeOverrides:t}){let i;const n=t?.background;return n?(i=n?.useExpression?dv({bgColor:n},e,"listBox"):e.getColorPickerColor(n,!0)?.color,i):i}({themeApi:t,themeOverrides:l}),u=l.background?.image?cv({bgImage:l.background.image},e):void 0,h=function(e){return _v("#fff",e("content","color"))}(s),g=l.header?.fontStyle||{},p=l.content?.fontStyle||{},m=(e,t,i)=>!0===e&&t||!1===e&&i||void 0;return{background:{backgroundColor:d||s("","backgroundColor")||i.palette.background.default,backgroundImage:u?.url&&!u?.url.startsWith("url(")?`url('${u.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:u?.size,backgroundPosition:u?.pos},header:{color:c,fontSize:l.header?.fontSize||s("title.main","fontSize"),fontFamily:l.header?.fontFamily||s("title.main","fontFamily"),fontWeight:m(g.bold,"bold","normal")||s("title.main","fontWeight")||"bold",textDecoration:g.underline?"underline":"initial",fontStyle:m(g.italic,"italic","normal")||s("title.main","fontStyle")||"initial"},content:{backgroundColor:o?void 0:a.possible,color:a.possibleContrast||s("content","color"),fontSize:l.content?.fontSize||s("content","fontSize"),fontFamily:l.content?.fontFamily||s("content","fontFamily"),fontWeight:m(p.bold,"bold","normal")||s("content","fontWeight")||"normal",textDecoration:p.underline?"underline":"initial",fontStyle:m(p.italic,"italic","normal")||s("content","fontStyle")||"initial"},search:{color:h,borderColor:i.palette.divider,highlightBorderColor:i.palette.primary.main,backgroundColor:"rgba(255, 255, 255, 0.7)"},selections:a}}function Cv({alignTo:e,anchorOrigin:t={vertical:"bottom",horizontal:"center"},transformOrigin:n={vertical:"top",horizontal:"center"},show:o,close:r,app:s,fieldName:a,stateName:l="$",autoFocus:c,components:d,checkboxes:u}){const h=Boolean(a?.qLibraryId),g=o&&Boolean(e.current),[p,m]=(0,i.useState)(0),f=ei(),v=(0,i.useRef)(),[_]=Mc({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:h?void 0:[a]},qLibraryId:h?a.qLibraryId:void 0}},s,a,l),b=(0,i.useCallback)((()=>{_.lock("/qListObjectDef")}),[_]),y=(0,i.useCallback)((()=>{_.unlock("/qListObjectDef")}),[_]),{translator:C,themeApi:w}=(0,i.useContext)(cc),S=(0,i.useRef)(),x=(0,i.useRef)(),[L]=Ff(s,_,x),[k]=Vc(_),[E]=(0,i.useState)((()=>Bf())),{checkboxes:D=u}=k||{},I=yv({themeApi:w,theme:f,components:d,checkboxes:D});if((0,i.useEffect)((()=>{L&&g&&(L.isModal(_)||L.goModal("/qListObjectDef"))}),[L,g]),!_||!k||!C)return null;const N=!0===k.qListObject.qDimensionInfo.qLocked,R=(e,t)=>{const i="escapeKeyDown"!==t;L.noModal(i),r()},q=Dm({layout:k,model:_,translator:C,selectionState:E}),T=function(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return Wf(t,"qSelected",0)+Wf(t,"qSelectedExcluded",0)+Wf(t,"qLocked",0)+Wf(t,"qLockedExcluded",0)>0}(k);return i.createElement(Ud,{open:g,onClose:R,anchorEl:e.current,anchorOrigin:t,transformOrigin:n,PaperProps:{style:{minWidth:"250px"}}},i.createElement(Mo,{container:!0,direction:"column",gap:0,ref:x},i.createElement(Mo,{item:!0,container:!0,style:{padding:f.spacing(1)}},i.createElement(Mo,{item:!0},N?i.createElement(So,{onClick:y,disabled:!N,size:"large"},i.createElement(jc,{title:C.get("Listbox.Unlock")})):i.createElement(So,{onClick:b,disabled:!T,size:"large"},i.createElement(Uc,{title:C.get("Listbox.Lock")}))),i.createElement(Mo,{item:!0,xs:!0}),i.createElement(Mo,{item:!0},i.createElement(wf,{more:{enabled:!N,actions:q,alignTo:S,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:L,onConfirm:R,onCancel:()=>R(0,"escapeKeyDown")}}))),i.createElement(Mo,{item:!0,xs:!0},i.createElement("div",{ref:S}),i.createElement(Mo,{item:!0,ref:v},i.createElement(Of,{styles:I,visible:!0,model:_,listCount:p,selections:L,selectionState:E,keyboard:{enabled:!1},autoFocus:c??!0})),i.createElement(Sm,{model:_,app:s,layout:k,selections:L,selectionState:E,direction:"ltr",onSetListCount:e=>m(e),onCtrlF:()=>{const e=v.current.querySelector("input");e?.focus()},styles:I}))))}function wv({field:e,api:t,stateIx:n=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=(()=>{})}){const{translator:a}=(0,i.useContext)(cc),l=r||(0,i.useRef)(),c=ei(),[d,u]=(0,i.useState)(!1),h=()=>{u(!1),s()},g=e.selections[n];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 y="";g.qTotal===_&&g.qTotal>1?y=a.get("CurrentSelections.All"):_>1&&g.qTotal?y=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(y=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[n]&&(y=`${e.states[n]}: ${y}`);const C=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:v}];C.forEach(((e,t)=>{e.offset=t?C[t-1].offset+C[t-1].ratio:0}));let w=null,S=null,x=null,L=null;return r||(w=i.createElement(Mo,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},i.createElement(zo,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},g.qField),i.createElement(zo,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},y)),g.qLocked?S=i.createElement(Mo,{item:!0},i.createElement(So,{size:"large"},i.createElement(jc,null))):g.qOneAndOnlyOne||(S=i.createElement(Mo,{item:!0},i.createElement(So,{title:a.get("Selection.Clear"),onClick:i=>{i.stopPropagation(),t.clearField(g.qField,e.states[n])},size:"large"},i.createElement(yr,null)))),x=i.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===b&&C.map((e=>i.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),L=i.createElement(Mo,{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&&i.createElement(Cv,{alignTo:l,show:d,close:h,app:t.model,fieldName:g.qField,stateName:e.states[n]}))),r?i.createElement(Cv,{alignTo:l,show:!0,close:h,app:t.model,fieldName:g.qField,stateName:e.states[n]}):L}const Sv=e=>{const t=i.useRef({});return i.useEffect((()=>{t.current=e})),t.current};function xv(e){return(0,Rt.Z)("MuiBadge",e)}const Lv=(0,Nt.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"]),kv=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Ev=(0,It.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Dv=(0,It.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.badge,t[i.variant],t[`anchorOrigin${(0,Gt.Z)(i.anchorOrigin.vertical)}${(0,Gt.Z)(i.anchorOrigin.horizontal)}${(0,Gt.Z)(i.overlap)}`],"default"!==i.color&&t[`color${(0,Gt.Z)(i.color)}`],i.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,St.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),Iv=i.forwardRef((function(e,t){var i,n,o,r,s,a;const l=(0,Dt.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:u,components:h={},componentsProps:g={},children:p,overlap:m="rectangular",color:f="default",invisible:v=!1,max:_=99,badgeContent:b,slots:y,slotProps:C,showZero:w=!1,variant:S="standard"}=l,x=(0,wt.Z)(l,kv),{badgeContent:L,invisible:k,max:E,displayValue:D}=function(e){const{badgeContent:t,invisible:i=!1,max:n=99,showZero:o=!1}=e,r=Sv({badgeContent:t,max:n});let s=i;!1!==i||0!==t||o||(s=!0);const{badgeContent:a,max:l=n}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:_,invisible:v,badgeContent:b,showZero:w}),I=Sv({anchorOrigin:c,color:f,overlap:m,variant:S,badgeContent:b}),N=k||null==L&&"dot"!==S,{color:R=f,overlap:q=m,anchorOrigin:T=c,variant:O=S}=N?I:l,M="dot"!==O?D:void 0,A=(0,St.Z)({},l,{badgeContent:L,invisible:N,max:E,displayValue:M,showZero:w,anchorOrigin:T,color:R,overlap:q,variant:O}),P=(e=>{const{color:t,anchorOrigin:i,invisible:n,overlap:o,variant:r,classes:s={}}=e,a={root:["root"],badge:["badge",r,n&&"invisible",`anchorOrigin${(0,Gt.Z)(i.vertical)}${(0,Gt.Z)(i.horizontal)}`,`anchorOrigin${(0,Gt.Z)(i.vertical)}${(0,Gt.Z)(i.horizontal)}${(0,Gt.Z)(o)}`,`overlap${(0,Gt.Z)(o)}`,"default"!==t&&`color${(0,Gt.Z)(t)}`]};return(0,Lt.Z)(a,xv,s)})(A),F=null!=(i=null!=(n=null==y?void 0:y.root)?n:h.Root)?i:Ev,B=null!=(o=null!=(r=null==y?void 0:y.badge)?r:h.Badge)?o:Dv,W=null!=(s=null==C?void 0:C.root)?s:g.root,V=null!=(a=null==C?void 0:C.badge)?a:g.badge,z=rs({elementType:F,externalSlotProps:W,externalForwardedProps:x,additionalProps:{ref:t,as:u},ownerState:A,className:(0,xt.Z)(null==W?void 0:W.className,P.root,d)}),H=rs({elementType:B,externalSlotProps:V,ownerState:A,className:(0,xt.Z)(P.badge,null==V?void 0:V.className)});return(0,Tt.jsxs)(F,(0,St.Z)({},z,{children:[p,(0,Tt.jsx)(B,(0,St.Z)({},H,{children:M}))]}))})),Nv=Iv,Rv=e=>br((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)),qv={item:"MultiState-item"},Tv=(0,It.ZP)(Mo)((({theme:e})=>({[`&.${qv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}})));function Ov({field:e,api:t,moreAlignTo:n=null,onClose:o=(()=>{})}){const[r,s]=(0,i.useState)(!!n),[a,l]=(0,i.useState)(-1),[c,d]=(0,i.useState)(n?n.current:null),u=n||(0,i.useRef)(),{translator:h}=(0,i.useContext)(cc),g=h.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;n||(m=i.createElement(i.Fragment,null,i.createElement(Mo,{item:!0,xs:!0,zeroMinWidth:!0},i.createElement(Nv,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},i.createElement(zo,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.name))),i.createElement(Mo,{item:!0},i.createElement("div",{style:{width:"12px"}})),i.createElement(Mo,{item:!0},i.createElement(So,{size:"large"},i.createElement(Rv,null)))));const f=i.createElement(kr,{dense:!0},i.createElement(Hr,{title:g,onClick:()=>{e.states.forEach((i=>t.clearField(e.name,i)))}},i.createElement(Pa,{variant:"contained",fullWidth:!0},g)),e.states.map(((n,o)=>i.createElement(Hr,{key:o,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},i.createElement(Vi,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},i.createElement(wv,{field:e,api:t,stateIx:o,skipHandleShowListBoxPopover:!0})))))),v=i.createElement(Ud,{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),_=n?v:i.createElement(Tv,{container:!0,gap:0,className:qv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),u.current=e.currentTarget,s(!r))}},m,r&&v,a>-1&&i.createElement(Cv,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return n&&a>-1?i.createElement(Cv,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const Mv="More",Av={item:`${Mv}-item`,badge:`${Mv}-badge`},Pv=(0,It.ZP)(Mo)((({theme:e})=>({[`&.${Av.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${Av.badge}`]:{padding:e.spacing(0,1)}})));function Fv({items:e=[],api:t}){const n=ei(),[o,r]=(0,i.useState)(!1),[s,a]=(0,i.useState)(-1),[l,c]=(0,i.useState)(null),d=(0,i.useRef)(),u=()=>{a(-1)};let h=null;return s>-1&&(h=e[s].states.length>1?i.createElement(Ov,{field:e[s],api:t,moreAlignTo:d,onClose:u}):i.createElement(wv,{field:e[s],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:u})),i.createElement(Pv,{container:!0,gap:0,className:Av.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},i.createElement(Mo,{item:!0},i.createElement(Vi,{borderRadius:n.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:n.palette.selected.main,color:n.palette.selected.mainContrastText}},i.createElement(zo,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),i.createElement(Mo,{item:!0},i.createElement(So,{size:"large"},i.createElement(Rv,null))),o&&i.createElement(Ud,{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"}}},i.createElement(kr,{dense:!0},e.map(((e,n)=>i.createElement(Hr,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,n)},i.createElement(Vi,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?i.createElement(Ov,{field:e,api:t}):i.createElement(wv,{field:e,api:t}))))))),h)}const Bv=120,Wv=72;function Vv(e,t,i="$"){e.qSelections.forEach((e=>{const n=e.qField,o=t[n]=t[n]||{name:n,states:[],selections:[]};-1===o.states.indexOf(i)&&(o.states.push(i),o.selections.push(e))}))}function zv({api:e,app:t}){const n=ei(),[o]=Pc(t),[r]=Vc(o),[s,a]=(0,i.useState)({items:[],more:[]}),[l]=mc(),[c,d]=Hc(),[u,h]=(0,i.useState)(0);return(0,i.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-Wv,i=Math.floor(t/Bv);h(i)}),[d]),(0,i.useEffect)((()=>{if(!(t&&o&&r&&u))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&Vv(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>Vv(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(r);a((i=>{const n=e;if((()=>{const{model:e}=l.get(t.id)||{};return"njsListbox"===e?.genericType})()&&n.length+1===i.items.length){const e=i.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:t}=e.selections[0];e.selections=[{qField:t}];const o=i.items.indexOf(e);n.splice(o,0,e)}let o=[];return u<n.length&&(o=n.splice(u-n.length)),{items:n,more:o}}))}),[t,o,r,e.isInModal(),u]),i.createElement(Mo,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map((t=>i.createElement(Mo,{item:!0,key:`${t.states.join("::")}::${t.name}`,style:{position:"relative",maxWidth:"240px",minWidth:`${Bv}px`,background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`}},t.states.length>1?i.createElement(Ov,{field:t,api:e}):i.createElement(wv,{field:t,api:e})))),s.more.length>0&&i.createElement(Mo,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:`${Wv}px`,background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`}},i.createElement(Fv,{items:s.more,api:e})))}const Hv=e=>br((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)),jv=e=>br((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)),Uv=(e,t,i)=>{const n=[...i.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(i.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(n)}],!0)};function $v({api:e,app:t}){const{translator:n}=(0,i.useContext)(cc),[o]=function(e){const[t]=Pc(e),[n]=Vc(t),[o]=zc(e),[r,s]=(0,i.useState)(null);return(0,i.useEffect)((()=>{o&&t&&n&&Uv(t,n,o)}),[o,t,n]),(0,i.useEffect)((()=>{if(!n)return;let e=!1,t=!1,i=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,i=i||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:i})}),[n]),[r,t,n]}(t);return i.createElement(Mo,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},i.createElement(Mo,{item:!0},i.createElement(So,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:n.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},i.createElement(Hv,null))),i.createElement(Mo,{item:!0},i.createElement(So,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:n.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},i.createElement(jv,null))),i.createElement(Mo,{item:!0},i.createElement(So,{disabled:!o||!o.canClear,title:n.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},i.createElement(Hm,null))))}const Zv=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Gv([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function Kv(){return Zv.map(Gv).join("")}function Xv({app:e}){const t=ei(),[n]=vc(e);return n?i.createElement(Mo,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"}},i.createElement(Mo,{item:!0,style:{borderRight:`1px solid ${t.palette.divider}`}},i.createElement($v,{api:n,app:e})),i.createElement(Mo,{item:!0,xs:!0,style:{backgroundColor:t.palette.background.darker,overflow:"hidden"}},i.createElement(zv,{api:n,app:e}))):null}let Yv;Yv="undefined"!=typeof window?window:"undefined"!=typeof self?self:s.g;let Qv=null,Jv=null;const e_=Yv.clearTimeout,t_=Yv.setTimeout,i_=Yv.cancelAnimationFrame||Yv.mozCancelAnimationFrame||Yv.webkitCancelAnimationFrame,n_=Yv.requestAnimationFrame||Yv.mozRequestAnimationFrame||Yv.webkitRequestAnimationFrame;null==i_||null==n_?(Qv=e_,Jv=function(e){return t_(e,20)}):(Qv=function([e,t]){i_(e),e_(t)},Jv=function(e){const t=n_((function(){e_(i),e()})),i=t_((function(){i_(t),e()}),20);return[t,i]});class o_ extends i.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:i}=this.props;if(this._parentNode){var n,o,r,s;const a=window.getComputedStyle(this._parentNode)||{},l=parseFloat(null!==(n=a.paddingLeft)&&void 0!==n?n:"0"),c=parseFloat(null!==(o=a.paddingRight)&&void 0!==o?o:"0"),d=parseFloat(null!==(r=a.paddingTop)&&void 0!==r?r:"0"),u=parseFloat(null!==(s=a.paddingBottom)&&void 0!==s?s:"0"),h=this._parentNode.getBoundingClientRect(),g=h.height-d-u,p=h.width-l-c,m=this._parentNode.offsetHeight-d-u,f=this._parentNode.offsetWidth-l-c;(e||this.state.height===m&&this.state.scaledHeight===g)&&(t||this.state.width===f&&this.state.scaledWidth===p)||(this.setState({height:m,width:f,scaledHeight:g,scaledWidth:p}),"function"==typeof i&&i({height:m,scaledHeight:g,scaledWidth:p,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=function(e){let t,i,n,o,r,s,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){const t=e.__resizeTriggers__,i=t.firstElementChild,n=t.lastElementChild,o=i.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,o.style.width=i.offsetWidth+1+"px",o.style.height=i.offsetHeight+1+"px",i.scrollLeft=i.scrollWidth,i.scrollTop=i.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)return;const t=this;s(this),this.__resizeRAF__&&Qv(this.__resizeRAF__),this.__resizeRAF__=Jv((function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(i){i.call(t,e)})))}))};let e=!1,l="";n="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),u="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let i=0;i<c.length;i++)if(void 0!==t.style[c[i]+"AnimationName"]){u=c[i],l="-"+u.toLowerCase()+"-",n=d[i],e=!0;break}}i="resizeanim",t="@"+l+"keyframes "+i+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+i+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){const l=r.ownerDocument,c=Yv.getComputedStyle(r);c&&"static"===c.position&&(r.style.position="relative"),function(i){if(!i.getElementById("detectElementResize")){const n=(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=i.head||i.getElementsByTagName("head")[0],s=i.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(i.createTextNode(n)),r.appendChild(s)}}(l),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const u=l.createElement("div");u.className="contract-trigger",r.__resizeTriggers__.appendChild(d),r.__resizeTriggers__.appendChild(u),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),n&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===i&&s(r)},r.__resizeTriggers__.addEventListener(n,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(n,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()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o=!1,disableWidth:r=!1,nonce:s,onResize:a,style:l={},tagName:c="div",...d}=this.props,{height:u,scaledHeight:h,scaledWidth:g,width:p}=this.state,m={overflow:"visible"},f={};let v=!1;return o||(0===u&&(v=!0),m.height=0,f.height=u,f.scaledHeight=h),r||(0===p&&(v=!0),m.width=0,f.width=p,f.scaledWidth=g),(0,i.createElement)(c,{ref:this._setRef,style:{...m,...l},...d},!v&&e(f))}}const r_=e=>br((e=>({...e,shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function s_(e){e?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function a_(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")}function l_({keyboard:e,hovering:t,updateKeyScroll:i,containerRef:n,currentScrollIndex:o,isModal:r,constraints:s}){return{handleKeyDown:t=>{const{keyCode:i,shiftKey:o=!1}=t.nativeEvent,s=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=r();switch(i){case Wh.TAB:if(l)o?Hh(a)||zh(a):zh(a)||Hh(a);else{if(!o)break;e.blur(!0)}s();break;case Wh.ENTER:case Wh.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),s();break;case Wh.ESCAPE:(t=>{const{currentTarget:i,target:o}=t,r=o.classList.contains("listbox-container"),s=a_(i.closest(".listbox-container")),a=1===s?.querySelectorAll(".listbox-container").length;if(r||a)e.blur(!0);else{s_(n.current),i.classList.add("last-focused"),e.blur();const t=i.closest(".listbox-container");t.setAttribute("tabIndex",-1),t?.focus()}})(t)}},handleOnMouseEnter:()=>{(()=>{const e=s?.select||s?.active,t=r();return e||t})()||(t.current=!0)},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current)return;const{keyCode:n,ctrlKey:r=!1,shiftKey:s=!1}=e;switch(n){case Wh.ARROW_UP:i({up:1});break;case Wh.ARROW_DOWN:i({down:1});break;case Wh.PAGE_UP:i({up:o.stop-o.start});break;case Wh.PAGE_DOWN:i({down:o.stop-o.start});break;case Wh.HOME:i({scrollPosition:r&&s?"overflowStart":"start"});break;case Wh.END:i({scrollPosition:r&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}function c_({isDetached:e,showToolbar:t,containerRef:i,isLocked:n,listboxSelectionToolbarItems:o,selections:r,keyboard:s}){return{show:t&&!e,popover:{show:t&&e,anchorEl:i.current},more:{enabled:!n,actions:o,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:t,api:r,onConfirm:()=>{s?.focus()},onCancel:()=>{s?.focus()}}}}const d_=(0,It.ZP)("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function u_({text:e}){const{translator:t}=(0,i.useContext)(cc);return i.createElement(d_,null,t.get(e))}function h_(){return h_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},h_.apply(this,arguments)}const g_="ListBoxInline",p_={listBoxHeader:`${g_}-listBoxHeader`,screenReaderOnly:`${g_}-screenReaderOnly`,listboxWrapper:`${g_}-listboxWrapper`},m_=(0,It.ZP)(Mo,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((({theme:e,containerPadding:t,isGridMode:i,styles:n})=>({...n.background,[`& .${p_.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${p_.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${p_.listboxWrapper}`]:{padding:t},"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus ::-webkit-scrollbar-track":{boxShadow:i?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}))),f_=(0,It.ZP)(Mo,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((({styles:e,isRtl:t})=>({flexDirection:t?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center",...e.header,"& *":{color:e.header.color}}))),v_=(0,It.ZP)(zo)((({styles:e})=>({...e.header,paddingRight:"1px"})));function __({options:e,layout:t}){const{app:n,direction:o,frequencyMode:r,checkboxes:s,search:a=!0,focusSearch:l=!1,rangeSelect:c=!0,model:d,selections:u,update:h,fetchStart:g,selectDisabled:p=(()=>!1),postProcessPages:m,calculatePagesHeight:f,showGray:v=!0,scrollState:_,renderedCallback:b,toolbar:y=!0,isPopover:C=!1,components:w}=e,S=ei(),x=(0,i.useCallback)((()=>{d.unlock("/qListObjectDef")}),[d]),{translator:L,keyboardNavigation:k,themeApi:E,constraints:D}=(0,i.useContext)(cc),{checkboxes:I=s}=t||{},N=yv({app:n,themeApi:E,theme:S,components:w,checkboxes:I}),R=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:n?.layout}),q=(0,i.useRef)(),[T,O]=Hc(),[M,A]=(()=>{const[e,t]=(0,i.useState)({});return[e,(0,i.useCallback)((e=>{t({current:e})}),[t])]})(),[P,F]=(0,i.useState)(!1),[B,W]=(0,i.useState)(!1),V=(0,i.useRef)(!1),[z,H]=(0,i.useState)({down:0,up:0,scrollPosition:""}),j=e=>H((t=>({...t,...e}))),[U,$]=(0,i.useState)({start:0,stop:0}),[Z]=vc(n),G=(0,i.useRef)(null),[K]=(0,i.useState)((()=>Bf())),X=function({containerRef:e,enabled:t}){const[n,o]=(0,i.useState)(!1);return{enabled:t,active:n,innerTabStops:!t||n,blur(i){if(!t)return;o(!1);const n=a_(e.current)||e.current?.parentElement;var r;r=e.current,r?.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),s_(e.current),i&&n&&(n.setAttribute("tabIndex",0),n.focus())},focus(){if(!t)return;o(!0);const i=e.current,n=i?.querySelector(".search input"),r=i?.querySelector(".value.last-focused"),s=i?.querySelector(".value.selector, .value"),a=i?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=n||r||s||a;l?.setAttribute("tabIndex",0),l?.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");e?.setAttribute("tabIndex",0),e?.focus()}}}({containerRef:q,enabled:k}),Y=(0,i.useCallback)((()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:n,appSelections:Z})),[n,Z]),Q=t?.qListObject.qDimensionInfo.qError,J=Q&&D.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[ee,te]=(0,i.useState)(!1),{handleKeyDown:ie,handleOnMouseEnter:ne,handleOnMouseLeave:oe,globalKeyDown:re}=(0,i.useMemo)((()=>l_({keyboard:X,hovering:V,updateKeyScroll:j,containerRef:q,currentScrollIndex:U,app:n,appSelections:Z,constraints:D,isModal:Y})),[X,V,j,q,U,n,Z,D,Y]),se=y&&(""===t?.title||!1===t?.showTitle)&&!C,ae=y&&""!==t?.title&&!1!==t?.showTitle||C;(0,i.useEffect)((()=>(document.addEventListener("keydown",re),()=>{document.removeEventListener("keydown",re)})),[re]),(0,i.useEffect)((()=>{const e=()=>{F(!0)},t=()=>{F(!1),"toggle"===a&&W(!1)};return C&&(u.isActive()||(u.begin("/qListObjectDef"),u.on("activated",e),u.on("deactivated",t)),F(C)),u&&(u.isModal()||(u.on("activated",e),u.on("deactivated",t)),F(u.isActive())),()=>{u&&u.removeListener&&(u.removeListener("activated",e),u.removeListener("deactivated",t))}}),[u,C]),(0,i.useEffect)((()=>{if(M&&M.current&&(a&&l||"toggle"===a&&B)){const e=M.current.querySelector("input");e&&e.focus()}}),[M&&M.current,B,a,l]);const{wildCardSearch:le,searchEnabled:ce,autoConfirm:de=!1,layoutOptions:ue={}}=t??{},he=!1!==ce&&"toggle"===a,ge=!0===t?.qListObject?.qDimensionInfo?.qLocked,pe=ge||he,me="H"===t?.qListObject?.qDimensionInfo?.qGrouping,fe=pe||me,ve=(pe?28:0)+(me?19:0),_e="rtl"===o,be=9-(pe?7:0),ye=_e?9-(fe?7:0):4;if((0,i.useEffect)((()=>{if(!G.current||!O)return;const e=function({containerRect:e,titleRef:t,iconsWidth:i,headerPaddingLeft:n,headerPaddingRight:o}){const r=n+o;return!!(e.width<(t?.current?.clientWidth??0)+i+r+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:O,titleRef:G,iconsWidth:ve,headerPaddingLeft:be,headerPaddingRight:ye});te(e)}),[G.current,O]),!d||!t||!L)return null;const Ce=Dm({layout:t,model:d,translator:L,selectionState:K,isDirectQuery:R}),we=(!0===a||"toggle"===a&&B)&&!p()&&!1!==ce,Se=ue.dense??!1,xe=()=>{W(!B)},Le=()=>{if("toggle"===a)xe();else{const e=M.current.querySelector("input");e?.focus()}},ke=e=>({...c_({isDetached:!C&&e,showToolbar:P,containerRef:q,isLocked:ge,listboxSelectionToolbarItems:Ce,selections:u,keyboard:X}),autoConfirm:de}),Ee=we&&"toggle"===a,De="grid"===ue?.dataLayout,Ie=function({isGridMode:e,dense:t,height:i,layoutOrder:n}){let o;if(e){let r;r=wg({isGridMode:e,dense:t})>i?"0px":"2px",o="row"===n?`${r} 4px`:`${r} 6px ${r} 4px`}else o=void 0;return o}({isGridMode:De,dense:Se,height:q.current?.clientHeight,layoutOrder:ue.layoutOrder}),Ne=D?.active?i.createElement(Nf,{title:L.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):i.createElement(So,{onClick:xe,tabIndex:-1,title:L.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},i.createElement(Nf,{style:{fontSize:"12px"}})),Re=p()?i.createElement(jc,{size:"large",style:{fontSize:"12px",padding:"7px"}}):i.createElement(So,{title:L.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:x,size:"large"},i.createElement(jc,{disableRipple:!0,style:{fontSize:"12px"}}));Q&&b?.();const qe=ae?du+10:0;return i.createElement(i.Fragment,null,se&&i.createElement(wf,h_({direction:o},ke(!0))),i.createElement(m_,{className:"listbox-container",container:!0,tabIndex:X.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Ie,styles:N,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:ie,onMouseEnter:ne,onMouseLeave:oe,ref:e=>{q.current=e,T(e)},isGridMode:De,"aria-label":X.active?L.get("Listbox.ScreenReaderInstructions"):""},ae&&i.createElement(f_,{item:!0,container:!0,styles:N,isRtl:_e,marginY:1,paddingLeft:`${be}px`,paddingRight:`${ye}px`},fe&&i.createElement(Mo,{item:!0,container:!0,alignItems:"center",width:ve},ge?Re:he&&Ne,me&&i.createElement(r_,{tabIndex:-1,title:L.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),i.createElement(Mo,{item:!0,xs:!0,minWidth:0,justifyContent:_e?"flex-end":"flex-start",className:p_.listBoxHeader},i.createElement(v_,{variant:"h6",noWrap:!0,ref:G,title:t.title,styles:N},t.title)),i.createElement(Mo,{item:!0,display:"flex"},i.createElement(wf,h_({direction:o},ke(ee))))),i.createElement(Mo,{item:!0,container:!0,direction:"column",height:"100%",minHeight:qe,role:"region","aria-label":L.get("Listbox.ResultFilterLabel")},i.createElement(Mo,{item:!0,ref:A},i.createElement(Of,{selections:u,selectionState:K,model:d,dense:Se,keyboard:X,visible:we,search:a,autoFocus:Ee,wildCardSearch:le,searchEnabled:ce,direction:o,hide:he&&xe,styles:N})),i.createElement(Mo,{item:!0,xs:!0,className:p_.listboxWrapper},Q?i.createElement(u_,{text:J}):i.createElement(o_,null,(({height:e,width:s})=>i.createElement(Sm,{model:d,app:n,constraints:D,layout:t,selections:u,selectionState:K,direction:o,frequencyMode:r,rangeSelect:c,checkboxes:I,height:e,width:s,update:h,fetchStart:g,postProcessPages:m,calculatePagesHeight:f,selectDisabled:p,keyboard:X,showGray:v,scrollState:_,keyScroll:{state:z,reset:()=>H({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:U,set:$},renderedCallback:b,onCtrlF:Le,isModal:Y,styles:N})))))))}const b_=i.memo(__),y_=function({options:e={}}){const{model:t}=e,[n]=Vc(t);return i.createElement(b_,{options:e,layout:n})},C_={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function w_(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const S_=(e={})=>{const{__DO_NOT_USE__:t={},...i}=e;return{...i,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 x_({app:e,fieldIdentifier:t,qId:n,stateName:o,element:r,options:s,renderedCallback:a}){const{isExistingObject:l,hasExternalSelectionsApi:c}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:n,options:s});l||Object.assign(s,{frequencyMode:w_(s.frequencyMode)});const[d,u]=(0,i.useState)(0);(0,i.useEffect)((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");u(d+1)}),[l,c]);const h=l?function({app:e,qId:t,options:n={}}){const[o,r]=(0,i.useState)(),[s]=Tc(),{sessionModel:a}=n,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(n).filter((e=>l.includes(e)));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,i.useEffect)((()=>{a?r(a):async function(){const i=s.get(t);if(i)r(i);else{const i=await e.getObject(t);s.set(i.id,i),i.once("closed",(()=>{s.clear(i.id)})),r(i)}}()}),[]),o}({app:e,qId:n,options:s}):function({app:e,fieldIdentifier:t,stateName:n,options:o={}}){const[r,s]=(0,i.useState)(""),[a,l]=(0,i.useState)(!0),[c,d]=(0,i.useState)(),[u,h]=(0,i.useState)(),g=o.title??u;let{histogram:p=!1,frequencyMode:m="N"}=o;r&&r.failedToFetchFieldDef&&(p=!1,m="N"),(0,i.useEffect)((()=>{const i=p||"N"!==m;t.qLibraryId&&i?async function(){try{const i=await e.getDimension(t.qLibraryId),n=await i.getLayout();h(n.qDim.title),"N"===n.qDim.qGrouping?s(n.qDim.qFieldDefs?n.qDim.qFieldDefs[0]:""):s({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),s({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),h(t))}),[]);const{dense:f,checkboxes:v,listLayout:_,properties:b={}}=o,y={dense:f};"horizontal"===_&&(y.dataLayout="grid",y.layoutOrder="column",y.maxVisibleColumns={auto:!0},y.maxVisibleRows={auto:!1,maxRows:1});const C=(0,i.useRef)();C.current||(C.current=Kv());const w=Zl()(!0,{},C_,{qInfo:{qId:C.current},qListObjectDef:{qStateName:n,qFrequencyMode:p&&"N"===m?"V":m},histogram:p,checkboxes:v,layoutOptions:y,title:g});let S;if(Zl()(!0,w,b),t.qLibraryId?(w.qListObjectDef.qLibraryId=t.qLibraryId,S=t.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[t],S=t),"P"!==m&&p)if(r?.multiFieldDim)w.frequencyMax="fetch";else{const e=t.qLibraryId?r:S;w.frequencyMax={qValueExpression:bm(e)}}const[x]=Mc(w,a?null:e,S,n);return(0,i.useEffect)((()=>{x&&d(x)}),[x]),c}({app:e,fieldIdentifier:t,stateName:o,options:s}),g=(0,i.useRef)(r),p=c?s.selectionsApi:Ff(e,h,[g,".njs-action-toolbar-more",".njs-action-toolbar-popover"],s)[0],m=(0,i.useMemo)((()=>({...s,selections:p,model:h,app:e,renderedCallback:a})),[s,p,h,e]);return p&&h?i.createElement(y_,{options:m}):null}const L_={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function k_({app:e,fieldIdentifier:t,stateName:n,element:o,options:r={}}){const[s,a]=(0,i.useState)(!!r.show);return i.createElement(Cv,{show:s,app:e,alignTo:{current:o},anchorOrigin:r.anchorOrigin,transformOrigin:r.transformOrigin,close:()=>{a(!1),r.onPopoverClose&&r.onPopoverClose()},fieldName:t,stateName:n,autoFocus:r.autoFocus,components:r.components})}function E_(e,t){for(let i=0;i<e.length;++i)e[i]>=0&&e[i]>=t&&++e[i];e.push(t)}function D_(e,t){let i=0;for(let n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i}const I_=e=>({qDef:{qFieldDefs:[e]}}),N_=e=>({qDef:{qDef:e}});function R_({dc:e,def:t,properties:i}){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 n=i,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(i){const r="string"==typeof i?I_(i):{...i,qDef:i.qDef||{}};return r.qDef.cId=r.qDef.cId||Kv(),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),E_(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,n)):(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(i){const o=e.qDimensions.splice(i,1)[0];return D_(e.qInterColumnSortOrder,i),t.dimensions.removed(o,n,i),o},addMeasure(i){const r="string"==typeof i?N_(i):{...i,qDef:i.qDef||{}};r.qDef.cId=r.qDef.cId||Kv(),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),E_(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,n)):(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(i){const o=e.qMeasures.splice(i,1)[0];D_(e.qInterColumnSortOrder,e.qDimensions.length+i),t.measures.removed(o,n,i)},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 q_=e=>({qDef:{qFieldDefs:[e]}});function T_({dc:e,def:t,properties:i}){e.qInitialDataFetch=e.qInitialDataFetch||[];const n=i,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(i){const o="string"==typeof i?q_(i):{...i,qDef:i.qDef||{}};return o.qDef.cId=o.qDef.cId||Kv(),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,n),o},removeDimension(i){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,n,i),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const O_=e=>{let t;var i;return t="string"==typeof e?Zl()(!0,{},C_,{qListObjectDef:(i=e,{qDef:{qFieldDefs:[i]}})}):e.qListObjectDef?Zl()(!0,{},C_,e):Zl()(!0,{},C_,{qListObjectDef:e}),t};function M_({children:e,halo:t}){return{async addDimension(i){const n=O_(i),o=n.qListObjectDef;if(o.qDef.cId=o.qDef.cId||Kv(),!n.title)if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),i=await e.getProperties();i.qDim.qLabelExpression?n.title={qStringExpression:{qExpr:i.qDim.qLabelExpression}}:n.title=i.qDim.title}else n.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:n,qChildren:[]})},addMeasure(){}}}function A_(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"}async function P_({sn:e,properties:t,fields:i,children:n},o){if(!i.length)return;const r=e.qae.data.targets[0];if(!r)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:s}=r,a=s.split("/");let l=t;for(let e=0;e<a.length;e++){const t=a[e];l=t?l[t]:l}const c=function(e){return e.match("/qListObjectDef")?T_:e.match("/qChildListDef")?M_:R_}(s),d=c({dc:l,def:r,properties:t,children:n,halo:o});for(let e=0;e<i.length;++e){const t=i[e];"measure"===A_(t)?await d.addMeasure(t):await d.addDimension(t)}}const F_=(e,t,i)=>{if(null==e||null==t)return i;const n=t.split(".");let o=e;for(let e=0;e<n.length;++e){const t=n[e];if(""!==t){if(void 0===o[t]||null===o[t])return i;o=o[t]}}return o},B_=(e,t,i)=>{if(null==e||null==t)return;const n=t.split("."),o=n[n.length-1];let r=e;for(let e=0;e<n.length-1;++e){const t=n[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+n[e+1])?{}:[]),r=r[t]}void 0!==i&&"__proto__"!==o&&"constructor"!==o?r[o]=i:delete r[o]},W_=e=>0===Object.keys(e).length&&e.constructor===Object,V_=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let i=e.indexOf(t[0]);if(-1!==i){for(let n=0;n<t.length;n++){const o=e.indexOf(t[n]);if(i>o)return!1;i=o}return!0}return!1},z_=function(e,t){let i;for(i=0;i<e.length;++i)e[i]>=0&&e[i]>=t&&++e[i];e.push(t)},H_=function(e,t){let i,n=0;for(i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n},j_=2**53-1;function U_(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function $_(e,t){const i=Zl()(!0,{},t,e);return F_(i,"qOtherTotalSpec.qOtherCounted")||B_(i,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),F_(i,"qOtherTotalSpec.qOtherLimit")||B_(i,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),i.hasOwnProperty("othersLabel")||(i.othersLabel="Others"),i}function Z_(e,t){return Zl()(!0,{},t,e)}function G_(e,t,i){return"function"==typeof e?e(t):Number.isNaN(+e)?i:e}const K_={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===F_(e,t)&&B_(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:U_,importCommonProperties:function(e,t,i){const n="masterobject"===F_(t,"properties.qInfo.qType")?"masterobject":F_(i,"qInfo.qType");B_(e,"qInfo.qType",n),e.visualization=i.visualization},copyPropertyIfExist:function(e,t,i){t.hasOwnProperty(e)&&(i[e]=t[e])},copyPropertyOrSetDefault:function(e,t,i,n){t.hasOwnProperty(e)?i[e]=t[e]:i[e]=n},createDefaultDimension:$_,createDefaultMeasure:Z_,resolveValue:G_,getHypercubePath:function(e){const t=F_(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 i=e.data[0],n=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=i.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==n)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=i.interColumnSortOrder.concat());o!==n;)o<n?(z_(t.qInterColumnSortOrder,o),++o):(--o,H_(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:i}){let n={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach((o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(n.qLayoutExclude.quarantine=Zl()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&i?B_(n,`${i}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||U_(o)?n[o]=e.properties[o]:n.qLayoutExclude.disabled[o]=e.properties[o]})),n=Zl()(!0,{},t,n),null===n.components&&(n.components=[]),n},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const i=e.data[0],n=t.dimensions||{max:0},o=t.measures||{max:0},r=G_(o.max,i.dimensions.length,j_),s=G_(o.min,i.dimensions.length,0);return{maxDimensions:G_(n.max,r,j_),minDimensions:G_(n.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:i,maxMeasures:n,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>n&&n>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>i||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!n&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:i,maxMeasures:n,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>i)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>n&&n>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&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:i,newHyperCubeDef:n,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)n.qDimensions.length<t?n.qDimensions.push($_(r.dimensions[s],o)):n.qLayoutExclude.qHyperCubeDef.qDimensions.push($_(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)n.qLayoutExclude.qHyperCubeDef.qDimensions.push($_(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)n.qDimensions.length<i?n.qDimensions.push($_(r.excludedDimensions[s],o)):n.qLayoutExclude.qHyperCubeDef.qDimensions.push($_(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:i,newHyperCubeDef:n,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)n.qMeasures.length<t?n.qMeasures.push(Z_(r.measures[s],o)):n.qLayoutExclude.qHyperCubeDef.qMeasures.push(Z_(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)n.qLayoutExclude.qHyperCubeDef.qMeasures.push(Z_(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)n.qMeasures.length<i?n.qMeasures.push(Z_(r.excludedMeasures[s],o)):n.qLayoutExclude.qHyperCubeDef.qMeasures.push(Z_(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:i}){if(t.dimensions&&"function"==typeof t.dimensions.added){const n=F_(e,i||"").qHyperCubeDef,o=[...n.qDimensions];n.qDimensions=[],o.forEach((i=>{n.qDimensions.push(i),t.dimensions.added(i,e)}))}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:i}){if(t.measures&&"function"==typeof t.measures.added){const n=F_(e,i||"").qHyperCubeDef,o=[...n.qMeasures];n.qMeasures=[],o.forEach((i=>{n.qMeasures.push(i),t.measures.added(i,e)}))}}},X_={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const i=function(e=1){const t={data:[],properties:{}};for(let i=0;i<e;++i)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),n=e.qProperty,o=F_(n,t||""),r=o.qHyperCubeDef,s=i.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();V_(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.qLayoutExclude,Object.keys(n).forEach((e=>{i.properties[e]=n[e]})),t&&(i.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((e=>{i.properties.hasOwnProperty(e)||(i.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(K_.restoreChangedProperties(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!W_(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude,i}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:i={},defaultPropertyValues:n={},hypercubePath:o}){const r={qChildren:[]},s=K_.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=F_(t,o||"").qHyperCubeDef,l=F_(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h}=K_.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:i}),{defaultDimension:g=K_.getDefaultDimension(),defaultMeasure:p=K_.getDefaultMeasure()}=n;return l.qDimensions.length=0,l.qMeasures.length=0,K_.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h})&&K_.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h,newHyperCubeDef:l}),K_.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),K_.addDefaultMeasures({exportFormat:e,maxMeasures:u,minMeasures:h,newHyperCubeDef:l,defaultMeasure:p}),K_.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),K_.copyPropertyIfExist("qMaxStackedCells",a,l),K_.copyPropertyIfExist("qNoOfLeftDims",a,l),K_.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),K_.copyPropertyOrSetDefault("qMode",a,l,"S"),K_.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),K_.copyPropertyOrSetDefault("qSortbyYValue",a,l),K_.copyPropertyOrSetDefault("qIndentMode",a,l),K_.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),K_.importCommonProperties(s,e,t),K_.updateDimensionsOnAdded({newProperties:s,dataDefinition:i,hypercubePath:o}),K_.updateMeasuresOnAdded({newProperties:s,dataDefinition:i,hypercubePath:o}),r.qProperty=s,r}(e)},Y_=e=>F_(e,"data.targets.0.propertyPath"),Q_=async({halo:e,model:t,cellRef:i,newType:n,properties:o})=>{const r=o?{qProperty:o}:await t.getFullPropertyTree(),s=i.current.getQae(),a=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return X_.exportProperties})(Y_(e)))(s);if(!a)throw new Error("Source chart does not support conversion");const l=await(async({halo:e,name:t,version:i})=>{const{types:n}=e;return await n.get({name:t,version:i}).supernova()})({halo:e,name:n}),c=l.qae,d=(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return X_.importProperties})(Y_(e)))(c);if(!d)throw new Error("Target chart does not support conversion");return d({exportFormat:a({propertyTree:r,hypercubePath:K_.getHypercubePath(s)}),initialProperties:{qInfo:{qType:n},visualization:n,...F_(c,"properties.initial",{})},dataDefinition:F_(c,"data.targets.0.",{}),hypercubePath:K_.getHypercubePath(c)})},J_={hypercube:X_};function eb(e){return(0,Rt.Z)("MuiIcon",e)}(0,Nt.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tb=["baseClassName","className","color","component","fontSize"],ib=(0,It.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"inherit"!==i.color&&t[`color${(0,Gt.Z)(i.color)}`],t[`fontSize${(0,Gt.Z)(i.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]}))),nb=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiIcon"}),{baseClassName:n="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium"}=i,l=(0,wt.Z)(i,tb),c=(0,St.Z)({},i,{baseClassName:n,color:r,component:s,fontSize:a}),d=(e=>{const{color:t,fontSize:i,classes:n}=e,o={root:["root","inherit"!==t&&`color${(0,Gt.Z)(t)}`,`fontSize${(0,Gt.Z)(i)}`]};return(0,Lt.Z)(o,eb,n)})(c);return(0,Tt.jsx)(ib,(0,St.Z)({as:s,className:(0,xt.Z)(n,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))}));nb.muiName="Icon";const ob=nb,rb=e=>br((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 sb({d:e}){const t=ei();let n="inherit",o=t.palette.success.main;e.missing?o=t.palette.warning.main:e.error&&(n="error",o=t.palette.error.main);const r={color:o},s=i.createElement(zo,{style:{lineHeight:"30px",paddingRight:t.spacing(1)}},i.createElement(ob,null,e.missing||e.error?i.createElement(rb,{style:r}):i.createElement(nu,{style:r})));return i.createElement(Mo,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},i.createElement(Mo,{item:!0},s),i.createElement(Mo,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},i.createElement(zo,{noWrap:!0,component:"p"},i.createElement(zo,{component:"span",variant:"subtitle2",color:n},e.description),i.createElement(zo,{component:"span"}," "),i.createElement(zo,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function ab({data:e}){const t=ei();return i.createElement(Mo,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,n)=>{const o=e.descriptions.map(((e,t)=>i.createElement(sb,{d:e,key:t})));return o.length>0&&i.createElement(Mo,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:t.spacing(2)}},i.createElement(zo,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function lb({title:e="Error",message:t="",data:n=[]}){return i.createElement(Mo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},i.createElement(Mo,{item:!0},i.createElement(rb,{style:{fontSize:"38px"}})),i.createElement(Mo,{item:!0},i.createElement(zo,{variant:"h6",align:"center","data-tid":"error-title"},e)),i.createElement(Mo,{item:!0},i.createElement(zo,{variant:"subtitle1",align:"center","data-tid":"error-message"},t)),i.createElement(ab,{data:n}))}function cb(){return cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},cb.apply(this,arguments)}const db="Progress",ub={root:`${db}-root`,front:`${db}-front`,back:`${db}-back`},hb=(0,It.ZP)("div")((({theme:e})=>({[`&.${ub.root}`]:{position:"relative",display:"inline-block"},[`& .${ub.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${ub.back}`]:{color:e.palette.divider}}))),gb={small:16,medium:32,large:64,xlarge:128};function pb({size:e="medium",...t}){const n=gb[e];return i.createElement(hb,{className:ub.root},i.createElement(sl,cb({variant:"determinate",value:100,className:ub.back,size:n,thickness:3},t)),i.createElement(sl,cb({variant:"indeterminate",disableShrink:!0,className:ub.front,size:n,thickness:3},t)))}function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},mb.apply(this,arguments)}const fb={stripes:"LongRunningQuery-stripes"},vb=(0,It.ZP)(Mo)((()=>({[`& .${fb.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 _b({cancel:e,translator:t,...n}){return i.createElement(i.Fragment,null,i.createElement(vb,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},i.createElement(Mo,{item:!0},i.createElement(pb,null)),i.createElement(Mo,{item:!0},i.createElement(zo,{variant:"h6",align:"center","data-tid":"update-active"},t.get("Object.Update.Active")))),i.createElement(Mo,mb({item:!0},n),i.createElement(Pa,{variant:"contained",onClick:e},t.get("Cancel"))))}function bb({retry:e,translator:t,...n}){return i.createElement(i.Fragment,null,i.createElement(Mo,{item:!0},i.createElement(rb,{style:{fontSize:"38px"}})),i.createElement(Mo,{item:!0},i.createElement(zo,{variant:"h6",align:"center","data-tid":"update-cancelled"},t.get("Object.Update.Cancelled"))),i.createElement(Mo,{item:!0},i.createElement(Pa,mb({variant:"contained",onClick:e},n),t.get("Retry"))))}function yb({canCancel:e,canRetry:t,api:n}){const{translator:o}=(0,i.useContext)(cc);return i.createElement(Mo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:fb.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&i.createElement(_b,{cancel:n.cancel,translator:o,className:fb.cancel}),t&&i.createElement(bb,{retry:n.retry,translator:o,className:fb.retry}))}function Cb(){return i.createElement(Mo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},i.createElement(pb,{size:"large"}))}const wb="Header",Sb={containerStyle:`${wb}-containerStyle`,containerTitleStyle:`${wb}-containerTitleStyle`},xb=(0,It.ZP)(Mo)((({theme:e})=>({[`&.${Sb.containerStyle}`]:{flexGrow:0},[`&.${Sb.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}}))),Lb=function({layout:e,sn:t,anchorEl:n,hovering:o,focusHandler:r,titleStyles:s={}}){const a=e.showTitles&&!!e.title,l=e.showTitles&&!!e.subtitle,c=e.qSelectionInfo&&e.qSelectionInfo.qInSelections,[d,u]=(0,i.useState)([]),[h,g]=Hc(),[p,m]=(0,i.useState)(!1);(0,i.useEffect)((()=>{t&&t.component&&t.component.isHooked&&t.component.observeActions((e=>{u([...e,...t&&t.selectionToolbar&&t.selectionToolbar.items||[]])}))}),[t]),(0,i.useEffect)((()=>{if(!g)return;const{width:e}=g;m(e<221)}),[g]);const f=a||l,v=[Sb.containerStyle,...f?[Sb.containerTitleStyle]:[]],_=(o||c)&&(p||!f),b=f&&!_&&!p,y=i.createElement(wf,{show:b,selections:{show:c,api:t.component.selections,onKeyDeactivate:r.refocusContent},actions:d,popover:{show:_,anchorEl:n},focusHandler:r});return i.createElement(xb,{ref:h,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},i.createElement(Mo,{item:!0,zeroMinWidth:!0,xs:!0},i.createElement(Mo,{container:!0,wrap:"nowrap",direction:"column"},a&&i.createElement(zo,{variant:"h6",noWrap:!0,className:"njs-cell-title",style:s.main},e.title),l&&i.createElement(zo,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:s.subTitle},e.subtitle))),i.createElement(Mo,{item:!0},y))},kb="Footer-itemStyle",Eb=(0,It.ZP)(Mo)((({theme:e})=>({[`& .${kb}`]:{minWidth:0,paddingTop:e.spacing(1)}}))),Db=function({layout:e,titleStyles:t={}}){return e&&e.showTitles&&e.footnote?i.createElement(Eb,{container:!0},i.createElement(Mo,{item:!0,className:kb},i.createElement(zo,{noWrap:!0,variant:"body2",className:"njs-cell-footer",style:t.footer},e.footnote))):null};class Ib{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 Nb=function({sn:e,snOptions:t,snPlugins:n,layout:o,appLayout:r,halo:s}){const{component:a}=e,{theme:l,language:c,constraints:d,interactions:u,keyboardNavigation:h}=(0,i.useContext)(cc),[g]=(0,i.useState)((()=>new Ib)),[p,m]=(0,i.useState)(!1),[f,v]=(0,i.useState)(0),[_,b,y]=Hc(),[C,w]=(0,i.useState)(null),S=(0,i.useCallback)((e=>{e&&w(e)}),[]);return(0,i.useEffect)((()=>{if(C)return a.created({options:t}),a.mounted(C),m(!0),()=>{g.stop(),a.willUnmount()}}),[C,a]),(0,i.useEffect)((()=>{p&&C&&b&&(!a.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||g.schedule((()=>{const i=[];return d.passive||i.push("passive"),d.active||i.push("interact"),d.select||i.push("select"),d.edit||i.push("edit"),s.app&&s.app.session&&i.push("fetch"),Promise.resolve(a.render({layout:o,options:t,plugins:n,embed:s.public.nebbie,context:{constraints:d,interactions:u,theme:s.public.theme,appLayout:r,keyboardNavigation:h,...a.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:i}}})).then((e=>{!1!==e&&(0===f&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),v(f+1))}))})))}),[b,t,n,C,y,o,r,l,c,d,u,p,h]),i.createElement("div",{ref:_,"data-render-count":f,style:{position:"relative",height:"100%"},className:"njs-viz"},i.createElement("div",{ref:S,style:{position:"absolute",width:"100%",height:"100%"}}))},Rb=(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 qb({delay:e=750}){const[t,n]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const t=setTimeout((()=>n(!0)),e);return()=>clearTimeout(t)}),[]),t?i.createElement(Cb,null):null}const Tb=e=>!e.qError||7005===e.qError.qErrorCode,Ob=(e,t,i,n,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?n:s?l||o:r&&t[e].qFallbackTitle||""}`,d=i(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}})),Mb=e=>e&&(Array.isArray(e)?e:[e])||[],Ab=(e,t,i,n)=>{const o=n.dimensions.min(),r=n.measures.min(),s=n.resolveLayout(t);return{reqDimErrors:Ob(o,Mb(s.qDimensionInfo||s.qItems),(e=>n.dimensions.description(i,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Ob(r,Mb(s.qMeasureInfo),(e=>n.measures.description(i,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Pb=(0,i.forwardRef)((({halo:e,model:t,initialSnOptions:n,initialSnPlugins:o,initialError:r,onMount:s,currentId:a,emitter:l},c)=>{const{app:d,types:u}=e,{nebbie:h}=e.public,{theme:g,translator:p,language:m,keyboardNavigation:f,disableCellPadding:v=!1}=(0,i.useContext)(cc),_=ei(),[b,y,C]=Hc(),[w,S]=(0,i.useReducer)(Rb,{loading:!1,loaded:!1,longRunningQuery:!1,error:(x=r)?{title:x.message}:null,sn:null,visualization:null});var x;const[L,{validating:k,canCancel:E,canRetry:D},I]=Vc(t),[N]=zc(d),[R,q,T]=Hc(),[O,M]=(0,i.useState)(n),[A,P]=(0,i.useState)(o),F=`njs-cell-${a}`,[B]=Ff(d,t,[`#${F}`,".njs-action-toolbar-popover"]),[W,V]=(0,i.useState)(!1),z=(0,i.useRef)({enter:null,leave:null}),{titleStyles:H,bgColor:j,bgImage:U,border:$,borderRadius:Z,boxShadow:G}=((e,t,n,o)=>(0,i.useMemo)((()=>{if(e&&t){const i=e.components?e.components.find((e=>"general"===e.key)):null,o={main:hv(i,"main",t,e.visualization),footer:hv(i,"footer",t,e.visualization),subTitle:hv(i,"subTitle",t,e.visualization)},r=dv(i,t,e.visualization),s=cv(i,n),a=function(e,t,i){const n=sv(e?.borderColor,"","borderColor",t,i),o=e?.borderWidth||ov("","borderWidth",t,i);return o&&n?`${o} solid ${n}`:void 0}(i,t,e.visualization),l=function(e,t,i){return e?.borderRadius||ov("","borderRadius",t,i)}(i,t,e.visualization);return{titleStyles:o,bgColor:r,bgImage:s,border:a,borderRadius:l,boxShadow:uv(i,t,e.visualization)}}return{}}),[e,t,n,o]))(L,e.public.theme,e.app,g),K=(0,i.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,i.useEffect)((()=>{Mf(K.current)}),[]),K.current.blurCallback=t=>{e.root.toggleFocusOfCells(),t&&T&&T.focus()},K.current.refocusContent=()=>{w.sn.component&&"function"==typeof w.sn.component.focus&&w.sn.component.focus()},(0,i.useEffect)((()=>{if(r)return void s();if(!N||!L)return;if(w.visualization===L.visualization&&w.sn)return void(async e=>{const[i,n]=await(async(e,t,{targets:i},n)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,i)=>{let n=!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(i),p=Mb(g.qDimensionInfo||g.qItems).filter(Tb),m=Mb(g.qMeasureInfo).filter(Tb);if(o+=u,r+=h,(p.length<u||m.length<h)&&(n=!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:n,aggMinD:o,aggMinM:r,hasLayoutErrors:s,layoutErrors:l}})(e,i,t),c=[],d=[];let u=null;for(let r=0;r<i.length;++r){const s=i[r];if(!a&&o){const i=u||await n.getProperties();u=i;const o=Ab(e,t,i,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,L,e.generator.qae.data,t);S(i?{type:"ERROR",error:n}:{type:"RENDER"}),(({sn:e,layout:t,model:i})=>{const n=e&&e.component&&e.component.selections;if(n&&n.id&&i.id&&n.id===i.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!n.isModal()){const{targets:t}=e.generator.qae.data,i=t[0].propertyPath;n.goModal(i)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||n.isModal()&&n.noModal()}})({sn:w.sn,layout:L,model:t})})(w.sn);const e=u.getSupportedVersion(L.visualization,L.version);return(async(e,i)=>{S({type:"LOADING"}),await(async({dispatch:e,types:t,visualization:i,version:n,model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c,onMount:d})=>{try{const u=await(async({types:e,name:t,version:i})=>await e.get({name:t,version:i}).supernova())({types:t,name:i,version:n}),h=u.create({model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c});h&&(e({type:"LOADED",sn:h,visualization:i}),d())}catch(t){e(n?{type:"ERROR",error:{title:t.message}}:{type:"ERROR",error:{title:`Could not find a version of '${i}' that supports current object version. Did you forget to register ${i}?`}}),d()}})({dispatch:S,types:u,visualization:e,version:i,model:t,app:d,selections:B,nebbie:h,focusHandler:K.current,emitter:l,onMount:s})})(L.visualization,e),()=>{}}),[u,w.sn,t,B,L,N,m]),(0,i.useEffect)((()=>{if(!k)return;const e=setTimeout((()=>S({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[k]),(0,i.useImperativeHandle)(c,(()=>({getQae:()=>w.sn.generator.qae,toggleFocus(e){"function"==typeof w.sn.component.focus&&(e?w.sn.component.focus():w.sn.component.blur())},setSnOptions:M,setSnPlugins:P,getImperativeHandle:()=>w.sn?.component&&"function"==typeof w.sn.component.getImperativeHandle?w.sn.component.getImperativeHandle():{},async takeSnapshot(){const{width:e,height:t}=y;let i=JSON.parse(JSON.stringify(L));return"function"==typeof w.sn.component.setSnapshotData&&(i=await w.sn.component.setSnapshotData(i)||i),{key:String(+Date.now()),meta:{language:p.language(),theme:_.name,appLayout:N,size:{width:Math.round(e),height:Math.round(t)}},layout:i}},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)}})),[w.sn,q,y,L,_.name,N]);let X=null;return w.loading&&!w.longRunningQuery?X=i.createElement(qb,null):w.error?X=i.createElement(lb,w.error):w.loaded&&(X=i.createElement(Nb,{key:L.visualization,sn:w.sn,halo:e,snOptions:O,snPlugins:A,layout:L,appLayout:N})),i.createElement(Td,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:j||"unset",backgroundImage:U&&U.url?`url(${U.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:U&&U.size,backgroundPosition:U&&U.pos,border:$,borderRadius:Z,boxShadow:G,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:b,id:F,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))}},i.createElement(Mo,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...v?{}:{padding:_.spacing(1)},...w.longRunningQuery?{opacity:"0.3"}:{}}},C&&L&&w.sn&&i.createElement(Lb,{layout:L,sn:w.sn,anchorEl:C,hovering:W,focusHandler:K.current,titleStyles:H}," "),i.createElement(Mo,{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:R},X),C&&L&&w.sn&&i.createElement(Db,{layout:L,titleStyles:H})),w.longRunningQuery&&i.createElement(yb,{canCancel:E,canRetry:D,api:I}))}));function Fb(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Bb(e="/",t,i){const n=[];return Object.keys(t).forEach((o=>{const r=t[o];var s,a;"object"!=typeof i[o]||"object"!=typeof r||Array.isArray(r)?(s=r,a=i[o],(Fb(s)&&Fb(a)?JSON.stringify(s)===JSON.stringify(a):!Array.isArray(s)&&!Array.isArray(a)&&s===a)||n.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):n.push(...Bb(`${e}${o}/`,t[o],i[o]))})),n}function Wb(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 Vb=e=>!(!e||e.qHasSoftPatches||e.qExtendsId||!((e.qMeta?.privileges||[]).indexOf("update")>-1)),zb=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),Hb=Zl().bind(null,!0),jb={},{isArray:Ub}=Array;function $b(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Zb(e){return void 0===e}function Gb(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Kb(e,t){const i=t.substring(1).split("/").slice(0,-1);let n;return i.forEach(((t,o)=>{if(o===i.length)return;n=+t;const r=isNaN(n)?{}:[];e[n||t]=Zb(e[n||t])?r:e[t],e=e[n||t]})),e}function Xb(e,t){let i=!0;if($b(e)&&$b(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((n=>{Xb(e[n],t[n])||(i=!1)})),i);if(Ub(e)&&Ub(t)){if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i+=1)if(!Xb(e[i],t[i]))return!1;return!0}return e===t}jb.generate=function(e,t,i){i=i||"";let n=[];return Object.keys(t).forEach((o=>{const r=function(e){return e?Hb({},{val:e}).val:e}(t[o]),s=e[o],a=`${i}/${o}`;Xb(r,s)||Gb(t,o)||(Zb(s)?n.push({op:"add",path:a,value:r}):$b(r)&&$b(s)?n=n.concat(jb.generate(s,r,a)):Ub(r)&&Ub(s)?n=n.concat(function(e,t,i){let n=[];const o=e.slice();let r=-1;function s(e,t,i){if(e[i]&&Zb(e[i].qInfo))return null;if(e[i]&&e[i].qInfo.qId===t)return i;for(let i=0,n=e.length;i<n;i+=1)if(e[i]&&e[i].qInfo.qId===t)return i;return-1}if(Xb(t,o))return n;if(!Zb(t[0])&&Zb(t[0].qInfo))return n.push({op:"replace",path:i,value:t}),n;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(n.push({op:"remove",path:`${i}/${e}`}),o.splice(e,1)):n=n.concat(jb.generate(o[e],t[r],`${i}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(n.push({op:"add",path:`${i}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(n.push({op:"move",path:`${i}/${e}`,from:`${i}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return n}(s,r,a)):n.push({op:"replace",path:`${i}/${o}`,value:r}))})),Object.keys(e).forEach((o=>{Zb(t[o])&&!Gb(e,o)&&n.push({op:"remove",path:`${i}/${o}`})})),n},jb.apply=function(e,t){t.forEach((t=>{let i=Kb(e,t.path),n=t.path.split("/").splice(-1)[0],o=n&&isNaN(+n)?i[n]:i[+n]||i;const r=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,o=e),"add"===t.op||"replace"===t.op)if(Ub(i))"-"===n&&(n=i.length),i.splice(+n,"add"===t.op?0:1,t.value);else if(Ub(o)&&Ub(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if($b(o)&&$b(t.value))s=o,Object.keys(s).forEach((e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!Gb(s,e)&&delete s[e]})),Hb(o,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[n]=t.value}else if("move"===t.op){const o=Kb(e,t.from);Ub(i)?i.splice(+n,0,o.splice(+r,1)[0]):(i[n]=o[r],delete o[r])}else"remove"===t.op&&(Ub(i)?i.splice(+n,1):delete i[n]);var s}))},jb.clone=function(e){return Hb({},e)},jb.createPatch=function(e,t,i){const n={op:e.toLowerCase(),path:i};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},jb.updateObject=function(e,t){Object.keys(e).length?jb.apply(e,jb.generate(e,t)):Hb(e,t)};const Yb=jb,Qb=e=>t=>{const i=(n={...t,action(){"function"==typeof t.action&&t.action.call(i,e),i.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(i,e),active:"function"==typeof t.active?function(){return t.active.call(i,e)}:void 0},Object.keys(ul().prototype).forEach((e=>{n[e]=ul().prototype[e]})),ul().init(n),n);var n;return i};let Jb,ey;function ty(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let i=0;i<t.length;i++)if(e[i]!==t[i])return!0;return!1}function iy(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 ny(e){ry(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 oy(e){if(e.__hooks.obsolete)return Promise.resolve();ey=-1,Jb=e;let t=-1;Jb.__hooks.initiated&&(t=Jb.__hooks.list.length);try{Jb.fn.call(null)}catch(e){console.error(e)}Jb.__hooks.initiated=!0,t>-1&&t!==Jb.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const i=Jb.__hooks;return cy(Jb),ey=void 0,Jb=void 0,i.chain.promise||(i.chain.promise=new Promise((e=>{i.chain.resolve=e}))),function(e){ry(e.pendingLayoutEffects)}(i),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){ry(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)})))}(i),i.chain.promise}function ry(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 sy(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 ay(e,t,i,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,i,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function ly(e){return e.__hooks.imperativeHandle}function cy(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function dy(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,cy(e))}function uy(e){if(void 0===Jb)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Jb.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function hy(e){return uy(++ey),Jb.context[e]}function gy(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function py(e){return{__hooked:!0,fn:e,initiate:iy,run:oy,teardown:ny,runSnaps:sy,runMenu:ay,focus:jy,blur:Uy,observeActions:dy,getImperativeHandle:ly,updateRectOnNextRun:gy}}function my(e){const t=uy(++ey);if(!t.value){t.component=Jb;const i=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 i="function"==typeof e?e(t.value[0]):e;var n;i!==t.value[0]&&(t.value[0]=i,(n=t.component).__hooks.micro||(n.__hooks.micro=setTimeout((()=>{n.__hooks.micro=null,oy(n)}),0)))};t.value=["function"==typeof e?e():e,i]}return t.value}function fy(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const i=uy(++ey);ty(i.value?i.value[1]:void 0,t)&&(i.value=[e,t],-1===Jb.__hooks.pendingEffects.indexOf(i)&&Jb.__hooks.pendingEffects.push(i))}function vy(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const i=uy(++ey);ty(i.value?i.value[1]:void 0,t)&&(i.value=[e,t],Jb.__hooks.pendingLayoutEffects.push(i))}function _y(e,t){t||console.warn("useMemo called without dependencies.");const i=uy(++ey);return ty(i.value?i.value[0]:void 0,t)&&(i.value=[t,e()]),i.value[1]}function by(e,t){const[i,n]=my((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=uy(++ey);return o.component||(o.component=Jb),vy((()=>{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(),n({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),n({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[i.resolved,i.rejected]}function yy(){return hy("element")}function Cy(){const e=yy(),t=Jb.__hooks.resizer,[i,n]=my((()=>{const{left:t,top:i,width:n,height:o}=e.getBoundingClientRect();return{left:t,top:i,width:n,height:o}}));return t.current=i,-1===t.setters.indexOf(n)&&t.setters.push(n),t.update&&t.resize&&(t.update=!1,t.resize()),vy((()=>{if(t.initiated)return;t.initiated=!0;const i=()=>{const{left:i,top:n,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===i&&s.top===n||t.setters.forEach((e=>e({left:i,top:n,width:o,height:r})))};if(t.resize=()=>{i()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let n=new ResizeObserver(i);return n.observe(e),()=>{n.unobserve(e),n.disconnect(e),n=null,t.resize=void 0}}}),[e]),i}function wy(){return hy("layout")}function Sy(){const e=hy("layout"),[t]=my({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function xy(){return hy("appLayout")}function Ly(){const e=hy("model");return e&&e.session?e:void 0}function ky(){const e=hy("app");return e&&e.session?e:void 0}function Ey(){const e=hy("global");return e&&e.session?e:void 0}function Dy(){return hy("selections")}function Iy(){return hy("theme")}function Ny(){return hy("nebbie")}function Ry(){return hy("translator")}function qy(){return hy("deviceType")}function Ty(){return hy("plugins")}function Oy(e,t){const[i]=my({action(){i._config.action.call(null)}});return i.component||(i.component=Jb,Jb.__hooks.actions.list.push(i)),_y((()=>{const t=e();i._config=t,i.active=t.active||!1,i.disabled=t.disabled||!1,i.hidden=t.hidden||!1,i.label=t.label||"",i.getSvgIconShape=t.icon?()=>t.icon:void 0,i.key=t.key||i.component.__hooks.actions.list.length,i.component.__hooks.actions.changed=!0}),t),i.action}function My(){return console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),hy("constraints")}function Ay(){return hy("interactions")}function Py(){return hy("options")}function Fy(e,t){const i=uy(++ey);if(!i.imperative){if(Jb.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");i.imperative=!0}if(ty(i.value?i.value[0]:void 0,t)){const n=e();i.value=[t,n],Jb.__hooks.imperativeHandle=n}}function By(e){const t=uy(++ey);t.value||(t.value=1,Jb.__hooks.snaps.push(t)),t.fn=e}function Wy(e){const t=uy(++ey);t.value||(t.value=1,Jb.__hooks.menus.push(t)),t.fn=e}function Vy(){uy(++ey);const e=Jb.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function zy(){return hy("emitter")}function Hy(){const e=hy("keyboardNavigation"),t=hy("focusHandler");if(!Jb.__hooks.accessibility.exitFunction){const e=function(e=!1){const i=this.__hooks.accessibility;i.enabled&&i.active&&(Uy(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Jb);Jb.__hooks.accessibility.exitFunction=e;const i=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),jy(this))}.bind(Jb);Jb.__hooks.accessibility.focusFunction=i;const n=function(e=!1){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Jb);Jb.__hooks.accessibility.focusSelectionFunction=n}const i=Jb.__hooks.accessibility.focusFunction,n=Jb.__hooks.accessibility.exitFunction,o=Jb.__hooks.accessibility.focusSelectionFunction,[r,s]=my({active:!1,enabled:e,blur:n,focus:i,focusSelection:o});return Jb.__hooks.accessibility.setter=s,Jb.__hooks.accessibility.enabled=e,fy((()=>s({active:!1,enabled:e,blur:n,focus:i,focusSelection:o})),[e]),r}function jy(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 Uy(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 $y={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Zy=Object.keys($y),Gy=e=>(Object.keys(ul().prototype).forEach((t=>{e[t]=ul().prototype[t]})),ul().init(e),e);function Ky(e,t,i){"function"==typeof e.component&&(e.component=py(e.component));const[n,o]=e.component&&e.component.__hooked?function(e,t,i){e.component.run!==oy&&console.warn("Detected multiple supernova modules, this might cause problems.");const n=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const r={},s=["appLayout","constraints","interactions"],a={},l={};t.model&&t.model.session||(a.select=!0,a.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:n,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:i.deviceType,theme:void 0,translator:i.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:a,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(i){this.context.element=i,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let i=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(i=!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,i=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let n=!1;Object.keys(t.options).forEach((i=>{e[i]=t.options[i],this.context.options[i]!==t.options[i]&&(n=!0)})),n&&(this.context.options=e,i=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,i)=>{this.context.plugins[i]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],i=!0)}s.forEach((e=>{const n=t.context;if(n&&Object.prototype.hasOwnProperty.call(n,e)){let t=JSON.stringify(n[e]);"constraints"===e&&(t=JSON.stringify({...n[e],...a})),"interactions"===e&&(t=JSON.stringify({...n[e],...l})),t!==r[e]&&(i=!0,r[e]=t,this.context[e]=JSON.parse(t))}}))}else i=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(i=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(i=!0,r.language=c.context.translator.language()),i?(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,i,n){return e.component.runMenu(this,t,i,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(c.context[e])})),r.themeName=c.context.theme?c.context.theme.name():void 0,r.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,i):function(e,t){console.warn("Obsolete API - time to get hooked!");const i={...$y};Gy(i);const n={emit(...e){i.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==Zy.indexOf(t)?i[t]=e.component[t].bind(n):n[t]=e.component[t]}));const o=function({sn:e,component:t}){const i={},n=[],o=Qb(t);return((e.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=o(e);i[e.key]=t,n.push(t)})),(e.definition.actions||[]).forEach((e=>{const t=o(e);i[e.key]=t})),{actions:i,selectionToolbarItems:n,destroy(){n.length=0}}}({sn:e,component:n}),r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(n,{model:t.model,app:t.app,global:r,selections:t.selections,actions:o.actions}),Object.assign(i,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[i,o]}(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(...i){return e.qae.properties.onChange.call({model:t.model},...i),t.model.__snInterceptor.setProperties.call(this,...i)},t.model.applyPatches=function(i,n){const o=n?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const r=Yb.clone(o),s=i.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));Yb.apply(o,s),e.qae.properties.onChange.call({model:t.model},o);const a=Yb.generate(r,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,a,n)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:n,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const Xy=()=>{};function Yy(e,t){return void 0===e?()=>t:()=>e}function Qy(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Yy(t.min,0),max:"function"==typeof t.max?t.max:Yy(t.max,1e3),added:t.added||t.add||Xy,description:t.description||Xy,moved:t.moved||t.move||Xy,removed:t.removed||t.remove||Xy,replaced:t.replaced||t.replace||Xy,isDefined:()=>!!e}}const Jy=(e,t,i)=>{const n=t.split("/");let o=e;if(void 0===o)return i;for(let e=0;e<n.length;++e)if(""!==n[e]){if(void 0===o[n[e]])return i;o=o[n[e]]}return o};function eC(e){const t=e.path||"/qHyperCubeDef",i=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(i)){const e=i.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error(`Incorrect definition for ${e} at ${t}. Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:i,resolveLayout:e=>Jy(e,i,{}),dimensions:Qy(e.dimensions),measures:Qy(e.measures)}}function tC(e={}){let t,i=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(i=e.properties.initial,t=e.properties.onChange),{properties:{initial:i,onChange:t},data:{targets:((e.data||{}).targets||[]).map(eC)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function iC(e,t){let i;i="function"==typeof e?e(t):e;const n={qae:tC(i.qae),component:i.component||{},create:e=>Ky(n,e,t),definition:{}};return Object.keys(i).forEach((e=>{n[e]||(n.definition[e]=i[e])})),n}const nC=(e,t,i)=>{if(!e)return Promise.resolve();let n=Yb.generate(t,i);return Zl()(!0,t,i),n&&n.length?(n=n.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,n,!0):e.applyPatches(n,!0)):Promise.resolve()},oC=()=>{};async function rC(e,t,n,o,s=(async()=>{})){const a=function({model:e,halo:t,initialError:n,onDestroy:o=(async()=>{})}={}){let s=oC,a=null,l=null,c=null,d=null;const u=new Promise((e=>{c=e})),h=new Promise((e=>{d=e})),g=e=>()=>{e&&e(),d()};let p={},m=[];const f=new(ul()),v={id:e.id,model:e,async destroy(){await o(),s(),s=oC},async convertTo(i,n=!0,o=!1){if(n){const n=await e.getLayout();if(Vb(n)&&!o){const n=await Q_({halo:t,model:e,cellRef:a,newType:i});return await zb(e,n.qProperty),n}const r=await e.getEffectiveProperties(),s=await Q_({halo:t,model:e,cellRef:a,newType:i,properties:r}),l=s.qProperty;return await nC(e,r,l),s}return await Q_({halo:t,model:e,cellRef:a,newType:i})},addListener(e,t){f.addListener(e,t)},removeListener(e,t){f.removeListener(e,t)},getImperativeHandle:async()=>(await h,a.current.getImperativeHandle()),__DO_NOT_USE__:{mount(o){if(l)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return l=o,[s,a]=function({halo:e,element:t,model:n,initialSnOptions:o,initialSnPlugins:s,onMount:a,emitter:l,initialError:c}){const{root:d}=e,u=i.createRef(),h=Kv(),g=r.createPortal(i.createElement(Pb,{ref:u,halo:e,model:n,currentId:h,initialSnOptions:o,initialSnPlugins:s,initialError:c,onMount:a,emitter:l}),t,h),p=()=>{d.remove(g),n.removeListener("closed",p)};return n.on("closed",p),d.add(g),d.addCell(h,u),[p,u]}({halo:t,element:o,model:e,initialSnOptions:p,initialSnPlugins:m,initialError:n,onMount:c,emitter:f}),u},async applyProperties(t){const i=Bb("/",t,await e.getEffectiveProperties());if(i.length)return e.applyPatches(i,!0)},options(e){(async e=>{const t=e.onInitialRender;l?(async()=>{await u,a.current.setSnOptions({...p,...e,onInitialRender:g(t)})})():p={...p,...e,onInitialRender:g(t)}})(e)},plugins(e){(async e=>{Wb(e),l?(async()=>{await u,a.current.setSnPlugins(e)})():m=e})(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e,convert:{async toType(i){const n=await e.getEffectiveProperties(),o=await Q_({halo:t,model:e,cellRef:a,newType:i,properties:n}),r=o.qProperty;return await nC(e,n,r),o},async revert(){await e.clearSoftPatches()}}}};return v}({model:e,halo:n,initialError:o,onDestroy:s});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}async function sC({type:e,version:t,fields:i,properties:n,extendProperties:o},r,s){let a={};const l=[];try{const s=r.types.get({name:e,version:t});a=await s.initialProperties(n,o);const c=await s.supernova();i&&await P_({sn:c,properties:a,fields:i,children:l},r),n&&c&&c.qae.properties.onChange&&c.qae.properties.onChange.call({},a)}catch(t){a=s?null:{qInfo:{qType:e},visualization:e}}if(!s){const e=await r.app.createObject(a);return l.length>0&&await e.setFullPropertyTree({qProperty:a,qChildren:l}),Oc.set(e.id,e),e}return a}function aC(e,t,i){return e.bounds?e.bounds:{y:e.row/i*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/i*100}}const lC=function({model:e,halo:t,initialSnOptions:n,initialSnPlugins:o,initialError:r,onMount:s}){const{root:a}=t,[l]=Vc(e),{theme:c}=(0,i.useContext)(cc),[d,u]=(0,i.useState)([]),[h,g]=(0,i.useState)(void 0),[p,m]=(0,i.useState)(void 0),[f,v]=(0,i.useState)("");(0,i.useEffect)((()=>{if(l){const e=JSON.stringify(l.cells);if(e===f)return;v(e);const n=async()=>{d.forEach((e=>{a.removeCell(e.currentId)}));const e=l.cells,{columns:n,rows:o}=l,r=await Promise.all(e.map((async e=>{let r;const s=new Promise((e=>{r=e})),a=d.find((t=>t.id===e.name));if(a)return a.bounds=aC(e,n,o),delete a.mountedPromise,a;const l=await async function({id:e,options:t,plugins:i,element:n},o){const r=`${e}`;let s=Dc.get(r);s||(s=o.app.getObject(e),Dc.set(r,s));const a=await s;return Oc.set(r,a),rC(a,{options:t,plugins:i,element:n},o)}({id:e.name},t);return{model:l.model,id:e.name,bounds:aC(e,n,o),cellRef:i.createRef(),currentId:Kv(),mounted:r,mountedPromise:s}})));r.forEach((e=>a.addCell(e.currentId,e.cellRef))),u(r)};n()}}),[l]);const _=(0,i.useMemo)((()=>d?d.map((e=>function(e,t,n,o,r,s){const{x:a,y:l,width:c,height:d}=e.bounds;return i.createElement("div",{style:{left:`${a}%`,top:`${l}%`,width:`${c}%`,height:`${d}%`,position:"absolute"}},i.createElement(Pb,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:o,initialError:r,onMount:s}))}(e,t,n,o,r,e.mounted))):[]),[d]);(0,i.useEffect)((()=>{const e=l?.components?l.components.find((e=>"general"===e.key)):null;g(dv(e,t.public.theme)),m(cv(e,t.app))}),[l,t.public.theme,t.app,c]);const b=!l||Number.isNaN(l.height)?"100%":`${Number(l.height)}%`,y=d.map((e=>e.mountedPromise));return y.filter((e=>!!e)).length&&Promise.all(y).then((()=>{s()})),i.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}},_)},cC=()=>{};async function dC({id:e,options:t,plugins:n,element:o},s){const a=`${e}`;let l=Dc.get(a);l||(l=s.app.getObject(e),Dc.set(a,l));const c=await l;return Oc.set(a,c),"sheet"===c.genericType?async function(e,t,n,o,s=(async()=>{})){const a=function({model:e,halo:t,initialError:n,onDestroy:o=(async()=>{})}={}){let s=cC,a=null,l=null,c=null;const d=new Promise((e=>{c=e}));let u={},h=[];const g={id:e.id,model:e,async destroy(){await o(),s(),s=cC},__DO_NOT_USE__:{mount(o){if(l)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return l=o,[s,a]=function({halo:e,element:t,model:n,initialSnOptions:o,initialSnPlugins:s,onMount:a,initialError:l}){const{root:c}=e,d=i.createRef(),u=r.createPortal(i.createElement(lC,{ref:d,halo:e,model:n,initialSnOptions:o,initialSnPlugins:s,initialError:l,onMount:a}),t,n.id),h=()=>{c.remove(u),n.removeListener("closed",h)};return n.on("closed",h),c.add(u),[h,d]}({halo:t,element:o,model:e,initialSnOptions:u,initialSnPlugins:h,initialError:n,onMount:c}),d},async applyProperties(t){const i=Bb("/",t,await e.getEffectiveProperties());if(i.length)return e.applyPatches(i,!0)},options(e){(async e=>{l?(async()=>{await d,a.current.setSnOptions({...u,...e})})():u={...u,...e}})(e)},plugins(e){(async e=>{Wb(e),l?(async()=>{await d,a.current.setSnPlugins(e)})():h=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return g}({model:e,halo:n,initialError:void 0,onDestroy:s});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}(c,{options:t,plugins:n,element:o},s):rC(c,{options:t,plugins:n,element:o},s)}function uC(e={}){return{isEnabled:t=>!0===e[t]}}var hC=s(7311),gC=s.n(hC);const pC={};function mC(e,t){const i={};let n=null;return{get:e=>i[e],register:(o,r)=>{if(i[o])throw new Error(`Supernova '${e}@${o}' already registered.`);i[o]=function(e,t,i={}){let n,o;const{meta:r}=i,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||gC()(e,r.deps.properties),supernova:()=>async function(e,t,{config:i},n){const o=`${e}__${t}`;if(!pC[o]){const r=`${e}${t&&` v${t}`||""}`;if(n&&"function"!=typeof n)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(n||i.load)({name:e,version:t}),a=Promise.resolve(s);pC[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 pC[o]}(s.name,s.version,t,i.load).then((e=>(n=n||iC(e,t.public.galaxy),o=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e,t=!1){return this.supernova().then((()=>{const i={qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o)};return t?(Zl()(!0,i,e),i):{...i,...e}}))}};return s}({name:e,version:o},t,r),n=null},getMatchingVersionFromProperties:e=>{var t;n||(t=Object.keys(i),n=[...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=n.length-1;t>=0;t--)if(i[n[t]].supportsPropertiesVersion(e))return n[t];return null},versions:i}}const fC={context:({},{theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},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()))}},vC=(e={},t={})=>({...e,...t}),_C=(e=[],t=[])=>[...e,...t].filter(((e,t,i)=>i.indexOf(e)===t)),bC=function e(t={}){const n=function(e){const t=ll({initial:e});return Object.keys(cl).forEach((e=>{t.translator.add(cl[e])})),{translator:t.translator}}(t.context.language);function s(e,a){if(a)return s.createConfiguration(a)(e);let l={...t.context,translator:n.translator};const[c]=function({app:e,context:t}){let n;const r=new Promise((e=>{n=e})),s=i.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","4.8.1"),a.setAttribute("data-app-id",e.id),document.body.appendChild(a),t&&bc(t),o.createRoot(a).render(i.createElement(yc,{ref:s,app:e,initialContext:t,renderCallback:n}));const l={},c=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await r,c.push(e),s.current.setComps(c)})()},remove(e){(async()=>{await r;const t=c.indexOf(e);-1!==t&&c.splice(t,1),s.current.setComps(c)})()},setMuiThemeName(e){(async()=>{await r,s.current.setMuiThemeName(e)})()},context(e){(async()=>{await r,e&&bc(e),s.current.setContext(e)})()},getAppSelections:async()=>(await r,s.current.getAppSelections())},s,r]}({app:e,context:l}),d=function({themes:e=[],loadTheme:t,root:i}={}){const n=lc();return{setTheme:async o=>{let r=e.filter((e=>e.id===o))[0],s="dark"===o?"dark":"light";if(!r&&t&&(r={load:t}),r&&r.load)try{const e=await Promise.race([r.load(o),(a=5e3,l={__timedOut:!0},new Promise((e=>{setTimeout((()=>e(l)),a)})))]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(s="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,o),i.setMuiThemeName(s))}catch(e){console.error(e)}else n.internalAPI.setTheme({type:s},o),i.setMuiThemeName(s);var a,l},externalAPI:n.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:c});l.themeApi=d.externalAPI;const u={galaxy:{translator:n.translator,flags:uC(t.flags),deviceType:(p=t.context.deviceType,"auto"!==p?p: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:d.externalAPI,translator:n.translator,nebbie:null},h={app:e,root:c,config:t,public:u,context:l,types:null},g=function({halo:e,parent:t}){const i={},n=t||{get:()=>{}};return{register:(t,n)=>{i[t.name]||(i[t.name]=mC(t.name,e)),i[t.name].register(t.version,n)},getSupportedVersion:(e,t)=>{if(i[e])return i[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:o}=e;if(i[t]){if(!i[t].versions[o]){const e=Object.keys(i[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 i[t].get(o)||n.get(e)},getList:()=>Object.keys(i).map((e=>({name:e,versions:Object.keys(i[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{i[e]&&(i[e]=void 0),function(e){Object.keys(pC).forEach((t=>{t.split("__")[0]===e&&(pC[t]=void 0)}))}(e)}}}({halo:h});var p;t.types.forEach((e=>g.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let m=d.setTheme(t.context.theme),f=null,v=null;const _={render:async e=>(await m,e.id?dC(e,h):async function({type:e,version:t,fields:i,properties:n,options:o,plugins:r,element:s,extendProperties:a},l){let c={};const d=[];let u;try{const o=l.types.get({name:e,version:t});c=await o.initialProperties(n,a);const r=await o.supernova();i&&await P_({sn:r,properties:c,fields:i,children:d},l),n&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},c)}catch(t){u=t,c={qInfo:{qType:e},visualization:e}}const h=await l.app.createSessionObject(c);d.length>0&&await h.setFullPropertyTree({qProperty:c,qChildren:d}),Oc.set(h.id,h);const g=(e=>{const t=qc({type:"SET",value:e});return()=>{t(),Oc.clear(e.id)}})(h);return rC(h,{options:o,plugins:r,element:s},l,u,(async()=>{await l.app.destroySessionObject(h.id),g()}))}(e,h)),create:async e=>sC(e,h,!1),generateProperties:async e=>sC(e,h,!0),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((i=>{Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==l[i]&&(t||(t={}),t[i]=e[i])})),t&&(l={...l,...t,translator:n.translator},t.theme&&(m=d.setTheme(t.theme),await m),t.language&&h.public.translator.language(t.language),c.context(l))},selections:async()=>(f||(f={mount(t){v?console.error("Already mounted"):(v=function({element:e,app:t}){return r.createPortal(i.createElement(Xv,{app:t}),e,Kv())}({element:t,app:e}),c.add(v))},unmount(){v&&(c.remove(v),v=null)}}),f),field:async t=>{let n;const o="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const s={fieldName:o,async mount(a,l={}){if(!a)throw new Error(`Element for ${o||n} not provided`);if(this._instance)throw new Error(`Field or object ${o||n} already mounted`);const d=()=>s.emit("selectionActivated"),u=()=>s.emit("selectionDeactivated");return new Promise((o=>{this._instance=function({element:e,app:t,fieldIdentifier:n,qId:o,stateName:s="$",options:a={},renderedCallback:l}){return r.createPortal(i.createElement(x_,{app:t,element:e,fieldIdentifier:n,qId:o,stateName:s,options:a,renderedCallback:l}),e,Kv())}({element:a,app:e,fieldIdentifier:t,qId:n,options:S_({onSelectionActivated:d,onSelectionDeactivated:u,...l}),stateName:l.stateName||"$",renderedCallback:o}),c.add(this._instance)}))},unmount(){this._instance&&(c.remove(this._instance),this._instance=null)}};return Mf(s),s},getRegisteredTypes:g.getList,__DO_NOT_USE__:{types:g,popover(t,n,o){_._popoverInstance&&(c.remove(_._popoverInstance),_._popoverInstance=null);const r=((e={})=>{const t={...L_};return Zl()(!0,t,e),t})({onPopoverClose:()=>_.emit("fieldPopoverClose"),...o});_._popoverInstance=i.createElement(k_,{element:t,key:Kv(),app:e,fieldIdentifier:n,options:r,stateName:o.stateName||"$"}),c.add(_._popoverInstance)}}};return h.public.nebbie=_,h.types=g,Mf(_),_}return s.createConfiguration=i=>e(((e,t)=>({context:vC(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:_C(e.types,t.types),themes:_C(e.themes,t.themes),flags:vC(e.flags,t.flags),anything:vC(e.anything,t.anything)}))(t,i)),s.config=t,s}(fC),yC=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},CC=globalThis.crypto||{getRandomValues:()=>123456},wC=function(){return e=>{const t=Zl()({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^CC.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const i=t._mock;let n=t;return i&&(delete t._mock,n=Zl()({},t,i)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(n),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),removeListener:()=>{},id:t.qInfo.qId,...t})}},SC=(e,{args:t=[],defaultValue:i}={})=>"function"==typeof e?e(...t):void 0!==e?e:i,xC=(e,{defaultValue:t,async:i=!0,delay:n=0}={})=>(...o)=>{const r=SC(e,{defaultValue:t,args:o});return i?new Promise((e=>{setTimeout((()=>e(r)),n)})):r},LC=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function kC(e){return!LC.includes(e)}function EC(e){const t=SC(e.getLayout);return t.qInfo&&t.qInfo.qId}function DC(e,t){let i=EC(e);const{delay:n}=t,{id:o,session:r,...s}=e;if(o&&i&&o!==i)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${i}, id: ${o}`);return i=i||o||"object - "+ +Date.now(),{[i]:{id:i,session:SC(r,{defaultValue:!0}),on:()=>{},once:()=>{},...Object.entries(s).reduce(((e,[t,i])=>({...e,[t]:xC(i,{async:kC(t),delay:n})})),{}),genericType:e.type}}}function IC(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!EC(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const NC=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(IC);const i=function(e,t){return e.reduce(((e,i)=>({...e,...DC(i,t)})),{})}(e,t);return async e=>Promise.resolve(i[e])},RC=function(){return()=>Promise.resolve({id:"app-layout"})},qC={fromGenericObjects:(e,t={})=>function(e,t={}){const i=new yC,n=new wC,o=new NC(e,t),r=new RC,s={id:"app - "+ +Date.now(),session:i,createSessionObject:n,destroySessionObject:async()=>{},getObject:o,getAppLayout:r};return Promise.resolve(s)}(e,t)},TC=qC,OC={generator:iC,hook:py,theme:lc,locale:ll};var MC=s(2792),AC=s(3545),PC=s(5243),FC=s(7357),BC=s(5733);function WC(e){return(0,Rt.Z)("MuiToolbar",e)}(0,Nt.Z)("MuiToolbar",["root","gutters","regular","dense"]);const VC=["className","component","disableGutters","variant"],zC=(0,It.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disableGutters&&t.gutters,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,St.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)),HC=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiToolbar"}),{className:n,component:o="div",disableGutters:r=!1,variant:s="regular"}=i,a=(0,wt.Z)(i,VC),l=(0,St.Z)({},i,{component:o,disableGutters:r,variant:s}),c=(e=>{const{classes:t,disableGutters:i,variant:n}=e,o={root:["root",!i&&"gutters",n]};return(0,Lt.Z)(o,WC,t)})(l);return(0,Tt.jsx)(zC,(0,St.Z)({as:o,className:(0,xt.Z)(c.root,n),ref:t,ownerState:l},a))})),jC=HC;function UC(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function $C(e){return(0,Rt.Z)("MuiToggleButtonGroup",e)}const ZC=(0,Nt.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth"]),GC=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],KC=(0,It.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${ZC.grouped}`]:t.grouped},{[`& .${ZC.grouped}`]:t[`grouped${(0,Gt.Z)(i.orientation)}`]},t.root,"vertical"===i.orientation&&t.vertical,i.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,St.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${ZC.grouped}`]:(0,St.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},[`&.${ZC.selected} + .${ZC.grouped}.${ZC.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},[`&.${ZC.selected} + .${ZC.grouped}.${ZC.selected}`]:{borderTop:0,marginTop:0}})}))),XC=i.forwardRef((function(e,t){const n=(0,Dt.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}=n,p=(0,wt.Z)(n,GC),m=(0,St.Z)({},n,{disabled:a,fullWidth:c,orientation:u,size:h}),f=(e=>{const{classes:t,orientation:i,fullWidth:n,disabled:o}=e,r={root:["root","vertical"===i&&"vertical",n&&"fullWidth"],grouped:["grouped",`grouped${(0,Gt.Z)(i)}`,o&&"disabled"]};return(0,Lt.Z)(r,$C,t)})(m),v=(e,t)=>{if(!d)return;const i=g&&g.indexOf(t);let n;g&&i>=0?(n=g.slice(),n.splice(i,1)):n=g?g.concat(t):[t],d(e,n)},_=(e,t)=>{d&&d(e,g===t?null:t)};return(0,Tt.jsx)(KC,(0,St.Z)({role:"group",className:(0,xt.Z)(f.root,r),ref:t,ownerState:m},p,{children:i.Children.map(o,(e=>i.isValidElement(e)?i.cloneElement(e,{className:(0,xt.Z)(f.grouped,e.props.className),onChange:l?_:v,selected:void 0===e.props.selected?UC(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))}))})),YC=XC;function QC(e){return(0,Rt.Z)("MuiToggleButton",e)}const JC=(0,Nt.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),ew=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],tw=(0,It.ZP)(vo,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`size${(0,Gt.Z)(i.size)}`]]}})((({theme:e,ownerState:t})=>{let i,n="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(n="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,i="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,St.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%"},{[`&.${JC.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,In.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${JC.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${i} / ${e.vars.palette.action.selectedOpacity})`:(0,In.Fq)(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${i} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,In.Fq)(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${i} / ${e.vars.palette.action.selectedOpacity})`:(0,In.Fq)(n,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})})),iw=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiToggleButton"}),{children:n,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}=i,p=(0,wt.Z)(i,ew),m=(0,St.Z)({},i,{color:r,disabled:s,disableFocusRipple:a,fullWidth:l,size:h}),f=(e=>{const{classes:t,fullWidth:i,selected:n,disabled:o,size:r,color:s}=e,a={root:["root",n&&"selected",o&&"disabled",i&&"fullWidth",`size${(0,Gt.Z)(r)}`,s]};return(0,Lt.Z)(a,QC,t)})(m);return(0,Tt.jsx)(tw,(0,St.Z)({className:(0,xt.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:n}))})),nw=iw;function ow(e){return(0,Rt.Z)("MuiMenu",e)}(0,Nt.Z)("MuiMenu",["root","paper","list"]);const rw=["onEntering"],sw=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],aw={vertical:"top",horizontal:"right"},lw={vertical:"top",horizontal:"left"},cw=(0,It.ZP)(Ud,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dw=(0,It.ZP)(Hd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uw=(0,It.ZP)(df,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),hw=i.forwardRef((function(e,t){var n,o;const r=(0,Dt.Z)({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:u,open:h,PaperProps:g={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:{onEntering:f}={},variant:v="selectedMenu",slots:_={},slotProps:b={}}=r,y=(0,wt.Z)(r.TransitionProps,rw),C=(0,wt.Z)(r,sw),w=ei(),S="rtl"===w.direction,x=(0,St.Z)({},r,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:f,PaperProps:g,transitionDuration:m,TransitionProps:y,variant:v}),L=(e=>{const{classes:t}=e;return(0,Lt.Z)({root:["root"],paper:["paper"],list:["list"]},ow,t)})(x),k=s&&!c&&h,E=i.useRef(null);let D=-1;i.Children.map(a,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===D)&&(D=t))}));const I=null!=(n=_.paper)?n:dw,N=null!=(o=b.paper)?o:g,R=rs({elementType:_.root,externalSlotProps:b.root,ownerState:x,className:[L.root,l]}),q=rs({elementType:I,externalSlotProps:N,ownerState:x,className:L.paper});return(0,Tt.jsx)(cw,(0,St.Z)({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?aw:lw,slots:{paper:I,root:_.root},slotProps:{root:R,paper:q},open:h,ref:t,transitionDuration:m,TransitionProps:(0,St.Z)({onEntering:(e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,w),f&&f(e,t)}},y),ownerState:x},C,{classes:p,children:(0,Tt.jsx)(uw,(0,St.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:E,autoFocus:s&&(-1===D||c),autoFocusItem:k,variant:v},d,{className:(0,xt.Z)(L.list,d.className),children:a}))}))})),gw=hw,pw=new Map,mw=[],fw=mw.map,vw=mw.some,_w=mw.hasOwnProperty,bw=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,yw=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,Cw=/(?:\.[^/]*|\/)$/;class ww extends Error{constructor(e){super(e)}}function Sw(e){const t=bw.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function xw(e){const t=new Map,i=o(null);function n(e){if("string"!=typeof e)return e;let i=t.get(e);return i||t.set(e,i=new Promise(((t,i)=>{const n=document.createElement("script");n.onload=()=>{try{t(mw.pop()(o(e)))}catch(e){i(new ww("invalid module"))}n.remove()},n.onerror=()=>{i(new ww("unable to load module")),n.remove()},n.async=!0,n.src=e,window.define=Dw,document.head.appendChild(n)}))),i}function o(t){return i=>Promise.resolve(e(i,t)).then(n)}function r(e){return arguments.length>1?Promise.all(fw.call(arguments,i)).then(Lw):i(e)}return r.alias=function(t){return xw(((i,n)=>i in t&&(n=null,"string"!=typeof(i=t[i]))?i:e(i,n)))},r.resolve=e,r}function Lw(e){const t={};for(const i of e)for(const e in i)_w.call(i,e)&&(null==i[e]?Object.defineProperty(t,e,{get:kw(i,e)}):t[e]=i[e]);return t}function kw(e,t){return()=>e[t]}function Ew(e){return"exports"==(e+="")||"module"===e}function Dw(e,t,i){const n=arguments.length;n<2?(i=e,t=[]):n<3&&(i=t,t="string"==typeof e?[]:e),mw.push(vw.call(t,Ew)?e=>{const n={},o={exports:n};return Promise.all(fw.call(t,(t=>"exports"==(t+="")?n:"module"===t?o:e(t)))).then((e=>(i.apply(null,e),o.exports)))}:e=>Promise.all(fw.call(t,e)).then((e=>"function"==typeof i?i.apply(null,e):i)))}ww.prototype.name=ww.name,xw(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function i(t){const i=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let n=pw.get(i);return n||pw.set(i,n=fetch(i).then((e=>{if(!e.ok)throw new ww("unable to load package.json");return e.redirected&&!pw.has(e.url)&&pw.set(e.url,n),e.json()}))),n}return async function(n,o){if(n.startsWith(e)&&(n=n.substring(e.length)),/^(\w+:)|\/\//i.test(n))return n;if(/^[.]{0,2}\//i.test(n))return new URL(n,null==o?location:o).href;if(!n.length||/^[\s._]/.test(n)||/\s$/.test(n))throw new ww("illegal name");const r=Sw(n);if(!r)return`${e}${n}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await i(Sw(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!Cw.test(r.path)&&(r.path+=".js"),r.path&&r.version&&yw.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await i(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const i of t){let t=e[i];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),Cw.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),Dw.amd={};const Iw=(t,i)=>{const n=i?e=>e:e=>`/pkg/${encodeURIComponent(e)}`;return xw((async e=>n(e))).alias({"@nebula.js/stardust":e})(i||t)},Nw={};function Rw(e){const[t]=Tc(),i=t.get(e),[n,...o]=Wc(i,"getProperties");return[n,e=>i.setProperties(e),...o]}window.onHotChange=(e,t)=>(Nw[e]||(Nw[e]=[]),Nw[e].push(t),window[e]&&t(),()=>{const i=Nw[e].indexOf(t);Nw[e].splice(i,1)});const qw=i.createContext(),Tw=e=>({qDef:{qFieldDefs:[e]}});function Ow({dc:e,def:t,properties:i,dimensions:n}){const o=i,r={dimensions:()=>n,measures:()=>[],addDimension(i){const n="string"==typeof i?Tw(i):{...i,qDef:i.qDef||{}};return n.qDef.cId=n.qDef.cId||Kv(),n.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(n,o),n},removeDimension(e){const i=n[e];return t.dimensions.removed(i,o,e),i},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 Mw={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},Aw={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function Pw(e,t="dimension"){const i="dimension"===t?Mw:Aw,[n]=Mc(i,e),[o]=Vc(n);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function Fw(e){return(0,Rt.Z)("MuiListSubheader",e)}(0,Nt.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Bw=["className","color","component","disableGutters","disableSticky","inset"],Ww=(0,It.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"default"!==i.color&&t[`color${(0,Gt.Z)(i.color)}`],!i.disableGutters&&t.gutters,i.inset&&t.inset,!i.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,St.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}))),Vw=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=i,c=(0,wt.Z)(i,Bw),d=(0,St.Z)({},i,{color:o,component:r,disableGutters:s,disableSticky:a,inset:l}),u=(e=>{const{classes:t,color:i,disableGutters:n,inset:o,disableSticky:r}=e,s={root:["root","default"!==i&&`color${(0,Gt.Z)(i)}`,!n&&"gutters",o&&"inset",!r&&"sticky"]};return(0,Lt.Z)(s,Fw,t)})(d);return(0,Tt.jsx)(Ww,(0,St.Z)({as:r,className:(0,xt.Z)(u.root,n),ref:t,ownerState:d},c))}));Vw.muiSkipListHighlight=!0;const zw=Vw;var Hw=s(1263),jw=s.n(Hw),Uw=s(532),$w=s.n(Uw),Zw=s(2120),Gw=s(9179),Kw=s(6744);function Xw(e){return(0,Rt.Z)("MuiInput",e)}const Yw=(0,St.Z)({},Ys,(0,Nt.Z)("MuiInput",["root","underline","input"])),Qw=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Jw=(0,It.ZP)(va,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[...ma(e,t),!i.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let i="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(i=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,St.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"},[`&.${Yw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yw.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${i}`,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(.${Yw.disabled}, .${Yw.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${i}`}},[`&.${Yw.disabled}:before`]:{borderBottomStyle:"dotted"}})})),eS=(0,It.ZP)(_a,{name:"MuiInput",slot:"Input",overridesResolver:fa})({}),tS=i.forwardRef((function(e,t){var i,n,o,r;const s=(0,Dt.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,wt.Z)(s,Qw),v=(e=>{const{classes:t,disableUnderline:i}=e,n={root:["root",!i&&"underline"],input:["input"]},o=(0,Lt.Z)(n,Xw,t);return(0,St.Z)({},t,o)})(s),_={root:{ownerState:{disableUnderline:a}}},b=(null!=g?g:c)?(0,Ti.Z)(null!=g?g:c,_):_,y=null!=(i=null!=(n=p.root)?n:l.Root)?i:Jw,C=null!=(o=null!=(r=p.input)?r:l.Input)?o:eS;return(0,Tt.jsx)(Ca,(0,St.Z)({slots:{root:y,input:C},slotProps:b,fullWidth:d,inputComponent:u,multiline:h,ref:t,type:m},f,{classes:v}))}));tS.muiName="Input";const iS=tS;function nS(e){return(0,Rt.Z)("MuiFilledInput",e)}const oS=(0,St.Z)({},Ys,(0,Nt.Z)("MuiFilledInput",["root","underline","input"])),rS=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sS=(0,It.ZP)(va,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[...ma(e,t),!i.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var i;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,St.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}},[`&.${oS.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${oS.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(i=(e.vars||e).palette[t.color||"primary"])?void 0:i.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"},[`&.${oS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${oS.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(.${oS.disabled}, .${oS.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${oS.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,St.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),aS=(0,It.ZP)(_a,{name:"MuiFilledInput",slot:"Input",overridesResolver:fa})((({theme:e,ownerState:t})=>(0,St.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.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),lS=i.forwardRef((function(e,t){var i,n,o,r;const s=(0,Dt.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,wt.Z)(s,rS),f=(0,St.Z)({},s,{fullWidth:c,inputComponent:d,multiline:u,type:p}),v=(e=>{const{classes:t,disableUnderline:i}=e,n={root:["root",!i&&"underline"],input:["input"]},o=(0,Lt.Z)(n,nS,t);return(0,St.Z)({},t,o)})(s),_={root:{ownerState:f},input:{ownerState:f}},b=(null!=h?h:l)?(0,Ti.Z)(null!=h?h:l,_):_,y=null!=(i=null!=(n=g.root)?n:a.Root)?i:sS,C=null!=(o=null!=(r=g.input)?r:a.Input)?o:aS;return(0,Tt.jsx)(Ca,(0,St.Z)({slots:{root:y,input:C},componentsProps:b,fullWidth:c,inputComponent:d,multiline:u,ref:t,type:p},m,{classes:v}))}));lS.muiName="Input";const cS=lS;function dS(e){return(0,Rt.Z)("MuiFormLabel",e)}const uS=(0,Nt.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hS=["children","className","color","component","disabled","error","filled","focused","required"],gS=(0,It.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,St.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,St.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${uS.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${uS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${uS.error}`]:{color:(e.vars||e).palette.error.main}}))),pS=(0,It.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${uS.error}`]:{color:(e.vars||e).palette.error.main}}))),mS=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:r="label"}=i,s=(0,wt.Z)(i,hS),a=Ks({props:i,muiFormControl:Gs(),states:["color","required","focused","disabled","error","filled"]}),l=(0,St.Z)({},i,{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:i,focused:n,disabled:o,error:r,filled:s,required:a}=e,l={root:["root",`color${(0,Gt.Z)(i)}`,o&&"disabled",r&&"error",s&&"filled",n&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return(0,Lt.Z)(l,dS,t)})(l);return(0,Tt.jsxs)(gS,(0,St.Z)({as:r,ownerState:l,className:(0,xt.Z)(c.root,o),ref:t},s,{children:[n,a.required&&(0,Tt.jsxs)(pS,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))})),fS=mS;function vS(e){return(0,Rt.Z)("MuiInputLabel",e)}(0,Nt.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _S=["disableAnimation","margin","shrink","variant","className"],bS=(0,It.ZP)(fS,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${uS.asterisk}`]:t.asterisk},t.root,i.formControl&&t.formControl,"small"===i.size&&t.sizeSmall,i.shrink&&t.shrink,!i.disableAnimation&&t.animated,i.focused&&t.focused,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,St.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,St.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,St.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,St.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% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),yS=i.forwardRef((function(e,t){const i=(0,Dt.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:r}=i,s=(0,wt.Z)(i,_S),a=Gs();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=Ks({props:i,muiFormControl:a,states:["size","variant","required","focused"]}),d=(0,St.Z)({},i,{disableAnimation:n,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),u=(e=>{const{classes:t,formControl:i,size:n,shrink:o,disableAnimation:r,variant:s,required:a}=e,l={root:["root",i&&"formControl",!r&&"animated",o&&"shrink",n&&"normal"!==n&&`size${(0,Gt.Z)(n)}`,s],asterisk:[a&&"asterisk"]},c=(0,Lt.Z)(l,vS,t);return(0,St.Z)({},t,c)})(d);return(0,Tt.jsx)(bS,(0,St.Z)({"data-shrink":l,ownerState:d,ref:t,className:(0,xt.Z)(u.root,r)},s,{classes:u}))})),CS=yS;function wS(e){return(0,Rt.Z)("MuiFormControl",e)}(0,Nt.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const SS=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],xS=(0,It.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,St.Z)({},t.root,t[`margin${(0,Gt.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,St.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%"}))),LS=i.forwardRef((function(e,t){const n=(0,Dt.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"}=n,v=(0,wt.Z)(n,SS),_=(0,St.Z)({},n,{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:i,fullWidth:n}=e,o={root:["root","none"!==i&&`margin${(0,Gt.Z)(i)}`,n&&"fullWidth"]};return(0,Lt.Z)(o,wS,t)})(_),[y,C]=i.useState((()=>{let e=!1;return o&&i.Children.forEach(o,(t=>{if(!(0,Dr.Z)(t,["Input","Select"]))return;const i=(0,Dr.Z)(t,["Select"])?t.props.input:t;i&&i.props.startAdornment&&(e=!0)})),e})),[w,S]=i.useState((()=>{let e=!1;return o&&i.Children.forEach(o,(t=>{(0,Dr.Z)(t,["Input","Select"])&&(ga(t.props,!0)||ga(t.props.inputProps,!0))&&(e=!0)})),e})),[x,L]=i.useState(!1);l&&x&&L(!1);const k=void 0===d||l?x:d;let E;const D=i.useMemo((()=>({adornedStart:y,setAdornedStart:C,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})),[y,s,l,c,w,k,u,h,E,p,m,f]);return(0,Tt.jsx)(Zs.Provider,{value:D,children:(0,Tt.jsx)(xS,(0,St.Z)({as:a,ownerState:_,className:(0,xt.Z)(b.root,r),ref:t},v,{children:o}))})})),kS=LS;function ES(e){return(0,Rt.Z)("MuiFormHelperText",e)}const DS=(0,Nt.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var IS;const NS=["children","className","component","disabled","error","filled","focused","margin","required","variant"],RS=(0,It.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.size&&t[`size${(0,Gt.Z)(i.size)}`],i.contained&&t.contained,i.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,St.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${DS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${DS.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),qS=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:r="p"}=i,s=(0,wt.Z)(i,NS),a=Ks({props:i,muiFormControl:Gs(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,St.Z)({},i,{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:i,size:n,disabled:o,error:r,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",r&&"error",n&&`size${(0,Gt.Z)(n)}`,i&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,Lt.Z)(c,ES,t)})(l);return(0,Tt.jsx)(RS,(0,St.Z)({as:r,ownerState:l,className:(0,xt.Z)(c.root,o),ref:t},s,{children:" "===n?IS||(IS=(0,Tt.jsx)("span",{className:"notranslate",children:""})):n}))})),TS=qS;function OS(e){return(0,Rt.Z)("MuiNativeSelect",e)}const MS=(0,Nt.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AS=["className","disabled","error","IconComponent","inputRef","variant"],PS=({ownerState:e,theme:t})=>(0,St.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,St.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"},[`&.${MS.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}}),FS=(0,It.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:It.FO,overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.select,t[i.variant],i.error&&t.error,{[`&.${MS.multiple}`]:t.multiple}]}})(PS),BS=({ownerState:e,theme:t})=>(0,St.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${MS.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),WS=(0,It.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${(0,Gt.Z)(i.variant)}`],i.open&&t.iconOpen]}})(BS),VS=i.forwardRef((function(e,t){const{className:n,disabled:o,error:r,IconComponent:s,inputRef:a,variant:l="standard"}=e,c=(0,wt.Z)(e,AS),d=(0,St.Z)({},e,{disabled:o,variant:l,error:r}),u=(e=>{const{classes:t,variant:i,disabled:n,multiple:o,open:r,error:s}=e,a={select:["select",i,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Gt.Z)(i)}`,r&&"iconOpen",n&&"disabled"]};return(0,Lt.Z)(a,OS,t)})(d);return(0,Tt.jsxs)(i.Fragment,{children:[(0,Tt.jsx)(FS,(0,St.Z)({ownerState:d,className:(0,xt.Z)(u.select,n),disabled:o,ref:a||t},c)),e.multiple?null:(0,Tt.jsx)(WS,{as:s,ownerState:d,className:u.icon})]})})),zS=VS;function HS(e){return(0,Rt.Z)("MuiSelect",e)}const jS=(0,Nt.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var US;const $S=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],ZS=(0,It.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`&.${jS.select}`]:t.select},{[`&.${jS.select}`]:t[i.variant]},{[`&.${jS.error}`]:t.error},{[`&.${jS.multiple}`]:t.multiple}]}})(PS,{[`&.${jS.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),GS=(0,It.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${(0,Gt.Z)(i.variant)}`],i.open&&t.iconOpen]}})(BS),KS=(0,It.ZP)("input",{shouldForwardProp:e=>(0,It.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 XS(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function YS(e){return null==e||"string"==typeof e&&!e.trim()}const QS=i.forwardRef((function(e,t){var n;const{"aria-describedby":o,"aria-label":r,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:u,disabled:h,displayEmpty:g,error:p=!1,IconComponent:m,inputRef:f,labelId:v,MenuProps:_={},multiple:b,name:y,onBlur:C,onChange:w,onClose:S,onFocus:x,onOpen:L,open:k,readOnly:E,renderValue:D,SelectDisplayProps:I={},tabIndex:N,value:R,variant:q="standard"}=e,T=(0,wt.Z)(e,$S),[O,M]=(0,Au.Z)({controlled:R,default:u,name:"Select"}),[A,P]=(0,Au.Z)({controlled:k,default:d,name:"Select"}),F=i.useRef(null),B=i.useRef(null),[W,V]=i.useState(null),{current:z}=i.useRef(null!=k),[H,j]=i.useState(),U=(0,Nn.Z)(t,f),$=i.useCallback((e=>{B.current=e,e&&V(e)}),[]),Z=null==W?void 0:W.parentNode;i.useImperativeHandle(U,(()=>({focus:()=>{B.current.focus()},node:F.current,value:O})),[O]),i.useEffect((()=>{d&&A&&W&&!z&&(j(a?null:Z.clientWidth),B.current.focus())}),[W,a]),i.useEffect((()=>{s&&B.current.focus()}),[s]),i.useEffect((()=>{if(!v)return;const e=(0,xs.Z)(B.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&B.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const G=(e,t)=>{e?L&&L(t):S&&S(t),z||(j(a?null:Z.clientWidth),P(e))},K=i.Children.toArray(l),X=e=>t=>{let i;if(t.currentTarget.hasAttribute("tabindex")){if(b){i=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?i.push(e.props.value):i.splice(t,1)}else i=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==i&&(M(i),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:i,name:y}}),w(o,e)}b||G(!1,t)}},Y=null!==W&&A;let Q,J;delete T["aria-invalid"];const ee=[];let te=!1,ie=!1;(ga({value:O})||g)&&(D?Q=D(O):te=!0);const ne=K.map((e=>{if(!i.isValidElement(e))return null;let t;if(b){if(!Array.isArray(O))throw new Error((0,ea.Z)(2));t=O.some((t=>XS(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=XS(O,e.props.value),t&&te&&(J=e.props.children);return t&&(ie=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Q=b?0===ee.length?null:ee.reduce(((e,t,i)=>(e.push(t),i<ee.length-1&&e.push(", "),e)),[]):J);let oe,re=H;!a&&z&&W&&(re=Z.clientWidth),oe=void 0!==N?N:h?null:0;const se=I.id||(y?`mui-component-select-${y}`:void 0),ae=(0,St.Z)({},e,{variant:q,value:O,open:Y,error:p}),le=(e=>{const{classes:t,variant:i,disabled:n,multiple:o,open:r,error:s}=e,a={select:["select",i,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Gt.Z)(i)}`,r&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,Lt.Z)(a,HS,t)})(ae),ce=(0,St.Z)({},_.PaperProps,null==(n=_.slotProps)?void 0:n.paper),de=(0,Kw.Z)();return(0,Tt.jsxs)(i.Fragment,{children:[(0,Tt.jsx)(ZS,(0,St.Z)({ref:$,tabIndex:oe,role:"combobox","aria-controls":de,"aria-disabled":h?"true":void 0,"aria-expanded":Y?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[v,se].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{E||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))},onMouseDown:h||E?null:e=>{0===e.button&&(e.preventDefault(),B.current.focus(),G(!0,e))},onBlur:e=>{!Y&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:y}}),C(e))},onFocus:x},I,{ownerState:ae,className:(0,xt.Z)(I.className,le.select,c),id:se,children:YS(Q)?US||(US=(0,Tt.jsx)("span",{className:"notranslate",children:""})):Q})),(0,Tt.jsx)(KS,(0,St.Z)({"aria-invalid":p,value:Array.isArray(O)?O.join(","):O,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(M(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:h,className:le.nativeInput,autoFocus:s,ownerState:ae},T)),(0,Tt.jsx)(GS,{as:m,className:le.icon,ownerState:ae}),(0,Tt.jsx)(gw,(0,St.Z)({id:`menu-${y||""}`,anchorEl:Z,open:Y,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},_,{MenuListProps:(0,St.Z)({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:de},_.MenuListProps),slotProps:(0,St.Z)({},_.slotProps,{paper:(0,St.Z)({},ce,{style:(0,St.Z)({minWidth:re},null!=ce?ce.style:null)})}),children:ne}))]})})),JS=QS,ex=(0,en.Z)((0,Tt.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),tx=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ix=["root"],nx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,It.FO)(e)&&"variant"!==e,slot:"Root"},ox=(0,It.ZP)(iS,nx)(""),rx=(0,It.ZP)(Ea,nx)(""),sx=(0,It.ZP)(cS,nx)(""),ax=i.forwardRef((function(e,t){const n=(0,Dt.Z)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=ex,id:u,input:h,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:v=!1,native:_=!1,onClose:b,onOpen:y,open:C,renderValue:w,SelectDisplayProps:S,variant:x="outlined"}=n,L=(0,wt.Z)(n,tx),k=_?zS:JS,E=Ks({props:n,muiFormControl:Gs(),states:["variant","error"]}),D=E.variant||x,I=(0,St.Z)({},n,{variant:D,classes:s}),N=(e=>{const{classes:t}=e;return t})(I),R=(0,wt.Z)(N,ix),q=h||{standard:(0,Tt.jsx)(ox,{ownerState:I}),outlined:(0,Tt.jsx)(rx,{label:p,ownerState:I}),filled:(0,Tt.jsx)(sx,{ownerState:I})}[D],T=(0,Nn.Z)(t,q.ref);return(0,Tt.jsx)(i.Fragment,{children:i.cloneElement(q,(0,St.Z)({inputComponent:k,inputProps:(0,St.Z)({children:r,error:E.error,IconComponent:d,variant:D,type:void 0,multiple:v},_?{id:u}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:b,onOpen:y,open:C,renderValue:w,SelectDisplayProps:(0,St.Z)({id:u},S)},g,{classes:g?(0,Ti.Z)(R,g.classes):R},h?h.props.inputProps:{})},v&&_&&"outlined"===D?{notched:!0}:{},{ref:T,className:(0,xt.Z)(q.props.className,a,N.root)},!h&&{variant:D},L))})}));ax.muiName="Select";const lx=ax;function cx(e){return(0,Rt.Z)("MuiTextField",e)}(0,Nt.Z)("MuiTextField",["root"]);const dx=["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"],ux={standard:iS,filled:cS,outlined:Ea},hx=(0,It.ZP)(kS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gx=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiTextField"}),{autoComplete:n,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:y,minRows:C,multiline:w=!1,name:S,onBlur:x,onChange:L,onFocus:k,placeholder:E,required:D=!1,rows:I,select:N=!1,SelectProps:R,type:q,value:T,variant:O="outlined"}=i,M=(0,wt.Z)(i,dx),A=(0,St.Z)({},i,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:h,multiline:w,required:D,select:N,variant:O}),P=(e=>{const{classes:t}=e;return(0,Lt.Z)({root:["root"]},cx,t)})(A),F={};"outlined"===O&&(m&&void 0!==m.shrink&&(F.notched=m.shrink),F.label=b),N&&(R&&R.native||(F.id=void 0),F["aria-describedby"]=void 0);const B=(0,Kw.Z)(p),W=g&&B?`${B}-helper-text`:void 0,V=b&&B?`${B}-label`:void 0,z=ux[O],H=(0,Tt.jsx)(z,(0,St.Z)({"aria-describedby":W,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:h,multiline:w,name:S,rows:I,maxRows:y,minRows:C,type:q,value:T,id:B,inputRef:_,onBlur:x,onChange:L,onFocus:k,placeholder:E,inputProps:f},F,v));return(0,Tt.jsxs)(hx,(0,St.Z)({className:(0,xt.Z)(P.root,s),disabled:c,error:d,fullWidth:h,ref:t,required:D,color:a,variant:O,ownerState:A},M,{children:[null!=b&&""!==b&&(0,Tt.jsx)(CS,(0,St.Z)({htmlFor:B,id:V},m,{children:b})),N?(0,Tt.jsx)(lx,(0,St.Z)({"aria-describedby":W,id:B,labelId:V,value:T,input:H},R,{children:r})):H,g&&(0,Tt.jsx)(TS,(0,St.Z)({id:W},u,{children:g}))]}))})),px=gx,mx="Search",fx={gridContainer:`${mx}-gridContainer`,gridItem:`${mx}-gridItem`},vx=(0,It.ZP)(Mo)((({theme:e})=>({[`& .${fx.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${fx.gridItem}`]:{padding:e.spacing(0,1,0,1)}})));function _x({onChange:e=(()=>{}),onEnter:t=(()=>{}),onEscape:n=(()=>{})}){const[o,r]=(0,i.useState)("");return i.createElement(vx,{className:fx.gridContainer,item:!0,container:!0,direction:"row",alignItems:"center"},i.createElement(Mo,{item:!0},i.createElement(Nf,null)),i.createElement(Mo,{className:fx.gridItem,item:!0,xs:!0},i.createElement(px,{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":n()}}})))}function bx({field:e,onSelect:t,sub:n,parts:o}){return i.createElement(Hr,{button:!0,onClick:()=>t(e.qName),"data-key":e.qName},i.createElement(Kr,null,o.map(((e,t)=>i.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),n&&i.createElement(Zw.Z,{fontSize:"small"}))}function yx({item:e,onSelect:t,parts:n}){return i.createElement(Hr,{button:!0,onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId},i.createElement(Kr,null,n.map(((e,t)=>i.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function Cx({aggr:e,field:t,onSelect:n}){return i.createElement(Hr,{button:!0,onClick:()=>n(e),"data-key":e},i.createElement(Kr,null,`${e}(${t})`))}function wx({app:e,onSelect:t,title:n="",type:o="dimension",searchTerm:r=""}){const[s]=Pw(e,o),a=(0,i.useMemo)((()=>s.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[s]);return s.length>0?i.createElement(i.Fragment,null,i.createElement(zw,{component:"div",style:{backgroundColor:"inherit"}},n),a.map((e=>{const n=$w()(e.qData.title,r),o=jw()(e.qData.title,n);return r&&0===n.length?null:i.createElement(yx,{key:e.qInfo.qId,item:e,onSelect:t,parts:o})}))):null}function Sx({alignTo:e,show:t,close:n,onSelected:o,type:r}){const s=(0,i.useContext)(qw),[a,l]=(0,i.useState)(null),[c,d]=(0,i.useState)(""),u=ei(),[h]=Mc({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=Vc(h),p=(0,i.useMemo)((()=>(g&&g.qFieldList.qItems||[]).slice().sort(((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())))),[g]),m=e=>{e&&e.qId?(o(e),n()):"measure"===r?l(e):(o({field:e}),n())},f=e=>{o({field:a,aggregation:e}),n()};return i.createElement(Ud,{open:t,onClose:n,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&&i.createElement(_x,{onChange:d}),a&&i.createElement(kr,{dense:!0,component:"nav"},i.createElement(Hr,{button:!0,onClick:()=>l(null)},i.createElement(tf,null,i.createElement(Gw.Z,null)),i.createElement(Kr,null,"Back")),i.createElement(Mm,null),i.createElement(zw,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>i.createElement(Cx,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&i.createElement(kr,{dense:!0,component:"nav",style:{background:u.palette.background.lightest}},i.createElement(wx,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),i.createElement(zw,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const t=$w()(e.qName,c),n=jw()(e.qName,t);return c&&0===t.length?null:i.createElement(bx,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:n})}))))}const xx=({field:e,libraryItems:t})=>{if(e.qLibraryId){const i=t.filter((t=>t.qInfo.qId===e.qLibraryId))[0];return i?i.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function Lx({items:e,type:t="dimension",label:n="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,i.useState)(!1),d=(0,i.useRef)(null),u=(0,i.useContext)(qw),[h]=Pw(u,t);return i.createElement("div",null,i.createElement(zo,{variant:"overline"},n),i.createElement(kr,{dense:!0},e.map(((e,n)=>i.createElement(Hr,{disableGutters:!0,key:e.qDef&&e.qDef.cId||n},i.createElement(Kr,null,i.createElement(xx,{field:e,libraryItems:h,type:t})),i.createElement(Pr,null,i.createElement(So,{onClick:()=>{s(n)},size:"large"},i.createElement(yr,null))))))),i.createElement(Pa,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&i.createElement(Sx,{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}))}const kx=(e,t,i)=>{const n=t.split("/");let o=e;if(void 0===o)return i;for(let e=0;e<n.length;++e)if(""!==n[e]){if(void 0===o[n[e]])return i;o=o[n[e]]}return o};function Ex({setProperties:e,target:t,properties:n}){const[o,r]=(0,i.useState)([]),s=t.dimensions&&t.dimensions.max&&t.dimensions.max()>1?Ow:T_,a=t.propertyPath.match("/qHyperCube")?R_:s,l=kx(n,t.propertyPath),c=(0,i.useMemo)((()=>a({def:t,dc:l,properties:n,dimensions:o})),[l,t,n,o]);return i.createElement("div",{style:{width:"100%"}},i.createElement(zo,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},t.propertyPath),i.createElement(Lx,{key:"dimensions",onAdded:t=>{const i="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(i);e(n).then((()=>{r([...o,s])}))},onRemoved:t=>{c.removeDimension(t),e(n).then((()=>{r([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),i.createElement(Lx,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(n)},onRemoved:t=>{c.removeMeasure(t),e(n)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function Dx({setProperties:e,sn:t,properties:n}){if(!t)return null;const{targets:o}=t.qae.data;return o.length?i.createElement(kr,null,o.map((t=>i.createElement(Hr,{key:t.propertyPath,divider:!0,disableGutters:!0},i.createElement(Ex,{target:t,properties:n,setProperties:e}))))):i.createElement(zo,null,"No data targets found")}const Ix=i.createContext({});function Nx(e){return(0,Rt.Z)("MuiAccordion",e)}const Rx=(0,Nt.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),qx=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],Tx=(0,It.ZP)(Td,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${Rx.region}`]:t.region},t.root,!i.square&&t.rounded,!i.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"}},[`&.${Rx.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Rx.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,St.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&&{[`&.${Rx.expanded}`]:{margin:"16px 0"}}))),Ox=i.forwardRef((function(e,t){const n=(0,Dt.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=mr,TransitionProps:g}=n,p=(0,wt.Z)(n,qx),[m,f]=(0,Au.Z)({controlled:c,default:s,name:"Accordion",state:"expanded"}),v=i.useCallback((e=>{f(!m),d&&d(e,!m)}),[m,d,f]),[_,...b]=i.Children.toArray(o),y=i.useMemo((()=>({expanded:m,disabled:a,disableGutters:l,toggle:v})),[m,a,l,v]),C=(0,St.Z)({},n,{square:u,disabled:a,disableGutters:l,expanded:m}),w=(e=>{const{classes:t,square:i,expanded:n,disabled:o,disableGutters:r}=e,s={root:["root",!i&&"rounded",n&&"expanded",o&&"disabled",!r&&"gutters"],region:["region"]};return(0,Lt.Z)(s,Nx,t)})(C);return(0,Tt.jsxs)(Tx,(0,St.Z)({className:(0,xt.Z)(w.root,r),ref:t,ownerState:C,square:u},p,{children:[(0,Tt.jsx)(Ix.Provider,{value:y,children:_}),(0,Tt.jsx)(h,(0,St.Z)({in:m,timeout:"auto"},g,{children:(0,Tt.jsx)("div",{"aria-labelledby":_.props.id,id:_.props["aria-controls"],role:"region",className:w.region,children:b})}))]}))})),Mx=Ox;function Ax(e){return(0,Rt.Z)("MuiAccordionSummary",e)}const Px=(0,Nt.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Fx=["children","className","expandIcon","focusVisibleClassName","onClick"],Bx=(0,It.ZP)(vo,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const i={duration:e.transitions.duration.shortest};return(0,St.Z)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],i),[`&.${Px.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Px.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Px.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Px.expanded}`]:{minHeight:64}})})),Wx=(0,It.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,St.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Px.expanded}`]:{margin:"20px 0"}}))),Vx=(0,It.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}),[`&.${Px.expanded}`]:{transform:"rotate(180deg)"}}))),zx=i.forwardRef((function(e,t){const n=(0,Dt.Z)({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l}=n,c=(0,wt.Z)(n,Fx),{disabled:d=!1,disableGutters:u,expanded:h,toggle:g}=i.useContext(Ix),p=(0,St.Z)({},n,{expanded:h,disabled:d,disableGutters:u}),m=(e=>{const{classes:t,expanded:i,disabled:n,disableGutters:o}=e,r={root:["root",i&&"expanded",n&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",i&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",i&&"expanded"]};return(0,Lt.Z)(r,Ax,t)})(p);return(0,Tt.jsxs)(Bx,(0,St.Z)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":h,className:(0,xt.Z)(m.root,r),focusVisibleClassName:(0,xt.Z)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:t,ownerState:p},c,{children:[(0,Tt.jsx)(Wx,{className:m.content,ownerState:p,children:o}),s&&(0,Tt.jsx)(Vx,{className:m.expandIconWrapper,ownerState:p,children:s})]}))})),Hx=zx;function jx(e){return(0,Rt.Z)("MuiAccordionDetails",e)}(0,Nt.Z)("MuiAccordionDetails",["root"]);const Ux=["className"],$x=(0,It.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),Zx=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiAccordionDetails"}),{className:n}=i,o=(0,wt.Z)(i,Ux),r=i,s=(e=>{const{classes:t}=e;return(0,Lt.Z)({root:["root"]},jx,t)})(r);return(0,Tt.jsx)($x,(0,St.Z)({className:(0,xt.Z)(s.root,n),ref:t,ownerState:r},o))})),Gx=Zx;var Kx=s(5756);let Xx=null;const Yx="AutoComponents",Qx={summary:`${Yx}-summary`,details:`${Yx}-details`,root:`${Yx}-root`},Jx=(0,It.ZP)(Mo)((({theme:e})=>({[`& .${Qx.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${Qx.details}`]:{padding:e.spacing(1)}}))),eL=(0,It.ZP)(Mx)((({theme:e})=>({[`& .${Qx.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),tL=(e,t)=>Array.isArray(e)?"array":oL&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":oL&&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",iL={boolean:function({property:e,value:t,target:n,changed:o}){return i.createElement(Mu,{control:i.createElement(eh,{checked:t,onChange:t=>{n[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:t,target:n,changed:o}){const[r,s]=(0,i.useState)(t);return i.createElement(px,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(n[e]=r,o())},label:e,value:r})},object:function({property:e,value:t,changed:n,app:o}){return i.createElement(eL,{square:!0,className:Qx.root},i.createElement(Hx,{expandIcon:i.createElement(Kx.Z,null),className:Qx.summary},i.createElement(zo,null,e)),i.createElement(Gx,{className:Qx.details},rL(t,n,o)))},number:function({property:e,value:t,target:n,changed:o}){const[r,s]=(0,i.useState)(+t);return i.createElement(px,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(n[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:t,target:n,changed:o}){const r=t.qStringExpression&&t.qStringExpression.qExpr?t.qStringExpression.qExpr:"",[s,a]=(0,i.useState)(r);return i.createElement(px,{variant:"standard",InputProps:{startAdornment:i.createElement(If,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==t&&(n[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:t,target:n,changed:o,app:r}){const[s,a]=(0,i.useState)(t.name),[l,c]=(0,i.useState)([]);return(0,i.useEffect)((()=>{!async function(){const e=await async function(e){return Xx||(Xx=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await Xx.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?i.createElement("em",null,"No variables in app"):i.createElement(kS,{size:"small",fullWidth:!0},i.createElement(lx,{onChange:t=>{a(t.target.value),n[e].name=t.target.value,n[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:s,renderValue:e=>0===e.length?i.createElement("em",null,"Select a variable"):e},l.map((e=>i.createElement(Ym,{key:e.value,value:e.value},e.label)))))}},nL=/^q[A-Z]/;let oL=!1;function rL(e,t,n,o){o&&o.PP_EXPRESSIONS&&(oL=!0);const r=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(nL.test(t))return!1;const i=tL(e[t],t);return!!iL[i]&&{Component:iL[i],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return i.createElement(Jx,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map((o=>i.createElement(Mo,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},i.createElement(o.Component,{key:o.key,app:n,property:o.property,value:o.value,target:e,changed:t})))))}function sL({viz:e,sn:t,isTemp:n,storage:o,flags:r}){const[s,a]=Rw(e.id),l=(0,i.useContext)(qw),[c,d]=(0,i.useState)(!1!==o.get("readFromCache")),u=(0,i.useCallback)((()=>{a(s)}),[e,t,s]);return t&&e&&s?i.createElement("div",{style:{minWidth:"250px",padding:"8px"}},n&&i.createElement(i.Fragment,null,i.createElement(Mo,{item:!0,container:!0,alignItems:"center"},i.createElement(Mu,{control:i.createElement(eh,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),i.createElement(Mm,null)),i.createElement(Dx,{properties:s,setProperties:a,sn:t}),rL(s,u,l,r)):null}function aL(e){return(0,Rt.Z)("MuiDialog",e)}const lL=(0,Nt.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cL=i.createContext({}),dL=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],uL=(0,It.ZP)(Cd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),hL=(0,It.ZP)(Ed,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),gL=(0,It.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.container,t[`scroll${(0,Gt.Z)(i.scroll)}`]]}})((({ownerState:e})=>(0,St.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"}}))),pL=(0,It.ZP)(Td,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.paper,t[`scrollPaper${(0,Gt.Z)(i.scroll)}`],t[`paperWidth${(0,Gt.Z)(String(i.maxWidth))}`],i.fullWidth&&t.paperFullWidth,i.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,St.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):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${lL.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}`,[`&.${lL.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,[`&.${lL.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),mL=i.forwardRef((function(e,t){const n=(0,Dt.Z)({props:e,name:"MuiDialog"}),o=ei(),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=Td,PaperProps:y={},scroll:C="paper",TransitionComponent:w=fd,transitionDuration:S=r,TransitionProps:x}=n,L=(0,wt.Z)(n,dL),k=(0,St.Z)({},n,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:p,maxWidth:m,scroll:C}),E=(e=>{const{classes:t,scroll:i,maxWidth:n,fullWidth:o,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${(0,Gt.Z)(i)}`],paper:["paper",`paperScroll${(0,Gt.Z)(i)}`,`paperWidth${(0,Gt.Z)(String(n))}`,o&&"paperFullWidth",r&&"paperFullScreen"]};return(0,Lt.Z)(s,aL,t)})(k),D=i.useRef(),I=(0,Kw.Z)(a),N=i.useMemo((()=>({titleId:I})),[I]);return(0,Tt.jsx)(hL,(0,St.Z)({className:(0,xt.Z)(E.root,u),closeAfterTransition:!0,components:{Backdrop:uL},componentsProps:{backdrop:(0,St.Z)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:h,onClose:v,open:_,ref:t,onClick:e=>{D.current&&(D.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:k},L,{children:(0,Tt.jsx)(w,(0,St.Z)({appear:!0,in:_,timeout:S,role:"presentation"},x,{children:(0,Tt.jsx)(gL,{className:(0,xt.Z)(E.container),onMouseDown:e=>{D.current=e.target===e.currentTarget},ownerState:k,children:(0,Tt.jsx)(pL,(0,St.Z)({as:b,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":I},y,{className:(0,xt.Z)(E.paper,y.className),ownerState:k,children:(0,Tt.jsx)(cL.Provider,{value:N,children:d})}))})}))}))})),fL=mL;function vL(e){return(0,Rt.Z)("MuiDialogTitle",e)}const _L=(0,Nt.Z)("MuiDialogTitle",["root"]),bL=["className","id"],yL=(0,It.ZP)(zo,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),CL=i.forwardRef((function(e,t){const n=(0,Dt.Z)({props:e,name:"MuiDialogTitle"}),{className:o,id:r}=n,s=(0,wt.Z)(n,bL),a=n,l=(e=>{const{classes:t}=e;return(0,Lt.Z)({root:["root"]},vL,t)})(a),{titleId:c=r}=i.useContext(cL);return(0,Tt.jsx)(yL,(0,St.Z)({component:"h2",className:(0,xt.Z)(l.root,o),ownerState:a,ref:t,variant:"h6",id:null!=r?r:c},s))})),wL=CL;function SL(e){return(0,Rt.Z)("MuiDialogContent",e)}(0,Nt.Z)("MuiDialogContent",["root","dividers"]);const xL=["className","dividers"],LL=(0,It.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,St.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}`}:{[`.${_L.root} + &`]:{paddingTop:0}}))),kL=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=i,r=(0,wt.Z)(i,xL),s=(0,St.Z)({},i,{dividers:o}),a=(e=>{const{classes:t,dividers:i}=e,n={root:["root",i&&"dividers"]};return(0,Lt.Z)(n,SL,t)})(s);return(0,Tt.jsx)(LL,(0,St.Z)({className:(0,xt.Z)(a.root,n),ownerState:s,ref:t},r))})),EL=kL;function DL(e){return(0,Rt.Z)("MuiDialogActions",e)}(0,Nt.Z)("MuiDialogActions",["root","spacing"]);const IL=["className","disableSpacing"],NL=(0,It.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,St.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}}))),RL=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=i,r=(0,wt.Z)(i,IL),s=(0,St.Z)({},i,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:i}=e,n={root:["root",!i&&"spacing"]};return(0,Lt.Z)(n,DL,t)})(s);return(0,Tt.jsx)(NL,(0,St.Z)({className:(0,xt.Z)(a.root,n),ownerState:s,ref:t},r))})),qL=RL;var TL=s(3713);function OL({model:e,show:t,close:n}){const[o,r]=(0,i.useState)(""),[s,a]=(0,i.useState)(null),[l,c]=(0,i.useState)([]),[d,u,h]=Hc(),g=ei(),p=(0,i.useCallback)((()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(n)}));return(0,i.useEffect)((()=>{if(!t)return;const i=()=>{e&&t&&e.getProperties().then((e=>{t&&r(JSON.stringify(e||{},null,2))}))};return e.on("changed",i),i(),()=>{e&&e.removeListener("changed",i)}}),[e&&e.id,t]),(0,i.useEffect)((()=>{if(!(d&&h&&u&&o))return;const{left:e,top:t,width:i,height:n}=u;if(0===e&&0===t&&0===i&&0===n)return;const r=TL.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=TL.editor.getModelMarkers();c(e)}));return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}}),[h,u,o]),i.createElement(fL,{disableEscapeKeyDown:!0,open:t,scroll:"paper",maxWidth:"md",onClose:n,PaperProps:{style:{height:"80%",width:"80%"}}},i.createElement(wL,null,"Modify object properties"),i.createElement(EL,{dividers:!0},i.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),i.createElement(qL,null,i.createElement(Pa,{variant:"contained",onClick:n},"Cancel"),i.createElement(Pa,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const ML=i.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),AL=i.createContext();function PL({id:e,onLoad:t}){const n=(0,i.useContext)(AL),o=(0,i.useRef)();return(0,i.useEffect)((()=>{const i=n.render({id:e,element:o.current});return i.then((e=>{t(e,o.current)})),()=>{i.then((e=>{e.destroy()}))}}),[e]),i.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const FL="Cell",BL={secondaryIcon:`${FL}-secondaryIcon`,drop:`${FL}-drop`},WL=(0,It.ZP)(Mo)((({theme:e})=>({[`& .${BL.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${BL.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function VL({id:e,expandable:t,minHeight:n}){const o=(0,i.useContext)(qw),[r,s]=(0,i.useState)(null),[a,l]=(0,i.useState)(!1),[c,d]=(0,i.useState)(null),{currentThemeName:u,activeViz:h,setActiveViz:g,setExpandedObject:p,expandedObject:m}=(0,i.useContext)(ML),f=m===e,v=(0,i.useRef)();(0,i.useEffect)((()=>{const t=o.getObject(e).then((e=>(s(e),e)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[_,b]=(0,i.useState)(!1),y=(0,i.useCallback)((()=>{b(!1)}),[]),C=(0,i.useCallback)(((e,t)=>{v.current={viz:e,el:t},d(e)}),[e]),w=(0,i.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 i.createElement(WL,{container:!0,direction:"column",style:{minHeight:n,height:"100%",position:"relative"}},i.createElement(Mo,{item:!0},i.createElement(jC,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},i.createElement(OL,{model:r,show:_,close:y}),i.createElement(So,{title:"Modify object properties",className:BL.secondaryIcon,disabled:!r,onClick:()=>b(!0),size:"large"},br({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"}}]})),i.createElement(So,{title:"Open in single render view",className:BL.secondaryIcon,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"},br({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"}}]})),i.createElement(So,{title:"Take and render as snapshot",className:BL.secondaryIcon,disabled:!r,onClick:()=>w(),size:"large"},br({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?i.createElement(sl,{size:24}):i.createElement(So,{title:"Export as image",className:BL.secondaryIcon,disabled:!r,onClick:()=>w(!0),size:"large"},br({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"}}]})),i.createElement(Mo,{item:!0,xs:!0}),t&&i.createElement(So,{title:"Edit",className:BL.secondaryIcon,disabled:!c||x,onClick:()=>g(c),size:"large"},br({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&&i.createElement(So,{title:"Expand",disabled:!r||!c,className:BL.secondaryIcon,onClick:()=>{f?p(null):(p(e),g(c))},size:"large"},br({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"}}]})))),i.createElement(Mo,{item:!0,xs:!0,style:{...S},className:BL.drop},i.createElement(PL,{id:e,onLoad:C})))}function zL({info:e,storage:t,uid:n}){const o=(0,i.useContext)(AL),{activeViz:r,setActiveViz:s}=(0,i.useContext)(ML),[a]=Rw(n);return(0,i.useEffect)((()=>{if(!n)return;const i=o.render({type:e.supernova.name,properties:{...!1!==t.get("readFromCache")?t.props(e.supernova.name):{},qInfo:{qId:n,qType:e.supernova.name}}});return i.then((e=>{s(e)})),()=>{i.then((e=>e.destroy()))}}),[n]),(0,i.useEffect)((()=>{a&&t.props(e.supernova.name,a)}),[a]),r&&r.id===n?i.createElement(Mo,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},i.createElement(Mo,{item:!0,xs:!0},i.createElement(VL,{id:n}))):null}function HL({types:e,cache:t}){const n=(0,i.useContext)(qw),[o]=zc(n),[r,s]=(0,i.useState)(null),{expandedObject:a}=(0,i.useContext)(ML);if((0,i.useEffect)((()=>{n.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 i.createElement(Mo,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>i.createElement(Mo,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${t}`},i.createElement(VL,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):i.createElement(Mo,{item:!0},i.createElement("div",null,i.createElement(zo,{display:"inline"},"Could not find any components with "),i.createElement(zo,{display:"inline"},i.createElement("code",null,`qType: "${e[0]}"`)),i.createElement(zo,{display:"inline"}," in the current app"))))}const jL=["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"],UL=["select","active","passive"];function $L(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function ZL(){const e=(0,i.useRef)(),t=X(),{info:n}=gt(),{waiting:o,app:r}=(({info:e})=>{const[t,n]=(0,i.useState)(null),[o,r]=(0,i.useState)(!0);(0,i.useEffect)((()=>{r(!0),e&&s().then((e=>n(e))).catch((e=>console.log(e))).finally((()=>r(!1)))}),[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:i,enigma:n=null,enigma:{host:o}={}}=e;let r="";if(i){const t=await ht({webIntegrationId:i,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=ye().buildUrl(n);return(await ve().create({schema:_e,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:t,setApp:n}})({info:n}),s=(0,i.useMemo)((()=>vt(r)),[r]),[a,l]=(0,i.useState)(null),[c,d]=(0,i.useState)(null),[u,h]=(0,i.useState)(null),[g,p]=(0,i.useState)(s.get("themeName")),[m,f]=(0,i.useState)(s.get("language")||"en-US"),[v,_]=(0,i.useState)("light"),[b,y]=(0,i.useState)(UL),[C,w]=(0,i.useState)(!0===s.get("objectListMode")),S=(0,i.useRef)(null),[x,L]=(0,i.useState)(),[k,E]=i.useState(null),[D,I]=i.useState(null),[N,R]=(0,i.useState)(!1),[q,T]=(0,i.useState)(null),O=Array.isArray(n?.themes)&&n.themes.length?["light","dark",...n.themes]:[],M=(0,i.useMemo)((()=>Ii(v)),[v]),A=(0,i.useMemo)((()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d})),[a,c,g]);(0,i.useEffect)((()=>{(async()=>{n&&(await function(e){const t=()=>{Iw(e.supernova.name,e.supernova.url).then((t=>{var i;window[e.supernova.name]=t,i=e.supernova.name,Nw[i]&&Nw[i].forEach((e=>e()))}))};if(e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t(),e.types){const t=e.types.map((e=>Iw(e.name,e.url).then((t=>{window[e.name]=t}))));return Promise.all(t)}return Promise.resolve()}(n),R(!0))})()}),[n]),(0,i.useEffect)((()=>{if(o||!N)return;const e=bC(r,{context:{theme:g,language:m,interactions:$L(b),keyboardNavigation:n?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:n?.flags,themes:n?.themes?n?.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(n?.supernova),n?.types&&n?.types.forEach((t=>{e.__DO_NOT_USE__.types.register(t)})),T(e)}),[r,n,o,N]),(0,i.useLayoutEffect)((()=>{q&&(q.context({theme:g}),"light"!==g&&"dark"!==g||_(g))}),[q,g]);const P=()=>{window[n?.supernova.name]&&(e.current=String(Date.now()),L(e.current))};return(0,i.useEffect)((()=>{q&&(q.selections().then((e=>e.mount(S.current))),window.onHotChange(n?.supernova.name,(()=>{q.__DO_NOT_USE__.types.clearFromCache(n?.supernova.name),q.__DO_NOT_USE__.types.register(n?.supernova),P(),q.__DO_NOT_USE__.types.get({name:n?.supernova.name}).supernova().then(h)})),P())}),[q,n]),(0,i.useEffect)((()=>{const t=()=>{r&&r.destroySessionObject(e.current)};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[r]),i.createElement(qw.Provider,{value:r},i.createElement(mi,{injectFirst:!0},i.createElement(hi,{theme:M},i.createElement(AL.Provider,{value:q},i.createElement(Mo,{container:!0,wrap:"nowrap",direction:"column",style:{background:M.palette.background.darkest,height:"100%"},gap:0},i.createElement(Mo,{item:!0},i.createElement(jC,{variant:"dense",style:{background:M.palette.background.paper,boxShadow:M.shadows[1]}},i.createElement(Mo,{container:!0,gap:1},i.createElement(Mo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(Mo,{item:!0},i.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},i.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"}})))),i.createElement(Mo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(So,{title:"Home",onClick:()=>t("/"),size:"large"},i.createElement(MC.Z,{style:{verticalAlign:"middle"}}))),i.createElement(Mo,{item:!0,xs:!0,zeroMinWidth:!0},i.createElement(As,{value:C?1:0,onChange:(e,t)=>{const i=1===t;s.save("objectListMode",i),i&&(l(null),d(null)),w(i)},"aria-label":"Navigation"},i.createElement(zs,{label:i.createElement(zo,null,"Create"),value:0}),i.createElement(zs,{label:i.createElement(zo,null,"Edit"),value:1}))),i.createElement(Mo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(Mo,{item:!0,gap:1},i.createElement(zo,null,"State:")),i.createElement(Mo,{item:!0,gap:2},i.createElement(YC,{size:"small",value:b,onChange:(e,t)=>{y(t),q&&q.context({interactions:$L(t)})},color:"primary"},i.createElement(nw,{value:"select"},"Select"),i.createElement(nw,{value:"active"},"Active"),i.createElement(nw,{value:"passive"},"Passive"),i.createElement(nw,{value:"edit"},"Edit"))),i.createElement(Mo,{item:!0},O.length?i.createElement(i.Fragment,null,i.createElement(So,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},i.createElement(AC.Z,{fontSize:"small"})),i.createElement(gw,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},O.map((e=>i.createElement(Ym,{key:e,selected:e===g,onClick:()=>(e=>{E(null),s.save("themeName",e),p(e)})(e)},e))))):i.createElement(So,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?i.createElement(PC.Z,{fontSize:"small"}):i.createElement(FC.Z,{fontSize:"small"}))),i.createElement(Mo,{item:!0},i.createElement(Pa,{startIcon:i.createElement(BC.Z,null),title:"Select language",onClick:e=>I(e.currentTarget)},m),i.createElement(gw,{anchorEl:D,open:!!D,keepMounted:!0,onClose:()=>I(null)},jL.map((e=>i.createElement(Ym,{key:e,selected:e===m,onClick:()=>{return t=e,I(null),s.save("language",t),f(t),void(q&&q.context({language:t}));var t}},e))))))))),i.createElement(Mo,{item:!0,style:{padding:M.spacing(1,1,0,1)}},i.createElement("div",{ref:S,style:{flex:"0 0 auto",boxShadow:M.shadows[1]}})),i.createElement(Mo,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:M.spacing(0,1,1,1)}},i.createElement(ML.Provider,{value:A},u?i.createElement(Mo,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},i.createElement(Mo,{item:!0,xs:!0,zeroMinWidth:!0},C?i.createElement(HL,{cache:x,types:[n?.supernova.name]}):i.createElement(zL,{info:n,storage:s,uid:x})),a&&i.createElement(Mo,{item:!0,style:{background:M.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:M.shadows[1],padding:0}},i.createElement(sL,{sn:u,viz:a,isTemp:!C,storage:s,flags:n?.flags}))):i.createElement(Mo,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},i.createElement(Mo,{item:!0},i.createElement(sl,null))))))))))}const GL=()=>i.createElement(ge,null,i.createElement(Ct,null,i.createElement(ce,null,i.createElement(ae,{element:i.createElement(En,null)},i.createElement(ae,{path:"/",element:i.createElement($a,null)}),i.createElement(ae,{path:"/app-list",element:i.createElement(al,null)})),i.createElement(ae,{path:"/dev",element:i.createElement(ZL,null)}))));o.createRoot(document.querySelector("#app")).render(i.createElement(GL,null))})()})();
|
|
102
|
+
`),tl))),rl=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=i,u=(0,wt.Z)(i,Ga),h=(0,St.Z)({},i,{color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:i,color:n,disableShrink:o}=e,r={root:["root",i,`color${(0,Gt.Z)(n)}`],svg:["svg"],circle:["circle",`circle${(0,Gt.Z)(i)}`,o&&"circleDisableShrink"]};return(0,Lt.Z)(r,Za,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,Tt.jsx)(il,(0,St.Z)({className:(0,xt.Z)(g.root,n),style:(0,St.Z)({width:s,height:s},m,a),ownerState:h,ref:t,role:"progressbar"},f,u,{children:(0,Tt.jsx)(nl,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,Tt.jsx)(ol,{className:g.circle,style:p,ownerState:h,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))})),sl=rl,al=()=>{const e=X(),t=G(),{info:n,glob:o,treatAsDesktop:r}=yt(),{loading:s,appList:a}=(({glob:e,info:t})=>{const n=X(),{setInfo:o,setActiveStep:r}=yt(),[s,a]=(0,i.useState)(),[l,c]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{r(1),ut().then((e=>{o(e)}))}),[]),(0,i.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),n(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:n});return i.createElement(wn,null,i.createElement(zo,{variant:"h5",gutterBottom:!0},"Select an app"),s&&i.createElement(sl,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&i.createElement(zo,{component:"span"},"No apps found!"),a&&a.length>0&&i.createElement(kr,null,a.map((o=>i.createElement(Hr,{button:!0,component:"a",key:o.qDocId,onClick:()=>(({navigate:e,location:t,targetApp:i,info:n})=>{const{search:o}=t,r=`${n.enigma.secure?"wss":"ws"}://${"localhost"===n.enigma.host?`${n.enigma.host}:${n.enigma.port}`:n.enigma.host}/app/${encodeURIComponent(i)}`;e(`/dev/${o.replace(n.engineUrl,r)}`.replace("&shouldFetchAppList=true",""))})({info:n,navigate:e,location:t,targetApp:r?o.qDocName:o.qDocId})},i.createElement(Kr,{primary:o.qTitle,secondary:o.qDocId}))))))};s(9779);const ll=({initial:e="en-US",fallback:t="en-US"}={})=>{const i=function({initial:e="en-US",fallback:t="en-US"}={}){const i={};let n=e;const o={language:e=>(e&&(n=e),n),add:e=>{const{id:t,locale:n}=e;Object.keys(n).forEach((e=>{i[e]||(i[e]={}),i[e][t]=n[e]}))},get(e,o){let r;return r=i[n]&&void 0!==i[n][e]?i[n][e]:i[t]&&void 0!==i[t][e]?i[t][e]:e,void 0!==o?((e="",t=[])=>{const i="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==i[t]?i[t]:e))})(r,o):r}};return o}({initial:e,fallback:t});return{translator:i}},cl=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_DrillDown":{"id":"Listbox.DrillDown","locale":{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","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_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},"Listbox_ScreenReader_SelectionMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},"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_Listbox_Alternative":{"id":"Object.Listbox.Alternative","locale":{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},"Object_Listbox_Excluded":{"id":"Object.Listbox.Excluded","locale":{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},"Object_Listbox_ExcludedLock":{"id":"Object.Listbox.ExcludedLock","locale":{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},"Object_Listbox_Locked":{"id":"Object.Listbox.Locked","locale":{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},"Object_Listbox_Optional":{"id":"Object.Listbox.Optional","locale":{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},"Object_Listbox_Selected":{"id":"Object.Listbox.Selected","locale":{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},"Object_Listbox_SelectedExcluded":{"id":"Object.Listbox.SelectedExcluded","locale":{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","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":"重試"}},"ScreenReader_ManySearchResults":{"id":"ScreenReader.ManySearchResults","locale":{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},"ScreenReader_ManySelected":{"id":"ScreenReader.ManySelected","locale":{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},"ScreenReader_OneSearchResult":{"id":"ScreenReader.OneSearchResult","locale":{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},"ScreenReader_OneSelected":{"id":"ScreenReader.OneSelected","locale":{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},"ScreenReader_ZeroSelected":{"id":"ScreenReader.ZeroSelected","locale":{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n\'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","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":"選取可能值"}},"SelectionToolbar_ClickToUnlock":{"id":"SelectionToolbar.ClickToUnlock","locale":{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","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 dl=s(9544),ul=s.n(dl);function hl(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function gl(e,t){var i=Object.create(e.prototype);for(var n in t)i[n]=t[n];return i}function pl(){}var ml=.7,fl=1/ml,vl="\\s*([+-]?\\d+)\\s*",_l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yl=/^#([0-9a-f]{3,8})$/,Cl=new RegExp(`^rgb\\(${vl},${vl},${vl}\\)$`),wl=new RegExp(`^rgb\\(${bl},${bl},${bl}\\)$`),Sl=new RegExp(`^rgba\\(${vl},${vl},${vl},${_l}\\)$`),xl=new RegExp(`^rgba\\(${bl},${bl},${bl},${_l}\\)$`),Ll=new RegExp(`^hsl\\(${_l},${bl},${bl}\\)$`),kl=new RegExp(`^hsla\\(${_l},${bl},${bl},${_l}\\)$`),El={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 Dl(){return this.rgb().formatHex()}function Il(){return this.rgb().formatRgb()}function Nl(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=yl.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?Rl(t):3===i?new Ol(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?ql(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?ql(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=Cl.exec(e))?new Ol(t[1],t[2],t[3],1):(t=wl.exec(e))?new Ol(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Sl.exec(e))?ql(t[1],t[2],t[3],t[4]):(t=xl.exec(e))?ql(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ll.exec(e))?Wl(t[1],t[2]/100,t[3]/100,1):(t=kl.exec(e))?Wl(t[1],t[2]/100,t[3]/100,t[4]):El.hasOwnProperty(e)?Rl(El[e]):"transparent"===e?new Ol(NaN,NaN,NaN,0):null}function Rl(e){return new Ol(e>>16&255,e>>8&255,255&e,1)}function ql(e,t,i,n){return n<=0&&(e=t=i=NaN),new Ol(e,t,i,n)}function Tl(e,t,i,n){return 1===arguments.length?((o=e)instanceof pl||(o=Nl(o)),o?new Ol((o=o.rgb()).r,o.g,o.b,o.opacity):new Ol):new Ol(e,t,i,null==n?1:n);var o}function Ol(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function Ml(){return`#${Bl(this.r)}${Bl(this.g)}${Bl(this.b)}`}function Al(){const e=Pl(this.opacity);return`${1===e?"rgb(":"rgba("}${Fl(this.r)}, ${Fl(this.g)}, ${Fl(this.b)}${1===e?")":`, ${e})`}`}function Pl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bl(e){return((e=Fl(e))<16?"0":"")+e.toString(16)}function Wl(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new zl(e,t,i,n)}function Vl(e){if(e instanceof zl)return new zl(e.h,e.s,e.l,e.opacity);if(e instanceof pl||(e=Nl(e)),!e)return new zl;if(e instanceof zl)return e;var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,o=Math.min(t,i,n),r=Math.max(t,i,n),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(i-n)/a+6*(i<n):i===r?(n-t)/a+2:(t-i)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new zl(s,a,l,e.opacity)}function zl(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function Hl(e){return(e=(e||0)%360)<0?e+360:e}function jl(e){return Math.max(0,Math.min(1,e||0))}function Ul(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}hl(pl,Nl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Dl,formatHex:Dl,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Vl(this).formatHsl()},formatRgb:Il,toString:Il}),hl(Ol,Tl,gl(pl,{brighter(e){return e=null==e?fl:Math.pow(fl,e),new Ol(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ml:Math.pow(ml,e),new Ol(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ol(Fl(this.r),Fl(this.g),Fl(this.b),Pl(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:Ml,formatHex:Ml,formatHex8:function(){return`#${Bl(this.r)}${Bl(this.g)}${Bl(this.b)}${Bl(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Al,toString:Al})),hl(zl,(function(e,t,i,n){return 1===arguments.length?Vl(e):new zl(e,t,i,null==n?1:n)}),gl(pl,{brighter(e){return e=null==e?fl:Math.pow(fl,e),new zl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ml:Math.pow(ml,e),new zl(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,i=this.l,n=i+(i<.5?i:1-i)*t,o=2*i-n;return new Ol(Ul(e>=240?e-240:e+120,o,n),Ul(e,o,n),Ul(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new zl(Hl(this.h),jl(this.s),jl(this.l),Pl(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=Pl(this.opacity);return`${1===e?"hsl(":"hsla("}${Hl(this.h)}, ${100*jl(this.s)}%, ${100*jl(this.l)}%${1===e?")":`, ${e})`}`}}));var $l=s(1302),Zl=s.n($l);const Gl=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"]}]}}'),Kl=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"}'),Xl=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"}'),Yl=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),Ql=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Nl(e)}addColorPart(e,t,i){i=i||0,this.startLevel=Math.max(i,this.startLevel),this.colorParts[i]||(this.colorParts[i]=[]),this.colorParts[i].push([Nl(e),Nl(t)])}getColor(e,t){const i=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+i))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const n=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(i,this.colorParts[t].length);let o=Math.floor(n);o=o===n?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,i){return Tl(Math.floor(e.r+(t.r-e.r)*i),Math.floor(e.g+(t.g-e.g)*i),Math.floor(e.b+(t.b-e.b)*i),Math.floor(e.opacity+(t.opacity-e.opacity)*i))}(s,a,n-o);return l}};function Jl(e,t,i){const n=.25+(t+1)/i*.25,o=.5-n;return o+e/1*(.5+n-o)}function ec(e,t,i){const n=[],o=new Ql(t);n.push(e[0]),i||n.push(e[0]);let r=1;for(;r<e.length-1;r++)n.push(e[r]),n.push(e[r]);n.push(e[r]),i||n.push(e[r]);for(let e=0;e<n.length;e+=2)o.addColorPart(n[e],n[e+1]);return o}function tc(e,t,i){const n=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const n=Jl(1/t*o,t,i);r=e.getColor(n);break}}n.push(Nl(r).formatHex())}return n}function ic(e,t){const i=[];let n,o;if(e){let r=e.length;for(;r>=0;){for(n=t.slice(),o=n.length;o>=0;)i.push(n.concat(e)),n.pop(),o--;e.pop(),r--}}else for(n=t.slice(),o=n.length;o>=0;)i.push(n.concat()),n.pop(),o--;return i}function nc(e,t){let i=e;for(let e=0;e<t.length;e++){if(!i[t[e]])return;i=i[t[e]]}return i}function oc(e,t){const i=e.split(".");return{getStyle:(e,n)=>function(e,t,i,n){let o;return o=ic(""===e?null:e.split("."),i),function(e,t,i){const n=t.split(".");for(let t=0;t<e.length;t++){const o=nc(i,[...e[t],...n]);if(void 0!==o)return o}}(o,t,n)}(e,n,i.concat(),t)}}function rc(e,t){Object.keys(e).forEach((i=>{"object"==typeof e[i]&&null!==e[i]?rc(e[i],t):"string"==typeof e[i]&&"@"===e[i].charAt(0)&&(e[i]=t[e[i]])}))}function sc(e){const t=Nl(e).rgb(),{r:i,g:n,b:o}=t,[r,s,a]=[i,n,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)}oc.resolveRawTheme=e=>{const t=Zl()(!0,{},e);return rc(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const i=function(e,t,i){const n=ec(e,i,!0),o=ec(tc(n,t-1,t),i,!1),r=[null];for(let e=0;e<t;e++)r.push(tc(o,e,t));return r}(e.scale,Math.max(e.scale.length,7),t);e.scale=i,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const ac=1e3;function lc(){let e,t,i,n={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>i.getBestContrastColor(e),getStyle:(t,i,o)=>(n[t]||(n[t]=oc(t,e)),n[t].getStyle(i,o)),validateColor(...e){const t=e[0];let i;if("string"==typeof t&&(i=/^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(i[1],10)/255;return`rgba(${parseInt(i[2],10)},${parseInt(i[3],10)},${parseInt(i[4],10)},${e})`}const n=Nl(...e);return n?n.toString():void 0}},r={setTheme(r,s){e=function(e,t){const i="dark"===e.type?Xl:Kl;let n=Yl;!1!==e._inherit&&"false"!==e._inherit||(n={});const o=Zl()(!0,{},Gl,i,n),r=Zl()(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return r.palettes.data&&r.palettes.data.length||(r.palettes.data=o.palettes.data),r.palettes.ui&&r.palettes.ui.length||(r.palettes.ui=o.palettes.ui),r.scales&&r.scales.length||(r.scales=o.scales),t(r)}(r,oc.resolveRawTheme),n={},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,i){return i=!!i,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-i]?e.color:t.colors[e.index-i]:e.color)}}}(e);const a=o.getStyle("","","color"),l=sc(a);i=function(e=["#333333","#ffffff"]){let t={},i=0;const n=e.map(sc);return{getBestContrastColor(o){if(!t[o]){i>ac&&(t={},i=0);const r=sc(o),s=n.map((e=>{return t=r,i=e,+((Math.max(t,i)+.05)/(Math.min(t,i)+.05)).toFixed(5);var t,i})),a=e[s.indexOf(Math.max(...s))];t[o]=a,i++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(ul().prototype).forEach((e=>{o[e]=ul().prototype[e]})),ul().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}const cc=i.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),dc=(e={},t=(()=>{}))=>{const n=e,o=[],r={get:e=>n[e],set:(e,i)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return n[e]=i,t({type:"SET",value:i}),i},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);n[e]=null},dispatch:e=>{o.forEach((t=>t(e?{}:n)))}};return[()=>{const[,e]=(0,i.useState)(n);return(0,i.useEffect)((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[r]},r]},[uc,hc]=dc({}),[gc,pc]=dc({}),[mc,fc]=dc({});function vc(e){if(!e.session)return[];const[t]=uc(),n=e?e.id:null;let o=t.get(n);return(0,i.useEffect)((()=>{e&&!o&&(o=function({app:e}){const t=`${e.id}`,i=async(e=!0)=>{const{model:i,objectSelections:n}=fc.get(t)||{};i&&(await i.endSelections(e),fc.clear(t),n.emit("deactivated"))},n={begin:async({model:n,paths:o,accept:r=!0,objectSelections:s})=>{if(s===fc.get(t)?.objectSelections)return;i(r),fc.set(t,{model:n,objectSelections:s});const a=Array.isArray(o)?o:[o],l=async i=>{try{await n.beginSelections(a),fc.set(t,{model:n,objectSelections:s})}catch(n){6003!==n.code||i?fc.clear(t):(await e.abortModal(r),l(!0))}};await l()},end:i};return pc.set(t,n),{model:e,isInModal:()=>!!fc.get(t),isModal:e=>e?fc.get(t)?.objectSelections===e:!!fc.get(t),forward:()=>n.end().then((()=>e.forward())),back:()=>n.end().then((()=>e.back())),clear:()=>n.end().then((()=>e.clearAll())),clearField:(t,i="$")=>n.end().then((()=>e.getField(t,i).then((e=>e.clear()))))}}({app:e}),t.set(n,o),t.dispatch(!0))}),[e]),[o]}const _c={active:!0,select:!0,passive:!0,edit:!1};function bc(e){const t={},i={},n=function(e){const{constraints:t={},interactions:i={}}=e;if(Object.keys(i).length>0)return i;const n={};return Object.keys(t).forEach((e=>{n[e]=!t[e]})),n}(e);Object.keys(_c).forEach((e=>{void 0!==n[e]?(t[e]=n[e],i[e]=!n[e]):(t[e]=_c[e],i[e]=!_c[e])})),e.constraints=i,e.interactions=t}const yc=(0,i.forwardRef)((({initialContext:e,app:t,renderCallback:n},o)=>{const[r]=vc(t),[s,a]=(0,i.useState)(e),[l,c]=(0,i.useState)(),{theme:d}=(0,i.useMemo)((()=>({theme:Ii(l)})),[l]),[u,h]=(0,i.useState)([]);return(0,i.useEffect)((()=>{n&&n()}),[]),(0,i.useImperativeHandle)(o,(()=>({setComps(e){h([...e])},setMuiThemeName:c,setContext:e=>a((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>r})),[]),i.createElement(mi,{injectFirst:!0},i.createElement(hi,{theme:d},i.createElement(cc.Provider,{value:s},u)))})),[Cc,wc]=dc({}),[Sc,xc]=dc({}),[Lc,kc]=dc({}),[Ec,Dc]=dc({}),[Ic,Nc]=dc({}),[,Rc]=dc({}),qc=({type:e,value:t})=>{const i=Rc.get(t.id);Rc.set(t.id,{});const n=()=>{xc.clear(t.id),Nc.set(t.id,{}),Nc.dispatch(!0)},o=()=>{t.removeListener("changed",n),wc.clear(t.id),xc.clear(t.id),kc.clear(t.id),Dc.clear(t.id),Nc.clear(t.id),Rc.clear(t.id)};return"SET"===e&&(i||(t.on("changed",n),t.once("closed",(()=>{o()})))),o},[Tc,Oc]=dc({},qc);function Mc(e,t,...n){const o=t?`${t.id}/${JSON.stringify(e)}`:null,[r]=Tc(),[s]=Lc(),[a,l]=(0,i.useState)();return(0,i.useEffect)((()=>{t&&(async()=>{let i=s.get(o);i||(i=t.createSessionObject(e),s.set(o,i));const n=await i;r.set(o,n),l(n)})()}),[t,...n]),[a]}const Ac={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Pc(e){return Mc(Ac,e)}const Fc=e=>new Promise((t=>{setTimeout(t,e)})),Bc=(e,t)=>{const{rpcResultStore:i,key:n,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=i.get(n);return s||(s={}),s[o]=r,i.set(n,s),r};function Wc(e,t){const n=e?`${e.id}`:null,[o]=Cc(),[r,s]=(0,i.useReducer)(Bc,n?o.get(n):null),[a]=Ic(),[l]=Sc();let c;n&&(c=l.get(n),c||(c={},l.set(n,c)));const d=async i=>{let r=c[t];(!r||r&&r.rpcRetry)&&(r={rpc:e[t](),rpcRetry:!1},c[t]=r,s({type:"INVALID",method:t,key:n,model:e,rpcResultStore:o,canCancel:!0}));try{await Fc(0);const i=await r.rpc;s({type:"VALID",result:i,key:n,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||i||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},u={cancel:async()=>{const i=e.session.getObjectApi({handle:-1});await i.cancelRequest(c[t].rpc.requestId),s({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:o})},retry:()=>{c[t].rpcRetry=!0,d()}};return(0,i.useEffect)((()=>{e&&d()}),[e,a.get(e&&e.id),n,t]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},u]}function Vc(e){return Wc(e,"getLayout")}function zc(e){return Wc(e,"getAppLayout")}function Hc(){const[e,t]=(0,i.useState)(),[n,o]=(0,i.useState)(),r=(0,i.useCallback)((e=>{e&&t(e)}),[]),s=()=>{const{left:t,top:i,width:n,height:r}=e.getBoundingClientRect();o({left:t,top:i,width:n,height:r})};return(0,i.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,n,e]}const jc=e=>br((e=>({...e,shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e)),Uc=e=>br((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)),$c=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Zc(e){return`scale(${e}, ${e**2})`}const Gc={entering:{opacity:1,transform:Zc(1)},entered:{opacity:1,transform:"none"}},Kc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Xc=i.forwardRef((function(e,t){const{addEndListener:n,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=rr}=e,v=(0,wt.Z)(e,$c),_=i.useRef(),b=i.useRef(),y=ei(),C=i.useRef(null),w=(0,Nn.Z)(C,r.ref,t),S=e=>t=>{if(e){const i=C.current;void 0===t?e(i):e(i,t)}},x=S(d),L=S(((e,t)=>{ar(e);const{duration:i,delay:n,easing:o}=lr({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=i,e.style.transition=[y.transitions.create("opacity",{duration:r,delay:n}),y.transitions.create("transform",{duration:Kc?r:.666*r,delay:n,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(g),D=S((e=>{const{duration:t,delay:i,easing:n}=lr({style:p,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:i}),y.transitions.create("transform",{duration:Kc?o:.666*o,delay:Kc?i:i||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Zc(.75),u&&u(e)})),I=S(h);return i.useEffect((()=>()=>{clearTimeout(_.current)}),[]),(0,Tt.jsx)(f,(0,St.Z)({appear:o,in:a,nodeRef:C,onEnter:L,onEntered:k,onEntering:x,onExit:D,onExited:I,onExiting:E,addEndListener:e=>{"auto"===m&&(_.current=setTimeout(e,b.current||0)),n&&n(C.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>i.cloneElement(r,(0,St.Z)({style:(0,St.Z)({opacity:0,transform:Zc(.75),visibility:"exited"!==e||a?void 0:"hidden"},Gc[e],p,r.props.style),ref:w},t))}))}));Xc.muiSupportAuto=!0;const Yc=Xc;var Qc=s(6074),Jc=s(6734),ed=s(4603);function td(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function id(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nd(e){return parseInt((0,ta.Z)(e).getComputedStyle(e).paddingRight,10)||0}function od(e,t,i,n,o){const r=[t,i,...n];[].forEach.call(e.children,(e=>{const t=-1===r.indexOf(e),i=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),i="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||i}(e);t&&i&&id(e,o)}))}function rd(e,t){let i=-1;return e.some(((e,n)=>!!t(e)&&(i=n,!0))),i}const sd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let i=this.modals.indexOf(e);if(-1!==i)return i;i=this.modals.length,this.modals.push(e),e.modalRef&&id(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);od(t,e.mount,e.modalRef,n,!0);const o=rd(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),i):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),i)}mount(e,t){const i=rd(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[i];n.restore||(n.restore=function(e,t){const i=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Qc.Z)(e);return t.body===e?(0,ta.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=td((0,Qc.Z)(n));i.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${nd(n)+e}px`;const t=(0,Qc.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{i.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${nd(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,Qc.Z)(n).body;else{const t=n.parentElement,i=(0,ta.Z)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===i.getComputedStyle(t).overflowY?t:n}i.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()=>{i.forEach((({value:e,el:t,property:i})=>{e?t.style.setProperty(i,e):t.style.removeProperty(i)}))}}(n,t))}remove(e,t=!0){const i=this.modals.indexOf(e);if(-1===i)return i;const n=rd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(i,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&id(e.modalRef,t),od(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&id(e.modalRef,!1)}return i}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const ad=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ld(e){const t=[],i=[];return Array.from(e.querySelectorAll(ad)).forEach(((e,n)=>{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 i=t(`[name="${e.name}"]:checked`);return i||(i=t(`[name="${e.name}"]`)),i!==e}(e))}(e)&&(0===o?t.push(e):i.push({documentOrder:n,tabIndex:o,node:e}))})),i.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function cd(){return!0}function dd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=ld,isEnabled:a=cd,open:l}=e,c=i.useRef(!1),d=i.useRef(null),u=i.useRef(null),h=i.useRef(null),g=i.useRef(null),p=i.useRef(!1),m=i.useRef(null),f=(0,es.Z)(t.ref,m),v=i.useRef(null);i.useEffect((()=>{l&&m.current&&(p.current=!n)}),[n,l]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,Qc.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]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,Qc.Z)(m.current),t=t=>{v.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},i=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==d.current&&e.activeElement!==u.current)return;if(e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let i=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(i=s(m.current)),i.length>0){var n,r;const e=Boolean((null==(n=v.current)?void 0:n.shiftKey)&&"Tab"===(null==(r=v.current)?void 0:r.key)),t=i[0],o=i[i.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",i),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&i()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",i),e.removeEventListener("keydown",t,!0)}}),[n,o,r,a,l,s]);const _=e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0};return(0,Tt.jsxs)(i.Fragment,{children:[(0,Tt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:f,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0,g.current=e.target;const i=t.props.onFocus;i&&i(e)}}),(0,Tt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:u,"data-testid":"sentinelEnd"})]})}var ud=s(513);const hd=i.forwardRef((function(e,t){const{children:n,container:o,disablePortal:s=!1}=e,[a,l]=i.useState(null),c=(0,es.Z)(i.isValidElement(n)?n.ref:null,t);if((0,ia.Z)((()=>{s||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,s]),(0,ia.Z)((()=>{if(a&&!s)return(0,ud.Z)(t,a),()=>{(0,ud.Z)(t,null)}}),[t,a,s]),s){if(i.isValidElement(n)){const e={ref:c};return i.cloneElement(n,e)}return(0,Tt.jsx)(i.Fragment,{children:n})}return(0,Tt.jsx)(i.Fragment,{children:a?r.createPortal(n,a):a})})),gd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pd={entering:{opacity:1},entered:{opacity:1}},md=i.forwardRef((function(e,t){const n=ei(),o={enter:n.transitions.duration.enteringScreen,exit:n.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:_=rr}=e,b=(0,wt.Z)(e,gd),y=i.useRef(null),C=(0,Nn.Z)(y,a.ref,t),w=e=>t=>{if(e){const i=y.current;void 0===t?e(i):e(i,t)}},S=w(h),x=w(((e,t)=>{ar(e);const i=lr({style:f,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",i),e.style.transition=n.transitions.create("opacity",i),d&&d(e,t)})),L=w(u),k=w(m),E=w((e=>{const t=lr({style:f,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),D=w(p);return(0,Tt.jsx)(_,(0,St.Z)({appear:s,in:c,nodeRef:y,onEnter:x,onEntered:L,onEntering:S,onExit:E,onExited:D,onExiting:k,addEndListener:e=>{r&&r(y.current,e)},timeout:v},b,{children:(e,t)=>i.cloneElement(a,(0,St.Z)({style:(0,St.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},pd[e],f,a.props.style),ref:C},t))}))})),fd=md;function vd(e){return(0,Rt.Z)("MuiBackdrop",e)}(0,Nt.Z)("MuiBackdrop",["root","invisible"]);const _d=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bd=(0,It.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.invisible&&t.invisible]}})((({ownerState:e})=>(0,St.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"}))),yd=i.forwardRef((function(e,t){var i,n,o;const r=(0,Dt.Z)({props:e,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:h,slotProps:g={},slots:p={},TransitionComponent:m=fd,transitionDuration:f}=r,v=(0,wt.Z)(r,_d),_=(0,St.Z)({},r,{component:l,invisible:u}),b=(e=>{const{classes:t,invisible:i}=e,n={root:["root",i&&"invisible"]};return(0,Lt.Z)(n,vd,t)})(_),y=null!=(i=g.root)?i:d.root;return(0,Tt.jsx)(m,(0,St.Z)({in:h,timeout:f},v,{children:(0,Tt.jsx)(bd,(0,St.Z)({"aria-hidden":!0},y,{as:null!=(n=null!=(o=p.root)?o:c.Root)?n:l,className:(0,xt.Z)(b.root,a,null==y?void 0:y.className),ownerState:(0,St.Z)({},_,null==y?void 0:y.ownerState),classes:b,ref:t,children:s}))}))})),Cd=yd;function wd(e){return(0,Rt.Z)("MuiModal",e)}(0,Nt.Z)("MuiModal",["root","hidden","backdrop"]);const Sd=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],xd=(0,It.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.open&&i.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,St.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ld=(0,It.ZP)(Cd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kd=i.forwardRef((function(e,t){var n,o,r,s,a,l;const c=(0,Dt.Z)({name:"MuiModal",props:e}),{BackdropComponent:d=Ld,BackdropProps:u,className:h,closeAfterTransition:g=!1,children:p,container:m,component:f,components:v={},componentsProps:_={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:x=!1,hideBackdrop:L=!1,keepMounted:k=!1,onBackdropClick:E,open:D,slotProps:I,slots:N}=c,R=(0,wt.Z)(c,Sd),q=(0,St.Z)({},c,{closeAfterTransition:g,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:S,disableScrollLock:x,hideBackdrop:L,keepMounted:k}),{getRootProps:T,getBackdropProps:O,getTransitionProps:M,portalRef:A,isTopModal:P,exited:F,hasTransition:B}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:r=sd,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:u,rootRef:h}=e,g=i.useRef({}),p=i.useRef(null),m=i.useRef(null),f=(0,es.Z)(m,h),[v,_]=i.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const C=()=>(g.current.modalRef=m.current,g.current.mount=p.current,g.current),w=()=>{r.mount(C(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},S=(0,Jc.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||(0,Qc.Z)(p.current).body;r.add(C(),e),m.current&&w()})),x=i.useCallback((()=>r.isTopModal(C())),[r]),L=(0,Jc.Z)((e=>{p.current=e,e&&(u&&x()?w():m.current&&id(m.current,y))})),k=i.useCallback((()=>{r.remove(C(),y)}),[y,r]);i.useEffect((()=>()=>{k()}),[k]),i.useEffect((()=>{u?S():b&&s||k()}),[u,k,b,s,S]);const E=e=>t=>{var i;null==(i=e.onKeyDown)||i.call(e,t),"Escape"===t.key&&229!==t.which&&x()&&(n||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},D=e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(t={})=>{const i=is(e);delete i.onTransitionEnter,delete i.onTransitionExited;const n=Qr({},i,t);return Qr({role:"presentation"},n,{onKeyDown:E(n),ref:f})},getBackdropProps:(e={})=>Qr({"aria-hidden":!0},e,{onClick:D(e),open:u}),getTransitionProps:()=>({onEnter:(0,ed.Z)((()=>{_(!1),a&&a()}),null==c?void 0:c.props.onEnter),onExited:(0,ed.Z)((()=>{_(!0),l&&l(),s&&k()}),null==c?void 0:c.props.onExited)}),rootRef:f,portalRef:L,isTopModal:x,exited:v,hasTransition:b}}((0,St.Z)({},q,{rootRef:t})),W=(0,St.Z)({},q,{exited:F}),V=(e=>{const{open:t,exited:i,classes:n}=e,o={root:["root",!t&&i&&"hidden"],backdrop:["backdrop"]};return(0,Lt.Z)(o,wd,n)})(W),z={};if(void 0===p.props.tabIndex&&(z.tabIndex="-1"),B){const{onEnter:e,onExited:t}=M();z.onEnter=e,z.onExited=t}const H=null!=(n=null!=(o=null==N?void 0:N.root)?o:v.Root)?n:xd,j=null!=(r=null!=(s=null==N?void 0:N.backdrop)?s:v.Backdrop)?r:d,U=null!=(a=null==I?void 0:I.root)?a:_.root,$=null!=(l=null==I?void 0:I.backdrop)?l:_.backdrop,Z=rs({elementType:H,externalSlotProps:U,externalForwardedProps:R,getSlotProps:T,additionalProps:{ref:t,as:f},ownerState:W,className:(0,xt.Z)(h,null==U?void 0:U.className,null==V?void 0:V.root,!W.open&&W.exited&&(null==V?void 0:V.hidden))}),G=rs({elementType:j,externalSlotProps:$,additionalProps:u,getSlotProps:e=>O((0,St.Z)({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,xt.Z)(null==$?void 0:$.className,null==u?void 0:u.className,null==V?void 0:V.backdrop),ownerState:W});return k||D||B&&!F?(0,Tt.jsx)(hd,{ref:A,container:m,disablePortal:w,children:(0,Tt.jsxs)(H,(0,St.Z)({},Z,{children:[!L&&d?(0,Tt.jsx)(j,(0,St.Z)({},G)):null,(0,Tt.jsx)(dd,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:P,open:D,children:i.cloneElement(p,z)})]}))}):null})),Ed=kd,Dd=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Id(e){return(0,Rt.Z)("MuiPaper",e)}(0,Nt.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 Nd=["className","component","elevation","square","variant"],Rd=(0,It.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],!i.square&&t.rounded,"elevation"===i.variant&&t[`elevation${i.elevation}`]]}})((({theme:e,ownerState:t})=>{var i;return(0,St.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,St.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,In.Fq)("#fff",Dd(t.elevation))}, ${(0,In.Fq)("#fff",Dd(t.elevation))})`},e.vars&&{backgroundImage:null==(i=e.vars.overlays)?void 0:i[t.elevation]}))})),qd=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:r=1,square:s=!1,variant:a="elevation"}=i,l=(0,wt.Z)(i,Nd),c=(0,St.Z)({},i,{component:o,elevation:r,square:s,variant:a}),d=(e=>{const{square:t,elevation:i,variant:n,classes:o}=e,r={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${i}`]};return(0,Lt.Z)(r,Id,o)})(c);return(0,Tt.jsx)(Rd,(0,St.Z)({as:o,ownerState:c,className:(0,xt.Z)(d.root,n),ref:t},l))})),Td=qd;function Od(e){return(0,Rt.Z)("MuiPopover",e)}(0,Nt.Z)("MuiPopover",["root","paper"]);const Md=["onEntering"],Ad=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Pd=["slotProps"];function Fd(e,t){let i=0;return"number"==typeof t?i=t:"center"===t?i=e.height/2:"bottom"===t&&(i=e.height),i}function Bd(e,t){let i=0;return"number"==typeof t?i=t:"center"===t?i=e.width/2:"right"===t&&(i=e.width),i}function Wd(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Vd(e){return"function"==typeof e?e():e}const zd=(0,It.ZP)(Ed,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hd=(0,It.ZP)(Td,{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}),jd=i.forwardRef((function(e,t){var n,o,r;const s=(0,Dt.Z)({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:u="anchorEl",children:h,className:g,container:p,elevation:m=8,marginThreshold:f=16,open:v,PaperProps:_={},slots:b,slotProps:y,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w=Yc,transitionDuration:S="auto",TransitionProps:{onEntering:x}={},disableScrollLock:L=!1}=s,k=(0,wt.Z)(s.TransitionProps,Md),E=(0,wt.Z)(s,Ad),D=null!=(n=null==y?void 0:y.paper)?n:_,I=i.useRef(),N=(0,Nn.Z)(I,D.ref),R=(0,St.Z)({},s,{anchorOrigin:c,anchorReference:u,elevation:m,marginThreshold:f,externalPaperSlotProps:D,transformOrigin:C,TransitionComponent:w,transitionDuration:S,TransitionProps:k}),q=(e=>{const{classes:t}=e;return(0,Lt.Z)({root:["root"],paper:["paper"]},Od,t)})(R),T=i.useCallback((()=>{if("anchorPosition"===u)return d;const e=Vd(l),t=(e&&1===e.nodeType?e:(0,xs.Z)(I.current).body).getBoundingClientRect();return{top:t.top+Fd(t,c.vertical),left:t.left+Bd(t,c.horizontal)}}),[l,c.horizontal,c.vertical,d,u]),O=i.useCallback((e=>({vertical:Fd(e,C.vertical),horizontal:Bd(e,C.horizontal)})),[C.horizontal,C.vertical]),M=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},i=O(t);if("none"===u)return{top:null,left:null,transformOrigin:Wd(i)};const n=T();let o=n.top-i.vertical,r=n.left-i.horizontal;const s=o+t.height,a=r+t.width,c=(0,us.Z)(Vd(l)),d=c.innerHeight-f,h=c.innerWidth-f;if(null!==f&&o<f){const e=o-f;o-=e,i.vertical+=e}else if(null!==f&&s>d){const e=s-d;o-=e,i.vertical+=e}if(null!==f&&r<f){const e=r-f;r-=e,i.horizontal+=e}else if(a>h){const e=a-h;r-=e,i.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(r)}px`,transformOrigin:Wd(i)}}),[l,u,T,O,f]),[A,P]=i.useState(v),F=i.useCallback((()=>{const e=I.current;if(!e)return;const t=M(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[M]);i.useEffect((()=>(L&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,L,F]),i.useEffect((()=>{v&&F()})),i.useImperativeHandle(a,(()=>v?{updatePosition:()=>{F()}}:null),[v,F]),i.useEffect((()=>{if(!v)return;const e=(0,ss.Z)((()=>{F()})),t=(0,us.Z)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,v,F]);let B=S;"auto"!==S||w.muiSupportAuto||(B=void 0);const W=p||(l?(0,xs.Z)(Vd(l)).body:void 0),V=null!=(o=null==b?void 0:b.root)?o:zd,z=null!=(r=null==b?void 0:b.paper)?r:Hd,H=rs({elementType:z,externalSlotProps:(0,St.Z)({},D,{style:A?D.style:(0,St.Z)({},D.style,{opacity:0})}),additionalProps:{elevation:m,ref:N},ownerState:R,className:(0,xt.Z)(q.paper,null==D?void 0:D.className)}),j=rs({elementType:V,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:E,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:W,open:v},ownerState:R,className:(0,xt.Z)(q.root,g)}),{slotProps:U}=j,$=(0,wt.Z)(j,Pd);return(0,Tt.jsx)(V,(0,St.Z)({},$,!Er(V)&&{slotProps:U,disableScrollLock:L},{children:(0,Tt.jsx)(w,(0,St.Z)({appear:!0,in:v,onEntering:(e,t)=>{x&&x(e,t),F()},onExited:()=>{P(!1)},timeout:B},k,{children:(0,Tt.jsx)(z,(0,St.Z)({},H,{children:h}))}))}))})),Ud=jd;var $d=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),Zd=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 Gd=function(e){function t(){var e,i,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return i=n=Zd(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),n._lastRenderedStartIndex=-1,n._lastRenderedStopIndex=-1,n._memoizedUnloadedRanges=[],n._onItemsRendered=function(e){var t=e.visibleStartIndex,i=e.visibleStopIndex;n._lastRenderedStartIndex=t,n._lastRenderedStopIndex=i,n._ensureRowsLoaded(t,i)},n._setRef=function(e){n._listRef=e},Zd(n,i)}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),$d(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 i=this.props,n=i.isItemLoaded,o=i.itemCount,r=i.minimumBatchSize,s=void 0===r?10:r,a=i.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,i=e.itemCount,n=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+n-1),i-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<n&&r[0]>0;){var u=r[0]-1;if(t(u))break;r[0]=u}return r}({isItemLoaded:n,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,i=this.props.loadMoreItems||this.props.loadMoreRows,n=function(n){var o=e[n],r=e[n+1],s=i(o,r);null!=s&&s.then((function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r}).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)n(o)}}]),t}(i.PureComponent),Kd=["S","XS"],Xd=e=>e.reduce(((e,t)=>e.concat(t)));async function Yd({selections:e,elemNumbers:t,toggle:i,isSingleSelect:n}){if(0===t.length)return!1;let o=!1;if(!t.some((e=>Number.isNaN(e)))){const r=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",r,i]})}catch{o=!1}o||(n?e.cancel():e.clear())}return o}const Qd="RowColumn",Jd={row:`${Qd}-row`,rowBorderBottom:`${Qd}-rowBorderBottom`,column:`${Qd}-column`,fieldRoot:`${Qd}-fieldRoot`,cell:`${Qd}-cell`,labelText:`${Qd}-labelText`,labelDense:`${Qd}-labelDense`,highlighted:`${Qd}-highlighted`,checkboxLabel:`${Qd}-checkboxLabel`,icon:`${Qd}-icon`,S:`${Qd}-S`,XS:`${Qd}-XS`,A:`${Qd}-A`,X:`${Qd}-X`,frequencyCount:`${Qd}-frequencyCount`,barContainer:`${Qd}-barContainer`,bar:`${Qd}-bar`,barSelected:`${Qd}-barSelected`,barWithCheckbox:`${Qd}-barWithCheckbox`,barSelectedWithCheckbox:`${Qd}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Qd}-excludedTextWithCheckbox`},eu=`.${Jd.fieldRoot}`,tu=e=>!(e?.metaKey||e?.ctrlKey);const iu=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),nu=e=>br(iu(e)),ou=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,ru=e=>e?"A"===e.qState:null,su=({cell:e,checkboxes:t})=>(ru(e)||ou(e))&&t,au=80,lu=32,cu=29,du=20,uu=4,hu=e=>e.filter((e=>!!e)).join(" ").trim(),gu=e=>e||"-",pu=({sizes:e,frequencyMode:t,isGridMode:i,freqHitsValue:n})=>"P"===t?`${e.freqMinWidth}px`:i&&!n?"max-content":"25%",mu=({sizes:e,frequencyMode:t,isGridMode:i})=>i?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,fu=({theme:e,styles:t,selectedState:i})=>{const n=t.selections,o=n[i],r=n[`${i}Contrast`];return{background:o,color:r,"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`,outline:"none"},"& $cell":{paddingRight:0},[`& .${Jd.labelText}`]:{color:r},[`& .${Jd.icon}`]:{color:r}}},vu={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},_u=(0,It.ZP)("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((({theme:e,checkboxes:t,isGridMode:i,isGridCol:n,dense:o,direction:r,sizes:s,frequencyMode:a,freqHitsValue:l,styles:c})=>{const{backgroundColor:d,...u}=c.content,h=fu({theme:e,styles:c,selectedState:"selected"}),g=fu({theme:e,styles:c,selectedState:"excluded"});return{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${Jd.row}`]:{flexWrap:"nowrap",...c.content},[`& .${Jd.rowBorderBottom}`]:{borderBottom:n?"none":`1px solid ${e.palette.divider}`,borderLeft:n?`1px solid ${e.palette.divider}`:"none"},[`& .${Jd.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${Jd.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${Jd.labelText}`]:{lineHeight:"16px",userSelect:"none",paddingRight:"1px",...vu,...u},[`& .${Jd.labelDense}`]:{fontSize:12},[`& .${Jd.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${Jd.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...vu,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${Jd.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:u.color},[`& .${Jd.S}`]:{...h,border:i?"none":void 0},[`& .${Jd.XS}`]:{...fu({theme:e,styles:c,selectedState:"selectedExcluded"}),border:i?"none":void 0},[`& .${Jd.A}`]:{...fu({theme:e,styles:c,selectedState:"alternative"}),border:i?"none":void 0},[`& .${Jd.X}`]:{...g,border:i?"none":void 0},[`& .${Jd.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...vu,flex:`0 0 ${pu({sizes:s,frequencyMode:a,isGridMode:i,freqHitsValue:l})}`,minWidth:!i&&"P"!==a&&l?s.freqMinWidth:"max-content",maxWidth:mu({sizes:s,frequencyMode:a,isGridMode:i}),textAlign:"rtl"===r?"left":"right",paddingLeft:"rtl"!==r?"8px":0},[`&.${Jd.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${Jd.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{border:"1px solid",borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},[`& .${Jd.barSelected}`]:{"& .bar-filled":{opacity:"30%",background:e.palette.background.lighter}},[`& .${Jd.barWithCheckbox}`]:{left:"rtl"===r?4:29,width:"calc(100% - 33px)"},[`& .${Jd.barSelectedWithCheckbox}`]:{"& .bar-filled":{opacity:"30%",background:h.background||"#BFE5D0",borderColor:h.background||"#BFE5D0"}},[`& .${Jd.excludedTextWithCheckbox}`]:{color:"#828282",fontStyle:"italic"}}})),bu=i.memo(_u);var yu=s(9546);const Cu=["component","direction","spacing","divider","children","className","useFlexGap"],wu=(0,Ht.Z)(),Su=zt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function xu(e){return(0,Vt.Z)({props:e,name:"MuiStack",defaultTheme:wu})}function Lu(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce(((e,o,r)=>(e.push(o),r<n.length-1&&e.push(i.cloneElement(t,{key:`separator-${r}`})),e)),[])}const ku=({ownerState:e,theme:t})=>{let i=(0,Bt.Z)({display:"flex",flexDirection:"column"},(0,xo.k9)({theme:t},(0,xo.P$)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,yu.hB)(t),o=Object.keys(t.breakpoints.values).reduce(((t,i)=>(("object"==typeof e.spacing&&null!=e.spacing[i]||"object"==typeof e.direction&&null!=e.direction[i])&&(t[i]=!0),t)),{}),r=(0,xo.P$)({values:e.direction,base:o}),s=(0,xo.P$)({values:e.spacing,base:o});"object"==typeof r&&Object.keys(r).forEach(((e,t,i)=>{if(!r[e]){const n=t>0?r[i[t-1]]:"column";r[e]=n}}));const a=(t,i)=>{return e.useFlexGap?{gap:(0,yu.NA)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=i?r[i]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,yu.NA)(n,t)}};var o};i=(0,Ti.Z)(i,(0,xo.k9)({theme:t},s,a))}return i=(0,xo.dt)(t.breakpoints,i),i},Eu=function(e={}){const{createStyledComponent:t=Su,useThemeProps:n=xu,componentName:o="MuiStack"}=e,r=t(ku),s=i.forwardRef((function(e,t){const i=Ai(n(e)),{component:s="div",direction:a="column",spacing:l=0,divider:c,children:d,className:u,useFlexGap:h=!1}=i,g=(0,Ft.Z)(i,Cu),p={direction:a,spacing:l,useFlexGap:h},m=(0,Lt.Z)({root:["root"]},(e=>(0,Rt.Z)(o,e)),{});return(0,Tt.jsx)(r,(0,Bt.Z)({as:s,ownerState:p,ref:t,className:(0,xt.Z)(m.root,u)},g,{children:c?Lu(d,c):d}))}));return s}({createStyledComponent:(0,It.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Dt.Z)({props:e,name:"MuiStack"})}),Du=Eu;function Iu(e){return(0,Rt.Z)("MuiFormControlLabel",e)}const Nu=(0,Nt.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Ru=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],qu=(0,It.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${Nu.label}`]:t.label},t.root,t[`labelPlacement${(0,Gt.Z)(i.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,St.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Nu.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},{[`& .${Nu.label}`]:{[`&.${Nu.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Tu=(0,It.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Nu.error}`]:{color:(e.vars||e).palette.error.main}}))),Ou=i.forwardRef((function(e,t){var n,o;const r=(0,Dt.Z)({props:e,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:u,labelPlacement:h="end",required:g,slotProps:p={}}=r,m=(0,wt.Z)(r,Ru),f=Gs(),v=null!=(n=null!=c?c:l.props.disabled)?n:null==f?void 0:f.disabled,_=null!=g?g:l.props.required,b={disabled:v,required:_};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==r[e]&&(b[e]=r[e])}));const y=Ks({props:r,muiFormControl:f,states:["error"]}),C=(0,St.Z)({},r,{disabled:v,labelPlacement:h,required:_,error:y.error}),w=(e=>{const{classes:t,disabled:i,labelPlacement:n,error:o,required:r}=e,s={root:["root",i&&"disabled",`labelPlacement${(0,Gt.Z)(n)}`,o&&"error",r&&"required"],label:["label",i&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,Lt.Z)(s,Iu,t)})(C),S=null!=(o=p.typography)?o:a.typography;let x=u;return null==x||x.type===zo||d||(x=(0,Tt.jsx)(zo,(0,St.Z)({component:"span"},S,{className:(0,xt.Z)(w.label,null==S?void 0:S.className),children:x}))),(0,Tt.jsxs)(qu,(0,St.Z)({className:(0,xt.Z)(w.root,s),ownerState:C,ref:t},m,{children:[i.cloneElement(l,b),_?(0,Tt.jsxs)(Du,{display:"block",children:[x,(0,Tt.jsxs)(Tu,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):x]}))})),Mu=Ou;var Au=s(6262);function Pu(e){return(0,Rt.Z)("PrivateSwitchBase",e)}(0,Nt.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Fu=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Bu=(0,It.ZP)(vo)((({ownerState:e})=>(0,St.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Wu=(0,It.ZP)("input",{shouldForwardProp:It.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Vu=i.forwardRef((function(e,t){const{autoFocus:i,checked:n,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:y,type:C,value:w}=e,S=(0,wt.Z)(e,Fu),[x,L]=(0,Au.Z)({controlled:n,default:Boolean(s),name:"SwitchBase",state:"checked"}),k=Gs();let E=a;k&&void 0===E&&(E=k.disabled);const D="checkbox"===C||"radio"===C,I=(0,St.Z)({},e,{checked:x,disabled:E,disableFocusRipple:l,edge:c}),N=(e=>{const{classes:t,checked:i,disabled:n,edge:o}=e,r={root:["root",i&&"checked",n&&"disabled",o&&`edge${(0,Gt.Z)(o)}`],input:["input"]};return(0,Lt.Z)(r,Pu,t)})(I);return(0,Tt.jsxs)(Bu,(0,St.Z)({component:"span",className:(0,xt.Z)(N.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:I,ref:t},S,{children:[(0,Tt.jsx)(Wu,(0,St.Z)({autoFocus:i,checked:n,defaultChecked:s,className:N.input,disabled:E,id:D?u:void 0,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:I,tabIndex:y,type:C},"checkbox"===C&&void 0===w?{}:{value:w},h)),x?o:d]}))})),zu=Vu,Hu=(0,en.Z)((0,Tt.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"),ju=(0,en.Z)((0,Tt.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"),Uu=(0,en.Z)((0,Tt.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 $u(e){return(0,Rt.Z)("MuiCheckbox",e)}const Zu=(0,Nt.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Gu=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Ku=(0,It.ZP)(zu,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.indeterminate&&t.indeterminate,t[`size${(0,Gt.Z)(i.size)}`],"default"!==i.color&&t[`color${(0,Gt.Z)(i.color)}`]]}})((({theme:e,ownerState:t})=>(0,St.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,In.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&&{[`&.${Zu.checked}, &.${Zu.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Xu=(0,Tt.jsx)(ju,{}),Yu=(0,Tt.jsx)(Hu,{}),Qu=(0,Tt.jsx)(Uu,{}),Ju=i.forwardRef((function(e,t){var n,o;const r=(0,Dt.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=Xu,color:a="primary",icon:l=Yu,indeterminate:c=!1,indeterminateIcon:d=Qu,inputProps:u,size:h="medium",className:g}=r,p=(0,wt.Z)(r,Gu),m=c?d:l,f=c?d:s,v=(0,St.Z)({},r,{color:a,indeterminate:c,size:h}),_=(e=>{const{classes:t,indeterminate:i,color:n,size:o}=e,r={root:["root",i&&"indeterminate",`color${(0,Gt.Z)(n)}`,`size${(0,Gt.Z)(o)}`]},s=(0,Lt.Z)(r,$u,t);return(0,St.Z)({},t,s)})(v);return(0,Tt.jsx)(Ku,(0,St.Z)({type:"checkbox",inputProps:(0,St.Z)({"data-indeterminate":c},u),icon:i.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:h}),checkedIcon:i.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:h}),ownerState:v,ref:t,className:(0,xt.Z)(_.root,g)},p,{classes:_}))})),eh=Ju,th="ListBoxCheckbox",ih={cbIcon:`${th}-cbIcon`,cbIconChecked:`${th}-cbIconChecked`,cbIconExcluded:`${th}-cbIconExcluded`,cbIconAlternative:`${th}-cbIconAlternative`,checkbox:`${th}-checkbox`,dense:`${th}-dense`},nh=(0,It.ZP)(eh,{shouldForwardProp:e=>"styles"!==e})((({styles:e})=>({[`& .${ih.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"},[`& .${ih.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.selections.selected,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:'""'}},[`& .${ih.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${ih.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${ih.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${ih.dense}`]:{padding:"4px 8px"}}))),oh=(e,t=!0,n=!1)=>i.createElement("span",{className:e.cbIcon},n&&i.createElement("span",{className:t&&n?e.cbIconExcluded:""}));function rh({onChange:e,checked:t,label:n,dense:o,excluded:r,styles:s,showGray:a=!0,dataN:l}){return i.createElement(nh,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[ih.checkbox,o&&ih.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":l},name:n,icon:oh(ih,a,r),checkedIcon:i.createElement("span",{className:ih.cbIconChecked}),styles:s})}const sh=(0,en.Z)((0,Tt.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"),ah=(0,en.Z)((0,Tt.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"),lh=(0,It.ZP)("span",{shouldForwardProp:It.FO})({position:"relative",display:"flex"}),ch=(0,It.ZP)(sh)({transform:"scale(1)"}),dh=(0,It.ZP)(ah)((({theme:e,ownerState:t})=>(0,St.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})}))),uh=function(e){const{checked:t=!1,classes:i={},fontSize:n}=e,o=(0,St.Z)({},e,{checked:t});return(0,Tt.jsxs)(lh,{className:i.root,ownerState:o,children:[(0,Tt.jsx)(ch,{fontSize:n,className:i.background,ownerState:o}),(0,Tt.jsx)(dh,{fontSize:n,className:i.dot,ownerState:o})]})};var hh=s(1882);const gh=i.createContext(void 0);function ph(e){return(0,Rt.Z)("MuiRadio",e)}const mh=(0,Nt.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),fh=["checked","checkedIcon","color","icon","name","onChange","size","className"],vh=(0,It.ZP)(zu,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"medium"!==i.size&&t[`size${(0,Gt.Z)(i.size)}`],t[`color${(0,Gt.Z)(i.color)}`]]}})((({theme:e,ownerState:t})=>(0,St.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,In.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&&{[`&.${mh.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${mh.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),_h=(0,Tt.jsx)(uh,{checked:!0}),bh=(0,Tt.jsx)(uh,{}),yh=i.forwardRef((function(e,t){var n,o;const r=(0,Dt.Z)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=_h,color:l="primary",icon:c=bh,name:d,onChange:u,size:h="medium",className:g}=r,p=(0,wt.Z)(r,fh),m=(0,St.Z)({},r,{color:l,size:h}),f=(e=>{const{classes:t,color:i,size:n}=e,o={root:["root",`color${(0,Gt.Z)(i)}`,"medium"!==n&&`size${(0,Gt.Z)(n)}`]};return(0,St.Z)({},t,(0,Lt.Z)(o,ph,t))})(m),v=i.useContext(gh);let _=s;const b=(0,hh.Z)(u,v&&v.onChange);let y=d;var C,w;return v&&(void 0===_&&(C=v.value,_="object"==typeof(w=r.value)&&null!==w?C===w:String(C)===String(w)),void 0===y&&(y=v.name)),(0,Tt.jsx)(vh,(0,St.Z)({type:"radio",icon:i.cloneElement(c,{fontSize:null!=(n=bh.props.fontSize)?n:h}),checkedIcon:i.cloneElement(a,{fontSize:null!=(o=_h.props.fontSize)?o:h}),ownerState:m,classes:f,name:y,checked:_,onChange:b,ref:t,className:(0,xt.Z)(f.root,g)},p))})),Ch=yh,wh="ListBoxRadioButton",Sh={denseRadioButton:`${wh}-denseRadioButton`,radioButton:`${wh}-radioButton`},xh=(0,It.ZP)(Ch)((({theme:e,checked:t})=>({[`&.${Sh.radioButton}`]:{right:"5px",color:t?e.palette.selected.main:e.palette.main}})));function Lh({onChange:e,checked:t,label:n,dense:o,dataN:r}){return i.createElement(xh,{checked:t,onChange:e,value:n,name:n,className:Sh.radioButton,inputProps:{"data-n":r},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}const kh=function({label:e,dense:t,showGray:n=!0,checkboxes:o,cell:r,valueTextAlign:s}){return i.createElement(zo,{component:"span",variant:"body2",className:hu([Jd.labelText,t&&Jd.labelDense,n&&su({cell:r,checkboxes:o})&&Jd.excludedTextWithCheckbox]),align:s,dir:"auto"},i.createElement("span",null,e))},Eh=function({label:e,color:t,dense:n,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}){return"string"==typeof e?i.createElement(kh,{label:e,color:t,dense:n,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}):e},Dh=function({onChange:e,label:t,qElemNumber:n,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:u,styles:h}){const g=i.createElement(rh,{onChange:e,label:t,checked:o,dense:r,excluded:ou(s),isGridCol:a,showGray:l,dataN:n,styles:h}),p=i.createElement(Lh,{onChange:e,label:t,checked:o,dense:r,dataN:n});return i.createElement(Mu,{control:c?p:g,className:Jd.checkboxLabel,label:i.createElement(Eh,{label:t,dense:r,showGray:l,checkboxes:d,cell:s,valueTextAlign:u}),key:n})};function Ih({labels:e,dense:t,showGray:n,checkboxes:o}){const r=e.map((([e,t],n)=>i.createElement("span",{id:n,className:t?Jd.highlighted:""},e)));return i.createElement(kh,{label:r,dense:t,showGray:n,checkboxes:o})}const Nh=function({onChange:e,labels:t,checkboxes:n,dense:o,showGray:r,qElemNumber:s,isSelected:a,cell:l,isGridCol:c,isSingleSelect:d,valueTextAlign:u,styles:h}){const g=i.createElement(Ih,{labels:t,dense:o,showGray:r,checkboxes:n});return n?i.createElement(Dh,{onChange:e,label:g,qElemNumber:s,isSelected:a,dense:o,cell:l,isGridCol:c,showGray:r,isSingleSelect:d,checkboxes:n,valueTextAlign:u,styles:h}):g};function Rh({onChange:e,label:t,qElemNumber:n,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:u,styles:h}){return d?i.createElement(Dh,{onChange:e,label:t,qElemNumber:n,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:u,styles:h}):i.createElement(kh,{label:t,dense:r,showGray:!0,checkboxes:d,cell:s,valueTextAlign:u})}const qh=i.memo(Rh),Th=function({qFrequency:e,histogram:t,checkboxes:n,isSelected:o,frequencyMax:r}){if(!e||!t||"-"===gu(e))return;const s=(({qFrequency:e,frequencyMax:t})=>{const i=String(e),n="%"===i.substring(i.length-1),o=parseFloat(n?i:e);return`${n?o:o/t*100}%`})({qFrequency:e,checkboxes:n,frequencyMax:r});return i.createElement(Vi,{className:hu([Jd.bar,n&&Jd.barWithCheckbox,o&&(n?Jd.barSelectedWithCheckbox:Jd.barSelected)])},i.createElement(Vi,{className:"bar-filled",width:s}))},Oh=function({cell:e,checkboxes:t,dense:n,showGray:o}){const r=gu(e?.qFrequency);return i.createElement(Mo,{item:!0,style:{display:"flex",alignItems:"center"},className:Jd.frequencyCount,"aria-label":r,title:r},i.createElement(zo,{noWrap:!0,color:"inherit",variant:"body2",className:hu([n&&Jd.labelDense,Jd.labelText,o&&su({cell:e,checkboxes:t})&&Jd.excludedTextWithCheckbox])},r))};function Mh({dataLayout:e,layoutOrder:t,itemPadding:i,fillHeight:n}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:n?"100%":`calc(100% - ${i}px)`,width:`calc(100% - ${2*i}px)`,position:"absolute",left:4};default:return{}}}const Ah=(0,It.ZP)(Mo,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((({dataLayout:e,layoutOrder:t,itemPadding:i,cellPaddingRight:n,direction:o,fillHeight:r})=>{const s="padding"+("rtl"===o?"Left":"Right");return{[`&.${Jd.fieldRoot}`]:{...Mh({dataLayout:e,layoutOrder:t,itemPadding:i,fillHeight:r}),[s]:n?"8px":void 0}}})),Ph={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function Fh({layout:e}){const{translator:t}=(0,i.useContext)(cc),{qStateCounts:n={}}=e?.qListObject?.qDimensionInfo||{},o=n.qSelected+n.qSelectedExcluded+n.qLocked+n.qLockedExcluded;let r;switch(o){case 0:r="ScreenReader.ZeroSelected";break;case 1:r="ScreenReader.OneSelected";break;default:r="ScreenReader.ManySelected"}const s=t.get(r,[o]);return i.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},s)}const Bh=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===Bh.ARROW_UP||e===Bh.ARROW_DOWN||e===Bh.ARROW_LEFT||e===Bh.ARROW_RIGHT}),Wh=Bh,Vh=e=>+e.getAttribute("data-n"),zh=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},Hh=e=>{const t=e?.querySelector(".value.last-focused, .value.selector, .value");return t?.setAttribute("tabIndex",0),t?.focus(),t},jh=function({index:e,rowIndex:t,columnIndex:n,style:o,data:r}){const{onChange:s,onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onTouchStart:u,onTouchEnd:h,pages:g,isLocked:p,column:m=!1,checkboxes:f=!1,textAlign:v,direction:_,layoutOptions:b={},freqIsAllowed:y,isSingleSelect:C,actions:w,frequencyMax:S="",histogram:x=!1,keyboard:L,showGray:k=!0,showTick:E=!0,columnCount:D=1,rowCount:I=1,dataOffset:N,deducedFrequencyMode:R,focusListItems:q,listCount:T,sizes:O,translator:M,showSearch:A,isModal:P,contentFontStyle:F,styles:B,fillHeight:W}=r,{dense:V=!1,dataLayout:z="singleColumn",layoutOrder:H}=b,{itemPadding:j}=O;let U,$;const Z={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof n){"row"===H?(U=t*D+n,Z.max=I,Z.currentIndex=t):(U=n*I+t,Z.max=D,Z.currentIndex=n);const e=0;$={...o,height:W?"100%":o.height,left:e+(0===n?o.left:Number(o.left)+n*e),top:0===t?o.top:Number(o.top)+t*e}}else U=e,Z.max=T,Z.currentIndex=e,$={...o};U+=N;const[G,K]=(0,i.useState)(null);(0,i.useEffect)((()=>{null!==G&&(0===Z.currentIndex&&q.first&&(G.focus(),q.setFirst(!1)),Z.currentIndex===Z.max-1&&q.last&&(G.focus(),q.setLast(!1)))}),[G,q.first,q.last]);const X=(0,i.useCallback)(function({select:e,selectAll:t,onCtrlF:i,confirm:n,cancel:o,setScrollPosition:r,focusListItems:s,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:u,columnIndex:h,layoutOrder:g}){const p=(e,t,i=!1)=>{if(e===Wh.ARROW_LEFT||e===Wh.ARROW_RIGHT||"number"!=typeof u||"number"!=typeof h){const e=t?.parentElement[i?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const n=t?.parentElement.parentElement,o=n?.childElementCount;if(o){const i=(({rowIndex:e,columnIndex:t,rowCount:i,columnCount:n,layoutOrder:o,keyCode:r,numCells:s})=>{const a=e=>{let t;return"row"===o?(t=s%n,e<t?i:i-1):(t=s%i,e<n-1?i:t)};let l=e,c=t;if(r===Wh.ARROW_DOWN)if(e>=a(t)-1){if(t===n-1)return-1;l=0,c=t+1}else l=e+1;else if(0===e){if(0===t)return-1;l=a(t-1)-1,c=t-1}else l=e-1;if("row"===o)return l*n+c;const d=s%i;return 0===d||l<d?l*n+c:(l-d)*(n-1)+c+d*n})({rowIndex:u,columnIndex:h,rowCount:c,columnCount:d,layoutOrder:g,keyCode:e,numCells:o}),n=t?.parentElement.parentElement.children[i];return n?.querySelector("[role]")}};let m=!1;const f=e=>{m=e};return c=>{let d;const{currentTarget:u,nativeEvent:h}=c,{keyCode:g,shiftKey:v=!1,ctrlKey:_=!1,metaKey:b=!1}=h;switch(g){case Wh.TAB:{const e=u.closest(".listbox-container"),t=l();if(u.classList.add("last-focused"),v){zh(e)||(t?a.focusSelection():a.blur(!0));break}t?a.focusSelection():(u.blur(),a.blur());break}case Wh.SHIFT:f(!0);break;case Wh.SPACE:e([Vh(u)],!1,c);break;case Wh.ARROW_DOWN:case Wh.ARROW_RIGHT:d=p(g,u,!0),v&&d&&(m&&(e([Vh(u)],!0),f(!1)),e([Vh(d)],!0));break;case Wh.ARROW_UP:case Wh.ARROW_LEFT:d=p(g,u,!1),v&&d&&(m&&(e([Vh(u)],!0),f(!1)),e([Vh(d)],!0));break;case Wh.ENTER:n();break;case Wh.ESCAPE:if(!l())return;o();break;case Wh.HOME:if(s.setFirst(!0),_){r?.("overflowStart");break}r?.("start");break;case Wh.END:if(s.setLast(!0),_){r?.("overflowEnd");break}r?.("end");break;case Wh.A:if(_||b){t();break}return;case Wh.F:if(_||b){i();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:q,keyboard:L,isModal:P,rowCount:I,columnCount:D,rowIndex:t,columnIndex:n,layoutOrder:H}),[w,L?.innerTabStops,I,D,t,n,H]),Y=(0,i.useMemo)((()=>function({pages:e,cellIndex:t}){let i;const n=e.filter((e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight))[0];if(n){const e=n.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([i]=n.qMatrix[t-e.qTop])}return i}({pages:g,cellIndex:U})),[g,U]),Q="S"===Y?.qState||"XS"===Y?.qState||"L"===Y?.qState||"XL"===Y?.qState,J=(0,i.useMemo)((()=>(({column:e,histogram:t,checkboxes:i,cell:n,showGray:o})=>{const r=[e?Jd.column:Jd.row];return t||r.push(Jd.rowBorderBottom),n?(i||("XS"===n.qState?r.push(o?Jd.XS:Jd.S):"S"===n.qState||"L"===n.qState?r.push(Jd.S):o&&ru(n)?r.push(Jd.A):o&&ou(n)&&r.push(Jd.X)),r):[]})({column:m,histogram:x,checkboxes:f,cell:Y,showGray:k})),[Y?.qState,x,V,f]),ee=(0,i.useCallback)((e=>{e.preventDefault()}),[f]),te=(0,i.useMemo)((()=>Y&&function({direction:e,cell:t,textAlign:i}){const n=!["NaN",void 0].includes(t?.qNum);let o;return o=!i||i.auto?n?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:i?.align||"left",["left","center","right"].includes(o)?o:"left"}({direction:_,cell:Y,textAlign:v})),[_,Y,v]);if(!Y)return null;const ie="grid"===z&&"column"===H,ne=Y?.qText??"";let oe;Y.qHighlightRanges?.qRanges?.length&&(oe=function(e,t){if(!t.length)return[];const i=t.reduce(((i,n,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;i.push(...function(e,t,i=0){const{qCharPos:n,qCharCount:o}=t,r=[];return n>i&&r.push([e.slice(i,n),!1]),r.push([e.slice(n,n+o),!0]),r}(e,n,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&i.push([e.slice(a),!1]),i}),[]);return i}(ne,Y.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[]));const re={alignItems:"center",display:"flex",fontSize:"8px"},se="rtl"===_,ae={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:se?8:f?0:void 0,paddingRight:f?0:se?8:0,justifyContent:te},le=0===e,ce=Q&&p,de=!f&&Q&&!p,ue=!f&&E,he=f||!E,ge=function({translator:e,label:t,qState:i,isSelected:n,currentIndex:o,maxIndex:r,showSearch:s}){const a=Ph[i],l=e.get(a),c=[];if(n){const t=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",i=e.get(t);c.push(i)}const d=`${t} ${l}`,u=e.get("CurrentSelections.Of",[o+1,r+1]);return c.unshift(d,u),c.join(". ").trim()}({translator:M,label:ne,qState:Y.qState,currentIndex:Z.currentIndex,maxIndex:Z.max,showSearch:A}),pe=!se&&"right"===te||se&&"left"===te;return i.createElement(bu,{className:Jd.barContainer,checkboxes:f,style:$,styles:B,isGridCol:ie,isGridMode:"grid"===z,dense:V,direction:_,sizes:O,frequencyMode:R,freqHitsValue:pe,contentFontStyle:F,"data-testid":"listbox.item"},i.createElement(Ah,{role:"row","aria-label":ge,"aria-selected":Q,"aria-setsize":Z.max,"aria-rowindex":Z.currentIndex,ref:K,container:!0,dataLayout:z,cellPaddingRight:he,layoutOrder:H,itemPadding:j,gap:0,className:hu(["value",...J]),classes:{root:Jd.fieldRoot},onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:X,onTouchStart:u,onTouchEnd:h,onContextMenu:ee,tabIndex:le&&L.innerTabStops?0:-1,"data-n":Y?.qElemNumber,direction:_,fillHeight:W},Y?.qFrequency&&i.createElement(Th,{qFrequency:Y?.qFrequency,histogram:x,checkboxes:f,isSelected:Q,frequencyMax:S}),i.createElement(Mo,{item:!0,style:ae,className:hu([Jd.cell,Jd.selectedCell]),title:`${ne}`},oe?i.createElement(Nh,{onChange:s,labels:oe,checkboxes:f,dense:V,showGray:k,qElemNumber:Y.qElemNumber,isSelected:Q,cell:Y,isGridCol:ie,isSingleSelect:C,valueTextAlign:te,styles:B}):i.createElement(qh,{onChange:s,label:ne,qElemNumber:Y.qElemNumber,isSelected:Q,dense:V,cell:Y,isGridCol:ie,showGray:k,isSingleSelect:C,checkboxes:f,valueTextAlign:te,styles:B})),y&&i.createElement(Oh,{cell:Y,checkboxes:f,dense:V,showGray:k}),ue&&i.createElement(Mo,{item:!0,className:Jd.icon},ce&&i.createElement(jc,{style:re,size:"small"}),de&&i.createElement(nu,{style:re,size:"small"}))))};var Uh=s(411),$h=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Zh(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!((n=e[i])===(o=t[i])||$h(n)&&$h(o)))return!1;var n,o;return!0}const Gh=function(e,t){var i;void 0===t&&(t=Zh);var n,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&i===this&&t(s,o)||(n=e.apply(this,s),r=!0,i=this,o=s),n}};var Kh="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Xh(e){cancelAnimationFrame(e.id)}function Yh(e,t){var i=Kh(),n={id:requestAnimationFrame((function o(){Kh()-i>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var Qh=-1;function Jh(e){if(void 0===e&&(e=!1),-1===Qh||e){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",document.body.appendChild(t),Qh=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Qh}var eg=null;function tg(e){if(void 0===e&&(e=!1),null===eg||e){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",i.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?eg="positive-descending":(t.scrollLeft=1,eg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),eg}return eg}var ig=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ng(e){var t,n=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 i;return(i=e.call(this,t)||this)._instanceProps=m(i.props,Mn(i)),i._resetIsScrollingTimeoutId=null,i._outerRef=void 0,i.state={instance:Mn(i),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof i.props.initialScrollLeft?i.props.initialScrollLeft:0,scrollTop:"number"==typeof i.props.initialScrollTop?i.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},i._callOnItemsRendered=void 0,i._callOnItemsRendered=Gh((function(e,t,n,o,r,s,a,l){return i.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})})),i._callOnScroll=void 0,i._callOnScroll=Gh((function(e,t,n,o,r){return i.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})})),i._getItemStyle=void 0,i._getItemStyle=function(e,t){var o,r=i.props,a=r.columnWidth,l=r.direction,c=r.rowHeight,d=i._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=n(i.props,t,i._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:h(i.props,e,i._instanceProps),height:u(i.props,e,i._instanceProps),width:s(i.props,t,i._instanceProps)}}return o},i._getItemStyleCache=void 0,i._getItemStyleCache=Gh((function(e,t,i){return{}})),i._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;i.setState((function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=i.props.direction,c=r;if("rtl"===t)switch(tg()){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-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"forward":"backward",scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._outerRefSetter=function(e){var t=i.props.outerRef;i._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},i._resetIsScrollingDebounced=function(){null!==i._resetIsScrollingTimeoutId&&Xh(i._resetIsScrollingTimeoutId),i._resetIsScrollingTimeoutId=Yh(i._resetIsScrolling,150)},i._resetIsScrolling=function(){i._resetIsScrollingTimeoutId=null,i.setState({isScrolling:!1},(function(){i._getItemStyleCache(-1)}))},i}Pn(t,e),t.getDerivedStateFromProps=function(e,t){return og(e,t),v(e),null};var _=t.prototype;return _.scrollTo=function(e){var t=e.scrollLeft,i=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==i&&(i=Math.max(0,i)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===i&&(i=e.scrollTop),e.scrollLeft===t&&e.scrollTop===i?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:i,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<i?"forward":"backward"}}),this._resetIsScrollingDebounced)},_.scrollToItem=function(e){var t=e.align,i=void 0===t?"auto":t,n=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=Jh();void 0!==n&&(n=Math.max(0,Math.min(n,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,y=_>u?v:0;this.scrollTo({scrollLeft:void 0!==n?c(this.props,n,i,m,this._instanceProps,y):m,scrollTop:void 0!==o?d(this.props,o,i,f,this._instanceProps,b):f})},_.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,i=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof i&&(n.scrollTop=i)}this._callPropsCallbacks()},_.componentDidUpdate=function(){var e=this.props.direction,t=this.state,i=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(tg()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-i}else o.scrollLeft=Math.max(0,i);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Xh(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,t=e.children,n=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?ig:g,m=e.outerElementType,f=e.outerTagName,v=e.rowCount,_=e.style,b=e.useIsScrolling,y=e.width,C=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],x=w[1],L=this._getVerticalRangeToRender(),k=L[0],E=L[1],D=[];if(o>0&&v)for(var I=k;I<=E;I++)for(var N=S;N<=x;N++)D.push((0,i.createElement)(t,{columnIndex:N,data:h,isScrolling:b?C:void 0,key:p({columnIndex:N,data:h,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,N)}));var R=a(this.props,this._instanceProps),q=l(this.props,this._instanceProps);return(0,i.createElement)(m||f||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:On({position:"relative",height:s,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},_)},(0,i.createElement)(d||u||"div",{children:D,ref:c,style:{height:R,pointerEvents:C?"none":void 0,width:q}}))},_._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,i=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof i&&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 n){var m=this.state,f=m.horizontalScrollDirection,v=m.scrollLeft,_=m.scrollTop,b=m.scrollUpdateWasRequested,y=m.verticalScrollDirection;this._callOnScroll(v,_,f,y,b)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,i=e.overscanColumnCount,n=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,u=l.scrollLeft,h=i||n||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,i=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=n||o||i||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}(i.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var og=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},rg=function(e,t){return e};function sg(e){var t,n=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 i;return(i=e.call(this,t)||this)._instanceProps=c(i.props,Mn(i)),i._outerRef=void 0,i._resetIsScrollingTimeoutId=null,i.state={instance:Mn(i),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof i.props.initialScrollOffset?i.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},i._callOnItemsRendered=void 0,i._callOnItemsRendered=Gh((function(e,t,n,o){return i.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),i._callOnScroll=void 0,i._callOnScroll=Gh((function(e,t,n){return i.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),i._getItemStyle=void 0,i._getItemStyle=function(e){var t,o=i.props,s=o.direction,a=o.itemSize,l=o.layout,c=i._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var u=n(i.props,e,i._instanceProps),h=r(i.props,e,i._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},i._getItemStyleCache=void 0,i._getItemStyleCache=Gh((function(e,t,i){return{}})),i._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;i.setState((function(e){if(e.scrollOffset===o)return null;var t=i.props.direction,s=o;if("rtl"===t)switch(tg()){case"negative":s=-o;break;case"positive-descending":s=r-n-o}return s=Math.max(0,Math.min(s,r-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<s?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;i.setState((function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._outerRefSetter=function(e){var t=i.props.outerRef;i._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},i._resetIsScrollingDebounced=function(){null!==i._resetIsScrollingTimeoutId&&Xh(i._resetIsScrollingTimeoutId),i._resetIsScrollingTimeoutId=Yh(i._resetIsScrolling,150)},i._resetIsScrolling=function(){i._resetIsScrollingTimeoutId=null,i.setState({isScrolling:!1},(function(){i._getItemStyleCache(-1,null)}))},i}Pn(t,e),t.getDerivedStateFromProps=function(e,t){return ag(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 i=this.props,n=i.itemCount,o=i.layout,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?Jh():0:l.scrollHeight>l.clientHeight?Jh():0}this.scrollTo(s(this.props,e,t,r,this._instanceProps,a))},h.componentDidMount=function(){var e=this.props,t=e.direction,i=e.initialScrollOffset,n=e.layout;if("number"==typeof i&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=i:o.scrollTop=i}this._callPropsCallbacks()},h.componentDidUpdate=function(){var e=this.props,t=e.direction,i=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===i)if("rtl"===t)switch(tg()){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&&Xh(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,n=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?rg:h,p=e.layout,m=e.outerElementType,f=e.outerTagName,v=e.style,_=e.useIsScrolling,b=e.width,y=this.state.isScrolling,C="horizontal"===r||"horizontal"===p,w=C?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,i.createElement)(t,{data:u,key:g(E,u),index:E,isScrolling:_?y:void 0,style:this._getItemStyle(E)}));var D=o(this.props,this._instanceProps);return(0,i.createElement)(m||f||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:On({position:"relative",height:s,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},v)},(0,i.createElement)(l||c||"div",{children:k,ref:a,style:{height:C?"100%":D,pointerEvents:y?"none":void 0,width:C?D:"100%"}}))},h._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],i=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,i,n,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,i=e.overscanCount,n=this.state,o=n.isScrolling,r=n.scrollDirection,s=n.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,i),h=o&&"forward"!==r?1:Math.max(1,i);return[Math.max(0,c-u),Math.max(0,Math.min(t-1,d+h)),c,d]},t}(i.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ag=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},lg=ng({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,i,n,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"===i&&(i=n>=u-l&&n<=d+l?"auto":"center"),i){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 n>=u&&n<=d?n:u>d||n<u?u:d}},getOffsetForRowAndAlignment:function(e,t,i,n,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"===i&&(i=n>=u-a&&n<=d+a?"auto":"center"),i){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 n>=u&&n<=d?n:u>d||n<u?u:d}},getColumnStartIndexForOffset:function(e,t){var i=e.columnWidth,n=e.columnCount;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getColumnStopIndexForStartIndex:function(e,t,i){var n=e.columnWidth,o=e.columnCount,r=e.width,s=t*n,a=Math.ceil((r+i-s)/n);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var i=e.rowHeight,n=e.rowCount;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getRowStopIndexForStartIndex:function(e,t,i){var n=e.rowHeight,o=e.rowCount,r=e.height,s=t*n,a=Math.ceil((r+i-s)/n);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),cg=sg({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,i,n,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"===i&&(i=n>=m-h&&n<=p+h?"auto":"center"),i){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 n>=m&&n<=p?n:n<m?m:p}},getStartIndexForOffset:function(e,t){var i=e.itemCount,n=e.itemSize;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getStopIndexForStartIndex:function(e,t,i){var n=e.direction,o=e.height,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===n||"horizontal"===a?l:o,u=Math.ceil((d+i-c)/s);return Math.max(0,Math.min(r-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const dg="#BBB",ug="#f1f1f1",hg={styledScrollbars:"ListBox-styledScrollbars"},gg=(e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,pg=(e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,mg=(e,t,i,n)=>e===t*i+n+i;function fg({renderProps:e,layoutOptions:t,maxCount:i,columnCount:n,rowCount:o,overflowDisclaimer:r,qCardinal:s,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=gg(e,l),d=l?i.column:i.row,u=(l?n:o)>=d,h=mg(s,c,l?o:n,a),g=!!a&&pg(e,l),p=u&&!h&&c>=d-1||g||r.state.show;r.set(p)}function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},vg.apply(this,arguments)}const{StyledFixedSizeList:_g,StyledFixedSizeGrid:bg}=function(){const e=e=>({scrollbarColor:`${dg} ${ug}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:ug},"&::-webkit-scrollbar-thumb":{backgroundColor:dg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:(0,Uh.Z)(cg,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${hg.styledScrollbars}`]:e(t)}))),StyledFixedSizeGrid:(0,Uh.Z)(lg,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${hg.styledScrollbars}`]:e(t)})))}}(),yg=e=>{const t=(0,i.useMemo)((()=>"text"in e?e:{}),[e]);return(0,i.useMemo)((()=>((e,t)=>{const i=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(i.font=t,Array.isArray(e))return Math.max(...e.map((e=>i.measureText(e).width)));const n=i.measureText(e);return Math.ceil(n.width||0)})(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Cg(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function wg({isGridMode:e,dense:t}){let i=t?du:e?lu:cu;return e&&(i+=uu),i}const Sg=function({layout:e,width:t,height:i,listCount:n,count:o,freqIsAllowed:r,checkboxes:s,styles:a}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:d={},maxVisibleColumns:u,dense:h,dataLayout:g}=l,{fontSize:p="12px",fontFamily:m="Source sans pro"}=a?.content||{},f=`${p} ${m}`,v=yg({text:Cg(e),font:f}),_=yg({text:Cg(5),font:f}),b=yg({text:Cg(8),font:f}),y=r?_:0,C=s?20:0;let w=56+y+C;!s&&w>=au&&(w+=20);let S,x,L,k,E=v+18+y+C;!s&&E>=au&&(E+=20),E=Math.min(150,Math.max(E,w));const D=wg({isGridMode:"grid"===g,dense:h}),I=i??8*D;if(c){let e=t;"row"===c?(S={overflowX:"hidden"},e+=2*uu,({rowCount:k,columnWidth:L,columnCount:x}=function({maxVisibleColumns:e,listCount:t,containerWidth:i,columnAutoWidth:n,itemMinWidth:o}){const r=e?.maxColumns||3,s=i-10;let a;const l=Math.min(t,Math.max(1,Math.round(s/Math.max(o,n))));a=!1!==e?.auto?l:Math.min(t,r,l),a=Math.max(a,1);const c=s/a;return{rowCount:Math.ceil(t/a),columnWidth:c,columnCount:a}}({maxVisibleColumns:u,listCount:n,containerWidth:e,columnAutoWidth:E,itemMinWidth:w}))):(S={overflowY:"hidden"},({rowCount:k,columnWidth:L,columnCount:x}=function({maxVisibleRows:e,itemHeight:t,listCount:i,listHeight:n,columnAutoWidth:o,containerWidth:r,itemMinWidth:s}){let a;const l=e?.maxRows||3,c=Math.floor(n/t);a=!1!==e.auto?c:Math.min(i,l,c),a=Math.max(a,1);const d=Math.ceil(i/a);return{columnWidth:Math.max(o,r/d,s),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:D,listCount:n,listHeight:I,columnAutoWidth:E,containerWidth:e,itemMinWidth:w})))}x=("singleColumn"===g?1:x)||1,k=("singleColumn"===g?o:k)||n;const N=l.dense?838e3:577e3;k=Math.min(k,N);const R=Math.floor(3355e4/L);x=Math.min(x,R)||1;const q=k*x;return{columnCount:x,columnWidth:L,rowCount:k,overflowStyling:S,itemHeight:D,listHeight:I,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(n,q),maxCount:{row:N,column:R},itemPadding:uu,textWidth:v,freqMinWidth:_,freqMaxWidth:b}},xg=({pages:e=[],minimumBatchSize:t,count:i})=>{const n=e.some((e=>e.qArea.qHeight<t)),o=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return n?o:i},[Lg,kg]=dc({});function Eg(e){const t=`${e.id}`,[i]=Lg();return{setStoreValue:(e,n)=>i.set(`${t}/${e}`,n),getStoreValue:e=>i.get(`${t}/${e}`)}}function Dg(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ig(e){return e instanceof Dg(e).Element||e instanceof Element}function Ng(e){return e instanceof Dg(e).HTMLElement||e instanceof HTMLElement}function Rg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Dg(e).ShadowRoot||e instanceof ShadowRoot)}var qg=Math.max,Tg=Math.min,Og=Math.round;function Mg(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ag(){return!/^((?!chrome|android).)*safari/i.test(Mg())}function Pg(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),o=1,r=1;t&&Ng(e)&&(o=e.offsetWidth>0&&Og(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Og(n.height)/e.offsetHeight||1);var s=(Ig(e)?Dg(e):window).visualViewport,a=!Ag()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/o,c=(n.top+(a&&s?s.offsetTop:0))/r,d=n.width/o,u=n.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Fg(e){var t=Dg(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Bg(e){return e?(e.nodeName||"").toLowerCase():null}function Wg(e){return((Ig(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vg(e){return Pg(Wg(e)).left+Fg(e).scrollLeft}function zg(e){return Dg(e).getComputedStyle(e)}function Hg(e){var t=zg(e),i=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function jg(e,t,i){void 0===i&&(i=!1);var n,o,r=Ng(t),s=Ng(t)&&function(e){var t=e.getBoundingClientRect(),i=Og(t.width)/e.offsetWidth||1,n=Og(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=Wg(t),l=Pg(e,s,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!i)&&(("body"!==Bg(t)||Hg(a))&&(c=(n=t)!==Dg(n)&&Ng(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Fg(n)),Ng(t)?((d=Pg(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Vg(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Ug(e){var t=Pg(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function $g(e){return"html"===Bg(e)?e:e.assignedSlot||e.parentNode||(Rg(e)?e.host:null)||Wg(e)}function Zg(e){return["html","body","#document"].indexOf(Bg(e))>=0?e.ownerDocument.body:Ng(e)&&Hg(e)?e:Zg($g(e))}function Gg(e,t){var i;void 0===t&&(t=[]);var n=Zg(e),o=n===(null==(i=e.ownerDocument)?void 0:i.body),r=Dg(n),s=o?[r].concat(r.visualViewport||[],Hg(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(Gg($g(s)))}function Kg(e){return["table","td","th"].indexOf(Bg(e))>=0}function Xg(e){return Ng(e)&&"fixed"!==zg(e).position?e.offsetParent:null}function Yg(e){for(var t=Dg(e),i=Xg(e);i&&Kg(i)&&"static"===zg(i).position;)i=Xg(i);return i&&("html"===Bg(i)||"body"===Bg(i)&&"static"===zg(i).position)?t:i||function(e){var t=/firefox/i.test(Mg());if(/Trident/i.test(Mg())&&Ng(e)&&"fixed"===zg(e).position)return null;var i=$g(e);for(Rg(i)&&(i=i.host);Ng(i)&&["html","body"].indexOf(Bg(i))<0;){var n=zg(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var Qg="top",Jg="bottom",ep="right",tp="left",ip="auto",np=[Qg,Jg,ep,tp],op="start",rp="end",sp="viewport",ap="popper",lp=np.reduce((function(e,t){return e.concat([t+"-"+op,t+"-"+rp])}),[]),cp=[].concat(np,[ip]).reduce((function(e,t){return e.concat([t,t+"-"+op,t+"-"+rp])}),[]),dp=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function up(e){var t=new Map,i=new Set,n=[];function o(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||o(e)})),n}var hp={placement:"bottom",modifiers:[],strategy:"absolute"};function gp(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function pp(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,o=t.defaultOptions,r=void 0===o?hp:o;return function(e,t,i){void 0===i&&(i=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},hp,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var o="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:Ig(e)?Gg(e):e.contextElement?Gg(e.contextElement):[],popper:Gg(t)};var s,c,h=function(e){var t=up(e);return dp.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((s=[].concat(n,a.options.modifiers),c=s.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.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,i=e.options,n=void 0===i?{}:i,o=e.effect;if("function"==typeof o){var r=o({state:a,name:t,instance:d,options:n});l.push(r||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(gp(t,i)){a.rects={reference:jg(t,Yg(i),"fixed"===a.options.strategy),popper:Ug(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var o=a.orderedModifiers[n],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,n=-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(!gp(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),d}}var mp={passive:!0};function fp(e){return e.split("-")[0]}function vp(e){return e.split("-")[1]}function _p(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bp(e){var t,i=e.reference,n=e.element,o=e.placement,r=o?fp(o):null,s=o?vp(o):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case Qg:t={x:a,y:i.y-n.height};break;case Jg:t={x:a,y:i.y+i.height};break;case ep:t={x:i.x+i.width,y:l};break;case tp:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?_p(r):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case op:t[c]=t[c]-(i[d]/2-n[d]/2);break;case rp:t[c]=t[c]+(i[d]/2-n[d]/2)}}return t}var yp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cp(e){var t,i=e.popper,n=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=tp,y=Qg,C=window;if(c){var w=Yg(i),S="clientHeight",x="clientWidth";w===Dg(i)&&"static"!==zg(w=Wg(i)).position&&"absolute"===a&&(S="scrollHeight",x="scrollWidth"),(o===Qg||(o===tp||o===ep)&&r===rp)&&(y=Jg,m-=(u&&w===C&&C.visualViewport?C.visualViewport.height:w[S])-n.height,m*=l?1:-1),o!==tp&&(o!==Qg&&o!==Jg||r!==rp)||(b=ep,g-=(u&&w===C&&C.visualViewport?C.visualViewport.width:w[x])-n.width,g*=l?1:-1)}var L,k=Object.assign({position:a},c&&yp),E=!0===d?function(e,t){var i=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Og(i*o)/o||0,y:Og(n*o)/o||0}}({x:g,y:m},Dg(i)):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},k,((L={})[y]=_?"0":"",L[b]=v?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L)):Object.assign({},k,((t={})[y]=_?m+"px":"",t[b]=v?g+"px":"",t.transform="",t))}const wp={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Ng(o)&&Bg(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});Ng(n)&&Bg(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Sp={left:"right",right:"left",bottom:"top",top:"bottom"};function xp(e){return e.replace(/left|right|bottom|top/g,(function(e){return Sp[e]}))}var Lp={start:"end",end:"start"};function kp(e){return e.replace(/start|end/g,(function(e){return Lp[e]}))}function Ep(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Rg(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Dp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ip(e,t,i){return t===sp?Dp(function(e,t){var i=Dg(e),n=Wg(e),o=i.visualViewport,r=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=Ag();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+Vg(e),y:l}}(e,i)):Ig(t)?function(e,t){var i=Pg(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):Dp(function(e){var t,i=Wg(e),n=Fg(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=qg(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=qg(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Vg(e),l=-n.scrollTop;return"rtl"===zg(o||i).direction&&(a+=qg(i.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(Wg(e)))}function Np(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Rp(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function qp(e,t){void 0===t&&(t={});var i=t,n=i.placement,o=void 0===n?e.placement:n,r=i.strategy,s=void 0===r?e.strategy:r,a=i.boundary,l=void 0===a?"clippingParents":a,c=i.rootBoundary,d=void 0===c?sp:c,u=i.elementContext,h=void 0===u?ap:u,g=i.altBoundary,p=void 0!==g&&g,m=i.padding,f=void 0===m?0:m,v=Np("number"!=typeof f?f:Rp(f,np)),_=h===ap?"reference":ap,b=e.rects.popper,y=e.elements[p?_:h],C=function(e,t,i,n){var o="clippingParents"===t?function(e){var t=Gg($g(e)),i=["absolute","fixed"].indexOf(zg(e).position)>=0&&Ng(e)?Yg(e):e;return Ig(i)?t.filter((function(e){return Ig(e)&&Ep(e,i)&&"body"!==Bg(e)})):[]}(e):[].concat(t),r=[].concat(o,[i]),s=r[0],a=r.reduce((function(t,i){var o=Ip(e,i,n);return t.top=qg(o.top,t.top),t.right=Tg(o.right,t.right),t.bottom=Tg(o.bottom,t.bottom),t.left=qg(o.left,t.left),t}),Ip(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Ig(y)?y:y.contextElement||Wg(e.elements.popper),l,d,s),w=Pg(e.elements.reference),S=bp({reference:w,element:b,strategy:"absolute",placement:o}),x=Dp(Object.assign({},b,S)),L=h===ap?x:w,k={top:C.top-L.top+v.top,bottom:L.bottom-C.bottom+v.bottom,left:C.left-L.left+v.left,right:L.right-C.right+v.right},E=e.modifiersData.offset;if(h===ap&&E){var D=E[o];Object.keys(k).forEach((function(e){var t=[ep,Jg].indexOf(e)>=0?1:-1,i=[Qg,Jg].indexOf(e)>=0?"y":"x";k[e]+=D[i]*t}))}return k}function Tp(e,t,i){return qg(e,Tg(t,i))}function Op(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Mp(e){return[Qg,ep,Jg,tp].some((function(t){return e[t]>=0}))}var Ap=pp({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,o=n.scroll,r=void 0===o||o,s=n.resize,a=void 0===s||s,l=Dg(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",i.update,mp)})),a&&l.addEventListener("resize",i.update,mp),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",i.update,mp)})),a&&l.removeEventListener("resize",i.update,mp)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=bp({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,i=e.options,n=i.gpuAcceleration,o=void 0===n||n,r=i.adaptive,s=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:fp(t.placement),variation:vp(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,Cp(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,Cp(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:{}},wp,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.offset,r=void 0===o?[0,0]:o,s=cp.reduce((function(e,i){return e[i]=function(e,t,i){var n=fp(e),o=[tp,Qg].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[tp,ep].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}(i,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[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=i.mainAxis,r=void 0===o||o,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,c=i.padding,d=i.boundary,u=i.rootBoundary,h=i.altBoundary,g=i.flipVariations,p=void 0===g||g,m=i.allowedAutoPlacements,f=t.options.placement,v=fp(f),_=l||(v!==f&&p?function(e){if(fp(e)===ip)return[];var t=xp(e);return[kp(e),t,kp(t)]}(f):[xp(f)]),b=[f].concat(_).reduce((function(e,i){return e.concat(fp(i)===ip?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,o=i.boundary,r=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?cp:l,d=vp(n),u=d?a?lp:lp.filter((function(e){return vp(e)===d})):np,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var g=h.reduce((function(t,i){return t[i]=qp(e,{placement:i,boundary:o,rootBoundary:r,padding:s})[fp(i)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:i,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=t.rects.reference,C=t.rects.popper,w=new Map,S=!0,x=b[0],L=0;L<b.length;L++){var k=b[L],E=fp(k),D=vp(k)===op,I=[Qg,Jg].indexOf(E)>=0,N=I?"width":"height",R=qp(t,{placement:k,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),q=I?D?ep:tp:D?Jg:Qg;y[N]>C[N]&&(q=xp(q));var T=xp(q),O=[];if(r&&O.push(R[E]<=0),a&&O.push(R[q]<=0,R[T]<=0),O.every((function(e){return e}))){x=k,S=!1;break}w.set(k,O)}if(S)for(var M=function(e){var t=b.find((function(t){var i=w.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},A=p?3:1;A>0&&"break"!==M(A);A--);t.placement!==x&&(t.modifiersData[n]._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,i=e.options,n=e.name,o=i.mainAxis,r=void 0===o||o,s=i.altAxis,a=void 0!==s&&s,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,u=i.padding,h=i.tether,g=void 0===h||h,p=i.tetherOffset,m=void 0===p?0:p,f=qp(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=fp(t.placement),_=vp(t.placement),b=!_,y=_p(v),C="x"===y?"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,D={x:0,y:0};if(w){if(r){var I,N="y"===y?Qg:tp,R="y"===y?Jg:ep,q="y"===y?"height":"width",T=w[y],O=T+f[N],M=T-f[R],A=g?-x[q]/2:0,P=_===op?S[q]:x[q],F=_===op?-x[q]:-S[q],B=t.elements.arrow,W=g&&B?Ug(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[N],H=V[R],j=Tp(0,S[q],W[q]),U=b?S[q]/2-A-j-z-k.mainAxis:P-j-z-k.mainAxis,$=b?-S[q]/2+A+j+H+k.mainAxis:F+j+H+k.mainAxis,Z=t.elements.arrow&&Yg(t.elements.arrow),G=Z?"y"===y?Z.clientTop||0:Z.clientLeft||0:0,K=null!=(I=null==E?void 0:E[y])?I:0,X=T+$-K,Y=Tp(g?Tg(O,T+U-K-G):O,T,g?qg(M,X):M);w[y]=Y,D[y]=Y-T}if(a){var Q,J="x"===y?Qg:tp,ee="x"===y?Jg:ep,te=w[C],ie="y"===C?"height":"width",ne=te+f[J],oe=te-f[ee],re=-1!==[Qg,tp].indexOf(v),se=null!=(Q=null==E?void 0:E[C])?Q:0,ae=re?ne:te-S[ie]-x[ie]-se+k.altAxis,le=re?te+S[ie]+x[ie]-se-k.altAxis:oe,ce=g&&re?function(e,t,i){var n=Tp(e,t,i);return n>i?i:n}(ae,te,le):Tp(g?ae:ne,te,g?le:oe);w[C]=ce,D[C]=ce-te}t.modifiersData[n]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,o=e.options,r=i.elements.arrow,s=i.modifiersData.popperOffsets,a=fp(i.placement),l=_p(a),c=[tp,ep].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return Np("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Rp(e,np))}(o.padding,i),u=Ug(r),h="y"===l?Qg:tp,g="y"===l?Jg:ep,p=i.rects.reference[c]+i.rects.reference[l]-s[l]-i.rects.popper[c],m=s[l]-i.rects.reference[l],f=Yg(r),v=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,_=p/2-m/2,b=d[h],y=v-u[c]-d[g],C=v/2-u[c]/2+_,w=Tp(b,C,y),S=l;i.modifiersData[n]=((t={})[S]=w,t.centerOffset=w-C,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Ep(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=qp(t,{elementContext:"reference"}),a=qp(t,{altBoundary:!0}),l=Op(s,n),c=Op(a,o,r),d=Mp(l),u=Mp(c);t.modifiersData[i]={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 Pp(e){return(0,Rt.Z)("MuiPopper",e)}(0,Nt.Z)("MuiPopper",["root"]);const Fp={disableDefaultClasses:!1},Bp=i.createContext(Fp),Wp=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Vp=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function zp(e){return"function"==typeof e?e():e}const Hp={},jp=i.forwardRef((function(e,t){var n;const{anchorEl:o,children:r,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:h,slotProps:g={},slots:p={},TransitionProps:m}=e,f=Jr(e,Wp),v=i.useRef(null),_=(0,es.Z)(v,t),b=i.useRef(null),y=(0,es.Z)(b,h),C=i.useRef(y);(0,ia.Z)((()=>{C.current=y}),[y]),i.useImperativeHandle(h,(()=>b.current),[]);const w=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}}(d,s),[S,x]=i.useState(w),[L,k]=i.useState(zp(o));i.useEffect((()=>{b.current&&b.current.forceUpdate()})),i.useEffect((()=>{o&&k(zp(o))}),[o]),(0,ia.Z)((()=>{if(!L||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{x(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Ap(L,v.current,Qr({placement:w},u,{modifiers:e}));return C.current(t),()=>{t.destroy(),C.current(null)}}),[L,a,l,c,u,w]);const E={placement:S};null!==m&&(E.TransitionProps=m);const D=(0,Lt.Z)({root:["root"]},function(e){const{disableDefaultClasses:t}=i.useContext(Bp);return i=>t?"":e(i)}(Pp)),I=null!=(n=p.root)?n:"div",N=rs({elementType:I,externalSlotProps:g.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:_},ownerState:e,className:D.root});return(0,Tt.jsx)(I,Qr({},N,{children:"function"==typeof r?r(E):r}))})),Up=i.forwardRef((function(e,t){const{anchorEl:n,children:o,container:r,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:u="bottom",popperOptions:h=Hp,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:v={}}=e,_=Jr(e,Vp),[b,y]=i.useState(!0);if(!l&&!d&&(!m||b))return null;let C;if(r)C=r;else if(n){const e=zp(n);C=e&&void 0!==e.nodeType?(0,Qc.Z)(e).body:(0,Qc.Z)(null).body}const w=d||!l||m&&!b?void 0:"none",S=m?{in:d,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return(0,Tt.jsx)(hd,{disablePortal:a,container:C,children:(0,Tt.jsx)(jp,Qr({anchorEl:n,direction:s,disablePortal:a,modifiers:c,ref:t,open:m?!b:d,placement:u,popperOptions:h,popperRef:g,slotProps:f,slots:v},_,{style:Qr({position:"fixed",top:0,left:0,display:w},p),TransitionProps:S,children:o}))})})),$p=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Zp=(0,It.ZP)(Up,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gp=i.forwardRef((function(e,t){var i;const n=(0,ai.Z)(),o=(0,Dt.Z)({props:e,name:"MuiPopper"}),{anchorEl:r,component:s,components:a,componentsProps:l,container:c,disablePortal:d,keepMounted:u,modifiers:h,open:g,placement:p,popperOptions:m,popperRef:f,transition:v,slots:_,slotProps:b}=o,y=(0,wt.Z)(o,$p),C=null!=(i=null==_?void 0:_.root)?i:null==a?void 0:a.Root,w=(0,St.Z)({anchorEl:r,container:c,disablePortal:d,keepMounted:u,modifiers:h,open:g,placement:p,popperOptions:m,popperRef:f,transition:v},y);return(0,Tt.jsx)(Zp,(0,St.Z)({as:s,direction:null==n?void 0:n.direction,slots:{root:C},slotProps:null!=b?b:l},w,{ref:t}))}));var Kp=s(9673);function Xp(e){return(0,Rt.Z)("MuiTooltip",e)}const Yp=(0,Nt.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Qp=["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"],Jp=(0,It.ZP)(Gp,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.popper,!i.disableInteractive&&t.popperInteractive,i.arrow&&t.popperArrow,!i.open&&t.popperClose]}})((({theme:e,ownerState:t,open:i})=>(0,St.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Yp.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Yp.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Yp.arrow}`]:(0,St.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"] .${Yp.arrow}`]:(0,St.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),em=(0,It.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.tooltip,i.touch&&t.touch,i.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Gt.Z)(i.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,St.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,In.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},{[`.${Yp.popper}[data-popper-placement*="left"] &`]:(0,St.Z)({transformOrigin:"right center"},t.isRtl?(0,St.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,St.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Yp.popper}[data-popper-placement*="right"] &`]:(0,St.Z)({transformOrigin:"left center"},t.isRtl?(0,St.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,St.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Yp.popper}[data-popper-placement*="top"] &`]:(0,St.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Yp.popper}[data-popper-placement*="bottom"] &`]:(0,St.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),tm=(0,It.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,In.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let im=!1,nm=null,om={x:0,y:0};function rm(e,t){return i=>{t&&t(i),e(i)}}const sm=i.forwardRef((function(e,t){var n,o,r,s,a,l,c,d,u,h,g,p,m,f,v,_,b,y,C;const w=(0,Dt.Z)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:x,components:L={},componentsProps:k={},describeChild:E=!1,disableFocusListener:D=!1,disableHoverListener:I=!1,disableInteractive:N=!1,disableTouchListener:R=!1,enterDelay:q=100,enterNextDelay:T=0,enterTouchDelay:O=700,followCursor:M=!1,id:A,leaveDelay:P=0,leaveTouchDelay:F=1500,onClose:B,onOpen:W,open:V,placement:z="bottom",PopperComponent:H,PopperProps:j={},slotProps:U={},slots:$={},title:Z,TransitionComponent:G=Yc,TransitionProps:K}=w,X=(0,wt.Z)(w,Qp),Y=i.isValidElement(x)?x:(0,Tt.jsx)("span",{children:x}),Q=ei(),J="rtl"===Q.direction,[ee,te]=i.useState(),[ie,ne]=i.useState(null),oe=i.useRef(!1),re=N||M,se=i.useRef(),ae=i.useRef(),le=i.useRef(),ce=i.useRef(),[de,ue]=(0,Au.Z)({controlled:V,default:!1,name:"Tooltip",state:"open"});let he=de;const ge=(0,Kp.Z)(A),pe=i.useRef(),me=i.useCallback((()=>{void 0!==pe.current&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),clearTimeout(ce.current)}),[]);i.useEffect((()=>()=>{clearTimeout(se.current),clearTimeout(ae.current),clearTimeout(le.current),me()}),[me]);const fe=e=>{clearTimeout(nm),im=!0,ue(!0),W&&!he&&W(e)},ve=(0,Rn.Z)((e=>{clearTimeout(nm),nm=setTimeout((()=>{im=!1}),800+P),ue(!1),B&&he&&B(e),clearTimeout(se.current),se.current=setTimeout((()=>{oe.current=!1}),Q.transitions.duration.shortest)})),_e=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(le.current),q||im&&T?ae.current=setTimeout((()=>{fe(e)}),im?T:q):fe(e))},be=e=>{clearTimeout(ae.current),clearTimeout(le.current),le.current=setTimeout((()=>{ve(e)}),P)},{isFocusVisibleRef:ye,onBlur:Ce,onFocus:we,ref:Se}=(0,qn.Z)(),[,xe]=i.useState(!1),Le=e=>{Ce(e),!1===ye.current&&(xe(!1),be(e))},ke=e=>{ee||te(e.currentTarget),we(e),!0===ye.current&&(xe(!0),_e(e))},Ee=e=>{oe.current=!0;const t=Y.props;t.onTouchStart&&t.onTouchStart(e)},De=_e,Ie=be;i.useEffect((()=>{if(he)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,he]);const Ne=(0,Nn.Z)(Y.ref,Se,te,t);Z||0===Z||(he=!1);const Re=i.useRef(),qe={},Te="string"==typeof Z;E?(qe.title=he||!Te||I?null:Z,qe["aria-describedby"]=he?ge:null):(qe["aria-label"]=Te?Z:null,qe["aria-labelledby"]=he&&!Te?ge:null);const Oe=(0,St.Z)({},qe,X,Y.props,{className:(0,xt.Z)(X.className,Y.props.className),onTouchStart:Ee,ref:Ne},M?{onMouseMove:e=>{const t=Y.props;t.onMouseMove&&t.onMouseMove(e),om={x:e.clientX,y:e.clientY},Re.current&&Re.current.update()}}:{}),Me={};R||(Oe.onTouchStart=e=>{Ee(e),clearTimeout(le.current),clearTimeout(se.current),me(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.current=setTimeout((()=>{document.body.style.WebkitUserSelect=pe.current,_e(e)}),O)},Oe.onTouchEnd=e=>{Y.props.onTouchEnd&&Y.props.onTouchEnd(e),me(),clearTimeout(le.current),le.current=setTimeout((()=>{ve(e)}),F)}),I||(Oe.onMouseOver=rm(De,Oe.onMouseOver),Oe.onMouseLeave=rm(Ie,Oe.onMouseLeave),re||(Me.onMouseOver=De,Me.onMouseLeave=Ie)),D||(Oe.onFocus=rm(ke,Oe.onFocus),Oe.onBlur=rm(Le,Oe.onBlur),re||(Me.onFocus=ke,Me.onBlur=Le));const Ae=i.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ie),options:{element:ie,padding:4}}];return null!=(e=j.popperOptions)&&e.modifiers&&(t=t.concat(j.popperOptions.modifiers)),(0,St.Z)({},j.popperOptions,{modifiers:t})}),[ie,j]),Pe=(0,St.Z)({},w,{isRtl:J,arrow:S,disableInteractive:re,placement:z,PopperComponentProp:H,touch:oe.current}),Fe=(e=>{const{classes:t,disableInteractive:i,arrow:n,touch:o,placement:r}=e,s={popper:["popper",!i&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,Gt.Z)(r.split("-")[0])}`],arrow:["arrow"]};return(0,Lt.Z)(s,Xp,t)})(Pe),Be=null!=(n=null!=(o=$.popper)?o:L.Popper)?n:Jp,We=null!=(r=null!=(s=null!=(a=$.transition)?a:L.Transition)?s:G)?r:Yc,Ve=null!=(l=null!=(c=$.tooltip)?c:L.Tooltip)?l:em,ze=null!=(d=null!=(u=$.arrow)?u:L.Arrow)?d:tm,He=ts(Be,(0,St.Z)({},j,null!=(h=U.popper)?h:k.popper,{className:(0,xt.Z)(Fe.popper,null==j?void 0:j.className,null==(g=null!=(p=U.popper)?p:k.popper)?void 0:g.className)}),Pe),je=ts(We,(0,St.Z)({},K,null!=(m=U.transition)?m:k.transition),Pe),Ue=ts(Ve,(0,St.Z)({},null!=(f=U.tooltip)?f:k.tooltip,{className:(0,xt.Z)(Fe.tooltip,null==(v=null!=(_=U.tooltip)?_:k.tooltip)?void 0:v.className)}),Pe),$e=ts(ze,(0,St.Z)({},null!=(b=U.arrow)?b:k.arrow,{className:(0,xt.Z)(Fe.arrow,null==(y=null!=(C=U.arrow)?C:k.arrow)?void 0:y.className)}),Pe);return(0,Tt.jsxs)(i.Fragment,{children:[i.cloneElement(Y,Oe),(0,Tt.jsx)(Be,(0,St.Z)({as:null!=H?H:Gp,placement:z,anchorEl:M?{getBoundingClientRect:()=>({top:om.y,left:om.x,right:om.x,bottom:om.y,width:0,height:0})}:ee,popperRef:Re,open:!!ee&&he,id:ge,transition:!0},Me,He,{popperOptions:Ae,children:({TransitionProps:e})=>(0,Tt.jsx)(We,(0,St.Z)({timeout:Q.transitions.duration.shorter},e,je,{children:(0,Tt.jsxs)(Ve,(0,St.Z)({},Ue,{children:[Z,S?(0,Tt.jsx)(ze,(0,St.Z)({},$e,{ref:ne})):null]}))}))}))]})})),am=sm,lm=(0,It.ZP)(zo,{shouldForwardProp:e=>!["width","dense"].includes(e)})((({width:e,dense:t})=>({minWidth:`${e}px`,textAlign:"center",fontSize:t?"12px":"14px",...t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}})));function cm({width:e,text:t,dense:n,tooltip:o}){const{translator:r}=(0,i.useContext)(cc);return i.createElement(am,{title:o?r.get(t):""},i.createElement(lm,{width:e,dense:n,component:"div",variant:"body1",py:"12px"},r.get(t)))}var dm=s(528);const um=(0,It.ZP)(Td)((({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t}))),hm=(0,It.ZP)("div")((()=>({paddingLeft:"6px",flexGrow:1}))),gm=(0,It.ZP)("div")((({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"}))),pm=(0,It.ZP)(dm.Z)((()=>({fontSize:"14px"})));function mm({text:e,dismiss:t,dense:n,parentWidth:o=0}){const r="function"==typeof t,s=n?370:282,a=Math.max(o/2-s/2,0),l=Math.min(s,o)-42,c=n&&o<s;return i.createElement(um,{left:a,style:{maxWidth:s}},i.createElement(hm,null,i.createElement(cm,{text:e,dense:n,width:l,tooltip:c})),i.createElement(gm,{dense:n},r&&i.createElement(So,{"aria-label":"close",onClick:()=>t()},i.createElement(pm,null))))}const fm=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t,vm=80;function _m({itemWidth:e,layout:t,frequencyMode:i}){const n=e>vm,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["N",void 0].includes(i);return!(!n||!r&&!o)}const bm=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e)(e);return`Max(AGGR(Count(${t}), ${t}))`},ym=(e,t)=>{const n=(e=>"fetch"===e?.frequencyMax)(t),[o,r]=(0,i.useState)(),[s,a]=(0,i.useState)(n);return(0,i.useEffect)((()=>{n&&(async()=>{const i=await(async(e,t)=>{const i=e.qListObject.qDimensionInfo,n=i.qGroupFieldDefs[i.qGroupPos],o=bm(n);return(await t.evaluateEx(o)).qNumber})(t,e);r(i),a(!1)})()}),[n&&t]),{frequencyMax:n?o:t?.frequencyMax,awaitingFrequencyMax:s}},Cm=100,wm=(0,It.ZP)("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function Sm({model:e,app:t,constraints:n,layout:o,selections:r,selectionState:s,direction:a,checkboxes:l,height:c,width:d,frequencyMode:u,update:h,fetchStart:g,postProcessPages:p,calculatePagesHeight:m=!1,keyboard:f={},showGray:v=!0,scrollState:_,selectDisabled:b=(()=>!1),keyScroll:y={state:{},reset:()=>{}},currentScrollIndex:C={set:()=>{}},renderedCallback:w,onCtrlF:S,showSearch:x,isModal:L,styles:k}){const{translator:E}=(0,i.useContext)(cc),[D,I]=(0,i.useState)(!1),N=!(!o||!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:R=l,histogram:q}=o??{},[T,O]=(0,i.useState)(""),M=(0,i.useRef)(null),A=(0,i.useRef)({queue:[],validPages:!1,dataOffset:0}),P=(0,i.useRef)({pages:[]}),{frequencyMax:F,awaitingFrequencyMax:B}=ym(t,o),{isLoadingData:W,...V}=function({local:e,loaderRef:t,model:n,fetchStart:o,scrollTimeout:r,postProcessPages:s,listData:a}){const[l,c]=(0,i.useState)(!1),[d,u]=(0,i.useState)([]);let[h]=(0,i.useState)(0);const g=(i,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:i+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 i=e.current.queue.slice(-1)[0],r=n.getListObjectData("/qListObjectDef",[{qTop:i.start>h?i.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:i.start,qHeight:h,qLeft:0,qWidth:1}]).then((i=>{const n=s?s(i):i;e.current.validPages=!0,a.current.pages=n,u(n),c(!1),t()}));o&&o(r)}),g?r:0)}))};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(h=e),g)},pages:d,isLoading:l}}({local:A,loaderRef:M,model:e,fetchStart:g,scrollTimeout:0,postProcessPages:p,listData:P}),{getStoreValue:z,setStoreValue:H}=Eg(e),j=(0,i.useCallback)(V.loadMoreItems,[o]),[U,$]=(0,i.useState)({show:!1,dismissed:!1}),[Z,G]=(0,i.useState)([]);V?.pages&&s.update({setPages:G,pages:V.pages,isSingleSelect:N,selectDisabled:b,layout:o});const K=o?.qListObject.qDimensionInfo.qCardinal;(V?.pages.length&&!B||0===K)&&w?.();const X=(0,i.useCallback)((e=>{if(!Z?.length||!A.current.validPages)return!1;A.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,i=Z.filter((e=>t(e)))[0];return i&&t(i)}),[o,Z]),{interactionEvents:Y,select:Q}=function({selectionState:e,selections:t,checkboxes:n=!1,doc:o=document,loaderRef:r}){const s=(0,i.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,i.useEffect)((()=>{if(!r.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),i=e=>e.preventDefault(),n=r.current._listRef._outerRef;return n.addEventListener("gesturestart",e),n.addEventListener("gesturechange",t),n.addEventListener("gestureend",i),()=>{n.removeEventListener("gesturestart",e),n.removeEventListener("gesturechange",t),n.removeEventListener("gestureend",i)}}),[r.current?._listRef?._outerRef]);const a=()=>(e.setSelectableValuesUpdating(),Yd({selections:t,elemNumbers:s.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:s.current.toggle})),l=(t,i)=>function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:i,max:n}=function(e,t){let i=1/0,n=-1/0;return e.forEach((e=>{const o=t.indexOf(e);i=o<i?o:i,n=o>n?o:n})),{min:i,max:n}}(e,t);return t.slice(i,n+1)}([t,i],function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return Xd(t)}(e.enginePages)),c=t=>{const{startElemNumber:i}=s.current;if(i===t)return;const n=l(s.current.startElemNumber,t);e.updateItems(n,!0,s.current.elemNumbers)},d=(0,i.useCallback)((t=>{if(e.selectDisabled())return;const i=+t.target.getAttribute("data-n"),n=!e.isSingleSelect&&tu(t.nativeEvent);s.current.elemNumbers=[i],s.current.toggle=n,n||e.clearItemStates(!0),e.updateItem(i),s.current.active=!1,a()}),[]),u=(0,i.useCallback)((t=>{if(0!==t.button||e.selectDisabled())return;const i=+t.currentTarget.getAttribute("data-n"),n=!e.isSingleSelect&&tu(t);s.current.isRange=!1,s.current.startElemNumber=i,s.current.elemNumbers=[i],s.current.toggle=n,s.current.active=!0,n||e.clearItemStates(!0),e.updateItem(i),e.isSingleSelect&&(s.current.active=!1,a()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)}),[]),h=(0,i.useCallback)((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}a()}}),[]),g=(0,i.useCallback)((e=>{0===e.button&&s.current.active&&(s.current.active=!1,a())}),[]),p=(0,i.useCallback)((t=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,e.isSelected(s.current.startElemNumber)||(e.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const i=+t.currentTarget.getAttribute("data-n");c(i)}),[]),m=(0,i.useCallback)((t=>{if(s.current.active||s.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void a();const i=Number(t.touches[0].target?.closest(eu)?.getAttribute("data-n")),n=Number(t.touches[1].target?.closest(eu)?.getAttribute("data-n"));Number.isNaN(i)||Number.isNaN(i)?a():(s.current.active=!0,l(i,n).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[i,n])}),[]),f=(0,i.useCallback)((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,c(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,a()}),[]);(0,i.useEffect)((()=>(o.addEventListener("mouseup",g),()=>{o.removeEventListener("mouseup",g)})),[g]),(0,i.useEffect)((()=>{const i=()=>{e.clearItemStates(!1)},n=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return t.on("clearItemStates",i),t.on("deactivated",i),t.on("cleared",n),()=>{t.removeListener("clearItemStates",i),t.removeListener("deactivated",i),t.removeListener("cleared",n)}}),[t]);const v={};return n?Object.assign(v,{onChange:d}):Object.assign(v,{onMouseUp:h,onMouseDown:u,onMouseEnter:p,onTouchStart:m,onTouchEnd:f}),{interactionEvents:v,select:(i=[],n=!1,o=void 0)=>{const r=!e.isSingleSelect&&tu(o?.nativeEvent);r||e.clearItemStates(!0);const s=[];return e.updateItems(i,n,s),e.setSelectableValuesUpdating(),Yd({selections:t,elemNumbers:n?s:i,isSingleSelect:e.isSingleSelect,toggle:r})}}}({selectionState:s,selections:r,checkboxes:R,doc:document,loaderRef:M}),{layoutOptions:J={}}=o||{};let ee=!0;J.dataLayout&&(ee="singleColumn"===J.dataLayout||"row"===J?.layoutOrder);const te="grid"===J?.dataLayout,ie=e=>{const t={...ee?{rowIndex:e}:{columnIndex:e}},i=te?t:e;M.current._listRef.scrollToItem(i)},ne=()=>{if(A.current.queue=[],A.current.validPages=!1,M.current){M.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===y.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&y.reset());A.current.dataOffset=0,ie(0)}};h&&h.call(null,ne),(0,i.useEffect)((()=>{_&&!D&&M.current&&(M.current._listRef.scrollToItem(_.initScrollPos),I(!0))}),[M.current]),(0,i.useEffect)((()=>{ne()}),[o,A.current.dataOffset]);let oe=Cm;const re="grid"!==J.dataLayout,se=o?.qListObject.qSize?.qcy,ae=function({pages:e,minimumBatchSize:t,count:i,calculatePagesHeight:n=!1}){return(e?.length&&n?xg({pages:e,minimumBatchSize:t,count:i}):i)||0}({pages:Z,minimumBatchSize:oe,count:se,calculatePagesHeight:m,layoutOptions:J,model:e});let le=_m({itemWidth:d,layout:o,frequencyMode:u});const ce=function(e){return e.some((({qMatrix:e})=>e.some((([e])=>!!e.qFrequency?.match("%")))))?"P":"-"}(Z),de=Sg({layout:o,width:d,height:c,listCount:ae,count:se,freqIsAllowed:le,checkboxes:R,styles:k});de.columnWidth&&(le=_m({itemWidth:de.columnWidth,layout:o,frequencyMode:u}));const{listCount:ue}=de;H("listCount",ue);const he=z("inputText");(0,i.useEffect)((()=>{if(he){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(ue),t=E.get(e,[ue]);O(t)}}),[he,ue]);const ge=e=>{const{scrollIndex:t,offset:i,triggerRerender:n}=function({position:e,isRow:t,sizes:i,layout:n,offset:o}){let r,s=!1,a=o??0;switch(e){case"start":r=0;break;case"end":r=t?i.rowCount:i.columnCount;break;case"overflowStart":a=0,r=0,s=!0;break;case"overflowEnd":a=fm(n,i.listCount),r=n.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:r,offset:a,triggerRerender:s}}({position:e,isRow:ee,sizes:de,layout:o,offset:A.current.dataOffset});A.current.dataOffset=i,n&&s.triggerStateChanged(),ie(t)};(0,i.useEffect)((()=>{const e=y.state;e.up?ie(C.state.start-e.up):e.down?ie(C.state.stop+e.down):e.scrollPosition&&ge(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&y.reset()}),[y.state.up,y.state.down,y.state.scrollPosition]);const{textAlign:pe}=o?.qListObject.qDimensionInfo||{},[me,fe]=(0,i.useState)({first:!1,last:!1}),{List:ve,Grid:_e}=function({layout:e,width:t,checkboxes:n,local:o,isVertical:r,pages:s,selectDisabled:a,interactionEvents:l,deducedFrequencyMode:c,histogram:d,isSingleSelect:u,select:h,selectAll:g,onCtrlF:p,textAlign:m,selections:f,keyboard:v,showGray:_,scrollState:b,direction:y,sizes:C,listCount:w,overflowDisclaimer:S,setScrollPosition:x,focusListItems:L,setCurrentScrollIndex:k,constraints:E,frequencyMax:D,freqIsAllowed:I,translator:N,showSearch:R,isModal:q,styles:T}){const{layoutOptions:O={}}=e||{},{columnWidth:M,listHeight:A,itemHeight:P,rowCount:F,columnCount:B}=C||{},W=("grid"===O.dataLayout?M:t)>au,V={direction:"rtl"===y?"rtl":"ltr",useIsScrolling:!0,className:hg.styledScrollbars},z=e?.qListObject.qDimensionInfo.qLocked,H=A<=P,j={isLocked:z,column:!r,pages:s,...z||a()?{}:l,checkboxes:n,layoutOptions:O,deducedFrequencyMode:c,freqIsAllowed:I,isSingleSelect:u,textAlign:m,sizes:C,actions:{select:h,confirm:()=>f?.confirm.call(f),cancel:()=>f?.cancel.call(f),setScrollPosition:x,selectAll:g,onCtrlF:p},frequencyMax:D,histogram:d,keyboard:v,showGray:_,showTick:W,dataOffset:o.current.dataOffset,focusListItems:L,direction:y,translator:N,showSearch:R,isModal:q,styles:T,fillHeight:H};return{List:({onItemsRendered:n,ref:r})=>(o.current.listRef=r,i.createElement(_g,vg({},V,{dataTestid:"fixed-size-list",scrollDisabled:E?.active,height:A,width:t,itemCount:w,itemData:{...j,listCount:w},itemSize:P,onItemsRendered:t=>{k({start:t.visibleStartIndex,stop:t.visibleStopIndex}),b&&b.setScrollPos(t.visibleStopIndex),fg({renderProps:t,layoutOptions:O,maxCount:C.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),n({...t})},ref:r}),jh)),Grid:({onItemsRendered:n,ref:r})=>{const{overflowStyling:s,scrollBarWidth:a}=C,{layoutOrder:l}=O||{},c=Math.min(A,F*P+a);return o.current.listRef=r,i.createElement(bg,vg({},V,{dataTestid:"fixed-size-grid",scrollDisabled:E?.active,height:c,width:t,columnCount:B,columnWidth:M,rowCount:F,rowHeight:P,style:{...s},itemData:{...j,column:void 0,columnCount:B,rowCount:F},onItemsRendered:t=>{const i="row"===l;k({start:i?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:i?t.visibleRowStopIndex:t.visibleColumnStopIndex});const r=function(e){const{renderProps:t,scrollState:i,layoutOrder:n,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let u,h,g,p;return i&&i.setScrollPos(d),"column"===n?(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:b,layoutOrder:l,rowCount:F,columnCount:B});fg({renderProps:t,layoutOptions:O,maxCount:C.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),n(r)},ref:r}),jh)}}}({direction:a,layout:o,height:c,width:d,checkboxes:R,deducedFrequencyMode:ce,histogram:q,keyboard:f,showGray:v,interactionEvents:Y,select:Q,selectAll:()=>{s.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:S,textAlign:pe,isVertical:re,pages:Z,selectDisabled:b,isSingleSelect:N,selections:r,scrollState:_,local:A,sizes:de,listCount:ue,overflowDisclaimer:{state:U,set:e=>$((t=>({...t,show:e})))},setScrollPosition:ge,focusListItems:{first:me.first,setFirst:e=>fe((t=>({...t,first:e}))),last:me.last,setLast:e=>fe((t=>({...t,last:e})))},setCurrentScrollIndex:C.set,constraints:n,frequencyMax:F,freqIsAllowed:le,translator:E,showSearch:x,isModal:L,styles:k}),{columnWidth:be,listHeight:ye,itemHeight:Ce}=de||{};return re||(oe=function({width:e,columnWidth:t,listHeight:i,itemHeight:n}){return Math.ceil(e/t)*Math.ceil(i/n)*2}({width:d,columnWidth:be,listHeight:ye,itemHeight:Ce})),i.createElement(wm,null,i.createElement(Fh,{className:"screenReaderOnly",layout:o}),i.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},T),!ue&&K>0&&i.createElement(cm,{width:d,text:"Listbox.NoMatchesForYourTerms"}),i.createElement(Gd,{isItemLoaded:X,itemCount:ue||1,loadMoreItems:j.with({minimumBatchSize:oe}),threshold:0,minimumBatchSize:oe,ref:M,role:"grid"},re?ve:_e),U.show&&!U.dismissed&&i.createElement(mm,{text:"Listbox.ItemsOverflow",dismiss:()=>$((e=>({...e,dismissed:!0}))),parentWidth:M?.current?._listRef?.props?.width,dense:J?.dense}))}const xm=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"}}]}),Lm=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"}}]}),km=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"}}]}),Em=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"}}]}),Dm=({layout:e,model:t,translator:i,selectionState:n,isDirectQuery:o=!1})=>e.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:i.get("Selection.SelectAll"),getSvgIconShape:xm,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:i.get("Selection.SelectPossible"),getSvgIconShape:km,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectPossible("/qListObjectDef")}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:i.get("Selection.SelectAlternative"),getSvgIconShape:Lm,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectAlternative("/qListObjectDef")}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:i.get("Selection.SelectExcluded"),getSvgIconShape:Em,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean);function Im(e){return(0,Rt.Z)("MuiDivider",e)}const Nm=(0,Nt.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Rm=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],qm=(0,It.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.absolute&&t.absolute,t[i.variant],i.light&&t.light,"vertical"===i.orientation&&t.vertical,i.flexItem&&t.flexItem,i.children&&t.withChildren,i.children&&"vertical"===i.orientation&&t.withChildrenVertical,"right"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignRight,"left"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,St.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,In.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"})),(({ownerState:e})=>(0,St.Z)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,St.Z)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,St.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,St.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%"}}))),Tm=(0,It.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.wrapper,"vertical"===i.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,St.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)`}))),Om=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiDivider"}),{absolute:n=!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"}=i,g=(0,wt.Z)(i,Rm),p=(0,St.Z)({},i,{absolute:n,component:s,flexItem:a,light:l,orientation:c,role:d,textAlign:u,variant:h}),m=(e=>{const{absolute:t,children:i,classes:n,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",i&&"withChildren",i&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,Lt.Z)(c,Im,n)})(p);return(0,Tt.jsx)(qm,(0,St.Z)({as:s,className:(0,xt.Z)(m.root,r),role:d,ref:t,ownerState:p},g,{children:o?(0,Tt.jsx)(Tm,{className:m.wrapper,ownerState:p,children:o}):null}))}));Om.muiSkipListHighlight=!0;const Mm=Om,Am=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 Pm(e){const t=ei(),i="function"==typeof e.enabled?!e.enabled():!!e.disabled,n="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:i,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:n}}const Fm={className:"njs-cell-action"},Bm=i.forwardRef((({ariaExpanded:e=!1,item:t,addAnchor:n=!1},o)=>{const r=ei(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=Pm(t);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),u=t.keyboardAction||t.action,h=u?e=>["Enter"].includes(e.key)&&u():null,g=u?e=>[" ","Spacebar"].includes(e.key)&&u():null,p=`actions-toolbar-${t.key}`;return i.createElement(So,{ref:n?null:o,title:t.label,onClick:t.action,onKeyDown:h,onKeyUp:g,disabled:a,style:l,className:[Fm.className,p].join(" "),size:"large",disableRipple:!0,"aria-expanded":e,"aria-controls":"moreMenuList","data-testid":p},c&&br(t.getSvgIconShape()),n&&i.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Wm=Bm,Vm=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"}}]}),zm=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"}}]}),Hm=e=>br(zm(e));function jm(e){return(0,Rt.Z)("MuiListItemIcon",e)}const Um=(0,Nt.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function $m(e){return(0,Rt.Z)("MuiMenuItem",e)}const Zm=(0,Nt.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Gm=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Km=(0,It.ZP)(vo,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.dense&&t.dense,i.divider&&t.divider,!i.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,St.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"}},[`&.${Zm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,In.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,In.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,In.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,In.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Nm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Nm.inset}`]:{marginLeft:52},[`& .${Ur.root}`]:{marginTop:0,marginBottom:0},[`& .${Ur.inset}`]:{paddingLeft:36},[`& .${Um.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,St.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Um.root} svg`]:{fontSize:"1.25rem"}})))),Xm=i.forwardRef((function(e,t){const n=(0,Dt.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}=n,g=(0,wt.Z)(n,Gm),p=i.useContext(Cr),m=i.useMemo((()=>({dense:s||p.dense||!1,disableGutters:l})),[p.dense,s,l]),f=i.useRef(null);(0,Ir.Z)((()=>{o&&f.current&&f.current.focus()}),[o]);const v=(0,St.Z)({},n,{dense:m.dense,divider:a,disableGutters:l}),_=(e=>{const{disabled:t,dense:i,divider:n,disableGutters:o,selected:r,classes:s}=e,a={root:["root",i&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",r&&"selected"]},l=(0,Lt.Z)(a,$m,s);return(0,St.Z)({},s,l)})(n),b=(0,Nn.Z)(f,t);let y;return n.disabled||(y=void 0!==u?u:-1),(0,Tt.jsx)(Cr.Provider,{value:m,children:(0,Tt.jsx)(Km,(0,St.Z)({ref:b,role:d,tabIndex:y,component:r,focusVisibleClassName:(0,xt.Z)(_.focusVisible,c),className:(0,xt.Z)(_.root,h)},g,{ownerState:v,classes:_}))})})),Ym=Xm,Qm=["className"],Jm=(0,It.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"flex-start"===i.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,St.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),ef=i.forwardRef((function(e,t){const n=(0,Dt.Z)({props:e,name:"MuiListItemIcon"}),{className:o}=n,r=(0,wt.Z)(n,Qm),s=i.useContext(Cr),a=(0,St.Z)({},n,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:i}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Lt.Z)(n,jm,i)})(a);return(0,Tt.jsx)(Jm,(0,St.Z)({className:(0,xt.Z)(l.root,o),ownerState:a,ref:t},r))})),tf=ef,nf=td,of=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function rf(e,t,i){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:i?null:e.firstChild}function sf(e,t,i){return e===t?i?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:i?null:e.lastChild}function af(e,t){if(void 0===t)return!0;let i=e.innerText;return void 0===i&&(i=e.textContent),i=i.trim().toLowerCase(),0!==i.length&&(t.repeating?i[0]===t.keys[0]:0===i.indexOf(t.keys.join("")))}function lf(e,t,i,n,o,r){let s=!1,a=o(e,t,!!t&&i);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&af(a,r)&&!t)return a.focus(),!0;a=o(e,a,i)}return!1}const cf=i.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:r=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu"}=e,h=(0,wt.Z)(e,of),g=i.useRef(null),p=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Ir.Z)((()=>{o&&g.current.focus()}),[o]),i.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const i=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&i){const i=`${nf((0,xs.Z)(e))}px`;g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=i,g.current.style.width=`calc(100% + ${i})`}return g.current}})),[]);const m=(0,Nn.Z)(g,t);let f=-1;i.Children.forEach(s,((e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===f)&&(f=t),f===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=s.length&&(f=-1))):f===t&&(f+=1,f>=s.length&&(f=-1))}));const v=i.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),i.cloneElement(e,t)}return e}));return(0,Tt.jsx)(kr,(0,St.Z)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,i=e.key,n=(0,xs.Z)(t).activeElement;if("ArrowDown"===i)e.preventDefault(),lf(t,n,c,l,rf);else if("ArrowUp"===i)e.preventDefault(),lf(t,n,c,l,sf);else if("Home"===i)e.preventDefault(),lf(t,null,c,l,rf);else if("End"===i)e.preventDefault(),lf(t,null,c,l,sf);else if(1===i.length){const o=p.current,r=i.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=n&&!o.repeating&&af(n,o);o.previousKeyMatched&&(a||lf(t,n,!1,l,rf,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},h,{children:v}))})),df=cf;function uf(){return uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},uf.apply(this,arguments)}const hf="More-icon",gf=(0,It.ZP)(Ud)((({theme:e})=>({pointerEvents:"none",[`& .${hf} *`]:{color:e.palette.text.primary}})));function pf({item:e,autoFocus:t,onActionClick:n=(()=>{})}){const{hidden:o,disabled:r,hasSvgIconShape:s}=Pm(e);return o?null:i.createElement(Ym,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:r,tabindex:"0"},s&&i.createElement(tf,{className:hf},br(e.getSvgIconShape())),i.createElement(zo,{noWrap:!0},e.label))}const mf=i.forwardRef((({actions:e=[],show:t=!0,alignTo:n,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=(()=>{})},a)=>{const l=e.length>0,c=e.findIndex((e=>!e.disabled));return l&&i.createElement(gf,uf({},o,{onClose:s,ref:a,open:t,anchorEl:n.current,getContentAnchorEl:null,container:n.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:{pointerEvents:"auto",maxWidth:"250px",...r}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),i.createElement(df,{id:"moreMenuList"},e.map(((e,t)=>i.createElement(pf,{key:t,item:e,autoFocus:t===c,onActionClick:s})))))})),ff="ActionsToolbar",vf={item:`${ff}-item`,itemSpacing:`${ff}-itemSpacing`},_f=(0,It.ZP)(Ud)((({theme:e})=>({[`& .${vf.itemSpacing}`]:{padding:e.spacing(0,.25)}}))),bf=i.forwardRef((({className:e,ariaExpanded:t=!1,actions:n=[],addAnchor:o=!1,isRtl:r=!1},s)=>n.length>0?i.createElement(Mo,{item:!0,container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e},n.map(((e,n)=>i.createElement(Mo,{item:!0,key:e.key,className:`${vf.itemSpacing} ${vf.item}`},i.createElement(Wm,{ariaExpanded:t,key:e.key,item:e,ref:0===n?s:null,addAnchor:o}))))):null)),yf={pointerEvents:"none"},Cf={vertical:"bottom",horizontal:"right"},wf=function({show:e=!0,actions:t=[],maxItems:n=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,direction:c="ltr",autoConfirm:d=!1}){const u=function({api:e,onConfirm:t=(()=>{}),onCancel:n=(()=>{}),onKeyDeactivate:o=(()=>{})}){const{translator:r}=(0,i.useContext)(cc);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(),action:()=>e.clear(),getSvgIconShape:zm},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(),action:()=>{n(),e.cancel()},keyboardAction:()=>{o(),n(),e.cancel()},getSvgIconShape:Vm},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(),action:()=>{t(),e.confirm()},keyboardAction:()=>{o(),t(),e.confirm()},getSvgIconShape:iu}]}(o),{translator:h,keyboardNavigation:g}=(0,i.useContext)(cc),[p,m]=(0,i.useState)(!1),f={vertical:12,horizontal:(s.anchorEl?.clientWidth??0)-7},v=(0,i.useRef)(),_=(0,i.useRef)(),b=ei(),y=(0,i.useMemo)((()=>({margin:b.spacing(.5,0)}))),C=e=>{const t=v.current||l;if(!t)return null;const i=t.querySelectorAll("button:not(.Mui-disabled)");return i[e?i.length-1:0]},w=(0,i.useMemo)((()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:i,selections:n}){return o=>{const{target:r,nativeEvent:s}=o,{keyCode:a}=s;switch(a){case Wh.ARROW_LEFT:case Wh.ARROW_DOWN:case Wh.ARROW_RIGHT:case Wh.ARROW_UP:if(r.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),i=t?.querySelectorAll(".njs-cell-action");return Array.from(i).indexOf(e)})(r);(e=>{const t=document.querySelector("#actions-toolbar"),i=t?.querySelectorAll(".njs-cell-action");i.length&&i[Math.min(Math.max(0,e),i.length-1)].focus()})([Wh.ARROW_LEFT,Wh.ARROW_DOWN].includes(a)?e-1:e+1)}o.stopPropagation(),o.preventDefault();break;case Wh.SPACE:o.preventDefault();break;case Wh.TAB:e&&t?.refocusContent&&(o.shiftKey&&i(!1)===o.target||!o.shiftKey&&i(!0)===o.target)&&(o.preventDefault(),o.stopPropagation(),t.refocusContent());break;case Wh.ESCAPE:n&&(n.onCancel(),n.api.cancel(),o.preventDefault(),o.stopPropagation())}}}({keyboardNavigation:g,focusHandler:a,getEnabledButton:C,selections:o})),[g,a,C,o]);if((0,i.useEffect)((()=>()=>{m(!1)}),[s.show,e,o.show]),(0,i.useEffect)((()=>{a&&(a.on("focus_toolbar_first",(()=>{const e=C(!1);e&&e.focus()})),a.on("focus_toolbar_last",(()=>{const e=C(!0);e&&e.focus()})))}),[]),d)return;let S=r.enabled,x=r.actions;const L=r.alignTo||_,k=t.filter((e=>!e.hidden));if(k.length>n){const e=k.splice(-(k.length-n)-1);S=!0,x=[...e,...r.actions]}if(!o.show&&0===k.length)return null;const E={key:"more",label:h.get("Menu.More"),getSvgIconShape:Am,hidden:!1,active:p,enabled:()=>S,action:()=>m(!p)},D=k.length>0,I=x.length>0,N=D&&o.show||I&&o.show,R="rtl"===c,q=i.createElement(Mo,{ref:v,onKeyDown:w,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:R?"row-reverse":"row"}},D&&i.createElement(bf,{actions:k}),I&&i.createElement(bf,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:_,ariaExpanded:p,actions:[E],addAnchor:!0}),N&&i.createElement(Mo,{item:!0,className:vf.itemSpacing,style:y},i.createElement(Mm,{orientation:"vertical"})),o.show&&i.createElement(bf,{className:"actions-toolbar-default-actions",actions:u,isRtl:R}),p&&i.createElement(mf,{show:p,actions:x,alignTo:L,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{m(!1)}}));return s.show?i.createElement(_f,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:f,transformOrigin:Cf,hideBackdrop:!0,style:yf,slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:b.spacing(.5,.25)}}}},q):e&&q};function Sf(e){return(0,Rt.Z)("MuiInputAdornment",e)}const xf=(0,Nt.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Lf;const kf=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Ef=(0,It.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`position${(0,Gt.Z)(i.position)}`],!0===i.disablePointerEvents&&t.disablePointerEvents,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,St.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${xf.positionStart}&:not(.${xf.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Df=i.forwardRef((function(e,t){const n=(0,Dt.Z)({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=n,u=(0,wt.Z)(n,kf),h=Gs()||{};let g=d;d&&h.variant,h&&!g&&(g=h.variant);const p=(0,St.Z)({},n,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:i,hiddenLabel:n,position:o,size:r,variant:s}=e,a={root:["root",i&&"disablePointerEvents",o&&`position${(0,Gt.Z)(o)}`,s,n&&"hiddenLabel",r&&`size${(0,Gt.Z)(r)}`]};return(0,Lt.Z)(a,Sf,t)})(p);return(0,Tt.jsx)(Zs.Provider,{value:null,children:(0,Tt.jsx)(Ef,(0,St.Z)({as:s,ownerState:p,className:(0,xt.Z)(m.root,r),ref:t},u,{children:"string"!=typeof o||l?(0,Tt.jsxs)(i.Fragment,{children:["start"===c?Lf||(Lf=(0,Tt.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,Tt.jsx)(zo,{color:"text.secondary",children:o})}))})})),If=Df,Nf=e=>br((e=>({...e,shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e)),Rf="/qListObjectDef",qf="**",Tf=(0,It.ZP)(Ea,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((({theme:e,styles:t,dense:i,isRtl:n})=>{let o={};return i&&(o={fontSize:12,paddingLeft:e.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),{display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,paddingLeft:"9px",flexDirection:n?"row-reverse":"row","& fieldset":{borderColor:`${t.search.borderColor}`,borderWidth:"1px 0 1px 0",borderRadius:0},"& .MuiInputBase-root":{...t.search},"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:n?"right":"left"},"&.Mui-focused fieldset.OutlinedInput-notchedOutline":{borderColor:`${t.search.highlightBorderColor} !important`},...o}}));function Of({selections:e,selectionState:t,model:n,keyboard:o,dense:r=!1,visible:s=!0,autoFocus:a=!0,wildCardSearch:l=!1,searchEnabled:c,direction:d,hide:u,styles:h}){const{translator:g}=(0,i.useContext)(cc),[p,m]=(0,i.useState)(""),[f,v]=(0,i.useState)(!1),_=(0,i.useRef)(),{getStoreValue:b,setStoreValue:y}=Eg(n),C="rtl"===d,w=async()=>{if(e.isModal())try{await n.abortListObjectSearch(Rf)}finally{m("")}};(0,i.useEffect)((()=>{s||w()}),[s]),(0,i.useEffect)((()=>(e.on("deactivated",w),()=>{e.removeListener&&e.removeListener("deactivated",w)})),[]),(0,i.useEffect)((()=>{if(f&&_.current){const e=p.length-1;_.current.setSelectionRange(e,e),v(!1)}}),[f,_.current]),(0,i.useEffect)((()=>{y("inputText",p)}),[p]);function S(e){const t=e?.querySelector(".last-focused")||e?.querySelector('[role="row"]:first-child');t.setAttribute("tabIndex",0),t?.focus()}return s&&!1!==c?i.createElement(Tf,{styles:h,dense:r,isRtl:C,startAdornment:i.createElement(If,{position:"start"},i.createElement(Nf,{size:r?"small":"normal"})),className:"search",inputRef:_,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:p,onFocus:()=>{l&&(m(qf),v(!0)),e.isModal()||e.begin(["/qListObjectDef"])},onChange:async e=>(m(e.target.value),e.target.value.length?n.searchListObjectFor(Rf,e.target.value):w()),onKeyDown:async i=>{const{currentTarget:r}=i,s=r.closest(".listbox-container");switch(i.key){case"Enter":(async()=>{let i;await n.searchListObjectFor(Rf,p)&&p.length&&b("listCount")>0&&(i=n.acceptListObjectSearch(Rf,!0),e.selectionsMade=!0,t.clearItemStates(!1),m(""))})();break;case"Escape":S(s),e.isActive()&&e.cancel();break;case"Tab":i.shiftKey?o.focusSelection():(S(s),s?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!i.ctrlKey&&!i.metaKey)return;u&&(u(),S(s));break;default:return}i.preventDefault(),i.stopPropagation()},autoFocus:a,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}function Mf(e){return Object.keys(ul().prototype).forEach((t=>{e[t]=ul().prototype[t]})),ul().init(e),e}const Af=({appSelections:e,appModal:t,model:i})=>{let n,o=!1,r=!1;const s={id:i.id,setLayout(e){n=e},begin(e){const n=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",n),n.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:i,paths:e,accept:!0,objectSelections:s}))},clear(){return r=!1,this.emit("cleared"),n.qListObject?i.clearSelections("/qListObjectDef"):i.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 n=this.begin([t.params[0]]);if(!e.isModal())return!1;await n;const o=await i[t.method](...t.params);return r="resetMadeSelections"!==t.method,!!o||(i.resetMadeSelections(),!1)},canClear:()=>n&&n.qListObject&&n.qListObject.qDimensionInfo?!n.qListObject.qDimensionInfo.qLocked&&!n.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>n&&n.qListObject&&n.qListObject.qDimensionInfo?!n.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(n&&n.qListObject&&n.qListObject.qDimensionInfo&&n.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(s),goModal:e=>t.begin({model:i,paths:e,accept:!1,objectSelections:s}),noModal:(e=!1)=>t.end(e)};return Mf(s),s},Pf=({elements:e,objectSelections:t,options:i={}})=>{const n=function({elements:e,handleClickOutside:t}){return i=>{if(!document.contains(i.target))return;const n=e.map((e=>"string"==typeof e?document.querySelector(e):e?.current)).filter((e=>!!e&&!!document.contains(e)));n.length&&!n.some((e=>e.contains(i.target)))&&t(i)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",n),i?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",n),i?.onSelectionDeactivated?.()}}};function Ff(e,t,n,o){const r=Array.isArray(n)?n:[n],[s]=vc(e),[a]=Vc(t),[l]=gc(),c=l.get(e.id),[d,u]=(0,i.useState)();return(0,i.useEffect)((()=>{s&&t&&!d&&u(Af({appSelections:s,appModal:c,model:t}))}),[s,t]),(0,i.useEffect)((()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Pf({elements:r,objectSelections:d,options:o});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}}),[d]),(0,i.useEffect)((()=>{d&&d.setLayout(a)}),[d,a]),[d]}function Bf(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update({setPages:t,pages:i,isSingleSelect:n,selectDisabled:o,layout:r}){this.setPages=t;const s=this.lastRowCount===r.qListObject.qSize.qcy,a=this.lastApprMaxGlyphCount===r.qListObject.qDimensionInfo.qApprMaxGlyphCount;s&&a||(this.lastRowCount=r.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=r.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==i&&void 0!==i&&(e.enginePages=i??[],e.selectedInEngine=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return i=t.qState,!!Kd.includes(i)&&t.qElemNumber;var i})).filter((e=>!1!==e))));return Xd(t)}(i),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=n,e.selectDisabled=o,e.isDimCalculated=r?.qListObject?.qDimensionInfo?.qIsCalculated??!1},allowedToSelect:()=>!(e.selectDisabled()||e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:i,qState:n}=t;return e.useClientItemState(i)?e.itemStates[i]?"XS"===n?"XS":"S":"S"===n||"XS"===n?"A":n:n},updateItemNoEvents(t,i,n){const o=e.isSelected(t);o&&!i?e.itemStates[t]=!1:o||(n?.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages:t=>t.map((t=>{const i=t.qMatrix.map((t=>{const[i]=t,n=e.getState(i);return[{...i,qState:n},...t.slice(1)]}));return{...t,qMatrix:i}})),updateItem(t,i,n){e.updateItemNoEvents(t,i,n),e.triggerStateChanged()},updateItems(t,i,n){t.forEach((t=>{e.updateItemNoEvents(t,i,n)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}};return e}const Wf=(e,t,i=void 0)=>e?.[t]??i,Vf={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},zf=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Hf=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,jf=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,Uf=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,$f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Zf=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Gf}=Math,{round:Kf}=Math;class Xf{constructor(...e){let t,i,n,o,r,s,a,l,c,d,u,h,g=0,p=0,m=0,f=1;if(this._invalid=!1,e[0]instanceof Xf)g=e[0]._r,p=e[0]._g,m=e[0]._b,f=e[0]._a,this._invalid=e[0]._invalid;else if(e.length<3)if("string"==typeof e[0])if(h=e[0],u=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))g=parseInt(u[1],10),p=parseInt(u[2],10),m=parseInt(u[3],10);else if(u=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))g=parseInt(u[1],10),p=parseInt(u[2],10),m=parseInt(u[3],10),f=parseFloat(u[4]);else if(u=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))f=parseInt(u[1],10)/255,g=parseInt(u[2],10),p=parseInt(u[3],10),m=parseInt(u[4],10);else if(u=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))g=parseInt(u[1],16),p=parseInt(u[2],16),m=parseInt(u[3],16),f=1;else if(u=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))g=parseInt(u[1]+u[1],16),p=parseInt(u[2]+u[2],16),m=parseInt(u[3]+u[3],16),f=1;else if(u=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(t=parseFloat(u[1]),i=parseFloat(u[3]),o=parseFloat(u[5]),t%=360,i/=100,o/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,o=o<0?0:o>1?1:o,s=o<=.5?2*o*i:(2-2*o)*i,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=o-.5*s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Kf(255*g),p=Kf(255*p),m=Kf(255*m),f=1}else if(u=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(t=parseFloat(u[1]),i=parseFloat(u[3]),o=parseFloat(u[5]),f=parseFloat(u[7]),t%=360,i/=100,o/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,o=o<0?0:o>1?1:o,s=o<=.5?2*o*i:(2-2*o)*i,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=o-.5*s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Kf(255*g),p=Kf(255*p),m=Kf(255*m)}else if(u=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(t=parseFloat(u[1]),i=parseFloat(u[3]),r=parseFloat(u[5]),t%=360,i/=100,r/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,r=r<0?0:r>1?1:r,s=r*i,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=r-s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Kf(255*g),p=Kf(255*p),m=Kf(255*m),f=1}else Vf[h.toLowerCase()]?(n=h.toLowerCase(),g=Vf[n].r,p=Vf[n].g,m=Vf[n].b,f="number"==typeof Vf[n].a?Vf[n].a:1):this._invalid=!0;else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(f=(4278190080&e[0])>>>24,f/=255,g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):this._invalid=!0;else e.length>=3?(g=e[0],p=e[1],m=e[2],f=arguments.length>=4?e[3]:1):this._invalid=!0;Number.isNaN(+g+p+m+f)&&(this._invalid=!0),this._r=Gf(g),this._g=Gf(p),this._b=Gf(m),this._a=f,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=Xf.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Xf.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Xf.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Xf.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Xf.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Xf.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return`hsv(${e.h},${e.s},${e.v})`}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=Xf.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Xf.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),i=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),n=parseFloat(i[1]),o=parseFloat(i[3]);let r=parseFloat(i[5]);const s=parseFloat(i[7]);return r+=e,r=Math.max(0,Math.min(r,100)),`hsla(${n},${o},${r},${s})`}isEqual(e){return e instanceof Xf||(e=new Xf(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[Gf(this._r+(e._r-this._r)*t),Gf(this._g+(e._g-this._g)*t),Gf(this._b+(e._b-this._b)*t),Gf(this._a+(e._a-this._a)*t)].join(",")})`}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),i=this._g<126?1:1+this._g/512,n=this.shiftLuminance(20*(t*i<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Xf(n)}static toRGB(e){return e instanceof Xf?`rgb(${[e._r,e._g,e._b].join(",")})`:("string"==typeof e&&(e=Xf.toNumber(e)),`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`)}static toRGBA(e,t){return e instanceof Xf?`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`:("string"==typeof e&&(e=Xf.toNumber(e)),`rgba(${(16711680&e)>>16},${(65280&e)>>8},${255&e},${void 0!==t?t:e._a})`)}static toHex(e){let t,i,n;return e instanceof Xf?(t=e._r.toString(16),i=e._g.toString(16),n=e._b.toString(16),1===t.length&&(t=`0${t}`),1===i.length&&(i=`0${i}`),1===n.length&&(n=`0${n}`),`#${[t,i,n].join("")}`):("string"==typeof e&&(e=Xf.toNumber(e)),t=((16711680&e)>>16).toString(16),i=((65280&e)>>8).toString(16),n=(255&e).toString(16),1===t.length&&(t=`0${t}`),1===i.length&&(i=`0${i}`),1===n.length&&(n=`0${n}`),`#${t}${i}${n}`)}static toHSL(e,t){let i,n,o,r=0;"string"==typeof e&&(e=new Xf(e));const s=e._r/255,a=e._g/255,l=e._b/255,c=Math.max(s,a,l),d=Math.min(s,a,l);if(n=t?.21*s+.72*a+.07*l:(c+d)/2,c===d)i=0,r=0;else{switch(o=c-d,i=n>.5?o/(2-c-d):o/(c+d),c){case s:r=(a-l)/o+(a<l?6:0);break;case a:r=(l-s)/o+2;break;case l:r=(s-a)/o+4}r/=6}return`hsl(${360*r},${100*i},${100*n})`}static toHSLA(e,t){let i,n,o,r=0;"string"==typeof e&&(e=new Xf(e));const s=e._r/255,a=e._g/255,l=e._b/255,c=e._a,d=Math.max(s,a,l),u=Math.min(s,a,l);if(n=t?.21*s+.72*a+.07*l:(d+u)/2,d===u)i=0,r=0;else{switch(o=d-u,i=n>.5?o/(2-d-u):o/(d+u),d){case s:r=(a-l)/o+(a<l?6:0);break;case a:r=(l-s)/o+2;break;case l:r=(s-a)/o+4}r/=6}return`hsla(${360*r},${100*i},${100*n},${c})`}static toHSVComponents(e){let t,i,n=0;"string"==typeof e&&(e=new Xf(e));const o=e._r/255,r=e._g/255,s=e._b/255,a=Math.max(o,r,s),l=Math.min(o,r,s),c=a;if(a===l)t=0,n=0;else{switch(i=a-l,t=0===i?0:i/c,a){case o:n=(r-s)/i+(r<s?6:0);break;case r:n=(s-o)/i+2;break;case s:n=(o-r)/i+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}static toNumber(...e){if(1===e.length&&e[0]instanceof Xf)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,i,n=0,o=0,r=0;return 1===e.length&&"string"==typeof e[0]&&(i=e[0],(t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(i))?(n=parseInt(t[1],10),o=parseInt(t[2],10),r=parseInt(t[3],10)):(t=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(i))?(n=parseInt(t[1],16),o=parseInt(t[2],16),r=parseInt(t[3],16)):(t=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(i))&&(n=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),r=parseInt(t[3]+t[3],16))),(n<<16)+(o<<8)+r}static blend(e,t,i){const n=(16711680&(e=Xf.toNumber(e)))>>16,o=(65280&e)>>8,r=255&e;return(n+(((16711680&(t=Xf.toNumber(t)))>>16)-n)*i<<16)+(o+(((65280&t)>>8)-o)*i<<8)+(r+((255&t)-r)*i)}static getBlend(e,t,i){const n=e._r+(t._r-e._r)*i,o=e._g+(t._g-e._g)*i,r=e._b+(t._b-e._b)*i,s=e._a+(t._a-e._a)*i;return new Xf(n,o,r,s)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(zf.test(e)||Hf.test(e)||jf.test(e)||Uf.test(e)||$f.test(e)||Zf.test(e)||Vf[e.toLowerCase()])}static getBestContrast(e,t,i){const n=e.getLuminance();return Math.abs(n-t.getLuminance())>Math.abs(n-i.getLuminance())?t:i}static getContrast(e,t){if(!e||!t)return;const i=e.getLuminance()/100,n=t.getLuminance()/100;return i>n?(i+.05)/(n+.05):(n+.05)/(i+.05)}static isDark(...e){return new Xf(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const Yf=Xf,Qf=/,(?![^(]*\))/,Jf=/\s(?![^(]*\))/,ev=/^[0-9]+[a-zA-Z%]+?$/,tv=["none","inset","initial","inherit"],iv=e=>{if(!e)return;const t=e.split(Jf).filter((e=>!tv.includes(e.toLowerCase()))).at(-1);var i;return!t||"0"===(i=t)||ev.test(i)||tv.includes(t.toLowerCase())?void 0:t},nv=e=>e?e.split(Qf).map((e=>e.trim())):[];function ov(e,t,i,n){return i&&n?i.getStyle(`object.${n}`,e,t):i?i.getStyle("",e,t):void 0}const rv=!0;function sv(e,t,i,n,o){return e&&n?"none"!==e.color?n.getColorPickerColor(e,rv):void 0:ov(t,i,n,o)}const av={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},lv={"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"};function cv(e,t){const i=e?.bgImage;if(i){let n="";if("media"===i.mode||"media"===e.useImage){const e=i?.mediaUrl,{qUrl:o}=e?.qStaticContentUrl||{};n=o?decodeURIComponent(o):void 0,n=function(e,t){return t?function(e){let t,i,n,o;return e?.session?.config?(t=e.session.config,i=new URL(t.url),o="wss:"===i.protocol,n=o?"https://":"http://",n+i.host):""}(e)+t:void 0}(t,n)}"expression"===i.mode&&(n=i.expressionUrl?decodeURIComponent(i.expressionUrl):void 0);const o=function(e){let t="center center";return e?.bgImage?.position&&(t=lv[e.bgImage.position]),t}(e),r=function(e){let t=av.originalSize;const i=e?.bgImage?.sizing;return i&&(t=av[i]),t}(e);return n?{url:n,pos:o,size:r}:void 0}}function dv(e,t,i){const n=e?.bgColor;return n&&t&&n.useExpression?t.validateColor(n.colorExpression):sv(n?.color,"","backgroundColor",t,i)}function uv(e,t,i){const n=ov("shadow","boxShadow",t,i);return((e,t,i)=>{if(e&&tv.includes(e.toLowerCase()))return e.toLowerCase();const n=nv(e);if(1!==n.length)return e;let o=i;if(!o){const i=nv(t);if(1!==i.length)return e;o=iv(i[0])}if(!o)return e;const r=iv(n[0]);return r?e.replace(r,o):`${e} ${o}`})(e?.shadow?.boxShadow||n,n,sv(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,i))}function hv(e,t,i,n){const o=e?.title?.[t]||{},r=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(o.fontStyle,t);return{fontFamily:o.fontFamily||i.getStyle(`object.${n}`,`title.${t}`,"fontFamily"),color:o.color&&"none"!==o.color.color?i.getColorPickerColor(o.color,!0):i.getStyle(`object.${n}`,t,"color"),fontWeight:r.includes("bold")?"bold":"normal",fontStyle:r.includes("italic")?"italic":"normal",textDecoration:r.includes("underline")?"underline":"initial"}}const gv="#FFF",pv="#000",mv=1.5,fv=3,vv=(e,t)=>{let i=!1;const n=new Yf(e),o=new Yf(t);if(!(o.isInvalid()||n.isInvalid()||o.getAlpha()<1||n.getAlpha()<1)){try{i=Yf.getContrast(n,o)}catch(e){i=void 0}return i}};function _v(e,t=void 0,i=pv,n=gv){const o=new Yf(n),r=new Yf(e),s=new Yf(t);if(r.isInvalid()||s.isInvalid()||r.getAlpha()<1||s.getAlpha()<1)return t;const a=vv(o,r),l=vv(s,r),c=a>l||a>fv;let d;return d=t&&l>mv&&!c?t:c?n:i,d}const bv=["theme","selections"];function yv({app:e,themeApi:t,theme:i,components:n=[],checkboxes:o=!1}){const r=function(e=[]){const t={};return e.forEach((e=>{const i=e?.key;bv.includes(i)&&(t[i]=e)})),t}(n),s=(e,i)=>t.getStyle("object.listBox",e,i),a=function({theme:e,getListboxStyle:t,overrides:i,checkboxes:n}){const o=i.theme?.content?.fontColor?.color,r=o||t("content","color")||e.palette?.text.primary,s=!n&&(i.theme?.content?.useContrastColor??!0),a=i.selections?.colors||{},l=a.selected?.color||e.palette?.selected.main||"#009845",c=a.alternative?.color||e.palette?.selected.alternative||"#E4E4E4",d=a.excluded?.color||e.palette?.selected.excluded||"#A9A9A9",u=a.selectedExcluded?.color||e.palette?.selected.selectedExcluded||"#A9A9A9",h=a.possible?.color||t("","backgroundColor")||e.palette?.selected.possible||"#FFFFFF";let g=r||e.palette?.selected.selectedContrastText,p=r||e.palette?.selected.alternativeContrastText,m=r||e.palette?.selected.excludedContrastText,f=r||e.palette?.selected.selectedExcludedContrastText,v=r||e.palette?.selected.possibleContrastText;return s&&(g=_v(l,r),p=_v(c,r),m=_v(d,r),f=_v(u,r),v=_v(h,r)),{selected:l,alternative:c,excluded:d,selectedExcluded:u,possible:h,selectedContrast:g,alternativeContrast:p,excludedContrast:m,selectedExcludedContrast:f,possibleContrast:v}}({theme:i,getListboxStyle:s,overrides:r,checkboxes:o}),l=r.theme||{},c=l.header?.fontColor?.color||s("title.main","color"),d=function({themeApi:e,themeOverrides:t}){let i;const n=t?.background;return n?(i=n?.useExpression?dv({bgColor:n},e,"listBox"):e.getColorPickerColor(n,!0)?.color,i):i}({themeApi:t,themeOverrides:l}),u=l.background?.image?cv({bgImage:l.background.image},e):void 0,h=function(e){return _v("#fff",e("content","color"))}(s),g=l.header?.fontStyle||{},p=l.content?.fontStyle||{},m=(e,t,i)=>!0===e&&t||!1===e&&i||void 0;return{background:{backgroundColor:d||s("","backgroundColor")||i.palette.background.default,backgroundImage:u?.url&&!u?.url.startsWith("url(")?`url('${u.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:u?.size,backgroundPosition:u?.pos},header:{color:c,fontSize:l.header?.fontSize||s("title.main","fontSize"),fontFamily:l.header?.fontFamily||s("title.main","fontFamily"),fontWeight:m(g.bold,"bold","normal")||s("title.main","fontWeight")||"bold",textDecoration:g.underline?"underline":"initial",fontStyle:m(g.italic,"italic","normal")||s("title.main","fontStyle")||"initial"},content:{backgroundColor:o?void 0:a.possible,color:a.possibleContrast||s("content","color"),fontSize:l.content?.fontSize||s("content","fontSize"),fontFamily:l.content?.fontFamily||s("content","fontFamily"),fontWeight:m(p.bold,"bold","normal")||s("content","fontWeight")||"normal",textDecoration:p.underline?"underline":"initial",fontStyle:m(p.italic,"italic","normal")||s("content","fontStyle")||"initial"},search:{color:h,borderColor:i.palette.divider,highlightBorderColor:i.palette.primary.main,backgroundColor:"rgba(255, 255, 255, 0.7)"},selections:a}}function Cv({alignTo:e,anchorOrigin:t={vertical:"bottom",horizontal:"center"},transformOrigin:n={vertical:"top",horizontal:"center"},show:o,close:r,app:s,fieldName:a,stateName:l="$",autoFocus:c,components:d,checkboxes:u}){const h=Boolean(a?.qLibraryId),g=o&&Boolean(e.current),[p,m]=(0,i.useState)(0),f=ei(),v=(0,i.useRef)(),[_]=Mc({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:h?void 0:[a]},qLibraryId:h?a.qLibraryId:void 0}},s,a,l),b=(0,i.useCallback)((()=>{_.lock("/qListObjectDef")}),[_]),y=(0,i.useCallback)((()=>{_.unlock("/qListObjectDef")}),[_]),{translator:C,themeApi:w}=(0,i.useContext)(cc),S=(0,i.useRef)(),x=(0,i.useRef)(),[L]=Ff(s,_,x),[k]=Vc(_),[E]=(0,i.useState)((()=>Bf())),{checkboxes:D=u}=k||{},I=yv({themeApi:w,theme:f,components:d,checkboxes:D});if((0,i.useEffect)((()=>{L&&g&&(L.isModal(_)||L.goModal("/qListObjectDef"))}),[L,g]),!_||!k||!C)return null;const N=!0===k.qListObject.qDimensionInfo.qLocked,R=(e,t)=>{const i="escapeKeyDown"!==t;L.noModal(i),r()},q=Dm({layout:k,model:_,translator:C,selectionState:E}),T=function(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return Wf(t,"qSelected",0)+Wf(t,"qSelectedExcluded",0)+Wf(t,"qLocked",0)+Wf(t,"qLockedExcluded",0)>0}(k);return i.createElement(Ud,{open:g,onClose:R,anchorEl:e.current,anchorOrigin:t,transformOrigin:n,PaperProps:{style:{minWidth:"250px"}}},i.createElement(Mo,{container:!0,direction:"column",gap:0,ref:x},i.createElement(Mo,{item:!0,container:!0,style:{padding:f.spacing(1)}},i.createElement(Mo,{item:!0},N?i.createElement(So,{onClick:y,disabled:!N,size:"large"},i.createElement(jc,{title:C.get("Listbox.Unlock")})):i.createElement(So,{onClick:b,disabled:!T,size:"large"},i.createElement(Uc,{title:C.get("Listbox.Lock")}))),i.createElement(Mo,{item:!0,xs:!0}),i.createElement(Mo,{item:!0},i.createElement(wf,{more:{enabled:!N,actions:q,alignTo:S,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:L,onConfirm:R,onCancel:()=>R(0,"escapeKeyDown")}}))),i.createElement(Mo,{item:!0,xs:!0},i.createElement("div",{ref:S}),i.createElement(Mo,{item:!0,ref:v},i.createElement(Of,{styles:I,visible:!0,model:_,listCount:p,selections:L,selectionState:E,keyboard:{enabled:!1},autoFocus:c??!0})),i.createElement(Sm,{model:_,app:s,layout:k,selections:L,selectionState:E,direction:"ltr",onSetListCount:e=>m(e),onCtrlF:()=>{const e=v.current.querySelector("input");e?.focus()},styles:I}))))}function wv({field:e,api:t,stateIx:n=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=(()=>{})}){const{translator:a}=(0,i.useContext)(cc),l=r||(0,i.useRef)(),c=ei(),[d,u]=(0,i.useState)(!1),h=()=>{u(!1),s()},g=e.selections[n];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 y="";g.qTotal===_&&g.qTotal>1?y=a.get("CurrentSelections.All"):_>1&&g.qTotal?y=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(y=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[n]&&(y=`${e.states[n]}: ${y}`);const C=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:v}];C.forEach(((e,t)=>{e.offset=t?C[t-1].offset+C[t-1].ratio:0}));let w=null,S=null,x=null,L=null;return r||(w=i.createElement(Mo,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},i.createElement(zo,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},g.qField),i.createElement(zo,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},y)),g.qLocked?S=i.createElement(Mo,{item:!0},i.createElement(So,{size:"large"},i.createElement(jc,null))):g.qOneAndOnlyOne||(S=i.createElement(Mo,{item:!0},i.createElement(So,{title:a.get("Selection.Clear"),onClick:i=>{i.stopPropagation(),t.clearField(g.qField,e.states[n])},size:"large"},i.createElement(yr,null)))),x=i.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===b&&C.map((e=>i.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),L=i.createElement(Mo,{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&&i.createElement(Cv,{alignTo:l,show:d,close:h,app:t.model,fieldName:g.qField,stateName:e.states[n]}))),r?i.createElement(Cv,{alignTo:l,show:!0,close:h,app:t.model,fieldName:g.qField,stateName:e.states[n]}):L}const Sv=e=>{const t=i.useRef({});return i.useEffect((()=>{t.current=e})),t.current};function xv(e){return(0,Rt.Z)("MuiBadge",e)}const Lv=(0,Nt.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"]),kv=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Ev=(0,It.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Dv=(0,It.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.badge,t[i.variant],t[`anchorOrigin${(0,Gt.Z)(i.anchorOrigin.vertical)}${(0,Gt.Z)(i.anchorOrigin.horizontal)}${(0,Gt.Z)(i.overlap)}`],"default"!==i.color&&t[`color${(0,Gt.Z)(i.color)}`],i.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,St.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.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%",[`&.${Lv.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),Iv=i.forwardRef((function(e,t){var i,n,o,r,s,a;const l=(0,Dt.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:u,components:h={},componentsProps:g={},children:p,overlap:m="rectangular",color:f="default",invisible:v=!1,max:_=99,badgeContent:b,slots:y,slotProps:C,showZero:w=!1,variant:S="standard"}=l,x=(0,wt.Z)(l,kv),{badgeContent:L,invisible:k,max:E,displayValue:D}=function(e){const{badgeContent:t,invisible:i=!1,max:n=99,showZero:o=!1}=e,r=Sv({badgeContent:t,max:n});let s=i;!1!==i||0!==t||o||(s=!0);const{badgeContent:a,max:l=n}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:_,invisible:v,badgeContent:b,showZero:w}),I=Sv({anchorOrigin:c,color:f,overlap:m,variant:S,badgeContent:b}),N=k||null==L&&"dot"!==S,{color:R=f,overlap:q=m,anchorOrigin:T=c,variant:O=S}=N?I:l,M="dot"!==O?D:void 0,A=(0,St.Z)({},l,{badgeContent:L,invisible:N,max:E,displayValue:M,showZero:w,anchorOrigin:T,color:R,overlap:q,variant:O}),P=(e=>{const{color:t,anchorOrigin:i,invisible:n,overlap:o,variant:r,classes:s={}}=e,a={root:["root"],badge:["badge",r,n&&"invisible",`anchorOrigin${(0,Gt.Z)(i.vertical)}${(0,Gt.Z)(i.horizontal)}`,`anchorOrigin${(0,Gt.Z)(i.vertical)}${(0,Gt.Z)(i.horizontal)}${(0,Gt.Z)(o)}`,`overlap${(0,Gt.Z)(o)}`,"default"!==t&&`color${(0,Gt.Z)(t)}`]};return(0,Lt.Z)(a,xv,s)})(A),F=null!=(i=null!=(n=null==y?void 0:y.root)?n:h.Root)?i:Ev,B=null!=(o=null!=(r=null==y?void 0:y.badge)?r:h.Badge)?o:Dv,W=null!=(s=null==C?void 0:C.root)?s:g.root,V=null!=(a=null==C?void 0:C.badge)?a:g.badge,z=rs({elementType:F,externalSlotProps:W,externalForwardedProps:x,additionalProps:{ref:t,as:u},ownerState:A,className:(0,xt.Z)(null==W?void 0:W.className,P.root,d)}),H=rs({elementType:B,externalSlotProps:V,ownerState:A,className:(0,xt.Z)(P.badge,null==V?void 0:V.className)});return(0,Tt.jsxs)(F,(0,St.Z)({},z,{children:[p,(0,Tt.jsx)(B,(0,St.Z)({},H,{children:M}))]}))})),Nv=Iv,Rv=e=>br((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)),qv={item:"MultiState-item"},Tv=(0,It.ZP)(Mo)((({theme:e})=>({[`&.${qv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}})));function Ov({field:e,api:t,moreAlignTo:n=null,onClose:o=(()=>{})}){const[r,s]=(0,i.useState)(!!n),[a,l]=(0,i.useState)(-1),[c,d]=(0,i.useState)(n?n.current:null),u=n||(0,i.useRef)(),{translator:h}=(0,i.useContext)(cc),g=h.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;n||(m=i.createElement(i.Fragment,null,i.createElement(Mo,{item:!0,xs:!0,zeroMinWidth:!0},i.createElement(Nv,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},i.createElement(zo,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.name))),i.createElement(Mo,{item:!0},i.createElement("div",{style:{width:"12px"}})),i.createElement(Mo,{item:!0},i.createElement(So,{size:"large"},i.createElement(Rv,null)))));const f=i.createElement(kr,{dense:!0},i.createElement(Hr,{title:g,onClick:()=>{e.states.forEach((i=>t.clearField(e.name,i)))}},i.createElement(Pa,{variant:"contained",fullWidth:!0},g)),e.states.map(((n,o)=>i.createElement(Hr,{key:o,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},i.createElement(Vi,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},i.createElement(wv,{field:e,api:t,stateIx:o,skipHandleShowListBoxPopover:!0})))))),v=i.createElement(Ud,{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),_=n?v:i.createElement(Tv,{container:!0,gap:0,className:qv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),u.current=e.currentTarget,s(!r))}},m,r&&v,a>-1&&i.createElement(Cv,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return n&&a>-1?i.createElement(Cv,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const Mv="More",Av={item:`${Mv}-item`,badge:`${Mv}-badge`},Pv=(0,It.ZP)(Mo)((({theme:e})=>({[`&.${Av.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${Av.badge}`]:{padding:e.spacing(0,1)}})));function Fv({items:e=[],api:t}){const n=ei(),[o,r]=(0,i.useState)(!1),[s,a]=(0,i.useState)(-1),[l,c]=(0,i.useState)(null),d=(0,i.useRef)(),u=()=>{a(-1)};let h=null;return s>-1&&(h=e[s].states.length>1?i.createElement(Ov,{field:e[s],api:t,moreAlignTo:d,onClose:u}):i.createElement(wv,{field:e[s],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:u})),i.createElement(Pv,{container:!0,gap:0,className:Av.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},i.createElement(Mo,{item:!0},i.createElement(Vi,{borderRadius:n.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:n.palette.selected.main,color:n.palette.selected.mainContrastText}},i.createElement(zo,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),i.createElement(Mo,{item:!0},i.createElement(So,{size:"large"},i.createElement(Rv,null))),o&&i.createElement(Ud,{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"}}},i.createElement(kr,{dense:!0},e.map(((e,n)=>i.createElement(Hr,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,n)},i.createElement(Vi,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?i.createElement(Ov,{field:e,api:t}):i.createElement(wv,{field:e,api:t}))))))),h)}const Bv=120,Wv=72;function Vv(e,t,i="$"){e.qSelections.forEach((e=>{const n=e.qField,o=t[n]=t[n]||{name:n,states:[],selections:[]};-1===o.states.indexOf(i)&&(o.states.push(i),o.selections.push(e))}))}function zv({api:e,app:t}){const n=ei(),[o]=Pc(t),[r]=Vc(o),[s,a]=(0,i.useState)({items:[],more:[]}),[l]=mc(),[c,d]=Hc(),[u,h]=(0,i.useState)(0);return(0,i.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-Wv,i=Math.floor(t/Bv);h(i)}),[d]),(0,i.useEffect)((()=>{if(!(t&&o&&r&&u))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&Vv(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>Vv(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(r);a((i=>{const n=e;if((()=>{const{model:e}=l.get(t.id)||{};return"njsListbox"===e?.genericType})()&&n.length+1===i.items.length){const e=i.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:t}=e.selections[0];e.selections=[{qField:t}];const o=i.items.indexOf(e);n.splice(o,0,e)}let o=[];return u<n.length&&(o=n.splice(u-n.length)),{items:n,more:o}}))}),[t,o,r,e.isInModal(),u]),i.createElement(Mo,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map((t=>i.createElement(Mo,{item:!0,key:`${t.states.join("::")}::${t.name}`,style:{position:"relative",maxWidth:"240px",minWidth:`${Bv}px`,background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`}},t.states.length>1?i.createElement(Ov,{field:t,api:e}):i.createElement(wv,{field:t,api:e})))),s.more.length>0&&i.createElement(Mo,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:`${Wv}px`,background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`}},i.createElement(Fv,{items:s.more,api:e})))}const Hv=e=>br((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)),jv=e=>br((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)),Uv=(e,t,i)=>{const n=[...i.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(i.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(n)}],!0)};function $v({api:e,app:t}){const{translator:n}=(0,i.useContext)(cc),[o]=function(e){const[t]=Pc(e),[n]=Vc(t),[o]=zc(e),[r,s]=(0,i.useState)(null);return(0,i.useEffect)((()=>{o&&t&&n&&Uv(t,n,o)}),[o,t,n]),(0,i.useEffect)((()=>{if(!n)return;let e=!1,t=!1,i=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,i=i||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:i})}),[n]),[r,t,n]}(t);return i.createElement(Mo,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},i.createElement(Mo,{item:!0},i.createElement(So,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:n.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},i.createElement(Hv,null))),i.createElement(Mo,{item:!0},i.createElement(So,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:n.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},i.createElement(jv,null))),i.createElement(Mo,{item:!0},i.createElement(So,{disabled:!o||!o.canClear,title:n.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},i.createElement(Hm,null))))}const Zv=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Gv([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function Kv(){return Zv.map(Gv).join("")}function Xv({app:e}){const t=ei(),[n]=vc(e);return n?i.createElement(Mo,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"}},i.createElement(Mo,{item:!0,style:{borderRight:`1px solid ${t.palette.divider}`}},i.createElement($v,{api:n,app:e})),i.createElement(Mo,{item:!0,xs:!0,style:{backgroundColor:t.palette.background.darker,overflow:"hidden"}},i.createElement(zv,{api:n,app:e}))):null}let Yv;Yv="undefined"!=typeof window?window:"undefined"!=typeof self?self:s.g;let Qv=null,Jv=null;const e_=Yv.clearTimeout,t_=Yv.setTimeout,i_=Yv.cancelAnimationFrame||Yv.mozCancelAnimationFrame||Yv.webkitCancelAnimationFrame,n_=Yv.requestAnimationFrame||Yv.mozRequestAnimationFrame||Yv.webkitRequestAnimationFrame;null==i_||null==n_?(Qv=e_,Jv=function(e){return t_(e,20)}):(Qv=function([e,t]){i_(e),e_(t)},Jv=function(e){const t=n_((function(){e_(i),e()})),i=t_((function(){i_(t),e()}),20);return[t,i]});class o_ extends i.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:i}=this.props;if(this._parentNode){var n,o,r,s;const a=window.getComputedStyle(this._parentNode)||{},l=parseFloat(null!==(n=a.paddingLeft)&&void 0!==n?n:"0"),c=parseFloat(null!==(o=a.paddingRight)&&void 0!==o?o:"0"),d=parseFloat(null!==(r=a.paddingTop)&&void 0!==r?r:"0"),u=parseFloat(null!==(s=a.paddingBottom)&&void 0!==s?s:"0"),h=this._parentNode.getBoundingClientRect(),g=h.height-d-u,p=h.width-l-c,m=this._parentNode.offsetHeight-d-u,f=this._parentNode.offsetWidth-l-c;(e||this.state.height===m&&this.state.scaledHeight===g)&&(t||this.state.width===f&&this.state.scaledWidth===p)||(this.setState({height:m,width:f,scaledHeight:g,scaledWidth:p}),"function"==typeof i&&i({height:m,scaledHeight:g,scaledWidth:p,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=function(e){let t,i,n,o,r,s,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){const t=e.__resizeTriggers__,i=t.firstElementChild,n=t.lastElementChild,o=i.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,o.style.width=i.offsetWidth+1+"px",o.style.height=i.offsetHeight+1+"px",i.scrollLeft=i.scrollWidth,i.scrollTop=i.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)return;const t=this;s(this),this.__resizeRAF__&&Qv(this.__resizeRAF__),this.__resizeRAF__=Jv((function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(i){i.call(t,e)})))}))};let e=!1,l="";n="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),u="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let i=0;i<c.length;i++)if(void 0!==t.style[c[i]+"AnimationName"]){u=c[i],l="-"+u.toLowerCase()+"-",n=d[i],e=!0;break}}i="resizeanim",t="@"+l+"keyframes "+i+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+i+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){const l=r.ownerDocument,c=Yv.getComputedStyle(r);c&&"static"===c.position&&(r.style.position="relative"),function(i){if(!i.getElementById("detectElementResize")){const n=(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=i.head||i.getElementsByTagName("head")[0],s=i.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(i.createTextNode(n)),r.appendChild(s)}}(l),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const u=l.createElement("div");u.className="contract-trigger",r.__resizeTriggers__.appendChild(d),r.__resizeTriggers__.appendChild(u),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),n&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===i&&s(r)},r.__resizeTriggers__.addEventListener(n,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(n,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()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o=!1,disableWidth:r=!1,nonce:s,onResize:a,style:l={},tagName:c="div",...d}=this.props,{height:u,scaledHeight:h,scaledWidth:g,width:p}=this.state,m={overflow:"visible"},f={};let v=!1;return o||(0===u&&(v=!0),m.height=0,f.height=u,f.scaledHeight=h),r||(0===p&&(v=!0),m.width=0,f.width=p,f.scaledWidth=g),(0,i.createElement)(c,{ref:this._setRef,style:{...m,...l},...d},!v&&e(f))}}const r_=e=>br((e=>({...e,shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function s_(e){e?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function a_(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")}function l_({keyboard:e,hovering:t,updateKeyScroll:i,containerRef:n,currentScrollIndex:o,isModal:r,constraints:s}){return{handleKeyDown:t=>{const{keyCode:i,shiftKey:o=!1}=t.nativeEvent,s=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=r();switch(i){case Wh.TAB:if(l)o?Hh(a)||zh(a):zh(a)||Hh(a);else{if(!o)break;e.blur(!0)}s();break;case Wh.ENTER:case Wh.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),s();break;case Wh.ESCAPE:(t=>{const{currentTarget:i,target:o}=t,r=o.classList.contains("listbox-container"),s=a_(i.closest(".listbox-container")),a=1===s?.querySelectorAll(".listbox-container").length;if(r||a)e.blur(!0);else{s_(n.current),i.classList.add("last-focused"),e.blur();const t=i.closest(".listbox-container");t.setAttribute("tabIndex",-1),t?.focus()}})(t)}},handleOnMouseEnter:()=>{(()=>{const e=s?.select||s?.active,t=r();return e||t})()||(t.current=!0)},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current)return;const{keyCode:n,ctrlKey:r=!1,shiftKey:s=!1}=e;switch(n){case Wh.ARROW_UP:i({up:1});break;case Wh.ARROW_DOWN:i({down:1});break;case Wh.PAGE_UP:i({up:o.stop-o.start});break;case Wh.PAGE_DOWN:i({down:o.stop-o.start});break;case Wh.HOME:i({scrollPosition:r&&s?"overflowStart":"start"});break;case Wh.END:i({scrollPosition:r&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}function c_({isDetached:e,showToolbar:t,containerRef:i,isLocked:n,listboxSelectionToolbarItems:o,selections:r,keyboard:s}){return{show:t&&!e,popover:{show:t&&e,anchorEl:i.current},more:{enabled:!n,actions:o,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:t,api:r,onConfirm:()=>{s?.focus()},onCancel:()=>{s?.focus()}}}}const d_=(0,It.ZP)("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function u_({text:e}){const{translator:t}=(0,i.useContext)(cc);return i.createElement(d_,null,t.get(e))}function h_(){return h_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},h_.apply(this,arguments)}const g_="ListBoxInline",p_={listBoxHeader:`${g_}-listBoxHeader`,screenReaderOnly:`${g_}-screenReaderOnly`,listboxWrapper:`${g_}-listboxWrapper`},m_=(0,It.ZP)(Mo,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((({theme:e,containerPadding:t,isGridMode:i,styles:n})=>({...n.background,[`& .${p_.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${p_.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${p_.listboxWrapper}`]:{padding:t},"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus ::-webkit-scrollbar-track":{boxShadow:i?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}))),f_=(0,It.ZP)(Mo,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((({styles:e,isRtl:t})=>({flexDirection:t?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center",...e.header,"& *":{color:e.header.color}}))),v_=(0,It.ZP)(zo)((({styles:e})=>({...e.header,paddingRight:"1px"})));function __({options:e,layout:t}){const{app:n,direction:o,frequencyMode:r,checkboxes:s,search:a=!0,focusSearch:l=!1,rangeSelect:c=!0,model:d,selections:u,update:h,fetchStart:g,selectDisabled:p=(()=>!1),postProcessPages:m,calculatePagesHeight:f,showGray:v=!0,scrollState:_,renderedCallback:b,toolbar:y=!0,isPopover:C=!1,components:w}=e,S=ei(),x=(0,i.useCallback)((()=>{d.unlock("/qListObjectDef")}),[d]),{translator:L,keyboardNavigation:k,themeApi:E,constraints:D}=(0,i.useContext)(cc),{checkboxes:I=s}=t||{},N=yv({app:n,themeApi:E,theme:S,components:w,checkboxes:I}),R=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:n?.layout}),q=(0,i.useRef)(),[T,O]=Hc(),[M,A]=(()=>{const[e,t]=(0,i.useState)({});return[e,(0,i.useCallback)((e=>{t({current:e})}),[t])]})(),[P,F]=(0,i.useState)(!1),[B,W]=(0,i.useState)(!1),V=(0,i.useRef)(!1),[z,H]=(0,i.useState)({down:0,up:0,scrollPosition:""}),j=e=>H((t=>({...t,...e}))),[U,$]=(0,i.useState)({start:0,stop:0}),[Z]=vc(n),G=(0,i.useRef)(null),[K]=(0,i.useState)((()=>Bf())),X=function({containerRef:e,enabled:t}){const[n,o]=(0,i.useState)(!1);return{enabled:t,active:n,innerTabStops:!t||n,blur(i){if(!t)return;o(!1);const n=a_(e.current)||e.current?.parentElement;var r;r=e.current,r?.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),s_(e.current),i&&n&&(n.setAttribute("tabIndex",0),n.focus())},focus(){if(!t)return;o(!0);const i=e.current,n=i?.querySelector(".search input"),r=i?.querySelector(".value.last-focused"),s=i?.querySelector(".value.selector, .value"),a=i?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=n||r||s||a;l?.setAttribute("tabIndex",0),l?.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");e?.setAttribute("tabIndex",0),e?.focus()}}}({containerRef:q,enabled:k}),Y=(0,i.useCallback)((()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:n,appSelections:Z})),[n,Z]),Q=t?.qListObject.qDimensionInfo.qError,J=Q&&D.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[ee,te]=(0,i.useState)(!1),{handleKeyDown:ie,handleOnMouseEnter:ne,handleOnMouseLeave:oe,globalKeyDown:re}=(0,i.useMemo)((()=>l_({keyboard:X,hovering:V,updateKeyScroll:j,containerRef:q,currentScrollIndex:U,app:n,appSelections:Z,constraints:D,isModal:Y})),[X,V,j,q,U,n,Z,D,Y]),se=y&&(""===t?.title||!1===t?.showTitle)&&!C,ae=y&&""!==t?.title&&!1!==t?.showTitle||C;(0,i.useEffect)((()=>(document.addEventListener("keydown",re),()=>{document.removeEventListener("keydown",re)})),[re]),(0,i.useEffect)((()=>{const e=()=>{F(!0)},t=()=>{F(!1),"toggle"===a&&W(!1)};return C&&(u.isActive()||(u.begin("/qListObjectDef"),u.on("activated",e),u.on("deactivated",t)),F(C)),u&&(u.isModal()||(u.on("activated",e),u.on("deactivated",t)),F(u.isActive())),()=>{u&&u.removeListener&&(u.removeListener("activated",e),u.removeListener("deactivated",t))}}),[u,C]),(0,i.useEffect)((()=>{if(M&&M.current&&(a&&l||"toggle"===a&&B)){const e=M.current.querySelector("input");e&&e.focus()}}),[M&&M.current,B,a,l]);const{wildCardSearch:le,searchEnabled:ce,autoConfirm:de=!1,layoutOptions:ue={}}=t??{},he=!1!==ce&&"toggle"===a,ge=!0===t?.qListObject?.qDimensionInfo?.qLocked,pe=ge||he,me="H"===t?.qListObject?.qDimensionInfo?.qGrouping,fe=pe||me,ve=(pe?28:0)+(me?19:0),_e="rtl"===o,be=9-(pe?7:0),ye=_e?9-(fe?7:0):4;if((0,i.useEffect)((()=>{if(!G.current||!O)return;const e=function({containerRect:e,titleRef:t,iconsWidth:i,headerPaddingLeft:n,headerPaddingRight:o}){const r=n+o;return!!(e.width<(t?.current?.clientWidth??0)+i+r+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:O,titleRef:G,iconsWidth:ve,headerPaddingLeft:be,headerPaddingRight:ye});te(e)}),[G.current,O]),!d||!t||!L)return null;const Ce=Dm({layout:t,model:d,translator:L,selectionState:K,isDirectQuery:R}),we=(!0===a||"toggle"===a&&B)&&!p()&&!1!==ce,Se=ue.dense??!1,xe=()=>{W(!B)},Le=()=>{if("toggle"===a)xe();else{const e=M.current.querySelector("input");e?.focus()}},ke=e=>({...c_({isDetached:!C&&e,showToolbar:P,containerRef:q,isLocked:ge,listboxSelectionToolbarItems:Ce,selections:u,keyboard:X}),autoConfirm:de}),Ee=we&&"toggle"===a,De="grid"===ue?.dataLayout,Ie=function({isGridMode:e,dense:t,height:i,layoutOrder:n}){let o;if(e){let r;r=wg({isGridMode:e,dense:t})>i?"0px":"2px",o="row"===n?`${r} 4px`:`${r} 6px ${r} 4px`}else o=void 0;return o}({isGridMode:De,dense:Se,height:q.current?.clientHeight,layoutOrder:ue.layoutOrder}),Ne=D?.active?i.createElement(Nf,{title:L.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):i.createElement(So,{onClick:xe,tabIndex:-1,title:L.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},i.createElement(Nf,{style:{fontSize:"12px"}})),Re=p()?i.createElement(jc,{size:"large",style:{fontSize:"12px",padding:"7px"}}):i.createElement(So,{title:L.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:x,size:"large"},i.createElement(jc,{disableRipple:!0,style:{fontSize:"12px"}}));Q&&b?.();const qe=ae?du+10:0;return i.createElement(i.Fragment,null,se&&i.createElement(wf,h_({direction:o},ke(!0))),i.createElement(m_,{className:"listbox-container",container:!0,tabIndex:X.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Ie,styles:N,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:ie,onMouseEnter:ne,onMouseLeave:oe,ref:e=>{q.current=e,T(e)},isGridMode:De,"aria-label":X.active?L.get("Listbox.ScreenReaderInstructions"):""},ae&&i.createElement(f_,{item:!0,container:!0,styles:N,isRtl:_e,marginY:1,paddingLeft:`${be}px`,paddingRight:`${ye}px`},fe&&i.createElement(Mo,{item:!0,container:!0,alignItems:"center",width:ve},ge?Re:he&&Ne,me&&i.createElement(r_,{tabIndex:-1,title:L.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),i.createElement(Mo,{item:!0,xs:!0,minWidth:0,justifyContent:_e?"flex-end":"flex-start",className:p_.listBoxHeader},i.createElement(v_,{variant:"h6",noWrap:!0,ref:G,title:t.title,styles:N},t.title)),i.createElement(Mo,{item:!0,display:"flex"},i.createElement(wf,h_({direction:o},ke(ee))))),i.createElement(Mo,{item:!0,container:!0,direction:"column",height:"100%",minHeight:qe,role:"region","aria-label":L.get("Listbox.ResultFilterLabel")},i.createElement(Mo,{item:!0,ref:A},i.createElement(Of,{selections:u,selectionState:K,model:d,dense:Se,keyboard:X,visible:we,search:a,autoFocus:Ee,wildCardSearch:le,searchEnabled:ce,direction:o,hide:he&&xe,styles:N})),i.createElement(Mo,{item:!0,xs:!0,className:p_.listboxWrapper},Q?i.createElement(u_,{text:J}):i.createElement(o_,null,(({height:e,width:s})=>i.createElement(Sm,{model:d,app:n,constraints:D,layout:t,selections:u,selectionState:K,direction:o,frequencyMode:r,rangeSelect:c,checkboxes:I,height:e,width:s,update:h,fetchStart:g,postProcessPages:m,calculatePagesHeight:f,selectDisabled:p,keyboard:X,showGray:v,scrollState:_,keyScroll:{state:z,reset:()=>H({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:U,set:$},renderedCallback:b,onCtrlF:Le,isModal:Y,styles:N})))))))}const b_=i.memo(__),y_=function({options:e={}}){const{model:t}=e,[n]=Vc(t);return i.createElement(b_,{options:e,layout:n})},C_={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function w_(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const S_=(e={})=>{const{__DO_NOT_USE__:t={},...i}=e;return{...i,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 x_({app:e,fieldIdentifier:t,qId:n,stateName:o,element:r,options:s,renderedCallback:a}){const{isExistingObject:l,hasExternalSelectionsApi:c}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:n,options:s});l||Object.assign(s,{frequencyMode:w_(s.frequencyMode)});const[d,u]=(0,i.useState)(0);(0,i.useEffect)((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");u(d+1)}),[l,c]);const h=l?function({app:e,qId:t,options:n={}}){const[o,r]=(0,i.useState)(),[s]=Tc(),{sessionModel:a}=n,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(n).filter((e=>l.includes(e)));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,i.useEffect)((()=>{a?r(a):async function(){const i=s.get(t);if(i)r(i);else{const i=await e.getObject(t);s.set(i.id,i),i.once("closed",(()=>{s.clear(i.id)})),r(i)}}()}),[]),o}({app:e,qId:n,options:s}):function({app:e,fieldIdentifier:t,stateName:n,options:o={}}){const[r,s]=(0,i.useState)(""),[a,l]=(0,i.useState)(!0),[c,d]=(0,i.useState)(),[u,h]=(0,i.useState)(),g=o.title??u;let{histogram:p=!1,frequencyMode:m="N"}=o;r&&r.failedToFetchFieldDef&&(p=!1,m="N"),(0,i.useEffect)((()=>{const i=p||"N"!==m;t.qLibraryId&&i?async function(){try{const i=await e.getDimension(t.qLibraryId),n=await i.getLayout();h(n.qDim.title),"N"===n.qDim.qGrouping?s(n.qDim.qFieldDefs?n.qDim.qFieldDefs[0]:""):s({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),s({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),h(t))}),[]);const{dense:f,checkboxes:v,listLayout:_,properties:b={}}=o,y={dense:f};"horizontal"===_&&(y.dataLayout="grid",y.layoutOrder="column",y.maxVisibleColumns={auto:!0},y.maxVisibleRows={auto:!1,maxRows:1});const C=(0,i.useRef)();C.current||(C.current=Kv());const w=Zl()(!0,{},C_,{qInfo:{qId:C.current},qListObjectDef:{qStateName:n,qFrequencyMode:p&&"N"===m?"V":m},histogram:p,checkboxes:v,layoutOptions:y,title:g});let S;if(Zl()(!0,w,b),t.qLibraryId?(w.qListObjectDef.qLibraryId=t.qLibraryId,S=t.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[t],S=t),"P"!==m&&p)if(r?.multiFieldDim)w.frequencyMax="fetch";else{const e=t.qLibraryId?r:S;w.frequencyMax={qValueExpression:bm(e)}}const[x]=Mc(w,a?null:e,S,n);return(0,i.useEffect)((()=>{x&&d(x)}),[x]),c}({app:e,fieldIdentifier:t,stateName:o,options:s}),g=(0,i.useRef)(r),p=c?s.selectionsApi:Ff(e,h,[g,".njs-action-toolbar-more",".njs-action-toolbar-popover"],s)[0],m=(0,i.useMemo)((()=>({...s,selections:p,model:h,app:e,renderedCallback:a})),[s,p,h,e]);return p&&h?i.createElement(y_,{options:m}):null}const L_={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function k_({app:e,fieldIdentifier:t,stateName:n,element:o,options:r={}}){const[s,a]=(0,i.useState)(!!r.show);return i.createElement(Cv,{show:s,app:e,alignTo:{current:o},anchorOrigin:r.anchorOrigin,transformOrigin:r.transformOrigin,close:()=>{a(!1),r.onPopoverClose&&r.onPopoverClose()},fieldName:t,stateName:n,autoFocus:r.autoFocus,components:r.components})}function E_(e,t){for(let i=0;i<e.length;++i)e[i]>=0&&e[i]>=t&&++e[i];e.push(t)}function D_(e,t){let i=0;for(let n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i}const I_=e=>({qDef:{qFieldDefs:[e]}}),N_=e=>({qDef:{qDef:e}});function R_({dc:e,def:t,properties:i}){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 n=i,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(i){const r="string"==typeof i?I_(i):{...i,qDef:i.qDef||{}};return r.qDef.cId=r.qDef.cId||Kv(),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),E_(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,n)):(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(i){const o=e.qDimensions.splice(i,1)[0];return D_(e.qInterColumnSortOrder,i),t.dimensions.removed(o,n,i),o},addMeasure(i){const r="string"==typeof i?N_(i):{...i,qDef:i.qDef||{}};r.qDef.cId=r.qDef.cId||Kv(),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),E_(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,n)):(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(i){const o=e.qMeasures.splice(i,1)[0];D_(e.qInterColumnSortOrder,e.qDimensions.length+i),t.measures.removed(o,n,i)},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 q_=e=>({qDef:{qFieldDefs:[e]}});function T_({dc:e,def:t,properties:i}){e.qInitialDataFetch=e.qInitialDataFetch||[];const n=i,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(i){const o="string"==typeof i?q_(i):{...i,qDef:i.qDef||{}};return o.qDef.cId=o.qDef.cId||Kv(),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,n),o},removeDimension(i){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,n,i),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const O_=e=>{let t;var i;return t="string"==typeof e?Zl()(!0,{},C_,{qListObjectDef:(i=e,{qDef:{qFieldDefs:[i]}})}):e.qListObjectDef?Zl()(!0,{},C_,e):Zl()(!0,{},C_,{qListObjectDef:e}),t};function M_({children:e,halo:t}){return{async addDimension(i){const n=O_(i),o=n.qListObjectDef;if(o.qDef.cId=o.qDef.cId||Kv(),!n.title)if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),i=await e.getProperties();i.qDim.qLabelExpression?n.title={qStringExpression:{qExpr:i.qDim.qLabelExpression}}:n.title=i.qDim.title}else n.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:n,qChildren:[]})},addMeasure(){}}}function A_(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"}async function P_({sn:e,properties:t,fields:i,children:n},o){if(!i.length)return;const r=e.qae.data.targets[0];if(!r)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:s}=r,a=s.split("/");let l=t;for(let e=0;e<a.length;e++){const t=a[e];l=t?l[t]:l}const c=function(e){return e.match("/qListObjectDef")?T_:e.match("/qChildListDef")?M_:R_}(s),d=c({dc:l,def:r,properties:t,children:n,halo:o});for(let e=0;e<i.length;++e){const t=i[e];"measure"===A_(t)?await d.addMeasure(t):await d.addDimension(t)}}const F_=(e,t,i)=>{if(null==e||null==t)return i;const n=t.split(".");let o=e;for(let e=0;e<n.length;++e){const t=n[e];if(""!==t){if(void 0===o[t]||null===o[t])return i;o=o[t]}}return o},B_=(e,t,i)=>{if(null==e||null==t)return;const n=t.split("."),o=n[n.length-1];let r=e;for(let e=0;e<n.length-1;++e){const t=n[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+n[e+1])?{}:[]),r=r[t]}void 0!==i&&"__proto__"!==o&&"constructor"!==o?r[o]=i:delete r[o]},W_=e=>0===Object.keys(e).length&&e.constructor===Object,V_=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let i=e.indexOf(t[0]);if(-1!==i){for(let n=0;n<t.length;n++){const o=e.indexOf(t[n]);if(i>o)return!1;i=o}return!0}return!1},z_=function(e,t){let i;for(i=0;i<e.length;++i)e[i]>=0&&e[i]>=t&&++e[i];e.push(t)},H_=function(e,t){let i,n=0;for(i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n},j_=2**53-1;function U_(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function $_(e,t){const i=Zl()(!0,{},t,e);return F_(i,"qOtherTotalSpec.qOtherCounted")||B_(i,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),F_(i,"qOtherTotalSpec.qOtherLimit")||B_(i,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),i.hasOwnProperty("othersLabel")||(i.othersLabel="Others"),i}function Z_(e,t){return Zl()(!0,{},t,e)}function G_(e,t,i){return"function"==typeof e?e(t):Number.isNaN(+e)?i:e}const K_={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===F_(e,t)&&B_(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:U_,importCommonProperties:function(e,t,i){const n="masterobject"===F_(t,"properties.qInfo.qType")?"masterobject":F_(i,"qInfo.qType");B_(e,"qInfo.qType",n),e.visualization=i.visualization},copyPropertyIfExist:function(e,t,i){t.hasOwnProperty(e)&&(i[e]=t[e])},copyPropertyOrSetDefault:function(e,t,i,n){t.hasOwnProperty(e)?i[e]=t[e]:i[e]=n},createDefaultDimension:$_,createDefaultMeasure:Z_,resolveValue:G_,getHypercubePath:function(e){const t=F_(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 i=e.data[0],n=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=i.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==n)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=i.interColumnSortOrder.concat());o!==n;)o<n?(z_(t.qInterColumnSortOrder,o),++o):(--o,H_(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:i}){let n={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach((o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(n.qLayoutExclude.quarantine=Zl()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&i?B_(n,`${i}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||U_(o)?n[o]=e.properties[o]:n.qLayoutExclude.disabled[o]=e.properties[o]})),n=Zl()(!0,{},t,n),null===n.components&&(n.components=[]),n},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const i=e.data[0],n=t.dimensions||{max:0},o=t.measures||{max:0},r=G_(o.max,i.dimensions.length,j_),s=G_(o.min,i.dimensions.length,0);return{maxDimensions:G_(n.max,r,j_),minDimensions:G_(n.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:i,maxMeasures:n,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>n&&n>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>i||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!n&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:i,maxMeasures:n,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>i)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>n&&n>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&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:i,newHyperCubeDef:n,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)n.qDimensions.length<t?n.qDimensions.push($_(r.dimensions[s],o)):n.qLayoutExclude.qHyperCubeDef.qDimensions.push($_(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)n.qLayoutExclude.qHyperCubeDef.qDimensions.push($_(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)n.qDimensions.length<i?n.qDimensions.push($_(r.excludedDimensions[s],o)):n.qLayoutExclude.qHyperCubeDef.qDimensions.push($_(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:i,newHyperCubeDef:n,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)n.qMeasures.length<t?n.qMeasures.push(Z_(r.measures[s],o)):n.qLayoutExclude.qHyperCubeDef.qMeasures.push(Z_(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)n.qLayoutExclude.qHyperCubeDef.qMeasures.push(Z_(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)n.qMeasures.length<i?n.qMeasures.push(Z_(r.excludedMeasures[s],o)):n.qLayoutExclude.qHyperCubeDef.qMeasures.push(Z_(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:i}){if(t.dimensions&&"function"==typeof t.dimensions.added){const n=F_(e,i||"").qHyperCubeDef,o=[...n.qDimensions];n.qDimensions=[],o.forEach((i=>{n.qDimensions.push(i),t.dimensions.added(i,e)}))}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:i}){if(t.measures&&"function"==typeof t.measures.added){const n=F_(e,i||"").qHyperCubeDef,o=[...n.qMeasures];n.qMeasures=[],o.forEach((i=>{n.qMeasures.push(i),t.measures.added(i,e)}))}}},X_={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const i=function(e=1){const t={data:[],properties:{}};for(let i=0;i<e;++i)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),n=e.qProperty,o=F_(n,t||""),r=o.qHyperCubeDef,s=i.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();V_(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.qLayoutExclude,Object.keys(n).forEach((e=>{i.properties[e]=n[e]})),t&&(i.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((e=>{i.properties.hasOwnProperty(e)||(i.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(K_.restoreChangedProperties(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!W_(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude,i}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:i={},defaultPropertyValues:n={},hypercubePath:o}){const r={qChildren:[]},s=K_.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=F_(t,o||"").qHyperCubeDef,l=F_(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h}=K_.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:i}),{defaultDimension:g=K_.getDefaultDimension(),defaultMeasure:p=K_.getDefaultMeasure()}=n;return l.qDimensions.length=0,l.qMeasures.length=0,K_.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h})&&K_.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h,newHyperCubeDef:l}),K_.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),K_.addDefaultMeasures({exportFormat:e,maxMeasures:u,minMeasures:h,newHyperCubeDef:l,defaultMeasure:p}),K_.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),K_.copyPropertyIfExist("qMaxStackedCells",a,l),K_.copyPropertyIfExist("qNoOfLeftDims",a,l),K_.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),K_.copyPropertyOrSetDefault("qMode",a,l,"S"),K_.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),K_.copyPropertyOrSetDefault("qSortbyYValue",a,l),K_.copyPropertyOrSetDefault("qIndentMode",a,l),K_.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),K_.importCommonProperties(s,e,t),K_.updateDimensionsOnAdded({newProperties:s,dataDefinition:i,hypercubePath:o}),K_.updateMeasuresOnAdded({newProperties:s,dataDefinition:i,hypercubePath:o}),r.qProperty=s,r}(e)},Y_=e=>F_(e,"data.targets.0.propertyPath"),Q_=async({halo:e,model:t,cellRef:i,newType:n,properties:o,viewDataMode:r=!1})=>{const s=o?{qProperty:o}:await t.getFullPropertyTree(),a=i.current.getQae(),l=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return X_.exportProperties})(Y_(e)))(a);if(!l)throw new Error("Source chart does not support conversion");const c=await(async({halo:e,name:t,version:i})=>{const{types:n}=e;return await n.get({name:t,version:i}).supernova()})({halo:e,name:n}),d=c.qae,u=(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return X_.importProperties})(Y_(e)))(d);if(!u)throw new Error("Target chart does not support conversion");return u({exportFormat:l({propertyTree:s,hypercubePath:K_.getHypercubePath(a),viewDataMode:r}),initialProperties:{qInfo:{qType:n},visualization:n,...F_(d,"properties.initial",{})},dataDefinition:F_(d,"data.targets.0.",{}),hypercubePath:K_.getHypercubePath(d),viewDataMode:r})},J_={hypercube:X_};function eb(e){return(0,Rt.Z)("MuiIcon",e)}(0,Nt.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tb=["baseClassName","className","color","component","fontSize"],ib=(0,It.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"inherit"!==i.color&&t[`color${(0,Gt.Z)(i.color)}`],t[`fontSize${(0,Gt.Z)(i.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]}))),nb=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiIcon"}),{baseClassName:n="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium"}=i,l=(0,wt.Z)(i,tb),c=(0,St.Z)({},i,{baseClassName:n,color:r,component:s,fontSize:a}),d=(e=>{const{color:t,fontSize:i,classes:n}=e,o={root:["root","inherit"!==t&&`color${(0,Gt.Z)(t)}`,`fontSize${(0,Gt.Z)(i)}`]};return(0,Lt.Z)(o,eb,n)})(c);return(0,Tt.jsx)(ib,(0,St.Z)({as:s,className:(0,xt.Z)(n,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))}));nb.muiName="Icon";const ob=nb,rb=e=>br((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 sb({d:e}){const t=ei();let n="inherit",o=t.palette.success.main;e.missing?o=t.palette.warning.main:e.error&&(n="error",o=t.palette.error.main);const r={color:o},s=i.createElement(zo,{style:{lineHeight:"30px",paddingRight:t.spacing(1)}},i.createElement(ob,null,e.missing||e.error?i.createElement(rb,{style:r}):i.createElement(nu,{style:r})));return i.createElement(Mo,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},i.createElement(Mo,{item:!0},s),i.createElement(Mo,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},i.createElement(zo,{noWrap:!0,component:"p"},i.createElement(zo,{component:"span",variant:"subtitle2",color:n},e.description),i.createElement(zo,{component:"span"}," "),i.createElement(zo,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function ab({data:e}){const t=ei();return i.createElement(Mo,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,n)=>{const o=e.descriptions.map(((e,t)=>i.createElement(sb,{d:e,key:t})));return o.length>0&&i.createElement(Mo,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:t.spacing(2)}},i.createElement(zo,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function lb({title:e="Error",message:t="",data:n=[]}){return i.createElement(Mo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},i.createElement(Mo,{item:!0},i.createElement(rb,{style:{fontSize:"38px"}})),i.createElement(Mo,{item:!0},i.createElement(zo,{variant:"h6",align:"center","data-tid":"error-title"},e)),i.createElement(Mo,{item:!0},i.createElement(zo,{variant:"subtitle1",align:"center","data-tid":"error-message"},t)),i.createElement(ab,{data:n}))}function cb(){return cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},cb.apply(this,arguments)}const db="Progress",ub={root:`${db}-root`,front:`${db}-front`,back:`${db}-back`},hb=(0,It.ZP)("div")((({theme:e})=>({[`&.${ub.root}`]:{position:"relative",display:"inline-block"},[`& .${ub.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${ub.back}`]:{color:e.palette.divider}}))),gb={small:16,medium:32,large:64,xlarge:128};function pb({size:e="medium",...t}){const n=gb[e];return i.createElement(hb,{className:ub.root},i.createElement(sl,cb({variant:"determinate",value:100,className:ub.back,size:n,thickness:3},t)),i.createElement(sl,cb({variant:"indeterminate",disableShrink:!0,className:ub.front,size:n,thickness:3},t)))}function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},mb.apply(this,arguments)}const fb={stripes:"LongRunningQuery-stripes"},vb=(0,It.ZP)(Mo)((()=>({[`& .${fb.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 _b({cancel:e,translator:t,...n}){return i.createElement(i.Fragment,null,i.createElement(vb,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},i.createElement(Mo,{item:!0},i.createElement(pb,null)),i.createElement(Mo,{item:!0},i.createElement(zo,{variant:"h6",align:"center","data-tid":"update-active"},t.get("Object.Update.Active")))),i.createElement(Mo,mb({item:!0},n),i.createElement(Pa,{variant:"contained",onClick:e},t.get("Cancel"))))}function bb({retry:e,translator:t,...n}){return i.createElement(i.Fragment,null,i.createElement(Mo,{item:!0},i.createElement(rb,{style:{fontSize:"38px"}})),i.createElement(Mo,{item:!0},i.createElement(zo,{variant:"h6",align:"center","data-tid":"update-cancelled"},t.get("Object.Update.Cancelled"))),i.createElement(Mo,{item:!0},i.createElement(Pa,mb({variant:"contained",onClick:e},n),t.get("Retry"))))}function yb({canCancel:e,canRetry:t,api:n}){const{translator:o}=(0,i.useContext)(cc);return i.createElement(Mo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:fb.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&i.createElement(_b,{cancel:n.cancel,translator:o,className:fb.cancel}),t&&i.createElement(bb,{retry:n.retry,translator:o,className:fb.retry}))}function Cb(){return i.createElement(Mo,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},i.createElement(pb,{size:"large"}))}const wb="Header",Sb={containerStyle:`${wb}-containerStyle`,containerTitleStyle:`${wb}-containerTitleStyle`},xb=(0,It.ZP)(Mo)((({theme:e})=>({[`&.${Sb.containerStyle}`]:{flexGrow:0},[`&.${Sb.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}}))),Lb=function({layout:e,sn:t,anchorEl:n,hovering:o,focusHandler:r,titleStyles:s={}}){const a=e.showTitles&&!!e.title,l=e.showTitles&&!!e.subtitle,c=e.qSelectionInfo&&e.qSelectionInfo.qInSelections,[d,u]=(0,i.useState)([]),[h,g]=Hc(),[p,m]=(0,i.useState)(!1);(0,i.useEffect)((()=>{t&&t.component&&t.component.isHooked&&t.component.observeActions((e=>{u([...e,...t&&t.selectionToolbar&&t.selectionToolbar.items||[]])}))}),[t]),(0,i.useEffect)((()=>{if(!g)return;const{width:e}=g;m(e<221)}),[g]);const f=a||l,v=[Sb.containerStyle,...f?[Sb.containerTitleStyle]:[]],_=(o||c)&&(p||!f),b=f&&!_&&!p,y=i.createElement(wf,{show:b,selections:{show:c,api:t.component.selections,onKeyDeactivate:r.refocusContent},actions:d,popover:{show:_,anchorEl:n},focusHandler:r});return i.createElement(xb,{ref:h,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},i.createElement(Mo,{item:!0,zeroMinWidth:!0,xs:!0},i.createElement(Mo,{container:!0,wrap:"nowrap",direction:"column"},a&&i.createElement(zo,{variant:"h6",noWrap:!0,className:"njs-cell-title",style:s.main},e.title),l&&i.createElement(zo,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:s.subTitle},e.subtitle))),i.createElement(Mo,{item:!0},y))},kb="Footer-itemStyle",Eb=(0,It.ZP)(Mo)((({theme:e})=>({[`& .${kb}`]:{minWidth:0,paddingTop:e.spacing(1)}}))),Db=function({layout:e,titleStyles:t={}}){return e&&e.showTitles&&e.footnote?i.createElement(Eb,{container:!0},i.createElement(Mo,{item:!0,className:kb},i.createElement(zo,{noWrap:!0,variant:"body2",className:"njs-cell-footer",style:t.footer},e.footnote))):null};class Ib{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 Nb=function({sn:e,snOptions:t,snPlugins:n,layout:o,appLayout:r,halo:s}){const{component:a}=e,{theme:l,language:c,constraints:d,interactions:u,keyboardNavigation:h}=(0,i.useContext)(cc),[g]=(0,i.useState)((()=>new Ib)),[p,m]=(0,i.useState)(!1),[f,v]=(0,i.useState)(0),[_,b,y]=Hc(),[C,w]=(0,i.useState)(null),S=(0,i.useCallback)((e=>{e&&w(e)}),[]);return(0,i.useEffect)((()=>{if(C)return a.created({options:t}),a.mounted(C),m(!0),()=>{g.stop(),a.willUnmount()}}),[C,a]),(0,i.useEffect)((()=>{p&&C&&b&&(!a.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||g.schedule((()=>{const i=[];return d.passive||i.push("passive"),d.active||i.push("interact"),d.select||i.push("select"),d.edit||i.push("edit"),s.app&&s.app.session&&i.push("fetch"),Promise.resolve(a.render({layout:o,options:t,plugins:n,embed:s.public.nebbie,context:{constraints:d,interactions:u,theme:s.public.theme,appLayout:r,keyboardNavigation:h,...a.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:i}}})).then((e=>{!1!==e&&(0===f&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),v(f+1))}))})))}),[b,t,n,C,y,o,r,l,c,d,u,p,h]),i.createElement("div",{ref:_,"data-render-count":f,style:{position:"relative",height:"100%"},className:"njs-viz"},i.createElement("div",{ref:S,style:{position:"absolute",width:"100%",height:"100%"}}))},Rb=(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 qb({delay:e=750}){const[t,n]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const t=setTimeout((()=>n(!0)),e);return()=>clearTimeout(t)}),[]),t?i.createElement(Cb,null):null}const Tb=e=>!e.qError||7005===e.qError.qErrorCode,Ob=(e,t,i,n,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?n:s?l||o:r&&t[e].qFallbackTitle||""}`,d=i(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}})),Mb=e=>e&&(Array.isArray(e)?e:[e])||[],Ab=(e,t,i,n)=>{const o=n.dimensions.min(),r=n.measures.min(),s=n.resolveLayout(t);return{reqDimErrors:Ob(o,Mb(s.qDimensionInfo||s.qItems),(e=>n.dimensions.description(i,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Ob(r,Mb(s.qMeasureInfo),(e=>n.measures.description(i,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Pb=(0,i.forwardRef)((({halo:e,model:t,initialSnOptions:n,initialSnPlugins:o,initialError:r,onMount:s,currentId:a,emitter:l},c)=>{const{app:d,types:u}=e,{nebbie:h}=e.public,{theme:g,translator:p,language:m,keyboardNavigation:f,disableCellPadding:v=!1}=(0,i.useContext)(cc),_=ei(),[b,y,C]=Hc(),[w,S]=(0,i.useReducer)(Rb,{loading:!1,loaded:!1,longRunningQuery:!1,error:(x=r)?{title:x.message}:null,sn:null,visualization:null});var x;const[L,k]=(0,i.useState)(t),[E,{validating:D,canCancel:I,canRetry:N},R]=Vc(L),[q]=zc(d),[T,O,M]=Hc(),[A,P]=(0,i.useState)(n),[F,B]=(0,i.useState)(o),W=`njs-cell-${a}`,[V]=Ff(d,L,[`#${W}`,".njs-action-toolbar-popover"]),[z,H]=(0,i.useState)(!1),j=(0,i.useRef)({enter:null,leave:null}),{titleStyles:U,bgColor:$,bgImage:Z,border:G,borderRadius:K,boxShadow:X}=((e,t,n,o)=>(0,i.useMemo)((()=>{if(e&&t){const i=e.components?e.components.find((e=>"general"===e.key)):null,o={main:hv(i,"main",t,e.visualization),footer:hv(i,"footer",t,e.visualization),subTitle:hv(i,"subTitle",t,e.visualization)},r=dv(i,t,e.visualization),s=cv(i,n),a=function(e,t,i){const n=sv(e?.borderColor,"","borderColor",t,i),o=e?.borderWidth||ov("","borderWidth",t,i);return o&&n?`${o} solid ${n}`:void 0}(i,t,e.visualization),l=function(e,t,i){return e?.borderRadius||ov("","borderRadius",t,i)}(i,t,e.visualization);return{titleStyles:o,bgColor:r,bgImage:s,border:a,borderRadius:l,boxShadow:uv(i,t,e.visualization)}}return{}}),[e,t,n,o]))(E,e.public.theme,e.app,g),Y=(0,i.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,i.useEffect)((()=>{Mf(Y.current)}),[]),Y.current.blurCallback=t=>{e.root.toggleFocusOfCells(),t&&M&&M.focus()},Y.current.refocusContent=()=>{w.sn.component&&"function"==typeof w.sn.component.focus&&w.sn.component.focus()},(0,i.useEffect)((()=>{if(r)return void s();if(!q||!E)return;if(w.visualization===E.visualization&&w.sn)return void(async e=>{const[t,i]=await(async(e,t,{targets:i},n)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,i)=>{let n=!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(i),p=Mb(g.qDimensionInfo||g.qItems).filter(Tb),m=Mb(g.qMeasureInfo).filter(Tb);if(o+=u,r+=h,(p.length<u||m.length<h)&&(n=!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:n,aggMinD:o,aggMinM:r,hasLayoutErrors:s,layoutErrors:l}})(e,i,t),c=[],d=[];let u=null;for(let r=0;r<i.length;++r){const s=i[r];if(!a&&o){const i=u||await n.getProperties();u=i;const o=Ab(e,t,i,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,E,e.generator.qae.data,L);S(t?{type:"ERROR",error:i}:{type:"RENDER"}),(({sn:e,layout:t,model:i})=>{const n=e&&e.component&&e.component.selections;if(n&&n.id&&i.id&&n.id===i.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!n.isModal()){const{targets:t}=e.generator.qae.data,i=t[0].propertyPath;n.goModal(i)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||n.isModal()&&n.noModal()}})({sn:w.sn,layout:E,model:L})})(w.sn);const e=u.getSupportedVersion(E.visualization,E.version);return(async(e,t)=>{S({type:"LOADING"}),await(async({dispatch:e,types:t,visualization:i,version:n,model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c,onMount:d})=>{try{const u=await(async({types:e,name:t,version:i})=>await e.get({name:t,version:i}).supernova())({types:t,name:i,version:n}),h=u.create({model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c});h&&(e({type:"LOADED",sn:h,visualization:i}),d())}catch(t){e(n?{type:"ERROR",error:{title:t.message}}:{type:"ERROR",error:{title:`Could not find a version of '${i}' that supports current object version. Did you forget to register ${i}?`}}),d()}})({dispatch:S,types:u,visualization:e,version:t,model:L,app:d,selections:V,nebbie:h,focusHandler:Y.current,emitter:l,onMount:s})})(E.visualization,e),()=>{}}),[u,w.sn,L,V,E,q,m]),(0,i.useEffect)((()=>{if(!D)return;const e=setTimeout((()=>S({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[D]),(0,i.useImperativeHandle)(c,(()=>({getQae:()=>w.sn.generator.qae,toggleFocus(e){"function"==typeof w.sn.component.focus&&(e?w.sn.component.focus():w.sn.component.blur())},setSnOptions:P,setSnPlugins:B,setModel:k,getImperativeHandle:()=>w.sn?.component&&"function"==typeof w.sn.component.getImperativeHandle?w.sn.component.getImperativeHandle():{},async takeSnapshot(){const{width:e,height:t}=y;let i=JSON.parse(JSON.stringify(E));return"function"==typeof w.sn.component.setSnapshotData&&(i=await w.sn.component.setSnapshotData(i)||i),{key:String(+Date.now()),meta:{language:p.language(),theme:_.name,appLayout:q,size:{width:Math.round(e),height:Math.round(t)}},layout:i}},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)}})),[w.sn,O,y,E,_.name,q]);let Q=null;return w.loading&&!w.longRunningQuery?Q=i.createElement(qb,null):w.error?Q=i.createElement(lb,w.error):w.loaded&&(Q=i.createElement(Nb,{key:E.visualization,sn:w.sn,halo:e,snOptions:A,snPlugins:F,layout:E,appLayout:q})),i.createElement(Td,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:$||"unset",backgroundImage:Z&&Z.url?`url(${Z.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:Z&&Z.size,backgroundPosition:Z&&Z.pos,border:G,borderRadius:K,boxShadow:X,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:b,id:W,onMouseEnter:()=>{j.current.leave&&clearTimeout(j.current.leave),j.enter||(j.current.enter=setTimeout((()=>{H(!0),j.current.enter=null}),250))},onMouseLeave:()=>{j.current.enter&&clearTimeout(j.current.enter),j.current.leave||(j.current.leave=setTimeout((()=>{H(!1),j.current.leave=null}),750))}},i.createElement(Mo,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...v?{}:{padding:_.spacing(1)},...w.longRunningQuery?{opacity:"0.3"}:{}}},C&&E&&w.sn&&i.createElement(Lb,{layout:E,sn:w.sn,anchorEl:C,hovering:z,focusHandler:Y.current,titleStyles:U}," "),i.createElement(Mo,{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:T},Q),C&&E&&w.sn&&i.createElement(Db,{layout:E,titleStyles:U})),w.longRunningQuery&&i.createElement(yb,{canCancel:I,canRetry:N,api:R}))}));function Fb(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Bb(e="/",t,i){const n=[];return Object.keys(t).forEach((o=>{const r=t[o];var s,a;"object"!=typeof i[o]||"object"!=typeof r||Array.isArray(r)?(s=r,a=i[o],(Fb(s)&&Fb(a)?JSON.stringify(s)===JSON.stringify(a):!Array.isArray(s)&&!Array.isArray(a)&&s===a)||n.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):n.push(...Bb(`${e}${o}/`,t[o],i[o]))})),n}function Wb(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 Vb=e=>!(!e||e.qHasSoftPatches||e.qExtendsId||!((e.qMeta?.privileges||[]).indexOf("update")>-1)),zb=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),Hb=Zl().bind(null,!0),jb={},{isArray:Ub}=Array;function $b(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Zb(e){return void 0===e}function Gb(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Kb(e,t){const i=t.substring(1).split("/").slice(0,-1);let n;return i.forEach(((t,o)=>{if(o===i.length)return;n=+t;const r=isNaN(n)?{}:[];e[n||t]=Zb(e[n||t])?r:e[t],e=e[n||t]})),e}function Xb(e,t){let i=!0;if($b(e)&&$b(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((n=>{Xb(e[n],t[n])||(i=!1)})),i);if(Ub(e)&&Ub(t)){if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i+=1)if(!Xb(e[i],t[i]))return!1;return!0}return e===t}jb.generate=function(e,t,i){i=i||"";let n=[];return Object.keys(t).forEach((o=>{const r=function(e){return e?Hb({},{val:e}).val:e}(t[o]),s=e[o],a=`${i}/${o}`;Xb(r,s)||Gb(t,o)||(Zb(s)?n.push({op:"add",path:a,value:r}):$b(r)&&$b(s)?n=n.concat(jb.generate(s,r,a)):Ub(r)&&Ub(s)?n=n.concat(function(e,t,i){let n=[];const o=e.slice();let r=-1;function s(e,t,i){if(e[i]&&Zb(e[i].qInfo))return null;if(e[i]&&e[i].qInfo.qId===t)return i;for(let i=0,n=e.length;i<n;i+=1)if(e[i]&&e[i].qInfo.qId===t)return i;return-1}if(Xb(t,o))return n;if(!Zb(t[0])&&Zb(t[0].qInfo))return n.push({op:"replace",path:i,value:t}),n;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(n.push({op:"remove",path:`${i}/${e}`}),o.splice(e,1)):n=n.concat(jb.generate(o[e],t[r],`${i}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(n.push({op:"add",path:`${i}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(n.push({op:"move",path:`${i}/${e}`,from:`${i}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return n}(s,r,a)):n.push({op:"replace",path:`${i}/${o}`,value:r}))})),Object.keys(e).forEach((o=>{Zb(t[o])&&!Gb(e,o)&&n.push({op:"remove",path:`${i}/${o}`})})),n},jb.apply=function(e,t){t.forEach((t=>{let i=Kb(e,t.path),n=t.path.split("/").splice(-1)[0],o=n&&isNaN(+n)?i[n]:i[+n]||i;const r=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,o=e),"add"===t.op||"replace"===t.op)if(Ub(i))"-"===n&&(n=i.length),i.splice(+n,"add"===t.op?0:1,t.value);else if(Ub(o)&&Ub(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if($b(o)&&$b(t.value))s=o,Object.keys(s).forEach((e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!Gb(s,e)&&delete s[e]})),Hb(o,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[n]=t.value}else if("move"===t.op){const o=Kb(e,t.from);Ub(i)?i.splice(+n,0,o.splice(+r,1)[0]):(i[n]=o[r],delete o[r])}else"remove"===t.op&&(Ub(i)?i.splice(+n,1):delete i[n]);var s}))},jb.clone=function(e){return Hb({},e)},jb.createPatch=function(e,t,i){const n={op:e.toLowerCase(),path:i};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},jb.updateObject=function(e,t){Object.keys(e).length?jb.apply(e,jb.generate(e,t)):Hb(e,t)};const Yb=jb,Qb=e=>t=>{const i=(n={...t,action(){"function"==typeof t.action&&t.action.call(i,e),i.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(i,e),active:"function"==typeof t.active?function(){return t.active.call(i,e)}:void 0},Object.keys(ul().prototype).forEach((e=>{n[e]=ul().prototype[e]})),ul().init(n),n);var n;return i};let Jb,ey;function ty(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let i=0;i<t.length;i++)if(e[i]!==t[i])return!0;return!1}function iy(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 ny(e){ry(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 oy(e){if(e.__hooks.obsolete)return Promise.resolve();ey=-1,Jb=e;let t=-1;Jb.__hooks.initiated&&(t=Jb.__hooks.list.length);try{Jb.fn.call(null)}catch(e){console.error(e)}Jb.__hooks.initiated=!0,t>-1&&t!==Jb.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const i=Jb.__hooks;return cy(Jb),ey=void 0,Jb=void 0,i.chain.promise||(i.chain.promise=new Promise((e=>{i.chain.resolve=e}))),function(e){ry(e.pendingLayoutEffects)}(i),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){ry(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)})))}(i),i.chain.promise}function ry(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 sy(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 ay(e,t,i,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,i,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function ly(e){return e.__hooks.imperativeHandle}function cy(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function dy(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,cy(e))}function uy(e){if(void 0===Jb)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Jb.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function hy(e){return uy(++ey),Jb.context[e]}function gy(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function py(e){return{__hooked:!0,fn:e,initiate:iy,run:oy,teardown:ny,runSnaps:sy,runMenu:ay,focus:jy,blur:Uy,observeActions:dy,getImperativeHandle:ly,updateRectOnNextRun:gy}}function my(e){const t=uy(++ey);if(!t.value){t.component=Jb;const i=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 i="function"==typeof e?e(t.value[0]):e;var n;i!==t.value[0]&&(t.value[0]=i,(n=t.component).__hooks.micro||(n.__hooks.micro=setTimeout((()=>{n.__hooks.micro=null,oy(n)}),0)))};t.value=["function"==typeof e?e():e,i]}return t.value}function fy(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const i=uy(++ey);ty(i.value?i.value[1]:void 0,t)&&(i.value=[e,t],-1===Jb.__hooks.pendingEffects.indexOf(i)&&Jb.__hooks.pendingEffects.push(i))}function vy(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const i=uy(++ey);ty(i.value?i.value[1]:void 0,t)&&(i.value=[e,t],Jb.__hooks.pendingLayoutEffects.push(i))}function _y(e,t){t||console.warn("useMemo called without dependencies.");const i=uy(++ey);return ty(i.value?i.value[0]:void 0,t)&&(i.value=[t,e()]),i.value[1]}function by(e,t){const[i,n]=my((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=uy(++ey);return o.component||(o.component=Jb),vy((()=>{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(),n({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),n({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[i.resolved,i.rejected]}function yy(){return hy("element")}function Cy(){const e=yy(),t=Jb.__hooks.resizer,[i,n]=my((()=>{const{left:t,top:i,width:n,height:o}=e.getBoundingClientRect();return{left:t,top:i,width:n,height:o}}));return t.current=i,-1===t.setters.indexOf(n)&&t.setters.push(n),t.update&&t.resize&&(t.update=!1,t.resize()),vy((()=>{if(t.initiated)return;t.initiated=!0;const i=()=>{const{left:i,top:n,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===i&&s.top===n||t.setters.forEach((e=>e({left:i,top:n,width:o,height:r})))};if(t.resize=()=>{i()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let n=new ResizeObserver(i);return n.observe(e),()=>{n.unobserve(e),n.disconnect(e),n=null,t.resize=void 0}}}),[e]),i}function wy(){return hy("layout")}function Sy(){const e=hy("layout"),[t]=my({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function xy(){return hy("appLayout")}function Ly(){const e=hy("model");return e&&e.session?e:void 0}function ky(){const e=hy("app");return e&&e.session?e:void 0}function Ey(){const e=hy("global");return e&&e.session?e:void 0}function Dy(){return hy("selections")}function Iy(){return hy("theme")}function Ny(){return hy("nebbie")}function Ry(){return hy("translator")}function qy(){return hy("deviceType")}function Ty(){return hy("plugins")}function Oy(e,t){const[i]=my({action(){i._config.action.call(null)}});return i.component||(i.component=Jb,Jb.__hooks.actions.list.push(i)),_y((()=>{const t=e();i._config=t,i.active=t.active||!1,i.disabled=t.disabled||!1,i.hidden=t.hidden||!1,i.label=t.label||"",i.getSvgIconShape=t.icon?()=>t.icon:void 0,i.key=t.key||i.component.__hooks.actions.list.length,i.component.__hooks.actions.changed=!0}),t),i.action}function My(){return console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),hy("constraints")}function Ay(){return hy("interactions")}function Py(){return hy("options")}function Fy(e,t){const i=uy(++ey);if(!i.imperative){if(Jb.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");i.imperative=!0}if(ty(i.value?i.value[0]:void 0,t)){const n=e();i.value=[t,n],Jb.__hooks.imperativeHandle=n}}function By(e){const t=uy(++ey);t.value||(t.value=1,Jb.__hooks.snaps.push(t)),t.fn=e}function Wy(e){const t=uy(++ey);t.value||(t.value=1,Jb.__hooks.menus.push(t)),t.fn=e}function Vy(){uy(++ey);const e=Jb.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function zy(){return hy("emitter")}function Hy(){const e=hy("keyboardNavigation"),t=hy("focusHandler");if(!Jb.__hooks.accessibility.exitFunction){const e=function(e=!1){const i=this.__hooks.accessibility;i.enabled&&i.active&&(Uy(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Jb);Jb.__hooks.accessibility.exitFunction=e;const i=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),jy(this))}.bind(Jb);Jb.__hooks.accessibility.focusFunction=i;const n=function(e=!1){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Jb);Jb.__hooks.accessibility.focusSelectionFunction=n}const i=Jb.__hooks.accessibility.focusFunction,n=Jb.__hooks.accessibility.exitFunction,o=Jb.__hooks.accessibility.focusSelectionFunction,[r,s]=my({active:!1,enabled:e,blur:n,focus:i,focusSelection:o});return Jb.__hooks.accessibility.setter=s,Jb.__hooks.accessibility.enabled=e,fy((()=>s({active:!1,enabled:e,blur:n,focus:i,focusSelection:o})),[e]),r}function jy(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 Uy(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 $y={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Zy=Object.keys($y),Gy=e=>(Object.keys(ul().prototype).forEach((t=>{e[t]=ul().prototype[t]})),ul().init(e),e);function Ky(e,t,i){"function"==typeof e.component&&(e.component=py(e.component));const[n,o]=e.component&&e.component.__hooked?function(e,t,i){e.component.run!==oy&&console.warn("Detected multiple supernova modules, this might cause problems.");const n=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const r={},s=["appLayout","constraints","interactions"],a={},l={};t.model&&t.model.session||(a.select=!0,a.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:n,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:i.deviceType,theme:void 0,translator:i.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:a,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(i){this.context.element=i,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let i=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(i=!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,i=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let n=!1;Object.keys(t.options).forEach((i=>{e[i]=t.options[i],this.context.options[i]!==t.options[i]&&(n=!0)})),n&&(this.context.options=e,i=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,i)=>{this.context.plugins[i]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],i=!0)}s.forEach((e=>{const n=t.context;if(n&&Object.prototype.hasOwnProperty.call(n,e)){let t=JSON.stringify(n[e]);"constraints"===e&&(t=JSON.stringify({...n[e],...a})),"interactions"===e&&(t=JSON.stringify({...n[e],...l})),t!==r[e]&&(i=!0,r[e]=t,this.context[e]=JSON.parse(t))}}))}else i=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(i=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(i=!0,r.language=c.context.translator.language()),i?(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,i,n){return e.component.runMenu(this,t,i,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(c.context[e])})),r.themeName=c.context.theme?c.context.theme.name():void 0,r.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,i):function(e,t){console.warn("Obsolete API - time to get hooked!");const i={...$y};Gy(i);const n={emit(...e){i.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==Zy.indexOf(t)?i[t]=e.component[t].bind(n):n[t]=e.component[t]}));const o=function({sn:e,component:t}){const i={},n=[],o=Qb(t);return((e.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=o(e);i[e.key]=t,n.push(t)})),(e.definition.actions||[]).forEach((e=>{const t=o(e);i[e.key]=t})),{actions:i,selectionToolbarItems:n,destroy(){n.length=0}}}({sn:e,component:n}),r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(n,{model:t.model,app:t.app,global:r,selections:t.selections,actions:o.actions}),Object.assign(i,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[i,o]}(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(...i){return e.qae.properties.onChange.call({model:t.model},...i),t.model.__snInterceptor.setProperties.call(this,...i)},t.model.applyPatches=function(i,n){const o=n?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const r=Yb.clone(o),s=i.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));Yb.apply(o,s),e.qae.properties.onChange.call({model:t.model},o);const a=Yb.generate(r,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,a,n)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:n,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const Xy=()=>{};function Yy(e,t){return void 0===e?()=>t:()=>e}function Qy(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Yy(t.min,0),max:"function"==typeof t.max?t.max:Yy(t.max,1e3),added:t.added||t.add||Xy,description:t.description||Xy,moved:t.moved||t.move||Xy,removed:t.removed||t.remove||Xy,replaced:t.replaced||t.replace||Xy,isDefined:()=>!!e}}const Jy=(e,t,i)=>{const n=t.split("/");let o=e;if(void 0===o)return i;for(let e=0;e<n.length;++e)if(""!==n[e]){if(void 0===o[n[e]])return i;o=o[n[e]]}return o};function eC(e){const t=e.path||"/qHyperCubeDef",i=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(i)){const e=i.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error(`Incorrect definition for ${e} at ${t}. Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:i,resolveLayout:e=>Jy(e,i,{}),dimensions:Qy(e.dimensions),measures:Qy(e.measures)}}function tC(e={}){let t,i=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(i=e.properties.initial,t=e.properties.onChange),{properties:{initial:i,onChange:t},data:{targets:((e.data||{}).targets||[]).map(eC)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function iC(e,t){let i;i="function"==typeof e?e(t):e;const n={qae:tC(i.qae),component:i.component||{},create:e=>Ky(n,e,t),definition:{}};return Object.keys(i).forEach((e=>{n[e]||(n.definition[e]=i[e])})),n}const nC=(e,t,i)=>{if(!e)return Promise.resolve();let n=Yb.generate(t,i);return Zl()(!0,t,i),n&&n.length?(n=n.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,n,!0):e.applyPatches(n,!0)):Promise.resolve()},oC=()=>{};async function rC(e,t,n,o,s=(async()=>{})){const a=function({model:e,halo:t,initialError:n,onDestroy:o=(async()=>{})}={}){let s,a=oC,l=null,c=null,d=null,u=null;const h=new Promise((e=>{d=e})),g=new Promise((e=>{u=e})),p=e=>()=>{e&&e(),u()};let m={},f=[];const v=new(ul()),_={id:e.id,model:e,async destroy(){await o(),a(),a=oC},async convertTo(i,n=!0,o=!1){if(n){const n=await e.getLayout();if(Vb(n)&&!o){const n=await Q_({halo:t,model:e,cellRef:l,newType:i});return await zb(e,n.qProperty),n}const r=await e.getEffectiveProperties(),s=await Q_({halo:t,model:e,cellRef:l,newType:i,properties:r}),a=s.qProperty;return await nC(e,r,a),s}return await Q_({halo:t,model:e,cellRef:l,newType:i})},async toggleDataView(i){let n;if(s||!1===i)s&&!0!==i&&(n=e,await t.app.destroySessionObject(s),s=void 0);else{let i=t.config.context.dataViewType;const o=await e.getEffectiveProperties();if(!t.types.getSupportedVersion(i)){if(!t.types.getSupportedVersion("table"))throw new Error("No data view type registered");i="table"}const r=await Q_({halo:t,model:e,cellRef:l,newType:i,properties:o,viewDataMode:!0});n=await t.app.createSessionObject(r.qProperty),s=n.id}n&&l.current.setModel(n)},addListener(e,t){v.addListener(e,t)},removeListener(e,t){v.removeListener(e,t)},getImperativeHandle:async()=>(await g,l.current.getImperativeHandle()),__DO_NOT_USE__:{mount(o){if(c)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return c=o,[a,l]=function({halo:e,element:t,model:n,initialSnOptions:o,initialSnPlugins:s,onMount:a,emitter:l,initialError:c}){const{root:d}=e,u=i.createRef(),h=Kv(),g=r.createPortal(i.createElement(Pb,{ref:u,halo:e,model:n,currentId:h,initialSnOptions:o,initialSnPlugins:s,initialError:c,onMount:a,emitter:l}),t,h),p=()=>{d.remove(g),n.removeListener("closed",p)};return n.on("closed",p),d.add(g),d.addCell(h,u),[p,u]}({halo:t,element:o,model:e,initialSnOptions:m,initialSnPlugins:f,initialError:n,onMount:d,emitter:v}),h},async applyProperties(t){const i=Bb("/",t,await e.getEffectiveProperties());if(i.length)return e.applyPatches(i,!0)},options(e){(async e=>{const t=e.onInitialRender;c?(async()=>{await h,l.current.setSnOptions({...m,...e,onInitialRender:p(t)})})():m={...m,...e,onInitialRender:p(t)}})(e)},plugins(e){(async e=>{Wb(e),c?(async()=>{await h,l.current.setSnPlugins(e)})():f=e})(e)},exportImage:()=>l.current.exportImage(),takeSnapshot:()=>l.current.takeSnapshot(),getModel:()=>e,convert:{async toType(i){const n=await e.getEffectiveProperties(),o=await Q_({halo:t,model:e,cellRef:l,newType:i,properties:n}),r=o.qProperty;return await nC(e,n,r),o},async revert(){await e.clearSoftPatches()}}}};return _}({model:e,halo:n,initialError:o,onDestroy:s});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}async function sC({type:e,version:t,fields:i,properties:n,extendProperties:o},r,s){let a={};const l=[];try{const s=r.types.get({name:e,version:t});a=await s.initialProperties(n,o);const c=await s.supernova();i&&await P_({sn:c,properties:a,fields:i,children:l},r),n&&c&&c.qae.properties.onChange&&c.qae.properties.onChange.call({},a)}catch(t){a=s?null:{qInfo:{qType:e},visualization:e}}if(!s){const e=await r.app.createObject(a);return l.length>0&&await e.setFullPropertyTree({qProperty:a,qChildren:l}),Oc.set(e.id,e),e}return a}function aC(e,t,i){return e.bounds?e.bounds:{y:e.row/i*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/i*100}}const lC=function({model:e,halo:t,initialSnOptions:n,initialSnPlugins:o,initialError:r,onMount:s}){const{root:a}=t,[l]=Vc(e),{theme:c}=(0,i.useContext)(cc),[d,u]=(0,i.useState)([]),[h,g]=(0,i.useState)(void 0),[p,m]=(0,i.useState)(void 0),[f,v]=(0,i.useState)("");(0,i.useEffect)((()=>{if(l){const e=JSON.stringify(l.cells);if(e===f)return;v(e);const n=async()=>{d.forEach((e=>{a.removeCell(e.currentId)}));const e=l.cells,{columns:n,rows:o}=l,r=await Promise.all(e.map((async e=>{let r;const s=new Promise((e=>{r=e})),a=d.find((t=>t.id===e.name));if(a)return a.bounds=aC(e,n,o),delete a.mountedPromise,a;const l=await async function({id:e,options:t,plugins:i,element:n},o){const r=`${e}`;let s=Dc.get(r);s||(s=o.app.getObject(e),Dc.set(r,s));const a=await s;return Oc.set(r,a),rC(a,{options:t,plugins:i,element:n},o)}({id:e.name},t);return{model:l.model,id:e.name,bounds:aC(e,n,o),cellRef:i.createRef(),currentId:Kv(),mounted:r,mountedPromise:s}})));r.forEach((e=>a.addCell(e.currentId,e.cellRef))),u(r)};n()}}),[l]);const _=(0,i.useMemo)((()=>d?d.map((e=>function(e,t,n,o,r,s){const{x:a,y:l,width:c,height:d}=e.bounds;return i.createElement("div",{style:{left:`${a}%`,top:`${l}%`,width:`${c}%`,height:`${d}%`,position:"absolute"}},i.createElement(Pb,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:o,initialError:r,onMount:s}))}(e,t,n,o,r,e.mounted))):[]),[d]);(0,i.useEffect)((()=>{const e=l?.components?l.components.find((e=>"general"===e.key)):null;g(dv(e,t.public.theme)),m(cv(e,t.app))}),[l,t.public.theme,t.app,c]);const b=!l||Number.isNaN(l.height)?"100%":`${Number(l.height)}%`,y=d.map((e=>e.mountedPromise));return y.filter((e=>!!e)).length&&Promise.all(y).then((()=>{s()})),i.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}},_)},cC=()=>{};async function dC({id:e,options:t,plugins:n,element:o},s){const a=`${e}`;let l=Dc.get(a);l||(l=s.app.getObject(e),Dc.set(a,l));const c=await l;return Oc.set(a,c),"sheet"===c.genericType?async function(e,t,n,o,s=(async()=>{})){const a=function({model:e,halo:t,initialError:n,onDestroy:o=(async()=>{})}={}){let s=cC,a=null,l=null,c=null;const d=new Promise((e=>{c=e}));let u={},h=[];const g={id:e.id,model:e,async destroy(){await o(),s(),s=cC},__DO_NOT_USE__:{mount(o){if(l)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return l=o,[s,a]=function({halo:e,element:t,model:n,initialSnOptions:o,initialSnPlugins:s,onMount:a,initialError:l}){const{root:c}=e,d=i.createRef(),u=r.createPortal(i.createElement(lC,{ref:d,halo:e,model:n,initialSnOptions:o,initialSnPlugins:s,initialError:l,onMount:a}),t,n.id),h=()=>{c.remove(u),n.removeListener("closed",h)};return n.on("closed",h),c.add(u),[h,d]}({halo:t,element:o,model:e,initialSnOptions:u,initialSnPlugins:h,initialError:n,onMount:c}),d},async applyProperties(t){const i=Bb("/",t,await e.getEffectiveProperties());if(i.length)return e.applyPatches(i,!0)},options(e){(async e=>{l?(async()=>{await d,a.current.setSnOptions({...u,...e})})():u={...u,...e}})(e)},plugins(e){(async e=>{Wb(e),l?(async()=>{await d,a.current.setSnPlugins(e)})():h=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return g}({model:e,halo:n,initialError:void 0,onDestroy:s});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}(c,{options:t,plugins:n,element:o},s):rC(c,{options:t,plugins:n,element:o},s)}function uC(e={}){return{isEnabled:t=>!0===e[t]}}var hC=s(7311),gC=s.n(hC);const pC={};function mC(e,t){const i={};let n=null;return{get:e=>i[e],register:(o,r)=>{if(i[o])throw new Error(`Supernova '${e}@${o}' already registered.`);i[o]=function(e,t,i={}){let n,o;const{meta:r}=i,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||gC()(e,r.deps.properties),supernova:()=>async function(e,t,{config:i},n){const o=`${e}__${t}`;if(!pC[o]){const r=`${e}${t&&` v${t}`||""}`;if(n&&"function"!=typeof n)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(n||i.load)({name:e,version:t}),a=Promise.resolve(s);pC[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 pC[o]}(s.name,s.version,t,i.load).then((e=>(n=n||iC(e,t.public.galaxy),o=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e,t=!1){return this.supernova().then((()=>{const i={qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o)};return t?(Zl()(!0,i,e),i):{...i,...e}}))}};return s}({name:e,version:o},t,r),n=null},getMatchingVersionFromProperties:e=>{var t;n||(t=Object.keys(i),n=[...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=n.length-1;t>=0;t--)if(i[n[t]].supportsPropertiesVersion(e))return n[t];return null},versions:i}}const fC={context:({},{theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"}),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()))}},vC=(e={},t={})=>({...e,...t}),_C=(e=[],t=[])=>[...e,...t].filter(((e,t,i)=>i.indexOf(e)===t)),bC=function e(t={}){const n=function(e){const t=ll({initial:e});return Object.keys(cl).forEach((e=>{t.translator.add(cl[e])})),{translator:t.translator}}(t.context.language);function s(e,a){if(a)return s.createConfiguration(a)(e);let l={...t.context,translator:n.translator};const[c]=function({app:e,context:t}){let n;const r=new Promise((e=>{n=e})),s=i.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","4.9.0"),a.setAttribute("data-app-id",e.id),document.body.appendChild(a),t&&bc(t),o.createRoot(a).render(i.createElement(yc,{ref:s,app:e,initialContext:t,renderCallback:n}));const l={},c=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await r,c.push(e),s.current.setComps(c)})()},remove(e){(async()=>{await r;const t=c.indexOf(e);-1!==t&&c.splice(t,1),s.current.setComps(c)})()},setMuiThemeName(e){(async()=>{await r,s.current.setMuiThemeName(e)})()},context(e){(async()=>{await r,e&&bc(e),s.current.setContext(e)})()},getAppSelections:async()=>(await r,s.current.getAppSelections())},s,r]}({app:e,context:l}),d=function({themes:e=[],loadTheme:t,root:i}={}){const n=lc();return{setTheme:async o=>{let r=e.filter((e=>e.id===o))[0],s="dark"===o?"dark":"light";if(!r&&t&&(r={load:t}),r&&r.load)try{const e=await Promise.race([r.load(o),(a=5e3,l={__timedOut:!0},new Promise((e=>{setTimeout((()=>e(l)),a)})))]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(s="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,o),i.setMuiThemeName(s))}catch(e){console.error(e)}else n.internalAPI.setTheme({type:s},o),i.setMuiThemeName(s);var a,l},externalAPI:n.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:c});l.themeApi=d.externalAPI;const u={galaxy:{translator:n.translator,flags:uC(t.flags),deviceType:(p=t.context.deviceType,"auto"!==p?p: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:d.externalAPI,translator:n.translator,nebbie:null},h={app:e,root:c,config:t,public:u,context:l,types:null},g=function({halo:e,parent:t}){const i={},n=t||{get:()=>{}};return{register:(t,n)=>{i[t.name]||(i[t.name]=mC(t.name,e)),i[t.name].register(t.version,n)},getSupportedVersion:(e,t)=>{if(i[e])return i[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:o}=e;if(i[t]){if(!i[t].versions[o]){const e=Object.keys(i[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 i[t].get(o)||n.get(e)},getList:()=>Object.keys(i).map((e=>({name:e,versions:Object.keys(i[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{i[e]&&(i[e]=void 0),function(e){Object.keys(pC).forEach((t=>{t.split("__")[0]===e&&(pC[t]=void 0)}))}(e)}}}({halo:h});var p;t.types.forEach((e=>g.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let m=d.setTheme(t.context.theme),f=null,v=null;const _={render:async e=>(await m,e.id?dC(e,h):async function({type:e,version:t,fields:i,properties:n,options:o,plugins:r,element:s,extendProperties:a},l){let c={};const d=[];let u;try{const o=l.types.get({name:e,version:t});c=await o.initialProperties(n,a);const r=await o.supernova();i&&await P_({sn:r,properties:c,fields:i,children:d},l),n&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},c)}catch(t){u=t,c={qInfo:{qType:e},visualization:e}}const h=await l.app.createSessionObject(c);d.length>0&&await h.setFullPropertyTree({qProperty:c,qChildren:d}),Oc.set(h.id,h);const g=(e=>{const t=qc({type:"SET",value:e});return()=>{t(),Oc.clear(e.id)}})(h);return rC(h,{options:o,plugins:r,element:s},l,u,(async()=>{await l.app.destroySessionObject(h.id),g()}))}(e,h)),create:async e=>sC(e,h,!1),generateProperties:async e=>sC(e,h,!0),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((i=>{Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==l[i]&&(t||(t={}),t[i]=e[i])})),t&&(l={...l,...t,translator:n.translator},t.theme&&(m=d.setTheme(t.theme),await m),t.language&&h.public.translator.language(t.language),c.context(l))},selections:async()=>(f||(f={mount(t){v?console.error("Already mounted"):(v=function({element:e,app:t}){return r.createPortal(i.createElement(Xv,{app:t}),e,Kv())}({element:t,app:e}),c.add(v))},unmount(){v&&(c.remove(v),v=null)}}),f),field:async t=>{let n;const o="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const s={fieldName:o,async mount(a,l={}){if(!a)throw new Error(`Element for ${o||n} not provided`);if(this._instance)throw new Error(`Field or object ${o||n} already mounted`);const d=()=>s.emit("selectionActivated"),u=()=>s.emit("selectionDeactivated");return new Promise((o=>{this._instance=function({element:e,app:t,fieldIdentifier:n,qId:o,stateName:s="$",options:a={},renderedCallback:l}){return r.createPortal(i.createElement(x_,{app:t,element:e,fieldIdentifier:n,qId:o,stateName:s,options:a,renderedCallback:l}),e,Kv())}({element:a,app:e,fieldIdentifier:t,qId:n,options:S_({onSelectionActivated:d,onSelectionDeactivated:u,...l}),stateName:l.stateName||"$",renderedCallback:o}),c.add(this._instance)}))},unmount(){this._instance&&(c.remove(this._instance),this._instance=null)}};return Mf(s),s},getRegisteredTypes:g.getList,__DO_NOT_USE__:{types:g,popover(t,n,o){_._popoverInstance&&(c.remove(_._popoverInstance),_._popoverInstance=null);const r=((e={})=>{const t={...L_};return Zl()(!0,t,e),t})({onPopoverClose:()=>_.emit("fieldPopoverClose"),...o});_._popoverInstance=i.createElement(k_,{element:t,key:Kv(),app:e,fieldIdentifier:n,options:r,stateName:o.stateName||"$"}),c.add(_._popoverInstance)}}};return h.public.nebbie=_,h.types=g,Mf(_),_}return s.createConfiguration=i=>e(((e,t)=>({context:vC(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:_C(e.types,t.types),themes:_C(e.themes,t.themes),flags:vC(e.flags,t.flags),anything:vC(e.anything,t.anything)}))(t,i)),s.config=t,s}(fC),yC=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},CC=globalThis.crypto||{getRandomValues:()=>123456},wC=function(){return e=>{const t=Zl()({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^CC.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const i=t._mock;let n=t;return i&&(delete t._mock,n=Zl()({},t,i)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(n),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),removeListener:()=>{},id:t.qInfo.qId,...t})}},SC=(e,{args:t=[],defaultValue:i}={})=>"function"==typeof e?e(...t):void 0!==e?e:i,xC=(e,{defaultValue:t,async:i=!0,delay:n=0}={})=>(...o)=>{const r=SC(e,{defaultValue:t,args:o});return i?new Promise((e=>{setTimeout((()=>e(r)),n)})):r},LC=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function kC(e){return!LC.includes(e)}function EC(e){const t=SC(e.getLayout);return t.qInfo&&t.qInfo.qId}function DC(e,t){let i=EC(e);const{delay:n}=t,{id:o,session:r,...s}=e;if(o&&i&&o!==i)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${i}, id: ${o}`);return i=i||o||"object - "+ +Date.now(),{[i]:{id:i,session:SC(r,{defaultValue:!0}),on:()=>{},once:()=>{},...Object.entries(s).reduce(((e,[t,i])=>({...e,[t]:xC(i,{async:kC(t),delay:n})})),{}),genericType:e.type}}}function IC(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!EC(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const NC=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(IC);const i=function(e,t){return e.reduce(((e,i)=>({...e,...DC(i,t)})),{})}(e,t);return async e=>Promise.resolve(i[e])},RC=function(){return()=>Promise.resolve({id:"app-layout"})},qC={fromGenericObjects:(e,t={})=>function(e,t={}){const i=new yC,n=new wC,o=new NC(e,t),r=new RC,s={id:"app - "+ +Date.now(),session:i,createSessionObject:n,destroySessionObject:async()=>{},getObject:o,getAppLayout:r};return Promise.resolve(s)}(e,t)},TC=qC,OC={generator:iC,hook:py,theme:lc,locale:ll};var MC=s(2792),AC=s(3545),PC=s(5243),FC=s(7357),BC=s(5733);function WC(e){return(0,Rt.Z)("MuiToolbar",e)}(0,Nt.Z)("MuiToolbar",["root","gutters","regular","dense"]);const VC=["className","component","disableGutters","variant"],zC=(0,It.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disableGutters&&t.gutters,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,St.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)),HC=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiToolbar"}),{className:n,component:o="div",disableGutters:r=!1,variant:s="regular"}=i,a=(0,wt.Z)(i,VC),l=(0,St.Z)({},i,{component:o,disableGutters:r,variant:s}),c=(e=>{const{classes:t,disableGutters:i,variant:n}=e,o={root:["root",!i&&"gutters",n]};return(0,Lt.Z)(o,WC,t)})(l);return(0,Tt.jsx)(zC,(0,St.Z)({as:o,className:(0,xt.Z)(c.root,n),ref:t,ownerState:l},a))})),jC=HC;function UC(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function $C(e){return(0,Rt.Z)("MuiToggleButtonGroup",e)}const ZC=(0,Nt.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth"]),GC=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],KC=(0,It.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${ZC.grouped}`]:t.grouped},{[`& .${ZC.grouped}`]:t[`grouped${(0,Gt.Z)(i.orientation)}`]},t.root,"vertical"===i.orientation&&t.vertical,i.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,St.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${ZC.grouped}`]:(0,St.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},[`&.${ZC.selected} + .${ZC.grouped}.${ZC.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},[`&.${ZC.selected} + .${ZC.grouped}.${ZC.selected}`]:{borderTop:0,marginTop:0}})}))),XC=i.forwardRef((function(e,t){const n=(0,Dt.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}=n,p=(0,wt.Z)(n,GC),m=(0,St.Z)({},n,{disabled:a,fullWidth:c,orientation:u,size:h}),f=(e=>{const{classes:t,orientation:i,fullWidth:n,disabled:o}=e,r={root:["root","vertical"===i&&"vertical",n&&"fullWidth"],grouped:["grouped",`grouped${(0,Gt.Z)(i)}`,o&&"disabled"]};return(0,Lt.Z)(r,$C,t)})(m),v=(e,t)=>{if(!d)return;const i=g&&g.indexOf(t);let n;g&&i>=0?(n=g.slice(),n.splice(i,1)):n=g?g.concat(t):[t],d(e,n)},_=(e,t)=>{d&&d(e,g===t?null:t)};return(0,Tt.jsx)(KC,(0,St.Z)({role:"group",className:(0,xt.Z)(f.root,r),ref:t,ownerState:m},p,{children:i.Children.map(o,(e=>i.isValidElement(e)?i.cloneElement(e,{className:(0,xt.Z)(f.grouped,e.props.className),onChange:l?_:v,selected:void 0===e.props.selected?UC(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))}))})),YC=XC;function QC(e){return(0,Rt.Z)("MuiToggleButton",e)}const JC=(0,Nt.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),ew=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],tw=(0,It.ZP)(vo,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`size${(0,Gt.Z)(i.size)}`]]}})((({theme:e,ownerState:t})=>{let i,n="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(n="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,i="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,St.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%"},{[`&.${JC.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,In.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${JC.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${i} / ${e.vars.palette.action.selectedOpacity})`:(0,In.Fq)(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${i} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,In.Fq)(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${i} / ${e.vars.palette.action.selectedOpacity})`:(0,In.Fq)(n,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})})),iw=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiToggleButton"}),{children:n,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}=i,p=(0,wt.Z)(i,ew),m=(0,St.Z)({},i,{color:r,disabled:s,disableFocusRipple:a,fullWidth:l,size:h}),f=(e=>{const{classes:t,fullWidth:i,selected:n,disabled:o,size:r,color:s}=e,a={root:["root",n&&"selected",o&&"disabled",i&&"fullWidth",`size${(0,Gt.Z)(r)}`,s]};return(0,Lt.Z)(a,QC,t)})(m);return(0,Tt.jsx)(tw,(0,St.Z)({className:(0,xt.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:n}))})),nw=iw;function ow(e){return(0,Rt.Z)("MuiMenu",e)}(0,Nt.Z)("MuiMenu",["root","paper","list"]);const rw=["onEntering"],sw=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],aw={vertical:"top",horizontal:"right"},lw={vertical:"top",horizontal:"left"},cw=(0,It.ZP)(Ud,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dw=(0,It.ZP)(Hd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uw=(0,It.ZP)(df,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),hw=i.forwardRef((function(e,t){var n,o;const r=(0,Dt.Z)({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:u,open:h,PaperProps:g={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:{onEntering:f}={},variant:v="selectedMenu",slots:_={},slotProps:b={}}=r,y=(0,wt.Z)(r.TransitionProps,rw),C=(0,wt.Z)(r,sw),w=ei(),S="rtl"===w.direction,x=(0,St.Z)({},r,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:f,PaperProps:g,transitionDuration:m,TransitionProps:y,variant:v}),L=(e=>{const{classes:t}=e;return(0,Lt.Z)({root:["root"],paper:["paper"],list:["list"]},ow,t)})(x),k=s&&!c&&h,E=i.useRef(null);let D=-1;i.Children.map(a,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===D)&&(D=t))}));const I=null!=(n=_.paper)?n:dw,N=null!=(o=b.paper)?o:g,R=rs({elementType:_.root,externalSlotProps:b.root,ownerState:x,className:[L.root,l]}),q=rs({elementType:I,externalSlotProps:N,ownerState:x,className:L.paper});return(0,Tt.jsx)(cw,(0,St.Z)({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?aw:lw,slots:{paper:I,root:_.root},slotProps:{root:R,paper:q},open:h,ref:t,transitionDuration:m,TransitionProps:(0,St.Z)({onEntering:(e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,w),f&&f(e,t)}},y),ownerState:x},C,{classes:p,children:(0,Tt.jsx)(uw,(0,St.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:E,autoFocus:s&&(-1===D||c),autoFocusItem:k,variant:v},d,{className:(0,xt.Z)(L.list,d.className),children:a}))}))})),gw=hw,pw=new Map,mw=[],fw=mw.map,vw=mw.some,_w=mw.hasOwnProperty,bw=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,yw=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,Cw=/(?:\.[^/]*|\/)$/;class ww extends Error{constructor(e){super(e)}}function Sw(e){const t=bw.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function xw(e){const t=new Map,i=o(null);function n(e){if("string"!=typeof e)return e;let i=t.get(e);return i||t.set(e,i=new Promise(((t,i)=>{const n=document.createElement("script");n.onload=()=>{try{t(mw.pop()(o(e)))}catch(e){i(new ww("invalid module"))}n.remove()},n.onerror=()=>{i(new ww("unable to load module")),n.remove()},n.async=!0,n.src=e,window.define=Dw,document.head.appendChild(n)}))),i}function o(t){return i=>Promise.resolve(e(i,t)).then(n)}function r(e){return arguments.length>1?Promise.all(fw.call(arguments,i)).then(Lw):i(e)}return r.alias=function(t){return xw(((i,n)=>i in t&&(n=null,"string"!=typeof(i=t[i]))?i:e(i,n)))},r.resolve=e,r}function Lw(e){const t={};for(const i of e)for(const e in i)_w.call(i,e)&&(null==i[e]?Object.defineProperty(t,e,{get:kw(i,e)}):t[e]=i[e]);return t}function kw(e,t){return()=>e[t]}function Ew(e){return"exports"==(e+="")||"module"===e}function Dw(e,t,i){const n=arguments.length;n<2?(i=e,t=[]):n<3&&(i=t,t="string"==typeof e?[]:e),mw.push(vw.call(t,Ew)?e=>{const n={},o={exports:n};return Promise.all(fw.call(t,(t=>"exports"==(t+="")?n:"module"===t?o:e(t)))).then((e=>(i.apply(null,e),o.exports)))}:e=>Promise.all(fw.call(t,e)).then((e=>"function"==typeof i?i.apply(null,e):i)))}ww.prototype.name=ww.name,xw(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function i(t){const i=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let n=pw.get(i);return n||pw.set(i,n=fetch(i).then((e=>{if(!e.ok)throw new ww("unable to load package.json");return e.redirected&&!pw.has(e.url)&&pw.set(e.url,n),e.json()}))),n}return async function(n,o){if(n.startsWith(e)&&(n=n.substring(e.length)),/^(\w+:)|\/\//i.test(n))return n;if(/^[.]{0,2}\//i.test(n))return new URL(n,null==o?location:o).href;if(!n.length||/^[\s._]/.test(n)||/\s$/.test(n))throw new ww("illegal name");const r=Sw(n);if(!r)return`${e}${n}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await i(Sw(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!Cw.test(r.path)&&(r.path+=".js"),r.path&&r.version&&yw.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await i(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const i of t){let t=e[i];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),Cw.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),Dw.amd={};const Iw=(t,i)=>{const n=i?e=>e:e=>`/pkg/${encodeURIComponent(e)}`;return xw((async e=>n(e))).alias({"@nebula.js/stardust":e})(i||t)},Nw={};function Rw(e){const[t]=Tc(),i=t.get(e),[n,...o]=Wc(i,"getProperties");return[n,e=>i.setProperties(e),...o]}window.onHotChange=(e,t)=>(Nw[e]||(Nw[e]=[]),Nw[e].push(t),window[e]&&t(),()=>{const i=Nw[e].indexOf(t);Nw[e].splice(i,1)});const qw=i.createContext(),Tw=e=>({qDef:{qFieldDefs:[e]}});function Ow({dc:e,def:t,properties:i,dimensions:n}){const o=i,r={dimensions:()=>n,measures:()=>[],addDimension(i){const n="string"==typeof i?Tw(i):{...i,qDef:i.qDef||{}};return n.qDef.cId=n.qDef.cId||Kv(),n.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(n,o),n},removeDimension(e){const i=n[e];return t.dimensions.removed(i,o,e),i},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 Mw={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},Aw={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function Pw(e,t="dimension"){const i="dimension"===t?Mw:Aw,[n]=Mc(i,e),[o]=Vc(n);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function Fw(e){return(0,Rt.Z)("MuiListSubheader",e)}(0,Nt.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Bw=["className","color","component","disableGutters","disableSticky","inset"],Ww=(0,It.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"default"!==i.color&&t[`color${(0,Gt.Z)(i.color)}`],!i.disableGutters&&t.gutters,i.inset&&t.inset,!i.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,St.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}))),Vw=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=i,c=(0,wt.Z)(i,Bw),d=(0,St.Z)({},i,{color:o,component:r,disableGutters:s,disableSticky:a,inset:l}),u=(e=>{const{classes:t,color:i,disableGutters:n,inset:o,disableSticky:r}=e,s={root:["root","default"!==i&&`color${(0,Gt.Z)(i)}`,!n&&"gutters",o&&"inset",!r&&"sticky"]};return(0,Lt.Z)(s,Fw,t)})(d);return(0,Tt.jsx)(Ww,(0,St.Z)({as:r,className:(0,xt.Z)(u.root,n),ref:t,ownerState:d},c))}));Vw.muiSkipListHighlight=!0;const zw=Vw;var Hw=s(1263),jw=s.n(Hw),Uw=s(532),$w=s.n(Uw),Zw=s(2120),Gw=s(9179),Kw=s(6744);function Xw(e){return(0,Rt.Z)("MuiInput",e)}const Yw=(0,St.Z)({},Ys,(0,Nt.Z)("MuiInput",["root","underline","input"])),Qw=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Jw=(0,It.ZP)(va,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[...ma(e,t),!i.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let i="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(i=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,St.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"},[`&.${Yw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yw.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${i}`,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(.${Yw.disabled}, .${Yw.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${i}`}},[`&.${Yw.disabled}:before`]:{borderBottomStyle:"dotted"}})})),eS=(0,It.ZP)(_a,{name:"MuiInput",slot:"Input",overridesResolver:fa})({}),tS=i.forwardRef((function(e,t){var i,n,o,r;const s=(0,Dt.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,wt.Z)(s,Qw),v=(e=>{const{classes:t,disableUnderline:i}=e,n={root:["root",!i&&"underline"],input:["input"]},o=(0,Lt.Z)(n,Xw,t);return(0,St.Z)({},t,o)})(s),_={root:{ownerState:{disableUnderline:a}}},b=(null!=g?g:c)?(0,Ti.Z)(null!=g?g:c,_):_,y=null!=(i=null!=(n=p.root)?n:l.Root)?i:Jw,C=null!=(o=null!=(r=p.input)?r:l.Input)?o:eS;return(0,Tt.jsx)(Ca,(0,St.Z)({slots:{root:y,input:C},slotProps:b,fullWidth:d,inputComponent:u,multiline:h,ref:t,type:m},f,{classes:v}))}));tS.muiName="Input";const iS=tS;function nS(e){return(0,Rt.Z)("MuiFilledInput",e)}const oS=(0,St.Z)({},Ys,(0,Nt.Z)("MuiFilledInput",["root","underline","input"])),rS=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sS=(0,It.ZP)(va,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[...ma(e,t),!i.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var i;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,St.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}},[`&.${oS.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${oS.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(i=(e.vars||e).palette[t.color||"primary"])?void 0:i.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"},[`&.${oS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${oS.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(.${oS.disabled}, .${oS.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${oS.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,St.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),aS=(0,It.ZP)(_a,{name:"MuiFilledInput",slot:"Input",overridesResolver:fa})((({theme:e,ownerState:t})=>(0,St.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.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),lS=i.forwardRef((function(e,t){var i,n,o,r;const s=(0,Dt.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,wt.Z)(s,rS),f=(0,St.Z)({},s,{fullWidth:c,inputComponent:d,multiline:u,type:p}),v=(e=>{const{classes:t,disableUnderline:i}=e,n={root:["root",!i&&"underline"],input:["input"]},o=(0,Lt.Z)(n,nS,t);return(0,St.Z)({},t,o)})(s),_={root:{ownerState:f},input:{ownerState:f}},b=(null!=h?h:l)?(0,Ti.Z)(null!=h?h:l,_):_,y=null!=(i=null!=(n=g.root)?n:a.Root)?i:sS,C=null!=(o=null!=(r=g.input)?r:a.Input)?o:aS;return(0,Tt.jsx)(Ca,(0,St.Z)({slots:{root:y,input:C},componentsProps:b,fullWidth:c,inputComponent:d,multiline:u,ref:t,type:p},m,{classes:v}))}));lS.muiName="Input";const cS=lS;function dS(e){return(0,Rt.Z)("MuiFormLabel",e)}const uS=(0,Nt.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hS=["children","className","color","component","disabled","error","filled","focused","required"],gS=(0,It.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,St.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,St.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${uS.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${uS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${uS.error}`]:{color:(e.vars||e).palette.error.main}}))),pS=(0,It.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${uS.error}`]:{color:(e.vars||e).palette.error.main}}))),mS=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:r="label"}=i,s=(0,wt.Z)(i,hS),a=Ks({props:i,muiFormControl:Gs(),states:["color","required","focused","disabled","error","filled"]}),l=(0,St.Z)({},i,{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:i,focused:n,disabled:o,error:r,filled:s,required:a}=e,l={root:["root",`color${(0,Gt.Z)(i)}`,o&&"disabled",r&&"error",s&&"filled",n&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return(0,Lt.Z)(l,dS,t)})(l);return(0,Tt.jsxs)(gS,(0,St.Z)({as:r,ownerState:l,className:(0,xt.Z)(c.root,o),ref:t},s,{children:[n,a.required&&(0,Tt.jsxs)(pS,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))})),fS=mS;function vS(e){return(0,Rt.Z)("MuiInputLabel",e)}(0,Nt.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _S=["disableAnimation","margin","shrink","variant","className"],bS=(0,It.ZP)(fS,{shouldForwardProp:e=>(0,It.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${uS.asterisk}`]:t.asterisk},t.root,i.formControl&&t.formControl,"small"===i.size&&t.sizeSmall,i.shrink&&t.shrink,!i.disableAnimation&&t.animated,i.focused&&t.focused,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,St.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,St.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,St.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,St.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% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),yS=i.forwardRef((function(e,t){const i=(0,Dt.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:r}=i,s=(0,wt.Z)(i,_S),a=Gs();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=Ks({props:i,muiFormControl:a,states:["size","variant","required","focused"]}),d=(0,St.Z)({},i,{disableAnimation:n,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),u=(e=>{const{classes:t,formControl:i,size:n,shrink:o,disableAnimation:r,variant:s,required:a}=e,l={root:["root",i&&"formControl",!r&&"animated",o&&"shrink",n&&"normal"!==n&&`size${(0,Gt.Z)(n)}`,s],asterisk:[a&&"asterisk"]},c=(0,Lt.Z)(l,vS,t);return(0,St.Z)({},t,c)})(d);return(0,Tt.jsx)(bS,(0,St.Z)({"data-shrink":l,ownerState:d,ref:t,className:(0,xt.Z)(u.root,r)},s,{classes:u}))})),CS=yS;function wS(e){return(0,Rt.Z)("MuiFormControl",e)}(0,Nt.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const SS=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],xS=(0,It.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,St.Z)({},t.root,t[`margin${(0,Gt.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,St.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%"}))),LS=i.forwardRef((function(e,t){const n=(0,Dt.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"}=n,v=(0,wt.Z)(n,SS),_=(0,St.Z)({},n,{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:i,fullWidth:n}=e,o={root:["root","none"!==i&&`margin${(0,Gt.Z)(i)}`,n&&"fullWidth"]};return(0,Lt.Z)(o,wS,t)})(_),[y,C]=i.useState((()=>{let e=!1;return o&&i.Children.forEach(o,(t=>{if(!(0,Dr.Z)(t,["Input","Select"]))return;const i=(0,Dr.Z)(t,["Select"])?t.props.input:t;i&&i.props.startAdornment&&(e=!0)})),e})),[w,S]=i.useState((()=>{let e=!1;return o&&i.Children.forEach(o,(t=>{(0,Dr.Z)(t,["Input","Select"])&&(ga(t.props,!0)||ga(t.props.inputProps,!0))&&(e=!0)})),e})),[x,L]=i.useState(!1);l&&x&&L(!1);const k=void 0===d||l?x:d;let E;const D=i.useMemo((()=>({adornedStart:y,setAdornedStart:C,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})),[y,s,l,c,w,k,u,h,E,p,m,f]);return(0,Tt.jsx)(Zs.Provider,{value:D,children:(0,Tt.jsx)(xS,(0,St.Z)({as:a,ownerState:_,className:(0,xt.Z)(b.root,r),ref:t},v,{children:o}))})})),kS=LS;function ES(e){return(0,Rt.Z)("MuiFormHelperText",e)}const DS=(0,Nt.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var IS;const NS=["children","className","component","disabled","error","filled","focused","margin","required","variant"],RS=(0,It.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.size&&t[`size${(0,Gt.Z)(i.size)}`],i.contained&&t.contained,i.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,St.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${DS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${DS.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),qS=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:r="p"}=i,s=(0,wt.Z)(i,NS),a=Ks({props:i,muiFormControl:Gs(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,St.Z)({},i,{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:i,size:n,disabled:o,error:r,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",r&&"error",n&&`size${(0,Gt.Z)(n)}`,i&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,Lt.Z)(c,ES,t)})(l);return(0,Tt.jsx)(RS,(0,St.Z)({as:r,ownerState:l,className:(0,xt.Z)(c.root,o),ref:t},s,{children:" "===n?IS||(IS=(0,Tt.jsx)("span",{className:"notranslate",children:""})):n}))})),TS=qS;function OS(e){return(0,Rt.Z)("MuiNativeSelect",e)}const MS=(0,Nt.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AS=["className","disabled","error","IconComponent","inputRef","variant"],PS=({ownerState:e,theme:t})=>(0,St.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,St.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"},[`&.${MS.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}}),FS=(0,It.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:It.FO,overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.select,t[i.variant],i.error&&t.error,{[`&.${MS.multiple}`]:t.multiple}]}})(PS),BS=({ownerState:e,theme:t})=>(0,St.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${MS.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),WS=(0,It.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${(0,Gt.Z)(i.variant)}`],i.open&&t.iconOpen]}})(BS),VS=i.forwardRef((function(e,t){const{className:n,disabled:o,error:r,IconComponent:s,inputRef:a,variant:l="standard"}=e,c=(0,wt.Z)(e,AS),d=(0,St.Z)({},e,{disabled:o,variant:l,error:r}),u=(e=>{const{classes:t,variant:i,disabled:n,multiple:o,open:r,error:s}=e,a={select:["select",i,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Gt.Z)(i)}`,r&&"iconOpen",n&&"disabled"]};return(0,Lt.Z)(a,OS,t)})(d);return(0,Tt.jsxs)(i.Fragment,{children:[(0,Tt.jsx)(FS,(0,St.Z)({ownerState:d,className:(0,xt.Z)(u.select,n),disabled:o,ref:a||t},c)),e.multiple?null:(0,Tt.jsx)(WS,{as:s,ownerState:d,className:u.icon})]})})),zS=VS;function HS(e){return(0,Rt.Z)("MuiSelect",e)}const jS=(0,Nt.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var US;const $S=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],ZS=(0,It.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`&.${jS.select}`]:t.select},{[`&.${jS.select}`]:t[i.variant]},{[`&.${jS.error}`]:t.error},{[`&.${jS.multiple}`]:t.multiple}]}})(PS,{[`&.${jS.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),GS=(0,It.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${(0,Gt.Z)(i.variant)}`],i.open&&t.iconOpen]}})(BS),KS=(0,It.ZP)("input",{shouldForwardProp:e=>(0,It.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 XS(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function YS(e){return null==e||"string"==typeof e&&!e.trim()}const QS=i.forwardRef((function(e,t){var n;const{"aria-describedby":o,"aria-label":r,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:u,disabled:h,displayEmpty:g,error:p=!1,IconComponent:m,inputRef:f,labelId:v,MenuProps:_={},multiple:b,name:y,onBlur:C,onChange:w,onClose:S,onFocus:x,onOpen:L,open:k,readOnly:E,renderValue:D,SelectDisplayProps:I={},tabIndex:N,value:R,variant:q="standard"}=e,T=(0,wt.Z)(e,$S),[O,M]=(0,Au.Z)({controlled:R,default:u,name:"Select"}),[A,P]=(0,Au.Z)({controlled:k,default:d,name:"Select"}),F=i.useRef(null),B=i.useRef(null),[W,V]=i.useState(null),{current:z}=i.useRef(null!=k),[H,j]=i.useState(),U=(0,Nn.Z)(t,f),$=i.useCallback((e=>{B.current=e,e&&V(e)}),[]),Z=null==W?void 0:W.parentNode;i.useImperativeHandle(U,(()=>({focus:()=>{B.current.focus()},node:F.current,value:O})),[O]),i.useEffect((()=>{d&&A&&W&&!z&&(j(a?null:Z.clientWidth),B.current.focus())}),[W,a]),i.useEffect((()=>{s&&B.current.focus()}),[s]),i.useEffect((()=>{if(!v)return;const e=(0,xs.Z)(B.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&B.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const G=(e,t)=>{e?L&&L(t):S&&S(t),z||(j(a?null:Z.clientWidth),P(e))},K=i.Children.toArray(l),X=e=>t=>{let i;if(t.currentTarget.hasAttribute("tabindex")){if(b){i=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?i.push(e.props.value):i.splice(t,1)}else i=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==i&&(M(i),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:i,name:y}}),w(o,e)}b||G(!1,t)}},Y=null!==W&&A;let Q,J;delete T["aria-invalid"];const ee=[];let te=!1,ie=!1;(ga({value:O})||g)&&(D?Q=D(O):te=!0);const ne=K.map((e=>{if(!i.isValidElement(e))return null;let t;if(b){if(!Array.isArray(O))throw new Error((0,ea.Z)(2));t=O.some((t=>XS(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=XS(O,e.props.value),t&&te&&(J=e.props.children);return t&&(ie=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Q=b?0===ee.length?null:ee.reduce(((e,t,i)=>(e.push(t),i<ee.length-1&&e.push(", "),e)),[]):J);let oe,re=H;!a&&z&&W&&(re=Z.clientWidth),oe=void 0!==N?N:h?null:0;const se=I.id||(y?`mui-component-select-${y}`:void 0),ae=(0,St.Z)({},e,{variant:q,value:O,open:Y,error:p}),le=(e=>{const{classes:t,variant:i,disabled:n,multiple:o,open:r,error:s}=e,a={select:["select",i,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Gt.Z)(i)}`,r&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,Lt.Z)(a,HS,t)})(ae),ce=(0,St.Z)({},_.PaperProps,null==(n=_.slotProps)?void 0:n.paper),de=(0,Kw.Z)();return(0,Tt.jsxs)(i.Fragment,{children:[(0,Tt.jsx)(ZS,(0,St.Z)({ref:$,tabIndex:oe,role:"combobox","aria-controls":de,"aria-disabled":h?"true":void 0,"aria-expanded":Y?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[v,se].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{E||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))},onMouseDown:h||E?null:e=>{0===e.button&&(e.preventDefault(),B.current.focus(),G(!0,e))},onBlur:e=>{!Y&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:y}}),C(e))},onFocus:x},I,{ownerState:ae,className:(0,xt.Z)(I.className,le.select,c),id:se,children:YS(Q)?US||(US=(0,Tt.jsx)("span",{className:"notranslate",children:""})):Q})),(0,Tt.jsx)(KS,(0,St.Z)({"aria-invalid":p,value:Array.isArray(O)?O.join(","):O,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(M(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:h,className:le.nativeInput,autoFocus:s,ownerState:ae},T)),(0,Tt.jsx)(GS,{as:m,className:le.icon,ownerState:ae}),(0,Tt.jsx)(gw,(0,St.Z)({id:`menu-${y||""}`,anchorEl:Z,open:Y,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},_,{MenuListProps:(0,St.Z)({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:de},_.MenuListProps),slotProps:(0,St.Z)({},_.slotProps,{paper:(0,St.Z)({},ce,{style:(0,St.Z)({minWidth:re},null!=ce?ce.style:null)})}),children:ne}))]})})),JS=QS,ex=(0,en.Z)((0,Tt.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),tx=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ix=["root"],nx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,It.FO)(e)&&"variant"!==e,slot:"Root"},ox=(0,It.ZP)(iS,nx)(""),rx=(0,It.ZP)(Ea,nx)(""),sx=(0,It.ZP)(cS,nx)(""),ax=i.forwardRef((function(e,t){const n=(0,Dt.Z)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=ex,id:u,input:h,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:v=!1,native:_=!1,onClose:b,onOpen:y,open:C,renderValue:w,SelectDisplayProps:S,variant:x="outlined"}=n,L=(0,wt.Z)(n,tx),k=_?zS:JS,E=Ks({props:n,muiFormControl:Gs(),states:["variant","error"]}),D=E.variant||x,I=(0,St.Z)({},n,{variant:D,classes:s}),N=(e=>{const{classes:t}=e;return t})(I),R=(0,wt.Z)(N,ix),q=h||{standard:(0,Tt.jsx)(ox,{ownerState:I}),outlined:(0,Tt.jsx)(rx,{label:p,ownerState:I}),filled:(0,Tt.jsx)(sx,{ownerState:I})}[D],T=(0,Nn.Z)(t,q.ref);return(0,Tt.jsx)(i.Fragment,{children:i.cloneElement(q,(0,St.Z)({inputComponent:k,inputProps:(0,St.Z)({children:r,error:E.error,IconComponent:d,variant:D,type:void 0,multiple:v},_?{id:u}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:b,onOpen:y,open:C,renderValue:w,SelectDisplayProps:(0,St.Z)({id:u},S)},g,{classes:g?(0,Ti.Z)(R,g.classes):R},h?h.props.inputProps:{})},v&&_&&"outlined"===D?{notched:!0}:{},{ref:T,className:(0,xt.Z)(q.props.className,a,N.root)},!h&&{variant:D},L))})}));ax.muiName="Select";const lx=ax;function cx(e){return(0,Rt.Z)("MuiTextField",e)}(0,Nt.Z)("MuiTextField",["root"]);const dx=["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"],ux={standard:iS,filled:cS,outlined:Ea},hx=(0,It.ZP)(kS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gx=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiTextField"}),{autoComplete:n,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:y,minRows:C,multiline:w=!1,name:S,onBlur:x,onChange:L,onFocus:k,placeholder:E,required:D=!1,rows:I,select:N=!1,SelectProps:R,type:q,value:T,variant:O="outlined"}=i,M=(0,wt.Z)(i,dx),A=(0,St.Z)({},i,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:h,multiline:w,required:D,select:N,variant:O}),P=(e=>{const{classes:t}=e;return(0,Lt.Z)({root:["root"]},cx,t)})(A),F={};"outlined"===O&&(m&&void 0!==m.shrink&&(F.notched=m.shrink),F.label=b),N&&(R&&R.native||(F.id=void 0),F["aria-describedby"]=void 0);const B=(0,Kw.Z)(p),W=g&&B?`${B}-helper-text`:void 0,V=b&&B?`${B}-label`:void 0,z=ux[O],H=(0,Tt.jsx)(z,(0,St.Z)({"aria-describedby":W,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:h,multiline:w,name:S,rows:I,maxRows:y,minRows:C,type:q,value:T,id:B,inputRef:_,onBlur:x,onChange:L,onFocus:k,placeholder:E,inputProps:f},F,v));return(0,Tt.jsxs)(hx,(0,St.Z)({className:(0,xt.Z)(P.root,s),disabled:c,error:d,fullWidth:h,ref:t,required:D,color:a,variant:O,ownerState:A},M,{children:[null!=b&&""!==b&&(0,Tt.jsx)(CS,(0,St.Z)({htmlFor:B,id:V},m,{children:b})),N?(0,Tt.jsx)(lx,(0,St.Z)({"aria-describedby":W,id:B,labelId:V,value:T,input:H},R,{children:r})):H,g&&(0,Tt.jsx)(TS,(0,St.Z)({id:W},u,{children:g}))]}))})),px=gx,mx="Search",fx={gridContainer:`${mx}-gridContainer`,gridItem:`${mx}-gridItem`},vx=(0,It.ZP)(Mo)((({theme:e})=>({[`& .${fx.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${fx.gridItem}`]:{padding:e.spacing(0,1,0,1)}})));function _x({onChange:e=(()=>{}),onEnter:t=(()=>{}),onEscape:n=(()=>{})}){const[o,r]=(0,i.useState)("");return i.createElement(vx,{className:fx.gridContainer,item:!0,container:!0,direction:"row",alignItems:"center"},i.createElement(Mo,{item:!0},i.createElement(Nf,null)),i.createElement(Mo,{className:fx.gridItem,item:!0,xs:!0},i.createElement(px,{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":n()}}})))}function bx({field:e,onSelect:t,sub:n,parts:o}){return i.createElement(Hr,{button:!0,onClick:()=>t(e.qName),"data-key":e.qName},i.createElement(Kr,null,o.map(((e,t)=>i.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),n&&i.createElement(Zw.Z,{fontSize:"small"}))}function yx({item:e,onSelect:t,parts:n}){return i.createElement(Hr,{button:!0,onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId},i.createElement(Kr,null,n.map(((e,t)=>i.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function Cx({aggr:e,field:t,onSelect:n}){return i.createElement(Hr,{button:!0,onClick:()=>n(e),"data-key":e},i.createElement(Kr,null,`${e}(${t})`))}function wx({app:e,onSelect:t,title:n="",type:o="dimension",searchTerm:r=""}){const[s]=Pw(e,o),a=(0,i.useMemo)((()=>s.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[s]);return s.length>0?i.createElement(i.Fragment,null,i.createElement(zw,{component:"div",style:{backgroundColor:"inherit"}},n),a.map((e=>{const n=$w()(e.qData.title,r),o=jw()(e.qData.title,n);return r&&0===n.length?null:i.createElement(yx,{key:e.qInfo.qId,item:e,onSelect:t,parts:o})}))):null}function Sx({alignTo:e,show:t,close:n,onSelected:o,type:r}){const s=(0,i.useContext)(qw),[a,l]=(0,i.useState)(null),[c,d]=(0,i.useState)(""),u=ei(),[h]=Mc({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=Vc(h),p=(0,i.useMemo)((()=>(g&&g.qFieldList.qItems||[]).slice().sort(((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())))),[g]),m=e=>{e&&e.qId?(o(e),n()):"measure"===r?l(e):(o({field:e}),n())},f=e=>{o({field:a,aggregation:e}),n()};return i.createElement(Ud,{open:t,onClose:n,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&&i.createElement(_x,{onChange:d}),a&&i.createElement(kr,{dense:!0,component:"nav"},i.createElement(Hr,{button:!0,onClick:()=>l(null)},i.createElement(tf,null,i.createElement(Gw.Z,null)),i.createElement(Kr,null,"Back")),i.createElement(Mm,null),i.createElement(zw,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>i.createElement(Cx,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&i.createElement(kr,{dense:!0,component:"nav",style:{background:u.palette.background.lightest}},i.createElement(wx,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),i.createElement(zw,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const t=$w()(e.qName,c),n=jw()(e.qName,t);return c&&0===t.length?null:i.createElement(bx,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:n})}))))}const xx=({field:e,libraryItems:t})=>{if(e.qLibraryId){const i=t.filter((t=>t.qInfo.qId===e.qLibraryId))[0];return i?i.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function Lx({items:e,type:t="dimension",label:n="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,i.useState)(!1),d=(0,i.useRef)(null),u=(0,i.useContext)(qw),[h]=Pw(u,t);return i.createElement("div",null,i.createElement(zo,{variant:"overline"},n),i.createElement(kr,{dense:!0},e.map(((e,n)=>i.createElement(Hr,{disableGutters:!0,key:e.qDef&&e.qDef.cId||n},i.createElement(Kr,null,i.createElement(xx,{field:e,libraryItems:h,type:t})),i.createElement(Pr,null,i.createElement(So,{onClick:()=>{s(n)},size:"large"},i.createElement(yr,null))))))),i.createElement(Pa,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&i.createElement(Sx,{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}))}const kx=(e,t,i)=>{const n=t.split("/");let o=e;if(void 0===o)return i;for(let e=0;e<n.length;++e)if(""!==n[e]){if(void 0===o[n[e]])return i;o=o[n[e]]}return o};function Ex({setProperties:e,target:t,properties:n}){const[o,r]=(0,i.useState)([]),s=t.dimensions&&t.dimensions.max&&t.dimensions.max()>1?Ow:T_,a=t.propertyPath.match("/qHyperCube")?R_:s,l=kx(n,t.propertyPath),c=(0,i.useMemo)((()=>a({def:t,dc:l,properties:n,dimensions:o})),[l,t,n,o]);return i.createElement("div",{style:{width:"100%"}},i.createElement(zo,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},t.propertyPath),i.createElement(Lx,{key:"dimensions",onAdded:t=>{const i="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(i);e(n).then((()=>{r([...o,s])}))},onRemoved:t=>{c.removeDimension(t),e(n).then((()=>{r([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),i.createElement(Lx,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(n)},onRemoved:t=>{c.removeMeasure(t),e(n)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function Dx({setProperties:e,sn:t,properties:n}){if(!t)return null;const{targets:o}=t.qae.data;return o.length?i.createElement(kr,null,o.map((t=>i.createElement(Hr,{key:t.propertyPath,divider:!0,disableGutters:!0},i.createElement(Ex,{target:t,properties:n,setProperties:e}))))):i.createElement(zo,null,"No data targets found")}const Ix=i.createContext({});function Nx(e){return(0,Rt.Z)("MuiAccordion",e)}const Rx=(0,Nt.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),qx=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],Tx=(0,It.ZP)(Td,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${Rx.region}`]:t.region},t.root,!i.square&&t.rounded,!i.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"}},[`&.${Rx.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Rx.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,St.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&&{[`&.${Rx.expanded}`]:{margin:"16px 0"}}))),Ox=i.forwardRef((function(e,t){const n=(0,Dt.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=mr,TransitionProps:g}=n,p=(0,wt.Z)(n,qx),[m,f]=(0,Au.Z)({controlled:c,default:s,name:"Accordion",state:"expanded"}),v=i.useCallback((e=>{f(!m),d&&d(e,!m)}),[m,d,f]),[_,...b]=i.Children.toArray(o),y=i.useMemo((()=>({expanded:m,disabled:a,disableGutters:l,toggle:v})),[m,a,l,v]),C=(0,St.Z)({},n,{square:u,disabled:a,disableGutters:l,expanded:m}),w=(e=>{const{classes:t,square:i,expanded:n,disabled:o,disableGutters:r}=e,s={root:["root",!i&&"rounded",n&&"expanded",o&&"disabled",!r&&"gutters"],region:["region"]};return(0,Lt.Z)(s,Nx,t)})(C);return(0,Tt.jsxs)(Tx,(0,St.Z)({className:(0,xt.Z)(w.root,r),ref:t,ownerState:C,square:u},p,{children:[(0,Tt.jsx)(Ix.Provider,{value:y,children:_}),(0,Tt.jsx)(h,(0,St.Z)({in:m,timeout:"auto"},g,{children:(0,Tt.jsx)("div",{"aria-labelledby":_.props.id,id:_.props["aria-controls"],role:"region",className:w.region,children:b})}))]}))})),Mx=Ox;function Ax(e){return(0,Rt.Z)("MuiAccordionSummary",e)}const Px=(0,Nt.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Fx=["children","className","expandIcon","focusVisibleClassName","onClick"],Bx=(0,It.ZP)(vo,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const i={duration:e.transitions.duration.shortest};return(0,St.Z)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],i),[`&.${Px.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Px.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Px.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Px.expanded}`]:{minHeight:64}})})),Wx=(0,It.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,St.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Px.expanded}`]:{margin:"20px 0"}}))),Vx=(0,It.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}),[`&.${Px.expanded}`]:{transform:"rotate(180deg)"}}))),zx=i.forwardRef((function(e,t){const n=(0,Dt.Z)({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l}=n,c=(0,wt.Z)(n,Fx),{disabled:d=!1,disableGutters:u,expanded:h,toggle:g}=i.useContext(Ix),p=(0,St.Z)({},n,{expanded:h,disabled:d,disableGutters:u}),m=(e=>{const{classes:t,expanded:i,disabled:n,disableGutters:o}=e,r={root:["root",i&&"expanded",n&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",i&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",i&&"expanded"]};return(0,Lt.Z)(r,Ax,t)})(p);return(0,Tt.jsxs)(Bx,(0,St.Z)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":h,className:(0,xt.Z)(m.root,r),focusVisibleClassName:(0,xt.Z)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:t,ownerState:p},c,{children:[(0,Tt.jsx)(Wx,{className:m.content,ownerState:p,children:o}),s&&(0,Tt.jsx)(Vx,{className:m.expandIconWrapper,ownerState:p,children:s})]}))})),Hx=zx;function jx(e){return(0,Rt.Z)("MuiAccordionDetails",e)}(0,Nt.Z)("MuiAccordionDetails",["root"]);const Ux=["className"],$x=(0,It.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),Zx=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiAccordionDetails"}),{className:n}=i,o=(0,wt.Z)(i,Ux),r=i,s=(e=>{const{classes:t}=e;return(0,Lt.Z)({root:["root"]},jx,t)})(r);return(0,Tt.jsx)($x,(0,St.Z)({className:(0,xt.Z)(s.root,n),ref:t,ownerState:r},o))})),Gx=Zx;var Kx=s(5756);let Xx=null;const Yx="AutoComponents",Qx={summary:`${Yx}-summary`,details:`${Yx}-details`,root:`${Yx}-root`},Jx=(0,It.ZP)(Mo)((({theme:e})=>({[`& .${Qx.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${Qx.details}`]:{padding:e.spacing(1)}}))),eL=(0,It.ZP)(Mx)((({theme:e})=>({[`& .${Qx.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),tL=(e,t)=>Array.isArray(e)?"array":oL&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":oL&&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",iL={boolean:function({property:e,value:t,target:n,changed:o}){return i.createElement(Mu,{control:i.createElement(eh,{checked:t,onChange:t=>{n[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:t,target:n,changed:o}){const[r,s]=(0,i.useState)(t);return i.createElement(px,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(n[e]=r,o())},label:e,value:r})},object:function({property:e,value:t,changed:n,app:o}){return i.createElement(eL,{square:!0,className:Qx.root},i.createElement(Hx,{expandIcon:i.createElement(Kx.Z,null),className:Qx.summary},i.createElement(zo,null,e)),i.createElement(Gx,{className:Qx.details},rL(t,n,o)))},number:function({property:e,value:t,target:n,changed:o}){const[r,s]=(0,i.useState)(+t);return i.createElement(px,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(n[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:t,target:n,changed:o}){const r=t.qStringExpression&&t.qStringExpression.qExpr?t.qStringExpression.qExpr:"",[s,a]=(0,i.useState)(r);return i.createElement(px,{variant:"standard",InputProps:{startAdornment:i.createElement(If,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==t&&(n[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:t,target:n,changed:o,app:r}){const[s,a]=(0,i.useState)(t.name),[l,c]=(0,i.useState)([]);return(0,i.useEffect)((()=>{!async function(){const e=await async function(e){return Xx||(Xx=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await Xx.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?i.createElement("em",null,"No variables in app"):i.createElement(kS,{size:"small",fullWidth:!0},i.createElement(lx,{onChange:t=>{a(t.target.value),n[e].name=t.target.value,n[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:s,renderValue:e=>0===e.length?i.createElement("em",null,"Select a variable"):e},l.map((e=>i.createElement(Ym,{key:e.value,value:e.value},e.label)))))}},nL=/^q[A-Z]/;let oL=!1;function rL(e,t,n,o){o&&o.PP_EXPRESSIONS&&(oL=!0);const r=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(nL.test(t))return!1;const i=tL(e[t],t);return!!iL[i]&&{Component:iL[i],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return i.createElement(Jx,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map((o=>i.createElement(Mo,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},i.createElement(o.Component,{key:o.key,app:n,property:o.property,value:o.value,target:e,changed:t})))))}function sL({viz:e,sn:t,isTemp:n,storage:o,flags:r}){const[s,a]=Rw(e.id),l=(0,i.useContext)(qw),[c,d]=(0,i.useState)(!1!==o.get("readFromCache")),u=(0,i.useCallback)((()=>{a(s)}),[e,t,s]);return t&&e&&s?i.createElement("div",{style:{minWidth:"250px",padding:"8px"}},n&&i.createElement(i.Fragment,null,i.createElement(Mo,{item:!0,container:!0,alignItems:"center"},i.createElement(Mu,{control:i.createElement(eh,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),i.createElement(Mm,null)),i.createElement(Dx,{properties:s,setProperties:a,sn:t}),rL(s,u,l,r)):null}function aL(e){return(0,Rt.Z)("MuiDialog",e)}const lL=(0,Nt.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cL=i.createContext({}),dL=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],uL=(0,It.ZP)(Cd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),hL=(0,It.ZP)(Ed,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),gL=(0,It.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.container,t[`scroll${(0,Gt.Z)(i.scroll)}`]]}})((({ownerState:e})=>(0,St.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"}}))),pL=(0,It.ZP)(Td,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.paper,t[`scrollPaper${(0,Gt.Z)(i.scroll)}`],t[`paperWidth${(0,Gt.Z)(String(i.maxWidth))}`],i.fullWidth&&t.paperFullWidth,i.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,St.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):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${lL.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}`,[`&.${lL.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,[`&.${lL.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),mL=i.forwardRef((function(e,t){const n=(0,Dt.Z)({props:e,name:"MuiDialog"}),o=ei(),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=Td,PaperProps:y={},scroll:C="paper",TransitionComponent:w=fd,transitionDuration:S=r,TransitionProps:x}=n,L=(0,wt.Z)(n,dL),k=(0,St.Z)({},n,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:p,maxWidth:m,scroll:C}),E=(e=>{const{classes:t,scroll:i,maxWidth:n,fullWidth:o,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${(0,Gt.Z)(i)}`],paper:["paper",`paperScroll${(0,Gt.Z)(i)}`,`paperWidth${(0,Gt.Z)(String(n))}`,o&&"paperFullWidth",r&&"paperFullScreen"]};return(0,Lt.Z)(s,aL,t)})(k),D=i.useRef(),I=(0,Kw.Z)(a),N=i.useMemo((()=>({titleId:I})),[I]);return(0,Tt.jsx)(hL,(0,St.Z)({className:(0,xt.Z)(E.root,u),closeAfterTransition:!0,components:{Backdrop:uL},componentsProps:{backdrop:(0,St.Z)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:h,onClose:v,open:_,ref:t,onClick:e=>{D.current&&(D.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:k},L,{children:(0,Tt.jsx)(w,(0,St.Z)({appear:!0,in:_,timeout:S,role:"presentation"},x,{children:(0,Tt.jsx)(gL,{className:(0,xt.Z)(E.container),onMouseDown:e=>{D.current=e.target===e.currentTarget},ownerState:k,children:(0,Tt.jsx)(pL,(0,St.Z)({as:b,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":I},y,{className:(0,xt.Z)(E.paper,y.className),ownerState:k,children:(0,Tt.jsx)(cL.Provider,{value:N,children:d})}))})}))}))})),fL=mL;function vL(e){return(0,Rt.Z)("MuiDialogTitle",e)}const _L=(0,Nt.Z)("MuiDialogTitle",["root"]),bL=["className","id"],yL=(0,It.ZP)(zo,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),CL=i.forwardRef((function(e,t){const n=(0,Dt.Z)({props:e,name:"MuiDialogTitle"}),{className:o,id:r}=n,s=(0,wt.Z)(n,bL),a=n,l=(e=>{const{classes:t}=e;return(0,Lt.Z)({root:["root"]},vL,t)})(a),{titleId:c=r}=i.useContext(cL);return(0,Tt.jsx)(yL,(0,St.Z)({component:"h2",className:(0,xt.Z)(l.root,o),ownerState:a,ref:t,variant:"h6",id:null!=r?r:c},s))})),wL=CL;function SL(e){return(0,Rt.Z)("MuiDialogContent",e)}(0,Nt.Z)("MuiDialogContent",["root","dividers"]);const xL=["className","dividers"],LL=(0,It.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,St.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}`}:{[`.${_L.root} + &`]:{paddingTop:0}}))),kL=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=i,r=(0,wt.Z)(i,xL),s=(0,St.Z)({},i,{dividers:o}),a=(e=>{const{classes:t,dividers:i}=e,n={root:["root",i&&"dividers"]};return(0,Lt.Z)(n,SL,t)})(s);return(0,Tt.jsx)(LL,(0,St.Z)({className:(0,xt.Z)(a.root,n),ownerState:s,ref:t},r))})),EL=kL;function DL(e){return(0,Rt.Z)("MuiDialogActions",e)}(0,Nt.Z)("MuiDialogActions",["root","spacing"]);const IL=["className","disableSpacing"],NL=(0,It.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,St.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}}))),RL=i.forwardRef((function(e,t){const i=(0,Dt.Z)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=i,r=(0,wt.Z)(i,IL),s=(0,St.Z)({},i,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:i}=e,n={root:["root",!i&&"spacing"]};return(0,Lt.Z)(n,DL,t)})(s);return(0,Tt.jsx)(NL,(0,St.Z)({className:(0,xt.Z)(a.root,n),ownerState:s,ref:t},r))})),qL=RL;var TL=s(3713);function OL({model:e,show:t,close:n}){const[o,r]=(0,i.useState)(""),[s,a]=(0,i.useState)(null),[l,c]=(0,i.useState)([]),[d,u,h]=Hc(),g=ei(),p=(0,i.useCallback)((()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(n)}));return(0,i.useEffect)((()=>{if(!t)return;const i=()=>{e&&t&&e.getProperties().then((e=>{t&&r(JSON.stringify(e||{},null,2))}))};return e.on("changed",i),i(),()=>{e&&e.removeListener("changed",i)}}),[e&&e.id,t]),(0,i.useEffect)((()=>{if(!(d&&h&&u&&o))return;const{left:e,top:t,width:i,height:n}=u;if(0===e&&0===t&&0===i&&0===n)return;const r=TL.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=TL.editor.getModelMarkers();c(e)}));return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}}),[h,u,o]),i.createElement(fL,{disableEscapeKeyDown:!0,open:t,scroll:"paper",maxWidth:"md",onClose:n,PaperProps:{style:{height:"80%",width:"80%"}}},i.createElement(wL,null,"Modify object properties"),i.createElement(EL,{dividers:!0},i.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),i.createElement(qL,null,i.createElement(Pa,{variant:"contained",onClick:n},"Cancel"),i.createElement(Pa,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const ML=i.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),AL=i.createContext();function PL({id:e,onLoad:t}){const n=(0,i.useContext)(AL),o=(0,i.useRef)();return(0,i.useEffect)((()=>{const i=n.render({id:e,element:o.current});return i.then((e=>{t(e,o.current)})),()=>{i.then((e=>{e.destroy()}))}}),[e]),i.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const FL="Cell",BL={secondaryIcon:`${FL}-secondaryIcon`,drop:`${FL}-drop`},WL=(0,It.ZP)(Mo)((({theme:e})=>({[`& .${BL.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${BL.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function VL({id:e,expandable:t,minHeight:n}){const o=(0,i.useContext)(qw),[r,s]=(0,i.useState)(null),[a,l]=(0,i.useState)(!1),[c,d]=(0,i.useState)(null),{currentThemeName:u,activeViz:h,setActiveViz:g,setExpandedObject:p,expandedObject:m}=(0,i.useContext)(ML),f=m===e,v=(0,i.useRef)();(0,i.useEffect)((()=>{const t=o.getObject(e).then((e=>(s(e),e)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[_,b]=(0,i.useState)(!1),y=(0,i.useCallback)((()=>{b(!1)}),[]),C=(0,i.useCallback)(((e,t)=>{v.current={viz:e,el:t},d(e)}),[e]),w=(0,i.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 i.createElement(WL,{container:!0,direction:"column",style:{minHeight:n,height:"100%",position:"relative"}},i.createElement(Mo,{item:!0},i.createElement(jC,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},i.createElement(OL,{model:r,show:_,close:y}),i.createElement(So,{title:"Modify object properties",className:BL.secondaryIcon,disabled:!r,onClick:()=>b(!0),size:"large"},br({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"}}]})),i.createElement(So,{title:"Open in single render view",className:BL.secondaryIcon,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"},br({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"}}]})),i.createElement(So,{title:"Take and render as snapshot",className:BL.secondaryIcon,disabled:!r,onClick:()=>w(),size:"large"},br({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?i.createElement(sl,{size:24}):i.createElement(So,{title:"Export as image",className:BL.secondaryIcon,disabled:!r,onClick:()=>w(!0),size:"large"},br({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"}}]})),i.createElement(Mo,{item:!0,xs:!0}),t&&i.createElement(So,{title:"Edit",className:BL.secondaryIcon,disabled:!c||x,onClick:()=>g(c),size:"large"},br({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&&i.createElement(So,{title:"Expand",disabled:!r||!c,className:BL.secondaryIcon,onClick:()=>{f?p(null):(p(e),g(c))},size:"large"},br({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"}}]})))),i.createElement(Mo,{item:!0,xs:!0,style:{...S},className:BL.drop},i.createElement(PL,{id:e,onLoad:C})))}function zL({info:e,storage:t,uid:n}){const o=(0,i.useContext)(AL),{activeViz:r,setActiveViz:s}=(0,i.useContext)(ML),[a]=Rw(n);return(0,i.useEffect)((()=>{if(!n)return;const i=o.render({type:e.supernova.name,properties:{...!1!==t.get("readFromCache")?t.props(e.supernova.name):{},qInfo:{qId:n,qType:e.supernova.name}}});return i.then((e=>{s(e)})),()=>{i.then((e=>e.destroy()))}}),[n]),(0,i.useEffect)((()=>{a&&t.props(e.supernova.name,a)}),[a]),r&&r.id===n?i.createElement(Mo,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},i.createElement(Mo,{item:!0,xs:!0},i.createElement(VL,{id:n}))):null}function HL({types:e,cache:t}){const n=(0,i.useContext)(qw),[o]=zc(n),[r,s]=(0,i.useState)(null),{expandedObject:a}=(0,i.useContext)(ML);if((0,i.useEffect)((()=>{n.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 i.createElement(Mo,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>i.createElement(Mo,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${t}`},i.createElement(VL,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):i.createElement(Mo,{item:!0},i.createElement("div",null,i.createElement(zo,{display:"inline"},"Could not find any components with "),i.createElement(zo,{display:"inline"},i.createElement("code",null,`qType: "${e[0]}"`)),i.createElement(zo,{display:"inline"}," in the current app"))))}const jL=["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"],UL=["select","active","passive"];function $L(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function ZL(){const e=(0,i.useRef)(),t=X(),{info:n}=gt(),{waiting:o,app:r}=(({info:e})=>{const[t,n]=(0,i.useState)(null),[o,r]=(0,i.useState)(!0);(0,i.useEffect)((()=>{r(!0),e&&s().then((e=>n(e))).catch((e=>console.log(e))).finally((()=>r(!1)))}),[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:i,enigma:n=null,enigma:{host:o}={}}=e;let r="";if(i){const t=await ht({webIntegrationId:i,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=ye().buildUrl(n);return(await ve().create({schema:_e,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:t,setApp:n}})({info:n}),s=(0,i.useMemo)((()=>vt(r)),[r]),[a,l]=(0,i.useState)(null),[c,d]=(0,i.useState)(null),[u,h]=(0,i.useState)(null),[g,p]=(0,i.useState)(s.get("themeName")),[m,f]=(0,i.useState)(s.get("language")||"en-US"),[v,_]=(0,i.useState)("light"),[b,y]=(0,i.useState)(UL),[C,w]=(0,i.useState)(!0===s.get("objectListMode")),S=(0,i.useRef)(null),[x,L]=(0,i.useState)(),[k,E]=i.useState(null),[D,I]=i.useState(null),[N,R]=(0,i.useState)(!1),[q,T]=(0,i.useState)(null),O=Array.isArray(n?.themes)&&n.themes.length?["light","dark",...n.themes]:[],M=(0,i.useMemo)((()=>Ii(v)),[v]),A=(0,i.useMemo)((()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d})),[a,c,g]);(0,i.useEffect)((()=>{(async()=>{n&&(await function(e){const t=()=>{Iw(e.supernova.name,e.supernova.url).then((t=>{var i;window[e.supernova.name]=t,i=e.supernova.name,Nw[i]&&Nw[i].forEach((e=>e()))}))};if(e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t(),e.types){const t=e.types.map((e=>Iw(e.name,e.url).then((t=>{window[e.name]=t}))));return Promise.all(t)}return Promise.resolve()}(n),R(!0))})()}),[n]),(0,i.useEffect)((()=>{if(o||!N)return;const e=bC(r,{context:{theme:g,language:m,interactions:$L(b),keyboardNavigation:n?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:n?.flags,themes:n?.themes?n?.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(n?.supernova),n?.types&&n?.types.forEach((t=>{e.__DO_NOT_USE__.types.register(t)})),T(e)}),[r,n,o,N]),(0,i.useLayoutEffect)((()=>{q&&(q.context({theme:g}),"light"!==g&&"dark"!==g||_(g))}),[q,g]);const P=()=>{window[n?.supernova.name]&&(e.current=String(Date.now()),L(e.current))};return(0,i.useEffect)((()=>{q&&(q.selections().then((e=>e.mount(S.current))),window.onHotChange(n?.supernova.name,(()=>{q.__DO_NOT_USE__.types.clearFromCache(n?.supernova.name),q.__DO_NOT_USE__.types.register(n?.supernova),P(),q.__DO_NOT_USE__.types.get({name:n?.supernova.name}).supernova().then(h)})),P())}),[q,n]),(0,i.useEffect)((()=>{const t=()=>{r&&r.destroySessionObject(e.current)};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[r]),i.createElement(qw.Provider,{value:r},i.createElement(mi,{injectFirst:!0},i.createElement(hi,{theme:M},i.createElement(AL.Provider,{value:q},i.createElement(Mo,{container:!0,wrap:"nowrap",direction:"column",style:{background:M.palette.background.darkest,height:"100%"},gap:0},i.createElement(Mo,{item:!0},i.createElement(jC,{variant:"dense",style:{background:M.palette.background.paper,boxShadow:M.shadows[1]}},i.createElement(Mo,{container:!0,gap:1},i.createElement(Mo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(Mo,{item:!0},i.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},i.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"}})))),i.createElement(Mo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(So,{title:"Home",onClick:()=>t("/"),size:"large"},i.createElement(MC.Z,{style:{verticalAlign:"middle"}}))),i.createElement(Mo,{item:!0,xs:!0,zeroMinWidth:!0},i.createElement(As,{value:C?1:0,onChange:(e,t)=>{const i=1===t;s.save("objectListMode",i),i&&(l(null),d(null)),w(i)},"aria-label":"Navigation"},i.createElement(zs,{label:i.createElement(zo,null,"Create"),value:0}),i.createElement(zs,{label:i.createElement(zo,null,"Edit"),value:1}))),i.createElement(Mo,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(Mo,{item:!0,gap:1},i.createElement(zo,null,"State:")),i.createElement(Mo,{item:!0,gap:2},i.createElement(YC,{size:"small",value:b,onChange:(e,t)=>{y(t),q&&q.context({interactions:$L(t)})},color:"primary"},i.createElement(nw,{value:"select"},"Select"),i.createElement(nw,{value:"active"},"Active"),i.createElement(nw,{value:"passive"},"Passive"),i.createElement(nw,{value:"edit"},"Edit"))),i.createElement(Mo,{item:!0},O.length?i.createElement(i.Fragment,null,i.createElement(So,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},i.createElement(AC.Z,{fontSize:"small"})),i.createElement(gw,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},O.map((e=>i.createElement(Ym,{key:e,selected:e===g,onClick:()=>(e=>{E(null),s.save("themeName",e),p(e)})(e)},e))))):i.createElement(So,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?i.createElement(PC.Z,{fontSize:"small"}):i.createElement(FC.Z,{fontSize:"small"}))),i.createElement(Mo,{item:!0},i.createElement(Pa,{startIcon:i.createElement(BC.Z,null),title:"Select language",onClick:e=>I(e.currentTarget)},m),i.createElement(gw,{anchorEl:D,open:!!D,keepMounted:!0,onClose:()=>I(null)},jL.map((e=>i.createElement(Ym,{key:e,selected:e===m,onClick:()=>{return t=e,I(null),s.save("language",t),f(t),void(q&&q.context({language:t}));var t}},e))))))))),i.createElement(Mo,{item:!0,style:{padding:M.spacing(1,1,0,1)}},i.createElement("div",{ref:S,style:{flex:"0 0 auto",boxShadow:M.shadows[1]}})),i.createElement(Mo,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:M.spacing(0,1,1,1)}},i.createElement(ML.Provider,{value:A},u?i.createElement(Mo,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},i.createElement(Mo,{item:!0,xs:!0,zeroMinWidth:!0},C?i.createElement(HL,{cache:x,types:[n?.supernova.name]}):i.createElement(zL,{info:n,storage:s,uid:x})),a&&i.createElement(Mo,{item:!0,style:{background:M.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:M.shadows[1],padding:0}},i.createElement(sL,{sn:u,viz:a,isTemp:!C,storage:s,flags:n?.flags}))):i.createElement(Mo,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},i.createElement(Mo,{item:!0},i.createElement(sl,null))))))))))}const GL=()=>i.createElement(ge,null,i.createElement(Ct,null,i.createElement(ce,null,i.createElement(ae,{element:i.createElement(En,null)},i.createElement(ae,{path:"/",element:i.createElement($a,null)}),i.createElement(ae,{path:"/app-list",element:i.createElement(al,null)})),i.createElement(ae,{path:"/dev",element:i.createElement(ZL,null)}))));o.createRoot(document.querySelector("#app")).render(i.createElement(GL,null))})()})();
|