@nebula.js/cli-serve 6.0.0-alpha.0 → 6.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eHub.js CHANGED
@@ -99,5 +99,5 @@
99
99
  animation: ${0} 1.4s linear infinite;
100
100
  `),zl)),jl=(0,sn.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ul=(0,sn.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,Vn.A)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>(0,Jt.A)({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&&(0,Oo.AH)(Fl||(Fl=Wl`
101
101
  animation: ${0} 1.4s ease-in-out infinite;
102
- `),Vl)),$l=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,h=(0,Zt.A)(n,ql),u=(0,Jt.A)({},n,{color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,r={root:["root",n,`color${(0,Vn.A)(i)}`],svg:["svg"],circle:["circle",`circle${(0,Vn.A)(n)}`,o&&"circleDisableShrink"]};return(0,tn.A)(r,Rl,t)})(u),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,dn.jsx)(Hl,(0,Jt.A)({className:(0,en.A)(g.root,i),style:(0,Jt.A)({width:s,height:s},m,a),ownerState:u,ref:t,role:"progressbar"},f,h,{children:(0,dn.jsx)(jl,{className:g.svg,ownerState:u,viewBox:"22 22 44 44",children:(0,dn.jsx)(Ul,{className:g.circle,style:p,ownerState:u,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))}),Gl=$l,Kl=()=>{const e=K(),n=U(),{info:i,glob:o,treatAsDesktop:r}=Yt(),{loading:s,appList:a}=(({glob:e,info:n})=>{const i=K(),{setInfo:o,setActiveStep:r}=Yt(),[s,a]=(0,t.useState)(),[l,c]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{r(1),zt().then(e=>{o(e)})},[]),(0,t.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("/auth/isAuthorized")).json();return{isAuthorized:e}})().then(({isAuthorized:e})=>{if(e){const e=new URL(window.location.href);e.search.includes("shouldFetchAppList")||e.searchParams.append("shouldFetchAppList",!0),i(decodeURIComponent(`${e.pathname}${e.search}`))}}),(t.get("shouldFetchAppList")?(async()=>await(await fetch("/apps")).json()||[])():e?.getDocList())?.then(e=>{a(e),e&&c(!1)})},[window.location.search,c,n,e]),{appList:s,loading:l}})({glob:o,info:i});return t.createElement(mo,null,t.createElement(Lr,{variant:"h5",gutterBottom:!0},"Select an app"),s&&t.createElement(Gl,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&t.createElement(Lr,{component:"span"},"No apps found!"),a&&a.length>0&&t.createElement(gs,null,a.map(o=>t.createElement(Is,{button:!0,component:"a",key:o.qDocId,onClick:()=>(async({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,r=i.enigma.secure?"wss":"ws",s=i.enigma.port?`:${i.enigma.port}`:"",a=i.enigma.prefix?`/${i.enigma.prefix}`:"",l=("localhost"===i.enigma.host?`${i.enigma.host}${s}`:i.enigma.host)+a,c=await Ot(`https://${i.enigma.host}${a}`),d=c?`&qlik-csrf-token=${c}`:"",h=`${r}://${l}/app/${encodeURIComponent(n)}${d}`;e(`/dev/${o.replace(i.engineUrl,h)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:n,targetApp:r?o.qDocName:o.qDocId})},t.createElement(Os,{primary:o.qTitle,secondary:o.qDocId})))))};function Ql(e){return globalThis.process?.argv?Promise.all([s.e(241),s.e(917)]).then(s.bind(s,6917)):s.e(465).then(s.bind(s,1465)).then(t=>t.importRuntimeModule("auth@v1",e))}s(3475);var Yl={registerAuthModule:function(e,t){Ql().then(n=>n.registerAuthModule(e,t))},setDefaultHostConfig:function(e){Ql(e).then(t=>t.setDefaultHostConfig(e))},registerHostConfig:function(e,t){Ql(t).then(n=>n.registerHostConfig(e,t))},unregisterHostConfig:function(e){Ql().then(t=>t.unregisterHostConfig(e))},getAccessToken:async function({hostConfig:e}){return Ql(e).then(t=>t.getAccessToken({hostConfig:e}))},getWebResourceAuthParams:async function({hostConfig:e}){return Ql(e).then(t=>t.getWebResourceAuthParams({hostConfig:e}))}};const Xl=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let i=e;const o={language:e=>(e&&(i=e),i),add:e=>{const{id:t,locale:i}=e;Object.keys(i).forEach(e=>{n[e]||(n[e]={}),n[e][t]=i[e]})},get(e,o){let r;return r=n[i]&&void 0!==n[i][e]?n[i][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,(e,t)=>void 0!==n[t]?n[t]:e)})(r,o):r}};return o}({initial:e,fallback:t});return{translator:n}},Zl=JSON.parse('{"Accessibility_Object_NoTitle":{"id":"Accessibility.Object.NoTitle","locale":{"de-DE":"Kein Titel","en-US":"No title","es-ES":"Sin título","fr-FR":"Pas de titre","it-IT":"Nessun titolo","ja-JP":"タイトルなし","ko-KR":"제목 없음","nl-NL":"Geen titel","pl-PL":"Brak tytułu","pt-BR":"Sem título","ru-RU":"Без заголовка","sv-SE":"Ingen rubrik","tr-TR":"Başlık yok","zh-CN":"无标题","zh-TW":"無標題"}},"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_Clear_Search":{"id":"Listbox.Clear.Search","locale":{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},"Listbox_Cyclic":{"id":"Listbox.Cyclic","locale":{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},"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_ActionButton":{"id":"Object.ActionButton","locale":{"de-DE":"Schaltfläche","en-US":"Button","es-ES":"Botón","fr-FR":"Bouton","it-IT":"Pulsante","ja-JP":"ボタン","ko-KR":"버튼","nl-NL":"Knop","pl-PL":"Przycisk","pt-BR":"Botão","ru-RU":"Кнопка","sv-SE":"Knapp","tr-TR":"Düğme","zh-CN":"按钮","zh-TW":"按鈕"}},"Object_AutoChart":{"id":"Object.AutoChart","locale":{"de-DE":"Automatisches Diagramm","en-US":"Autochart","es-ES":"Gráfico automático","fr-FR":"Graphique automatique","it-IT":"Grafico automatico","ja-JP":"オートチャート","ko-KR":"자동 차트","nl-NL":"Automatisch diagram","pl-PL":"Automatyczny wykres","pt-BR":"Gráfico automático","ru-RU":"Автодиаграмма","sv-SE":"Automatiskt diagram","tr-TR":"Otomatik grafik","zh-CN":"自动图表","zh-TW":"自動圖表"}},"Object_BarChart":{"id":"Object.BarChart","locale":{"de-DE":"Balkendiagramm","en-US":"Bar chart","es-ES":"Gráfico de barras","fr-FR":"Graphique en barres","it-IT":"Grafico a barre","ja-JP":"棒グラフ","ko-KR":"막대형 차트","nl-NL":"Staafdiagram","pl-PL":"Wykres słupkowy","pt-BR":"Gráfico de barras","ru-RU":"Линейчатая диаграмма","sv-SE":"Stapeldiagram","tr-TR":"Sütun grafik","zh-CN":"条形图","zh-TW":"長條圖"}},"Object_BoxPlot":{"id":"Object.BoxPlot","locale":{"de-DE":"Boxplot","en-US":"Box plot","es-ES":"Diagrama de caja","fr-FR":"Boîte à moustaches","it-IT":"Box plot","ja-JP":"ボックス プロット","ko-KR":"상자 그림","nl-NL":"Boxplot","pl-PL":"Wykres pudełkowy","pt-BR":"Plotagem de caixa","ru-RU":"Блочная диаграмма","sv-SE":"Lådagram","tr-TR":"Kutu çizimi","zh-CN":"框图","zh-TW":"盒狀圖"}},"Object_BulletChart":{"id":"Object.BulletChart","locale":{"de-DE":"Bullet-Diagramm","en-US":"Bullet chart","es-ES":"Gráfico de viñetas","fr-FR":"Graphique à puces","it-IT":"Grafico bullet","ja-JP":"ブレット チャート","ko-KR":"글머리 기호 차트","nl-NL":"Bulletgrafiek","pl-PL":"Wykres pociskowy","pt-BR":"Quadro comparativo","ru-RU":"Диаграмма Буллет","sv-SE":"Nyansdiagram","tr-TR":"Madde imli grafik","zh-CN":"子弹图","zh-TW":"子彈圖"}},"Object_ComboChart":{"id":"Object.ComboChart","locale":{"de-DE":"Kombi-Diagramm","en-US":"Combo chart","es-ES":"Gráfico combinado","fr-FR":"Graphique combiné","it-IT":"Grafico combinato","ja-JP":"コンボ チャート","ko-KR":"콤보 차트","nl-NL":"Combinatiegrafiek","pl-PL":"Wykres kombi","pt-BR":"Gráfico de combinação","ru-RU":"Комбинированная диаграмма","sv-SE":"Kombinationsdiagram","tr-TR":"Birleşik grafik","zh-CN":"组合图","zh-TW":"組合圖"}},"Object_Container":{"id":"Object.Container","locale":{"de-DE":"Sammelbox","en-US":"Container","es-ES":"Contenedor","fr-FR":"Conteneur","it-IT":"Contenitore","ja-JP":"コンテナー","ko-KR":"컨테이너","nl-NL":"Container","pl-PL":"Kontener","pt-BR":"Contêiner","ru-RU":"Контейнер","sv-SE":"Behållare","tr-TR":"Kapsayıcı","zh-CN":"容器","zh-TW":"容器"}},"Object_DistributionPlot":{"id":"Object.DistributionPlot","locale":{"de-DE":"Verteilungsdiagramm","en-US":"Distribution plot","es-ES":"Diagrama de distribución","fr-FR":"Diagramme de distribution","it-IT":"Grafico di distribuzione","ja-JP":"分布プロット","ko-KR":"분포도","nl-NL":"Verdelingsplot","pl-PL":"Wykres rozkładu","pt-BR":"Gráfico de distribuição","ru-RU":"График распределения","sv-SE":"Fördelningsdiagram","tr-TR":"Dağılım grafiği","zh-CN":"分布图","zh-TW":"分佈圖"}},"Object_FilterLabel_All":{"id":"Object.FilterLabel.All","locale":{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUT","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKIE","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},"Object_FilterLabel_Exclude":{"id":"Object.FilterLabel.Exclude","locale":{"de-DE":"NICHT","en-US":"NOT","es-ES":"NO","fr-FR":"EXCLURE","it-IT":"NON","ja-JP":"除外","ko-KR":"제외","nl-NL":"NIET","pl-PL":"NIE","pt-BR":"NÃO","ru-RU":"НЕ","sv-SE":"INTE","tr-TR":"DEĞİL","zh-CN":"非","zh-TW":"不是"}},"Object_FilterLabel_Unknown":{"id":"Object.FilterLabel.Unknown","locale":{"de-DE":"Unbekannt","en-US":"Unknown","es-ES":"Desconocido","fr-FR":"Inconnu","it-IT":"Sconosciuto","ja-JP":"不明","ko-KR":"알 수 없음","nl-NL":"Onbekend","pl-PL":"Nieznany","pt-BR":"Desconhecido","ru-RU":"Неизвестный","sv-SE":"Okänt","tr-TR":"Bilinmiyor","zh-CN":"未知","zh-TW":"未知"}},"Object_FilterPane":{"id":"Object.FilterPane","locale":{"de-DE":"Filterfenster","en-US":"Filter pane","es-ES":"Panel de filtrado","fr-FR":"Panneau de filtre","it-IT":"Casella di filtro","ja-JP":"フィルター パネル","ko-KR":"필터 창","nl-NL":"Filtervak","pl-PL":"Panel filtrowania","pt-BR":"Painel de filtro","ru-RU":"Фильтр","sv-SE":"Filterruta","tr-TR":"Filtre bölmesi","zh-CN":"筛选器窗格","zh-TW":"篩選窗格"}},"Object_FiltersApplied":{"id":"Object.FiltersApplied","locale":{"de-DE":"Angewendete Filter:","en-US":"Filters applied:","es-ES":"Filtros aplicados:","fr-FR":"Filtres appliqués :","it-IT":"Filtri applicati:","ja-JP":"適用されているフィルター:","ko-KR":"적용된 필터:","nl-NL":"Toegepaste filters:","pl-PL":"Zastosowane filtry:","pt-BR":"Filtros aplicados:","ru-RU":"Примененные фильтры:","sv-SE":"Använda filter:","tr-TR":"Uygulanan filtreler:","zh-CN":"应用的筛选器:","zh-TW":"篩選器已套用:"}},"Object_FunnelChart":{"id":"Object.FunnelChart","locale":{"de-DE":"Trichterdiagramm","en-US":"Funnel chart","es-ES":"Gráfico de embudo","fr-FR":"Graphique en entonnoir","it-IT":"Grafico a imbuto","ja-JP":"ファネル チャート","ko-KR":"깔때기형 차트","nl-NL":"Trechterdiagram","pl-PL":"Wykres lejkowy","pt-BR":"Gráfico de funil","ru-RU":"Диаграмма Воронка","sv-SE":"Trattdiagram","tr-TR":"Huni grafik","zh-CN":"漏斗图","zh-TW":"漏斗圖"}},"Object_Gauge":{"id":"Object.Gauge","locale":{"de-DE":"Messzeiger","en-US":"Gauge","es-ES":"Indicador","fr-FR":"Jauge","it-IT":"Misuratore","ja-JP":"ゲージ","ko-KR":"게이지","nl-NL":"Meter","pl-PL":"Miernik","pt-BR":"Mostrador","ru-RU":"Датчик","sv-SE":"Mätare","tr-TR":"Gösterge","zh-CN":"仪表","zh-TW":"量表"}},"Object_GridChart":{"id":"Object.GridChart","locale":{"de-DE":"Matrixdiagramm","en-US":"Grid chart","es-ES":"Gráfico de cuadrícula","fr-FR":"Bulles","it-IT":"Grafico a griglia","ja-JP":"グリッド チャート","ko-KR":"그리드형 차트","nl-NL":"Rasterdiagram","pl-PL":"Wykres siatkowy","pt-BR":"Gráfico de grade","ru-RU":"Сетчатая диаграмма","sv-SE":"Rutnätsdiagram","tr-TR":"Izgara grafik","zh-CN":"网格图","zh-TW":"格線圖"}},"Object_Histogram":{"id":"Object.Histogram","locale":{"de-DE":"Histogramm","en-US":"Histogram","es-ES":"Histograma","fr-FR":"Histogramme","it-IT":"Istogramma","ja-JP":"ヒストグラム","ko-KR":"히스토그램","nl-NL":"Histogram","pl-PL":"Histogram","pt-BR":"Histograma","ru-RU":"Гистограмма","sv-SE":"Histogram","tr-TR":"Histogram","zh-CN":"直方图","zh-TW":"色階分佈圖"}},"Object_Kpi":{"id":"Object.Kpi","locale":{"de-DE":"KPI","en-US":"KPI","es-ES":"KPI","fr-FR":"ICP","it-IT":"KPI","ja-JP":"KPI","ko-KR":"KPI","nl-NL":"KPI","pl-PL":"Wskaźnik KPI","pt-BR":"KPI","ru-RU":"Ключевой показатель эффективности","sv-SE":"KPI (nyckeltal)","tr-TR":"KPI","zh-CN":"KPI","zh-TW":"KPI"}},"Object_LayoutContainer":{"id":"Object.LayoutContainer","locale":{"de-DE":"Layout-Sammelbox","en-US":"Layout container","es-ES":"Contenedor de diseño","fr-FR":"Conteneur de disposition","it-IT":"Contenitore layout","ja-JP":"レイアウト コンテナ","ko-KR":"레이아웃 컨테이너","nl-NL":"Lay-outcontainer","pl-PL":"Kontener układu","pt-BR":"Contêiner de layout","ru-RU":"Контейнер макета","sv-SE":"Layoutbehållare","tr-TR":"Düzen kapsayıcısı","zh-CN":"布局容器","zh-TW":"版面配置容器"}},"Object_LineChart":{"id":"Object.LineChart","locale":{"de-DE":"Liniendiagramm","en-US":"Line chart","es-ES":"Gráfico de líneas","fr-FR":"Graphique en courbes","it-IT":"Grafico lineare","ja-JP":"折れ線グラフ","ko-KR":"꺾은선형 차트","nl-NL":"Lijndiagram","pl-PL":"Wykres liniowy","pt-BR":"Gráfico de linhas","ru-RU":"Линейный график","sv-SE":"Linjediagram","tr-TR":"Çizgi grafik","zh-CN":"折线图","zh-TW":"折線圖"}},"Object_Listbox":{"id":"Object.Listbox","locale":{"de-DE":"Listbox","en-US":"List box","es-ES":"Cuadro de lista","fr-FR":"Liste de sélection","it-IT":"Casella di elenco","ja-JP":"リスト ボックス","ko-KR":"목록 상자","nl-NL":"Keuzelijst","pl-PL":"Lista wartości","pt-BR":"Lista","ru-RU":"Список","sv-SE":"Listruta","tr-TR":"Liste kutusu","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_Map":{"id":"Object.Map","locale":{"de-DE":"Karte","en-US":"Map","es-ES":"Mapa","fr-FR":"Carte","it-IT":"Mappa","ja-JP":"マップ","ko-KR":"맵","nl-NL":"Kaart","pl-PL":"Mapa","pt-BR":"Mapa","ru-RU":"Карта","sv-SE":"Karta","tr-TR":"Harita","zh-CN":"映射","zh-TW":"地圖"}},"Object_MekkoChart":{"id":"Object.MekkoChart","locale":{"de-DE":"Marimekko-Diagramm","en-US":"Mekko chart","es-ES":"Gráfico Mekko","fr-FR":"Graphique Mekko","it-IT":"Grafico Mekko","ja-JP":"メッコ チャート","ko-KR":"메코 차트","nl-NL":"Mekko-diagram","pl-PL":"Wykres Mekko","pt-BR":"Gráfico Mekko","ru-RU":"Диаграмма Мекко","sv-SE":"Mosaikdiagram","tr-TR":"Mekko grafiği","zh-CN":"玛丽麦高图","zh-TW":"Mekko 圖"}},"Object_NavMenu":{"id":"Object.NavMenu","locale":{"de-DE":"Navigationsmenü","en-US":"Navigation menu","es-ES":"Menú de navegación","fr-FR":"Menu de navigation","it-IT":"Menu di navigazione","ja-JP":"ナビゲーション メニュー","ko-KR":"탐색 메뉴","nl-NL":"Navigatiemenu","pl-PL":"Menu nawigacji","pt-BR":"Menu de navegação","ru-RU":"Меню навигации","sv-SE":"Navigationsmeny","tr-TR":"Gezinti menüsü","zh-CN":"导航菜单","zh-TW":"導覽功能表"}},"Object_NlgChart":{"id":"Object.NlgChart","locale":{"de-DE":"NL-Einblicke","en-US":"NL insights","es-ES":"Información en LN","fr-FR":"Informations analytiques NL","it-IT":"Informazioni strategiche NL","ja-JP":"NL インサイト","ko-KR":"NL 통찰력","nl-NL":"NL-inzichten","pl-PL":"Wnioski w języku naturalnym","pt-BR":"Ideias de NL","ru-RU":"Наблюдения на естественном языке","sv-SE":"Insikter på naturligt språk (NL)","tr-TR":"NL içgörüleri","zh-CN":"NL 见解","zh-TW":"自然語言深入資訊"}},"Object_PieChart":{"id":"Object.PieChart","locale":{"de-DE":"Kreisdiagramm","en-US":"Pie chart","es-ES":"Gráfico de tarta","fr-FR":"Graphique en secteurs","it-IT":"Grafico a torta","ja-JP":"円グラフ","ko-KR":"원형 차트","nl-NL":"Cirkeldiagram","pl-PL":"Wykres kołowy","pt-BR":"Gráfico de pizza","ru-RU":"Круговая диаграмма","sv-SE":"Cirkeldiagram","tr-TR":"Pasta grafik","zh-CN":"饼图","zh-TW":"圓形圖"}},"Object_PivotTable":{"id":"Object.PivotTable","locale":{"de-DE":"Pivottabelle","en-US":"Pivot table","es-ES":"Tabla dinámica","fr-FR":"Tableau croisé dynamique","it-IT":"Tabella pivot","ja-JP":"ピボット テーブル","ko-KR":"피벗 테이블","nl-NL":"Draaitabel","pl-PL":"Tabela przestawna","pt-BR":"Tabela dinâmica","ru-RU":"Сводная таблица","sv-SE":"Pivottabell","tr-TR":"Pivot tablo","zh-CN":"透视表","zh-TW":"樞紐分析表"}},"Object_RadarChart":{"id":"Object.RadarChart","locale":{"de-DE":"Netzdiagramm","en-US":"Radar chart","es-ES":"Gráfico de radar","fr-FR":"Diagramme en étoile","it-IT":"Grafico a radar","ja-JP":"レーダー チャート","ko-KR":"방사형 차트","nl-NL":"Radardiagram","pl-PL":"Wykres radarowy","pt-BR":"Gráfico de radar","ru-RU":"Диаграмма Радар","sv-SE":"Radardiagram","tr-TR":"Radar grafiği","zh-CN":"雷达图","zh-TW":"雷達圖"}},"Object_SankeyChart":{"id":"Object.SankeyChart","locale":{"de-DE":"Sankey-Diagramm","en-US":"Sankey chart","es-ES":"Diagrama de Sankey","fr-FR":"Diagramme de Sankey","it-IT":"Diagramma di Sankey","ja-JP":"サンキー グラフ","ko-KR":"Sankey 차트","nl-NL":"Sankey-diagram","pl-PL":"Wykres Sankeya","pt-BR":"Gráfico de Sankey","ru-RU":"Диаграмма Сэнки","sv-SE":"Sankey-diagram","tr-TR":"Sankey grafiği","zh-CN":"桑基图","zh-TW":"桑基圖"}},"Object_ScatterPlot":{"id":"Object.ScatterPlot","locale":{"de-DE":"Punktdiagramm","en-US":"Scatter plot","es-ES":"Gráfico de dispersión","fr-FR":"Nuage de points","it-IT":"Grafico a dispersione","ja-JP":"散布図","ko-KR":"스캐터 차트","nl-NL":"Spreidingsplot","pl-PL":"Wykres punktowy","pt-BR":"Plotagem de dispersão","ru-RU":"Точечная диаграмма","sv-SE":"Spridningsdiagram","tr-TR":"Dağılım çizimi","zh-CN":"散点图","zh-TW":"散佈圖"}},"Object_StraightTable":{"id":"Object.StraightTable","locale":{"de-DE":"Tabellendiagramm","en-US":"Straight table","es-ES":"Tabla simple","fr-FR":"Tableau simple","it-IT":"Tabella lineare","ja-JP":"ストレート テーブル","ko-KR":"일반표","nl-NL":"Strakke tabel","pl-PL":"Tabela prosta","pt-BR":"Tabela estática","ru-RU":"Прямая таблица","sv-SE":"Enkel tabell","tr-TR":"Düz tablo","zh-CN":"垂直表","zh-TW":"直表"}},"Object_TabContainer":{"id":"Object.TabContainer","locale":{"de-DE":"Registerkarten-Container","en-US":"Tab container","es-ES":"Contenedor de pestañas","fr-FR":"Conteneur d\'onglets","it-IT":"Contenitore a schede","ja-JP":"タブ付きコンテナ","ko-KR":"탭 컨테이너","nl-NL":"Tabbladcontainer","pl-PL":"Kontener karty","pt-BR":"Contêiner de guias","ru-RU":"Контейнер вкладок","sv-SE":"Flikbehållare","tr-TR":"Sekme kapsayıcısı","zh-CN":"选项卡容器","zh-TW":"索引標籤容器"}},"Object_Table":{"id":"Object.Table","locale":{"de-DE":"Tabelle","en-US":"Table","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},"Object_Table_Deprecated":{"id":"Object.Table.Deprecated","locale":{"de-DE":"Tabelle","en-US":"Table ","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},"Object_Text":{"id":"Object.Text","locale":{"de-DE":"Text","en-US":"Text","es-ES":"Texto","fr-FR":"Texte","it-IT":"Testo","ja-JP":"テキスト","ko-KR":"텍스트","nl-NL":"Tekst","pl-PL":"Tekst","pt-BR":"Texto","ru-RU":"Текст","sv-SE":"Text","tr-TR":"Metin","zh-CN":"文本","zh-TW":"文字"}},"Object_TextImage":{"id":"Object.TextImage","locale":{"de-DE":"Text und Bild","en-US":"Text & image","es-ES":"Texto e imagen","fr-FR":"Texte et image","it-IT":"Testo e immagine","ja-JP":"テキストと画像","ko-KR":"텍스트 및 이미지","nl-NL":"Tekst en afbeelding","pl-PL":"Tekst i grafika","pt-BR":"Texto e imagem","ru-RU":"Текст и изображение","sv-SE":"Text och bild","tr-TR":"Metin ve resim","zh-CN":"文本和图片","zh-TW":"文字與影像"}},"Object_Treemap":{"id":"Object.Treemap","locale":{"de-DE":"Baumkarte","en-US":"Treemap","es-ES":"Gráfico de bloques","fr-FR":"Treemap","it-IT":"Mappa ad albero","ja-JP":"ツリーマップ","ko-KR":"트리맵","nl-NL":"Structuuroverzicht","pl-PL":"Mapa drzewa","pt-BR":"Mapa de árvore","ru-RU":"Карта дерева","sv-SE":"Trädkarta","tr-TR":"Ağaç haritası","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":"資料更新已取消"}},"Object_WaterfallChart":{"id":"Object.WaterfallChart","locale":{"de-DE":"Wasserfalldiagramm","en-US":"Waterfall chart","es-ES":"Gráfico de cascada","fr-FR":"Graphique en cascade","it-IT":"Grafico a cascata","ja-JP":"ウォーターフォール グラフ","ko-KR":"폭포형 차트","nl-NL":"Watervalgrafiek","pl-PL":"Wykres wodospadowy","pt-BR":"Gráfico em cascata","ru-RU":"Каскадная диаграмма","sv-SE":"Vattenfallsdiagram","tr-TR":"Şelale grafik","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_ClickToLock":{"id":"SelectionToolbar.ClickToLock","locale":{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","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 Jl=s(7120),ec=s.n(Jl);function tc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function nc(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function ic(){}var oc=.7,rc=1/oc,sc="\\s*([+-]?\\d+)\\s*",ac="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",lc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cc=/^#([0-9a-f]{3,8})$/,dc=new RegExp(`^rgb\\(${sc},${sc},${sc}\\)$`),hc=new RegExp(`^rgb\\(${lc},${lc},${lc}\\)$`),uc=new RegExp(`^rgba\\(${sc},${sc},${sc},${ac}\\)$`),gc=new RegExp(`^rgba\\(${lc},${lc},${lc},${ac}\\)$`),pc=new RegExp(`^hsl\\(${ac},${lc},${lc}\\)$`),mc=new RegExp(`^hsla\\(${ac},${lc},${lc},${ac}\\)$`),fc={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 bc(){return this.rgb().formatHex()}function vc(){return this.rgb().formatRgb()}function Cc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cc.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_c(t):3===n?new wc(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?yc(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?yc(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=dc.exec(e))?new wc(t[1],t[2],t[3],1):(t=hc.exec(e))?new wc(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=uc.exec(e))?yc(t[1],t[2],t[3],t[4]):(t=gc.exec(e))?yc(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=pc.exec(e))?Dc(t[1],t[2]/100,t[3]/100,1):(t=mc.exec(e))?Dc(t[1],t[2]/100,t[3]/100,t[4]):fc.hasOwnProperty(e)?_c(fc[e]):"transparent"===e?new wc(NaN,NaN,NaN,0):null}function _c(e){return new wc(e>>16&255,e>>8&255,255&e,1)}function yc(e,t,n,i){return i<=0&&(e=t=n=NaN),new wc(e,t,n,i)}function Ac(e,t,n,i){return 1===arguments.length?((o=e)instanceof ic||(o=Cc(o)),o?new wc((o=o.rgb()).r,o.g,o.b,o.opacity):new wc):new wc(e,t,n,null==i?1:i);var o}function wc(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Sc(){return`#${Lc(this.r)}${Lc(this.g)}${Lc(this.b)}`}function kc(){const e=xc(this.opacity);return`${1===e?"rgb(":"rgba("}${Ec(this.r)}, ${Ec(this.g)}, ${Ec(this.b)}${1===e?")":`, ${e})`}`}function xc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ec(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Lc(e){return((e=Ec(e))<16?"0":"")+e.toString(16)}function Dc(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Nc(e,t,n,i)}function Ic(e){if(e instanceof Nc)return new Nc(e.h,e.s,e.l,e.opacity);if(e instanceof ic||(e=Cc(e)),!e)return new Nc;if(e instanceof Nc)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Nc(s,a,l,e.opacity)}function Nc(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Mc(e){return(e=(e||0)%360)<0?e+360:e}function Tc(e){return Math.max(0,Math.min(1,e||0))}function Rc(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}tc(ic,Cc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bc,formatHex:bc,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ic(this).formatHsl()},formatRgb:vc,toString:vc}),tc(wc,Ac,nc(ic,{brighter(e){return e=null==e?rc:Math.pow(rc,e),new wc(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oc:Math.pow(oc,e),new wc(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wc(Ec(this.r),Ec(this.g),Ec(this.b),xc(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:Sc,formatHex:Sc,formatHex8:function(){return`#${Lc(this.r)}${Lc(this.g)}${Lc(this.b)}${Lc(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:kc,toString:kc})),tc(Nc,function(e,t,n,i){return 1===arguments.length?Ic(e):new Nc(e,t,n,null==i?1:i)},nc(ic,{brighter(e){return e=null==e?rc:Math.pow(rc,e),new Nc(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oc:Math.pow(oc,e),new Nc(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new wc(Rc(e>=240?e-240:e+120,o,i),Rc(e,o,i),Rc(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Nc(Mc(this.h),Tc(this.s),Tc(this.l),xc(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=xc(this.opacity);return`${1===e?"hsl(":"hsla("}${Mc(this.h)}, ${100*Tc(this.s)}%, ${100*Tc(this.l)}%${1===e?")":`, ${e})`}`}}));var qc=s(312),Oc=s.n(qc);const Pc=JSON.parse('{"fontSize":"12px","fontFamily":"\'Source Sans Pro\', \'Arial\', \'sans-serif\'","backgroundColor":"transparent","dataColors":{"primaryColor":"#26a0a7","othersColor":"#a5a5a5","errorColor":"#ff4444","nullColor":"#d2d2d2"},"object":{"title":{"main":{"color":"@B50","fontSize":"15px","backgroundColor":"transparent"},"subTitle":{"color":"@B50","fontSize":"12px","backgroundColor":"transparent"},"footer":{"color":"@B50","fontSize":"12px","backgroundColor":"transparent"}}},"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"]}]}}'),Bc=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"}'),Fc=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","object":{"listBox":{"backgroundColor":"@B20","title":{"main":{"color":"@B98","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#@B98","fontSize":"12px"}}}}'),Wc=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),zc={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}},Vc=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Hc=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,jc=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,Uc=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,$c=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Gc=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Kc}=Math,{round:Qc}=Math;class Yc{constructor(...e){let t,n,i,o,r,s,a,l,c,d,h,u,g=0,p=0,m=0,f=1;if(this._invalid=!1,e[0]instanceof Yc)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(u=e[0],h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10),f=parseFloat(h[4]);else if(h=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))f=parseInt(h[1],10)/255,g=parseInt(h[2],10),p=parseInt(h[3],10),m=parseInt(h[4],10);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(u))g=parseInt(h[1],16),p=parseInt(h[2],16),m=parseInt(h[3],16),f=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(u))g=parseInt(h[1]+h[1],16),p=parseInt(h[2]+h[2],16),m=parseInt(h[3]+h[3],16),f=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),o=parseFloat(h[5]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,s=o<=.5?2*o*n:(2-2*o)*n,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=Qc(255*g),p=Qc(255*p),m=Qc(255*m),f=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),o=parseFloat(h[5]),f=parseFloat(h[7]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,s=o<=.5?2*o*n:(2-2*o)*n,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=Qc(255*g),p=Qc(255*p),m=Qc(255*m)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),r=parseFloat(h[5]),t%=360,n/=100,r/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,r=r<0?0:r>1?1:r,s=r*n,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=Qc(255*g),p=Qc(255*p),m=Qc(255*m),f=1}else zc[u.toLowerCase()]?(i=u.toLowerCase(),g=zc[i].r,p=zc[i].g,m=zc[i].b,f="number"==typeof zc[i].a?zc[i].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=Kc(g),this._g=Kc(p),this._b=Kc(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=Yc.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Yc.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Yc.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Yc.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Yc.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Yc.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=Yc.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Yc.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(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),i=parseFloat(n[1]),o=parseFloat(n[3]);let r=parseFloat(n[5]);const s=parseFloat(n[7]);return r+=e,r=Math.max(0,Math.min(r,100)),`hsla(${i},${o},${r},${s})`}isEqual(e){return e instanceof Yc||(e=new Yc(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[Kc(this._r+(e._r-this._r)*t),Kc(this._g+(e._g-this._g)*t),Kc(this._b+(e._b-this._b)*t),Kc(this._a+(e._a-this._a)*t)].join(",")})`}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,i=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Yc(i)}static toRGB(e){return e instanceof Yc?`rgb(${[e._r,e._g,e._b].join(",")})`:("string"==typeof e&&(e=Yc.toNumber(e)),`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`)}static toRGBA(e,t){return e instanceof Yc?`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`:("string"==typeof e&&(e=Yc.toNumber(e)),`rgba(${(16711680&e)>>16},${(65280&e)>>8},${255&e},${void 0!==t?t:e._a})`)}static toHex(e){let t,n,i;return e instanceof Yc?(t=e._r.toString(16),n=e._g.toString(16),i=e._b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${[t,n,i].join("")}`):("string"==typeof e&&(e=Yc.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),i=(255&e).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${t}${n}${i}`)}static toHSL(e,t){let n,i,o,r=0;"string"==typeof e&&(e=new Yc(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(i=t?.21*s+.72*a+.07*l:(c+d)/2,c===d)n=0,r=0;else{switch(o=c-d,n=i>.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*n},${100*i})`}static toHSLA(e,t){let n,i,o,r=0;"string"==typeof e&&(e=new Yc(e));const s=e._r/255,a=e._g/255,l=e._b/255,c=e._a,d=Math.max(s,a,l),h=Math.min(s,a,l);if(i=t?.21*s+.72*a+.07*l:(d+h)/2,d===h)n=0,r=0;else{switch(o=d-h,n=i>.5?o/(2-d-h):o/(d+h),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*n},${100*i},${c})`}static toHSVComponents(e){let t,n,i=0;"string"==typeof e&&(e=new Yc(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,i=0;else{switch(n=a-l,t=0===n?0:n/c,a){case o:i=(r-s)/n+(r<s?6:0);break;case r:i=(s-o)/n+2;break;case s:i=(o-r)/n+4}i/=6}return{h:360*i%360,s:100*t,v:100*c}}static toNumber(...e){if(1===e.length&&e[0]instanceof Yc)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,n,i=0,o=0,r=0;return 1===e.length&&"string"==typeof e[0]&&(n=e[0],(t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(n))?(i=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(n))?(i=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(n))&&(i=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),r=parseInt(t[3]+t[3],16))),(i<<16)+(o<<8)+r}static blend(e,t,n){const i=(16711680&(e=Yc.toNumber(e)))>>16,o=(65280&e)>>8,r=255&e;return(i+(((16711680&(t=Yc.toNumber(t)))>>16)-i)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(r+((255&t)-r)*n)}static getBlend(e,t,n){const i=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,r=e._b+(t._b-e._b)*n,s=e._a+(t._a-e._a)*n;return new Yc(i,o,r,s)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Vc.test(e)||Hc.test(e)||jc.test(e)||Uc.test(e)||$c.test(e)||Gc.test(e)||zc[e.toLowerCase()])}static getBestContrast(e,t,n){const i=e.getLuminance();return Math.abs(i-t.getLuminance())>Math.abs(i-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,i=t.getLuminance()/100;return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}static isDark(...e){return new Yc(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const Xc=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Cc(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([Cc(e),Cc(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const i=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(i);o=o===i?o-1:o;const r=this.colorParts[t][o],s=r[0],a=r[1];if(e===this.min)return a;if(e===this.max)return s;const l=function(e,t,n){return Ac(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(s,a,i-o);return l}};function Zc(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function Jc(e,t,n){const i=[],o=new Xc(t);i.push(e[0]),n||i.push(e[0]);let r=1;for(;r<e.length-1;r++)i.push(e[r]),i.push(e[r]);i.push(e[r]),n||i.push(e[r]);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function ed(e,t,n){const i=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const i=Zc(1/t*o,t,n);r=e.getColor(i);break}}i.push(Cc(r).formatHex())}return i}function td(e,t){const n=[];let i,o;if(e){let r=e.length;for(;r>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),r--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function nd(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function id(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=td(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=nd(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function od(e,t){Object.keys(e).forEach(n=>{"object"==typeof e[n]&&null!==e[n]?od(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])})}function rd(e){const t=Cc(e);if(!t)return 0;const{r:n,g:i,b:o}=t.rgb(),[r,s,a]=[n,i,o].map(e=>e/255),[l,c,d]=[r,s,a].map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return+(.2126*l+.7152*c+.0722*d).toFixed(5)}function sd(){let e,t,n,i={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(i[t]||(i[t]=id(t,e)),i[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const i=Cc(...e);return i?i.toString():void 0}},r={setTheme(r,s){e=function(e,t){const n="dark"===e.type?Fc:Bc;let i=Wc;!1!==e._inherit&&"false"!==e._inherit||(i={});const o=Oc()(!0,{},Pc,i,n),r=Oc()(!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,id.resolveRawTheme),i={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})}),t},dataPalettes(){const t=[];return e.palettes.data.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})}),t},uiPalettes(){const t=[];return e.palettes.ui.forEach(e=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})}),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){if(("number"!=typeof e?.index||Number.isNaN(e?.index))&&"string"!=typeof e?.color)return;const n=(()=>e?.index<0||void 0===e?.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return n;const i=new Yc(n);return i.setAlpha(e.alpha),i.isInvalid()?n:i.toRGBA()}}}(e);const a=o.getStyle("","","color"),l=rd(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(rd);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const r=rd(o),s=i.map(e=>{return t=r,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n}),a=e[s.indexOf(Math.max(...s))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(ec().prototype).forEach(e=>{o[e]=ec().prototype[e]}),ec().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}id.resolveRawTheme=e=>{const t=Oc()(!0,{},e);return od(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach(e=>{if("class"===e.type){const n=function(e,t,n){const i=Jc(e,n,!0),o=Jc(ed(i,t-1,t),n,!1),r=[null];for(let e=0;e<t;e++)r.push(ed(o,e,t));return r}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}})}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const ad=(e,t)=>new Promise(n=>{setTimeout(()=>n(t),e)});const ld=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null}),cd={active:!0,select:!0,passive:!0,edit:!1};function dd(e){const t={},n={},i=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const i={};return Object.keys(t).forEach(e=>{i[e]=!t[e]}),i}(e);Object.keys(cd).forEach(e=>{void 0!==i[e]?(t[e]=i[e],n[e]=!i[e]):(t[e]=cd[e],n[e]=!cd[e])}),e.constraints=n,e.interactions=t}const hd=(e={},n=()=>{})=>{const i=e,o=[],r={},s={get:e=>i[e],set:(e,t)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return i[e]=t,r[e]=n({type:"SET",value:t}),t},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);i[e]=null},dispatch:e=>{o.forEach(t=>t(e?{}:i))},destroy:()=>{Object.keys(r).forEach(e=>{r[e]&&r[e]()})}};return[()=>{const[,e]=(0,t.useState)(i);return(0,t.useEffect)(()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)}),[e]),[s]},s]};function ud(e){const[t,n]=hd({}),[i,o]=hd({}),[r,s]=hd({}),[a,l]=hd({}),[c,d]=hd({}),[,h]=hd({}),u=({type:e,value:t})=>{const i=h.get(t.id);h.set(t.id,{});const r=()=>{o.clear(t.id),d.set(t.id,{}),d.dispatch(!0)},a=()=>{t.removeListener("closed",a),t.removeListener("changed",r),n.clear(t.id),o.clear(t.id),s.clear(t.id),l.clear(t.id),d.clear(t.id),h.clear(t.id)};return"SET"===e&&(i||(t.on("changed",r),t.once("closed",a))),a},[g,p]=hd({},u);return{subscribe:e=>{const t=u({type:"SET",value:e});return()=>{t(),p.clear(e.id)}},destroy:()=>{p.destroy()},useModelStore:g,modelStore:p,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:i,rpcRequestStore:o,useRpcRequestModelStore:a,rpcRequestModelStore:l,useRpcRequestSessionModelStore:r,rpcRequestSessionModelStore:s,modelChangedStore:d,appId:e}}function gd(e){const[t,n]=hd({}),[i,o]=hd({}),[r,s]=hd({});return{useAppSelectionsStore:t,useAppModalStore:i,appSelectionsStore:n,appModalStore:o,useModalObjectStore:r,modalObjectStore:s,appId:e}}const pd=(0,t.forwardRef)(({initialContext:e,renderCallback:n,modelStore:i,selectionStore:o},r)=>{const[s,a]=(0,t.useState)(e),[l,c]=(0,t.useState)(),{theme:d}=(0,t.useMemo)(()=>({theme:xi(l)}),[l]),[h,u]=(0,t.useState)([]);return(0,t.useEffect)(()=>{n&&n()},[]),(0,t.useImperativeHandle)(r,()=>({setComps(e){u([...e])},setMuiThemeName:c,setContext:e=>a(t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)}),[]),s&&(s.modelStore=i,s.selectionStore=o),t.createElement(gi.A,{injectFirst:!0},t.createElement(ui,{theme:d},t.createElement(ld.Provider,{value:s},h)))});function md(){const{useModelStore:e}=(0,t.useContext)(ld).modelStore;return e()}function fd(e,n,...i){const o=n?`${n.id}/${JSON.stringify(e)}`:null,[r]=md(),[s]=function(){const{useRpcRequestSessionModelStore:e}=(0,t.useContext)(ld).modelStore;return e()}(),[a,l]=(0,t.useState)();return(0,t.useEffect)(()=>{n&&(async()=>{let t=s.get(o);t||(t=n.createSessionObject(e),s.set(o,t));const i=await t;r.set(o,i),l(i)})()},[n,...i]),[a]}const bd={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function vd(e){return fd(bd,e)}const Cd=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let r;switch(t.type){case"INVALID":r={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":r={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":r={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let s=n.get(i);return s||(s={}),s[o]=r,n.set(i,s),r};function _d(e,n){const i=e?`${e.id}`:null,[o]=function(){const{useRpcResultStore:e}=(0,t.useContext)(ld).modelStore;return e()}(),[r,s]=(0,t.useReducer)(Cd,i?o.get(i):null),[a]=function(){const{useModelChangedStore:e}=(0,t.useContext)(ld).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=(0,t.useContext)(ld).modelStore;return e()}();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async t=>{let r=c[n];(!r||r&&r.rpcRetry)&&(r={rpc:e[n](),rpcRetry:!1},c[n]=r,s({type:"INVALID",method:n,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{await new Promise(e=>{setTimeout(e,0)});const t=await r.rpc;s({type:"VALID",result:t,key:i,method:n,model:e,rpcResultStore:o})}catch(e){15!==e.code||t||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},h={cancel:async()=>{const t=e.session.getObjectApi({handle:-1});await t.cancelRequest(c[n].rpc.requestId),s({type:"CANCELLED",key:i,method:n,model:e,rpcResultStore:o})},retry:()=>{c[n].rpcRetry=!0,d()}};return(0,t.useEffect)(()=>{e&&d()},[e,a.get(e&&e.id),i,n]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},h]}function yd(e){const[t,{validating:n,canCancel:i,canRetry:o},r]=_d(e,"getLayout");return e?.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:i,canRetry:o},r]:[t,{validating:n,canCancel:i,canRetry:o},r]}function Ad(e){return _d(e,"getAppLayout")}function wd(){const[e,n]=(0,t.useState)(),[i,o]=(0,t.useState)(),r=(0,t.useCallback)(e=>{e&&n(e)},[]),s=()=>{const{left:t,top:n,width:i,height:r}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:r})};return(0,t.useLayoutEffect)(()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(s);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}},[e]),[r,i,e]}const Sd=e=>ss((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)),kd=e=>({...e,viewBox:"0 0 12 16",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"}}]}),xd=e=>ss(kd(e));function Ed(e){var n;return parseInt(t.version,10)>=19?(null==e||null==(n=e.props)?void 0:n.ref)||null:(null==e?void 0:e.ref)||null}const Ld=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Dd(e){return`scale(${e}, ${e**2})`}const Id={entering:{opacity:1,transform:Dd(1)},entered:{opacity:1,transform:"none"}},Nd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Md=t.forwardRef(function(e,n){const{addEndListener:i,appear:o=!0,children:r,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:h,onExited:u,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=$r}=e,b=(0,Zt.A)(e,Ld),v=(0,Po.A)(),C=t.useRef(),_=Gn(),y=t.useRef(null),A=(0,wo.A)(y,Ed(r),n),w=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},S=w(d),k=w((e,t)=>{Kr(e);const{duration:n,delay:i,easing:o}=Qr({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=_.transitions.getAutoHeightDuration(e.clientHeight),C.current=r):r=n,e.style.transition=[_.transitions.create("opacity",{duration:r,delay:i}),_.transitions.create("transform",{duration:Nd?r:.666*r,delay:i,easing:o})].join(","),l&&l(e,t)}),x=w(c),E=w(g),L=w(e=>{const{duration:t,delay:n,easing:i}=Qr({style:p,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=_.transitions.getAutoHeightDuration(e.clientHeight),C.current=o):o=t,e.style.transition=[_.transitions.create("opacity",{duration:o,delay:n}),_.transitions.create("transform",{duration:Nd?o:.666*o,delay:Nd?n:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Dd(.75),h&&h(e)}),D=w(u);return(0,dn.jsx)(f,(0,Jt.A)({appear:o,in:a,nodeRef:y,onEnter:k,onEntered:x,onEntering:S,onExit:L,onExited:D,onExiting:E,addEndListener:e=>{"auto"===m&&v.start(C.current||0,e),i&&i(y.current,e)},timeout:"auto"===m?null:m},b,{children:(e,n)=>t.cloneElement(r,(0,Jt.A)({style:(0,Jt.A)({opacity:0,transform:Dd(.75),visibility:"exited"!==e||a?void 0:"hidden"},Id[e],p,r.props.style),ref:A},n))}))});Md.muiSupportAuto=!0;const Td=Md;var Rd=s(3395);const qd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Od(e){const t=[],n=[];return Array.from(e.querySelectorAll(qd)).forEach((e,i)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:i,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Pd(){return!0}const Bd=function(e){const{children:n,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=Od,isEnabled:a=Pd,open:l}=e,c=t.useRef(!1),d=t.useRef(null),h=t.useRef(null),u=t.useRef(null),g=t.useRef(null),p=t.useRef(!1),m=t.useRef(null),f=(0,Fs.A)(Ed(n),m),b=t.useRef(null);t.useEffect(()=>{l&&m.current&&(p.current=!i)},[i,l]),t.useEffect(()=>{if(!l||!m.current)return;const e=(0,Rd.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{r||(u.current&&u.current.focus&&(c.current=!0,u.current.focus()),u.current=null)}},[l]),t.useEffect(()=>{if(!l||!m.current)return;const e=(0,Rd.A)(m.current),t=t=>{b.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,h.current&&h.current.focus())},n=()=>{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!==h.current)return;if(e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let n=[];if(e.activeElement!==d.current&&e.activeElement!==h.current||(n=s(m.current)),n.length>0){var i,r;const e=Boolean((null==(i=b.current)?void 0:i.shiftKey)&&"Tab"===(null==(r=b.current)?void 0:r.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[i,o,r,a,l,s]);const v=e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0};return(0,dn.jsxs)(t.Fragment,{children:[(0,dn.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),t.cloneElement(n,{ref:f,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0,g.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,dn.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:h,"data-testid":"sentinelEnd"})]})};var Fd=s(3659);const Wd=t.forwardRef(function(e,n){const{children:i,container:o,disablePortal:r=!1}=e,[s,a]=t.useState(null),l=(0,Fs.A)(t.isValidElement(i)?Ed(i):null,n);if((0,ii.A)(()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)},[o,r]),(0,ii.A)(()=>{if(s&&!r)return(0,Fd.A)(n,s),()=>{(0,Fd.A)(n,null)}},[n,s,r]),r){if(t.isValidElement(i)){const e={ref:l};return t.cloneElement(i,e)}return(0,dn.jsx)(t.Fragment,{children:i})}return(0,dn.jsx)(t.Fragment,{children:s?Br.createPortal(i,s):s})}),zd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Vd={entering:{opacity:1},entered:{opacity:1}},Hd=t.forwardRef(function(e,n){const i=Gn(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:h,onEntering:u,onExit:g,onExited:p,onExiting:m,style:f,timeout:b=o,TransitionComponent:v=$r}=e,C=(0,Zt.A)(e,zd),_=t.useRef(null),y=(0,wo.A)(_,Ed(a),n),A=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},w=A(u),S=A((e,t)=>{Kr(e);const n=Qr({style:f,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",n),e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)}),k=A(h),x=A(m),E=A(e=>{const t=Qr({style:f,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)}),L=A(p);return(0,dn.jsx)(v,(0,Jt.A)({appear:s,in:c,nodeRef:_,onEnter:S,onEntered:k,onEntering:w,onExit:E,onExited:L,onExiting:x,addEndListener:e=>{r&&r(_.current,e)},timeout:b},C,{children:(e,n)=>t.cloneElement(a,(0,Jt.A)({style:(0,Jt.A)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Vd[e],f,a.props.style),ref:y},n))}))}),jd=Hd;function Ud(e){return(0,ln.Ay)("MuiBackdrop",e)}(0,an.A)("MuiBackdrop",["root","invisible"]);const $d=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Gd=(0,sn.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>(0,Jt.A)({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"})),Kd=t.forwardRef(function(e,t){var n,i,o;const r=(0,rn.b)({props:e,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",components:c={},componentsProps:d={},invisible:h=!1,open:u,slotProps:g={},slots:p={},TransitionComponent:m=jd,transitionDuration:f}=r,b=(0,Zt.A)(r,$d),v=(0,Jt.A)({},r,{component:l,invisible:h}),C=(e=>{const{classes:t,invisible:n}=e,i={root:["root",n&&"invisible"]};return(0,tn.A)(i,Ud,t)})(v),_=null!=(n=g.root)?n:d.root;return(0,dn.jsx)(m,(0,Jt.A)({in:u,timeout:f},b,{children:(0,dn.jsx)(Gd,(0,Jt.A)({"aria-hidden":!0},_,{as:null!=(i=null!=(o=p.root)?o:c.Root)?i:l,className:(0,en.A)(C.root,a,null==_?void 0:_.className),ownerState:(0,Jt.A)({},v,null==_?void 0:_.ownerState),classes:C,ref:t,children:s}))}))}),Qd=Kd;var Yd=s(2351);function Xd(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Zd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Jd(e){return parseInt((0,Ha.A)(e).getComputedStyle(e).paddingRight,10)||0}function eh(e,t,n,i,o){const r=[t,n,...i];[].forEach.call(e.children,e=>{const t=-1===r.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Zd(e,o)})}function th(e,t){let n=-1;return e.some((e,i)=>!!t(e)&&(n=i,!0)),n}const nh=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Zd(e.modalRef,!1);const i=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);eh(t,e.mount,e.modalRef,i,!0);const o=th(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=th(this.containers,t=>-1!==t.modals.indexOf(e)),i=this.containers[n];i.restore||(i.restore=function(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Rd.A)(e);return t.body===e?(0,Ha.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=Xd((0,Rd.A)(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Jd(i)+e}px`;const t=(0,Rd.A)(i).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Jd(t)+e}px`})}let e;if(i.parentNode instanceof DocumentFragment)e=(0,Rd.A)(i).body;else{const t=i.parentElement,n=(0,Ha.A)(i);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:i}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const i=th(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Zd(e.modalRef,t),eh(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Zd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ih(e){return(0,ln.Ay)("MuiModal",e)}(0,an.A)("MuiModal",["root","hidden","backdrop"]);const oh=["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"],rh=(0,sn.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>(0,Jt.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),sh=(0,sn.Ay)(Qd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ah=t.forwardRef(function(e,n){var i,o,r,s,a,l;const c=(0,rn.b)({name:"MuiModal",props:e}),{BackdropComponent:d=sh,BackdropProps:h,className:u,closeAfterTransition:g=!1,children:p,container:m,component:f,components:b={},componentsProps:v={},disableAutoFocus:C=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:y=!1,disablePortal:A=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:k=!1,keepMounted:x=!1,onBackdropClick:E,open:L,slotProps:D,slots:I}=c,N=(0,Zt.A)(c,oh),M=(0,Jt.A)({},c,{closeAfterTransition:g,disableAutoFocus:C,disableEnforceFocus:_,disableEscapeKeyDown:y,disablePortal:A,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:k,keepMounted:x}),{getRootProps:T,getBackdropProps:R,getTransitionProps:q,portalRef:O,isTopModal:P,exited:B,hasTransition:F}=function(e){const{container:n,disableEscapeKeyDown:i=!1,disableScrollLock:o=!1,manager:r=nh,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:h,rootRef:u}=e,g=t.useRef({}),p=t.useRef(null),m=t.useRef(null),f=(0,Fs.A)(m,u),[b,v]=t.useState(!h),C=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let _=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(_=!1);const y=()=>(g.current.modalRef=m.current,g.current.mount=p.current,g.current),A=()=>{r.mount(y(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},w=(0,ja.A)(()=>{const e=function(e){return"function"==typeof e?e():e}(n)||(0,Rd.A)(p.current).body;r.add(y(),e),m.current&&A()}),S=t.useCallback(()=>r.isTopModal(y()),[r]),k=(0,ja.A)(e=>{p.current=e,e&&(h&&S()?A():m.current&&Zd(m.current,_))}),x=t.useCallback(()=>{r.remove(y(),_)},[_,r]);t.useEffect(()=>()=>{x()},[x]),t.useEffect(()=>{h?w():C&&s||x()},[h,x,C,s,w]);const E=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&S()&&(i||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(t={})=>{const n=zs(e);delete n.onTransitionEnter,delete n.onTransitionExited;const i=(0,Jt.A)({},n,t);return(0,Jt.A)({role:"presentation"},i,{onKeyDown:E(i),ref:f})},getBackdropProps:(e={})=>{const t=e;return(0,Jt.A)({"aria-hidden":!0},t,{onClick:L(t),open:h})},getTransitionProps:()=>({onEnter:(0,Yd.A)(()=>{v(!1),a&&a()},null==c?void 0:c.props.onEnter),onExited:(0,Yd.A)(()=>{v(!0),l&&l(),s&&x()},null==c?void 0:c.props.onExited)}),rootRef:f,portalRef:k,isTopModal:S,exited:b,hasTransition:C}}((0,Jt.A)({},M,{rootRef:n})),W=(0,Jt.A)({},M,{exited:B}),z=(e=>{const{open:t,exited:n,classes:i}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,tn.A)(o,ih,i)})(W),V={};if(void 0===p.props.tabIndex&&(V.tabIndex="-1"),F){const{onEnter:e,onExited:t}=q();V.onEnter=e,V.onExited=t}const H=null!=(i=null!=(o=null==I?void 0:I.root)?o:b.Root)?i:rh,j=null!=(r=null!=(s=null==I?void 0:I.backdrop)?s:b.Backdrop)?r:d,U=null!=(a=null==D?void 0:D.root)?a:v.root,$=null!=(l=null==D?void 0:D.backdrop)?l:v.backdrop,G=$s({elementType:H,externalSlotProps:U,externalForwardedProps:N,getSlotProps:T,additionalProps:{ref:n,as:f},ownerState:W,className:(0,en.A)(u,null==U?void 0:U.className,null==z?void 0:z.root,!W.open&&W.exited&&(null==z?void 0:z.hidden))}),K=$s({elementType:j,externalSlotProps:$,additionalProps:h,getSlotProps:e=>R((0,Jt.A)({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,en.A)(null==$?void 0:$.className,null==h?void 0:h.className,null==z?void 0:z.backdrop),ownerState:W});return x||L||F&&!B?(0,dn.jsx)(Wd,{ref:O,container:m,disablePortal:A,children:(0,dn.jsxs)(H,(0,Jt.A)({},G,{children:[!k&&d?(0,dn.jsx)(j,(0,Jt.A)({},K)):null,(0,dn.jsx)(Bd,{disableEnforceFocus:_,disableAutoFocus:C,disableRestoreFocus:w,isEnabled:P,open:L,children:t.cloneElement(p,V)})]}))}):null}),lh=ah,ch=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function dh(e){return(0,ln.Ay)("MuiPaper",e)}(0,an.A)("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 hh=["className","component","elevation","square","variant"],uh=(0,sn.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return(0,Jt.A)({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,Jt.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,Ao.X4)("#fff",ch(t.elevation))}, ${(0,Ao.X4)("#fff",ch(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),gh=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiPaper"}),{className:i,component:o="div",elevation:r=1,square:s=!1,variant:a="elevation"}=n,l=(0,Zt.A)(n,hh),c=(0,Jt.A)({},n,{component:o,elevation:r,square:s,variant:a}),d=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e,r={root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]};return(0,tn.A)(r,dh,o)})(c);return(0,dn.jsx)(uh,(0,Jt.A)({as:o,ownerState:c,className:(0,en.A)(d.root,i),ref:t},l))}),ph=gh;function mh(e){return(0,ln.Ay)("MuiPopover",e)}(0,an.A)("MuiPopover",["root","paper"]);const fh=["onEntering"],bh=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],vh=["slotProps"];function Ch(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function _h(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function yh(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Ah(e){return"function"==typeof e?e():e}const wh=(0,sn.Ay)(lh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sh=(0,sn.Ay)(ph,{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}),kh=t.forwardRef(function(e,n){var i,o,r;const s=(0,rn.b)({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:u,className:g,container:p,elevation:m=8,marginThreshold:f=16,open:b,PaperProps:v={},slots:C,slotProps:_,transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:A=Td,transitionDuration:w="auto",TransitionProps:{onEntering:S}={},disableScrollLock:k=!1}=s,x=(0,Zt.A)(s.TransitionProps,fh),E=(0,Zt.A)(s,bh),L=null!=(i=null==_?void 0:_.paper)?i:v,D=t.useRef(),I=(0,wo.A)(D,L.ref),N=(0,Jt.A)({},s,{anchorOrigin:c,anchorReference:h,elevation:m,marginThreshold:f,externalPaperSlotProps:L,transformOrigin:y,TransitionComponent:A,transitionDuration:w,TransitionProps:x}),M=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"],paper:["paper"]},mh,t)})(N),T=t.useCallback(()=>{if("anchorPosition"===h)return d;const e=Ah(l),t=(e&&1===e.nodeType?e:(0,ha.A)(D.current).body).getBoundingClientRect();return{top:t.top+Ch(t,c.vertical),left:t.left+_h(t,c.horizontal)}},[l,c.horizontal,c.vertical,d,h]),R=t.useCallback(e=>({vertical:Ch(e,y.vertical),horizontal:_h(e,y.horizontal)}),[y.horizontal,y.vertical]),q=t.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=R(t);if("none"===h)return{top:null,left:null,transformOrigin:yh(n)};const i=T();let o=i.top-n.vertical,r=i.left-n.horizontal;const s=o+t.height,a=r+t.width,c=(0,Zs.A)(Ah(l)),d=c.innerHeight-f,u=c.innerWidth-f;if(null!==f&&o<f){const e=o-f;o-=e,n.vertical+=e}else if(null!==f&&s>d){const e=s-d;o-=e,n.vertical+=e}if(null!==f&&r<f){const e=r-f;r-=e,n.horizontal+=e}else if(a>u){const e=a-u;r-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(r)}px`,transformOrigin:yh(n)}},[l,h,T,R,f]),[O,P]=t.useState(b),B=t.useCallback(()=>{const e=D.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)},[q]);t.useEffect(()=>(k&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[l,k,B]),t.useEffect(()=>{b&&B()}),t.useImperativeHandle(a,()=>b?{updatePosition:()=>{B()}}:null,[b,B]),t.useEffect(()=>{if(!b)return;const e=(0,Gs.A)(()=>{B()}),t=(0,Zs.A)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,b,B]);let F=w;"auto"!==w||A.muiSupportAuto||(F=void 0);const W=p||(l?(0,ha.A)(Ah(l)).body:void 0),z=null!=(o=null==C?void 0:C.root)?o:wh,V=null!=(r=null==C?void 0:C.paper)?r:Sh,H=$s({elementType:V,externalSlotProps:(0,Jt.A)({},L,{style:O?L.style:(0,Jt.A)({},L.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:N,className:(0,en.A)(M.paper,null==L?void 0:L.className)}),j=$s({elementType:z,externalSlotProps:(null==_?void 0:_.root)||{},externalForwardedProps:E,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:W,open:b},ownerState:N,className:(0,en.A)(M.root,g)}),{slotProps:U}=j,$=(0,Zt.A)(j,vh);return(0,dn.jsx)(z,(0,Jt.A)({},$,!ps(z)&&{slotProps:U,disableScrollLock:k},{children:(0,dn.jsx)(A,(0,Jt.A)({appear:!0,in:b,onEntering:(e,t)=>{S&&S(e,t),B()},onExited:()=>{P(!1)},timeout:F},x,{children:(0,dn.jsx)(V,(0,Jt.A)({},H,{children:u}))}))}))}),xh=kh;var Eh=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Lh=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},Dh=function(e){function t(){var e,n,i;!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 n=i=Lh(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;i._lastRenderedStartIndex=t,i._lastRenderedStopIndex=n,i._ensureRowsLoaded(t,n)},i._setRef=function(e){i._listRef=e},Lh(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Eh(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,i=n.isItemLoaded,o=n.itemCount,r=n.minimumBatchSize,s=void 0===r?10:r,a=n.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,i=e.minimumBatchSize,o=e.stopIndex,r=[],s=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(r.push(s,a),s=a=null):(a=l,null===s&&(s=l));if(null!==a){for(var c=Math.min(Math.max(a,s+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<i&&r[0]>0;){var h=r[0]-1;if(t(h))break;r[0]=h}return r}({isItemLoaded:i,itemCount:o,minimumBatchSize:s,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some(function(e,t){return c[t]!==e}))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,i=function(i){var o=e[i],r=e[i+1],s=n(o,r);null!=s&&s.then(function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r}).startIndex>e.lastRenderedStopIndex||e.stopIndex<e.lastRenderedStartIndex)){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}var e})},o=0;o<e.length;o+=2)i(o)}}]),t}(t.PureComponent);const Ih=Dh,Nh=["S","XS"],Mh=e=>e.reduce((e,t)=>e.concat(t));async function Th({selections:e,elemNumbers:t,toggle:n,isSingleSelect:i}){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,n]})}catch{o=!1}o||(i?e.cancel():e.clear())}return o}const Rh="RowColumn",qh={row:`${Rh}-row`,rowBorderBottom:`${Rh}-rowBorderBottom`,column:`${Rh}-column`,fieldRoot:`${Rh}-fieldRoot`,cell:`${Rh}-cell`,labelText:`${Rh}-labelText`,labelDense:`${Rh}-labelDense`,highlighted:`${Rh}-highlighted`,checkboxLabel:`${Rh}-checkboxLabel`,icon:`${Rh}-icon`,S:`${Rh}-S`,XS:`${Rh}-XS`,A:`${Rh}-A`,X:`${Rh}-X`,frequencyCount:`${Rh}-frequencyCount`,barContainer:`${Rh}-barContainer`,bar:`${Rh}-bar`,barSelected:`${Rh}-barSelected`,barWithCheckbox:`${Rh}-barWithCheckbox`,barSelectedWithCheckbox:`${Rh}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Rh}-excludedTextWithCheckbox`},Oh=`.${qh.fieldRoot}`,Ph=e=>!(e?.metaKey||e?.ctrlKey);const Bh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),Fh=e=>ss(Bh(e)),Wh=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,zh=({cell:e,checkboxes:t})=>{return(((n=e)?"A"===n.qState:null)||Wh(e))&&t;var n},Vh=e=>e.filter(e=>!!e).join(" ").trim(),Hh=e=>e||"-",jh=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:i})=>"P"===t?`${e.freqMinWidth}px`:n&&!i?"max-content":"25%",Uh=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,$h=({theme:e,checkboxes:t,styles:n,selectionState:i})=>{if(t)return"selected"===i?{[`& .${qh.labelText}`]:{color:n.selections.selected}}:{};const o=n.selections,r=o[i],s=o[`${i}Contrast`];return{background:r,color:s,"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`,outline:"none"},"& $cell":{paddingRight:0},[`& .${qh.labelText}`]:{color:s},[`& .${qh.icon}`]:{color:s}}},Gh={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Kh=(0,sn.Ay)("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})(({theme:e,checkboxes:t,isGridMode:n,isGridCol:i,dense:o,direction:r,sizes:s,frequencyMode:a,freqHitsValue:l,styles:c})=>{const{backgroundColor:d,...h}=c.content,u=$h({theme:e,styles:c,checkboxes:t,selectionState:"selected"}),g=$h({theme:e,styles:c,checkboxes:t,selectionState:"excluded"}),p={height:"100%",transition:"width 0.2s",border:"1px solid",borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},m={opacity:"30%"};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"}},[`& .${qh.row}`]:{flexWrap:"nowrap",...c.content},[`& .${qh.rowBorderBottom}`]:{borderBottom:i?"none":`1px solid ${e.palette.divider}`,borderLeft:i?`1px solid ${e.palette.divider}`:"none"},[`& .${qh.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${qh.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${qh.labelText}`]:{lineHeight:"24px",userSelect:"none",paddingRight:"1px",...Gh,...h},[`& .${qh.labelDense}`]:{lineHeight:"18px"},[`& .${qh.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${qh.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...Gh,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${qh.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${qh.S}`]:{...u,border:n?"none":void 0},[`& .${qh.XS}`]:{...$h({theme:e,styles:c,checkboxes:t,selectionState:"selectedExcluded"}),border:n?"none":void 0},[`& .${qh.A}`]:{...$h({theme:e,styles:c,checkboxes:t,selectionState:"alternative"}),border:n?"none":void 0},[`& .${qh.X}`]:{...g,border:n?"none":void 0},[`& .${qh.X}, & .${qh.XS}`]:{border:n?"none":void 0,[`& .${qh.barSelected} .bar-filled`]:{...p}},[`& .${qh.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...Gh,flex:`0 0 ${jh({sizes:s,frequencyMode:a,isGridMode:n,freqHitsValue:l})}`,minWidth:!n&&"P"!==a&&l?s.freqMinWidth:"max-content",maxWidth:Uh({sizes:s,frequencyMode:a,isGridMode:n}),textAlign:"rtl"===r?"left":"right",paddingLeft:"rtl"!==r?"8px":0},[`&.${qh.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${qh.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{...p}},[`& .${qh.barSelected}`]:{"& .bar-filled":{...m}},[`& .${qh.barWithCheckbox}`]:{left:"rtl"===r?4:29,width:"calc(100% - 33px)"},[`& .${qh.barSelectedWithCheckbox}`]:{"& .bar-filled":{...m,backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected}},[`& .${qh.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}}),Qh=t.memo(Kh);var Yh=s(1967);const Xh=["component","direction","spacing","divider","children","className","useFlexGap"],Zh=(0,bn.A)(),Jh=Pn("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function eu(e){return An({props:e,name:"MuiStack",defaultTheme:Zh})}function tu(e,n){const i=t.Children.toArray(e).filter(Boolean);return i.reduce((e,o,r)=>(e.push(o),r<i.length-1&&e.push(t.cloneElement(n,{key:`separator-${r}`})),e),[])}const nu=({ownerState:e,theme:t})=>{let n=(0,Jt.A)({display:"flex",flexDirection:"column"},(0,dr.NI)({theme:t},(0,dr.kW)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const i=(0,Yh.LX)(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),r=(0,dr.kW)({values:e.direction,base:o}),s=(0,dr.kW)({values:e.spacing,base:o});"object"==typeof r&&Object.keys(r).forEach((e,t,n)=>{if(!r[e]){const i=t>0?r[n[t-1]]:"column";r[e]=i}});const a=(t,n)=>{return e.useFlexGap?{gap:(0,Yh._W)(i,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?r[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,Yh._W)(i,t)}};var o};n=(0,Sn.A)(n,(0,dr.NI)({theme:t},s,a))}return n=(0,dr.iZ)(t.breakpoints,n),n},iu=function(e={}){const{createStyledComponent:n=Jh,useThemeProps:i=eu,componentName:o="MuiStack"}=e,r=n(nu),s=t.forwardRef(function(e,t){const n=i(e),s=(0,Li.A)(n),{component:a="div",direction:l="column",spacing:c=0,divider:d,children:h,className:u,useFlexGap:g=!1}=s,p=(0,Zt.A)(s,Xh),m={direction:l,spacing:c,useFlexGap:g},f=(0,tn.A)({root:["root"]},e=>(0,ln.Ay)(o,e),{});return(0,dn.jsx)(r,(0,Jt.A)({as:a,ownerState:m,ref:t,className:(0,en.A)(f.root,u)},p,{children:d?tu(h,d):h}))});return s}({createStyledComponent:(0,sn.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,rn.b)({props:e,name:"MuiStack"})}),ou=iu;function ru(e){return(0,ln.Ay)("MuiFormControlLabel",e)}const su=(0,an.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),au=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],lu=(0,sn.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${su.label}`]:t.label},t.root,t[`labelPlacement${(0,Vn.A)(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${su.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},{[`& .${su.label}`]:{[`&.${su.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),cu=(0,sn.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${su.error}`]:{color:(e.vars||e).palette.error.main}})),du=t.forwardRef(function(e,n){var i,o;const r=(0,rn.b)({props:e,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:h,labelPlacement:u="end",required:g,slotProps:p={}}=r,m=(0,Zt.A)(r,au),f=Oa(),b=null!=(i=null!=c?c:l.props.disabled)?i:null==f?void 0:f.disabled,v=null!=g?g:l.props.required,C={disabled:b,required:v};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===l.props[e]&&void 0!==r[e]&&(C[e]=r[e])});const _=Pa({props:r,muiFormControl:f,states:["error"]}),y=(0,Jt.A)({},r,{disabled:b,labelPlacement:u,required:v,error:_.error}),A=(e=>{const{classes:t,disabled:n,labelPlacement:i,error:o,required:r}=e,s={root:["root",n&&"disabled",`labelPlacement${(0,Vn.A)(i)}`,o&&"error",r&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,tn.A)(s,ru,t)})(y),w=null!=(o=p.typography)?o:a.typography;let S=h;return null==S||S.type===Lr||d||(S=(0,dn.jsx)(Lr,(0,Jt.A)({component:"span"},w,{className:(0,en.A)(A.label,null==w?void 0:w.className),children:S}))),(0,dn.jsxs)(lu,(0,Jt.A)({className:(0,en.A)(A.root,s),ownerState:y,ref:n},m,{children:[t.cloneElement(l,C),v?(0,dn.jsxs)(ou,{display:"block",children:[S,(0,dn.jsxs)(cu,{ownerState:y,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):S]}))}),hu=du;var uu=s(1078);function gu(e){return(0,ln.Ay)("PrivateSwitchBase",e)}(0,an.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const pu=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],mu=(0,sn.Ay)(ir,{name:"MuiSwitchBase"})(({ownerState:e})=>(0,Jt.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),fu=(0,sn.Ay)("input",{name:"MuiSwitchBase",shouldForwardProp:Na.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),bu=t.forwardRef(function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,className:r,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:h,inputProps:u,inputRef:g,name:p,onBlur:m,onChange:f,onFocus:b,readOnly:v,required:C=!1,tabIndex:_,type:y,value:A}=e,w=(0,Zt.A)(e,pu),[S,k]=(0,uu.A)({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),x=Oa();let E=a;x&&void 0===E&&(E=x.disabled);const L="checkbox"===y||"radio"===y,D=(0,Jt.A)({},e,{checked:S,disabled:E,disableFocusRipple:l,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,r={root:["root",n&&"checked",i&&"disabled",o&&`edge${(0,Vn.A)(o)}`],input:["input"]};return(0,tn.A)(r,gu,t)})(D);return(0,dn.jsxs)(mu,(0,Jt.A)({component:"span",className:(0,en.A)(I.root,r),centerRipple:!0,focusRipple:!l,disabled:E,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),x&&x.onFocus&&x.onFocus(e)},onBlur:e=>{m&&m(e),x&&x.onBlur&&x.onBlur(e)},ownerState:D,ref:t},w,{children:[(0,dn.jsx)(fu,(0,Jt.A)({autoFocus:n,checked:i,defaultChecked:s,className:I.input,disabled:E,id:L?h:void 0,name:p,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),f&&f(e,t)},readOnly:v,ref:g,required:C,ownerState:D,tabIndex:_,type:y},"checkbox"===y&&void 0===A?{}:{value:A},u)),S?o:d]}))}),vu=bu,Cu=(0,Gi.A)((0,dn.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"),_u=(0,Gi.A)((0,dn.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"),yu=(0,Gi.A)((0,dn.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 Au(e){return(0,ln.Ay)("MuiCheckbox",e)}const wu=(0,an.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Su=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ku=(0,sn.Ay)(vu,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,Vn.A)(n.size)}`],"default"!==n.color&&t[`color${(0,Vn.A)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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,Ao.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${wu.checked}, &.${wu.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${wu.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),xu=(0,dn.jsx)(_u,{}),Eu=(0,dn.jsx)(Cu,{}),Lu=(0,dn.jsx)(yu,{}),Du=t.forwardRef(function(e,n){var i,o;const r=(0,rn.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=xu,color:a="primary",icon:l=Eu,indeterminate:c=!1,indeterminateIcon:d=Lu,inputProps:h,size:u="medium",className:g}=r,p=(0,Zt.A)(r,Su),m=c?d:l,f=c?d:s,b=(0,Jt.A)({},r,{color:a,indeterminate:c,size:u}),v=(e=>{const{classes:t,indeterminate:n,color:i,size:o}=e,r={root:["root",n&&"indeterminate",`color${(0,Vn.A)(i)}`,`size${(0,Vn.A)(o)}`]},s=(0,tn.A)(r,Au,t);return(0,Jt.A)({},t,s)})(b);return(0,dn.jsx)(ku,(0,Jt.A)({type:"checkbox",inputProps:(0,Jt.A)({"data-indeterminate":c},h),icon:t.cloneElement(m,{fontSize:null!=(i=m.props.fontSize)?i:u}),checkedIcon:t.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:u}),ownerState:b,ref:n,className:(0,en.A)(v.root,g)},p,{classes:v}))}),Iu=Du,Nu="ListBoxCheckbox",Mu={cbIcon:`${Nu}-cbIcon`,cbIconChecked:`${Nu}-cbIconChecked`,cbIconExcluded:`${Nu}-cbIconExcluded`,cbIconAlternative:`${Nu}-cbIconAlternative`,checkbox:`${Nu}-checkbox`,dense:`${Nu}-dense`},Tu=(0,sn.Ay)(Iu,{shouldForwardProp:e=>"styles"!==e})(({styles:e})=>({[`& .${Mu.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"},[`& .${Mu.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:'""'}},[`& .${Mu.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${Mu.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${Mu.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${Mu.dense}`]:{padding:"4px 8px"}})),Ru=(e,n=!0,i=!1)=>t.createElement("span",{className:e.cbIcon},i&&t.createElement("span",{className:n&&i?e.cbIconExcluded:""}));function qu({onChange:e,checked:n,label:i,dense:o,excluded:r,styles:s,showGray:a=!0,dataN:l}){return t.createElement(Tu,{edge:"start",onChange:e,checked:n,disableRipple:!0,className:[Mu.checkbox,o&&Mu.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":i,"data-n":l},name:i,icon:Ru(Mu,a,r),checkedIcon:t.createElement("span",{className:Mu.cbIconChecked}),styles:s})}const Ou=(0,Gi.A)((0,dn.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"),Pu=(0,Gi.A)((0,dn.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"),Bu=(0,sn.Ay)("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Na.A})({position:"relative",display:"flex"}),Fu=(0,sn.Ay)(Ou,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),Wu=(0,sn.Ay)(Pu,{name:"MuiRadioButtonIcon"})(({theme:e,ownerState:t})=>(0,Jt.A)({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})})),zu=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o=(0,Jt.A)({},e,{checked:t});return(0,dn.jsxs)(Bu,{className:n.root,ownerState:o,children:[(0,dn.jsx)(Fu,{fontSize:i,className:n.background,ownerState:o}),(0,dn.jsx)(Wu,{fontSize:i,className:n.dot,ownerState:o})]})};var Vu=s(2001);const Hu=t.createContext(void 0);function ju(e){return(0,ln.Ay)("MuiRadio",e)}const Uu=(0,an.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),$u=["checked","checkedIcon","color","icon","name","onChange","size","className"],Gu=(0,sn.Ay)(vu,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${(0,Vn.A)(n.size)}`],t[`color${(0,Vn.A)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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,Ao.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Uu.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Uu.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Ku=(0,dn.jsx)(zu,{checked:!0}),Qu=(0,dn.jsx)(zu,{}),Yu=t.forwardRef(function(e,n){var i,o;const r=(0,rn.b)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=Ku,color:l="primary",icon:c=Qu,name:d,onChange:h,size:u="medium",className:g}=r,p=(0,Zt.A)(r,$u),m=(0,Jt.A)({},r,{color:l,size:u}),f=(e=>{const{classes:t,color:n,size:i}=e,o={root:["root",`color${(0,Vn.A)(n)}`,"medium"!==i&&`size${(0,Vn.A)(i)}`]};return(0,Jt.A)({},t,(0,tn.A)(o,ju,t))})(m),b=t.useContext(Hu);let v=s;const C=(0,Vu.A)(h,b&&b.onChange);let _=d;return b&&(void 0===v&&(v=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(b.value,r.value)),void 0===_&&(_=b.name)),(0,dn.jsx)(Gu,(0,Jt.A)({type:"radio",icon:t.cloneElement(c,{fontSize:null!=(i=Qu.props.fontSize)?i:u}),checkedIcon:t.cloneElement(a,{fontSize:null!=(o=Ku.props.fontSize)?o:u}),ownerState:m,classes:f,name:_,checked:v,onChange:C,ref:n,className:(0,en.A)(f.root,g)},p))}),Xu=Yu,Zu="ListBoxRadioButton-radioButton",Ju=(0,sn.Ay)(Xu,{shouldForwardProp:e=>!["dense","styles"].includes(e)})(({checked:e,styles:t,dense:n})=>({[`&.${Zu}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}));function eg({onChange:e,checked:n,label:i,dense:o,dataN:r,styles:s}){return t.createElement(Ju,{checked:n,onChange:e,value:i,name:i,className:Zu,inputProps:{"data-n":r},disableRipple:!0,size:o?"small":"medium",dense:o,styles:s})}const tg=function({label:e,dense:n,showGray:i=!0,checkboxes:o,cell:r,valueTextAlign:s}){return t.createElement(Lr,{component:"span",variant:"body2",className:Vh([qh.labelText,n&&qh.labelDense,i&&zh({cell:r,checkboxes:o})&&qh.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,e))},ng=function({label:e,color:n,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}){return"string"==typeof e?t.createElement(tg,{label:e,color:n,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}):e},ig=function({onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){const g=t.createElement(qu,{onChange:e,label:n,checked:o,dense:r,excluded:Wh(s),isGridCol:a,showGray:l,dataN:i,styles:u}),p=t.createElement(eg,{onChange:e,label:n,checked:o,dense:r,dataN:i,styles:u});return t.createElement(hu,{control:c?p:g,className:qh.checkboxLabel,label:t.createElement(ng,{label:n,dense:r,showGray:l,checkboxes:d,cell:s,valueTextAlign:h}),key:i})};function og({labels:e,dense:n,showGray:i,checkboxes:o}){const r=e.map(([e,n],i)=>t.createElement("span",{id:i,className:n?qh.highlighted:""},e));return t.createElement(tg,{label:r,dense:n,showGray:i,checkboxes:o})}const rg=function({onChange:e,labels:n,checkboxes:i,dense:o,showGray:r,qElemNumber:s,isSelected:a,cell:l,isGridCol:c,isSingleSelect:d,valueTextAlign:h,styles:u}){const g=t.createElement(og,{labels:n,dense:o,showGray:r,checkboxes:i});return i?t.createElement(ig,{onChange:e,label:g,qElemNumber:s,isSelected:a,dense:o,cell:l,isGridCol:c,showGray:r,isSingleSelect:d,checkboxes:i,valueTextAlign:h,styles:u}):g};function sg({onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){return d?t.createElement(ig,{onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}):t.createElement(tg,{label:n,dense:r,showGray:!0,checkboxes:d,cell:s,valueTextAlign:h})}const ag=t.memo(sg),lg=function({qFrequency:e,histogram:n,checkboxes:i,isSelected:o,frequencyMax:r}){if(!e||!n||"-"===Hh(e))return;const s=(({qFrequency:e,frequencyMax:t})=>{const n=String(e),i="%"===n.substring(n.length-1),o=parseFloat(i?n:e);return`${i?o:o/t*100}%`})({qFrequency:e,checkboxes:i,frequencyMax:r});return t.createElement(Ri,{className:Vh([qh.bar,i&&qh.barWithCheckbox,o&&(i?qh.barSelectedWithCheckbox:qh.barSelected)])},t.createElement(Ri,{className:"bar-filled",width:s}))},cg=function({cell:e,checkboxes:n,dense:i,showGray:o}){const r=Hh(e?.qFrequency);return t.createElement(yr,{item:!0,style:{display:"flex",alignItems:"center"},className:qh.frequencyCount,"aria-label":r,title:r},t.createElement(Lr,{noWrap:!0,color:"inherit",variant:"body2",className:Vh([i&&qh.labelDense,qh.labelText,o&&zh({cell:e,checkboxes:n})&&qh.excludedTextWithCheckbox])},r))};function dg({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:i}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:i?"100%":`calc(100% - ${n}px)`,width:`calc(100% - ${2*n}px)`,position:"absolute",left:4};default:return{}}}const hg=(0,sn.Ay)(yr,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})(({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:i,direction:o,fillHeight:r})=>{const s="padding"+("rtl"===o?"Left":"Right");return{[`&.${qh.fieldRoot}`]:{...dg({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:r}),[s]:i?"8px":void 0}}}),ug=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===ug.ARROW_UP||e===ug.ARROW_DOWN||e===ug.ARROW_LEFT||e===ug.ARROW_RIGHT}),gg=ug;function pg(e){e?.querySelectorAll(".last-focused").forEach(e=>{e.classList.remove("last-focused")})}function mg(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")||e?.closest(".qv-gs-listbox")}function fg({containerRef:e,enabled:n}){const[i,o]=(0,t.useState)(!1);return{enabled:n,active:i,innerTabStops:!n||i,blur(t){if(!n)return;o(!1);const i=mg(e.current)||e.current?.parentElement;var r;r=e.current,r?.querySelectorAll('[tabIndex="0"]').forEach(e=>{e.setAttribute("tabIndex",-1)}),pg(e.current),t&&i&&(i.setAttribute("tabIndex",0),e.current.setAttribute("tabIndex",-1),i.focus())},focus(){if(!n)return;o(!0);const t=e.current,i=t?.querySelector(".search input"),r=t?.querySelector(".value.last-focused"),s=t?.querySelector(".value.selector, .value"),a=t?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=t?.querySelector("#listbox-unlock-button"),c=t?.querySelector(".listbox-cyclic-button"),d=c||i||r||s||l||a;d?.setAttribute("tabIndex",0),d?.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return n?.setAttribute("tabIndex",0),n?.focus(),n}}}const bg=e=>+e.getAttribute("data-n"),vg=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},Cg=e=>{const t=e?.querySelector(".value.last-focused"),n=e?.querySelector(".value.selector"),i=e?.querySelector(".value"),o=t||n||i;return o?.setAttribute("tabIndex",0),o?.focus(),pg(e),o},_g=e=>{const t=e?.querySelector(".listbox-cyclic-button:not(:disabled)");return t?.setAttribute("tabIndex",0),t?.focus(),t},yg=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:i}=e,o=i.classList.contains("listbox-container"),r=n.closest(".listbox-container"),s=mg(r),a=1===s?.querySelectorAll(".listbox-container").length;if(o||a)t.blur(!0);else{pg(r),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),e?.focus()}},Ag={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"},wg=function({index:e,rowIndex:n,columnIndex:i,style:o,data:r}){const{onChange:s,onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onTouchStart:h,onTouchEnd:u,pages:g,isLocked:p,column:m=!1,checkboxes:f=!1,textAlign:b,direction:v,layoutOptions:C={},freqIsAllowed:_,isSingleSelect:y,actions:A,frequencyMax:w="",histogram:S=!1,keyboard:k,showGray:x=!0,showTick:E=!0,columnCount:L=1,rowCount:D=1,dataOffset:I,deducedFrequencyMode:N,focusListItems:M,listCount:T,sizes:R,translator:q,showSearch:O,isModal:P,contentFontStyle:B,styles:F,fillHeight:W}=r,{dense:z=!1,dataLayout:V="singleColumn",layoutOrder:H}=C,{itemPadding:j}=R;let U,$;const G={max:null,currentIndex:null};if("number"==typeof n&&"number"==typeof i){"row"===H?(U=n*L+i,G.max=D,G.currentIndex=n):(U=i*D+n,G.max=L,G.currentIndex=i);const e=0;$={...o,height:W?"100%":o.height,left:e+(0===i?o.left:Number(o.left)+i*e),top:0===n?o.top:Number(o.top)+n*e}}else U=e,G.max=T,G.currentIndex=e,$={...o};U+=I;const[K,Q]=(0,t.useState)(null);(0,t.useEffect)(()=>{null!==K&&(0===G.currentIndex&&M.first&&(K.focus(),M.setFirst(!1)),G.currentIndex===G.max-1&&M.last&&(K.focus(),M.setLast(!1)))},[K,M.first,M.last]);const Y=(0,t.useCallback)(function({select:e,selectAll:t,onCtrlF:n,confirm:i,cancel:o,setScrollPosition:r,focusListItems:s,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:h,columnIndex:u,layoutOrder:g}){const p=(e,t,n=!1)=>{if(e===gg.ARROW_LEFT||e===gg.ARROW_RIGHT||"number"!=typeof h||"number"!=typeof u){const e=t?.parentElement[n?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const i=t?.parentElement.parentElement,o=i?.childElementCount;if(o){const n=(({rowIndex:e,columnIndex:t,rowCount:n,columnCount:i,layoutOrder:o,keyCode:r,numCells:s})=>{const a=e=>{let t;return"row"===o?(t=s%i,e<t?n:n-1):(t=s%n,e<i-1?n:t)};let l=e,c=t;if(r===gg.ARROW_DOWN)if(e>=a(t)-1){if(t===i-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*i+c;const d=s%n;return 0===d||l<d?l*i+c:(l-d)*(i-1)+c+d*i})({rowIndex:h,columnIndex:u,rowCount:c,columnCount:d,layoutOrder:g,keyCode:e,numCells:o}),i=t?.parentElement.parentElement.children[n];return i?.querySelector("[role]")}};let m=!1;const f=e=>{m=e};return c=>{let d;const{currentTarget:h,nativeEvent:u}=c,{keyCode:g,shiftKey:b=!1,ctrlKey:v=!1,metaKey:C=!1}=u;switch(g){case gg.TAB:{const e=h.closest(".listbox-container"),t=void 0!==l?l():void 0;if(h.classList.add("last-focused"),!a?.enabled){if(!t)return;return a.focusSelection(),c.preventDefault(),void c.stopPropagation()}if(b){vg(e)||_g(e)||(t?a.focusSelection():yg(c,a));break}a.focusSelection()||_g(e)||vg(e)||(h.blur(),yg(c,a));break}case gg.SHIFT:f(!0);break;case gg.SPACE:e([bg(h)],!1,c);break;case gg.ARROW_DOWN:case gg.ARROW_RIGHT:d=p(g,h,!0),b&&d&&(m&&(e([bg(h)],!0),f(!1)),e([bg(d)],!0));break;case gg.ARROW_UP:case gg.ARROW_LEFT:d=p(g,h,!1),b&&d&&(m&&(e([bg(h)],!0),f(!1)),e([bg(d)],!0));break;case gg.ENTER:if(i(),void 0===l)return;break;case gg.ESCAPE:if(void 0===l)return void o();if(!l())return;o();break;case gg.HOME:if(s.setFirst(!0),v){r?.("overflowStart");break}r?.("start");break;case gg.END:if(s.setLast(!0),v){r?.("overflowEnd");break}r?.("end");break;case gg.A:if(v||C){t();break}return;case gg.F:if(v||C){n();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...A,focusListItems:M,keyboard:k,isModal:P,rowCount:D,columnCount:L,rowIndex:n,columnIndex:i,layoutOrder:H}),[A,k?.innerTabStops,D,L,n,i,H]),X=(0,t.useMemo)(()=>function({pages:e,cellIndex:t}){let n;const i=e.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(i){const e=i.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([n]=i.qMatrix[t-e.qTop])}return n}({pages:g,cellIndex:U}),[g,U]),Z="S"===X?.qState||"XS"===X?.qState||"L"===X?.qState||"XL"===X?.qState,J=(0,t.useMemo)(()=>(({column:e,histogram:t,cell:n,showGray:i})=>{if(!n)return[];const o=[e?qh.column:qh.row];t||o.push(qh.rowBorderBottom);const r=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?qh.XS:qh.S;break;case"S":case"L":n=qh.S;break;case"A":n=!!t&&qh.A;break;case"X":case"XL":n=!!t&&qh.X;break;default:n=!1}return n}({cell:n,showGray:i});return r&&o.push(r),o})({column:m,histogram:S,cell:X,showGray:x}),[X?.qState,S,z]),ee=(0,t.useCallback)(e=>{e.preventDefault()},[f]),te=(0,t.useMemo)(()=>X&&function({direction:e,cell:t,textAlign:n}){const i=!["NaN",void 0].includes(t?.qNum);let o;return o=!n||n.auto?i?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:n?.align||"left",["left","center","right"].includes(o)?o:"left"}({direction:v,cell:X,textAlign:b}),[v,X,b]);if(!X)return null;const ne="grid"===V&&"column"===H,ie=X?.qText??"";let oe;if(X.qHighlightRanges?.qRanges?.length){const e=X.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[];oe=function(e,t){if(!t.length)return[];const n=t.reduce((n,i,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,r=[];return i>n&&r.push([e.slice(n,i),!1]),r.push([e.slice(i,i+o),!0]),r}(e,i,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&n.push([e.slice(a),!1]),n},[]);return n}(ie,e)}const re={alignItems:"center",display:"flex",fontSize:"8px"},se="rtl"===v,ae={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:se?8:f?0:void 0,paddingRight:f?0:se?8:0,justifyContent:te,textAlign:te},le=0===e,ce=Z&&p,de=!f&&Z&&!p,he=!f&&E,ue=f||!E,ge=function({translator:e,label:t,qState:n,isSelected:i,currentIndex:o,maxIndex:r,showSearch:s}){const a=Ag[n],l=e.get(a),c=[];if(i){const t=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=e.get(t);c.push(n)}const d=`${t} ${l}`,h=e.get("CurrentSelections.Of",[o+1,r+1]);return c.unshift(d,h),c.join(". ").trim()}({translator:q,label:ie,qState:X.qState,currentIndex:G.currentIndex,maxIndex:G.max,showSearch:O}),pe=!se&&"right"===te||se&&"left"===te;return t.createElement(Qh,{className:qh.barContainer,checkboxes:f,style:$,styles:F,isGridCol:ne,isGridMode:"grid"===V,dense:z,direction:v,sizes:R,frequencyMode:N,freqHitsValue:pe,contentFontStyle:B,"data-testid":"listbox.item"},t.createElement(hg,{role:"row","aria-label":ge,"aria-selected":Z,"aria-setsize":G.max,"aria-rowindex":G.currentIndex,ref:Q,container:!0,dataLayout:V,cellPaddingRight:ue,layoutOrder:H,itemPadding:j,gap:0,className:Vh(["value",...J]),classes:{root:qh.fieldRoot},onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:Y,onTouchStart:h,onTouchEnd:u,onContextMenu:ee,tabIndex:le&&k.innerTabStops?0:-1,"data-n":X?.qElemNumber,direction:v,fillHeight:W},X?.qFrequency&&t.createElement(lg,{qFrequency:X?.qFrequency,histogram:S,checkboxes:f,isSelected:Z,frequencyMax:w}),t.createElement(yr,{item:!0,style:ae,className:Vh([qh.cell,qh.selectedCell]),title:`${ie}`},oe?t.createElement(rg,{onChange:s,labels:oe,checkboxes:f,dense:z,showGray:x,qElemNumber:X.qElemNumber,isSelected:Z,cell:X,isGridCol:ne,isSingleSelect:y,valueTextAlign:te,styles:F}):t.createElement(ag,{onChange:s,label:ie,qElemNumber:X.qElemNumber,isSelected:Z,dense:z,cell:X,isGridCol:ne,showGray:x,isSingleSelect:y,checkboxes:f,valueTextAlign:te,styles:F})),_&&t.createElement(cg,{cell:X,checkboxes:f,dense:z,showGray:x}),he&&t.createElement(yr,{item:!0,className:qh.icon},ce&&t.createElement(Sd,{style:re,size:"small"}),de&&t.createElement(Fh,{style:re,size:"small"}))))};var Sg=s(4117),kg=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xg(e,t){return e===t||!(!kg(e)||!kg(t))}function Eg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!xg(e[n],t[n]))return!1;return!0}const Lg=function(e,t){var n;void 0===t&&(t=Eg);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}};var Dg="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Ig(e){cancelAnimationFrame(e.id)}function Ng(e,t){var n=Dg(),i={id:requestAnimationFrame(function o(){Dg()-n>=t?e.call(null):i.id=requestAnimationFrame(o)})};return i}var Mg=-1;function Tg(e){if(void 0===e&&(e=!1),-1===Mg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Mg=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Mg}var Rg=null;function qg(e){if(void 0===e&&(e=!1),null===Rg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?Rg="positive-descending":(t.scrollLeft=1,Rg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Rg}return Rg}var Og=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Pg(e){var n,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,r=e.getColumnStopIndexForStartIndex,s=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,h=e.getRowHeight,u=e.getRowOffset,g=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return n=function(e){function n(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,xo(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:xo(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Lg(function(e,t,i,o,r,s,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=Lg(function(e,t,i,o,r){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,r=n.props,a=r.columnWidth,l=r.direction,c=r.rowHeight,d=n._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=i(n.props,t,n._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:u(n.props,e,n._instanceProps),height:h(n.props,e,n._instanceProps),width:s(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Lg(function(e,t,n){return{}}),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=n.props.direction,c=r;if("rtl"===t)switch(qg()){case"negative":c=-r;break;case"positive-descending":c=l-o-r}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(s,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Ig(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Ng(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Lo(n,e),n.getDerivedStateFromProps=function(e,t){return Bg(e,t),b(e),null};var v=n.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,r=this.props,s=r.columnCount,h=r.height,u=r.rowCount,g=r.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,b=Tg();void 0!==i&&(i=Math.max(0,Math.min(i,s-1))),void 0!==o&&(o=Math.max(0,Math.min(o,u-1)));var v=a(this.props,this._instanceProps),C=l(this.props,this._instanceProps)>g?b:0,_=v>h?b:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,_):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,C):f})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var i=this._outerRef;"number"==typeof t&&(i.scrollLeft=t),"number"==typeof n&&(i.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,i=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(qg()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ig(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,n=e.children,i=e.className,o=e.columnCount,r=e.direction,s=e.height,c=e.innerRef,d=e.innerElementType,h=e.innerTagName,u=e.itemData,g=e.itemKey,p=void 0===g?Og:g,m=e.outerElementType,f=e.outerTagName,b=e.rowCount,v=e.style,C=e.useIsScrolling,_=e.width,y=this.state.isScrolling,A=this._getHorizontalRangeToRender(),w=A[0],S=A[1],k=this._getVerticalRangeToRender(),x=k[0],E=k[1],L=[];if(o>0&&b)for(var D=x;D<=E;D++)for(var I=w;I<=S;I++)L.push((0,t.createElement)(n,{columnIndex:I,data:u,isScrolling:C?y:void 0,key:p({columnIndex:I,data:u,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,I)}));var N=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return(0,t.createElement)(m||f||"div",{className:i,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,Jt.A)({position:"relative",height:s,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},v)},(0,t.createElement)(d||h||"div",{children:L,ref:c,style:{height:N,pointerEvents:y?"none":void 0,width:M}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,i=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var r=this._getHorizontalRangeToRender(),s=r[0],a=r[1],l=r[2],c=r[3],d=this._getVerticalRangeToRender(),h=d[0],u=d[1],g=d[2],p=d[3];this._callOnItemsRendered(s,a,h,u,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,C=m.scrollUpdateWasRequested,_=m.verticalScrollDirection;this._callOnScroll(b,v,f,_,C)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,h=l.scrollLeft,u=n||i||s||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,h,this._instanceProps),p=r(this.props,g,h,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,u),f=d&&"forward"!==c?1:Math.max(1,u);return[Math.max(0,g-m),Math.max(0,Math.min(t-1,p+f)),g,p]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=i||o||n||1;if(0===t||0===r)return[0,0,0,0];var h=g(this.props,c,this._instanceProps),u=p(this.props,h,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,h-m),Math.max(0,Math.min(r-1,u+f)),h,u]},n}(t.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},n}var Bg=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Fg=function(e,t){return e};function Wg(e){var n,i=e.getItemOffset,o=e.getEstimatedTotalSize,r=e.getItemSize,s=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,h=e.validateProps;return n=function(e){function n(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,xo(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:xo(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Lg(function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=Lg(function(e,t,i){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,s=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var h=i(n.props,e,n._instanceProps),u=r(n.props,e,n._instanceProps),g="horizontal"===s||"horizontal"===l,p="rtl"===s,m=g?h:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:h,height:g?"100%":u,width:g?u:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Lg(function(e,t,n){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,s=o;if("rtl"===t)switch(qg()){case"negative":s=-o;break;case"positive-descending":s=r-i-o}return s=Math.max(0,Math.min(s,r-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<s?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;n.setState(function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,o-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Ig(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Ng(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Lo(n,e),n.getDerivedStateFromProps=function(e,t){return zg(e,t),h(e),null};var u=n.prototype;return u.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)},u.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,i=n.itemCount,o=n.layout,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?Tg():0:l.scrollHeight>l.clientHeight?Tg():0}this.scrollTo(s(this.props,e,t,r,this._instanceProps,a))},u.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,i=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===i?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},u.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,i=this.state,o=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(qg()){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()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ig(this._resetIsScrollingTimeoutId)},u.render=function(){var e=this.props,n=e.children,i=e.className,r=e.direction,s=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,h=e.itemData,u=e.itemKey,g=void 0===u?Fg:u,p=e.layout,m=e.outerElementType,f=e.outerTagName,b=e.style,v=e.useIsScrolling,C=e.width,_=this.state.isScrolling,y="horizontal"===r||"horizontal"===p,A=y?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),S=w[0],k=w[1],x=[];if(d>0)for(var E=S;E<=k;E++)x.push((0,t.createElement)(n,{data:h,key:g(E,h),index:E,isScrolling:v?_:void 0,style:this._getItemStyle(E)}));var L=o(this.props,this._instanceProps);return(0,t.createElement)(m||f||"div",{className:i,onScroll:A,ref:this._outerRefSetter,style:(0,Jt.A)({position:"relative",height:s,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},b)},(0,t.createElement)(l||c||"div",{children:x,ref:a,style:{height:y?"100%":L,pointerEvents:_?"none":void 0,width:y?L:"100%"}}))},u._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],i=e[2],o=e[3];this._callOnItemsRendered(t,n,i,o)}if("function"==typeof this.props.onScroll){var r=this.state,s=r.scrollDirection,a=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},u._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,r=i.scrollDirection,s=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),d=l(this.props,c,s,this._instanceProps),h=o&&"backward"!==r?1:Math.max(1,n),u=o&&"forward"!==r?1:Math.max(1,n);return[Math.max(0,c-h),Math.max(0,Math.min(t-1,d+u)),c,d]},n}(t.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var zg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Vg=Pg({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,i,o,r){var s=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,s*a-l),d=Math.min(c,t*a),h=Math.max(0,t*a-l+r+a);switch("smart"===n&&(n=i>=h-l&&i<=d+l?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(l/2)?0:u>c+Math.floor(l/2)?c:u;default:return i>=h&&i<=d?i:h>d||i<h?h:d}},getOffsetForRowAndAlignment:function(e,t,n,i,o,r){var s=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*s-a),d=Math.min(c,t*s),h=Math.max(0,t*s-a+r+s);switch("smart"===n&&(n=i>=h-a&&i<=d+a?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(a/2)?0:u>c+Math.floor(a/2)?c:u;default:return i>=h&&i<=d?i:h>d||i<h?h:d}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var i=e.columnWidth,o=e.columnCount,r=e.width,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var i=e.rowHeight,o=e.rowCount,r=e.height,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),Hg=Wg({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,i,o,r){var s=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,h=e.width,u="horizontal"===s||"horizontal"===d?h:a,g=Math.max(0,l*c-u),p=Math.min(g,t*c),m=Math.max(0,t*c-u+c+r);switch("smart"===n&&(n=i>=m-u&&i<=p+u?"auto":"center"),n){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(u/2)?0:f>g+Math.floor(u/2)?g:f;default:return i>=m&&i<=p?i:i<m?m:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,n){var i=e.direction,o=e.height,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===i||"horizontal"===a?l:o,h=Math.ceil((d+n-c)/s);return Math.max(0,Math.min(r-1,t+h-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const jg="#BBB",Ug="#f1f1f1",$g="ListBox-styledScrollbars";function Gg({renderProps:e,layoutOptions:t,maxCount:n,columnCount:i,rowCount:o,overflowDisclaimer:r,qCardinal:s,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=((e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(e,l),d=l?n.column:n.row,h=(l?i:o)>=d,u=((e,t,n,i)=>e===t*n+i+n)(s,c,l?o:i,a),g=!!a&&((e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(e,l),p=h&&!u&&c>=d-1||g||r.state.show;r.set(p)}function Kg(){return Kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Kg.apply(null,arguments)}const{StyledFixedSizeList:Qg,StyledFixedSizeGrid:Yg}=function(){const e=e=>({scrollbarColor:`${jg} ${Ug}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Ug},"&::-webkit-scrollbar-thumb":{backgroundColor:jg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:(0,Sg.A)(Hg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${$g}`]:e(t)})),StyledFixedSizeGrid:(0,Sg.A)(Vg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${$g}`]:e(t)}))}}(),Xg=e=>{const n=(0,t.useMemo)(()=>"text"in e?e:{},[e]);return(0,t.useMemo)(()=>((e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map(e=>n.measureText(e).width));const i=n.measureText(e);return Math.ceil(i.width||0)})(n.text,n.font||"12px Source Sans Pro"),[n.text,n.font])};function Zg(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Jg({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}const[ep,tp]=hd({});function np(e){const t=`${e.id}`,[n]=ep();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}var ip=s(8259);function op(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rp(e){return e instanceof op(e).Element||e instanceof Element}function sp(e){return e instanceof op(e).HTMLElement||e instanceof HTMLElement}function ap(e){return"undefined"!=typeof ShadowRoot&&(e instanceof op(e).ShadowRoot||e instanceof ShadowRoot)}var lp=Math.max,cp=Math.min,dp=Math.round;function hp(){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 up(){return!/^((?!chrome|android).)*safari/i.test(hp())}function gp(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&sp(e)&&(o=e.offsetWidth>0&&dp(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&dp(i.height)/e.offsetHeight||1);var s=(rp(e)?op(e):window).visualViewport,a=!up()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,d=i.width/o,h=i.height/r;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function pp(e){var t=op(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mp(e){return e?(e.nodeName||"").toLowerCase():null}function fp(e){return((rp(e)?e.ownerDocument:e.document)||window.document).documentElement}function bp(e){return gp(fp(e)).left+pp(e).scrollLeft}function vp(e){return op(e).getComputedStyle(e)}function Cp(e){var t=vp(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function _p(e,t,n){void 0===n&&(n=!1);var i,o,r=sp(t),s=sp(t)&&function(e){var t=e.getBoundingClientRect(),n=dp(t.width)/e.offsetWidth||1,i=dp(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=fp(t),l=gp(e,s,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==mp(t)||Cp(a))&&(c=(i=t)!==op(i)&&sp(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:pp(i)),sp(t)?((d=gp(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=bp(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function yp(e){var t=gp(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ap(e){return"html"===mp(e)?e:e.assignedSlot||e.parentNode||(ap(e)?e.host:null)||fp(e)}function wp(e){return["html","body","#document"].indexOf(mp(e))>=0?e.ownerDocument.body:sp(e)&&Cp(e)?e:wp(Ap(e))}function Sp(e,t){var n;void 0===t&&(t=[]);var i=wp(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=op(i),s=o?[r].concat(r.visualViewport||[],Cp(i)?i:[]):i,a=t.concat(s);return o?a:a.concat(Sp(Ap(s)))}function kp(e){return["table","td","th"].indexOf(mp(e))>=0}function xp(e){return sp(e)&&"fixed"!==vp(e).position?e.offsetParent:null}function Ep(e){for(var t=op(e),n=xp(e);n&&kp(n)&&"static"===vp(n).position;)n=xp(n);return n&&("html"===mp(n)||"body"===mp(n)&&"static"===vp(n).position)?t:n||function(e){var t=/firefox/i.test(hp());if(/Trident/i.test(hp())&&sp(e)&&"fixed"===vp(e).position)return null;var n=Ap(e);for(ap(n)&&(n=n.host);sp(n)&&["html","body"].indexOf(mp(n))<0;){var i=vp(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var Lp="top",Dp="bottom",Ip="right",Np="left",Mp="auto",Tp=[Lp,Dp,Ip,Np],Rp="start",qp="end",Op="viewport",Pp="popper",Bp=Tp.reduce(function(e,t){return e.concat([t+"-"+Rp,t+"-"+qp])},[]),Fp=[].concat(Tp,[Mp]).reduce(function(e,t){return e.concat([t,t+"-"+Rp,t+"-"+qp])},[]),Wp=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function zp(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),i}function Vp(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var Hp={placement:"bottom",modifiers:[],strategy:"absolute"};function jp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Up(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?Hp:o;return function(e,t,n){void 0===n&&(n=r);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hp,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},r,o.options,a),o.scrollParents={reference:rp(e)?Sp(e):e.contextElement?Sp(e.contextElement):[],popper:Sp(t)};var d,h,u=function(e){var t=zp(e);return Wp.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((d=[].concat(i,o.options.modifiers),h=d.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(h).map(function(e){return h[e]})));return o.orderedModifiers=u.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var a=r({state:o,name:t,instance:l,options:i});s.push(a||function(){})}}),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(jp(t,n)){o.rects={reference:_p(t,Ep(n),"fixed"===o.options.strategy),popper:yp(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<o.orderedModifiers.length;i++)if(!0!==o.reset){var r=o.orderedModifiers[i],s=r.fn,c=r.options,d=void 0===c?{}:c,h=r.name;"function"==typeof s&&(o=s({state:o,options:d,name:h,instance:l})||o)}else o.reset=!1,i=-1}}},update:Vp(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){c(),a=!0}};if(!jp(e,t))return l;function c(){s.forEach(function(e){return e()}),s=[]}return l.setOptions(n).then(function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var $p={passive:!0};function Gp(e){return e.split("-")[0]}function Kp(e){return e.split("-")[1]}function Qp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yp(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?Gp(o):null,s=o?Kp(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Lp:t={x:a,y:n.y-i.height};break;case Dp:t={x:a,y:n.y+n.height};break;case Ip:t={x:n.x+n.width,y:l};break;case Np:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?Qp(r):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case Rp:t[c]=t[c]-(n[d]/2-i[d]/2);break;case qp:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}var Xp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zp(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=s.x,g=void 0===u?0:u,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 b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),C=Np,_=Lp,y=window;if(c){var A=Ep(n),w="clientHeight",S="clientWidth";A===op(n)&&"static"!==vp(A=fp(n)).position&&"absolute"===a&&(w="scrollHeight",S="scrollWidth"),(o===Lp||(o===Np||o===Ip)&&r===qp)&&(_=Dp,m-=(h&&A===y&&y.visualViewport?y.visualViewport.height:A[w])-i.height,m*=l?1:-1),o!==Np&&(o!==Lp&&o!==Dp||r!==qp)||(C=Ip,g-=(h&&A===y&&y.visualViewport?y.visualViewport.width:A[S])-i.width,g*=l?1:-1)}var k,x=Object.assign({position:a},c&&Xp),E=!0===d?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:dp(n*o)/o||0,y:dp(i*o)/o||0}}({x:g,y:m},op(n)):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},x,((k={})[_]=v?"0":"",k[C]=b?"0":"",k.transform=(y.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",k)):Object.assign({},x,((t={})[_]=v?m+"px":"",t[C]=b?g+"px":"",t.transform="",t))}const Jp={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];sp(o)&&mp(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});sp(i)&&mp(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};var em={left:"right",right:"left",bottom:"top",top:"bottom"};function tm(e){return e.replace(/left|right|bottom|top/g,function(e){return em[e]})}var nm={start:"end",end:"start"};function im(e){return e.replace(/start|end/g,function(e){return nm[e]})}function om(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ap(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function rm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sm(e,t,n){return t===Op?rm(function(e,t){var n=op(e),i=fp(e),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=up();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+bp(e),y:l}}(e,n)):rp(t)?function(e,t){var n=gp(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):rm(function(e){var t,n=fp(e),i=pp(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=lp(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=lp(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+bp(e),l=-i.scrollTop;return"rtl"===vp(o||n).direction&&(a+=lp(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(fp(e)))}function am(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function lm(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function cm(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,s=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?Op:c,h=n.elementContext,u=void 0===h?Pp:h,g=n.altBoundary,p=void 0!==g&&g,m=n.padding,f=void 0===m?0:m,b=am("number"!=typeof f?f:lm(f,Tp)),v=u===Pp?"reference":Pp,C=e.rects.popper,_=e.elements[p?v:u],y=function(e,t,n,i){var o="clippingParents"===t?function(e){var t=Sp(Ap(e)),n=["absolute","fixed"].indexOf(vp(e).position)>=0&&sp(e)?Ep(e):e;return rp(n)?t.filter(function(e){return rp(e)&&om(e,n)&&"body"!==mp(e)}):[]}(e):[].concat(t),r=[].concat(o,[n]),s=r[0],a=r.reduce(function(t,n){var o=sm(e,n,i);return t.top=lp(o.top,t.top),t.right=cp(o.right,t.right),t.bottom=cp(o.bottom,t.bottom),t.left=lp(o.left,t.left),t},sm(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(rp(_)?_:_.contextElement||fp(e.elements.popper),l,d,s),A=gp(e.elements.reference),w=Yp({reference:A,element:C,strategy:"absolute",placement:o}),S=rm(Object.assign({},C,w)),k=u===Pp?S:A,x={top:y.top-k.top+b.top,bottom:k.bottom-y.bottom+b.bottom,left:y.left-k.left+b.left,right:k.right-y.right+b.right},E=e.modifiersData.offset;if(u===Pp&&E){var L=E[o];Object.keys(x).forEach(function(e){var t=[Ip,Dp].indexOf(e)>=0?1:-1,n=[Lp,Dp].indexOf(e)>=0?"y":"x";x[e]+=L[n]*t})}return x}const dm={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,u=n.altBoundary,g=n.flipVariations,p=void 0===g||g,m=n.allowedAutoPlacements,f=t.options.placement,b=Gp(f),v=l||(b!==f&&p?function(e){if(Gp(e)===Mp)return[];var t=tm(e);return[im(e),t,im(t)]}(f):[tm(f)]),C=[f].concat(v).reduce(function(e,n){return e.concat(Gp(n)===Mp?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Fp:l,d=Kp(i),h=d?a?Bp:Bp.filter(function(e){return Kp(e)===d}):Tp,u=h.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=h);var g=u.reduce(function(t,n){return t[n]=cm(e,{placement:n,boundary:o,rootBoundary:r,padding:s})[Gp(n)],t},{});return Object.keys(g).sort(function(e,t){return g[e]-g[t]})}(t,{placement:n,boundary:d,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)},[]),_=t.rects.reference,y=t.rects.popper,A=new Map,w=!0,S=C[0],k=0;k<C.length;k++){var x=C[k],E=Gp(x),L=Kp(x)===Rp,D=[Lp,Dp].indexOf(E)>=0,I=D?"width":"height",N=cm(t,{placement:x,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),M=D?L?Ip:Np:L?Dp:Lp;_[I]>y[I]&&(M=tm(M));var T=tm(M),R=[];if(r&&R.push(N[E]<=0),a&&R.push(N[M]<=0,N[T]<=0),R.every(function(e){return e})){S=x,w=!1;break}A.set(x,R)}if(w)for(var q=function(e){var t=C.find(function(t){var n=A.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},O=p?3:1;O>0&&"break"!==q(O);O--);t.placement!==S&&(t.modifiersData[i]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function hm(e,t,n){return lp(e,cp(t,n))}const um={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,u=n.tether,g=void 0===u||u,p=n.tetherOffset,m=void 0===p?0:p,f=cm(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),b=Gp(t.placement),v=Kp(t.placement),C=!v,_=Qp(b),y="x"===_?"y":"x",A=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,x="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(A){if(r){var D,I="y"===_?Lp:Np,N="y"===_?Dp:Ip,M="y"===_?"height":"width",T=A[_],R=T+f[I],q=T-f[N],O=g?-S[M]/2:0,P=v===Rp?w[M]:S[M],B=v===Rp?-S[M]:-w[M],F=t.elements.arrow,W=g&&F?yp(F):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=z[I],H=z[N],j=hm(0,w[M],W[M]),U=C?w[M]/2-O-j-V-x.mainAxis:P-j-V-x.mainAxis,$=C?-w[M]/2+O+j+H+x.mainAxis:B+j+H+x.mainAxis,G=t.elements.arrow&&Ep(t.elements.arrow),K=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,Q=null!=(D=null==E?void 0:E[_])?D:0,Y=T+$-Q,X=hm(g?cp(R,T+U-Q-K):R,T,g?lp(q,Y):q);A[_]=X,L[_]=X-T}if(a){var Z,J="x"===_?Lp:Np,ee="x"===_?Dp:Ip,te=A[y],ne="y"===y?"height":"width",ie=te+f[J],oe=te-f[ee],re=-1!==[Lp,Np].indexOf(b),se=null!=(Z=null==E?void 0:E[y])?Z:0,ae=re?ie:te-w[ne]-S[ne]-se+x.altAxis,le=re?te+w[ne]+S[ne]-se-x.altAxis:oe,ce=g&&re?function(e,t,n){var i=hm(e,t,n);return i>n?n:i}(ae,te,le):hm(g?ae:ie,te,g?le:oe);A[y]=ce,L[y]=ce-te}t.modifiersData[i]=L}},requiresIfExists:["offset"]};function gm(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pm(e){return[Lp,Ip,Dp,Np].some(function(t){return e[t]>=0})}var mm=Up({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=op(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,$p)}),a&&l.addEventListener("resize",n.update,$p),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,$p)}),a&&l.removeEventListener("resize",n.update,$p)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Yp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:Gp(t.placement),variation:Kp(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,Zp(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,Zp(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:{}},Jp,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,s=Fp.reduce(function(e,n){return e[n]=function(e,t,n){var i=Gp(e),o=[Np,Lp].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Np,Ip].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,r),e},{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}},dm,um,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Gp(n.placement),l=Qp(a),c=[Np,Ip].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return am("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:lm(e,Tp))}(o.padding,n),h=yp(r),u="y"===l?Lp:Np,g="y"===l?Dp:Ip,p=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],f=Ep(r),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,v=p/2-m/2,C=d[u],_=b-h[c]-d[g],y=b/2-h[c]/2+v,A=hm(C,y,_),w=l;n.modifiersData[i]=((t={})[w]=A,t.centerOffset=A-y,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&om(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=cm(t,{elementContext:"reference"}),a=cm(t,{altBoundary:!0}),l=gm(s,i),c=gm(a,o,r),d=pm(l),h=pm(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}}]});function fm(e){return(0,ln.Ay)("MuiPopper",e)}(0,an.A)("MuiPopper",["root"]);const bm=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],vm=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Cm(e){return"function"==typeof e?e():e}const _m={},ym=t.forwardRef(function(e,n){var i;const{anchorEl:o,children:r,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:h,popperRef:u,slotProps:g={},slots:p={},TransitionProps:m}=e,f=(0,Zt.A)(e,bm),b=t.useRef(null),v=(0,Fs.A)(b,n),C=t.useRef(null),_=(0,Fs.A)(C,u),y=t.useRef(_);(0,ii.A)(()=>{y.current=_},[_]),t.useImperativeHandle(u,()=>C.current,[]);const A=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),[w,S]=t.useState(A),[k,x]=t.useState(Cm(o));t.useEffect(()=>{C.current&&C.current.forceUpdate()}),t.useEffect(()=>{o&&x(Cm(o))},[o]),(0,ii.A)(()=>{if(!k||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{S(e.placement)}}];null!=l&&(e=e.concat(l)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));const t=mm(k,b.current,(0,Jt.A)({placement:A},h,{modifiers:e}));return y.current(t),()=>{t.destroy(),y.current(null)}},[k,a,l,c,h,A]);const E={placement:w};null!==m&&(E.TransitionProps=m);const L=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"]},fm,t)})(e),D=null!=(i=p.root)?i:"div",I=$s({elementType:D,externalSlotProps:g.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return(0,dn.jsx)(D,(0,Jt.A)({},I,{children:"function"==typeof r?r(E):r}))}),Am=t.forwardRef(function(e,n){const{anchorEl:i,children:o,container:r,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:u=_m,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:b={}}=e,v=(0,Zt.A)(e,vm),[C,_]=t.useState(!0);if(!l&&!d&&(!m||C))return null;let y;if(r)y=r;else if(i){const e=Cm(i);y=e&&void 0!==e.nodeType?(0,Rd.A)(e).body:(0,Rd.A)(null).body}const A=d||!l||m&&!C?void 0:"none",w=m?{in:d,onEnter:()=>{_(!1)},onExited:()=>{_(!0)}}:void 0;return(0,dn.jsx)(Wd,{disablePortal:a,container:y,children:(0,dn.jsx)(ym,(0,Jt.A)({anchorEl:i,direction:s,disablePortal:a,modifiers:c,ref:n,open:m?!C:d,placement:h,popperOptions:u,popperRef:g,slotProps:f,slots:b},v,{style:(0,Jt.A)({position:"fixed",top:0,left:0,display:A},p),TransitionProps:w,children:o}))})}),wm=Am,Sm=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],km=(0,sn.Ay)(wm,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xm=t.forwardRef(function(e,t){var n;const i=(0,ip.A)(),o=(0,rn.b)({props:e,name:"MuiPopper"}),{anchorEl:r,component:s,components:a,componentsProps:l,container:c,disablePortal:d,keepMounted:h,modifiers:u,open:g,placement:p,popperOptions:m,popperRef:f,transition:b,slots:v,slotProps:C}=o,_=(0,Zt.A)(o,Sm),y=null!=(n=null==v?void 0:v.root)?n:null==a?void 0:a.Root,A=(0,Jt.A)({anchorEl:r,container:c,disablePortal:d,keepMounted:h,modifiers:u,open:g,placement:p,popperOptions:m,popperRef:f,transition:b},_);return(0,dn.jsx)(km,(0,Jt.A)({as:s,direction:null==i?void 0:i.direction,slots:{root:y},slotProps:null!=C?C:l},A,{ref:t}))});var Em=s(23);function Lm(e){return(0,ln.Ay)("MuiTooltip",e)}const Dm=(0,an.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Im=["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"],Nm=(0,sn.Ay)(xm,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>(0,Jt.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Dm.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Dm.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Dm.arrow}`]:(0,Jt.A)({},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"] .${Dm.arrow}`]:(0,Jt.A)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Mm=(0,sn.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Vn.A)(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>{return(0,Jt.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Ao.X4)(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:(n=16/14,Math.round(1e5*n)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${Dm.popper}[data-popper-placement*="left"] &`]:(0,Jt.A)({transformOrigin:"right center"},t.isRtl?(0,Jt.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,Jt.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Dm.popper}[data-popper-placement*="right"] &`]:(0,Jt.A)({transformOrigin:"left center"},t.isRtl?(0,Jt.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,Jt.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Dm.popper}[data-popper-placement*="top"] &`]:(0,Jt.A)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Dm.popper}[data-popper-placement*="bottom"] &`]:(0,Jt.A)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n}),Tm=(0,sn.Ay)("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,Ao.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Rm=!1;const qm=new Po.E;let Om={x:0,y:0};function Pm(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const Bm=t.forwardRef(function(e,n){var i,o,r,s,a,l,c,d,h,u,g,p,m,f,b,v,C,_,y;const A=(0,rn.b)({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:S,components:k={},componentsProps:x={},describeChild:E=!1,disableFocusListener:L=!1,disableHoverListener:D=!1,disableInteractive:I=!1,disableTouchListener:N=!1,enterDelay:M=100,enterNextDelay:T=0,enterTouchDelay:R=700,followCursor:q=!1,id:O,leaveDelay:P=0,leaveTouchDelay:B=1500,onClose:F,onOpen:W,open:z,placement:V="bottom",PopperComponent:H,PopperProps:j={},slotProps:U={},slots:$={},title:G,TransitionComponent:K=Td,TransitionProps:Q}=A,Y=(0,Zt.A)(A,Im),X=t.isValidElement(S)?S:(0,dn.jsx)("span",{children:S}),Z=Gn(),J=ei(),[ee,te]=t.useState(),[ne,ie]=t.useState(null),oe=t.useRef(!1),re=I||q,se=(0,Po.A)(),ae=(0,Po.A)(),le=(0,Po.A)(),ce=(0,Po.A)(),[de,he]=(0,uu.A)({controlled:z,default:!1,name:"Tooltip",state:"open"});let ue=de;const ge=(0,Em.A)(O),pe=t.useRef(),me=(0,So.A)(()=>{void 0!==pe.current&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),ce.clear()});t.useEffect(()=>me,[me]);const fe=e=>{qm.clear(),Rm=!0,he(!0),W&&!ue&&W(e)},be=(0,So.A)(e=>{qm.start(800+P,()=>{Rm=!1}),he(!1),F&&ue&&F(e),se.start(Z.transitions.duration.shortest,()=>{oe.current=!1})}),ve=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),ae.clear(),le.clear(),M||Rm&&T?ae.start(Rm?T:M,()=>{fe(e)}):fe(e))},Ce=e=>{ae.clear(),le.start(P,()=>{be(e)})},{isFocusVisibleRef:_e,onBlur:ye,onFocus:Ae,ref:we}=(0,ko.A)(),[,Se]=t.useState(!1),ke=e=>{ye(e),!1===_e.current&&(Se(!1),Ce(e))},xe=e=>{ee||te(e.currentTarget),Ae(e),!0===_e.current&&(Se(!0),ve(e))},Ee=e=>{oe.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)};t.useEffect(()=>{if(ue)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||be(e)}},[be,ue]);const Le=(0,wo.A)(Ed(X),we,te,n);G||0===G||(ue=!1);const De=t.useRef(),Ie={},Ne="string"==typeof G;E?(Ie.title=ue||!Ne||D?null:G,Ie["aria-describedby"]=ue?ge:null):(Ie["aria-label"]=Ne?G:null,Ie["aria-labelledby"]=ue&&!Ne?ge:null);const Me=(0,Jt.A)({},Ie,Y,X.props,{className:(0,en.A)(Y.className,X.props.className),onTouchStart:Ee,ref:Le},q?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),Om={x:e.clientX,y:e.clientY},De.current&&De.current.update()}}:{}),Te={};N||(Me.onTouchStart=e=>{Ee(e),le.clear(),se.clear(),me(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(R,()=>{document.body.style.WebkitUserSelect=pe.current,ve(e)})},Me.onTouchEnd=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),le.start(B,()=>{be(e)})}),D||(Me.onMouseOver=Pm(ve,Me.onMouseOver),Me.onMouseLeave=Pm(Ce,Me.onMouseLeave),re||(Te.onMouseOver=ve,Te.onMouseLeave=Ce)),L||(Me.onFocus=Pm(xe,Me.onFocus),Me.onBlur=Pm(ke,Me.onBlur),re||(Te.onFocus=xe,Te.onBlur=ke));const Re=t.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=j.popperOptions)&&e.modifiers&&(t=t.concat(j.popperOptions.modifiers)),(0,Jt.A)({},j.popperOptions,{modifiers:t})},[ne,j]),qe=(0,Jt.A)({},A,{isRtl:J,arrow:w,disableInteractive:re,placement:V,PopperComponentProp:H,touch:oe.current}),Oe=(e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:r}=e,s={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,Vn.A)(r.split("-")[0])}`],arrow:["arrow"]};return(0,tn.A)(s,Lm,t)})(qe),Pe=null!=(i=null!=(o=$.popper)?o:k.Popper)?i:Nm,Be=null!=(r=null!=(s=null!=(a=$.transition)?a:k.Transition)?s:K)?r:Td,Fe=null!=(l=null!=(c=$.tooltip)?c:k.Tooltip)?l:Mm,We=null!=(d=null!=(h=$.arrow)?h:k.Arrow)?d:Tm,ze=Ws(Pe,(0,Jt.A)({},j,null!=(u=U.popper)?u:x.popper,{className:(0,en.A)(Oe.popper,null==j?void 0:j.className,null==(g=null!=(p=U.popper)?p:x.popper)?void 0:g.className)}),qe),Ve=Ws(Be,(0,Jt.A)({},Q,null!=(m=U.transition)?m:x.transition),qe),He=Ws(Fe,(0,Jt.A)({},null!=(f=U.tooltip)?f:x.tooltip,{className:(0,en.A)(Oe.tooltip,null==(b=null!=(v=U.tooltip)?v:x.tooltip)?void 0:b.className)}),qe),je=Ws(We,(0,Jt.A)({},null!=(C=U.arrow)?C:x.arrow,{className:(0,en.A)(Oe.arrow,null==(_=null!=(y=U.arrow)?y:x.arrow)?void 0:_.className)}),qe);return(0,dn.jsxs)(t.Fragment,{children:[t.cloneElement(X,Me),(0,dn.jsx)(Pe,(0,Jt.A)({as:null!=H?H:xm,placement:V,anchorEl:q?{getBoundingClientRect:()=>({top:Om.y,left:Om.x,right:Om.x,bottom:Om.y,width:0,height:0})}:ee,popperRef:De,open:!!ee&&ue,id:ge,transition:!0},Te,ze,{popperOptions:Re,children:({TransitionProps:e})=>(0,dn.jsx)(Be,(0,Jt.A)({timeout:Z.transitions.duration.shorter},e,Ve,{children:(0,dn.jsxs)(Fe,(0,Jt.A)({},He,{children:[G,w?(0,dn.jsx)(We,(0,Jt.A)({},je,{ref:ie})):null]}))}))}))]})}),Fm=Bm,Wm=(0,sn.Ay)(Lr,{shouldForwardProp:e=>!["width","dense"].includes(e)})(({width:e,dense:t})=>({minWidth:`${e}px`,textAlign:"center",fontSize:t?"12px":"14px",whiteSpace:"normal",...t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}}));function zm({width:e,text:n,dense:i,tooltip:o}){const{translator:r}=(0,t.useContext)(ld);return t.createElement(Fm,{title:o?r.get(n):""},t.createElement(Wm,{width:e,dense:i,component:"div",variant:"body1",py:"12px"},r.get(n)))}var Vm=s(6307);const Hm=(0,sn.Ay)(ph)(({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t})),jm=(0,sn.Ay)("div")(()=>({paddingLeft:"6px",flexGrow:1})),Um=(0,sn.Ay)("div")(({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"})),$m=(0,sn.Ay)(Vm.A)(()=>({fontSize:"14px"}));function Gm({text:e,dismiss:n,dense:i,parentWidth:o=0}){const r="function"==typeof n,s=i?370:282,a=Math.max(o/2-s/2,0),l=Math.min(s,o)-42,c=i&&o<s;return t.createElement(Hm,{left:a,style:{maxWidth:s}},t.createElement(jm,null,t.createElement(zm,{text:e,dense:i,width:l,tooltip:c})),t.createElement(Um,{dense:i},r&&t.createElement(cr,{"aria-label":"close",onClick:()=>n()},t.createElement($m,null))))}function Km({itemWidth:e,layout:t,frequencyMode:n}){const i=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["N",void 0].includes(n);return!(!i||!r&&!o)}const Qm=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,Ym=e=>{const t=Qm(e);return`Max(AGGR(Count(${t}), ${t}))`},Xm=(0,sn.Ay)("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function Zm({model:e,app:n,constraints:i,layout:o,selections:r,selectionState:s,direction:a,checkboxes:l,height:c,width:d,frequencyMode:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m=!1,keyboard:f={},showGray:b=!0,scrollState:v,keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:_={set:()=>{}},renderedCallback:y,onCtrlF:A,showSearch:w,isModal:S,styles:k}){const{translator:x}=(0,t.useContext)(ld),[E,L]=(0,t.useState)(!1),D=!(!o||!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:I=l,histogram:N}=o??{},M=(0,t.useRef)(null),T=(0,t.useRef)({queue:[],validPages:!1,dataOffset:0}),R=(0,t.useRef)({pages:[]}),{frequencyMax:q,awaitingFrequencyMax:O}=((e,n)=>{const i=(e=>"fetch"===e?.frequencyMax)(n),[o,r]=(0,t.useState)(),[s,a]=(0,t.useState)(i);return(0,t.useEffect)(()=>{i&&(async()=>{const t=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,i=n.qGroupFieldDefs[n.qGroupPos],o=Ym(i);return(await t.evaluateEx(o)).qNumber})(n,e);r(t),a(!1)})()},[i&&n]),{frequencyMax:i?o:n?.frequencyMax,awaitingFrequencyMax:s}})(n,o),{isLoadingData:P,...B}=function({local:e,loaderRef:n,model:i,fetchStart:o,scrollTimeout:r,postProcessPages:s,listData:a}){const[l,c]=(0,t.useState)(!1),[d,h]=(0,t.useState)([]);let[u]=(0,t.useState)(0);const g=(t,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:t+d,stop:l+d});const g=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise(t=>{e.current.timeout=setTimeout(()=>{const n=e.current.queue.slice(-1)[0],r=i.getListObjectData("/qListObjectDef",[{qTop:n.start>u?n.start-u:0,qHeight:u,qLeft:0,qWidth:1},{qTop:n.start,qHeight:u,qLeft:0,qWidth:1}]).then(n=>{const i=s?s(n):n;e.current.validPages=!0,a.current.pages=i,h(i),c(!1),t()});o&&o(r)},g?r:0)})};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(u=e),g)},pages:d,isLoading:l}}({local:T,loaderRef:M,model:e,fetchStart:g,scrollTimeout:0,postProcessPages:p,listData:R}),{getStoreValue:F,setStoreValue:W}=np(e),z=(0,t.useCallback)(B.loadMoreItems,[o]),[V,H]=(0,t.useState)({show:!1,dismissed:!1}),[j,U]=(0,t.useState)([]);B?.pages&&s.update({setPages:U,pages:B.pages,isSingleSelect:D,layout:o});const $=o?.qListObject.qDimensionInfo.qCardinal;(B?.pages.length&&!O||0===$)&&y?.();const G=(0,t.useCallback)(e=>{if(!j?.length||!T.current.validPages)return!1;T.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=j.filter(e=>t(e))[0];return n&&t(n)},[o,j]),{interactionEvents:K,select:Q}=function({selectionState:e,selections:n,checkboxes:i=!1,doc:o=document,loaderRef:r}){const s=(0,t.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,t.useEffect)(()=>{if(!r.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),n=e=>e.preventDefault(),i=r.current._listRef._outerRef;return i.addEventListener("gesturestart",e),i.addEventListener("gesturechange",t),i.addEventListener("gestureend",n),()=>{i.removeEventListener("gesturestart",e),i.removeEventListener("gesturechange",t),i.removeEventListener("gestureend",n)}},[r.current?._listRef?._outerRef]);const a=async()=>!e.selectDisabled?.()&&(e.setSelectableValuesUpdating(),Th({selections:n,elemNumbers:s.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:s.current.toggle})),l=(t,n)=>{const i=function(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[{qElemNumber:t}]=e;return t});return t});return Mh(t)}(e.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:i}=function(e,t){let n=1/0,i=-1/0;return e.forEach(e=>{const o=t.indexOf(e);n=o<n?o:n,i=o>i?o:i}),{min:n,max:i}}(e,t);return t.slice(n,i+1)}([t,n],i)},c=t=>{const{startElemNumber:n}=s.current;if(n===t)return;const i=l(s.current.startElemNumber,t);e.updateItems(i,!0,s.current.elemNumbers)},d=(0,t.useCallback)(t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),i=!e.isSingleSelect&&Ph(t.nativeEvent);s.current.elemNumbers=[n],s.current.toggle=i,i||e.clearItemStates(!0),e.updateItem(n),s.current.active=!1,a()},[]),h=(0,t.useCallback)(t=>{if(0!==t.button||e.selectDisabled())return;const n=+t.currentTarget.getAttribute("data-n"),i=!e.isSingleSelect&&Ph(t);s.current.isRange=!1,s.current.startElemNumber=n,s.current.elemNumbers=[n],s.current.toggle=i,s.current.active=!0,i||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(s.current.active=!1,a()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)},[]),u=(0,t.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,t.useCallback)(e=>{0===e.button&&s.current.active&&(s.current.active=!1,a())},[]),p=(0,t.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 n=+t.currentTarget.getAttribute("data-n");c(n)},[]),m=(0,t.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 n=Number(t.touches[0].target?.closest(Oh)?.getAttribute("data-n")),i=Number(t.touches[1].target?.closest(Oh)?.getAttribute("data-n"));Number.isNaN(n)||Number.isNaN(n)?a():(s.current.active=!0,l(n,i).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[n,i])},[]),f=(0,t.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,t.useEffect)(()=>(o.addEventListener("mouseup",g),()=>{o.removeEventListener("mouseup",g)}),[g]),(0,t.useEffect)(()=>{const t=()=>{e.clearItemStates(!1)},i=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return n.on("clearItemStates",t),n.on("deactivated",t),n.on("cleared",i),()=>{n.removeListener("clearItemStates",t),n.removeListener("deactivated",t),n.removeListener("cleared",i)}},[n]);const b={};return i?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:u,onMouseDown:h,onMouseEnter:p,onTouchStart:m,onTouchEnd:f}),{interactionEvents:b,select:async(t=[],i=!1,o=void 0)=>{if(e.selectDisabled?.())return!1;const r=!e.isSingleSelect&&Ph(o?.nativeEvent);r||e.clearItemStates(!0);const s=[];return e.updateItems(t,i,s),e.setSelectableValuesUpdating(),Th({selections:n,elemNumbers:i?s:t,isSingleSelect:e.isSingleSelect,toggle:r})}}}({selectionState:s,selections:r,checkboxes:I,doc:document,loaderRef:M}),{layoutOptions:Y={}}=o||{};let X=!0;Y.dataLayout&&(X="singleColumn"===Y.dataLayout||"row"===Y?.layoutOrder);const Z="grid"===Y?.dataLayout,J=e=>{const t={...X?{rowIndex:e}:{columnIndex:e}},n=Z?t:e;M.current._listRef.scrollToItem(n)},ee=()=>{if(T.current.queue=[],T.current.validPages=!1,M.current){M.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&C.reset());T.current.dataOffset=0,J(0)}};u&&u.call(null,ee),(0,t.useEffect)(()=>{v&&!E&&M.current&&(M.current._listRef.scrollToItem(v.initScrollPos),L(!0))},[M.current]),(0,t.useEffect)(()=>{ee()},[o,T.current.dataOffset]);let te=100;const ne="grid"!==Y.dataLayout,ie=o?.qListObject.qSize?.qcy,oe=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:i=!1}){const o=e?.length&&i?(({pages:e=[],minimumBatchSize:t,count:n})=>{const i=e.some(e=>e.qArea.qHeight<t),o=Math.max(...e.map(e=>e.qArea.qTop+e.qArea.qHeight));return i?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}({pages:j,minimumBatchSize:te,count:ie,calculatePagesHeight:m,layoutOptions:Y,model:e});let re=Km({itemWidth:d,layout:o,frequencyMode:h});const se=function(e){return e.some(({qMatrix:e})=>e.some(([e])=>!!e.qFrequency?.match("%")))?"P":"-"}(j),ae=function({layout:e,width:t,height:n,listCount:i,count:o,freqIsAllowed:r,checkboxes:s,styles:a}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:d={},maxVisibleColumns:h,dense:u,dataLayout:g}=l,{fontSize:p="12px",fontFamily:m="Source sans pro"}=a?.content||{},f=`${p} ${m}`,b=Xg({text:Zg(e),font:f}),v=Xg({text:Zg(5),font:f}),C=Xg({text:Zg(8),font:f}),_=r?v:0,y=s?20:0;let A=56+_+y;!s&&A>=80&&(A+=20);let w,S,k,x,E=b+18+_+y;!s&&E>=80&&(E+=20),E=Math.min(150,Math.max(E,A));const L=Jg({isGridMode:"grid"===g,dense:u}),D=n??8*L;if(c){let e=t;"row"===c?(w={overflowX:"hidden"},e+=8,({rowCount:x,columnWidth:k,columnCount:S}=function({maxVisibleColumns:e,listCount:t,containerWidth:n,columnAutoWidth:i,itemMinWidth:o}){const r=e?.maxColumns||3,s=n-10;let a;const l=Math.min(t,Math.max(1,Math.round(s/Math.max(o,i))));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:h,listCount:i,containerWidth:e,columnAutoWidth:E,itemMinWidth:A}))):(w={overflowY:"hidden"},({rowCount:x,columnWidth:k,columnCount:S}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:i,columnAutoWidth:o,containerWidth:r,itemMinWidth:s}){let a;const l=e?.maxRows||3,c=Math.floor(i/t);a=!1!==e.auto?c:Math.min(n,l,c),a=Math.max(a,1);const d=Math.ceil(n/a);return{columnWidth:Math.max(o,r/d,s),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:L,listCount:i,listHeight:D,columnAutoWidth:E,containerWidth:e,itemMinWidth:A})))}S=("singleColumn"===g?1:S)||1,x=("singleColumn"===g?o:x)||i;const I=l.dense?838e3:577e3;x=Math.min(x,I);const N=Math.floor(3355e4/k);S=Math.min(S,N)||1;const M=x*S;return{columnCount:S,columnWidth:k,rowCount:x,overflowStyling:w,itemHeight:L,listHeight:D,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(i,M),maxCount:{row:I,column:N},itemPadding:4,textWidth:b,freqMinWidth:v,freqMaxWidth:C}}({layout:o,width:d,height:c,listCount:oe,count:ie,freqIsAllowed:re,checkboxes:I,styles:k});ae.columnWidth&&(re=Km({itemWidth:ae.columnWidth,layout:o,frequencyMode:h}));const{listCount:le}=ae;W("listCount",le);const ce=F("inputText"),de=function({layout:e,searchInputText:n,listCount:i}){const{translator:o}=(0,t.useContext)(ld),r=[];if(n?.length){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}(i),t=o.get(e,[i]);r.push(t)}const s=function({layout:e,translatorDynamic:t}){const{qStateCounts:n={}}=e?.qListObject?.qDimensionInfo||{},i=n.qSelected+n.qSelectedExcluded+n.qLocked+n.qLockedExcluded;let o;switch(i){case 0:o="ScreenReader.ZeroSelected";break;case 1:o="ScreenReader.OneSelected";break;default:o="ScreenReader.ManySelected"}return t.get(o,[i])}({layout:e,translatorDynamic:o});r.push(s);const a=r.filter(e=>!!e?.length).join(". ");return a}({layout:o,searchInputText:ce,listCount:le}),he=e=>{const{scrollIndex:t,offset:n,triggerRerender:i}=function({position:e,isRow:t,sizes:n,layout:i,offset:o}){let r,s=!1,a=o??0;switch(e){case"start":r=0;break;case"end":r=t?n.rowCount:n.columnCount;break;case"overflowStart":a=0,r=0,s=!0;break;case"overflowEnd":a=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,n.listCount),r=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:r,offset:a,triggerRerender:s}}({position:e,isRow:X,sizes:ae,layout:o,offset:T.current.dataOffset});T.current.dataOffset=n,i&&s.triggerStateChanged(),J(t)};(0,t.useEffect)(()=>{const e=C.state;e.up?J(_.state.start-e.up):e.down?J(_.state.stop+e.down):e.scrollPosition&&he(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()},[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ue}=o?.qListObject.qDimensionInfo||{},[ge,pe]=(0,t.useState)({first:!1,last:!1}),{List:me,Grid:fe}=function({layout:e,width:n,checkboxes:i,local:o,isVertical:r,pages:s,selectionState:a,interactionEvents:l,deducedFrequencyMode:c,histogram:d,isSingleSelect:h,select:u,selectAll:g,onCtrlF:p,textAlign:m,selections:f,keyboard:b,showGray:v,scrollState:C,direction:_,sizes:y,listCount:A,overflowDisclaimer:w,setScrollPosition:S,focusListItems:k,setCurrentScrollIndex:x,constraints:E,frequencyMax:L,freqIsAllowed:D,translator:I,showSearch:N,isModal:M,styles:T}){const{layoutOptions:R={}}=e||{},{columnWidth:q,listHeight:O,itemHeight:P,rowCount:B,columnCount:F}=y||{},W=("grid"===R.dataLayout?q:n)>80,z={direction:"rtl"===_?"rtl":"ltr",useIsScrolling:!0,className:$g},V=e?.qListObject.qDimensionInfo.qLocked,H=O<=P,j={isLocked:V,column:!r,pages:s,...V||a.selectDisabled()?{}:l,checkboxes:i,layoutOptions:R,deducedFrequencyMode:c,freqIsAllowed:D,isSingleSelect:h,textAlign:m,sizes:y,actions:{select:u,confirm:()=>f?.confirm.call(f),cancel:()=>f?.cancel.call(f),setScrollPosition:S,selectAll:g,onCtrlF:p},frequencyMax:L,histogram:d,keyboard:b,showGray:v,showTick:W,dataOffset:o.current.dataOffset,focusListItems:k,direction:_,translator:I,showSearch:N,isModal:M,styles:T,fillHeight:H};return{List:({onItemsRendered:i,ref:r})=>(o.current.listRef=r,t.createElement(Qg,Kg({},z,{dataTestid:"fixed-size-list",scrollDisabled:E?.active,height:O,width:n,itemCount:A,itemData:{...j,listCount:A},itemSize:P,onItemsRendered:t=>{x({start:t.visibleStartIndex,stop:t.visibleStopIndex}),C&&C.setScrollPos(t.visibleStopIndex),Gg({renderProps:t,layoutOptions:R,maxCount:y.maxCount,columnCount:F,rowCount:B,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i({...t})},ref:r}),wg)),Grid:({onItemsRendered:i,ref:r})=>{const{overflowStyling:s,scrollBarWidth:a}=y,{layoutOrder:l}=R||{},c=Math.min(O,B*P+a);return o.current.listRef=r,t.createElement(Yg,Kg({},z,{dataTestid:"fixed-size-grid",scrollDisabled:E?.active,height:c,width:n,columnCount:F,columnWidth:q,rowCount:B,rowHeight:P,style:{...s},itemData:{...j,column:void 0,columnCount:F,rowCount:B},onItemsRendered:t=>{const n="row"===l;x({start:n?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:n?t.visibleRowStopIndex:t.visibleColumnStopIndex});const r=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let h,u,g,p;return n&&n.setScrollPos(d),"column"===i?(h=l*o,u=s,g=c*o,p=a):(h=l,u=s*r,g=c,p=a*r),{visibleStartIndex:h+u,visibleStopIndex:g+p}}({renderProps:t,scrollState:C,layoutOrder:l,rowCount:B,columnCount:F});Gg({renderProps:t,layoutOptions:R,maxCount:y.maxCount,columnCount:F,rowCount:B,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i(r)},ref:r}),wg)}}}({direction:a,layout:o,height:c,width:d,checkboxes:I,deducedFrequencyMode:se,histogram:N,keyboard:f,showGray:b,interactionEvents:K,select:Q,selectAll:()=>{s.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:A,textAlign:ue,isVertical:ne,pages:j,selectionState:s,isSingleSelect:D,selections:r,scrollState:v,local:T,sizes:ae,listCount:le,overflowDisclaimer:{state:V,set:e=>H(t=>({...t,show:e}))},setScrollPosition:he,focusListItems:{first:ge.first,setFirst:e=>pe(t=>({...t,first:e})),last:ge.last,setLast:e=>pe(t=>({...t,last:e}))},setCurrentScrollIndex:_.set,constraints:i,frequencyMax:q,freqIsAllowed:re,translator:x,showSearch:w,isModal:S,styles:k}),{columnWidth:be,listHeight:ve,itemHeight:Ce}=ae||{};return ne||(te=function({width:e,columnWidth:t,listHeight:n,itemHeight:i}){return Math.ceil(e/t)*Math.ceil(n/i)*2}({width:d,columnWidth:be,listHeight:ve,itemHeight:Ce})),t.createElement(Xm,null,t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},de),!le&&$>0&&t.createElement(zm,{width:d,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(Ih,{isItemLoaded:G,itemCount:le||1,loadMoreItems:z.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:M,role:"grid"},ne?me:fe),V.show&&!V.dismissed&&t.createElement(Gm,{text:"Listbox.ItemsOverflow",dismiss:()=>H(e=>({...e,dismissed:!0})),parentWidth:M?.current?._listRef?.props?.width,dense:Y?.dense}))}const Jm=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"}}]}),ef=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"}}]}),tf=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"}}]}),nf=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"}}]}),of=({layout:e,model:t,translator:n,selectionState:i,isDirectQuery:o=!1,selections:r})=>{if(e.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const s="/qListObjectDef",a=()=>{r.isActive()||r.begin(s)};return[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:Jm,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAll(s)}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:tf,enabled:()=>["qOption"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectPossible(s)}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:ef,enabled:()=>["qAlternative"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAlternative(s)}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:nf,enabled:()=>["qAlternative","qExcluded"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectExcluded(s)}}].filter(Boolean)};function rf(e){return(0,ln.Ay)("MuiDivider",e)}const sf=(0,an.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),af=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],lf=(0,sn.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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,Ao.X4)(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,Jt.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>(0,Jt.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>(0,Jt.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>(0,Jt.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),cf=(0,sn.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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)`})),df=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:r,component:s=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==s?"separator":void 0),textAlign:h="center",variant:u="fullWidth"}=n,g=(0,Zt.A)(n,af),p=(0,Jt.A)({},n,{absolute:i,component:s,flexItem:a,light:l,orientation:c,role:d,textAlign:h,variant:u}),m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,tn.A)(c,rf,i)})(p);return(0,dn.jsx)(lf,(0,Jt.A)({as:s,className:(0,en.A)(m.root,r),role:d,ref:t,ownerState:p},g,{children:o?(0,dn.jsx)(cf,{className:m.wrapper,ownerState:p,children:o}):null}))});df.muiSkipListHighlight=!0;const hf=df,uf=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 gf(e){const t=Gn(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,i="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:i}}const pf={className:"njs-cell-action"},mf=t.forwardRef(({ariaExpanded:e=!1,item:n,addAnchor:i=!1},o)=>{const r=Gn(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=gf(n);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),h=n.keyboardAction||n.action,u=h?e=>["Enter"].includes(e.key)&&h():null,g=h?e=>[" ","Spacebar"].includes(e.key)&&h():null,p=`actions-toolbar-${n.key}`;return t.createElement(cr,{ref:i?null:o,title:n.label,onClick:n.action,onKeyDown:u,onKeyUp:g,disabled:a,style:l,className:[pf.className,p].join(" "),size:"large",disableRipple:!0,"aria-expanded":e,"aria-controls":"moreMenuList","data-testid":p},c&&ss(n.getSvgIconShape()),i&&t.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))}),ff=mf,bf=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"}}]}),vf=e=>ss(bf(e)),Cf=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"}}]}),_f=e=>ss(Cf(e));function yf(e){return(0,ln.Ay)("MuiListItemIcon",e)}const Af=(0,an.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);function wf(e){return(0,ln.Ay)("MuiMenuItem",e)}const Sf=(0,an.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),kf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],xf=(0,sn.Ay)(ir,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,Jt.A)({},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"}},[`&.${Sf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Ao.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Sf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ao.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Sf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ao.X4)(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,Ao.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Sf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Sf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${sf.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${sf.inset}`]:{marginLeft:52},[`& .${Ms.root}`]:{marginTop:0,marginBottom:0},[`& .${Ms.inset}`]:{paddingLeft:36},[`& .${Af.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,Jt.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Af.root} svg`]:{fontSize:"1.25rem"}}))),Ef=t.forwardRef(function(e,n){const i=(0,rn.b)({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:h,className:u}=i,g=(0,Zt.A)(i,kf),p=t.useContext(ls),m=t.useMemo(()=>({dense:s||p.dense||!1,disableGutters:l}),[p.dense,s,l]),f=t.useRef(null);(0,fs.A)(()=>{o&&f.current&&f.current.focus()},[o]);const b=(0,Jt.A)({},i,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:r,classes:s}=e,a={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",r&&"selected"]},l=(0,tn.A)(a,wf,s);return(0,Jt.A)({},s,l)})(i),C=(0,wo.A)(f,n);let _;return i.disabled||(_=void 0!==h?h:-1),(0,dn.jsx)(ls.Provider,{value:m,children:(0,dn.jsx)(xf,(0,Jt.A)({ref:C,role:d,tabIndex:_,component:r,focusVisibleClassName:(0,en.A)(v.focusVisible,c),className:(0,en.A)(v.root,u)},g,{ownerState:b,classes:v}))})}),Lf=Ef,Df=["className"],If=(0,sn.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>(0,Jt.A)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Nf=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiListItemIcon"}),{className:o}=i,r=(0,Zt.A)(i,Df),s=t.useContext(ls),a=(0,Jt.A)({},i,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,i={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,tn.A)(i,yf,n)})(a);return(0,dn.jsx)(If,(0,Jt.A)({className:(0,en.A)(l.root,o),ownerState:a,ref:n},r))}),Mf=Nf,Tf=Xd,Rf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function qf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Of(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Pf(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Bf(e,t,n,i,o,r){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&Pf(a,r)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const Ff=t.forwardRef(function(e,n){const{actions:i,autoFocus:o=!1,autoFocusItem:r=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:h="selectedMenu"}=e,u=(0,Zt.A)(e,Rf),g=t.useRef(null),p=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,fs.A)(()=>{o&&g.current.focus()},[o]),t.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&n){const n=`${Tf((0,ha.A)(e))}px`;g.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}}),[]);const m=(0,wo.A)(g,n);let f=-1;t.Children.forEach(s,(e,n)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===h&&e.props.selected||-1===f)&&(f=n),f===n&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=s.length&&(f=-1))):f===n&&(f+=1,f>=s.length&&(f=-1))});const b=t.Children.map(s,(e,n)=>{if(n===f){const n={};return r&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(n.tabIndex=0),t.cloneElement(e,n)}return e});return(0,dn.jsx)(gs,(0,Jt.A)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,n=e.key,i=(0,ha.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Bf(t,i,c,l,qf);else if("ArrowUp"===n)e.preventDefault(),Bf(t,i,c,l,Of);else if("Home"===n)e.preventDefault(),Bf(t,null,c,l,qf);else if("End"===n)e.preventDefault(),Bf(t,null,c,l,Of);else if(1===n.length){const o=p.current,r=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&r!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(r);const a=i&&!o.repeating&&Pf(i,o);o.previousKeyMatched&&(a||Bf(t,i,!1,l,qf,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},u,{children:b}))}),Wf=Ff;function zf(){return zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zf.apply(null,arguments)}const Vf="More-icon",Hf=(0,sn.Ay)(xh)(({theme:e})=>({pointerEvents:"none",[`& .${Vf} *`]:{color:e.palette.text.primary}}));function jf({item:e,autoFocus:n,onActionClick:i=()=>{}}){const{hidden:o,disabled:r,hasSvgIconShape:s}=gf(e);return o?null:t.createElement(Lf,{autoFocus:n,title:e.label,onClick:()=>{e.action(),i()},disabled:r,tabindex:"0"},s&&t.createElement(Mf,{className:Vf},ss(e.getSvgIconShape())),t.createElement(Lr,{noWrap:!0},e.label))}const Uf=t.forwardRef(({actions:e=[],show:n=!0,alignTo:i,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=()=>{},disablePortal:a=!0},l)=>{const c=e.length>0,d=e.findIndex(e=>!e.disabled);return c&&t.createElement(Hf,zf({},o,{onClose:s,ref:l,open:n,anchorEl:i.current,getContentAnchorEl:a?null:void 0,container:a?i.current:void 0,disablePortal:a,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"}}),t.createElement(Wf,{id:"moreMenuList"},e.map((e,n)=>t.createElement(jf,{key:n,item:e,autoFocus:n===d,onActionClick:s}))))});const $f="ActionsToolbar",Gf={item:`${$f}-item`,itemSpacing:`${$f}-itemSpacing`},Kf=(0,sn.Ay)(xh)(({theme:e})=>({[`& .${Gf.itemSpacing}`]:{padding:e.spacing(0,.25)}})),Qf=t.forwardRef(({className:e,ariaExpanded:n=!1,actions:i=[],addAnchor:o=!1,isRtl:r=!1},s)=>i.length>0?t.createElement(yr,{item:!0,container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e},i.map((e,i)=>t.createElement(yr,{item:!0,key:e.key,className:`${Gf.itemSpacing} ${Gf.item}`},t.createElement(ff,{ariaExpanded:n,key:e.key,item:e,ref:0===i?s:null,addAnchor:o})))):null),Yf={pointerEvents:"none"},Xf=function({show:e=!0,actions:n=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:r,more:s={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:a={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:c=null,isRtl:d,autoConfirm:h=!1,layout:u}){const g=function({api:e,layout:n,onConfirm:i=()=>{},onCancel:o=()=>{},onKeyDeactivate:r=()=>{}}){const{translator:s}=(0,t.useContext)(ld);return[{key:"clear",type:"icon-button",label:s.get("Selection.Clear"),enabled:()=>e.canClear(n),action:()=>e.clear(),getSvgIconShape:Cf},{key:"cancel",type:"icon-button",label:s.get("Selection.Cancel"),enabled:()=>e.canCancel(n),action:()=>{o(),e.cancel()},keyboardAction:()=>{r(),o(),e.cancel()},getSvgIconShape:bf},{key:"confirm",type:"icon-button",label:s.get("Selection.Confirm"),enabled:()=>e.canConfirm(n),action:()=>{i(),e.confirm()},keyboardAction:()=>{r(),i(),e.confirm()},getSvgIconShape:Bh}]}({...o,layout:u}),{translator:p,keyboardNavigation:m}=(0,t.useContext)(ld),[f,b]=(0,t.useState)(!1),v={vertical:12,horizontal:d?0:(a.anchorEl?.clientWidth??0)-7},C={vertical:"bottom",horizontal:d?-7:"right"},_=(0,t.useRef)(),y=(0,t.useRef)(),A=Gn(),w=(0,t.useMemo)(()=>({margin:A.spacing(.5,0)})),S=e=>{const t=_.current||c;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},k=(0,t.useMemo)(()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:i,isRtl:o}){return r=>{const{target:s,nativeEvent:a}=r,{keyCode:l}=a;switch(l){case gg.ARROW_LEFT:case gg.ARROW_DOWN:case gg.ARROW_RIGHT:case gg.ARROW_UP:if(s.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(s);let t=[gg.ARROW_LEFT,gg.ARROW_DOWN].includes(l);t=o?!t:t,(e=>{const t=document.querySelector("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");n.length&&n[Math.min(Math.max(0,e),n.length-1)].focus()})(t?e-1:e+1)}r.stopPropagation(),r.preventDefault();break;case gg.SPACE:r.preventDefault();break;case gg.TAB:e&&t?.refocusContent&&(r.shiftKey&&n(!1)===r.target||!r.shiftKey&&n(!0)===r.target)&&(r.preventDefault(),r.stopPropagation(),t.refocusContent());break;case gg.ESCAPE:i&&(i.onCancel(),i.api.cancel(),r.preventDefault(),r.stopPropagation())}}}({keyboardNavigation:m,focusHandler:l,getEnabledButton:S,selections:o,isRtl:d}),[m,l,S,o,d]);if((0,t.useEffect)(()=>()=>{b(!1)},[a.show,e,o.show]),(0,t.useEffect)(()=>{l&&(l.on("focus_toolbar_first",()=>{const e=S(!1);e?.focus()}),l.on("focus_toolbar_last",()=>{const e=S(!0);e?.focus()}))},[]),h)return;let x=s.enabled,E=s.actions;const L=s.alignTo||y,D=n.filter(e=>!e.hidden);if(D.length>i){const e=D.splice(-(D.length-i)-1);x=!0,E=[...e,...s.actions]}if(!o.show&&0===D.length&&!x)return null;const I={key:"more",label:p.get("Menu.More"),getSvgIconShape:uf,hidden:!1,active:f,enabled:()=>x,action:()=>b(!f)},N=D.length>0,M=E.length>0,T=N&&o.show||M&&o.show,R=t.createElement(yr,{ref:_,onKeyDown:k,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:d?"row-reverse":"row"}},r?.length&&t.createElement(Qf,{className:"actions-toolbar-extra-actions",actions:r,isRtl:d}),N&&t.createElement(Qf,{actions:D}),M&&t.createElement(Qf,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,ariaExpanded:f,actions:[I],addAnchor:!0}),T&&t.createElement(yr,{item:!0,className:Gf.itemSpacing,style:w},t.createElement(hf,{orientation:"vertical"})),o.show&&t.createElement(Qf,{className:"actions-toolbar-default-actions",actions:g,isRtl:d}),f&&t.createElement(Uf,{show:f,actions:E,alignTo:L,popoverProps:s.popoverProps,popoverPaperStyle:s.popoverPaperStyle,onCloseOrActionClick:()=>{b(!1)},disablePortal:s.disablePortal}));return a.show?t.createElement(Kf,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:v,transformOrigin:C,hideBackdrop:!0,style:Yf,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:A.spacing(.5,.25)}}}},R):e&&R};function Zf(e){return(0,ln.Ay)("MuiInputAdornment",e)}const Jf=(0,an.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var eb;const tb=["children","className","component","disablePointerEvents","disableTypography","position","variant"],nb=(0,sn.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Vn.A)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Jf.positionStart}&:not(.${Jf.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),ib=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=i,h=(0,Zt.A)(i,tb),u=Oa()||{};let g=d;d&&u.variant,u&&!g&&(g=u.variant);const p=(0,Jt.A)({},i,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:r,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${(0,Vn.A)(o)}`,s,i&&"hiddenLabel",r&&`size${(0,Vn.A)(r)}`]};return(0,tn.A)(a,Zf,t)})(p);return(0,dn.jsx)(qa.Provider,{value:null,children:(0,dn.jsx)(nb,(0,Jt.A)({as:s,ownerState:p,className:(0,en.A)(m.root,r),ref:n},h,{children:"string"!=typeof o||l?(0,dn.jsxs)(t.Fragment,{children:["start"===c?eb||(eb=(0,dn.jsx)("span",{className:"notranslate",children:"​"})):null,o]}):(0,dn.jsx)(Lr,{color:"text.secondary",children:o})}))})}),ob=ib,rb=e=>ss((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)),sb="/qListObjectDef",ab=e=>e?.substring(0,64e3),lb=(0,sn.Ay)(pl,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})(({styles:e,dense:t,isRtl:n})=>{let i={};return t&&(i={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:e.search.color,textAlign:n?"right":"left"}}),{display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:e.search.backgroundColor,backdropFilter:e.background.backgroundImage?e.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:n?"row-reverse":"row","& fieldset":{borderColor:`${e.search.borderColor}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:`${e.search.highlightBorderColor} !important`},"& .MuiInputBase-root":{...e.search},"& *":{color:e.search.color},"& input":{color:e.search.color,textAlign:n?"right":"left"},...i}}),cb=(0,sn.Ay)(cr)(()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}}));function db({popoverOpen:e,selections:n,selectionState:i,model:o,keyboard:r,dense:s=!1,visible:a=!0,autoFocus:l=!0,beginSelectionOnFocus:c=!0,wildCardSearch:d=!1,searchEnabled:h,direction:u,hide:g,styles:p},m){const{translator:f}=(0,t.useContext)(ld),[b,v]=(0,t.useState)(""),[C,_]=(0,t.useState)(!1),y=(0,t.useRef)(),A=(0,t.useRef)(),w=f.get("Listbox.Clear.Search"),{getStoreValue:S,setStoreValue:k}=np(o),x="rtl"===u,E=async()=>{try{await o.abortListObjectSearch(sb)}finally{v("")}};(0,t.useEffect)(()=>a?()=>E():()=>{},[a]),(0,t.useEffect)(()=>(n.on("deactivated",E),()=>{n.removeListener&&n.removeListener("deactivated",E)}),[]),(0,t.useEffect)(()=>{if(C&&y.current){const e=b.length-1;y.current.setSelectionRange(e,e),_(!1)}},[C,y.current]),(0,t.useEffect)(()=>{k("inputText",b)},[b]);const L=()=>{y.current?.focus()},D=()=>{E(),L()};return(0,t.useImperativeHandle)(m,()=>({focus(){L()}})),a&&!1!==h?t.createElement(lb,{styles:p,dense:s,isRtl:x,startAdornment:t.createElement(ob,{position:"start",sx:{marginLeft:s?"8px":"9px"}},t.createElement(rb,{size:s?"small":"normal"})),endAdornment:t.createElement(ob,{position:"end",sx:{marginLeft:0}},""!==b&&t.createElement(cb,{tabIndex:0,ref:A,title:w,"aria-label":w,onClick:D,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":D();break;case"Tab":e.shiftKey?L():Cg(t);break;default:return}e.preventDefault(),e.stopPropagation()}},t.createElement(vf,{size:s?"small":"normal"}))),className:"search",inputRef:y,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:b,onFocus:()=>{d&&(v("**"),_(!0)),c&&!i.selectDisabled()&&!n.isModal()&&n.begin("/qListObjectDef")},onChange:async e=>{const t=ab(e.target.value);return v(t),t.length?o.searchListObjectFor(sb,t):E()},onKeyDown:async t=>{const{currentTarget:s}=t,a=s.closest(".listbox-container");switch(t.key){case"Enter":(async()=>{let e;const t=ab(b),r=await o.searchListObjectFor(sb,t);i.selectDisabled()||r&&t.length&&S("listCount")>0&&(e=o.acceptListObjectSearch(sb,!0),n.selectionsMade=!0,i.clearItemStates(!1),v(""))})();break;case"Escape":if(Cg(a),n.cancel(),e)return;break;case"Tab":t.shiftKey?_g(a)||r.focusSelection():A.current?A.current.focus():Cg(a);break;case"f":case"F":if(!t.ctrlKey&&!t.metaKey)return;g&&(g(),Cg(a));break;default:return}t.preventDefault(),t.stopPropagation()},autoFocus:l,inputProps:{tabIndex:r.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":f.get("Listbox.Search.ScreenReaderInstructions")}}):null}const hb=(0,t.forwardRef)(db);function ub(e){if(!e.session)return[];const{selectionStore:n}=(0,t.useContext)(ld),[i]=n.useAppSelectionsStore(),o=e?e.id:null;let r=i.get(o);return(0,t.useEffect)(()=>{e&&!r&&(r=function({app:e,selectionStore:t}){const n=`${e.id}`,{modalObjectStore:i,appModalStore:o}=t,r=async(e=!0)=>{const{model:t,objectSelections:o}=i.get(n)||{};t&&(await t.endSelections(e),i.clear(n),o.emit("deactivated"))},s={begin:async({model:t,paths:o,accept:s=!0,objectSelections:a})=>{if(a===i.get(n)?.objectSelections)return;r(s),i.set(n,{model:t,objectSelections:a});const l=Array.isArray(o)?o:[o],c=async o=>{try{await t.beginSelections(l),i.set(n,{model:t,objectSelections:a})}catch(t){6003!==t.code||o?i.clear(n):(await e.abortModal(s),c(!0))}};await c()},end:r};o.set(n,s);const a={model:e,isInModal:()=>!!i.get(n),isModal:e=>e?i.get(n)?.objectSelections===e:!!i.get(n),forward:()=>s.end().then(()=>e.forward()),back:()=>s.end().then(()=>e.back()),clear:()=>s.end().then(()=>e.clearAll()),clearField:(t,n="$")=>s.end().then(()=>e.getField(t,n).then(e=>e.clear()))};return a}({app:e,selectionStore:n}),i.set(o,r),i.dispatch(!0))},[e]),[r]}function gb(e){return Object.keys(ec().prototype).forEach(t=>{e[t]=ec().prototype[t]}),ec().init(e),e}const pb=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,r=!1;const s={id:n.id,setLayout(e){i=e},begin(e){const i=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",i),i.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:n,paths:e,accept:!0,objectSelections:s}))},clear(){return r=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return r=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return r=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const i=this.begin([t.params[0]]);if(!e.isModal())return!1;await i;const o=await n[t.method](...t.params);return r="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(s),goModal:e=>t.begin({model:n,paths:e,accept:!1,objectSelections:s}),noModal:(e=!1)=>t.end(e)};return gb(s),s};function mb(e,n,i,o){const r=Array.isArray(i)?i:[i],[s]=ub(e),[a]=yd(n),{appModalStore:l}=(0,t.useContext)(ld).selectionStore,c=l.get(e.id),[d,h]=(0,t.useState)();return(0,t.useEffect)(()=>{s&&n&&!d&&h(pb({appSelections:s,appModal:c,model:n}))},[s,n]),(0,t.useEffect)(()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=(({elements:e,objectSelections:t,options:n={}})=>{const i=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const i=e.map(e=>"string"==typeof e?document.querySelector(e):e?.current).filter(e=>!!e&&!!document.contains(e));i.length&&!i.some(e=>e.contains(n.target))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",i),n?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",i),n?.onSelectionDeactivated?.()}}})({elements:r,objectSelections: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,t.useEffect)(()=>{d&&d.setLayout(a)},[d,a]),[d]}function fb(e={}){const t={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0,...e,update({setPages:e,pages:n,isSingleSelect:i,selectDisabled:o,layout:r}){this.setPages=e;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)),t.enginePages!==n&&void 0!==n&&(t.enginePages=n??[],t.selectedInEngine=function(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[t]=e;return n=t.qState,!!Nh.includes(n)&&t.qElemNumber;var n});return t.filter(e=>!1!==e)});return Mh(t)}(n),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=i,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=r?.qListObject?.qDimensionInfo?.qIsCalculated??!1},allowedToSelect:()=>!(t.selectDisabled()||t.isDimCalculated&&t.selectableValuesUpdating),setSelectableValuesUpdating(){t.selectableValuesUpdating=!0},useClientItemState:e=>t.ignoreSelectionState||e in t.itemStates,isSelected:e=>t.useClientItemState(e)?!!t.itemStates[e]:t.selectedInEngine.includes(e),getState(e){const{qElemNumber:n,qState:i}=e;return t.useClientItemState(n)?t.itemStates[n]?"XS"===i?"XS":"S":"S"===i||"XS"===i?"A":i:i},updateItemNoEvents(e,n,i){const o=t.isSelected(e);o&&!n?t.itemStates[e]=!1:o||(i?.push(e),t.itemStates[e]=!0)},triggerStateChanged(){if(this.setPages){const e=t.applySelectionsOnPages(t.enginePages);this.setPages(e)}},applySelectionsOnPages(e){const n=e.map(e=>{const n=e.qMatrix.map(e=>{const[n]=e,i=t.getState(n);return[{...n,qState:i},...e.slice(1)]});return{...e,qMatrix:n}});return n},updateItem(e,n,i){t.updateItemNoEvents(e,n,i),t.triggerStateChanged()},updateItems(e,n,i){e.forEach(e=>{t.updateItemNoEvents(e,n,i)}),t.triggerStateChanged()},clearItemStates(e){t.itemStates={},t.ignoreSelectionState=e}};return t}const bb=(e,t,n=void 0)=>e?.[t]??n;function vb(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return bb(t,"qSelected",0)+bb(t,"qSelectedExcluded",0)+bb(t,"qLocked",0)+bb(t,"qLockedExcluded",0)>0}function Cb(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function _b(e){if("object"==typeof e&&Cb(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,i=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+i}const yb={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:0,g:0,b:0,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}};function Ab(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,i=0,o=0,r=1;if(null!==(s=e[0])&&"object"==typeof s&&"type"in s&&"qcm-color"===s.type)({r:n,g:i,b:o,a:r}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Cb(e[0]))({r:n,g:i,b:o}=e[0]),"a"in e[0]&&({a:r}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const s=e[0];let a;if(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))n=parseInt(a[1],10),i=parseInt(a[2],10),o=parseInt(a[3],10);else if(a=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(s))n=parseInt(a[1],10),i=parseInt(a[2],10),o=parseInt(a[3],10),r=parseFloat(a[4]);else if(a=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))r=parseInt(a[1],10)/255,n=parseInt(a[2],10),i=parseInt(a[3],10),o=parseInt(a[4],10);else if(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(s))n=parseInt(a[1],16),i=parseInt(a[2],16),o=parseInt(a[3],16),r=1;else if(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))n=parseInt(a[1]+a[1],16),i=parseInt(a[2]+a[2],16),o=parseInt(a[3]+a[3],16),r=1;else if(a=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s<=.5?2*s*t:(2-2*s)*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=s-.5*l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o),r=1}else if(a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);r=parseFloat(a[7]),e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s<=.5?2*s*t:(2-2*s)*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=s-.5*l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o)}else if(a=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=s-l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o),r=1}else{const e=s.toLowerCase();if(function(e){return e in yb}(e)){const t=yb[e];({r:n,g:i,b:o}=t),r="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(r=(4278190080&e[0])>>>24,r/=255,n=(16711680&e[0])>>16,i=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,i=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],i=e[1],o=e[2],r=4===e.length?e[3]:1):t.invalid=!0;var s;return Number.isNaN(+n+i+o+r)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(i),t.b=Math.floor(o),t.a=r,t}function wb(e){let t,n,i;if(Cb(e))return t=e.r.toString(16),n=e.g.toString(16),i=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${[t,n,i].join("")}`;const o="string"==typeof e?_b(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),i=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${t}${n}${i}`}function Sb(e){let t,n,i=0;const o="string"==typeof e?Ab(e):e,r=o.r/255,s=o.g/255,a=o.b/255,{a:l}=o,c=Math.max(r,s,a),d=Math.min(r,s,a),h=(c+d)/2;if(c===d)t=0,i=0;else{switch(n=c-d,t=h>.5?n/(2-c-d):n/(c+d),c){case r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/n+4}i/=6}return{h:360*i,s:100*t,l:100*h,a:l}}function kb(e){let t,n,i=0;const o="string"==typeof e?Ab(e):e,r=o.r/255,s=o.g/255,a=o.b/255,l=Math.max(r,s,a),c=Math.min(r,s,a),d=l;if(l===c)t=0,i=0;else{switch(n=l-c,t=0===n?0:n/d,l){case r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/n+4}i/=6}return{h:360*i%360,s:100*t,v:100*d}}function xb(e){if(Cb(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?_b(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function Eb(e,t){return Cb(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${void 0!==t?t:e.a})`:Eb(Ab(e),t)}function Lb(e){return Cb(e)?1===e.a?xb(e):Eb(e):Lb(Ab(e))}const Db=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Ib(e){return.2126*Db(e.r)+.7152*Db(e.g)+.0722*Db(e.b)}function Nb(...e){const t=Ab(...e);return t.invalid||Ib(t)<.4}function Mb(...e){const t=Ab(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},i=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=Sb(n)),n.spaces.hslaObject),o=e=>{const t=i(),{h:n,s:o,l:r,a:s}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(r+e,100))}, ${s})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Ab(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>Nb(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=xb(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=Eb(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Lb(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=wb(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,i=0;const o="string"==typeof e?Ab(e):e,r=o.r/255,s=o.g/255,a=o.b/255,l=Math.max(r,s,a),c=Math.min(r,s,a),d=(l+c)/2;if(l===c)t=0,i=0;else{switch(n=l-c,t=d>.5?n/(2-l-c):n/(l+c),l){case r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/n+4}i/=6}return`hsl(${360*i}, ${100*t}, ${100*d})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:i,a:o}=Sb(e);return`hsla(${t}, ${n}, ${i}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:i,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:i}=kb(e);return`hsv(${t}, ${n}, ${i})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=kb(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>Mb(o(18*e)),getDarkenedColor:(e=1)=>Mb(o(18*-e))}}function Tb(e,t){if(!e||!t)return;const n=Ib(e),i=Ib(t);return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}function Rb(e,t){const n=Mb("#FFFFFF"),i=Mb(e),o=Mb(t);if(i.isInvalid()||o.isInvalid()||i.getAlpha()<1||o.getAlpha()<1)return t;const r=Tb(n,i),s=Tb(o,i),a=r>s||r>4.5;return!a&&s>3?o.getHex():a?"#FFFFFF":"#000000"}function qb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ob,Pb,Bb,Fb="top",Wb="top-right",zb="right",Vb="bottom-right",Hb="bottom",jb="bottom-left",Ub="left",$b="top-left";qb(qb(qb(qb(qb(qb(qb(qb(qb(qb(Ob={},"equal-equal",[Fb,Hb]),"equal-higher",[Hb,Vb]),"equal-lower",[Fb,Wb]),"equal-void",[Fb,Hb]),"higher-equal",[Ub,jb,Fb,Wb]),"higher-higher-acute",[Hb,jb,Ub,Wb]),"higher-higher-obtuse",[Hb,Fb]),"higher-lower-negative",[Fb,Wb,zb]),"higher-lower-positive",[Hb,jb,Ub]),"higher-void",[Fb]),qb(qb(qb(qb(qb(qb(qb(qb(qb(qb(Ob,"lower-equal",[Fb]),"lower-higher-negative",[Fb,$b]),"lower-higher-positive",[Vb]),"lower-lower-acute",[Fb,$b,Ub,Wb,zb]),"lower-lower-obtuse",[Fb,Hb]),"lower-void",[Fb]),"void-equal",[Fb]),"void-higher",[Fb,Hb]),"void-lower",[Fb,Hb,Ub]),"void-void",[Fb]),qb(Ob,"unclassified",[Fb,Hb,zb,Ub,Wb,Vb,jb,$b]);var Gb=function(){if(Bb)return Pb;Bb=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},r=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var i,o=e.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!r)return!1;for(i in n);return void 0===i||e.call(n,i)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(i)return i(t,n).value}return t[n]};return Pb=function e(){var t,n,i,l,c,d,h=arguments[0],u=1,g=arguments.length,p=!1;for("boolean"==typeof h&&(p=h,h=arguments[1]||{},u=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});u<g;++u)if(null!=(t=arguments[u]))for(n in t)i=a(h,n),h!==(l=a(t,n))&&(p&&l&&(r(l)||(c=o(l)))?(c?(c=!1,d=i&&o(i)?i:[]):d=i&&r(i)?i:{},s(h,{name:n,newValue:e(p,d,l)})):void 0!==l&&s(h,{name:n,newValue:l}));return h},Pb}();function Kb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Qb(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Yb(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Gb);var Xb=1/.7,Zb="\\s*([+-]?\\d+)\\s*",Jb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ev="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tv=/^#([0-9a-f]{3,8})$/,nv=new RegExp(`^rgb\\(${Zb},${Zb},${Zb}\\)$`),iv=new RegExp(`^rgb\\(${ev},${ev},${ev}\\)$`),ov=new RegExp(`^rgba\\(${Zb},${Zb},${Zb},${Jb}\\)$`),rv=new RegExp(`^rgba\\(${ev},${ev},${ev},${Jb}\\)$`),sv=new RegExp(`^hsl\\(${Jb},${ev},${ev}\\)$`),av=new RegExp(`^hsla\\(${Jb},${ev},${ev},${Jb}\\)$`),lv={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 cv(){return this.rgb().formatHex()}function dv(){return this.rgb().formatRgb()}function hv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=tv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?uv(t):3===n?new fv(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gv(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gv(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=nv.exec(e))?new fv(t[1],t[2],t[3],1):(t=iv.exec(e))?new fv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ov.exec(e))?gv(t[1],t[2],t[3],t[4]):(t=rv.exec(e))?gv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=sv.exec(e))?Av(t[1],t[2]/100,t[3]/100,1):(t=av.exec(e))?Av(t[1],t[2]/100,t[3]/100,t[4]):lv.hasOwnProperty(e)?uv(lv[e]):"transparent"===e?new fv(NaN,NaN,NaN,0):null}function uv(e){return new fv(e>>16&255,e>>8&255,255&e,1)}function gv(e,t,n,i){return i<=0&&(e=t=n=NaN),new fv(e,t,n,i)}function pv(e){return e instanceof Yb||(e=hv(e)),e?new fv((e=e.rgb()).r,e.g,e.b,e.opacity):new fv}function mv(e,t,n,i){return 1===arguments.length?pv(e):new fv(e,t,n,null==i?1:i)}function fv(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function bv(){return`#${yv(this.r)}${yv(this.g)}${yv(this.b)}`}function vv(){const e=Cv(this.opacity);return`${1===e?"rgb(":"rgba("}${_v(this.r)}, ${_v(this.g)}, ${_v(this.b)}${1===e?")":`, ${e})`}`}function Cv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _v(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yv(e){return((e=_v(e))<16?"0":"")+e.toString(16)}function Av(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Sv(e,t,n,i)}function wv(e){if(e instanceof Sv)return new Sv(e.h,e.s,e.l,e.opacity);if(e instanceof Yb||(e=hv(e)),!e)return new Sv;if(e instanceof Sv)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Sv(s,a,l,e.opacity)}function Sv(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function kv(e){return(e=(e||0)%360)<0?e+360:e}function xv(e){return Math.max(0,Math.min(1,e||0))}function Ev(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Kb(Yb,hv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:cv,formatHex:cv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return wv(this).formatHsl()},formatRgb:dv,toString:dv}),Kb(fv,mv,Qb(Yb,{brighter(e){return e=null==e?Xb:Math.pow(Xb,e),new fv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new fv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fv(_v(this.r),_v(this.g),_v(this.b),Cv(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:bv,formatHex:bv,formatHex8:function(){return`#${yv(this.r)}${yv(this.g)}${yv(this.b)}${yv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:vv,toString:vv})),Kb(Sv,function(e,t,n,i){return 1===arguments.length?wv(e):new Sv(e,t,n,null==i?1:i)},Qb(Yb,{brighter(e){return e=null==e?Xb:Math.pow(Xb,e),new Sv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Sv(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new fv(Ev(e>=240?e-240:e+120,o,i),Ev(e,o,i),Ev(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Sv(kv(this.h),xv(this.s),xv(this.l),Cv(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=Cv(this.opacity);return`${1===e?"hsl(":"hsla("}${kv(this.h)}, ${100*xv(this.s)}%, ${100*xv(this.l)}%${1===e?")":`, ${e})`}`}}));const Lv=Math.PI/180,Dv=180/Math.PI,Iv=4/29,Nv=6/29,Mv=3*Nv*Nv;function Tv(e){if(e instanceof Rv)return new Rv(e.l,e.a,e.b,e.opacity);if(e instanceof Fv)return Wv(e);e instanceof fv||(e=pv(e));var t,n,i=Bv(e.r),o=Bv(e.g),r=Bv(e.b),s=qv((.2225045*i+.7168786*o+.0606169*r)/1);return i===o&&o===r?t=n=s:(t=qv((.4360747*i+.3850649*o+.1430804*r)/.96422),n=qv((.0139322*i+.0971045*o+.7141733*r)/.82521)),new Rv(116*s-16,500*(t-s),200*(s-n),e.opacity)}function Rv(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function qv(e){return e>.008856451679035631?Math.pow(e,1/3):e/Mv+Iv}function Ov(e){return e>Nv?e*e*e:Mv*(e-Iv)}function Pv(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Bv(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Fv(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}function Wv(e){if(isNaN(e.h))return new Rv(e.l,0,0,e.opacity);var t=e.h*Lv;return new Rv(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Kb(Rv,function(e,t,n,i){return 1===arguments.length?Tv(e):new Rv(e,t,n,null==i?1:i)},Qb(Yb,{brighter(e){return new Rv(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Rv(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new fv(Pv(3.1338561*(t=.96422*Ov(t))-1.6168667*(e=1*Ov(e))-.4906146*(n=.82521*Ov(n))),Pv(-.9787684*t+1.9161415*e+.033454*n),Pv(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Kb(Fv,function(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof Fv)return new Fv(e.h,e.c,e.l,e.opacity);if(e instanceof Rv||(e=Tv(e)),0===e.a&&0===e.b)return new Fv(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Dv;return new Fv(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Fv(e,t,n,null==i?1:i)},Qb(Yb,{brighter(e){return new Fv(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Fv(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Wv(this).rgb()}}));var zv=e=>()=>e;function Vv(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):zv(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Vv:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):zv(isNaN(t)?n:t)}}(t);function i(e,t){var i=n((e=mv(e)).r,(t=mv(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=Vv(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=o(t),e.b=r(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);var Hv="center",jv="bottom";function Uv(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Gv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$v(Object(n),!0).forEach(function(t){Uv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}[{key:"NoDataExist",alignment:Hv,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Hv,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Hv,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Hv},{key:"DataRangeIncludingZero",alignment:jv},{key:"LimitedData",alignment:jv},{key:"NegativeOrZeroValues",alignment:jv}].reduce(function(e,t){return e[t.key]=t,e},{});var Kv=Object.prototype.hasOwnProperty,Qv=Object.prototype.toString,Yv=Object.defineProperty,Xv=Object.getOwnPropertyDescriptor,Zv=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Qv.call(e)},Jv=function(e){if(!e||"[object Object]"!==Qv.call(e))return!1;var t,n=Kv.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&Kv.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||Kv.call(e,t)},eC=function(e,t){Yv&&"__proto__"===t.name?Yv(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},tC=function(e,t){if("__proto__"===t){if(!Kv.call(e,t))return;if(Xv)return Xv(e,t).value}return e[t]},nC=function e(){var t,n,i,o,r,s,a=arguments[0],l=1,c=arguments.length,d=!1;for("boolean"==typeof a&&(d=a,a=arguments[1]||{},l=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)i=tC(a,n),a!==(o=tC(t,n))&&(d&&o&&(Jv(o)||(r=Zv(o)))?(r?(r=!1,s=i&&Zv(i)?i:[]):s=i&&Jv(i)?i:{},eC(a,{name:n,newValue:e(d,s,o)})):void 0!==o&&eC(a,{name:n,newValue:o}));return a};function iC(e,t,n,i){if(!e)return-1;const o=n.cache,r=e.origin?e.origin():null;r&&(e=r);let s=o.fields.indexOf(e),a=-1,l=-1;if(-1===s)for(let t=0;t<o.wrappedFields.length;t++)if(l=o.wrappedFields[t].attrDims.map(e=>e.instance).indexOf(e),a=o.wrappedFields[t].attrExps.map(e=>e.instance).indexOf(e),-1!==l||-1!==a){s=t;break}if(Array.isArray(i)&&i.some((e,t)=>e!==t)){const e=i.indexOf(s);-1!==e&&(s=e)}return s-=t.qArea.qLeft,s<0||s>=t.qArea.qWidth?-1:l>=0?e=>e[s].qAttrDims.qValues[l]:a>=0?e=>e[s].qAttrExps.qValues[a]:e=>e[s]}function oC(e,t,n){let{key:i}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:i,field:e.field.key()}),o}function rC(e){let{cache:t,f:n,mainCell:i,p:o,prop:r,page:s,rowIdx:a,row:l,sourceKey:c,target:d,targetProp:h,columnOrder:u}=e,g=i;if(o.field&&o.field!==n){const e=iC(o.field,s,{cache:t},u);if(-1===e)return;g=nC({qRow:a},e(l))}d[h]=oC(o,g,{key:c})}function sC(e,t,n,i){const o=Array.isArray(e)?e:[e];let r=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const s=t.raw(),a=t.key(),l="object"==typeof o[e].field?o[e].field:t.field(o[e].field),{props:c,main:d}=i.normalizeConfig(o[e],t),h=Object.keys(c),u=!!o[e].trackBy,g=typeof o[e].trackBy,p={},m=[],f=[];for(let t=0;t<s.qDataPages.length;t++){const r=iC(l,s.qDataPages[t],{cache:n},s.qColumnOrder);if(-1!==r)for(let b=0;b<s.qDataPages[t].qMatrix.length;b++){const v=s.qDataPages[t].qArea.qTop+b,C=nC({qRow:v},r(s.qDataPages[t].qMatrix[b])),_=oC(d,C,{key:a});if(!d.filter||d.filter(C)){for(let e=0;e<h.length;e++){const i=c[h[e]];let o=i.fields||[i];i.fields&&(_[h[e]]=[]);for(let r=0;r<o.length;r++)rC({cache:n,f:l,mainCell:C,p:o[r],prop:h[e],props:c,page:s.qDataPages[t],rowIdx:v,row:s.qDataPages[t].qMatrix[b],sourceKey:a,target:i.fields?_[h[e]]:_,targetProp:i.fields?r:h[e],columnOrder:s.qColumnOrder});if(i.fields){const t=_[h[e]].map(e=>e.value),n=_[h[e]].map(e=>e.label);_[h[e]]={value:"function"==typeof i.value?i.value(t):void 0!==i.value?i.value:t,label:"function"==typeof i.label?i.label(n):void 0!==i.label?String(i.label):String(_[h[e]].value)}}}u&&i.track({cfg:o[e],itemData:C,obj:_,target:m,tracker:p,trackType:g}),f.push(_)}}}const b=u?i.collect(m,{main:d,propsArr:h,props:c}):f;r=[...r,...b]}return r}function aC(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}function lC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=dC)):void 0===t&&(t=cC);for(var n,i,o,r,s,a=new gC(e),l=[a];n=l.pop();)if((o=t(n.data))&&(s=(o=Array.from(o)).length))for(n.children=o,r=s-1;r>=0;--r)l.push(i=o[r]=new gC(o[r])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(uC)}function cC(e){return e.children}function dC(e){return Array.isArray(e)?e[1]:null}function hC(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function uC(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function gC(e){this.data=e,this.depth=this.height=0,this.parent=null}function pC(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}gC.prototype=lC.prototype={constructor:gC,count:function(){return this.eachAfter(aC)},each:function(e,t){let n=-1;for(const i of this)e.call(t,i,++n,this);return this},eachAfter:function(e,t){for(var n,i,o,r=this,s=[r],a=[],l=-1;r=s.pop();)if(a.push(r),n=r.children)for(i=0,o=n.length;i<o;++i)s.push(n[i]);for(;r=a.pop();)e.call(t,r,++l,this);return this},eachBefore:function(e,t){for(var n,i,o=this,r=[o],s=-1;o=r.pop();)if(e.call(t,o,++s,this),n=o.children)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this},find:function(e,t){let n=-1;for(const i of this)if(e.call(t,i,++n,this))return i},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,i=t.children,o=i&&i.length;--o>=0;)n+=i[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),o=null;for(e=n.pop(),t=i.pop();e===t;)o=e,e=n.pop(),t=i.pop();return o}(t,e),i=[t];t!==n;)t=t.parent,i.push(t);for(var o=i.length;e!==n;)i.splice(o,0,e),e=e.parent;return i},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return lC(this).eachBefore(hC)},[Symbol.iterator]:function*(){var e,t,n,i,o=this,r=[o];do{for(e=r.reverse(),r=[];o=e.pop();)if(yield o,t=o.children)for(n=0,i=t.length;n<i;++n)r.push(t[n])}while(r.length)}};var mC={depth:-1},fC={},bC={};function vC(e){return e.id}function CC(e){return e.parentId}function _C(e){let t=e.length;if(t<2)return"";for(;--t>1&&!yC(e,t););return e.slice(0,t)}function yC(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function AC(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let i,o=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(o)){const t=[];i=n.slice(e+1).join("/");for(let e=0;e<o.length;e++){let n=AC(i,o[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(o)){const t=new Array(o.length);i=n.slice(e+1).join("/");for(let e=0;e<o.length;e++)t[e]=AC(i,o[e]);return t}n[e]in o&&(o=o[n[e]])}return o}function wC(e,t,n){let i=[];if(!e||!e.length)return i;if(t<=0){const t=n>=0?[e[n]]:e;i=[...i,...t]}else for(let o=0;o<e.length;o++)e[o].children&&e[o].children.length&&(i=[...i,...wC(e[o].children,t-1,n)]);return i}function SC(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const i=Math.max(0,Math.min(100,t-e));return e=>wC(e.children,i-1,n)}return!1}const kC=/^qDimensionInfo(?:\/(\d+))?/,xC=/^\/?qMeasureInfo\/(\d+)/,EC=/\/qAttrExprInfo\/(\d+)/,LC=/\/qAttrDimInfo\/(\d+)/;function DC(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map((e,t)=>t)).filter(t=>t<e.qDimensionInfo.length)}function IC(e,t){let{cube:n}=t;if(!e)return-1;let i=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,r=-1,s=-1,a=-1,l=-1,c=-1,d=-1,h=i;const u=n.qEffectiveInterColumnSortOrder,g=DC(n);return kC.test(h)&&(o=!0,r=+kC.exec(h)[1],h=i.replace(kC,"")),xC.test(h)&&("K"===n.qMode?c=+xC.exec(h)[1]:u&&-1!==u.indexOf(-1)?(c=+xC.exec(h)[1],d=0):d=+xC.exec(h)[1],h=h.replace(xC,"")),h&&(LC.exec(h)?a=+LC.exec(h)[1]:EC.exec(h)&&(s=+EC.exec(h)[1])),l=o?"S"===n.qMode?g[r]:u?u.indexOf(r):r:u&&-1!==u.indexOf(-1)?u.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:d,attrDimIdx:a,attrIdx:s}}function NC(e,t){let n,i,o=SC(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?i=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(i=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:o,attrFn:i,valueFn:n}}function MC(e,t,n){let{key:i}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:i,field:e.field.key()}),o}function TC(e){let{propsArr:t,props:n,item:i,itemData:o,ret:r,sourceKey:s}=e;for(let e=0;e<t.length;e++){const a=n[t[e]],l=a.fields||[a];let c,d;a.fields&&(c=[],d=[]);for(let n=0;n<l.length;n++){const h=l[n];let u,g,p,m,f,b;if("primitive"===h.type?(p=h.value,b=String(h.value)):("function"==typeof h.value&&(u=e=>h.value(e,i)),"function"==typeof h.label&&(g=e=>h.label(e,i)),h.accessor?(m=h.accessor(i),Array.isArray(m)?(f=m.map(h.valueAccessor),h.attrAccessor&&(f=f.map(h.attrAccessor)),u&&(p=f.map(u),u=null),g&&(b=f.map(g),g=null),p=h.reduce?h.reduce(p):p,b=h.reduceLabel?h.reduceLabel(b,p):String(p)):(p=h.attrAccessor?h.attrAccessor(h.valueAccessor(m)):h.valueAccessor(m),b=p)):(p=o,b=o)),a.fields){const e=u?u(p):p;c.push(e),d.push(g&&null!=b?g(b):null!=b?b:String(e))}else{const n=u?u(p):p;r[t[e]]={value:n,label:g?g(b):null!=b?b:String(n)},h.field&&(r[t[e]].source={field:h.field.key(),key:s})}}c&&(r[t[e]]={value:"function"==typeof a.value?a.value(c,i):c,label:"function"==typeof a.label?a.label(d,i):d})}}const RC=(e,t,n)=>{const i="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",r=AC(i,e);return r&&r[0]?(t.tree=lC(r[0],n.children||(e=>e[o])),t.tree):null};const qC=e=>{let{propsArr:t,props:n,cube:i,cache:o,itemDepthObject:r,f:s}=e;for(let e=0;e<t.length;e++){const a=n[t[e]],l=a.fields?a.fields:[a];for(let e=0;e<l.length;e++){const t=l[e];if(t.field!==s){const e=NC(r,IC(t.field,{cube:i,cache:o}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function OC(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;const o=t.raw(),r=t.key(),s="S"===o.qMode?function(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map((e,t)=>t)}(e),i=e.fields(),o=e.fields().filter(e=>"dimension"===e.type()).map(e=>n.indexOf(i.indexOf(e))),r=e.fields().filter(e=>"measure"===e.type()).map(e=>n.indexOf(i.indexOf(e))),s={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let i="__root",l=!1;for(let e=0;e<o.length;e++){var a;const t=n[o[e]],r="".concat(i,"__").concat(null!==(a=t.qElemNumber)&&void 0!==a?a:t.qElemNo);s[r]||(s[r]=Gv({__id:r,__parent:i,qValues:[]},t),l=!0),i=r}if(l)for(let e=0;e<r.length;e++){const t=n[r[e]];s[i].qValues.push(t)}}const l=Object.keys(s).map(e=>s[e]);return function(){var e,t=vC,n=CC;function i(i){var o,r,s,a,l,c,d,h,u=Array.from(i),g=t,p=n,m=new Map;if(null!=e){const t=u.map((t,n)=>function(e){let t=(e=`${e}`).length;return yC(e,t-1)&&!yC(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,i))),n=t.map(_C),o=new Set(t).add("");for(const e of n)o.has(e)||(o.add(e),t.push(e),n.push(_C(e)),u.push(bC));g=(e,n)=>t[n],p=(e,t)=>n[t]}for(s=0,o=u.length;s<o;++s)r=u[s],c=u[s]=new gC(r),null!=(d=g(r,s,i))&&(d+="")&&(h=c.id=d,m.set(h,m.has(h)?fC:c)),null!=(d=p(r,s,i))&&(d+="")&&(c.parent=d);for(s=0;s<o;++s)if(d=(c=u[s]).parent){if(!(l=m.get(d)))throw new Error("missing: "+d);if(l===fC)throw new Error("ambiguous: "+d);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(a)throw new Error("multiple roots");a=c}if(!a)throw new Error("no root");if(null!=e){for(;a.data===bC&&1===a.children.length;)a=a.children[0],--o;for(let e=u.length-1;e>=0&&(c=u[e]).data===bC;--e)c.data=null}if(a.parent=mC,a.eachBefore(function(e){e.depth=e.parent.depth+1,--o}).eachBefore(uC),a.parent=null,o>0)throw new Error("cycle");return a}return i.id=function(e){return arguments.length?(t=pC(e),i):t},i.parentId=function(e){return arguments.length?(n=pC(e),i):n},i.path=function(t){return arguments.length?(e=pC(t),i):e},i}().id(e=>e.__id).parentId(e=>e.__parent)(l)}(t):RC(o,n,e);if(!s)return null;const a=s.height,l=[];for(let r=0;r<=a;r++){let s=null;if(r>0)if("S"===o.qMode){let e=DC(o)[r-1];s=n.fields[e]}else{let e=o.qEffectiveInterColumnSortOrder[r-1];r>o.qEffectiveInterColumnSortOrder.length&&(e=o.qDimensionInfo.length),s=n.fields[e]}const{props:a,main:c}=i.normalizeConfig(Gv(Gv({},e),{},{field:s?s.key():void 0}),t),d=Object.keys(a);l[r]={propsArr:d,props:a,main:c};const h=s?IC(s,{cube:o,cache:n}):{fieldDepth:0};qC({propsArr:d,props:a,cube:o,cache:n,itemDepthObject:h,f:s})}const c=s.copy().descendants(),d=s.descendants();for(let e=0;e<d.length;e++){const t=l[d[e].depth].propsArr,n=l[d[e].depth].props,i=l[d[e].depth].main,o=c[e],s=o.data,a=MC(i,s,{key:r});TC({propsArr:t,props:n,item:o,itemData:s,ret:a,sourceKey:r,isTree:!0}),d[e].data=a}return s}function PC(e,t,n,i){const o=Array.isArray(e)?e:[e];let r=[];for(let s=0;s<o.length;s++)if(void 0!==o[s].field){const a=t.raw(),l=t.key();if(!RC(a,n,e))continue;const c="object"==typeof o[s].field?o[s].field:t.field(o[s].field),{props:d,main:h}=i.normalizeConfig(o[s],t),u=Object.keys(d),g=IC(c,{cube:a,cache:n}),{nodeFn:p,attrFn:m,valueFn:f}=NC({fieldDepth:0},g);qC({propsArr:u,props:d,cube:a,cache:n,itemDepthObject:g,f:c});const b=!!o[s].trackBy,v=typeof o[s].trackBy,C={},_=[],y=p(n.tree),A=[];for(let e=0;e<y.length;e++){const t=y[e],n=m?m(f(t)):f(t);if(h.filter&&!h.filter(n))continue;const r=MC(h,n,{key:l});TC({propsArr:u,props:d,item:t,itemData:n,ret:r,sourceKey:l}),b&&i.track({cfg:o[s],itemData:n,obj:r,target:_,tracker:C,trackType:v}),A.push(r)}const w=b?i.collect(_,{main:h,propsArr:u,props:d}):A;r=[...r,...w]}return r}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==s.g?s.g:"undefined"!=typeof self&&self;var BC,FC,WC=(BC=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,i,o,r,s,a,l,c,d,h,u=e.length,g=e.search(/[0-9\-\+#]/),p=g>0?e.substring(0,g):"",m=e.split("").reverse().join(""),f=m.search(/[0-9\-\+#]/),b=u-f,v=e.substring(b,b+1),C=b+("."===v||","===v?1:0),_=f>0?e.substring(C,u):"";if(n=(t="-"===(e=e.substring(g,C)).charAt(0)?-t:+t)<0?t=-t:0,o=(i=e.match(/[^\d\-\+#]/g))&&i[i.length-1]||".",r=i&&i[1]&&i[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",a=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=a)&&(t=(+t).toFixed(a+1)),d=e[0].split(r),e[0]=d.join(""),(s=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-s;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=d[1]&&d[d.length-1].length){for(m="",b=(h=t[0]).length%l,u=h.length,C=0;C<u;C++)m+=h.charAt(C),!((C-b+1)%l)&&C<u-l&&(m+=r);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(i=t.join(""))&&""!==i||(n=!1),p+(n?"-":"")+i+_}},BC(FC={exports:{}}),FC.exports);function zC(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const VC={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},HC=/%\)?$/,jC=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,UC=/^\(oct\)/i,$C=/^\(dec\)/i,GC=/^\(hex\)/i,KC=/^\(bin\)/i,QC=/^\(rom\)/i,YC=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,XC=/#|0/g;function ZC(e,t,n,i){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",i||".")}function JC(e,t,n){const i=zC(e);return n?i:new RegExp(i||"",t)}function e_(e,t,n,i){let o,r,s,a,l,c,d,h,u,g=e.pattern;var p,m;i&&(e.abbreviate=!0),p=t,(m=n)&&(m=zC(m)),p&&(p=zC(p)),u=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),s=g.match(u),s=s?s[0]:"",a=s?g.substr(0,g.indexOf(s)):g,l=s?g.substring(g.indexOf(s)+s.length):"",s||(s=g?"#":"##########"),t&&t===n&&(o=s.split(n),r=o.pop(),s=o.join("")+n+r,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(s=s.replace(JC(c,"g"),t)),d=n,n=".",d&&(s=s.replace(JC(d,"g"),n)),h=s.match(/#/g),h=h?h.length:0;const f=g.split(d);let b;f[1]&&(b=f[1].match(XC)),e.prefix=a||"",e.postfix=l||"",e.pattern=g,e.maxPrecision=b?b.length:2,e.percentage=HC.test(g),e.numericPattern=s||"",e.numericRegex=new RegExp("".concat(JC(t,null,!0),"|").concat(JC(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=d,e.t=t,e.d=n,e.temp=h}class t_{constructor(e,t,n,i,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=i||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return VC;const n={};return e.qNumericalAbbreviation.split(t).forEach(e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])}),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new t_(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,i){return this.prepare(t,n,i),this.formatValue(e)}prepare(e,t,n){let i;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},i=this._prepared,e=e.split(this.patternSeparator),i.positive.pattern=e[0],i.negative.pattern=e[1],i.zero.pattern=e[2],YC.test(e[0])&&(i.positive.isFunctional=!0),e[1]?YC.test(e[1])&&(i.negative.isFunctional=!0):i.negative=!1,e[2]?YC.test(e[2])&&(i.zero.isFunctional=!0):i.zero=!1;const o="U"===this.type;i.positive.isFunctional||e_(i.positive,t,n,o),i.negative&&!i.negative.isFunctional&&e_(i.negative,t,n,o),i.zero&&!i.zero.isFunctional&&e_(i.zero,t,n,o)}formatValue(e){let t,n,i,o,r,s,a,l,c,d=this._prepared,h="",u="",g=e;if(isNaN(e))return"".concat(g);if(e=+e,!1===d.pattern)return e.toString();if(0===e&&d.zero)return d=d.zero,d.pattern;if(e<0&&d.negative?(d=d.negative,e=-e):d=d.positive,r=d.d,s=d.t,d.isFunctional)e=function(e,t,n){let i;return jC.test(t)?e=ZC(e,Number(/\d{2}/.exec(t)[0]),t,n):UC.test(t)?e=ZC(e,8,t,n):$C.test(t)?e=ZC(e,10,t,n):GC.test(t)?e=ZC(e,16,t,n):KC.test(t)?e=ZC(e,2,t,n):QC.test(t)&&(i="",e<0&&(i="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,i="",o=Number(String(e).slice(-3)),r=(e-o)/1e3,s=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),a=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(n=0;n<s.length;n++)if(s[n]<=o){i+=a[n],o-=s[n];break}for(n=0;n<r;n++)i="M".concat(i);return t[1]!==t[1].toUpperCase()&&(i=i.toLowerCase()),i}(e,t),e=i+e):e=t+i+e.toExponential(0)),e}(e,d.pattern,r);else{if(d.percentage&&(e*=100),d.abbreviate){const t=Object.keys(this.abbreviations).map(e=>parseInt(e,10)).sort((e,t)=>e-t);let i,o,r=t[0];for(a=0,n=Number(Number(e).toExponential().split("e")[1]);r<=n&&a<t.length;)a++,r=t[a];a>0&&(i=t[a-1]),i&&n>0&&i>0?o=i:(n<0&&i<0||!i)&&(r<0&&r-n<=d.maxPrecision?o=r:i<=n&&!(r>0&&-n<=d.maxPrecision)&&(o=i)),o&&(h=this.abbreviations[o],e/=10**o)}if(i=Math.abs(e),t=d.temp,l=d.numericPattern,c=l.split(r)[1],"I"===this.type&&(e=Math.round(e)),o=e,c||"#"!==l.slice(-1)[0])if(i>=1e15||i>0&&i<=1e-14)e=i?i.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=l.split(r)[0];if(n+=r,e=WC(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let o=("I"===this.type?0:i%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(a=o.length;a<n;a++)o+="0";o&&(e+=r+o)}else 0===t&&(o=0)}else if(i>=10**t||i<1||i<1e-4)0===e?e="0":i<1e-4||i>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),u=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",r));else{for(l+=r,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(i)/Math.log(10)))),a=0;a<t;a++)l+="#";e=WC(l,e)}e=e.replace(d.numericRegex,e=>e===s?d.groupTemp:e===r?d.decTemp:""),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return d.prefix+e+u+h+d.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function n_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:i=!1,toKey:o=e=>e}=t;let r,s,a=Object.create(null),l=Object.create(null),c=0,d=0;return r=i?function(){return s=o(...arguments),r.has(s)?r.get(s):r.set(s,e(...arguments))}:t=>(s=o(t),r.has(s)?r.get(s):r.set(s,e(t))),r.set=(e,t)=>(c>=n&&(delete a[l[d]],delete l[d],c--,d++),a[e]=t,l[c]=e,c++,t),r.get=e=>a[e],r.has=e=>e in a,r.clear=()=>{a=Object.create(null),l=Object.create(null),c=0,d=0},r.size=()=>c,r}function i_(e,t,n,i,o){const r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new t_(...t)}(o,e,t,n,i),s=n_(r.formatValue.bind(r),{toKey:e=>isNaN(e)?e:+e});function a(e){return s(e)}return a.format=function(e,t,n,i){return s.clear(),r.format(t,e,n,i)},a.pattern=function(e){return e&&(s.clear(),r.pattern=e,r.prepare()),r.pattern},a}const o_="D",r_="T",s_="TS",a_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],l_=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],c_=["January","February","March","April","May","June","July","August","September","October","November","December"],d_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function h_(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function u_(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class g_{constructor(e,t,n){const i=e||{};i.qCalendarStrings||(i.qCalendarStrings={qLongDayNames:a_,qDayNames:l_,qLongMonthNames:c_,qMonthNames:d_}),this.localeInfo=i,this.locale_days=i.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=i.qCalendarStrings.qDayNames.slice(),this.locale_months=i.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=i.qCalendarStrings.qMonthNames.slice(),t||(t={[r_]:i.qTimeFmt||"hh:mm:ss",[o_]:i.qDateFmt||"YYYY-MM-DD",[s_]:i.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new g_(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let i;e instanceof Date?i=function(e,t){let n=e.getUTCHours(),i=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),i<0&&(i=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:i,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),i=function(e,t){let n,i=function(e){const t=e,n=24*u_(t),i=60*u_(n),o=60*u_(i),r=1e3*u_(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(i),s:Math.floor(o),f:Math.round(r)}}(e),o=i.d,r=i.h,s=i.m,a=i.s,l=i.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(r+=24*o),/h+/gi.test(t)||(s+=60*r),/m+/gi.test(t)||(a+=60*s),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let d="";return n&&(d=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:o,h:r,m:s,s:a,f:l,t:d}}(e,t));const o=(r=this,s=i,{"Y+|y+":{Y:"".concat(Number("".concat(s.year).slice(-2))),YY:h_("".concat(s.year).slice(-2),2),YYY:h_("".concat(s.year).slice(-3),3),def:e=>h_("".concat(s.year),e.length)},"M+":{M:s.month+1,MM:h_("".concat(s.month+1),2),MMM:r.locale_months_abbr[s.month],def:r.locale_months[s.month]},"W+|w+":{W:s.day,WW:h_("".concat(s.day),2),WWW:r.locale_days_abbr[s.day],def:r.locale_days[s.day]},"D+|d+":{D:s.date,def:e=>h_("".concat(s.date),e.length)},"h+|H+":{h:s.h,def:e=>h_("".concat(s.h),e.length)},"m+":{m:s.m,def:e=>h_("".concat(s.m),e.length)},"s+|S+":{s:s.s,def:e=>h_("".concat(s.s),e.length)},"f+|F+":{def(e){let t="".concat(s.f),n=e.length-t.length;if(n>0)for(let e=0;e<n;e++)t+="0";else n<0&&(t=t.slice(0,e.length));return t}},"t{1,2}|T{1,2}":{def(e){let t=s.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var r,s;const a=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&a.push(e);const l=new RegExp(a.join("|"),"g");return t.replace(l,e=>{let t,n,i;for(n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in o[n])if(t===e||t.toLowerCase()===e){i=o[n][t],void 0===i&&(i=o[n][t.toLowerCase()]);break}return void 0===i&&(i=o[n].def),"function"==typeof i&&(i=i(e)),i})}}function p_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new g_(...t)}function m_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=p_(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),i=n_(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function o(e){return"IV"!==t?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function r(e){return e=o(e),i(e)}return r.format=function(e,t){return i.clear(),t=o(t),n.format(t,e)},r.locale=function(o){return n=p_(o,e,t),i=n_(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},r.qtype=function(e){return void 0!==e&&(t=e,i.clear()),t},r}function f_(){let e,{meta:t,id:n,key:i,localeInfo:o,fieldExtractor:r,value:s,type:a,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=s||("dimension"===a?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),d="dimension"===a?"first":"avg",h=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return m_(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",i=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",r="U",s=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,i=e.qNumFormat.qThou||i,o=e.qNumFormat.qDec||o,r=e.qNumFormat.qType||r,s=s&&-1===["M"].indexOf(e.qNumFormat.qType)):s=!0,(s||"U"===r)&&(n="#".concat(o,"##"),r="U"),i_(n,i,o,r,t)}(t,o),u="dimension"===a?"first":(e,t)=>h(t),g={id:()=>n,key:()=>i,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>a,origin:()=>l,items:()=>(e||(e=r(g)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:d,reduceLabel:u,formatter:()=>h,tags:()=>t.qTags};return g}function b_(e,t,n,i,o){return(t[e]||[]).map((t,r)=>{const s="".concat(i?"".concat(i,"/"):"").concat(e,"/").concat(r),a={instance:f_(nC({id:"".concat(n?"".concat(n,"/"):"").concat(s),key:s,meta:t},o))};return a.attrDims=b_("qAttrDimInfo",t,n,s,nC({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),a.attrExps=b_("qAttrExprInfo",t,n,s,nC({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),a.measures=b_("qMeasureInfo",t,n,s,nC({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),a})}function v_(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},o=t;if(!o)throw new Error('Missing "data" input');if(!o.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const r=v_.util,s={cache:i,cube:o,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},a={key:()=>e,raw:()=>o,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const i=n.allFields;if("function"==typeof e){for(let t=0;t<i.length;t++)if(e(i[t]))return i[t];return!1}if("string"==typeof e){for(let t=0;t<i.length;t++)if(i[t].key()===e||i[t].title()===e)return i[t]}else if(e&&-1!==i.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,s),fields:()=>i.fields.slice(),extract:e=>s.extractor(e,a,i,r),hierarchy:e=>s.hierarchy(e,a,i,r),_cache:()=>i};"K"===o.qMode||"T"===o.qMode||!o.qMode&&o.qNodesOnDim?(s.extractor=PC,s.hierarchy=OC,s.pages="K"===o.qMode?o.qStackedDataPages:o.qTreeDataPages):"S"===o.qMode?(s.extractor=sC,s.pages=o.qDataPages,s.hierarchy=OC):s.extractor=()=>[],s.fieldExtractor=e=>s.extractor({field:e},a,i,r);const l="S"===o.qMode?e=>e.qElemNumber:void 0,c="S"===o.qMode?e=>e.qNum:void 0;i.wrappedFields.push(...b_("qDimensionInfo",o,e,"",nC({},s,{value:l,type:"dimension"}))),i.wrappedFields.push(...b_("qMeasureInfo",o,e,"",nC({},s,{value:c,type:"measure"}))),i.fields=i.wrappedFields.map(e=>e.instance);const d=e=>{e.forEach(e=>{i.allFields.push(e.instance),d(e.measures),d(e.attrDims),d(e.attrExps)})};return d(i.wrappedFields),(n.virtualFields||[]).forEach(t=>{const n=a.field(t.from),o=f_(Gv({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>s.extractor({field:e},a,i,r),key:t.key,type:n.type(),localeInfo:s.localeInfo,value:n.value},t.override||{}));i.virtualFields.push(o)}),i.allFields.push(...i.virtualFields),a}const C_=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],__=/\/qDimensionInfo(?:\/(\d+))?/,y_=/\/qMeasureInfo\/(\d+)/,A_=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,w_=/\/qAttrExprInfo\/(\d+)/,S_=/\/?qHyperCube/,k_=/\/?qTreeData/,x_=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),E_=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function L_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i=t.byCells,o=t.primarySource,r=[],s={},a=e.isActive();let l=!1;return e.brushes().forEach(e=>{const t=function(e,t){let n=e,i=-1,o=-1,r="",s=e=>e;S_.test(e)?(r="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),s=x_):k_.test(e)&&(r="".concat(n.substr(0,n.indexOf("qTreeData")+9)),s=E_);let a=!0;if(__.test(e)&&(i=+__.exec(e)[1]),y_.test(e)&&(o=+y_.exec(e)[1]),A_.test(e)){o=-1,i=0;const e=+A_.exec(n)[2];isNaN(e)||(i=e,n=n.replace(/\/\d+$/,"")),a=!1}if(w_.test(e)){const e=o;if(t){o=0;const s=AC(r,t);o+=(s.qMeasureInfo||[]).length,i>-1?(o=s.qDimensionInfo.slice(0,i).reduce((e,t)=>e+t.qAttrExprInfo.length,o),i=-1):(o=s.qDimensionInfo.reduce((e,t)=>e+t.qAttrExprInfo.length,o),o=s.qMeasureInfo.slice(0,e).reduce((e,t)=>e+t.qAttrExprInfo.length,o)),o+=+w_.exec(n)[1]}else i>-1?(i=-1,o=+w_.exec(n)[1]):o+=+w_.exec(n)[1]+1}return C_.forEach(e=>{let[t,i]=e;n=n.replace(t,i)}),a&&(n=s(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:o,dimensionIdx:i,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,s.multiRangeSelectTreeDataValues||(s.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach(e=>s.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,s.rangeSelectHyperCubeValues||(s.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach(e=>s.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,s.selectHyperCubeContinuousRange||(s.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach(e=>s.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}})))}if("value"===e.type&&t.dimensionIdx>-1)if(i)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const i=n.qHyperCube,r=i.qNoOfLeftDims,a=i.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(s.selectPivotCells||(s.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));(0===r||a>=r)&&r>-1?n.forEach(e=>{s.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:a-r})}):n.forEach(e=>{s.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})}),l=!!s.selectPivotCells.cells.length}}else s.selectHyperCubeCells||(s.selectHyperCubeCells={path:t.path,cols:[]}),s.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||s.selectHyperCubeCells.values)||(s.selectHyperCubeCells.values=e.brush.values().map(e=>+e).filter(e=>!isNaN(e)),l=!!s.selectHyperCubeCells.values.length);else{const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));l=!!n.length,r.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}}),!l&&a?[{method:"resetMadeSelections",params:[]}]:(s.rangeSelectHyperCubeValues&&r.push({method:"rangeSelectHyperCubeValues",params:[s.rangeSelectHyperCubeValues.path,s.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),s.selectHyperCubeContinuousRange&&r.push({method:"selectHyperCubeContinuousRange",params:[s.selectHyperCubeContinuousRange.path,s.selectHyperCubeContinuousRange.ranges]}),s.selectHyperCubeCells&&r.push({method:"selectHyperCubeCells",params:[s.selectHyperCubeCells.path,s.selectHyperCubeCells.values,s.selectHyperCubeCells.cols]}),s.selectPivotCells&&r.push({method:"selectPivotCells",params:[s.selectPivotCells.path,s.selectPivotCells.cells]}),s.multiRangeSelectTreeDataValues&&r.push({method:"multiRangeSelectTreeDataValues",params:[s.multiRangeSelectTreeDataValues.path,s.multiRangeSelectTreeDataValues.ranges]}),r);var c}function D_(e){v_.util=e.data("matrix").util,e.data("q",v_),e.formatter("q-number",i_),e.formatter("q-time",m_)}D_.qBrushHelper=L_,D_.selections=L_;"#".concat("chart-modules-tooltip"),Number.MAX_VALUE,new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");const I_=/,(?![^(]*\))/,N_=/\s(?![^(]*\))/,M_=/^[0-9]+[a-zA-Z%]+?$/,T_=["none","inset","initial","inherit"],R_=e=>{if(!e)return;const t=e.split(N_).filter(e=>!T_.includes(e.toLowerCase())).at(-1),n=!t||(e=>"0"===e||M_.test(e))(t)||T_.includes(t.toLowerCase())?void 0:t;return n},q_=e=>e?e.split(I_).map(e=>e.trim()):[];function O_(e,t,n,i){return n&&i?n.getStyle(`object.${i}`,e,t):n?n.getStyle("",e,t):void 0}function P_(e,t,n,i,o){return e&&i?"none"!==e.color?i.getColorPickerColor(e):void 0:O_(t,n,i,o)}const B_={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},F_={"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 W_(e,t,n){const i=e?.bgImage;if(i){let o="";if("media"===i.mode||"media"===e.useImage){let e;const r=i?.mediaUrl,{qUrl:s}=r?.qStaticContentUrl||{};o=s?decodeURIComponent(s):void 0,o=function(e,t){return t?function(e){let t,n,i,o;return e?.session?.config?(t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://",i+n.host):""}(e)+t:void 0}(t,o),n&&(e=Object.entries(n).map(([e,t])=>`&${e}=${encodeURIComponent(t)}`).join("&"),o=`${o}?${e}`)}"expression"===i.mode&&(o=i.expressionUrl?decodeURIComponent(i.expressionUrl):void 0);const r=function(e){let t="center center";return e?.bgImage?.position&&(t=F_[e.bgImage.position]),t}(e),s=function(e){let t=B_.originalSize;const n=e?.bgImage?.sizing;return n&&(t=B_[n]),t}(e);return o?{url:o,pos:r,size:s}:void 0}}function z_(e,t,n){const i=e?.bgColor;return i&&t&&(i.useExpression||i.useColorExpression)?t.validateColor(i.colorExpression):P_(i?.color,"","backgroundColor",t,n)}function V_(e,t,n){const i=O_("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&T_.includes(e.toLowerCase()))return e.toLowerCase();const i=q_(e);if(1!==i.length)return e;let o=n;if(!o){const n=q_(t);if(1!==n.length)return e;o=R_(n[0])}if(!o)return e;const r=R_(i[0]);return r?e.replace(r,o):`${e} ${o}`})(e?.shadow?.boxShadow||i,i,P_(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,n))}function H_(e,t,n,i){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||n.getStyle(`object.${i}`,`title.${t}`,"fontFamily"),fontSize:o.fontSize||n.getStyle(`object.${i}`,`title.${t}`,"fontSize"),color:o.color&&"none"!==o.color.color?n.getColorPickerColor(o.color):n.getStyle(`object.${i}`,`title.${t}`,"color"),backgroundColor:o.backgroundColor||n.getStyle(`object.${i}`,`title.${t}`,"backgroundColor"),fontWeight:r.includes("bold")?"bold":"normal",fontStyle:r.includes("italic")?"italic":"normal",textDecoration:r.includes("underline")?"underline":"initial"}}const j_={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},U_=["theme","selections"];function $_({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:r}){return function({app:e,themeApi:t,theme:n,queryParams:i,components:o=[],checkboxes:r=!1}){const s=function(e=[]){const t={};return e.forEach(e=>{const n=e?.key;U_.includes(n)&&(t[n]=e)}),t}(o),a=(e,n)=>t.getStyle("object.listBox",e,n),l=e=>e?.index>0||e?.color?t.getColorPickerColor(e):void 0,c=function({getColorPickerColor:e,theme:t,getListboxStyle:n,overrides:i,checkboxes:o}){const r=i.theme?.content?.fontColor,s=e(r)||n("content","color")||t.palette?.text.primary,a=!o&&(i.theme?.content?.useContrastColor??!0),l=i.selections?.colors||{},c=i=>{const o="selected"===i?"main":i,r=`${i}Contrast`,c=e(l[i])||n("",`dataColors.${i}`)||"possible"===i&&n("","backgroundColor")||t.palette?.selected?.[o]||j_[i],d=a?Rb(c,s):s||t.palette?.selected[`${r}Text}`];return{[i]:c,[r]:d}};return{...c("selected"),...c("alternative"),...c("excluded"),...c("selectedExcluded"),...c("possible")}}({getColorPickerColor:l,theme:n,getListboxStyle:a,overrides:s,checkboxes:r}),d=s.theme||{},h=l(d.header?.fontColor)||a("title.main","color"),u=function({themeApi:e,themeOverrides:t}){let n;const i=t?.background;return i?(n=i?.useExpression?z_({bgColor:i},e,"listBox"):e.getColorPickerColor(i?.color),n):n}({themeApi:t,themeOverrides:d}),g=d.background?.image?W_({bgImage:d.background.image},e,i):void 0,p=u||a("","backgroundColor")||n.palette.background.default,m=function(e,t){const n=Mb(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(p,a),f=function(e){return Rb("#fff",e("content","color"))}(a),b=d.header?.fontStyle||{},v=d.content?.fontStyle||{},C=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:p,backgroundImage:g?.url&&!g?.url.startsWith("url(")?`url('${g.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:g?.size,backgroundPosition:g?.pos},header:{color:h,fontSize:d.header?.fontSize||a("title.main","fontSize"),fontFamily:d.header?.fontFamily||a("title.main","fontFamily"),fontWeight:C(b.bold,"bold","normal")||a("title.main","fontWeight")||"bold",textDecoration:b.underline?"underline":"initial",fontStyle:C(b.italic,"italic","normal")||a("title.main","fontStyle")||"initial"},content:{backgroundColor:r?void 0:c.possible,color:c.possibleContrast||a("content","color"),fontSize:d.content?.fontSize||a("content","fontSize"),fontFamily:d.content?.fontFamily||a("content","fontFamily"),fontWeight:C(v.bold,"bold","normal")||a("content","fontWeight")||"normal",textDecoration:v.underline?"underline":"initial",fontStyle:C(v.italic,"italic","normal")||a("content","fontStyle")||"initial"},search:{color:f,borderColor:n.palette.divider,highlightBorderColor:n.palette.custom.focusBorder,backgroundColor:m,backdropFilter:"blur(8px)"},selections:c}}({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:r})}function G_({alignTo:e,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:i={vertical:"top",horizontal:"center"},show:o,close:r,app:s,fieldName:a,stateName:l="$",autoFocus:c,components:d,checkboxes:h,selectDisabled:u=()=>!1,sortCriteria:g=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:p="ltr"}){const m=Boolean(a?.qLibraryId),f=o&&Boolean(e.current),[b,v]=(0,t.useState)(0),C=Gn(),_=(0,t.useRef)(),[y]=fd({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:g,qFieldDefs:m?void 0:[a]},qLibraryId:m?a.qLibraryId:void 0}},s,a,l),A=(0,t.useCallback)(()=>{y.lock("/qListObjectDef")},[y]),w=(0,t.useCallback)(()=>{y.unlock("/qListObjectDef")},[y]),{translator:S,themeApi:k,keyboardNavigation:x,hostConfig:E}=(0,t.useContext)(ld),L=(0,t.useRef)(),D=(0,t.useRef)(),[I]=mb(s,y,D),[N]=yd(y),[M]=(0,t.useState)(()=>fb({selectDisabled:u})),T=fg({containerRef:D,enabled:x}),{checkboxes:R=h}=N||{},q=$_({themeApi:k,theme:C,hostConfig:E,components:d,checkboxes:R});if((0,t.useEffect)(()=>{I&&f&&(I.isModal(y)||I.goModal("/qListObjectDef"))},[I,f]),!(y&&N&&S&&q))return null;const O=!0===N.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;I.noModal(n),r()},B=of({layout:N,model:y,translator:S,selectionState:M,selections:I}),F=vb(N);return t.createElement(xh,{className:"listbox-container",open:f,onClose:P,anchorEl:e.current,anchorOrigin:n,transformOrigin:i,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?P():void 0,direction:p},t.createElement(yr,{container:!0,direction:"column",gap:0,ref:D},t.createElement(yr,{item:!0,container:!0,style:{direction:p,padding:C.spacing(1)}},t.createElement(yr,{item:!0},O?t.createElement(cr,{onClick:w,disabled:!O,size:"large"},t.createElement(Sd,{title:S.get("Listbox.Unlock")})):t.createElement(cr,{onClick:A,disabled:!F,size:"large"},t.createElement(xd,{title:S.get("Listbox.Lock")}))),t.createElement(yr,{item:!0,xs:!0}),t.createElement(yr,{item:!0},t.createElement(Xf,{layout:N,more:{enabled:!O,actions:B,alignTo:L,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:I,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}}))),t.createElement(yr,{item:!0,xs:!0},t.createElement("div",{ref:L}),t.createElement(yr,{item:!0},t.createElement(hb,{ref:_,popoverOpen:f,styles:q,visible:!0,model:y,listCount:b,selections:I,selectionState:M,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:T.focusSelection},autoFocus:c??!0,direction:p})),t.createElement(Zm,{model:y,app:s,layout:N,selections:I,selectionState:M,direction:p,onSetListCount:e=>v(e),onCtrlF:()=>{_.current.focus()},styles:q,keyboard:T}))))}function K_({field:e,api:n,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=()=>{}}){const{translator:a}=(0,t.useContext)(ld),l=r||(0,t.useRef)(),c=Gn(),[d,h]=(0,t.useState)(!1),u=()=>{h(!1),s()},g=e.selections[i];void 0===g.qTotal&&(g.qTotal=0);const p=g.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},m=(p.qSelected+p.qLocked)/g.qTotal,f=p.qAlternative/g.qTotal,b=(p.qExcluded+p.qLockedExcluded+p.qSelectedExcluded)/g.qTotal,v=p.qSelected+p.qSelectedExcluded+p.qLocked+p.qLockedExcluded,C=0===v&&0===g.qTotal;let _="";g.qTotal===v&&g.qTotal>1?_=a.get("CurrentSelections.All"):v>1&&g.qTotal?_=a.get("CurrentSelections.Of",[v,g.qTotal]):g.qSelectedFieldSelectionInfo&&(_=g.qSelectedFieldSelectionInfo.map(e=>e.qName).join(", ")),"$"!==e.states[i]&&(_=`${e.states[i]}: ${_}`);const y=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:b}];y.forEach((e,t)=>{e.offset=t?y[t-1].offset+y[t-1].ratio:0});let A=null,w=null,S=null,k=null;return r||(A=t.createElement(yr,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},t.createElement(Lr,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.label),t.createElement(Lr,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},_)),g.qLocked?w=t.createElement(yr,{item:!0},t.createElement(cr,{size:"large"},t.createElement(Sd,null))):g.qOneAndOnlyOne||(w=t.createElement(yr,{item:!0},t.createElement(cr,{title:a.get("Selection.Clear"),onClick:t=>{t.stopPropagation(),n.clearField(g.qField,e.states[i])},size:"large"},t.createElement(as,null)))),S=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===C&&y.map(e=>t.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}}))),k=t.createElement(yr,{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)&&h(!d)})||null},A,w,S,d&&t.createElement(G_,{alignTo:l,show:d,close:u,app:n.model,fieldName:g.qField,stateName:e.states[i]}))),r?t.createElement(G_,{alignTo:l,show:!0,close:u,app:n.model,fieldName:g.qField,stateName:e.states[i]}):k}const Q_=e=>{const n=t.useRef({});return t.useEffect(()=>{n.current=e}),n.current};function Y_(e){return(0,ln.Ay)("MuiBadge",e)}const X_=(0,an.A)("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"]),Z_=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],J_=(0,sn.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ey=(0,sn.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,Vn.A)(n.anchorOrigin.vertical)}${(0,Vn.A)(n.anchorOrigin.horizontal)}${(0,Vn.A)(n.overlap)}`],"default"!==n.color&&t[`color${(0,Vn.A)(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{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}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter(t=>{var n,i;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(i=e.vars)?i:e).palette[t].contrastText}).map(t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),ty=t.forwardRef(function(e,t){var n,i,o,r,s,a;const l=(0,rn.b)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:h,components:u={},componentsProps:g={},children:p,overlap:m="rectangular",color:f="default",invisible:b=!1,max:v=99,badgeContent:C,slots:_,slotProps:y,showZero:A=!1,variant:w="standard"}=l,S=(0,Zt.A)(l,Z_),{badgeContent:k,invisible:x,max:E,displayValue:L}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,r=Q_({badgeContent:t,max:i});let s=n;!1!==n||0!==t||o||(s=!0);const{badgeContent:a,max:l=i}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:v,invisible:b,badgeContent:C,showZero:A}),D=Q_({anchorOrigin:c,color:f,overlap:m,variant:w,badgeContent:C}),I=x||null==k&&"dot"!==w,{color:N=f,overlap:M=m,anchorOrigin:T=c,variant:R=w}=I?D:l,q="dot"!==R?L:void 0,O=(0,Jt.A)({},l,{badgeContent:k,invisible:I,max:E,displayValue:q,showZero:A,anchorOrigin:T,color:N,overlap:M,variant:R}),P=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:s={}}=e,a={root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${(0,Vn.A)(n.vertical)}${(0,Vn.A)(n.horizontal)}`,`anchorOrigin${(0,Vn.A)(n.vertical)}${(0,Vn.A)(n.horizontal)}${(0,Vn.A)(o)}`,`overlap${(0,Vn.A)(o)}`,"default"!==t&&`color${(0,Vn.A)(t)}`]};return(0,tn.A)(a,Y_,s)})(O),B=null!=(n=null!=(i=null==_?void 0:_.root)?i:u.Root)?n:J_,F=null!=(o=null!=(r=null==_?void 0:_.badge)?r:u.Badge)?o:ey,W=null!=(s=null==y?void 0:y.root)?s:g.root,z=null!=(a=null==y?void 0:y.badge)?a:g.badge,V=$s({elementType:B,externalSlotProps:W,externalForwardedProps:S,additionalProps:{ref:t,as:h},ownerState:O,className:(0,en.A)(null==W?void 0:W.className,P.root,d)}),H=$s({elementType:F,externalSlotProps:z,ownerState:O,className:(0,en.A)(P.badge,null==z?void 0:z.className)});return(0,dn.jsxs)(B,(0,Jt.A)({},V,{children:[p,(0,dn.jsx)(F,(0,Jt.A)({},H,{children:q}))]}))}),ny=ty,iy=e=>ss((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)),oy="MultiState-item",ry=(0,sn.Ay)(yr)(({theme:e})=>({[`&.${oy}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}}));function sy({field:e,api:n,moreAlignTo:i=null,onClose:o=()=>{}}){const[r,s]=(0,t.useState)(!!i),[a,l]=(0,t.useState)(-1),[c,d]=(0,t.useState)(i?i.current:null),h=i||(0,t.useRef)(),{translator:u}=(0,t.useContext)(ld),g=u.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=t.createElement(t.Fragment,null,t.createElement(yr,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(ny,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},t.createElement(Lr,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.label))),t.createElement(yr,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(yr,{item:!0},t.createElement(cr,{size:"large"},t.createElement(iy,null)))));const f=t.createElement(gs,{dense:!0},t.createElement(Is,{title:g,onClick:()=>{e.states.forEach(t=>n.clearField(e.name,t))}},t.createElement(wl,{variant:"contained",fullWidth:!0},g)),e.states.map((i,o)=>t.createElement(Is,{key:o,title:e.label,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},t.createElement(Ri,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(K_,{field:e,api:n,stateIx:o,skipHandleShowListBoxPopover:!0}))))),b=t.createElement(xh,{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),v=i?b:t.createElement(ry,{container:!0,gap:0,className:oy,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),h.current=e.currentTarget,s(!r))}},m,r&&b,a>-1&&t.createElement(G_,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return i&&a>-1?t.createElement(G_,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):v}const ay="More",ly={item:`${ay}-item`,badge:`${ay}-badge`},cy=(0,sn.Ay)(yr)(({theme:e})=>({[`&.${ly.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${ly.badge}`]:{padding:e.spacing(0,1)}}));function dy({items:e=[],api:n}){const i=Gn(),[o,r]=(0,t.useState)(!1),[s,a]=(0,t.useState)(-1),[l,c]=(0,t.useState)(null),d=(0,t.useRef)(),h=()=>{a(-1)};let u=null;return s>-1&&(u=e[s].states.length>1?t.createElement(sy,{field:e[s],api:n,moreAlignTo:d,onClose:h}):t.createElement(K_,{field:e[s],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:h})),t.createElement(cy,{container:!0,gap:0,className:ly.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},t.createElement(yr,{item:!0},t.createElement(Ri,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(Lr,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),t.createElement(yr,{item:!0},t.createElement(cr,{size:"large"},t.createElement(iy,null))),o&&t.createElement(xh,{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"}}},t.createElement(gs,{dense:!0},e.map((e,i)=>t.createElement(Is,{key:i,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,i)},t.createElement(Ri,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(sy,{field:e,api:n}):t.createElement(K_,{field:e,api:n})))))),u)}function hy({api:e,app:n}){const i=Gn(),[o]=vd(n),[r]=yd(o),[s,a]=(0,t.useState)({items:[],more:[]}),{modalObjectStore:l}=(0,t.useContext)(ld).selectionStore,[c,d]=wd(),[h,u]=(0,t.useState)(0);return(0,t.useEffect)(()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-72,n=Math.floor(t/120);u(n)},[d]),(0,t.useEffect)(()=>{if(!(n&&o&&r&&h))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach(e=>{const i=e.qField;let o=t[i];void 0===o&&(o={name:i,label:e.qDimensionReferences?.find(e=>e.qLabel)?.qLabel||e.qReadableName||i,states:[],selections:[]},t[i]=o),o.states.push(n),o.selections.push(e)})}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach(e=>n(e.qSelectionObject,e.stateName)),Object.keys(t).map(e=>t[e]).filter(e=>!e.selections.some(e=>e.qIsHidden))}(r);a(t=>{const i=e;if((()=>{const{model:e}=l.get(n.id)||{};return"njsListbox"===e?.genericType})()&&i.length+1===t.items.length){const e=t.items.filter(e=>!1===i.some(t=>e.name===t.name))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);i.splice(o,0,e)}let o=[];return h<i.length&&(o=i.splice(h-i.length)),{items:i,more:o}})},[n,o,r,e.isInModal(),h]),t.createElement(yr,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map(n=>t.createElement(yr,{item:!0,key:`${n.states.join("::")}::${n.name}`,style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},n.states.length>1?t.createElement(sy,{field:n,api:e}):t.createElement(K_,{field:n,api:e}))),s.more.length>0&&t.createElement(yr,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},t.createElement(dy,{items:s.more,api:e})))}const uy=e=>ss((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)),gy=e=>ss((e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));function py({api:e,app:n}){const{translator:i}=(0,t.useContext)(ld),[o]=function(e){const[n]=vd(e),[i]=yd(n),[o]=Ad(e),[r,s]=(0,t.useState)(null);return(0,t.useEffect)(()=>{o&&n&&i&&((e,t,n)=>{const i=[...n.qStateNames||[]].map(e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})),o=(t&&t.alternateStates?t.alternateStates.map(e=>e.stateName):[]).join("::"),r=(n.qStateNames||[]).map(e=>e).join("::");o!==r&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(i)}],!0)})(n,i,o)},[o,n,i]),(0,t.useEffect)(()=>{if(!i)return;let e=!1,t=!1,n=!1;[i,...i.alternateStates||[]].forEach(i=>{e=e||i.qSelectionObject&&i.qSelectionObject.qBackCount>0,t=t||i.qSelectionObject&&i.qSelectionObject.qForwardCount>0,n=n||(i.qSelectionObject&&i.qSelectionObject.qSelections||[]).filter(e=>!0!==e.qLocked).length>0}),s({canGoBack:e,canGoForward:t,canClear:n})},[i]),[r,n,i]}(n);return t.createElement(yr,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(yr,{item:!0},t.createElement(cr,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},t.createElement(uy,null))),t.createElement(yr,{item:!0},t.createElement(cr,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},t.createElement(gy,null))),t.createElement(yr,{item:!0},t.createElement(cr,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},t.createElement(_f,null))))}const my=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function fy([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function by(){return my.map(fy).join("")}function vy({app:e}){const n=Gn(),[i]=ub(e);return i?t.createElement(yr,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},t.createElement(yr,{item:!0,style:{borderRight:`1px solid ${n.palette.divider}`}},t.createElement(py,{api:i,app:e})),t.createElement(yr,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},t.createElement(hy,{api:i,app:e}))):null}let Cy;Cy="undefined"!=typeof window?window:"undefined"!=typeof self?self:s.g;let _y=null,yy=null;const Ay=Cy.clearTimeout,wy=Cy.setTimeout,Sy=Cy.cancelAnimationFrame||Cy.mozCancelAnimationFrame||Cy.webkitCancelAnimationFrame,ky=Cy.requestAnimationFrame||Cy.mozRequestAnimationFrame||Cy.webkitRequestAnimationFrame;null==Sy||null==ky?(_y=Ay,yy=function(e){return wy(e,20)}):(_y=function([e,t]){Sy(e),Ay(t)},yy=function(e){const t=ky(function(){Ay(n),e()}),n=wy(function(){Sy(t),e()},20);return[t,n]});class xy extends t.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:n}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},o=parseFloat(i.paddingLeft||"0"),r=parseFloat(i.paddingRight||"0"),s=parseFloat(i.paddingTop||"0"),a=parseFloat(i.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-s-a,d=l.width-o-r,h=this._parentNode.offsetHeight-s-a,u=this._parentNode.offsetWidth-o-r;(e||this.state.height===h&&this.state.scaledHeight===c)&&(t||this.state.width===u&&this.state.scaledWidth===d)||(this.setState({height:h,width:u,scaledHeight:c,scaledWidth:d}),"function"==typeof n&&n({height:h,scaledHeight:c,scaledWidth:d,width:u}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,i,o,r,s,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,o=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;s(this),this.__resizeRAF__&&_y(this.__resizeRAF__),this.__resizeRAF__=yy(function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";i="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){h=c[n],l="-"+h.toLowerCase()+"-",i=d[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){const l=r.ownerDocument,c=Cy.getComputedStyle(r);c&&"static"===c.position&&(r.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const i=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=i:s.appendChild(n.createTextNode(i)),r.appendChild(s)}}(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 h=l.createElement("div");h.className="contract-trigger",r.__resizeTriggers__.appendChild(d),r.__resizeTriggers__.appendChild(h),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),i&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(r)},r.__resizeTriggers__.addEventListener(i,r.__resizeTriggers__.__animationListener__))}r.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:i,disableHeight:o=!1,disableWidth:r=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:a,onResize:l,style:c={},tagName:d="div",...h}=this.props,{height:u,scaledHeight:g,scaledWidth:p,width:m}=this.state,f={overflow:"visible"},b={};let v=!1;return o||(0===u&&(v=!0),f.height=0,b.height=u,b.scaledHeight=g),r||(0===m&&(v=!0),f.width=0,b.width=m,b.scaledWidth=p),s&&(v=!1),(0,t.createElement)(d,{ref:this._setRef,style:{...f,...c},...h},!v&&e(b))}}function Ey({keyboard:e,hovering:t,updateKeyScroll:n,currentScrollIndex:i,isModal:o,constraints:r,selections:s}){return{handleKeyDown:t=>{const{keyCode:n,shiftKey:i=!1}=t.nativeEvent,r=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=o();switch(n){case gg.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(i)Cg(a)||vg(a)||yg(t,e);else if(!(_g(a)||vg(a)||Cg(a)))break;r();break;case gg.ENTER:case gg.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),r();break;case gg.ESCAPE:yg(t,e),s.isActive()&&s.cancel()}},handleOnMouseEnter:()=>{t.current=!0},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current||(()=>{const e=r?.select||r?.active,t=o();return e||t})())return;const{keyCode:s,ctrlKey:a=!1,shiftKey:l=!1}=e;switch(s){case gg.ARROW_UP:n({up:1});break;case gg.ARROW_DOWN:n({down:1});break;case gg.PAGE_UP:n({up:i.stop-i.start});break;case gg.PAGE_DOWN:n({down:i.stop-i.start});break;case gg.HOME:n({scrollPosition:a&&l?"overflowStart":"start"});break;case gg.END:n({scrollPosition:a&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Ly=(0,sn.Ay)("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function Dy({text:e}){const{translator:n}=(0,t.useContext)(ld);return t.createElement(Ly,null,n.get(e))}const Iy={fontSize:"12px"},Ny=(0,sn.Ay)(ir)(({theme:e,isLoading:t})=>({position:"absolute",top:0,left:0,height:48,zIndex:2,background:e.palette.custom.disabledBackground,opacity:1,color:e.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:t?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:e.palette.custom.disabledContrastText},"& i":{padding:"7px"}})),My=(0,sn.Ay)(yr,{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}})),Ty=(0,sn.Ay)(Lr)(({styles:e})=>({...e.header,display:"block",alignItems:"center",paddingRight:"1px"}));function Ry({translator:e,toggleLock:n,keyboard:i,isLoading:o}){const r=e.get("SelectionToolbar.ClickToUnlock");return t.createElement(Ny,{title:r,tabIndex:i.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?t.createElement(Gl,{size:16,variant:"indeterminate",color:"primary"}):t.createElement(Sd,{disableRipple:!0,style:Iy}),!o&&t.createElement(Lr,{fontSize:"14px"},r))}const qy=e=>ss((e=>({...e,shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e)),Oy=e=>ss((e=>({...e,shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e)),Py=e=>ss((e=>({...e,shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e)),By=(0,sn.Ay)(wl)(()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})),Fy=function({iconData:e,translator:n,iconStyle:i,disabled:o,keyboard:r}){if(!e)return;const{icon:s,tooltip:a,onClick:l,onKeyDown:c}=e,d=s,h=n.get(a);return l?t.createElement(By,{variant:"outlined",onClick:l,tabIndex:r.innerTabStops?0:-1,title:h,size:"large",disableRipple:!0,disabled:o,onKeyDown:c,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},t.createElement(d,{style:i})):t.createElement(d,{title:h,size:"large",style:{...i,padding:"7px"}})};function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Wy.apply(null,arguments)}let zy=0;const Vy=function({layout:e,translator:n,styles:i,isRtl:o,showLock:r,showSearchIcon:s,constraints:a,onShowSearch:l,classes:c,containerRect:d,isPopover:h,showToolbar:u,showDetachedToolbarOnly:g,containerRef:p,model:m,selectionState:f,isDirectQuery:b,selections:v,keyboard:C,autoConfirm:_,app:y,disablePortal:A}){const[w,S]=(0,t.useState)(g),[k,x]=(0,t.useState)(e?.qListObject?.qDimensionInfo?.qLocked),[E,L]=(0,t.useState)(!1);(0,t.useEffect)(()=>{x(e?.qListObject?.qDimensionInfo?.qLocked)},[e?.qListObject?.qDimensionInfo?.qLocked]);const D=(0,t.useRef)(null),I=(({dimInfo:e,app:t,selections:n,isPopover:i,active:o,keyboard:r})=>{switch(e.qGrouping){case"H":return{icon:Oy,tooltip:"Listbox.DrillDown",onClick:void 0};case"C":{const s=t&&o,a=()=>{i||n.confirm(),t.getDimension(e.qLibraryId).then(e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")}).catch(()=>null)};return{icon:s?Py:qy,tooltip:"Listbox.Cyclic",onClick:s?a:void 0,onKeyDown:s?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case gg.SPACE:case gg.ENTER:a();break;case gg.TAB:{if(!r.enabled)return;let n;n=e.shiftKey?r.focusSelection():vg(t)||Cg(t),n||yg(e,r)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}})({dimInfo:e?.qListObject?.qDimensionInfo,app:y,selections:v,isPopover:h,active:!a?.active,keyboard:C}),N=r&&k,M=!r&&k,T=s||M||I,R=9-(T?7:0),q=o?9-(T?7:0):4,O=(s?28:0)+(M?28:0)+(I?28:0),P=function({isLocked:e,setLocked:t,settingLockedState:n,model:i,setSettingLockedState:o}){return()=>{const r=new Date;if(r-zy<500)return Promise.resolve();if(n)return()=>{};o(!0),zy=r;const s=e?i.unlock:i.lock;return t(!e),s.call(i,"/qListObjectDef").catch(()=>{t(e)}).finally(()=>{setTimeout(()=>{o(!1)},0)})}}({isLocked:k,setLocked:x,settingLockedState:E,setSettingLockedState:L,model:m}),B=of({layout:e,model:m,translator:n,selectionState:f,isDirectQuery:b,selections:v}),F=k||!r?void 0:[{key:"lock",type:void 0,label:n.get("SelectionToolbar.ClickToLock"),getSvgIconShape:kd,enabled:()=>!E&&!f.selectDisabled()&&vb(e),action:P}],W=a?.active?t.createElement(rb,{title:n.get("Listbox.Search"),size:"large",style:{...Iy,padding:"7px"}}):t.createElement(cr,{onClick:l,tabIndex:-1,title:n.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(rb,{style:Iy}));(0,t.useEffect)(()=>{if(!D.current||!d)return;const e=function({containerRect:e,titleRef:t,iconsWidth:n,paddingLeft:i,paddingRight:o}){const r=i+o;return!!(e.width<(t?.current?.clientWidth??0)+n+r+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:d,titleRef:D,iconsWidth:O,paddingLeft:R,paddingRight:q});S(g||e)},[O,R,q,D.current,g,Object.entries(d||{}).sort().join(",")]);const z=function({isDetached:e,showToolbar:t,containerRef:n,isLocked:i,listboxSelectionToolbarItems:o,extraItems:r,selections:s,keyboard:a,autoConfirm:l,disablePortal:c}){return{autoConfirm:l,isDetached:e,show:t&&!e,popover:{show:t&&e,anchorEl:n.current},extraItems:r,more:{enabled:!i,actions:o,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:c},selections:{show:t,api:s,onConfirm:()=>{a?.focus()},onCancel:()=>{a?.focus()}}}}({isDetached:!h&&w,showToolbar:u,containerRef:p,isPopover:h,isLocked:k,extraItems:F,listboxSelectionToolbarItems:B,selections:v,keyboard:C,autoConfirm:_,disablePortal:A}),V=t.createElement(Xf,Wy({isRtl:o,layout:e},z));if(g)return V;const H=M?t.createElement(Sd,{size:"large",style:{...Iy,padding:"7px"}}):void 0;return t.createElement(My,{item:!0,container:!0,styles:i,isRtl:o,marginY:1,paddingLeft:`${R}px`,paddingRight:`${q}px`,className:"header-container"},N&&t.createElement(Ry,{isLoading:E,translator:n,toggleLock:P,keyboard:C}),T&&t.createElement(yr,{item:!0,container:!0,alignItems:"center",width:O,className:"header-action-container"},H||s&&W,t.createElement(Fy,{iconData:I,iconStyle:Iy,disabled:v.isActive()&&h,translator:n,keyboard:C})),t.createElement(yr,{item:!0,xs:!0,minWidth:0,justifyContent:o?"flex-end":"flex-start",className:c.listBoxHeader},t.createElement(Ty,{variant:"h6",noWrap:!0,ref:D,title:e.title,styles:i},e.title)),t.createElement(yr,{item:!0,display:"flex"},V))},Hy="ListBoxInline",jy={listBoxHeader:`${Hy}-listBoxHeader`,screenReaderOnly:`${Hy}-screenReaderOnly`,listboxWrapper:`${Hy}-listboxWrapper`},Uy=(0,sn.Ay)(yr,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})(({theme:e,containerPadding:t,isGridMode:n,styles:i})=>({...i.background,[`& .${jy.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${jy.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${jy.listboxWrapper}`]:{padding:t},"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus ::-webkit-scrollbar-track":{boxShadow:n?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}));function $y({options:e,layout:n}){const{app:i,direction:o,frequencyMode:r,checkboxes:s,search:a=!0,focusSearch:l=!1,rangeSelect:c=!0,model:d,selections:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,showGray:f=!0,scrollState:b,renderedCallback:v,toolbar:C=!0,isPopover:_=!1,showLock:y=!1,components:A,selectDisabled:w=()=>!1,disablePortal:S=!0}=e,k=Gn(),{translator:x,keyboardNavigation:E,themeApi:L,queryParams:D,constraints:I}=(0,t.useContext)(ld),{checkboxes:N=s}=n||{},M=$_({app:i,themeApi:L,theme:k,queryParams:D,components:A,checkboxes:N}),T=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:i?.layout}),R=(0,t.useRef)(),q=(0,t.useRef)(),[O,P]=wd(),[B,F]=(0,t.useState)(!1),[W,z]=(0,t.useState)(!1),V=(0,t.useRef)(!1),[H,j]=(0,t.useState)({down:0,up:0,scrollPosition:""}),U=e=>j(t=>({...t,...e})),[$,G]=(0,t.useState)({start:0,stop:0}),[K]=ub(i),[Q]=(0,t.useState)(()=>fb({selectDisabled:w})),Y=fg({containerRef:R,enabled:E}),X=(0,t.useCallback)(()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:i,appSelections:K}),[i,K]),Z=n?.qListObject.qDimensionInfo.qError,J=Z&&I.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:ee,handleOnMouseEnter:te,handleOnMouseLeave:ne,globalKeyDown:ie}=(0,t.useMemo)(()=>Ey({keyboard:Y,hovering:V,updateKeyScroll:U,containerRef:R,currentScrollIndex:$,app:i,appSelections:K,constraints:I,isModal:X,selections:h}),[Y,V,U,R,$,i,K,I,X]);(0,t.useEffect)(()=>(document.addEventListener("keydown",ie),()=>{document.removeEventListener("keydown",ie)}),[ie]),(0,t.useEffect)(()=>{!0===a&&z(!0);const e=()=>{F(!0)},t=()=>{F(!1),"toggle"===a&&z(!1)};return _&&(h.isActive()||(h.on("activated",e),h.on("deactivated",t)),F(_)),C&&h&&(h.isModal()||(h.on("activated",e),h.on("deactivated",t)),F(_||h.isActive())),()=>{h&&h.removeListener&&(h.removeListener("activated",e),h.removeListener("deactivated",t))}},[C,h,_]);const{wildCardSearch:oe,searchEnabled:re,autoConfirm:se=!1,layoutOptions:ae={}}=n??{},le=n?.qListObject?.qDimensionInfo?.qLocked,ce=!1!==re&&"toggle"===a&&!le,de=n?.title?.length&&!1!==n?.showTitle,he=C&&!de&&!_,ue=C&&de||_,ge="rtl"===o;if(!(d&&n&&x&&M))return null;const pe=!0===a||"toggle"===a&&W&&!1!==re,me=ae.dense??!1,fe=()=>{z(!W)},be=()=>{"toggle"===a?fe():q.current.focus()},ve=pe&&("toggle"===a||l),Ce="grid"===ae?.dataLayout,_e=function({isGridMode:e,dense:t,height:n,layoutOrder:i}){let o;if(e){let r;r=Jg({isGridMode:e,dense:t})>n?"0px":"2px",o="row"===i?`${r} 4px`:`${r} 6px ${r} 4px`}else o=void 0;return o}({isGridMode:Ce,dense:me,height:R.current?.clientHeight,layoutOrder:ae.layoutOrder});Z&&v?.();const ye=ue?30:0,Ae=t.createElement(Vy,{app:i,showSearchIcon:ce,onShowSearch:fe,isPopover:_,showToolbar:B,isDirectQuery:T,autoConfirm:se,showDetachedToolbarOnly:he,layout:n,translator:x,styles:M,isRtl:ge,showLock:y,constraints:I,classes:jy,containerRect:P,containerRef:R,model:d,selectionState:Q,selections:h,keyboard:Y,disablePortal:S});return t.createElement(t.Fragment,null,he&&Ae,t.createElement(Uy,{className:"listbox-container",container:!0,tabIndex:Y.enabled?-1:void 0,direction:"column",gap:0,containerPadding:_e,styles:M,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:ee,onMouseEnter:te,onMouseLeave:ne,ref:e=>{R.current=e,O(e)},isGridMode:Ce,"aria-label":Y.active?x.get("Listbox.ScreenReaderInstructions"):""},ue&&Ae,t.createElement(yr,{item:!0,container:!0,direction:"column",height:"100%",minHeight:ye,role:"region","aria-label":x.get("Listbox.ResultFilterLabel")},t.createElement(yr,{item:!0},t.createElement(hb,{ref:q,selections:h,selectionState:Q,model:d,dense:me,keyboard:Y,visible:pe,search:a,autoFocus:ve,beginSelectionOnFocus:!_,wildCardSearch:oe,searchEnabled:re,direction:o,hide:ce&&fe,styles:M})),t.createElement(yr,{item:!0,xs:!0,className:jy.listboxWrapper},Z?t.createElement(Dy,{text:J}):t.createElement(xy,null,({height:e,width:s})=>t.createElement(Zm,{model:d,app:i,constraints:I,layout:n,selections:h,selectionState:Q,direction:o,frequencyMode:r,rangeSelect:c,checkboxes:N,height:e,width:s,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,keyboard:Y,showGray:f,scrollState:b,keyScroll:{state:H,reset:()=>j({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:$,set:G},renderedCallback:v,onCtrlF:be,isModal:X,styles:M}))))))}const Gy=t.memo($y),Ky=function({options:e={}}){const{model:n}=e,[i]=yd(n);return t.createElement(Gy,{options:e,layout:i})};const Qy={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 Yy(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 Xy=(e={})=>{const{__DO_NOT_USE__:t={},...n}=e;return{...n,update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1,...t}},Zy=(0,t.forwardRef)(({app:e,fieldIdentifier:n,qId:i,stateName:o,element:r,initialOptions:s,renderedCallback:a},l)=>{const[c,d]=(0,t.useState)(s),{isExistingObject:h,hasExternalSelectionsApi:u}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:c});h||Object.assign(c,{frequencyMode:Yy(c.frequencyMode)});const[g,p]=(0,t.useState)(0);(0,t.useEffect)(()=>{if(g)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(g+1)},[h,u]);const m=h?function({app:e,qId:n,options:i={}}){const[o,r]=(0,t.useState)(),[s]=md(),{sessionModel:a}=i,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(i).filter(e=>l.includes(e));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,t.useEffect)(()=>{let t=!1,i=()=>{};return async function(){const o=await Promise.resolve(a||async function(t){return s.get(t)||await e.getObject(t)}(n));if(!t){if(!s.get(o.id)){s.set(o.id,o);const e=()=>{s.clear(o.id)};o.once("closed",e),i=()=>{o.removeListener("closed",e)}}r(o)}}(),()=>{t=!0,i()}},[]),o}({app:e,qId:i,options:c}):function({app:e,fieldIdentifier:n,stateName:i,options:o={}}){const[r,s]=(0,t.useState)(""),[a,l]=(0,t.useState)(!0),[c,d]=(0,t.useState)(),[h,u]=(0,t.useState)(),g=o.title??h;let{histogram:p=!1,frequencyMode:m="N"}=o;r&&r.failedToFetchFieldDef&&(p=!1,m="N"),(0,t.useEffect)(()=>{const t=p||"N"!==m;n.qLibraryId&&t?async function(){try{const t=await e.getDimension(n.qLibraryId),i=await t.getLayout();u(i.qDim.title),"N"===i.qDim.qGrouping?s(i.qDim.qFieldDefs?i.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),u(n))},[]);const{dense:f,checkboxes:b,listLayout:v,properties:C={}}=o,_={dense:f};"horizontal"===v&&(_.dataLayout="grid",_.layoutOrder="column",_.maxVisibleColumns={auto:!0},_.maxVisibleRows={auto:!1,maxRows:1});const y=(0,t.useRef)();y.current||(y.current=by());const A=Oc()(!0,{},Qy,{qInfo:{qId:y.current},qListObjectDef:{qStateName:i,qFrequencyMode:p&&"N"===m?"V":m},histogram:p,checkboxes:b,layoutOptions:_,title:g});let w;if(Oc()(!0,A,C),n.qLibraryId?(A.qListObjectDef.qLibraryId=n.qLibraryId,w=n.qLibraryId):(A.qListObjectDef.qDef.qFieldDefs=[n],w=n),"P"!==m&&p)if(r?.multiFieldDim)A.frequencyMax="fetch";else{const e=n.qLibraryId?r:w;A.frequencyMax={qValueExpression:Ym(e)}}const[S]=fd(A,a?null:e,w,i);return(0,t.useEffect)(()=>{S&&d(S)},[S]),c}({app:e,fieldIdentifier:n,stateName:o,options:c}),f=(0,t.useRef)(r),b=u?c.selectionsApi:mb(e,m,[f,".njs-action-toolbar-more",".njs-action-toolbar-popover"],c)[0],v=(0,t.useMemo)(()=>({...c,selections:b,model:m,app:e,renderedCallback:a}),[c,b,m,e]);return(0,t.useImperativeHandle)(l,()=>({setOptions:e=>d(e)}),[]),b&&m?t.createElement(Ky,{options:v}):null}),Jy={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function eA({app:e,fieldIdentifier:n,stateName:i,element:o,options:r={}}){const[s,a]=(0,t.useState)(!!r.show);return t.createElement(G_,{show:s,app:e,alignTo:{current:o},anchorOrigin:r.anchorOrigin,transformOrigin:r.transformOrigin,close:()=>{a(!1),r.onPopoverClose&&r.onPopoverClose()},fieldName:n,stateName:i,autoFocus:r.autoFocus,components:r.components,sortCriteria:r.sortCriteria,direction:r.direction})}function tA(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function nA(e,t){let n=0;for(let i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n}function iA({dc:e,def:t,properties:n}){e.qDimensions=e.qDimensions||[],e.qMeasures=e.qMeasures||[],e.qInterColumnSortOrder=e.qInterColumnSortOrder||[],e.qInitialDataFetch=e.qInitialDataFetch||[],e.qColumnOrder=e.qColumnOrder||[],e.qExpansionState=e.qExpansionState||[];const i=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const r="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return r.qDef.cId=r.qDef.cId||by(),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),tA(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return nA(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const r="string"==typeof n?(e=>({qDef:{qDef:e}}))(n):{...n,qDef:n.qDef||{}};r.qDef.cId=r.qDef.cId||by(),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),tA(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];nA(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,i,n)},maxDimensions:()=>t.dimensions.max(e.qMeasures.length),maxMeasures:()=>t.measures.max(e.qDimensions.length),canAddDimension:()=>e.qDimensions.length<o.maxDimensions(),canAddMeasure:()=>e.qMeasures.length<o.maxMeasures()};return o}function oA({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const i=n,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(n){const o="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return o.qDef.cId=o.qDef.cId||by(),o.qDef.qSortCriterias=e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(o).forEach(t=>{e[t]=o[t]}),t.dimensions.added(o,i),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,i,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const rA=e=>({qDef:{qFieldDefs:[e]}});function sA({children:e,halo:t}){const n={async addDimension(n){const i=(e=>{let t;return t="string"==typeof e?Oc()(!0,{},Qy,{qListObjectDef:rA(e)}):e.qListObjectDef?Oc()(!0,{},Qy,e):Oc()(!0,{},Qy,{qListObjectDef:e}),t})(n),o=i.qListObjectDef;if(o.qDef.cId=o.qDef.cId||by(),!i.title)if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),n=await e.getProperties();n.qDim.qLabelExpression?i.title={qStringExpression:{qExpr:n.qDim.qLabelExpression}}:i.title=n.qDim.title}else i.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:i,qChildren:[]})},addMeasure(){}};return n}function aA(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 lA({sn:e,properties:t,fields:n,children:i},o){if(!n.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")?oA:e.match("/qChildListDef")?sA:iA}(s),d=c({dc:l,def:r,properties:t,children:i,halo:o});for(let e=0;e<n.length;++e){const t=n[e];"measure"===aA(t)?await d.addMeasure(t):await d.addDimension(t)}}const cA={getValue:(e,t,n)=>{if(null==e||null==t)return n;const i=t.split(".");let o=e;for(let e=0;e<i.length;++e){const t=i[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const i=t.split("."),o=i[i.length-1];let r=e;for(let e=0;e<i.length-1;++e){const t=i[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+i[e+1])?{}:[]),r=r[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?r[o]=n:delete r[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object},dA=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let i=0;i<t.length;i++){const o=e.indexOf(t[i]);if(n>o)return!1;n=o}return!0}return!1},hA=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},uA=function(e,t){let n,i=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i},gA=function(e,t,n){if(n<0)throw Error("newIndex cannot be a negative value!");if(n>=e.length){let t=n-e.length+1;for(;t;)e.push(void 0),t--}const i=e.at(t);e.splice(t,1),e.splice(n,0,i)},pA=2**53-1;function mA(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function fA(e,t){const n=Oc()(!0,{},t,e);return cA.getValue(n,"qOtherTotalSpec.qOtherCounted")||cA.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),cA.getValue(n,"qOtherTotalSpec.qOtherLimit")||cA.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function bA(e,t){return Oc()(!0,{},t,e)}function vA(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const CA={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===cA.getValue(e,t)&&cA.setValue(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:mA,importCommonProperties:function(e,t,n){const i="masterobject"===cA.getValue(t,"properties.qInfo.qType")?"masterobject":cA.getValue(n,"qInfo.qType");cA.setValue(e,"qInfo.qType",i),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,i){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=i},createDefaultDimension:fA,createDefaultMeasure:bA,resolveValue:vA,getHypercubePath:function(e){const t=cA.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function({exportFormat:e,newHyperCubeDef:t}){const n=e.data[0],i=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==i)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==i;)o<i?(hA(t.qInterColumnSortOrder,o),++o):(--o,uA(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach(o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(i.qLayoutExclude.quarantine=Oc()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?cA.setValue(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||mA(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]}),i=Oc()(!0,{},t,i),null===i.components&&(i.components=[]),i},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],i=t.dimensions||{max:0},o=t.measures||{max:0},r=vA(o.max,n.dimensions.length,pA),s=vA(o.min,n.dimensions.length,0);return{maxDimensions:vA(i.max,r,pA),minDimensions:vA(i.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>i&&i>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>n||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!i&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:r}){const s=e.data[0];r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.qHyperCubeDef||(r.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>t&&t>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&s.dimensions.length&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)i.qDimensions.length<t?i.qDimensions.push(fA(r.dimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(fA(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(fA(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)i.qDimensions.length<n?i.qDimensions.push(fA(r.excludedDimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(fA(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)i.qMeasures.length<t?i.qMeasures.push(bA(r.measures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(bA(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(bA(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)i.qMeasures.length<n?i.qMeasures.push(bA(r.excludedMeasures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(bA(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=cA.getValue(e,n||"").qHyperCubeDef,o=[...i.qDimensions];i.qDimensions=[],o.forEach(n=>{i.qDimensions.push(n),t.dimensions.added(n,e)})}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.measures&&"function"==typeof t.measures.added){const i=cA.getValue(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach(n=>{i.qMeasures.push(n),t.measures.added(n,e)})}}},_A={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const n=function(e=1){const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),i=e.qProperty,o=cA.getValue(i,t||""),r=o.qHyperCubeDef,s=n.data[0];if(r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),s.dimensions.push(...r.qDimensions),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...r.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...r.qMeasures),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...r.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=r.qInterColumnSortOrder.concat(),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();dA(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.qLayoutExclude,Object.keys(i).forEach(e=>{n.properties[e]=i[e]}),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.disabled&&(Object.keys(i.qLayoutExclude.disabled).forEach(e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=i.qLayoutExclude.disabled[e])}),delete i.qLayoutExclude.disabled),i.qLayoutExclude.changed&&(CA.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&!cA.isEmpty(i.qLayoutExclude.quarantine)||delete i.qLayoutExclude,n}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const r={qChildren:[]},s=CA.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=cA.getValue(t,o||"").qHyperCubeDef,l=cA.getValue(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u}=CA.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=CA.getDefaultDimension(),defaultMeasure:p=CA.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,CA.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u})&&CA.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u,newHyperCubeDef:l}),CA.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),CA.addDefaultMeasures({exportFormat:e,maxMeasures:h,minMeasures:u,newHyperCubeDef:l,defaultMeasure:p}),CA.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),CA.copyPropertyIfExist("qMaxStackedCells",a,l),CA.copyPropertyIfExist("qNoOfLeftDims",a,l),CA.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),CA.copyPropertyOrSetDefault("qMode",a,l,"S"),CA.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),CA.copyPropertyOrSetDefault("qSortbyYValue",a,l),CA.copyPropertyOrSetDefault("qIndentMode",a,l),CA.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),CA.importCommonProperties(s,e,t),CA.updateDimensionsOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),CA.updateMeasuresOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),r.qProperty=s,r}(e)},yA=e=>cA.getValue(e,"data.targets.0.propertyPath"),AA=async({halo:e,model:t,cellRef:n,newType:i,properties:o,viewDataMode:r=!1})=>{const s=o?{qProperty:o}:await t.getFullPropertyTree(),a=n.current.getQae(),l=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return _A.exportProperties})(yA(e)))(a);if(!l)throw new Error("Source chart does not support conversion");const c=await(async({halo:e,name:t,version:n})=>{const{types:i}=e;return await i.get({name:t,version:n}).supernova()})({halo:e,name:i}),d=c.qae,h=(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return _A.importProperties})(yA(e)))(d);if(!h)throw new Error("Target chart does not support conversion");return h({exportFormat:l({propertyTree:s,hypercubePath:CA.getHypercubePath(a),viewDataMode:r}),initialProperties:{qInfo:{qType:i},visualization:i,...cA.getValue(d,"properties.initial",{})},dataDefinition:cA.getValue(d,"data.targets.0.",{}),hypercubePath:CA.getHypercubePath(d),viewDataMode:r})},wA={hypercube:_A};function SA(e){return(0,ln.Ay)("MuiIcon",e)}(0,an.A)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kA=["baseClassName","className","color","component","fontSize"],xA=(0,sn.Ay)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,Vn.A)(n.color)}`],t[`fontSize${(0,Vn.A)(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),EA=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium"}=n,l=(0,Zt.A)(n,kA),c=(0,Jt.A)({},n,{baseClassName:i,color:r,component:s,fontSize:a}),d=(e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root","inherit"!==t&&`color${(0,Vn.A)(t)}`,`fontSize${(0,Vn.A)(n)}`]};return(0,tn.A)(o,SA,i)})(c);return(0,dn.jsx)(xA,(0,Jt.A)({as:s,className:(0,en.A)(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))});EA.muiName="Icon";const LA=EA,DA=e=>ss((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 IA({d:e}){const n=Gn();let i="inherit",o=n.palette.success.main;e.missing?o=n.palette.warning.main:e.error&&(i="error",o=n.palette.error.main);const r={color:o},s=t.createElement(Lr,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},t.createElement(LA,null,e.missing||e.error?t.createElement(DA,{style:r}):t.createElement(Fh,{style:r})));return t.createElement(yr,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(yr,{item:!0},s),t.createElement(yr,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(Lr,{noWrap:!0,component:"p"},t.createElement(Lr,{component:"span",variant:"subtitle2",color:i},e.description),t.createElement(Lr,{component:"span"}," "),t.createElement(Lr,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function NA({data:e}){const n=Gn();return t.createElement(yr,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map((e,i)=>{const o=e.descriptions.map((e,n)=>t.createElement(IA,{d:e,key:n}));return o.length>0&&t.createElement(yr,{container:!0,item:!0,key:i,direction:"column",style:{paddingBottom:n.spacing(2)}},t.createElement(Lr,{noWrap:!0,key:i,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)}))}function MA({title:e="Error",message:n="",data:i=[]}){return t.createElement(yr,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(yr,{item:!0},t.createElement(DA,{style:{fontSize:"38px"}})),t.createElement(yr,{item:!0},t.createElement(Lr,{variant:"h6",align:"center","data-tid":"error-title"},e)),t.createElement(yr,{item:!0},t.createElement(Lr,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),t.createElement(NA,{data:i}))}function TA(){return TA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},TA.apply(null,arguments)}const RA="Progress",qA={root:`${RA}-root`,front:`${RA}-front`,back:`${RA}-back`},OA=(0,sn.Ay)("div")(({theme:e})=>({[`&.${qA.root}`]:{position:"relative",display:"inline-block"},[`& .${qA.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${qA.back}`]:{color:e.palette.divider}})),PA={small:16,medium:32,large:64,xlarge:128};function BA({size:e="medium",...n}){const i=PA[e];return t.createElement(OA,{className:qA.root},t.createElement(Gl,TA({variant:"determinate",value:100,className:qA.back,size:i,thickness:3},n)),t.createElement(Gl,TA({variant:"indeterminate",disableShrink:!0,className:qA.front,size:i,thickness:3},n)))}function FA(){return FA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},FA.apply(null,arguments)}const WA={stripes:"LongRunningQuery-stripes"},zA=(0,sn.Ay)(yr)(()=>({[`& .${WA.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 VA({cancel:e,translator:n,...i}){return t.createElement(t.Fragment,null,t.createElement(zA,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(yr,{item:!0},t.createElement(BA,null)),t.createElement(yr,{item:!0},t.createElement(Lr,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),t.createElement(yr,FA({item:!0},i),t.createElement(wl,{variant:"contained",onClick:e},n.get("Cancel"))))}function HA({retry:e,translator:n,...i}){return t.createElement(t.Fragment,null,t.createElement(yr,{item:!0},t.createElement(DA,{style:{fontSize:"38px"}})),t.createElement(yr,{item:!0},t.createElement(Lr,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),t.createElement(yr,{item:!0},t.createElement(wl,FA({variant:"contained",onClick:e},i),n.get("Retry"))))}function jA({canCancel:e,canRetry:n,api:i}){const{translator:o}=(0,t.useContext)(ld);return t.createElement(yr,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:WA.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&t.createElement(VA,{cancel:i.cancel,translator:o,className:WA.cancel}),n&&t.createElement(HA,{retry:i.retry,translator:o,className:WA.retry}))}function UA(){return t.createElement(yr,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(BA,{size:"large"}))}const $A={width:0,height:0},GA="Header",KA={containerStyle:`${GA}-containerStyle`,containerTitleStyle:`${GA}-containerTitleStyle`},QA=(0,sn.Ay)(yr)(({theme:e})=>({[`&.${KA.containerStyle}`]:{flexGrow:0},[`&.${KA.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}})),YA=function({id:e,layout:n,sn:i,anchorEl:o,hovering:r,focusHandler:s,titleStyles:a={},isRtl:l,translator:c}){const d=n.showTitles&&!!n.title,h=n.showTitles&&!!n.subtitle,u=n.qSelectionInfo&&n.qSelectionInfo.qInSelections,[g,p]=(0,t.useState)([]);(0,t.useEffect)(()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions(e=>{p([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])})},[i]);const m=[KA.containerStyle,...d||h?[KA.containerTitleStyle]:[]],f=r||u,b=t.createElement(Xf,{show:!1,selections:{show:u,api:i.component.selections,onKeyDeactivate:s.refocusContent},actions:g,popover:{show:f,anchorEl:o},focusHandler:s,layout:n,isRtl:l});return t.createElement(QA,{item:!0,container:!0,wrap:"nowrap",className:m.join(" ")},t.createElement(yr,{item:!0,zeroMinWidth:!0,xs:!0,dir:l?"rtl":"ltr"},t.createElement(yr,{container:!0,wrap:"nowrap",direction:"column"},d?t.createElement(Fm,{title:n.title},t.createElement(Lr,{id:`${e}_title`,variant:"h6",noWrap:!0,className:"njs-cell-title",style:a.main},n.title)):t.createElement("div",{id:`${e}_title`,style:$A,"aria-label":c.get("Accessibility.Object.NoTitle")}),h&&t.createElement(Fm,{title:n.subtitle},t.createElement(Lr,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:a.subTitle},n.subtitle)))),t.createElement(yr,{item:!0},b))},XA=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude");return e.filter(e=>!1!==e.showInFooter).map(e=>{let i="";switch(e.type){case"search":i+=(e=>{let t="",n="";const i=e.options?.mode;switch(i){case"beginning_of_word":t="*^",n="*";break;case"ends_with":t="*";break;case"starts_with":n="*";break;case"matches_exactly":break;default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case"condition":i+=(e=>{const{options:t}=e,n="general"===t?.mode,i="fixed_value"===t?.modifier?.type,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!i&&(!t.firstValue?.aggregator||!t.firstValue?.field)||i&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let r,s,a="=";n&&i?(r=`${t.conditionField?.aggregator}(${Qm(t.conditionField?.field)})`,s=`${t.firstValue?.fixedValue}`):!n&&i?(r="",s=`${t.firstValue?.fixedValue}`,a=""):n||i?(r=`${t.conditionField?.aggregator}(${Qm(t.conditionField?.field)})`,s=`${t.firstValue?.aggregator}(${Qm(t.firstValue?.field)})`):(r=`${Qm(e.field)}`,s=`${t.firstValue?.aggregator}(total ${Qm(t.firstValue?.field)})`);const l=`${a}${r}${o[0]}${s}`;let c="";if(o.length>1){if(!i&&(!t.secondValue?.aggregator||!t.secondValue?.field)||i&&!t.secondValue?.fixedValue)return"";let e,s;n&&i?(e=`${t.secondValue?.fixedValue}`,s=` and ${r}`):!n&&i?(e=`${t.secondValue?.fixedValue}`,s=""):n||i?(e=`${t.secondValue?.aggregator}(${Qm(t.secondValue?.field)})`,s=` and ${r}`):(e=`${t.secondValue?.aggregator}(total ${Qm(t.secondValue?.field)})`,s=` and ${r}`),c=`${s}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case"clear_selection":i+=t.get("Object.FilterLabel.All");break;default:i+=e.options?.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==i&&(i=i.replace(/^"|"$/g,""),e.exclude&&(i=`${n} ${i}`)),{field:e.field,label:i}}).filter(e=>""!==e.label)},ZA=(e,t)=>XA(e,t).map(e=>`${e.field}: ${e.label}`).join("; "),JA=e=>ss((e=>({...e,shapes:[{type:"path",attrs:{d:"M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z"}}]}))(e));function ew({styles:e,children:n}){return t.createElement(Lr,{noWrap:!0,variant:"body2",style:{...e,fontStyle:"italic"}},n)}const tw=function({layout:e,translator:n,filtersFootnoteString:i,footerStyle:o,isRtl:r}){const s=XA(e?.filters??[],n),a={color:o?.color,fontFamily:o?.fontFamily,fontSize:o?.fontSize,fontWeight:o?.fontWeight};return t.createElement(Fm,{title:i},t.createElement(yr,{container:!0,wrap:"nowrap",sx:{backgroundColor:o?.backgroundColor,padding:o?.padding,borderTop:o?.borderTop},"data-testid":"filters-footnote",justifyContent:r?"flex-end":"flex-start"},t.createElement(yr,{item:!0,display:"flex"},t.createElement(JA,{style:{fontSize:"12px",color:o.color,margin:"auto"}}),t.createElement(ew,{styles:{...a,marginLeft:"2px"}},n.get("Object.FiltersApplied"),"  ")),t.createElement(yr,{item:!0,display:"flex"},s.map(e=>t.createElement(yr,{container:!0,wrap:"nowrap",key:`${e.field}-${e.label}`},t.createElement(ew,{styles:{...a,fontWeight:"bold"}},`${e.field}:`),t.createElement(ew,{styles:a},"   ",e.label,"  "))))))},nw="Footer-itemStyle",iw=(0,sn.Ay)(yr)(()=>({[`& .${nw}`]:{minWidth:0,width:"100%"}})),ow="njs-cell-footer",rw=function({layout:e,titleStyles:n={},translator:i,flags:o,isCardTheme:r,isRtl:s}){const a=n.footer,l=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,c=ZA(e?.filters??[],i),d=!e?.footnote&&l&&c,h=o?.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),u=r?"1px":"6px";return e&&e.showTitles&&(e.footnote||d)?t.createElement(iw,{container:!0},t.createElement(yr,{item:!0,className:nw,"data-testid":ow,sx:{paddingTop:e=>h?u:e.spacing(1)}},e.footnote&&t.createElement(Fm,{title:e.footnote},t.createElement(Lr,{noWrap:!0,variant:"body2",className:ow,style:a,align:s?"right":"left"},e.footnote)),d&&t.createElement(tw,{layout:e,translator:i,filtersFootnoteString:c,footerStyle:a,isRtl:s}))):null};class sw{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 aw=function({sn:e,snOptions:n,snPlugins:i,layout:o,appLayout:r,halo:s,cellId:a}){const{component:l}=e,{theme:c,language:d,constraints:h,interactions:u,keyboardNavigation:g}=(0,t.useContext)(ld),[p]=(0,t.useState)(()=>new sw),[m,f]=(0,t.useState)(!1),[b,v]=(0,t.useState)(0),[C,_,y]=wd(),[A,w]=(0,t.useState)(null),S=(0,t.useCallback)(e=>{e&&w(e)},[]);return(0,t.useEffect)(()=>{if(A)return l.created({options:n}),l.mounted(A),f(!0),()=>{p.stop(),l.willUnmount()}},[A,l]),(0,t.useEffect)(()=>{m&&A&&_&&(!l.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||p.schedule(()=>{const t=[];return h.passive||t.push("passive"),h.active||t.push("interact"),h.select||t.push("select"),h.edit||t.push("edit"),s.app&&s.app.session&&t.push("fetch"),Promise.resolve(l.render({layout:o,options:n,plugins:i,embed:s.public.nebbie,context:{constraints:h,interactions:u,theme:s.public.theme,appLayout:r,keyboardNavigation:g,...l.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:t}}})).then(e=>{!1!==e&&(0===b&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),v(b+1))})}))},[_,n,i,A,y,o,r,c,d,h,u,m,g]),t.createElement("div",{ref:C,"data-render-count":b,style:{position:"relative",height:"100%"},className:"njs-viz"},t.createElement("div",{ref:S,id:`${a}_content`,style:{position:"absolute",width:"100%",height:"100%"}}))},lw={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart"};class cw extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const dw=["action-button","sn-nav-menu","filterpane","sn-shape"],hw=[...dw,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],uw=e=>-1===dw.indexOf(e),gw=e=>uw(e)?"10px 10px 0":"10px 0 0",pw=new Map;[["auto-chart","Object.AutoChart"],["dummy-chart","Dummy"],["barchart","Object.BarChart"],["combochart","Object.ComboChart"],["container","Object.Container"],["distributionplot","Object.DistributionPlot"],["boxplot","Object.BoxPlot"],["filterpane","Object.FilterPane"],["gauge","Object.Gauge"],["histogram","Object.Histogram"],["kpi","Object.Kpi"],["linechart","Object.LineChart"],["listbox","Object.Listbox"],["piechart","Object.PieChart"],["pivot-table","Object.PivotTable"],["map","Object.Map"],["scatterplot","Object.ScatterPlot"],["sn-table","Object.StraightTable"],["text-image","Object.TextImage"],["treemap","Object.Treemap"],["waterfallchart","Object.WaterfallChart"],["mekkochart","Object.MekkoChart"],["action-button","Object.ActionButton"],["sn-nav-menu","Object.NavMenu"],["bulletchart","Object.BulletChart"],["sn-nlg-chart","Object.NlgChart"],["sn-analysis-autochart","Common.AnalysisTypes"],["sn-tabbed-container","Object.TabContainer"],["qlik-sankey-chart-ext","Object.SankeyChart"],["qlik-radar-chart","Object.RadarChart"],["qlik-funnel-chart-ext","Object.FunnelChart"],["sn-grid-chart","Object.GridChart"],["sn-layout-container","Object.LayoutContainer"]].forEach(([e,t])=>{pw.set(e,t)});const mw=pw,fw=(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 bw({delay:e=750}){const[n,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{const t=setTimeout(()=>i(!0),e);return()=>clearTimeout(t)},[]),n?t.createElement(UA,null):null}const vw=e=>!e.qError||7005===e.qError.qErrorCode,Cw=(e,t,n,i,o)=>[...Array(e).keys()].map(e=>{const r=!(!t||!t[e]),s=r&&t[e].qError&&7005===t[e].qError.qErrorCode,a=r&&!s&&t[e].qError,l=s&&t[e].qCalcCondMsg,c=`${a?i:s?l||o:r&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}}),_w=e=>e&&(Array.isArray(e)?e:[e])||[],yw=(e,t,n,i)=>{const o=i.dimensions.min(),r=i.measures.min(),s=i.resolveLayout(t),a=Cw(o,_w(s.qDimensionInfo||s.qItems),e=>i.dimensions.description(n,e),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=Cw(r,_w(s.qMeasureInfo),e=>i.measures.description(n,e),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:a,reqMeasErrors:l}};function Aw(){return new(ec())}const ww=(0,t.forwardRef)(({halo:e,model:n,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,currentId:a,emitter:l,navigation:c,onError:d},h)=>{const{app:u,types:g}=e,{nebbie:p}=e.public,{theme:m,translator:f,language:b,keyboardNavigation:v,externalFocusManagement:C,disableCellPadding:_=!1,navigation:y,queryParams:A}=(0,t.useContext)(ld),[w]=(0,t.useState)(l||Aw),S=Gn(),[k,x,E]=wd(),[L,D]=(0,t.useReducer)(fw,{loading:!1,loaded:!1,longRunningQuery:!1,error:(I=r)?{title:I.message}:null,sn:null,visualization:null});var I;const[N,M]=(0,t.useState)(n),[T,{validating:R,canCancel:q,canRetry:O},P]=yd(N),[B]=Ad(u),[F,W,z]=wd(),[V,H]=(0,t.useState)(i),[j,U]=(0,t.useState)(o),$=`njs-cell-${a}`,[G]=mb(u,N,[`#${$}`,".njs-action-toolbar-popover"]),[K,Q]=(0,t.useState)(!1),Y=(0,t.useRef)({enter:null,leave:null}),{titleStyles:X,bgColor:Z,bgImage:J,border:ee,borderRadius:te,boxShadow:ne}=(({layout:e,theme:n,app:i,themeName:o,disableThemeBorder:r,queryParams:s})=>(0,t.useMemo)(()=>{if(e&&n){const o=e.components?e.components.find(e=>"general"===e.key):null,a=(t=e.visualization,lw[t.toLowerCase()]?lw[t.toLowerCase()]:t),l={main:H_(o,"main",n,a),footer:H_(o,"footer",n,a),subTitle:H_(o,"subTitle",n,a)},c=z_(o,n,a),d=W_(o,i,s),h=function(e,t,n,i){const o=P_(e?.borderColor,"","borderColor",t,n);let r=e?.borderWidth;return!r&&!i&&(r=O_("","borderWidth",t,n)),r&&o?`${r} solid ${o}`:void 0}(o,n,a,r),u=function(e,t,n){return e?.borderRadius||O_("","borderRadius",t,n)}(o,n,a);return{titleStyles:l,bgColor:c,bgImage:d,border:h,borderRadius:u,boxShadow:V_(o,n,a)}}var t;return{}},[e,n,i,o,r]))({layout:T,theme:e.public.theme,app:e.app,themeName:m,disableThemeBorder:V?.disableThemeBorder,queryParams:A}),ie=!("rtl"!==V?.direction),oe=(0,t.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,t.useEffect)(()=>{gb(oe.current),oe.current.blurCallback=t=>{oe.current.onBlurHandler?oe.current.onBlurHandler(t):(e.root.toggleFocusOfCells(),t&&z&&z.focus())},oe.current.refocusContent=()=>{L.sn.component&&"function"==typeof L.sn.component.focus&&L.sn.component.focus()}},[]),(0,t.useEffect)(()=>{if(r)return void s();if(!B||!T)return;if(L.visualization===T.visualization&&L.sn)return void(async e=>{const[t,n]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,r=0,s=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],h=d.dimensions.min(),u=d.measures.min(),g=d.resolveLayout(n),p=_w(g.qDimensionInfo||g.qItems).filter(vw),m=_w(g.qMeasureInfo).filter(vw);if(o+=h,r+=u,(p.length<h||m.length<u)&&(i=!0),g.qError){s=!0,a=7005===g.qError.qErrorCode;const t=a&&g.qCalcCondMsg?g.qCalcCondMsg:a?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:i,aggMinD:o,aggMinM:r,hasLayoutErrors:s,layoutErrors:l}})(e,n,t),c=[],d=[];let h=null;for(let r=0;r<n.length;++r){const s=n[r];if(!a&&o){const n=h||await i.getProperties();h=n;const o=yw(e,t,n,s);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const u=c.filter(e=>!(e.missing||e.error)).length,g=e.get("Visualization.Incomplete.Dimensions",[u,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]}],b=a?l:f;return[a||o,{title:a?l[0].title:e.get("Visualization.Incomplete"),data:b}]})(f,T,e.generator.qae.data,N);D(t?{type:"ERROR",error:n}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const i=e&&e.component&&e.component.selections;if(i&&i.id&&n.id&&i.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!i.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;i.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||i.isModal()&&i.noModal()}})({sn:L.sn,layout:T,model:N})})(L.sn);const e=g.getSupportedVersion(T.visualization,T.version);return(async(e,t)=>{D({type:"LOADING"}),await(async({dispatch:e,types:t,visualization:n,version:i,model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c,onMount:d,navigation:h})=>{try{const u=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:i}),g=u.create({model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c,navigation:h});g&&(e({type:"LOADED",sn:g,visualization:n}),d())}catch(t){e(i?{type:"ERROR",error:{title:t.message,errorObject:t}}:{type:"ERROR",error:{title:`Could not find a version of '${n}' that supports current object version. Did you forget to register ${n}?`}}),d()}})({dispatch:D,types:g,visualization:e,version:t,model:N,app:u,selections:G,nebbie:p,focusHandler:oe.current,emitter:w,onMount:s,navigation:c??y})})(T.visualization,e),()=>{}},[g,L.sn,N,G,T,B,b]),(0,t.useEffect)(()=>{if(!R)return;const e=setTimeout(()=>D({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(e)},[R]),(0,t.useImperativeHandle)(h,()=>({getQae:()=>L.sn.generator.qae,getExtensionDefinition:()=>L.sn.generator.definition.ext,support(e,t,n){if(T&&L.loaded&&!L.error){const i=t||L.sn.generator.definition.ext?.support;if(i)return function(e,t,n){const i=t[e];return"function"==typeof i?i.call(null,n):"boolean"==typeof i&&i}(e,i,n||T)}return!1},toggleFocus(e){"function"==typeof L.sn.component.focus&&(e?L.sn.component.focus():L.sn.component.blur())},setOnBlurHandler(e){oe.current.onBlurHandler=e},setSnOptions:H,setSnPlugins:U,setModel:M,getImperativeHandle:()=>L.sn?.component&&"function"==typeof L.sn.component.getImperativeHandle?L.sn.component.getImperativeHandle():{},onContextMenu:(...e)=>L.sn?.component.onContextMenu(...e),async takeSnapshot(){const{width:e,height:t}=x;let n=JSON.parse(JSON.stringify(T));return"function"==typeof L.sn.component.setSnapshotData&&(n=await L.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:f.language(),theme:S.name,appLayout:B,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)}}),[L.sn,W,x,T,S.name,B]);let re=null;L.loading&&!L.longRunningQuery?re=t.createElement(bw,null):L.error?(d&&d(L.error.errorObject?L.error.errorObject:new cw(L.error.title)),re=t.createElement(MA,L.error)):L.loaded&&(re=t.createElement(aw,{key:T.visualization,sn:L.sn,halo:e,snOptions:V,snPlugins:j,layout:T,appLayout:B,cellId:a}));const se=!!e.public.theme?.getStyle("","","_cards"),ae=e.public.galaxy?.flags;let le,ce;_?(le=!1,ce=void 0):ae?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(le=!1,ce=(({layout:e,isError:t,isCardTheme:n,titleStyles:i,translator:o})=>{if(n){const n=e?.showTitles&&!!e?.title,r=e?.showTitles&&!!e?.subtitle,s=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,a=e?.visualization,l=ZA(e?.filters??[],o),c=!e?.footnote&&s&&l,d=e?.showTitles&&(!!e?.footnote||c);let h;return n&&(i.main.padding=gw(a)),r&&(i.subTitle.padding=((e,t)=>{const n=uw(e);return t?n?"0 10px":"0":gw(e)})(a,n)),d&&(-1===dw.indexOf(a)&&(i.footer.borderTop="1px solid #d9d9d9"),i.footer.padding="6px 10px"),(t||-1===hw.indexOf(a))&&(h=`${n||r?"0":"10px"} 10px ${d?"0":"5px"}`),h}})({layout:T,isError:L.error,isCardTheme:se,titleStyles:X,translator:f})):(le=!0,ce=void 0);const de=mw.get(T?.visualization),he=f.get(de);return t.createElement(ph,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Z||"unset",backgroundImage:J&&J.url?`url(${J.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:J&&J.size,backgroundPosition:J&&J.pos,border:ee,borderRadius:te,boxShadow:ne,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:k,id:$,onMouseEnter:()=>{Y.current.leave&&clearTimeout(Y.current.leave),Y.enter||(Y.current.enter=setTimeout(()=>{Q(!0),Y.current.enter=null},250))},onMouseLeave:()=>{Y.current.enter&&clearTimeout(Y.current.enter),Y.current.leave||(Y.current.leave=setTimeout(()=>{Q(!1),Y.current.leave=null},750))}},t.createElement(yr,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...le?{padding:S.spacing(1)}:{},...L.longRunningQuery?{opacity:"0.3"}:{}},"aria-labelledby":`${a}_title ${a}_type ${a}_content`},T&&t.createElement("div",{id:`${a}_type`,style:$A,"aria-label":he??T.visualization}),E&&T&&L.sn&&t.createElement(YA,{layout:T,sn:L.sn,anchorEl:E,hovering:K,focusHandler:oe.current,titleStyles:X,isRtl:ie,id:a,translator:f}," "),t.createElement(yr,{tabIndex:v&&!C?0:-1,onKeyDown:v&&!C?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,item:!0,xs:!0,className:"njs-cell-body",style:{height:"100%",...ce?{padding:ce}:{}},ref:F},re),E&&T&&L.sn&&t.createElement(rw,{layout:T,titleStyles:X,translator:f,flags:ae,isCardTheme:se,isRtl:ie})),L.longRunningQuery&&t.createElement(jA,{canCancel:q,canRetry:O,api:P}))}),Sw=ww;function kw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function xw(e="/",t,n){const i=[];return Object.keys(t).forEach(o=>{const r=t[o];"object"!=typeof n[o]||"object"!=typeof r||Array.isArray(r)?function(e,t){return kw(e)&&kw(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(r,n[o])||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):i.push(...xw(`${e}${o}/`,t[o],n[o]))}),i}function Ew(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`)})}function Lw(e={}){return{isEnabled:t=>!0===e[t]}}const Dw=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Iw=(e,t)=>e&&e.find(e=>e.qDef?.cId===t)||null,Nw=e=>({...e,qDef:{...e.qDef,cId:e.qDef?.cId??by()}}),Mw=e=>({...Nw(e),qOtherTotalSpec:e.qOtherTotalSpec??{}}),Tw=(e,t,n)=>{const i=t;e.forEach((e,t)=>{const o=e.qTags,r={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(i,n.properties,o,r,n):(r.qSortByNumeric=1,r.qSortByAscii=1),i.qDef.qSortCriterias?i.qDef.qSortCriterias[t]=r:i.qDef.qSortCriterias=[r]})},Rw=new Error("Not supported in this object, need to implement in subclass."),qw=e=>e?[...e].map(e=>e.qDef?.autoSort&&void 0!==e.autoSort?{...e,qDef:{...e.qDef,autoSort:e.autoSort},autoSort:void 0}:e):[],Ow=(e,t)=>{if(e)return t&&cA(e,t)?cA(e,t).qHyperCube:e.qHyperCube};function Pw(e,t){return e.filter((e,n)=>t.includes(n))}function Bw(e,t,n=void 0){const i=e.getAlternativeDimensions(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function Fw(e,t,n){hA(e.hcProperties.qInterColumnSortOrder,n??t.length-1)}function Ww(e,t){return"function"==typeof e.dimensionDefinition.move?Promise.resolve(e.dimensionDefinition.move.call(e,t,e.properties,e)).then(()=>t):Promise.resolve(t)}function zw(e,t){return e.getAlternativeDimensions().length+t.length>=1e3}function Vw(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<1e3}async function Hw(e,t,n,i,o,r){await e.autoSortDimension(t),hA(e.hcProperties.qInterColumnSortOrder,n+r),i.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function jw(e,t,n=void 0){const i=e.getAlternativeMeasures(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function Uw(e,t){hA(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function $w(e,t,n){return n||e.maxMeasures()<=t.length&&t.length<1e3}function Gw(e,t,n,i){const o=e-n.length;let[r]=n.splice(n.length-1,1);return i.splice(0,0,r),[r]=i.splice(o+1,1),n.splice(t,0,r),Promise.resolve(r)}const Kw=class{constructor(e){const t=e||{};this.dimensionDefinition=t.dimensionDefinition||{max:0},this.measureDefinition=t.measureDefinition||{max:0},this.dimensionProperties=t.dimensionProperties??{},this.measureProperties=t.measureProperties??{},this.globalChangeListeners=t.globalChangeListeners,this.app=t.app}setProperties(e){this.properties=e,this.isAnalysisType=this.properties?.metaData?.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}static type(){throw new Error("Must override this method")}static getDimensions(){return[]}getDimension(e){const t=this.getDimensions(),n=this.getAlternativeDimensions();return Iw(t,e)??Iw(n,e)}static getAlternativeDimensions(){throw new Error("Method not implemented.")}static addDimension(){throw Rw}static addDimensions(){throw Rw}static removeDimension(){throw Rw}static removeDimensions(){throw Rw}static autoSortDimension(){throw Rw}static replaceDimension(){throw Rw}static getSorting(){throw Rw}createLibraryDimension(e,t){const n=Oc()(!0,{},this.dimensionProperties||{},t||{});return n.qDef=n.qDef??{},n.qOtherTotalSpec=n.qOtherTotalSpec??{},n.qLibraryId=e,n.qDef.autoSort=!0,n.qDef.qSortCriterias=Dw,delete n.qDef.qFieldDefs,delete n.qDef.qFieldLabels,n}createFieldDimension(e,t,n){const i=Oc()(!0,{},this.dimensionProperties||{},n||{});return i.qDef=i.qDef??{},i.qOtherTotalSpec=i.qOtherTotalSpec??{},e||(i.qDef.qFieldDefs=[],i.qDef.qFieldLabels=[],i.qDef.qSortCriterias=[]),i.qDef.qFieldDefs=[e],i.qDef.qFieldLabels=t?[t]:[""],i.qDef.qSortCriterias=Dw,i.qDef.autoSort=!0,i}addFieldDimension(e,t,n){const i=this.createFieldDimension(e,t,n);return this.addDimension(i)}addFieldDimensions(e){const t=e.map(({field:e,label:t,defaults:n})=>this.createFieldDimension(e,t,n));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryDimension(e,t));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map(({id:e})=>this.createLibraryDimension(e));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map(({field:e})=>this.createFieldDimension(e));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e,t,n){const i=this.createFieldDimension(e,t,n);return this.addDimension(i,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(e=0){const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){const e=Lw("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return this.dimensionDefinition.max?.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasure(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();return Iw(t,e)??Iw(n,e)}static getMeasures(){return[]}static getAlternativeMeasures(){throw new Error("Method not implemented.")}static addMeasure(){throw Rw}static addMeasures(){throw Rw}static removeMeasure(){throw Rw}static removeMeasures(){throw Rw}static autoSortMeasure(){throw Rw}static replaceMeasure(){throw Rw}createExpressionMeasure(e,t,n){const i=Oc()(!0,{},this.measureProperties||{},n||{});return i.qDef=i.qDef??{},i.qDef.qNumFormat=i.qDef.qNumFormat??{},i.qDef.qDef=e,i.qDef.qLabel=t,i.qDef.autoSort=!0,i}addExpressionMeasure(e,t,n){const i=this.createExpressionMeasure(e,t,n);return this.addMeasure(i)}addExpressionMeasures(e){const t=e.map(({expression:e,label:t,defaults:n})=>this.createExpressionMeasure(e,t,n));return this.addMeasures(t)}createLibraryMeasure(e,t){const n=Oc()(!0,{},this.measureProperties||{},t||{});return n.qDef=n.qDef??{},n.qDef.qNumFormat=n.qDef.qNumFormat??{},Lw("MASTER_measureURE_FORMAT")&&(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(n.qDef),n.qLibraryId=e,n.qDef.autoSort=!0,delete n.qDef.qDef,delete n.qDef.qLabel,n}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t)}addAltLibraryMeasures(e){const t=e.map(({id:e})=>this.createLibraryMeasure(e));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map(({expression:e})=>this.createExpressionMeasure(e));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const i=this.createExpressionMeasure(e,t,n);return this.addMeasure(i,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(e=0){if("function"==typeof this.measureDefinition.max){const t=this.getDimensions().length-e,n=Lw("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return this.measureDefinition.max.apply(null,n)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach(t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})})}},Qw=function(e,t,n){const i=e.getDimensions(),o=n??i.length;return i.length<e.maxDimensions()?function(e,t,n){const i=e.getDimensions();return i.splice(n,0,t),e.autoSortDimension(t).then(async()=>(Fw(e,i,n),await function(e,t){return t&&"function"==typeof e.dimensionDefinition.add?Promise.resolve(e.dimensionDefinition.add.call(null,t,e.properties,e)).then(()=>t):Promise.resolve(t)}(e,t),t))}(e,t,o):Promise.resolve(t)},Yw=async function(e,t){!function(e,t){uA(e.hcProperties.qInterColumnSortOrder,t)}(e,t),await function(e,t){const[n]=e.getDimensions().splice(t,1);return n&&"function"==typeof e.dimensionDefinition.remove?Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)},Xw=async function(e,t){!function(e,t){uA(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t)}(e,t),await function(e,t){const[n]=e.getMeasures().splice(t,1);return n&&"function"==typeof e.measureDefinition.remove?Promise.resolve(e.measureDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)},Zw=function(e,t){const[n]=e.getAlternativeDimensions().splice(t,1);if(n&&"function"==typeof e.dimensionDefinition.remove)return n.isAlternative=!0,Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)).then(()=>{delete n.isAlternative})},Jw=class extends Kw{constructor(e){super(e),this.path=e.path}setProperties(e){return e?(super.setProperties(e),this.hcProperties=this.path?cA.getValue(e,`${this.path}.qHyperCubeDef`):e.qHyperCubeDef,this.hcProperties?(function(e){const t=e;t.hcProperties.qDimensions=t.getDimensions()??[],t.hcProperties.qMeasures=t.getMeasures()??[],t.hcProperties.qInterColumnSortOrder=t.hcProperties.qInterColumnSortOrder??[],t.hcProperties.qLayoutExclude=t.hcProperties.qLayoutExclude??{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},t.hcProperties.qLayoutExclude.qHyperCubeDef=t.hcProperties.qLayoutExclude.qHyperCubeDef??{qDimensions:[],qMeasures:[]},t.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=t.getAlternativeDimensions()??[],t.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=t.getAlternativeMeasures()??[]}(this),function(e){const t=e;t.hcProperties.isHCEnabled&&0===t.hcProperties.qDynamicScript.length&&"S"===t.hcProperties.qMode&&(t.hcProperties.qDynamicScript=[])}(this),this.hcProperties.qDimensions=qw(this.hcProperties.qDimensions),this.hcProperties.qMeasures=qw(this.hcProperties.qMeasures),{}):{}):{}}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qDimensions??[]}getDimensionLayout(e){return this.getDimensionLayouts().filter(t=>e===t.cId)[0]}getDimensionLayouts(){const e=Ow(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const i=Mw(e);return Vw(this,t)?Bw(this,i,n):Qw(this,i,n)}async addDimensions(e,t=!1){const n=this.getDimensions(),i=n.length,o=[];let r=0;for await(const s of e){if(zw(this,n))return o;const e=Mw(s);if(Vw(this,t)){const t=await Bw(this,e);o.push(t)}else n.length<this.maxDimensions()&&(await Hw(this,e,i,n,o,r),r++)}return o}removeDimension(e,t){t&&Zw(this,e),Yw(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),i=this.getDimensions();if(0===e.length)return[];let o=[];const r=[...e].sort((e,t)=>t-e);if(t&&n.length>0){o=Pw(n,e);for await(const e of r)await Zw(this,e)}else if(i.length>0){o=Pw(i,e);for await(const e of r)await Yw(this,e)}return o}replaceDimension(e,t){return this.autoSortDimension(t).then(()=>function(e,t,n){if(!n)return;const i=e.getDimensions(),o=i[t],r={...n,qDef:{...n.qDef,cId:by()}};return i[t]=r,r&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,r,o,t,e.properties,e),r}(this,e,t))}reinsertDimension(e,t,n){const i=Nw(e);return Vw(this,t)?Bw(this,i,n).then(()=>{Ww(this,i)}):function(e,t,n){const i=e.getDimensions(),o=n??i.length;return i.length<e.maxDimensions()?(i.splice(o,0,t),Fw(e,i),Ww(e,t)):Promise.resolve(t)}(this,i,n)}moveDimension(e,t){const n=this.getDimensions(),i=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(gA(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,i){const o=t-n.length;let[r]=i.splice(0,1);return n.push(r),[r]=n.splice(e,1),i.splice(o,0,r),Promise.resolve(r)}(e,t,n,i):e>=n.length&&t<n.length?Promise.resolve(Gw(e,t,n,i)):Promise.resolve(function(e,t,n,i){const o=e-n.length,r=t-n.length;gA(i,o,r)}(e,t,n,i))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then(n=>{const i=t?.qLibraryId&&(o=t.qLibraryId,(r=n)&&r.find(e=>e.qInfo.qId===o)||null);var o,r;return i&&Tw(i.qData.info,t,e),t})}(this,e):function(e,t){return e.app.getFieldList().then(n=>{const i=t?.qDef?.qFieldDefs&&((e,t)=>{const n=(e=>{const t=[];return e.forEach(e=>{t.push((e=>{const t=e;return t.isDateField=(e=>e?.qDerivedFieldData&&(e?.qTags?.indexOf("$date")>-1||e?.qTags?.indexOf("$timestamp")>-1))(t),t.isGeoField=(e=>e.qTags.indexOf("$geoname")>-1)(t),t})(e));const n=(e=>{const t=[];return e.qDerivedFieldData?(e.qDerivedFieldData.qDerivedFieldLists.forEach(n=>{n.qFieldDefs.forEach(i=>{var o;t.push({qName:i.qName,displayName:(o=i.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:i.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})})}),t):t})(e);t.push(...n)}),t})(t.slice(0)),i=(e=>{let t=e;t=t.trim(),"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t})(e);return n&&((e,t)=>t&&t.find(t=>t.qName===e)||null)(i,n)||null})(t.qDef.qFieldDefs[0],n);return i&&Tw([i],t,e),t})}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qMeasures??[]}getMeasureLayouts(){const e=Ow(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter(t=>e===t.cId)[0]}addMeasure(e,t,n){const i=this.getAlternativeMeasure(),o=Nw(e);return $w(this,i,t)?jw(this,o,n):function(e,t,n){const i=e.getMeasures(),o=n??i.length;return i.length<e.maxMeasures()?(i.splice(o,0,t),e.autoSortMeasure(t).then(()=>(Uw(e,i),function(e,t){return t&&"function"==typeof e.measureDefinition.add?Promise.resolve(e.measureDefinition.add.call(null,t,e.properties,e)):Promise.resolve()}(e,t).then(()=>t)))):t}(this,o,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e,t=!1){const n=this.getMeasures(),i=[];let o=0;return e.forEach(async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=1e3}(this,n))return!1;const r=Nw(e);return $w(this,n,t)?(jw(this,r),i.push(r)):n.length<this.maxMeasures()&&(await function(e,t,n,i,o){const r=e.getDimensions(),s={...t};return s.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},hA(e.hcProperties.qInterColumnSortOrder,r.length+n.length+o),n.push(s),i.push(s),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,s,e.properties,e),Promise.resolve(i)}(this,r,n,i,o),o++),!0}),i}removeMeasure(e,t){t&&function(e,t){e.getAlternativeMeasures().splice(t,1)}(this,e),Xw(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),i=this.getAlternativeMeasures();if(0===e.length)return[];let o=[];if(t&&i.length>0)o=Pw(i,e),function(e,t){const n=e,i=function(e,t){return e.filter((e,n)=>!t.includes(n))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=i}(this,e);else if(n.length>0){o=Pw(n,e);const t=[...e].sort((e,t)=>t-e);for await(const e of t)await Xw(this,e)}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then(()=>function(e,t,n){const i=e.getMeasures(),o=i[t],r={...n,qDef:{...n.qDef,cId:by()}};return i[t]=r,r&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,r,o,t,e.properties,e),r}(this,e,t))}reinsertMeasure(e,t,n){const i=this.getAlternativeMeasures(),o=Nw(e);return $w(this,i,t)?jw(this,o,n):function(e,t,n){const i=e.getMeasures(),o=n??i.length;return i.length<e.maxMeasures()?(i.splice(o,0,t),Uw(e,i),function(e,t){return"function"==typeof e.measureDefinition.move?Promise.resolve(e.measureDefinition.move.call(null,t,e.properties,e,!0)).then(()=>t):Promise.resolve(t)}(e,t)):Promise.resolve(t)}(this,o,n)}moveMeasure(e,t){const n=this.getMeasures(),i=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(gA(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,i){const o=t-n.length;let[r]=i.splice(0,1);return n.push(r),[r]=n.splice(e,1),i.splice(o,0,r),Promise.resolve(r)}(e,t,n,i):e>=n.length&&t<n.length?Gw(e,t,n,i):Promise.resolve(function(e,t,n,i){const o=e-n.length,r=t-n.length;gA(i,o,r)}(e,t,n,i))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){cA.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){return this.hcProperties?.qDynamicScript||[]}},eS=Oc().bind(null,!0),tS={},{isArray:nS}=Array;function iS(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function oS(e){return void 0===e}function rS(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function sS(e,t){const n=t.substring(1).split("/").slice(0,-1);let i;return n.forEach((t,o)=>{if(o===n.length)return;i=+t;const r=isNaN(i)?{}:[];e[i||t]=oS(e[i||t])?r:e[t],e=e[i||t]}),e}function aS(e,t){let n=!0;if(iS(e)&&iS(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(i=>{aS(e[i],t[i])||(n=!1)}),n);if(nS(e)&&nS(t)){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n+=1)if(!aS(e[n],t[n]))return!1;return!0}return e===t}tS.generate=function(e,t,n){n=n||"";let i=[];return Object.keys(t).forEach(o=>{const r=function(e){return e?eS({},{val:e}).val:e}(t[o]),s=e[o],a=`${n}/${o}`;aS(r,s)||rS(t,o)||(oS(s)?i.push({op:"add",path:a,value:r}):iS(r)&&iS(s)?i=i.concat(tS.generate(s,r,a)):nS(r)&&nS(s)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let r=-1;function s(e,t,n){if(e[n]&&oS(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(aS(t,o))return i;if(!oS(t[0])&&oS(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(tS.generate(o[e],t[r],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return i}(s,r,a)):i.push({op:"replace",path:`${n}/${o}`,value:r}))}),Object.keys(e).forEach(o=>{oS(t[o])&&!rS(e,o)&&i.push({op:"remove",path:`${n}/${o}`})}),i},tS.apply=function(e,t){t.forEach(t=>{let n=sS(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&isNaN(+i)?n[i]:n[+i]||n;const r=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(nS(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(nS(o)&&nS(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(iS(o)&&iS(t.value))s=o,Object.keys(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!rS(s,e)&&delete s[e]}),eS(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){const o=sS(e,t.from);nS(n)?n.splice(+i,0,o.splice(+r,1)[0]):(n[i]=o[r],delete o[r])}else"remove"===t.op&&(nS(n)?n.splice(+i,1):delete n[i]);var s})},tS.clone=function(e){return eS({},e)},tS.createPatch=function(e,t,n){const i={op:e.toLowerCase(),path:n};return"move"===i.op?i.from=t:void 0!==t&&(i.value=t),i},tS.updateObject=function(e,t){Object.keys(e).length?tS.apply(e,tS.generate(e,t)):eS(e,t)};const lS=tS;let cS,dS;function hS(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function uS(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},contraintsWarning:!0}}function gS(e){mS(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 pS(e){if(e.__hooks.obsolete)return Promise.resolve();dS=-1,cS=e;let t=-1;cS.__hooks.initiated&&(t=cS.__hooks.list.length);try{cS.fn.call(null)}catch(e){console.error(e)}cS.__hooks.initiated=!0,t>-1&&t!==cS.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=cS.__hooks;return CS(cS),dS=void 0,cS=void 0,n.chain.promise||(n.chain.promise=new Promise(e=>{n.chain.resolve=e})),function(e){mS(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame(()=>{!function(e){mS(e.pendingEffects),e.macro=null,function(e){e.pendingPromises.length||e.micro||e.macro||(e.chain.promise=null,e.chain.resolve(!e.waitForData))}(e)}(e)}))}(n),n.chain.promise}function mS(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 fS(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 bS(e,t,n,i){try{return Promise.all(e.__hooks.menus.map(e=>Promise.resolve(e.fn(t,n,i)))).then(e=>e[e.length-1])}catch(e){console.error(e)}return Promise.resolve()}function vS(e){return e.__hooks.imperativeHandle}function CS(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function _S(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,CS(e))}function yS(e){if(void 0===cS)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=cS.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function AS(e){return yS(++dS),cS.context[e]}function wS(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function SS(e){return{__hooked:!0,fn:e,initiate:uS,run:pS,teardown:gS,runSnaps:fS,runMenu:bS,focus:nk,blur:ik,observeActions:_S,getImperativeHandle:vS,updateRectOnNextRun:wS}}function kS(e){const t=yS(++dS);if(!t.value){t.component=cS;const n=e=>{if(t.component.__hooks.obsolete)throw new Error("Calling setState on an unmounted component is a no-op and indicates a memory leak in your component.");const n="function"==typeof e?e(t.value[0]):e;var i;n!==t.value[0]&&(t.value[0]=n,(i=t.component).__hooks.micro||(i.__hooks.micro=setTimeout(()=>{i.__hooks.micro=null,pS(i)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function xS(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=yS(++dS);hS(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===cS.__hooks.pendingEffects.indexOf(n)&&cS.__hooks.pendingEffects.push(n))}function ES(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=yS(++dS);hS(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],cS.__hooks.pendingLayoutEffects.push(n))}function LS(e,t){t||console.warn("useMemo called without dependencies.");const n=yS(++dS);return hS(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function DS(e){return LS(()=>({current:e}),[])}function IS(e,t){const[n,i]=kS(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=yS(++dS);return o.component||(o.component=cS),ES(()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then(e=>{t||(o.teardown&&o.teardown(),i({resolved:e,rejected:void 0,state:"resolved"}))}).catch(e=>{t||(o.teardown&&o.teardown(),i({resolved:void 0,rejected:e,state:"resolved"}))}),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}},t),[n.resolved,n.rejected]}function NS(){return AS("element")}function MS(){const e=NS(),t=cS.__hooks.resizer,[n,i]=kS(()=>{const{left:t,top:n,width:i,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:i,height:o}});return t.current=n,-1===t.setters.indexOf(i)&&t.setters.push(i),t.update&&t.resize&&(t.update=!1,t.resize()),ES(()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===n&&s.top===i||t.setters.forEach(e=>e({left:n,top:i,width:o,height:r}))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let i=new ResizeObserver(n);return i.observe(e),()=>{i.unobserve(e),i.disconnect(e),i=null,t.resize=void 0}}},[e]),n}function TS(){return AS("layout")}function RS(){const e=AS("layout"),[t]=kS({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function qS(){return AS("appLayout")}function OS(){const e=AS("model");return e&&e.session?e:void 0}function PS(){const e=AS("app");return e&&e.session?e:void 0}function BS(){const e=AS("global");return e&&e.session?e:void 0}function FS(){return AS("selections")}function WS(){return AS("theme")}function zS(){return AS("nebbie")}function VS(){return AS("translator")}function HS(){return AS("deviceType")}function jS(){return AS("navigation")}function US(){return AS("plugins")}function $S(e,t){const[n]=kS({action(){n._config.action.call(null)}});return n.component||(n.component=cS,cS.__hooks.actions.list.push(n)),LS(()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0},t),n.action}function GS(){return cS.__hooks.contraintsWarning&&(console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),cS.__hooks.contraintsWarning=!1),AS("constraints")}function KS(){return AS("interactions")}function QS(){return AS("options")}function YS(e,t){const n=yS(++dS);if(!n.imperative){if(cS.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(hS(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],cS.__hooks.imperativeHandle=i}}function XS(e){const t=yS(++dS);t.value||(t.value=1,cS.__hooks.snaps.push(t)),t.fn=e}function ZS(e){const t=yS(++dS);t.value||(t.value=1,cS.__hooks.menus.push(t)),t.fn=e}function JS(){yS(++dS);const e=cS.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function ek(){return AS("emitter")}function tk(){const e=AS("keyboardNavigation"),t=AS("focusHandler");if(!cS.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n.enabled&&n.active&&(ik(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(cS);cS.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),nk(this))}.bind(cS);cS.__hooks.accessibility.focusFunction=n;const i=function(e=!1){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(cS);cS.__hooks.accessibility.focusSelectionFunction=i}const n=cS.__hooks.accessibility.focusFunction,i=cS.__hooks.accessibility.exitFunction,o=cS.__hooks.accessibility.focusSelectionFunction,[r,s]=kS({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return cS.__hooks.accessibility.setter=s,cS.__hooks.accessibility.enabled=e,xS(()=>s({active:!1,enabled:e,blur:i,focus:n,focusSelection:o}),[e]),r}function nk(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 ik(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 ok={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},rk=Object.keys(ok);function sk(e,t){console.warn("Obsolete API - time to get hooked!");const n={...ok};var i;i=n,Object.keys(ec().prototype).forEach(e=>{i[e]=ec().prototype[e]}),ec().init(i);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach(t=>{-1!==rk.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]});const r=function({sn:e,component:t}){const n={},i=[],o=(e=>t=>{const n=(i={...t,action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0},Object.keys(ec().prototype).forEach(e=>{i[e]=ec().prototype[e]}),ec().init(i),i);var i;return n})(t);return((e.definition.selectionToolbar||{}).items||[]).forEach(e=>{const t=o(e);n[e.key]=t,i.push(t)}),(e.definition.actions||[]).forEach(e=>{const t=o(e);n[e.key]=t}),{actions:n,selectionToolbarItems:i,destroy(){i.length=0}}}({sn:e,component:o}),s=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:s,selections:t.selections,actions:r.actions}),Object.assign(n,{actions:r.actions,model:t.model,app:t.app,selections:t.selections}),[n,r]}const ak=()=>{};function lk(e,t){return void 0===e?()=>t:()=>e}function ck(e){const t=e||{};return{min:"function"==typeof t.min?t.min:lk(t.min,0),max:"function"==typeof t.max?t.max:lk(t.max,1e3),added:t.added||t.add||ak,description:t.description||ak,moved:t.moved||t.move||ak,removed:t.removed||t.remove||ak,replaced:t.replaced||t.replace||ak,isDefined:()=>!!e}}function dk(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.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:n,resolveLayout:e=>((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(e,n,{}),dimensions:ck(e.dimensions),measures:ck(e.measures)}}function hk(e={}){let t,n=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(n=e.properties.initial,t=e.properties.onChange),{properties:{initial:n,onChange:t},data:{targets:((e.data||{}).targets||[]).map(dk)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function uk(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:hk(n.qae),component:n.component||{},create:e=>function(e,t,n){"function"==typeof e.component&&(e.component=SS(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==pS&&console.warn("Detected multiple supernova modules, this might cause problems.");const i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const r={},s=["appLayout","constraints","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:i,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:a,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let i=!1;Object.keys(t.options).forEach(n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(i=!0)}),i&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach((t,n)=>{this.context.plugins[n]!==t&&(e=!0)}),e&&(this.context.plugins=[...t.plugins],n=!0)}s.forEach(e=>{const i=t.context;if(i&&Object.prototype.hasOwnProperty.call(i,e)){let t=JSON.stringify(i[e]);"constraints"===e&&(t=JSON.stringify({...i[e],...a})),"interactions"===e&&(t=JSON.stringify({...i[e],...l})),t!==r[e]&&(n=!0,r[e]=t,this.context[e]=JSON.parse(t))}})}else n=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(n=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(n=!0,r.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,i){return e.component.runMenu(this,t,n,i)},focus(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?t.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,n):sk(e,t),r=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(...n){try{e.qae.properties.onChange.call({model:t.model},...n)}catch{console.warn("Error in chart setProperties interceptor onChange call ")}return t.model.__snInterceptor.setProperties.call(this,...n)},t.model.applyPatches=function(n,i){const o=i?"getEffectiveProperties":"getProperties";return t.model[o]().then(o=>{const r=lS.clone(o),s=n.map(e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath}));lS.apply(o,s);try{e.qae.properties.onChange.call({model:t.model},o)}catch{console.warn("Error in chart applyPatches interceptor onChange call ")}const a=lS.generate(r,o).map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}));return t.model.__snInterceptor.applyPatches.call(this,a,i)})},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach(e=>e())},logicalSize:e.definition.logicalSize||(()=>!1)}}(i,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new Jw(e)}:{}};return Object.keys(n).forEach(e=>{i[e]||(i.definition[e]=n[e])}),i}const gk=(e,t,n)=>{if(!e)return Promise.resolve();let i=lS.generate(t,n);return Oc()(!0,t,n),i&&i.length?(i=i.map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,i,!0):e.applyPatches(i,!0)):Promise.resolve()},pk=()=>{};async function mk(e,n,i,o,r,s=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:r=async()=>{},onRender:s=()=>{},onError:a=()=>{}}={}){let l,c,d,h=pk,u=null,g=null,p=null,m=null,f=!1;const b=new Promise(e=>{p=e}),v=new Promise(e=>{m=e}),C=e=>()=>{e?.(),m(),s(),f=!0};let _={},y=[];const A=new(ec());let w={};n.context?.enablePrivateExperimental&&(w={support:e=>!(!g||!f)&&u.current.support(e,c?.support,d),getPropertyPanelDefinition:()=>!(!g||!f)&&(c?c.definition:u.current.getExtensionDefinition().definition),toggleFocus(e){u.current.toggleFocus(e)},setOnBlurHandler(e){u.current.setOnBlurHandler(e)},onContextMenu:(...e)=>u.current.onContextMenu(...e)});const S={id:e.id,model:e,async destroy(){await r(),h(),h=pk},async convertTo(t,i=!0,o=!1){if(i){if((r=await e.getLayout())&&!r.qHasSoftPatches&&!r.qExtendsId&&(r.qMeta?.privileges||[]).indexOf("update")>-1&&!o){const i=await AA({halo:n,model:e,cellRef:u,newType:t});return await((e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t))(e,i.qProperty),i}const i=await e.getEffectiveProperties(),s=await AA({halo:n,model:e,cellRef:u,newType:t,properties:i}),a=s.qProperty;return await gk(e,i,a),s}var r;return await AA({halo:n,model:e,cellRef:u,newType:t})},async toggleDataView(t){let i;if(l||!1===t)l&&!0!==t&&(i=e,await n.app.destroySessionObject(l),l=void 0,c=void 0,d=void 0);else{let t=n.context.dataViewType;const o=await e.getEffectiveProperties();if(!n.types.getSupportedVersion(t)){if(!n.types.getSupportedVersion("table"))throw new Error("No data view type registered");t="table"}const r=await AA({halo:n,model:e,cellRef:u,newType:t,properties:o,viewDataMode:!0});i=await n.app.createSessionObject(r.qProperty),l=i.id,c=u.current.getExtensionDefinition(),d=await e.getLayout()}i&&u.current.setModel(i)},get viewDataToggled(){return void 0!==l},addListener(e,t){A.addListener(e,t)},removeListener(e,t){A.removeListener(e,t)},getImperativeHandle:async()=>(await v,u.current.getImperativeHandle()),takeSnapshot:async()=>(await v,u.current.takeSnapshot()),...w,__DO_NOT_USE__:{mount(r){if(g)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return g=r,[h,u]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,emitter:a,initialError:l,navigation:c,onError:d}){const{root:h}=e,u=t.createRef(),g=by(),p=Br.createPortal(t.createElement(Sw,{ref:u,halo:e,model:i,currentId:g,initialSnOptions:o,initialSnPlugins:r,initialError:l,onMount:s,emitter:a,navigation:c,onError:d}),n,g),m=()=>{h.remove(p),i.removeListener("closed",m)};return i.on("closed",m),h.addCell(g,u),(async()=>{try{await h.add(p,m)}catch(e){m(),s(),d(e)}})(),[m,u]}({halo:n,element:r,model:e,initialSnOptions:_,initialSnPlugins:y,initialError:o,onMount:p,emitter:A,navigation:i,onError:a}),b},async applyProperties(t){const n=xw("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;g?(async()=>{await b,u.current.setSnOptions({..._,...e,onInitialRender:C(t)})})():_={..._,...e,onInitialRender:C(t)}})(e)},plugins(e){(async e=>{Ew(e),g?(async()=>{await b,u.current.setSnPlugins(e)})():y=e})(e)},exportImage:()=>u.current.exportImage(),takeSnapshot:()=>u.current.takeSnapshot(),getModel:()=>e,convert:{async toType(t){const i=await e.getEffectiveProperties(),o=await AA({halo:n,model:e,cellRef:u,newType:t,properties:i}),r=o.qProperty;return await gk(e,i,r),o},async revert(){await e.clearSoftPatches()}}}};return S}({model:e,halo:i,navigation:o,initialError:r,onDestroy:s,onRender:a,onError:l});return n.options&&c.__DO_NOT_USE__.options(n.options),n.plugins&&c.__DO_NOT_USE__.plugins(n.plugins),n.element&&await c.__DO_NOT_USE__.mount(n.element),c}async function fk({type:e,version:t,fields:n,properties:i,extendProperties:o},r,s,a){let l={};const c=[],{modelStore:d}=a;try{const s=r.types.get({name:e,version:t});l=await s.initialProperties(i,o);const a=await s.supernova();n&&await lA({sn:a,properties:l,fields:n,children:c},r),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},l)}catch(t){l=s?null:{qInfo:{qType:e},visualization:e}}if(!s){const e=await r.app.createObject(l);return c.length>0&&await e.setFullPropertyTree({qProperty:l,qChildren:c}),d.set(e.id,e),e}return l}function bk(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const vk=(0,t.forwardRef)(({model:e,halo:n,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,unmount:a,navigation:l,onError:c},d)=>{const{root:h}=n,[u,g]=(0,t.useState)(e),[p]=yd(u),{theme:m,modelStore:f}=(0,t.useContext)(ld),[b,v]=(0,t.useState)([]),[C,_]=(0,t.useState)(void 0),[y,A]=(0,t.useState)(void 0),[w,S]=(0,t.useState)(""),k=(0,t.useRef)({cellCount:0,cellsRendered:0,initialRender:!1});l?.setCurrentSheetId?.(u.id),(0,t.useEffect)(()=>{if(p){const e=JSON.stringify(p.cells);if(e===w)return;S(e);const o=async()=>{b.forEach(e=>{h.removeCell(e.currentId)});const e=p.cells;k.cellCount=e.length,k.cellsRendered=0;const o=()=>{k.cellsRendered++,k.cellsRendered!==k.cellCount||k.initialRender||(k.initialRender=!0,i.onInitialRender())},{columns:r,rows:s}=p,a=await Promise.all(e.map(async e=>{let a;const l=new Promise(e=>{a=e}),c=b.find(t=>t.id===e.name);if(c)return c.bounds=bk(e,r,s),delete c.mountedPromise,c;const d=await async function({id:e,options:t,plugins:n,element:i},o,r){const{modelStore:s,rpcRequestModelStore:a}=r,l=`${e}`;let c=a.get(l);c||(c=o.app.getObject(e),a.set(l,c));const d=await c;return s.set(l,d),mk(d,{options:t,plugins:n,element:i},o)}({id:e.name},n,f);return{model:d.model,id:e.name,bounds:bk(e,r,s),cellRef:t.createRef(),currentId:by(),mounted:a,mountedPromise:l,options:{...i,onInitialRender:o}}}));a.forEach(e=>h.addCell(e.currentId,e.cellRef)),v(a)};o()}},[p]),(0,t.useEffect)(()=>{const e=()=>{u.removeListener("closed",e),a()};return u.on("closed",e),()=>u.removeListener("closed",e)},[u]);const x=(0,t.useMemo)(()=>b?b.map(e=>function(e,n,i,o,r,s,a,l){const{x:c,y:d,width:h,height:u}=e.bounds,g={left:`${c}%`,top:`${d}%`,width:`${h}%`,height:`${u}%`,position:"absolute"},p=n.public.galaxy?.flags;return p?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(g.boxSizing="border-box",g.padding="4px"),t.createElement("div",{style:g,key:e.model.id},t.createElement(Sw,{ref:e.cellRef,halo:n,model:e.model,currentId:e.currentId,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,navigation:a,onError:l}))}(e,n,e.options,o,r,e.mounted,l,c)):[],[b]);(0,t.useEffect)(()=>{const e=p?.components?p.components.find(e=>"general"===e.key):null;_(z_(e,n.public.theme)),A(W_(e,n.app))},[p,n.public.theme,n.app,m]),(0,t.useImperativeHandle)(d,()=>({setModel:g}),[]);const E=!p||void 0===p.height||Number.isNaN(p.height)?"100%":`${Number(p.height)}%`,L=b.map(e=>e.mountedPromise),D=L.filter(e=>!!e);return D.length&&Promise.all(L).then(()=>{s()}),t.createElement("div",{className:"njs-sheet",style:{width:"100%",height:E,position:"relative",backgroundColor:C,backgroundImage:y&&y.url?`url(${y.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:y&&y.size,backgroundPosition:y&&y.pos}},x)}),Ck=vk,_k=()=>{};async function yk({id:e,options:n,plugins:i,element:o,onRender:r,onError:s,navigation:a},l,c){const{modelStore:d,rpcRequestModelStore:h}=c,u=`${e}`;let g=h.get(u);g||(g=l.app.getObject(e),h.set(u,g));const p=await g;d.set(u,p);const m=a||("sheet"===p.genericType?function(e,t,n){const{galaxy:i}=e.public;if(i.anything?.sense?.navigation)return i.anything?.sense?.navigation;const o={model:n},r={goToSheet:async n=>{if(!o.sheetRef)return;const{modelStore:i,rpcRequestModelStore:s}=t,a=`${n}`;let l,c=s.get(a);c||(c=e.app.getObject(n),s.set(a,c));try{if(l=await c,"sheet"!==l.genericType)return}catch(e){return}i.set(a,l),o.sheetRef?.current?.setModel?.(l),o.model=l,r.emit("sheetChanged")},setSheetRef:e=>{o.sheetRef=e},getCurrentSheetId:()=>!!o.model&&o.model.id};return gb(r),r}(l,c,p):void 0);return"sheet"===p.genericType?async function(e,n,i,o,r,s=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:r=async()=>{},onRender:s=()=>{},onError:a=()=>{}}={}){let l=_k,c=null,d=null,h=null,u=null;const g=new Promise(e=>{h=e}),p=new Promise(e=>{u=e}),m=e=>()=>{e?.(),u(),s()};let f={},b=[];const v={id:e.id,model:e,navigation:i,getImperativeHandle:async()=>(await p,c.current.getImperativeHandle()),async destroy(){await r(),l(),l=_k},__DO_NOT_USE__:{mount(r){if(d)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return d=r,[l,c]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a,navigation:l,onError:c}){const{root:d}=e,h=t.createRef();let u;const g=()=>{d.remove(u)};return u=Br.createPortal(t.createElement(Ck,{ref:h,halo:e,model:i,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s,unmount:g,navigation:l,onError:c}),n,i.id),l.setSheetRef(h),d.add(u,g),[g,h]}({halo:n,element:r,model:e,initialSnOptions:f,initialSnPlugins:b,initialError:o,onMount:h,navigation:i,onError:a}),g},async applyProperties(t){const n=xw("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;d?(async()=>{await g,c.current.setSnOptions({...f,...e,onInitialRender:m(t)})})():f={...f,...e,onInitialRender:m(t)}})(e)},plugins(e){(async e=>{Ew(e),d?(async()=>{await g,c.current.setSnPlugins(e)})():b=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return v}({model:e,halo:i,navigation:o,initialError:r,onDestroy:s,onRender:a,onError:l});return n.options&&c.__DO_NOT_USE__.options(n.options),n.plugins&&c.__DO_NOT_USE__.plugins(n.plugins),n.element&&await c.__DO_NOT_USE__.mount(n.element),c}(p,{options:n,plugins:i,element:o,onRender:r,onError:s},l,m):mk(p,{options:n,plugins:i,element:o,onRender:r,onError:s},l,m)}var Ak=s(3326),wk=s.n(Ak);const Sk={};function kk(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,r)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:r}=n,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||wk()(e,r.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!Sk[o]){const r=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(i||n.load)({name:e,version:t}),a=Promise.resolve(s);Sk[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 cw(`Failed to load visualization: '${r}'`,e)})}return Sk[o]}(s.name,s.version,t,n.load).then(e=>(i=i||uk(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i)),initialProperties(e,t=!1){return this.supernova().then(()=>{const n={qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o)};return t?(Oc()(!0,n,e),n):{...n,...e}})}};return s}({name:e,version:o},t,r),i=null},getMatchingVersionFromProperties:e=>{i||(i=function(e){const t=e.filter(e=>"undefined"===e);return[...t,...e.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("."))]}(Object.keys(n)));for(let t=i.length-1;t>=0;t--)if(n[i[t]].supportsPropertiesVersion(e))return i[t];return null},versions:n}}const xk={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},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())}};xk.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};const Ek=(e={},t={})=>({...e,...t}),Lk=(e=[],t=[])=>[...e,...t].filter((e,t,n)=>n.indexOf(e)===t),Dk=function e(i={}){const o=function(e){const t=Xl({initial:e});return Object.keys(Zl).forEach(e=>{t.translator.add(Zl[e])}),{translator:t.translator}}(i.context.language);function r(e,s){if(s)return r.createConfiguration(s)(e);let a={...i.context,translator:o.translator,hostConfig:i.hostConfig};const[l,c]=function({app:e,context:i}){let o,r=!1;const s=new Promise(e=>{o=e}),a=t.createRef(),l=document.createElement("div");l.style.display="none",l.setAttribute("data-nebulajs-version","6.0.0-alpha.0"),l.setAttribute("data-app-id",e.id),document.body.appendChild(l),i&&dd(i);const c=ud(e.id),d=gd(e.id),h=n.createRoot(l);h.render(t.createElement(pd,{ref:a,initialContext:i,renderCallback:o,modelStore:c,selectionStore:d}));const u={},g=[],p=[];return[{toggleFocusOfCells(e){Object.keys(u).forEach(t=>{u[t].current?.toggleFocus(t===e)})},cells:u,addCell(e,t){u[e]=t},removeCell(e){delete u[e]},add:(e,t)=>(async()=>{await s,p.push(e),g.push(t),a.current.setComps(p)})(),remove(e){r||(async()=>{await s;const t=p.indexOf(e);-1!==t&&(g[t]?.(),p.splice(t,1),g.splice(t,1)),a?.current?.setComps(p)})()},setMuiThemeName(e){(async()=>{await s,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await s,e&&dd(e),a.current.setContext(e)})()},destroy(){r=!0,g.forEach(e=>{e&&e()}),c.destroy(),h.unmount(),document.body.removeChild(l)}},c,d,a,s]}({app:e,context:a}),d=function({themes:e=[],loadTheme:t,root:n}={}){const i=sd();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),ad(5e3,{__timedOut:!0})]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(s="dark"===e.type?"dark":"light",i.internalAPI.setTheme(e,o),n.setMuiThemeName(s))}catch(e){console.error(e)}else i.internalAPI.setTheme({type:s},o),n.setMuiThemeName(s)},externalAPI:i.externalAPI}}({themes:i.themes,loadTheme:i.loadTheme,root:l});a.themeApi=d.externalAPI;const h={galaxy:{translator:o.translator,theme:d.externalAPI,flags:Lw(i.flags),deviceType:(p=i.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"),hostConfig:i.hostConfig,anything:i.anything},theme:d.externalAPI,translator:o.translator,nebbie:null},u={app:e,root:l,config:i,public:h,context:a,types:null},g=function({halo:e,parent:t}){const n={},i=t||{get:()=>{}};return{register:(t,i)=>{n[t.name]||(n[t.name]=kk(t.name,e)),n[t.name].register(t.version,i)},getSupportedVersion:(e,t)=>{if(n[e])return n[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:o}=e;if(n[t]){if(!n[t].versions[o]){const e=Object.keys(n[t].versions)[0];console.warn(`Version ${o} of ${t} is not registered. Falling back to version ${e}`),o=e}}else console.warn(`Visualization ${t} is not registered. Adding it now.`),this.register({name:t,version:o});return n[t].get(o)||i.get(e)},getList:()=>Object.keys(n).map(e=>({name:e,versions:Object.keys(n[e].versions).map(e=>"undefined"===e?void 0:e)})),clearFromCache:e=>{n[e]&&(n[e]=void 0),function(e){Object.keys(Sk).forEach(t=>{t.split("__")[0]===e&&(Sk[t]=void 0)})}(e)}}}({halo:u});var p;i.types.forEach(e=>g.register({name:e.name,version:e.version},{meta:e.meta,load:e.load}));let m=new Promise(e=>{(async()=>{if(await d.setTheme(i.context.theme),i.hostConfig&&Yl&&Yl.getWebResourceAuthParams){const{queryParams:e}=await Yl.getWebResourceAuthParams({hostConfig:i.hostConfig});a.queryParams=e,l.context(a)}})().then(e)}),f=null,b=null;const v={render:async e=>(await m,e.id?yk(e,u,c):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:r,element:s,extendProperties:a,navigation:l,onRender:c,onError:d},h,u){let g={};const p=[],{modelStore:m,subscribe:f}=u;let b;try{const o=h.types.get({name:e,version:t});g=await o.initialProperties(i,a);const r=await o.supernova();n&&await lA({sn:r,properties:g,fields:n,children:p},h),i&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},g)}catch(t){b=t,g={qInfo:{qType:e},visualization:e}}const v=await h.app.createSessionObject(g);p.length>0&&await v.setFullPropertyTree({qProperty:g,qChildren:p}),m.set(v.id,v);const C=f(v);return mk(v,{options:o,plugins:r,element:s,onRender:c,onError:d},h,l,b,async()=>{await h.app.destroySessionObject(v.id),C()})}(e,u,c)),destroy:async()=>{l.destroy()},create:async e=>fk(e,u,!1,c),generateProperties:async e=>fk(e,u,!0,c),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])}),t&&(a={...a,...t,translator:o.translator},t.theme&&(await m,m=d.setTheme(t.theme),await m),t.language&&u.public.translator.language(t.language),l.context(a))},selections:async()=>(f||(f={mount(n){b?console.error("Already mounted"):(b=function({element:e,app:n}){return Br.createPortal(t.createElement(vy,{app:n}),e,by())}({element:n,app:e}),l.add(b))},unmount(){b&&(l.remove(b),b=null)}}),f),field:async n=>{let i;const o="string"==typeof n?n:n.qLibraryId;if(n.qId)i=n.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const r={fieldName:o,async mount(s,a={}){if(!s)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);const c=()=>r.emit("selectionActivated"),d=()=>r.emit("selectionDeactivated");return new Promise(o=>{[this._instance,this._ref]=function({element:e,app:n,fieldIdentifier:i,qId:o,stateName:r="$",options:s={},renderedCallback:a}){const l=t.createRef();return[Br.createPortal(t.createElement(Zy,{ref:l,app:n,element:e,fieldIdentifier:i,qId:o,stateName:r,initialOptions:s,renderedCallback:a}),e,by()),l]}({element:s,app:e,fieldIdentifier:n,qId:i,options:Xy({onSelectionActivated:c,onSelectionDeactivated:d,...a}),stateName:a.stateName||"$",renderedCallback:o}),l.add(this._instance)})},unmount(){this._instance&&(l.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){const t=()=>r.emit("selectionActivated"),n=()=>r.emit("selectionDeactivated");if(r._ref?.current){const i=Xy({onSelectionActivated:t,onSelectionDeactivated:n,...e});r._ref.current.setOptions(i)}}}};return gb(r),r},getRegisteredTypes:g.getList,__DO_NOT_USE__:{types:g,popover(n,i,o){v._popoverInstance&&(l.remove(v._popoverInstance),v._popoverInstance=null);const r=((e={})=>{const t={...Jy};return Oc()(!0,t,e),t})({onPopoverClose:()=>v.emit("fieldPopoverClose"),...o});v._popoverInstance=t.createElement(eA,{element:n,key:by(),app:e,fieldIdentifier:i,options:r,stateName:o.stateName||"$"}),l.add(v._popoverInstance)}}};return u.public.nebbie=v,u.types=g,gb(v),v}return r.createConfiguration=t=>e(((e,t)=>({context:Ek(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:Lk(e.types,t.types),themes:Lk(e.themes,t.themes),flags:Ek(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:Ek(e.anything,t.anything)}))(i,t)),r.config=i,r}(xk),Ik=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},Nk=globalThis.crypto||{getRandomValues:()=>123456},Mk=function(e){return t=>{const n=Oc()({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^Nk.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}`;const i=n._mock;let o=n;return i&&(delete n._mock,o=Oc()({},n,i)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}},Tk=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,Rk=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const r=Tk(e,{defaultValue:t,args:o});return n?new Promise(e=>{setTimeout(()=>e(r),i)}):r},qk=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Ok(e){return!qk.includes(e)}function Pk(e){const t=Tk(e.getLayout);return t.qInfo&&t.qInfo.qId}function Bk(e,t){let n=Pk(e);const{delay:i}=t,{id:o,session:r,...s}=e;if(o&&n&&o!==n)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${n}, id: ${o}`);n=n||o||"object - "+ +Date.now();const a={id:n,session:Tk(r,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{},...Object.entries(s).reduce((e,[t,n])=>({...e,[t]:Rk(n,{async:Ok(t),delay:i})}),{}),genericType:e.type};return{[n]:a}}function Fk(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Pk(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const Wk=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(Fk);const n=function(e,t){return e.reduce((e,n)=>({...e,...Bk(n,t)}),{})}(e,t);return async e=>Promise.resolve(n[e])},zk=function(){return()=>Promise.resolve({id:"app-layout"})},Vk={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new Ik,i=new Mk(n),o=new Wk(e,t),r=new zk,s={id:"app - "+ +Date.now(),session:n,createSessionObject:i,destroySessionObject:async()=>{},getObject:o,getAppLayout:r,getListObject:async e=>o(e.qInfo?.qId)};return Promise.resolve(s)}(e,t)},Hk=Vk,jk={generator:uk,hook:SS,theme:sd,locale:Xl};var Uk=s(4548),$k=s(8044),Gk=s(5475),Kk=s(2579),Qk=s(2661);function Yk(e){return(0,ln.Ay)("MuiToolbar",e)}(0,an.A)("MuiToolbar",["root","gutters","regular","dense"]);const Xk=["className","component","disableGutters","variant"],Zk=(0,sn.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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),Jk=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:r=!1,variant:s="regular"}=n,a=(0,Zt.A)(n,Xk),l=(0,Jt.A)({},n,{component:o,disableGutters:r,variant:s}),c=(e=>{const{classes:t,disableGutters:n,variant:i}=e,o={root:["root",!n&&"gutters",i]};return(0,tn.A)(o,Yk,t)})(l);return(0,dn.jsx)(Zk,(0,Jt.A)({as:o,className:(0,en.A)(c.root,i),ref:t,ownerState:l},a))}),ex=Jk;function tx(e){return(0,ln.Ay)("MuiToggleButtonGroup",e)}const nx=(0,an.A)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),ix=t.createContext({}),ox=t.createContext(void 0);function rx(e){return(0,ln.Ay)("MuiToggleButton",e)}const sx=(0,an.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),ax=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],lx=(0,sn.Ay)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nx.grouped}`]:t.grouped},{[`& .${nx.grouped}`]:t[`grouped${(0,Vn.A)(n.orientation)}`]},{[`& .${nx.firstButton}`]:t.firstButton},{[`& .${nx.lastButton}`]:t.lastButton},{[`& .${nx.middleButton}`]:t.middleButton},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>(0,Jt.A)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${nx.grouped}`]:(0,Jt.A)({},"horizontal"===e.orientation?{[`&.${nx.selected} + .${nx.grouped}.${nx.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${nx.selected} + .${nx.grouped}.${nx.selected}`]:{borderTop:0,marginTop:0}})},"horizontal"===e.orientation?{[`& .${nx.firstButton},& .${nx.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${nx.lastButton},& .${nx.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${nx.firstButton},& .${nx.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${nx.lastButton},& .${nx.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},"horizontal"===e.orientation?{[`& .${nx.lastButton}.${sx.disabled},& .${nx.middleButton}.${sx.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${nx.lastButton}.${sx.disabled},& .${nx.middleButton}.${sx.disabled}`]:{borderTop:"1px solid transparent"}})),cx=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:r,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:h="horizontal",size:u="medium",value:g}=i,p=(0,Zt.A)(i,ax),m=(0,Jt.A)({},i,{disabled:a,fullWidth:c,orientation:h,size:u}),f=(e=>{const{classes:t,orientation:n,fullWidth:i,disabled:o}=e,r={root:["root","vertical"===n&&"vertical",i&&"fullWidth"],grouped:["grouped",`grouped${(0,Vn.A)(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,tn.A)(r,tx,t)})(m),b=t.useCallback((e,t)=>{if(!d)return;const n=g&&g.indexOf(t);let i;g&&n>=0?(i=g.slice(),i.splice(n,1)):i=g?g.concat(t):[t],d(e,i)},[d,g]),v=t.useCallback((e,t)=>{d&&d(e,g===t?null:t)},[d,g]),C=t.useMemo(()=>({className:f.grouped,onChange:l?v:b,value:g,size:u,fullWidth:c,color:s,disabled:a}),[f.grouped,l,v,b,g,u,c,s,a]),_=function(e){return t.Children.toArray(e).filter(e=>t.isValidElement(e))}(o),y=_.length,A=e=>{const t=0===e,n=e===y-1;return t&&n?"":t?f.firstButton:n?f.lastButton:f.middleButton};return(0,dn.jsx)(lx,(0,Jt.A)({role:"group",className:(0,en.A)(f.root,r),ref:n,ownerState:m},p,{children:(0,dn.jsx)(ix.Provider,{value:C,children:_.map((e,t)=>(0,dn.jsx)(ox.Provider,{value:A(t),children:e},t))})}))}),dx=cx;var hx=s(787);function ux(e){if(e.type)return e;if("#"===e.charAt(0))return ux(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Va.A)(9,e));let i,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),i=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,Va.A)(10,i))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:i}}function gx(e,t){return e=ux(e),t=function(e,t=0,n=1){return(0,hx.A)(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return-1!==t.indexOf("rgb")?i=i.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),i=-1!==t.indexOf("color")?`${n} ${i.join(" ")}`:`${i.join(", ")}`,`${t}(${i})`}(e)}function px(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}const mx=["value"],fx=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],bx=(0,sn.Ay)(ir,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${(0,Vn.A)(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n,i="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(i="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,n="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,Jt.A)({},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%"},{[`&.${sx.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})`:gx(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sx.selected}`]:{color:i,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:gx(i,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gx(i,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:gx(i,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})}),vx=t.forwardRef(function(e,n){const i=t.useContext(ix),{value:o}=i,r=(0,Zt.A)(i,mx),s=t.useContext(ox),a=(0,fn.A)((0,Jt.A)({},r,{selected:px(e.value,o)}),e),l=(0,rn.b)({props:a,name:"MuiToggleButton"}),{children:c,className:d,color:h="standard",disabled:u=!1,disableFocusRipple:g=!1,fullWidth:p=!1,onChange:m,onClick:f,selected:b,size:v="medium",value:C}=l,_=(0,Zt.A)(l,fx),y=(0,Jt.A)({},l,{color:h,disabled:u,disableFocusRipple:g,fullWidth:p,size:v}),A=(e=>{const{classes:t,fullWidth:n,selected:i,disabled:o,size:r,color:s}=e,a={root:["root",i&&"selected",o&&"disabled",n&&"fullWidth",`size${(0,Vn.A)(r)}`,s]};return(0,tn.A)(a,rx,t)})(y),w=s||"";return(0,dn.jsx)(bx,(0,Jt.A)({className:(0,en.A)(r.className,A.root,d,w),disabled:u,focusRipple:!g,ref:n,onClick:e=>{f&&(f(e,C),e.defaultPrevented)||m&&m(e,C)},onChange:m,value:C,ownerState:y,"aria-pressed":b},_,{children:c}))}),Cx=vx;function _x(e){return(0,ln.Ay)("MuiMenu",e)}(0,an.A)("MuiMenu",["root","paper","list"]);const yx=["onEntering"],Ax=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],wx={vertical:"top",horizontal:"right"},Sx={vertical:"top",horizontal:"left"},kx=(0,sn.Ay)(xh,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xx=(0,sn.Ay)(Sh,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ex=(0,sn.Ay)(Wf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Lx=t.forwardRef(function(e,n){var i,o;const r=(0,rn.b)({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:h,open:u,PaperProps:g={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:{onEntering:f}={},variant:b="selectedMenu",slots:v={},slotProps:C={}}=r,_=(0,Zt.A)(r.TransitionProps,yx),y=(0,Zt.A)(r,Ax),A=ei(),w=(0,Jt.A)({},r,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:f,PaperProps:g,transitionDuration:m,TransitionProps:_,variant:b}),S=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"],paper:["paper"],list:["list"]},_x,t)})(w),k=s&&!c&&u,x=t.useRef(null);let E=-1;t.Children.map(a,(e,n)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===E)&&(E=n))});const L=null!=(i=v.paper)?i:xx,D=null!=(o=C.paper)?o:g,I=$s({elementType:v.root,externalSlotProps:C.root,ownerState:w,className:[S.root,l]}),N=$s({elementType:L,externalSlotProps:D,ownerState:w,className:S.paper});return(0,dn.jsx)(kx,(0,Jt.A)({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:A?"right":"left"},transformOrigin:A?wx:Sx,slots:{paper:L,root:v.root},slotProps:{root:I,paper:N},open:u,ref:n,transitionDuration:m,TransitionProps:(0,Jt.A)({onEntering:(e,t)=>{x.current&&x.current.adjustStyleForScrollbar(e,{direction:A?"rtl":"ltr"}),f&&f(e,t)}},_),ownerState:w},y,{classes:p,children:(0,dn.jsx)(Ex,(0,Jt.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))},actions:x,autoFocus:s&&(-1===E||c),autoFocusItem:k,variant:b},d,{className:(0,en.A)(S.list,d.className),children:a}))}))}),Dx=Lx,Ix=new Map,Nx=[],Mx=Nx.map,Tx=Nx.some,Rx=Nx.hasOwnProperty,qx=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,Ox=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,Px=/(?:\.[^/]*|\/)$/;class Bx extends Error{constructor(e){super(e)}}function Fx(e){const t=qx.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function Wx(e){const t=new Map,n=o(null);function i(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise((t,n)=>{const i=document.createElement("script");i.onload=()=>{try{t(Nx.pop()(o(e)))}catch(e){n(new Bx("invalid module"))}i.remove()},i.onerror=()=>{n(new Bx("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=jx,document.head.appendChild(i)})),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function r(e){return arguments.length>1?Promise.all(Mx.call(arguments,n)).then(zx):n(e)}return r.alias=function(t){return Wx((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i))},r.resolve=e,r}function zx(e){const t={};for(const n of e)for(const e in n)Rx.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:Vx(n,e)}):t[e]=n[e]);return t}function Vx(e,t){return()=>e[t]}function Hx(e){return"exports"==(e+="")||"module"===e}function jx(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),Nx.push(Tx.call(t,Hx)?e=>{const i={},o={exports:i};return Promise.all(Mx.call(t,t=>"exports"==(t+="")?i:"module"===t?o:e(t))).then(e=>(n.apply(null,e),o.exports))}:e=>Promise.all(Mx.call(t,e)).then(e=>"function"==typeof n?n.apply(null,e):n))}Bx.prototype.name=Bx.name,Wx(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function n(t){const n=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let i=Ix.get(n);return i||Ix.set(n,i=fetch(n).then(e=>{if(!e.ok)throw new Bx("unable to load package.json");return e.redirected&&!Ix.has(e.url)&&Ix.set(e.url,i),e.json()})),i}return async function(i,o){if(i.startsWith(e)&&(i=i.substring(e.length)),/^(\w+:)|\/\//i.test(i))return i;if(/^[.]{0,2}\//i.test(i))return new URL(i,null==o?location:o).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new Bx("illegal name");const r=Fx(i);if(!r)return`${e}${i}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await n(Fx(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!Px.test(r.path)&&(r.path+=".js"),r.path&&r.version&&Ox.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await n(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),Px.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),jx.amd={};const Ux=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`,o=Wx(async e=>i(e));return o.alias({"@nebula.js/stardust":e})(n||t)},$x={};function Gx(e){const[n,i]=(0,t.useState)();return(0,t.useEffect)(()=>{if(e){const t=()=>{e.getProperties().then(e=>{i(e)})};return e.on("changed",t),t(),()=>{e.removeListener("changed",t)}}return()=>{}},[e]),[n,t=>e.setProperties(t)]}window.onHotChange=(e,t)=>($x[e]||($x[e]=[]),$x[e].push(t),window[e]&&t(),()=>{const n=$x[e].indexOf(t);$x[e].splice(n,1)});const Kx=t.createContext();function Qx({dc:e,def:t,properties:n,dimensions:i}){const o=n,r={dimensions:()=>i,measures:()=>[],addDimension(n){const i="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||by(),i.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(i,o),i},removeDimension(e){const n=i[e];return t.dimensions.removed(n,o,e),n},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>r.dimensions().length<r.maxDimensions(),canAddMeasure:()=>!1};return r}const Yx={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},Xx={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function Zx(e,t="dimension"){const n="dimension"===t?Yx:Xx,[i]=fd(n,e),[o]=yd(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function Jx(e){return(0,ln.Ay)("MuiListSubheader",e)}(0,an.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const eE=["className","color","component","disableGutters","disableSticky","inset"],tE=(0,sn.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Vn.A)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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})),nE=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=n,c=(0,Zt.A)(n,eE),d=(0,Jt.A)({},n,{color:o,component:r,disableGutters:s,disableSticky:a,inset:l}),h=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:r}=e,s={root:["root","default"!==n&&`color${(0,Vn.A)(n)}`,!i&&"gutters",o&&"inset",!r&&"sticky"]};return(0,tn.A)(s,Jx,t)})(d);return(0,dn.jsx)(tE,(0,Jt.A)({as:r,className:(0,en.A)(h.root,i),ref:t,ownerState:d},c))});nE.muiSkipListHighlight=!0;const iE=nE;var oE=s(5543),rE=s.n(oE),sE=s(5869),aE=s.n(sE),lE=s(6284),cE=s(4445);function dE(e){return(0,ln.Ay)("MuiInput",e)}const hE=(0,Jt.A)({},Fa,(0,an.A)("MuiInput",["root","underline","input"])),uE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],gE=(0,sn.Ay)(ol,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nl(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,Jt.A)({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"},[`&.${hE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hE.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${hE.disabled}, .${hE.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${hE.disabled}:before`]:{borderBottomStyle:"dotted"}})}),pE=(0,sn.Ay)(rl,{name:"MuiInput",slot:"Input",overridesResolver:il})({}),mE=t.forwardRef(function(e,t){var n,i,o,r;const s=(0,rn.b)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:u=!1,slotProps:g,slots:p={},type:m="text"}=s,f=(0,Zt.A)(s,uE),b=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,tn.A)(i,dE,t);return(0,Jt.A)({},t,o)})(s),v={root:{ownerState:{disableUnderline:a}}},C=(null!=g?g:c)?(0,Sn.A)(null!=g?g:c,v):v,_=null!=(n=null!=(i=p.root)?i:l.Root)?n:gE,y=null!=(o=null!=(r=p.input)?r:l.Input)?o:pE;return(0,dn.jsx)(ll,(0,Jt.A)({slots:{root:_,input:y},slotProps:C,fullWidth:d,inputComponent:h,multiline:u,ref:t,type:m},f,{classes:b}))});mE.muiName="Input";const fE=mE;function bE(e){return(0,ln.Ay)("MuiFilledInput",e)}const vE=(0,Jt.A)({},Fa,(0,an.A)("MuiFilledInput",["root","underline","input"])),CE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_E=(0,sn.Ay)(ol,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nl(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const i="light"===e.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Jt.A)({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}},[`&.${vE.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${vE.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vE.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(.${vE.disabled}, .${vE.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vE.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,Jt.A)({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}))}),yE=(0,sn.Ay)(rl,{name:"MuiFilledInput",slot:"Input",overridesResolver:il})(({theme:e,ownerState:t})=>(0,Jt.A)({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})),AE=t.forwardRef(function(e,t){var n,i,o,r;const s=(0,rn.b)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:h=!1,slotProps:u,slots:g={},type:p="text"}=s,m=(0,Zt.A)(s,CE),f=(0,Jt.A)({},s,{fullWidth:c,inputComponent:d,multiline:h,type:p}),b=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,tn.A)(i,bE,t);return(0,Jt.A)({},t,o)})(s),v={root:{ownerState:f},input:{ownerState:f}},C=(null!=u?u:l)?(0,Sn.A)(v,null!=u?u:l):v,_=null!=(n=null!=(i=g.root)?i:a.Root)?n:_E,y=null!=(o=null!=(r=g.input)?r:a.Input)?o:yE;return(0,dn.jsx)(ll,(0,Jt.A)({slots:{root:_,input:y},componentsProps:C,fullWidth:c,inputComponent:d,multiline:h,ref:t,type:p},m,{classes:b}))});AE.muiName="Input";const wE=AE;function SE(e){return(0,ln.Ay)("MuiFormLabel",e)}const kE=(0,an.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),xE=["children","className","color","component","disabled","error","filled","focused","required"],EE=(0,sn.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,Jt.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>(0,Jt.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${kE.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${kE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${kE.error}`]:{color:(e.vars||e).palette.error.main}})),LE=(0,sn.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${kE.error}`]:{color:(e.vars||e).palette.error.main}})),DE=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiFormLabel"}),{children:i,className:o,component:r="label"}=n,s=(0,Zt.A)(n,xE),a=Pa({props:n,muiFormControl:Oa(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Jt.A)({},n,{color:a.color||"primary",component:r,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:n,focused:i,disabled:o,error:r,filled:s,required:a}=e,l={root:["root",`color${(0,Vn.A)(n)}`,o&&"disabled",r&&"error",s&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return(0,tn.A)(l,SE,t)})(l);return(0,dn.jsxs)(EE,(0,Jt.A)({as:r,ownerState:l,className:(0,en.A)(c.root,o),ref:t},s,{children:[i,a.required&&(0,dn.jsxs)(LE,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}),IE=DE;function NE(e){return(0,ln.Ay)("MuiInputLabel",e)}(0,an.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ME=["disableAnimation","margin","shrink","variant","className"],TE=(0,sn.Ay)(IE,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kE.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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,Jt.A)({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,Jt.A)({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,Jt.A)({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)"}))),RE=t.forwardRef(function(e,t){const n=(0,rn.b)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:o,className:r}=n,s=(0,Zt.A)(n,ME),a=Oa();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=Pa({props:n,muiFormControl:a,states:["size","variant","required","focused"]}),d=(0,Jt.A)({},n,{disableAnimation:i,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),h=(e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:r,variant:s,required:a}=e,l={root:["root",n&&"formControl",!r&&"animated",o&&"shrink",i&&"normal"!==i&&`size${(0,Vn.A)(i)}`,s],asterisk:[a&&"asterisk"]},c=(0,tn.A)(l,NE,t);return(0,Jt.A)({},t,c)})(d);return(0,dn.jsx)(TE,(0,Jt.A)({"data-shrink":l,ownerState:d,ref:t,className:(0,en.A)(h.root,r)},s,{classes:h}))}),qE=RE;function OE(e){return(0,ln.Ay)("MuiFormControl",e)}(0,an.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const PE=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],BE=(0,sn.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,Jt.A)({},t.root,t[`margin${(0,Vn.A)(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>(0,Jt.A)({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%"})),FE=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiFormControl"}),{children:o,className:r,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:h=!1,hiddenLabel:u=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined"}=i,b=(0,Zt.A)(i,PE),v=(0,Jt.A)({},i,{color:s,component:a,disabled:l,error:c,fullWidth:h,hiddenLabel:u,margin:g,required:p,size:m,variant:f}),C=(e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root","none"!==n&&`margin${(0,Vn.A)(n)}`,i&&"fullWidth"]};return(0,tn.A)(o,OE,t)})(v),[_,y]=t.useState(()=>{let e=!1;return o&&t.Children.forEach(o,t=>{if(!(0,ms.A)(t,["Input","Select"]))return;const n=(0,ms.A)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[A,w]=t.useState(()=>{let e=!1;return o&&t.Children.forEach(o,t=>{(0,ms.A)(t,["Input","Select"])&&(el(t.props,!0)||el(t.props.inputProps,!0))&&(e=!0)}),e}),[S,k]=t.useState(!1);l&&S&&k(!1);const x=void 0===d||l?S:d;let E;const L=t.useMemo(()=>({adornedStart:_,setAdornedStart:y,color:s,disabled:l,error:c,filled:A,focused:x,fullWidth:h,hiddenLabel:u,size:m,onBlur:()=>{k(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{k(!0)},registerEffect:E,required:p,variant:f}),[_,s,l,c,A,x,h,u,E,p,m,f]);return(0,dn.jsx)(qa.Provider,{value:L,children:(0,dn.jsx)(BE,(0,Jt.A)({as:a,ownerState:v,className:(0,en.A)(C.root,r),ref:n},b,{children:o}))})}),WE=FE;function zE(e){return(0,ln.Ay)("MuiFormHelperText",e)}const VE=(0,an.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var HE;const jE=["children","className","component","disabled","error","filled","focused","margin","required","variant"],UE=(0,sn.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,Vn.A)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>(0,Jt.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${VE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${VE.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),$E=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:r="p"}=n,s=(0,Zt.A)(n,jE),a=Pa({props:n,muiFormControl:Oa(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Jt.A)({},n,{component:r,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,contained:n,size:i,disabled:o,error:r,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",r&&"error",i&&`size${(0,Vn.A)(i)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,tn.A)(c,zE,t)})(l);return(0,dn.jsx)(UE,(0,Jt.A)({as:r,ownerState:l,className:(0,en.A)(c.root,o),ref:t},s,{children:" "===i?HE||(HE=(0,dn.jsx)("span",{className:"notranslate",children:"​"})):i}))}),GE=$E;function KE(e){return(0,ln.Ay)("MuiNativeSelect",e)}const QE=(0,an.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),YE=["className","disabled","error","IconComponent","inputRef","variant"],XE=({ownerState:e,theme:t})=>(0,Jt.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Jt.A)({},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"},[`&.${QE.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}}),ZE=(0,sn.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Na.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${QE.multiple}`]:t.multiple}]}})(XE),JE=({ownerState:e,theme:t})=>(0,Jt.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${QE.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),eL=(0,sn.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Vn.A)(n.variant)}`],n.open&&t.iconOpen]}})(JE),tL=t.forwardRef(function(e,n){const{className:i,disabled:o,error:r,IconComponent:s,inputRef:a,variant:l="standard"}=e,c=(0,Zt.A)(e,YE),d=(0,Jt.A)({},e,{disabled:o,variant:l,error:r}),h=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e,a={select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Vn.A)(n)}`,r&&"iconOpen",i&&"disabled"]};return(0,tn.A)(a,KE,t)})(d);return(0,dn.jsxs)(t.Fragment,{children:[(0,dn.jsx)(ZE,(0,Jt.A)({ownerState:d,className:(0,en.A)(h.select,i),disabled:o,ref:a||n},c)),e.multiple?null:(0,dn.jsx)(eL,{as:s,ownerState:d,className:h.icon})]})}),nL=tL;var iL=s(9395);function oL(e){return(0,ln.Ay)("MuiSelect",e)}const rL=(0,an.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var sL;const aL=["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"],lL=(0,sn.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${rL.select}`]:t.select},{[`&.${rL.select}`]:t[n.variant]},{[`&.${rL.error}`]:t.error},{[`&.${rL.multiple}`]:t.multiple}]}})(XE,{[`&.${rL.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cL=(0,sn.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Vn.A)(n.variant)}`],n.open&&t.iconOpen]}})(JE),dL=(0,sn.Ay)("input",{shouldForwardProp:e=>(0,iL.A)(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 hL(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function uL(e){return null==e||"string"==typeof e&&!e.trim()}const gL=t.forwardRef(function(e,n){var i;const{"aria-describedby":o,"aria-label":r,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:h,disabled:u,displayEmpty:g,error:p=!1,IconComponent:m,inputRef:f,labelId:b,MenuProps:v={},multiple:C,name:_,onBlur:y,onChange:A,onClose:w,onFocus:S,onOpen:k,open:x,readOnly:E,renderValue:L,SelectDisplayProps:D={},tabIndex:I,value:N,variant:M="standard"}=e,T=(0,Zt.A)(e,aL),[R,q]=(0,uu.A)({controlled:N,default:h,name:"Select"}),[O,P]=(0,uu.A)({controlled:x,default:d,name:"Select"}),B=t.useRef(null),F=t.useRef(null),[W,z]=t.useState(null),{current:V}=t.useRef(null!=x),[H,j]=t.useState(),U=(0,wo.A)(n,f),$=t.useCallback(e=>{F.current=e,e&&z(e)},[]),G=null==W?void 0:W.parentNode;t.useImperativeHandle(U,()=>({focus:()=>{F.current.focus()},node:B.current,value:R}),[R]),t.useEffect(()=>{d&&O&&W&&!V&&(j(a?null:G.clientWidth),F.current.focus())},[W,a]),t.useEffect(()=>{s&&F.current.focus()},[s]),t.useEffect(()=>{if(!b)return;const e=(0,ha.A)(F.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[b]);const K=(e,t)=>{e?k&&k(t):w&&w(t),V||(j(a?null:G.clientWidth),P(e))},Q=t.Children.toArray(l),Y=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(C){n=Array.isArray(R)?R.slice():[];const t=R.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),R!==n&&(q(n),A)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:_}}),A(o,e)}C||K(!1,t)}},X=null!==W&&O;let Z,J;delete T["aria-invalid"];const ee=[];let te=!1,ne=!1;(el({value:R})||g)&&(L?Z=L(R):te=!0);const ie=Q.map(e=>{if(!t.isValidElement(e))return null;let n;if(C){if(!Array.isArray(R))throw new Error((0,Va.A)(2));n=R.some(t=>hL(t,e.props.value)),n&&te&&ee.push(e.props.children)}else n=hL(R,e.props.value),n&&te&&(J=e.props.children);return n&&(ne=!0),t.cloneElement(e,{"aria-selected":n?"true":"false",onClick:Y(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:n,value:void 0,"data-value":e.props.value})});te&&(Z=C?0===ee.length?null:ee.reduce((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):J);let oe,re=H;!a&&V&&W&&(re=G.clientWidth),oe=void 0!==I?I:u?null:0;const se=D.id||(_?`mui-component-select-${_}`:void 0),ae=(0,Jt.A)({},e,{variant:M,value:R,open:X,error:p}),le=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e,a={select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Vn.A)(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return(0,tn.A)(a,oL,t)})(ae),ce=(0,Jt.A)({},v.PaperProps,null==(i=v.slotProps)?void 0:i.paper),de=(0,oi.A)();return(0,dn.jsxs)(t.Fragment,{children:[(0,dn.jsx)(lL,(0,Jt.A)({ref:$,tabIndex:oe,role:"combobox","aria-controls":de,"aria-disabled":u?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[b,se].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{E||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))},onMouseDown:u||E?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),K(!0,e))},onBlur:e=>{!X&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:R,name:_}}),y(e))},onFocus:S},D,{ownerState:ae,className:(0,en.A)(D.className,le.select,c),id:se,children:uL(Z)?sL||(sL=(0,dn.jsx)("span",{className:"notranslate",children:"​"})):Z})),(0,dn.jsx)(dL,(0,Jt.A)({"aria-invalid":p,value:Array.isArray(R)?R.join(","):R,name:_,ref:B,"aria-hidden":!0,onChange:e=>{const t=Q.find(t=>t.props.value===e.target.value);void 0!==t&&(q(t.props.value),A&&A(e,t))},tabIndex:-1,disabled:u,className:le.nativeInput,autoFocus:s,ownerState:ae},T)),(0,dn.jsx)(cL,{as:m,className:le.icon,ownerState:ae}),(0,dn.jsx)(Dx,(0,Jt.A)({id:`menu-${_||""}`,anchorEl:G,open:X,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:(0,Jt.A)({"aria-labelledby":b,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:de},v.MenuListProps),slotProps:(0,Jt.A)({},v.slotProps,{paper:(0,Jt.A)({},ce,{style:(0,Jt.A)({minWidth:re},null!=ce?ce.style:null)})}),children:ie}))]})}),pL=gL,mL=(0,Gi.A)((0,dn.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),fL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bL=["root"],vL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,Na.A)(e)&&"variant"!==e,slot:"Root"},CL=(0,sn.Ay)(fE,vL)(""),_L=(0,sn.Ay)(pl,vL)(""),yL=(0,sn.Ay)(wE,vL)(""),AL=t.forwardRef(function(e,n){const i=(0,rn.b)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=mL,id:h,input:u,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:b=!1,native:v=!1,onClose:C,onOpen:_,open:y,renderValue:A,SelectDisplayProps:w,variant:S="outlined"}=i,k=(0,Zt.A)(i,fL),x=v?nL:pL,E=Pa({props:i,muiFormControl:Oa(),states:["variant","error"]}),L=E.variant||S,D=(0,Jt.A)({},i,{variant:L,classes:s}),I=(e=>{const{classes:t}=e;return t})(D),N=(0,Zt.A)(I,bL),M=u||{standard:(0,dn.jsx)(CL,{ownerState:D}),outlined:(0,dn.jsx)(_L,{label:p,ownerState:D}),filled:(0,dn.jsx)(yL,{ownerState:D})}[L],T=(0,wo.A)(n,Ed(M));return(0,dn.jsx)(t.Fragment,{children:t.cloneElement(M,(0,Jt.A)({inputComponent:x,inputProps:(0,Jt.A)({children:r,error:E.error,IconComponent:d,variant:L,type:void 0,multiple:b},v?{id:h}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:C,onOpen:_,open:y,renderValue:A,SelectDisplayProps:(0,Jt.A)({id:h},w)},g,{classes:g?(0,Sn.A)(N,g.classes):N},u?u.props.inputProps:{})},(b&&v||c)&&"outlined"===L?{notched:!0}:{},{ref:T,className:(0,en.A)(M.props.className,a,I.root)},!u&&{variant:L},k))})});AL.muiName="Select";const wL=AL;function SL(e){return(0,ln.Ay)("MuiTextField",e)}(0,an.A)("MuiTextField",["root"]);const kL=["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"],xL={standard:fE,filled:wE,outlined:pl},EL=(0,sn.Ay)(WE,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LL=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:r,className:s,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:h,fullWidth:u=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:b,inputRef:v,label:C,maxRows:_,minRows:y,multiline:A=!1,name:w,onBlur:S,onChange:k,onFocus:x,placeholder:E,required:L=!1,rows:D,select:I=!1,SelectProps:N,type:M,value:T,variant:R="outlined"}=n,q=(0,Zt.A)(n,kL),O=(0,Jt.A)({},n,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:u,multiline:A,required:L,select:I,variant:R}),P=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"]},SL,t)})(O),B={};"outlined"===R&&(m&&void 0!==m.shrink&&(B.notched=m.shrink),B.label=C),I&&(N&&N.native||(B.id=void 0),B["aria-describedby"]=void 0);const F=(0,oi.A)(p),W=g&&F?`${F}-helper-text`:void 0,z=C&&F?`${F}-label`:void 0,V=xL[R],H=(0,dn.jsx)(V,(0,Jt.A)({"aria-describedby":W,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:u,multiline:A,name:w,rows:D,maxRows:_,minRows:y,type:M,value:T,id:F,inputRef:v,onBlur:S,onChange:k,onFocus:x,placeholder:E,inputProps:f},B,b));return(0,dn.jsxs)(EL,(0,Jt.A)({className:(0,en.A)(P.root,s),disabled:c,error:d,fullWidth:u,ref:t,required:L,color:a,variant:R,ownerState:O},q,{children:[null!=C&&""!==C&&(0,dn.jsx)(qE,(0,Jt.A)({htmlFor:F,id:z},m,{children:C})),I?(0,dn.jsx)(wL,(0,Jt.A)({"aria-describedby":W,id:F,labelId:z,value:T,input:H},N,{children:r})):H,g&&(0,dn.jsx)(GE,(0,Jt.A)({id:W},h,{children:g}))]}))}),DL=LL,IL="Search",NL={gridContainer:`${IL}-gridContainer`,gridItem:`${IL}-gridItem`},ML=(0,sn.Ay)(yr)(({theme:e})=>({[`& .${NL.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${NL.gridItem}`]:{padding:e.spacing(0,1,0,1)}}));function TL(){const e=document.querySelector('meta[name="viewport"]');e instanceof HTMLMetaElement&&(e.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0")}function RL({onChange:e=()=>{},onEnter:n=()=>{},onEscape:i=()=>{}}){const[o,r]=(0,t.useState)("");return t.createElement(ML,{className:NL.gridContainer,item:!0,container:!0,direction:"row",alignItems:"center"},t.createElement(yr,{item:!0},t.createElement(rb,null)),t.createElement(yr,{className:NL.gridItem,item:!0,xs:!0},t.createElement(DL,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{r(t.target.value),e(t.target.value)},onFocus:TL,onKeyDown:e=>{switch(e.key){case"Enter":n(),r("");break;case"Escape":i()}}})))}function qL({field:e,onSelect:n,sub:i,parts:o}){return t.createElement(Is,{button:!0,onClick:()=>n(e.qName),"data-key":e.qName},t.createElement(Os,null,o.map((e,n)=>t.createElement("span",{key:n,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text))),i&&t.createElement(lE.A,{fontSize:"small"}))}function OL({item:e,onSelect:n,parts:i}){return t.createElement(Is,{button:!0,onClick:()=>n(e.qInfo),"data-key":e.qInfo.qId},t.createElement(Os,null,i.map((e,n)=>t.createElement("span",{key:n,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text))))}function PL({aggr:e,field:n,onSelect:i}){return t.createElement(Is,{button:!0,onClick:()=>i(e),"data-key":e},t.createElement(Os,null,`${e}(${n})`))}function BL({app:e,onSelect:n,title:i="",type:o="dimension",searchTerm:r=""}){const[s]=Zx(e,o),a=(0,t.useMemo)(()=>s.slice().sort((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())),[s]);return s.length>0?t.createElement(t.Fragment,null,t.createElement(iE,{component:"div",style:{backgroundColor:"inherit"}},i),a.map(e=>{const i=aE()(e.qData.title,r),o=rE()(e.qData.title,i);return r&&0===i.length?null:t.createElement(OL,{key:e.qInfo.qId,item:e,onSelect:n,parts:o})})):null}function FL({alignTo:e,show:n,close:i,onSelected:o,type:r}){const s=(0,t.useContext)(Kx),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(""),h=Gn(),[u]=fd({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=yd(u),p=(0,t.useMemo)(()=>(g&&g.qFieldList.qItems||[]).slice().sort((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())),[g]),m=e=>{e&&e.qId?(o(e),i()):"measure"===r?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return t.createElement(xh,{open:n,onClose:i,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:h.palette.background.lightest}}},!a&&t.createElement(RL,{onChange:d}),a&&t.createElement(gs,{dense:!0,component:"nav"},t.createElement(Is,{button:!0,onClick:()=>l(null)},t.createElement(Mf,null,t.createElement(cE.A,null)),t.createElement(Os,null,"Back")),t.createElement(hf,null),t.createElement(iE,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map(e=>t.createElement(PL,{key:e,aggr:e,field:a,onSelect:f}))),!a&&p.length>0&&t.createElement(gs,{dense:!0,component:"nav",style:{background:h.palette.background.lightest}},t.createElement(BL,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),t.createElement(iE,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map(e=>{const n=aE()(e.qName,c),i=rE()(e.qName,n);return c&&0===n.length?null:t.createElement(qL,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:i})})))}const WL=({field:e,libraryItems:t})=>{if(e.qLibraryId){const n=t.filter(t=>t.qInfo.qId===e.qLibraryId)[0];return n?n.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function zL({items:e,type:n="dimension",label:i="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,t.useState)(!1),d=(0,t.useRef)(null),h=(0,t.useContext)(Kx),[u]=Zx(h,n);return t.createElement("div",null,t.createElement(Lr,{variant:"overline"},i),t.createElement(gs,{dense:!0},e.map((e,i)=>t.createElement(Is,{disableGutters:!0,key:e.qDef&&e.qDef.cId||i},t.createElement(Os,null,t.createElement(WL,{field:e,libraryItems:u,type:n})),t.createElement(Ss,null,t.createElement(cr,{onClick:()=>{s(i)},size:"large"},t.createElement(as,null)))))),t.createElement(wl,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&t.createElement(FL,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?r(e):e&&r("dimension"===n?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:n}))}function VL({setProperties:e,target:n,properties:i}){const[o,r]=(0,t.useState)([]),s=n.dimensions&&n.dimensions.max&&n.dimensions.max()>1?Qx:oA,a=n.propertyPath.match("/qHyperCube")?iA:s,l=((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(i,n.propertyPath),c=(0,t.useMemo)(()=>a({def:n,dc:l,properties:i,dimensions:o}),[l,n,i,o]);return t.createElement("div",{style:{width:"100%"}},t.createElement(Lr,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},n.propertyPath),t.createElement(zL,{key:"dimensions",onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(n);e(i).then(()=>{r([...o,s])})},onRemoved:t=>{c.removeDimension(t),e(i).then(()=>{r([...o.slice(0,t),...o.slice(t+1)])})},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),t.createElement(zL,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(i)},onRemoved:t=>{c.removeMeasure(t),e(i)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function HL({setProperties:e,sn:n,properties:i}){if(!n)return null;const{targets:o}=n.qae.data;return o.length?t.createElement(gs,null,o.map(n=>t.createElement(Is,{key:n.propertyPath,divider:!0,disableGutters:!0},t.createElement(VL,{target:n,properties:i,setProperties:e})))):t.createElement(Lr,null,"No data targets found")}const jL=t.createContext({}),UL=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],$L=["component","slots","slotProps"],GL=["component"];function KL(e){return(0,ln.Ay)("MuiAccordion",e)}const QL=(0,an.A)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),YL=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],XL=(0,sn.Ay)(ph,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${QL.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${QL.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${QL.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e})=>({variants:[{props:e=>!e.square,style:{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}}}},{props:e=>!e.disableGutters,style:{[`&.${QL.expanded}`]:{margin:"16px 0"}}}]})),ZL=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiAccordion"}),{children:o,className:r,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:h=!1,slots:u={},slotProps:g={},TransitionComponent:p,TransitionProps:m}=i,f=(0,Zt.A)(i,YL),[b,v]=(0,uu.A)({controlled:c,default:s,name:"Accordion",state:"expanded"}),C=t.useCallback(e=>{v(!b),d&&d(e,!b)},[b,d,v]),[_,...y]=t.Children.toArray(o),A=t.useMemo(()=>({expanded:b,disabled:a,disableGutters:l,toggle:C}),[b,a,l,C]),w=(0,Jt.A)({},i,{square:h,disabled:a,disableGutters:l,expanded:b}),S=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:r}=e,s={root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!r&&"gutters"],region:["region"]};return(0,tn.A)(s,KL,t)})(w),k=(0,Jt.A)({transition:p},u),x=(0,Jt.A)({transition:m},g),[E,L]=function(e,t){const{className:n,elementType:i,ownerState:o,externalForwardedProps:r,getSlotOwnerState:s,internalForwardedProps:a}=t,l=(0,Zt.A)(t,UL),{component:c,slots:d={[e]:void 0},slotProps:h={[e]:void 0}}=r,u=(0,Zt.A)(r,$L),g=d[e]||i,p=js(h[e],o),m=Hs((0,Jt.A)({className:n},l,{externalForwardedProps:"root"===e?u:void 0,externalSlotProps:p})),{props:{component:f},internalRef:b}=m,v=(0,Zt.A)(m.props,GL),C=(0,Fs.A)(b,null==p?void 0:p.ref,t.ref),_=s?s(v):{},y=(0,Jt.A)({},o,_),A="root"===e?f||c:f,w=Ws(g,(0,Jt.A)({},"root"===e&&!c&&!d[e]&&a,"root"!==e&&!d[e]&&a,v,A&&{as:A},{ref:C}),y);return Object.keys(_).forEach(e=>{delete w[e]}),[g,w]}("transition",{elementType:ns,externalForwardedProps:{slots:k,slotProps:x},ownerState:w});return(0,dn.jsxs)(XL,(0,Jt.A)({className:(0,en.A)(S.root,r),ref:n,ownerState:w,square:h},f,{children:[(0,dn.jsx)(jL.Provider,{value:A,children:_}),(0,dn.jsx)(E,(0,Jt.A)({in:b,timeout:"auto"},L,{children:(0,dn.jsx)("div",{"aria-labelledby":_.props.id,id:_.props["aria-controls"],role:"region",className:S.region,children:y})}))]}))}),JL=ZL;function eD(e){return(0,ln.Ay)("MuiAccordionSummary",e)}const tD=(0,an.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),nD=["children","className","expandIcon","focusVisibleClassName","onClick"],iD=(0,sn.Ay)(ir,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${tD.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tD.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${tD.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${tD.expanded}`]:{minHeight:64}}}]}}),oD=(0,sn.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${tD.expanded}`]:{margin:"20px 0"}}}]})),rD=(0,sn.Ay)("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}),[`&.${tD.expanded}`]:{transform:"rotate(180deg)"}})),sD=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l}=i,c=(0,Zt.A)(i,nD),{disabled:d=!1,disableGutters:h,expanded:u,toggle:g}=t.useContext(jL),p=(0,Jt.A)({},i,{expanded:u,disabled:d,disableGutters:h}),m=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e,r={root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,tn.A)(r,eD,t)})(p);return(0,dn.jsxs)(iD,(0,Jt.A)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":u,className:(0,en.A)(m.root,r),focusVisibleClassName:(0,en.A)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:n,ownerState:p},c,{children:[(0,dn.jsx)(oD,{className:m.content,ownerState:p,children:o}),s&&(0,dn.jsx)(rD,{className:m.expandIconWrapper,ownerState:p,children:s})]}))}),aD=sD;function lD(e){return(0,ln.Ay)("MuiAccordionDetails",e)}(0,an.A)("MuiAccordionDetails",["root"]);const cD=["className"],dD=(0,sn.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),hD=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiAccordionDetails"}),{className:i}=n,o=(0,Zt.A)(n,cD),r=n,s=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"]},lD,t)})(r);return(0,dn.jsx)(dD,(0,Jt.A)({className:(0,en.A)(s.root,i),ref:t,ownerState:r},o))}),uD=hD;var gD=s(6698);let pD=null;const mD="AutoComponents",fD={summary:`${mD}-summary`,details:`${mD}-details`,root:`${mD}-root`},bD=(0,sn.Ay)(yr)(({theme:e})=>({[`& .${fD.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${fD.details}`]:{padding:e.spacing(1)}})),vD=(0,sn.Ay)(JL)(({theme:e})=>({[`& .${fD.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}})),CD={boolean:function({property:e,value:n,target:i,changed:o}){return t.createElement(hu,{control:t.createElement(Iu,{checked:n,onChange:t=>{i[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:n,target:i,changed:o}){const[r,s]=(0,t.useState)(n);return t.createElement(DL,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==n&&(i[e]=r,o())},label:e,value:r})},object:function({property:e,value:n,changed:i,app:o}){return t.createElement(vD,{square:!0,className:fD.root},t.createElement(aD,{expandIcon:t.createElement(gD.A,null),className:fD.summary},t.createElement(Lr,null,e)),t.createElement(uD,{className:fD.details},AD(n,i,o)))},number:function({property:e,value:n,target:i,changed:o}){const[r,s]=(0,t.useState)(+n);return t.createElement(DL,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==n&&(i[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:n,target:i,changed:o}){const r=n.qStringExpression&&n.qStringExpression.qExpr?n.qStringExpression.qExpr:"",[s,a]=(0,t.useState)(r);return t.createElement(DL,{variant:"standard",InputProps:{startAdornment:t.createElement(ob,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==n&&(i[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:n,target:i,changed:o,app:r}){const[s,a]=(0,t.useState)(n.name),[l,c]=(0,t.useState)([]);return(0,t.useEffect)(()=>{!async function(){const e=await async function(e){return pD||(pD=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await pD.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?t.createElement("em",null,"No variables in app"):t.createElement(WE,{size:"small",fullWidth:!0},t.createElement(wL,{onChange:t=>{a(t.target.value),i[e].name=t.target.value,i[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:s,renderValue:e=>0===e.length?t.createElement("em",null,"Select a variable"):e},l.map(e=>t.createElement(Lf,{key:e.value,value:e.value},e.label))))}},_D=/^q[A-Z]/;let yD=!1;function AD(e,n,i,o){o&&o.PP_EXPRESSIONS&&(yD=!0);const r=Object.keys(e).map(t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(_D.test(t))return!1;const n=((e,t)=>Array.isArray(e)?"array":yD&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":yD&&e&&"object"==typeof e&&"qStringExpression"in e?"expression":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"number"==typeof e?"number":e&&"object"==typeof e?"object":"unknown")(e[t],t);return!!CD[n]&&{Component:CD[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}}).filter(Boolean);return t.createElement(bD,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map(o=>t.createElement(yr,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},t.createElement(o.Component,{key:o.key,app:i,property:o.property,value:o.value,target:e,changed:n}))))}function wD({viz:e,sn:n,isTemp:i,storage:o,flags:r}){const[s,a]=Gx(e?.model),l=(0,t.useContext)(Kx),[c,d]=(0,t.useState)(!1!==o.get("readFromCache")),h=(0,t.useCallback)(()=>{a(s)},[e,n,s]);return n&&e&&s?t.createElement("div",{style:{minWidth:"250px",padding:"8px"}},i&&t.createElement(t.Fragment,null,t.createElement(yr,{item:!0,container:!0,alignItems:"center"},t.createElement(hu,{control:t.createElement(Iu,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),t.createElement(hf,null)),t.createElement(HL,{properties:s,setProperties:a,sn:n}),AD(s,h,l,r)):null}function SD(e){return(0,ln.Ay)("MuiDialog",e)}const kD=(0,an.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),xD=t.createContext({}),ED=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],LD=(0,sn.Ay)(Qd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),DD=(0,sn.Ay)(lh,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),ID=(0,sn.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,Vn.A)(n.scroll)}`]]}})(({ownerState:e})=>(0,Jt.A)({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"}})),ND=(0,sn.Ay)(ph,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,Vn.A)(n.scroll)}`],t[`paperWidth${(0,Vn.A)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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)`,[`&.${kD.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}`,[`&.${kD.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,[`&.${kD.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),MD=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiDialog"}),o=Gn(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:h,disableEscapeKeyDown:u=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:f,onClick:b,onClose:v,open:C,PaperComponent:_=ph,PaperProps:y={},scroll:A="paper",TransitionComponent:w=jd,transitionDuration:S=r,TransitionProps:k}=i,x=(0,Zt.A)(i,ED),E=(0,Jt.A)({},i,{disableEscapeKeyDown:u,fullScreen:g,fullWidth:p,maxWidth:m,scroll:A}),L=(e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${(0,Vn.A)(n)}`],paper:["paper",`paperScroll${(0,Vn.A)(n)}`,`paperWidth${(0,Vn.A)(String(i))}`,o&&"paperFullWidth",r&&"paperFullScreen"]};return(0,tn.A)(s,SD,t)})(E),D=t.useRef(),I=(0,oi.A)(a),N=t.useMemo(()=>({titleId:I}),[I]);return(0,dn.jsx)(DD,(0,Jt.A)({className:(0,en.A)(L.root,h),closeAfterTransition:!0,components:{Backdrop:LD},componentsProps:{backdrop:(0,Jt.A)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:u,onClose:v,open:C,ref:n,onClick:e=>{b&&b(e),D.current&&(D.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:E},x,{children:(0,dn.jsx)(w,(0,Jt.A)({appear:!0,in:C,timeout:S,role:"presentation"},k,{children:(0,dn.jsx)(ID,{className:(0,en.A)(L.container),onMouseDown:e=>{D.current=e.target===e.currentTarget},ownerState:E,children:(0,dn.jsx)(ND,(0,Jt.A)({as:_,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":I},y,{className:(0,en.A)(L.paper,y.className),ownerState:E,children:(0,dn.jsx)(xD.Provider,{value:N,children:d})}))})}))}))}),TD=MD;function RD(e){return(0,ln.Ay)("MuiDialogTitle",e)}const qD=(0,an.A)("MuiDialogTitle",["root"]),OD=["className","id"],PD=(0,sn.Ay)(Lr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),BD=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiDialogTitle"}),{className:o,id:r}=i,s=(0,Zt.A)(i,OD),a=i,l=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"]},RD,t)})(a),{titleId:c=r}=t.useContext(xD);return(0,dn.jsx)(PD,(0,Jt.A)({component:"h2",className:(0,en.A)(l.root,o),ownerState:a,ref:n,variant:"h6",id:null!=r?r:c},s))}),FD=BD;function WD(e){return(0,ln.Ay)("MuiDialogContent",e)}(0,an.A)("MuiDialogContent",["root","dividers"]);const zD=["className","dividers"],VD=(0,sn.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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}`}:{[`.${qD.root} + &`]:{paddingTop:0}})),HD=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,r=(0,Zt.A)(n,zD),s=(0,Jt.A)({},n,{dividers:o}),a=(e=>{const{classes:t,dividers:n}=e,i={root:["root",n&&"dividers"]};return(0,tn.A)(i,WD,t)})(s);return(0,dn.jsx)(VD,(0,Jt.A)({className:(0,en.A)(a.root,i),ownerState:s,ref:t},r))}),jD=HD;function UD(e){return(0,ln.Ay)("MuiDialogActions",e)}(0,an.A)("MuiDialogActions",["root","spacing"]);const $D=["className","disableSpacing"],GD=(0,sn.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>(0,Jt.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),KD=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,r=(0,Zt.A)(n,$D),s=(0,Jt.A)({},n,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:n}=e,i={root:["root",!n&&"spacing"]};return(0,tn.A)(i,UD,t)})(s);return(0,dn.jsx)(GD,(0,Jt.A)({className:(0,en.A)(a.root,i),ownerState:s,ref:t},r))}),QD=KD;var YD=s(9663);function XD({model:e,show:n,close:i}){const[o,r]=(0,t.useState)(""),[s,a]=(0,t.useState)(null),[l,c]=(0,t.useState)([]),[d,h,u]=wd(),g=Gn(),p=(0,t.useCallback)(()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(i)});return(0,t.useEffect)(()=>{if(!n)return;const t=()=>{e&&n&&e.getProperties().then(e=>{n&&r(JSON.stringify(e||{},null,2))})};return e.on("changed",t),t(),()=>{e&&e.removeListener("changed",t)}},[e&&e.id,n]),(0,t.useEffect)(()=>{if(!(d&&u&&h&&o))return;const{left:e,top:t,width:n,height:i}=h;if(0===e&&0===t&&0===n&&0===i)return;const r=YD.editor.create(u,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});r.layout({width:h.width,height:h.height});const s=r.onDidChangeModelDecorations(()=>{const e=YD.editor.getModelMarkers();c(e)});return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}},[u,h,o]),t.createElement(TD,{disableEscapeKeyDown:!0,open:n,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}}},t.createElement(FD,null,"Modify object properties"),t.createElement(jD,{dividers:!0},t.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),t.createElement(QD,null,t.createElement(wl,{variant:"contained",onClick:i},"Cancel"),t.createElement(wl,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const ZD=t.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),JD=t.createContext();function eI({id:e,onLoad:n}){const i=(0,t.useContext)(JD),o=(0,t.useRef)();return(0,t.useEffect)(()=>{const t=i.render({id:e,element:o.current});return t.then(e=>{n(e,o.current)}),()=>{t.then(e=>{e.destroy()})}},[e]),t.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const tI="Cell",nI={secondaryIcon:`${tI}-secondaryIcon`,drop:`${tI}-drop`},iI=(0,sn.Ay)(yr)(({theme:e})=>({[`& .${nI.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${nI.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}}));function oI({id:e,expandable:n,minHeight:i}){const o=(0,t.useContext)(Kx),[r]=md(),[s,a]=(0,t.useState)(null),[l,c]=(0,t.useState)(!1),[d,h]=(0,t.useState)(null),{currentThemeName:u,activeViz:g,setActiveViz:p,setExpandedObject:m,expandedObject:f}=(0,t.useContext)(ZD),b=f===e,v=(0,t.useRef)();(0,t.useEffect)(()=>{const t=o.getObject(e).then(t=>(a(t),r.set(`${e}`,t),t));return()=>{t.then(e=>e.emit("close"))}},[e]);const[C,_]=(0,t.useState)(!1),y=(0,t.useCallback)(()=>{_(!1)},[]),A=(0,t.useCallback)((e,t)=>{v.current={viz:e,el:t},h(e)},[e]),w=(0,t.useCallback)((e=!1)=>{if(v.current)if(e)c(!0),v.current.viz.__DO_NOT_USE__.exportImage().then(e=>{e&&e.url&&window.open(e.url),c(!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)}`)})}},[s,u]),S=!b&&v.current&&g&&g===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},k=g===d;return t.createElement(iI,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"}},t.createElement(yr,{item:!0},t.createElement(ex,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},t.createElement(XD,{model:s,show:C,close:y}),t.createElement(cr,{title:"Modify object properties",className:nI.secondaryIcon,disabled:!s,onClick:()=>_(!0),size:"large"},ss({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"}}]})),t.createElement(cr,{title:"Open in single render view",className:nI.secondaryIcon,disabled:!s,href:s?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${s.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large"},ss({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"}}]})),t.createElement(cr,{title:"Take and render as snapshot",className:nI.secondaryIcon,disabled:!s,onClick:()=>w(),size:"large"},ss({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"}}]})),l?t.createElement(Gl,{size:24}):t.createElement(cr,{title:"Export as image",className:nI.secondaryIcon,disabled:!s,onClick:()=>w(!0),size:"large"},ss({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"}}]})),t.createElement(yr,{item:!0,xs:!0}),n&&t.createElement(cr,{title:"Edit",className:nI.secondaryIcon,disabled:!d||k,onClick:()=>p(d),size:"large"},ss({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"}}]})),n&&t.createElement(cr,{title:"Expand",disabled:!s||!d,className:nI.secondaryIcon,onClick:()=>{b?m(null):(m(e),p(d))},size:"large"},ss({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:b?"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z":"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}}]})))),t.createElement(yr,{item:!0,xs:!0,style:{...S},className:nI.drop},t.createElement(eI,{id:e,onLoad:A})))}function rI({info:e,storage:n,uid:i}){const o=(0,t.useContext)(JD),{activeViz:r,setActiveViz:s}=(0,t.useContext)(ZD),[a]=Gx(r?.model);return(0,t.useEffect)(()=>{if(!i)return;const t=o.render({type:e.supernova.name,properties:{...!1!==n.get("readFromCache")?n.props(e.supernova.name):{},qInfo:{qId:i,qType:e.supernova.name}}});return t.then(e=>{s(e)}),()=>{t.then(e=>e.destroy())}},[i]),(0,t.useEffect)(()=>{a&&n.props(e.supernova.name,a)},[a]),r&&r.id===i?t.createElement(yr,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},t.createElement(yr,{item:!0,xs:!0},t.createElement(oI,{id:i}))):null}function sI({types:e,cache:n}){const i=(0,t.useContext)(Kx),[o]=Ad(i),[r,s]=(0,t.useState)(null),{expandedObject:a}=(0,t.useContext)(ZD);if((0,t.useEffect)(()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then(e=>{s(e.slice(0,20))})},[o,e.join(":")]),!r)return null;const l=a?r.filter(e=>e.qInfo.qId===a):r;return t.createElement(yr,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map(e=>t.createElement(yr,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${n}`},t.createElement(oI,{id:e.qInfo.qId,expandable:!0,minHeight:600}))):t.createElement(yr,{item:!0},t.createElement("div",null,t.createElement(Lr,{display:"inline"},"Could not find any components with "),t.createElement(Lr,{display:"inline"},t.createElement("code",null,`qType: "${e[0]}"`)),t.createElement(Lr,{display:"inline"}," in the current app"))))}const aI=["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"],lI=["select","active","passive"];function cI(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function dI(){const e=(0,t.useRef)(),n=K(),{info:i}=Ht(),{waiting:o,app:r}=(({info:e})=>{const[n,i]=(0,t.useState)(null),[o,r]=(0,t.useState)(!0);(0,t.useEffect)(()=>{r(!0),e&&s().then(e=>i(e)).catch(e=>console.log(e)).finally(()=>r(!1))},[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:n,enigma:i=null,enigma:{host:o}={}}=e;let r="";if(n){const t=await Vt({webIntegrationId:n,host:o});r=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/auth/getSocketUrl/${e?.enigma.appId}`)).json();r=t}else{const e=await Ot(`https://${i.host}${i.prefix?`/${i.prefix}`:""}`);r=He().buildUrl({...i,urlParams:{"qlik-csrf-token":e}})}return(await We().create({schema:ze,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:n,setApp:i}})({info:i}),s=(0,t.useMemo)(()=>Gt(r),[r]),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(null),[h,u]=(0,t.useState)(null),[g,p]=(0,t.useState)(s.get("themeName")),[m,f]=(0,t.useState)(s.get("language")||"en-US"),[b,v]=(0,t.useState)("light"),[C,_]=(0,t.useState)(lI),[y,A]=(0,t.useState)(!0===s.get("objectListMode")),w=(0,t.useRef)(null),[S,k]=(0,t.useState)(),[x,E]=t.useState(null),[L,D]=t.useState(null),[I,N]=(0,t.useState)(!1),[M,T]=(0,t.useState)(null),R=Array.isArray(i?.themes)&&i.themes.length?["light","dark",...i.themes]:[],[q,O]=(0,t.useState)(),P=(0,t.useMemo)(()=>xi(b),[b]),B=(0,t.useMemo)(()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d}),[a,c,g]);(0,t.useEffect)(()=>{(async()=>{i&&(await function(e){const t=()=>{Ux(e.supernova.name,e.supernova.url).then(t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,$x[n]&&$x[n].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=>Ux(e.name,e.url).then(t=>{window[e.name]=t}));return Promise.all(t)}return Promise.resolve()}(i),N(!0))})()},[i]),(0,t.useEffect)(()=>{if(o||!I)return;const e=Dk(r,{context:{theme:g,language:m,interactions:cI(C),keyboardNavigation:i?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:i?.flags,themes:i?.themes?i?.themes.map(e=>({id:e,load:()=>fetch(`/theme/${e}`).then(e=>e.json()).then(e=>(v("dark"===e.type?"dark":"light"),e))})):null});e.__DO_NOT_USE__.types.register(i?.supernova),i?.types&&i?.types.forEach(t=>{e.__DO_NOT_USE__.types.register(t)}),T(e)},[r,i,o,I]),(0,t.useLayoutEffect)(()=>{M&&(M.context({theme:g}),"light"!==g&&"dark"!==g||v(g))},[M,g]);const F=()=>{window[i?.supernova.name]&&(e.current=String(Date.now()),k(e.current))};return(0,t.useEffect)(()=>{M&&(M.selections().then(e=>e.mount(w.current)),window.onHotChange(i?.supernova.name,()=>{M.__DO_NOT_USE__.types.clearFromCache(i?.supernova.name),M.__DO_NOT_USE__.types.register(i?.supernova),F(),M.__DO_NOT_USE__.types.get({name:i?.supernova.name}).supernova().then(u)}),F())},[M,i]),(0,t.useEffect)(()=>{const t=()=>{r&&r.destroySessionObject(e.current)};if(window.addEventListener("beforeunload",t),r){const e=ud(r.id),t=gd(r.id);O({modelStore:e,selectionStore:t,myKey:"this is the key here"})}return()=>{window.removeEventListener("beforeunload",t)}},[r]),t.createElement(ld.Provider,{value:q},t.createElement(Kx.Provider,{value:r},t.createElement(gi.A,{injectFirst:!0},t.createElement(ui,{theme:P},t.createElement(JD.Provider,{value:M},t.createElement(yr,{container:!0,wrap:"nowrap",direction:"column",style:{background:P.palette.background.darkest,height:"100%"},gap:0},t.createElement(yr,{item:!0},t.createElement(ex,{variant:"dense",style:{background:P.palette.background.paper,boxShadow:P.shadows[1]}},t.createElement(yr,{container:!0,gap:1},t.createElement(yr,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(yr,{item:!0},t.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},t.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"}})))),t.createElement(yr,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(cr,{title:"Home",onClick:()=>n("/"),size:"large"},t.createElement(Uk.A,{style:{verticalAlign:"middle"}}))),t.createElement(yr,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(wa,{value:y?1:0,onChange:(e,t)=>{const n=1===t;s.save("objectListMode",n),n&&(l(null),d(null)),A(n)},"aria-label":"Navigation"},t.createElement(Da,{label:t.createElement(Lr,null,"Create"),value:0}),t.createElement(Da,{label:t.createElement(Lr,null,"Edit"),value:1}))),t.createElement(yr,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(yr,{item:!0,gap:1},t.createElement(Lr,null,"State:")),t.createElement(yr,{item:!0,gap:2},t.createElement(dx,{size:"small",value:C,onChange:(e,t)=>{_(t),M&&M.context({interactions:cI(t)})},color:"primary"},t.createElement(Cx,{value:"select"},"Select"),t.createElement(Cx,{value:"active"},"Active"),t.createElement(Cx,{value:"passive"},"Passive"),t.createElement(Cx,{value:"edit"},"Edit"))),t.createElement(yr,{item:!0},R.length?t.createElement(t.Fragment,null,t.createElement(cr,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},t.createElement($k.A,{fontSize:"small"})),t.createElement(Dx,{anchorEl:x,open:!!x,keepMounted:!0,onClose:()=>E(null)},R.map(e=>t.createElement(Lf,{key:e,selected:e===g,onClick:()=>(e=>{E(null),s.save("themeName",e),p(e)})(e)},e)))):t.createElement(cr,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?t.createElement(Gk.A,{fontSize:"small"}):t.createElement(Kk.A,{fontSize:"small"}))),t.createElement(yr,{item:!0},t.createElement(wl,{startIcon:t.createElement(Qk.A,null),title:"Select language",onClick:e=>D(e.currentTarget)},m),t.createElement(Dx,{anchorEl:L,open:!!L,keepMounted:!0,onClose:()=>D(null)},aI.map(e=>t.createElement(Lf,{key:e,selected:e===m,onClick:()=>{return t=e,D(null),s.save("language",t),f(t),void(M&&M.context({language:t}));var t}},e)))))))),t.createElement(yr,{item:!0,style:{padding:P.spacing(1,1,0,1)}},t.createElement("div",{ref:w,style:{flex:"0 0 auto",boxShadow:P.shadows[1]}})),t.createElement(yr,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:P.spacing(0,1,1,1)}},t.createElement(ZD.Provider,{value:B},h?t.createElement(yr,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},t.createElement(yr,{item:!0,xs:!0,zeroMinWidth:!0},y?t.createElement(sI,{cache:S,types:[i?.supernova.name]}):t.createElement(rI,{info:i,storage:s,uid:S})),a&&t.createElement(yr,{item:!0,style:{background:P.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:P.shadows[1],padding:0}},t.createElement(wD,{sn:h,viz:a,isTemp:!y,storage:s,flags:i?.flags}))):t.createElement(yr,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},t.createElement(yr,{item:!0},t.createElement(Gl,null)))))))))))}const hI=()=>t.createElement(Ei,null,t.createElement(mo,{marginTop:5},t.createElement(Lr,{variant:"h4",gutterBottom:!0},"Error!"),t.createElement(Lr,{variant:"subtitle1",gutterBottom:!0},"OAUTH REDIRECT LINK ERROR!"),t.createElement(Lr,{variant:"body2",paragraph:!0},"We updated our route which was previously had the responsibility to handle the redirected link including the correct credentials to have"," ",t.createElement("code",null,t.createElement("b",null,"/auth/"))," ","part within it. This change is now impacting your redirect links if you already using your old client-id."),t.createElement(Lr,{variant:"h6",gutterBottom:!0},"Here is what you need to do:"),t.createElement(Lr,{variant:"body2",paragraph:!0},t.createElement("b",null,"1.")," Go to your tenant that you created your client id",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"2.")," Open Managment console",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"3.")," Click on OAuth menu in left panel (if you dont see that menu it means you dont have access to it and you need to ask a person who has the proper access)",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"4.")," Find your Client id and from ... menu, click on edit",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"5."),' There is a section called "Add redirect URLs", find it and add your new link. The only difference is that your new link will include `/auth/` part in it, for example, if you had this redirect link previously:',t.createElement("code",null,"http://localhost:8000/login/callback"),t.createElement("br",null),"now it will be like:",t.createElement("code",null,"http://localhost:8000/",t.createElement("b",null,"auth/"),"login/callback"),t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"6.")," Click on save and you are set!",t.createElement("br",null)))),uI=()=>t.createElement(Ne,null,t.createElement(Xt,null,t.createElement(ce,null,t.createElement(ae,{element:t.createElement(_o,null)},t.createElement(ae,{path:"/",element:t.createElement(Tl,null)}),t.createElement(ae,{path:"/app-list",element:t.createElement(Kl,null)})),t.createElement(ae,{path:"/dev",element:t.createElement(dI,null)}),t.createElement(ae,{path:"/login/callback",element:t.createElement(hI,null)}))));n.createRoot(document.querySelector("#app")).render(t.createElement(uI,null))})()})();
102
+ `),Vl)),$l=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,h=(0,Zt.A)(n,ql),u=(0,Jt.A)({},n,{color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,r={root:["root",n,`color${(0,Vn.A)(i)}`],svg:["svg"],circle:["circle",`circle${(0,Vn.A)(n)}`,o&&"circleDisableShrink"]};return(0,tn.A)(r,Rl,t)})(u),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,dn.jsx)(Hl,(0,Jt.A)({className:(0,en.A)(g.root,i),style:(0,Jt.A)({width:s,height:s},m,a),ownerState:u,ref:t,role:"progressbar"},f,h,{children:(0,dn.jsx)(jl,{className:g.svg,ownerState:u,viewBox:"22 22 44 44",children:(0,dn.jsx)(Ul,{className:g.circle,style:p,ownerState:u,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))}),Gl=$l,Kl=()=>{const e=K(),n=U(),{info:i,glob:o,treatAsDesktop:r}=Yt(),{loading:s,appList:a}=(({glob:e,info:n})=>{const i=K(),{setInfo:o,setActiveStep:r}=Yt(),[s,a]=(0,t.useState)(),[l,c]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{r(1),zt().then(e=>{o(e)})},[]),(0,t.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("/auth/isAuthorized")).json();return{isAuthorized:e}})().then(({isAuthorized:e})=>{if(e){const e=new URL(window.location.href);e.search.includes("shouldFetchAppList")||e.searchParams.append("shouldFetchAppList",!0),i(decodeURIComponent(`${e.pathname}${e.search}`))}}),(t.get("shouldFetchAppList")?(async()=>await(await fetch("/apps")).json()||[])():e?.getDocList())?.then(e=>{a(e),e&&c(!1)})},[window.location.search,c,n,e]),{appList:s,loading:l}})({glob:o,info:i});return t.createElement(mo,null,t.createElement(Lr,{variant:"h5",gutterBottom:!0},"Select an app"),s&&t.createElement(Gl,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&t.createElement(Lr,{component:"span"},"No apps found!"),a&&a.length>0&&t.createElement(gs,null,a.map(o=>t.createElement(Is,{button:!0,component:"a",key:o.qDocId,onClick:()=>(async({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,r=i.enigma.secure?"wss":"ws",s=i.enigma.port?`:${i.enigma.port}`:"",a=i.enigma.prefix?`/${i.enigma.prefix}`:"",l=("localhost"===i.enigma.host?`${i.enigma.host}${s}`:i.enigma.host)+a,c=await Ot(`https://${i.enigma.host}${a}`),d=c?`&qlik-csrf-token=${c}`:"",h=`${r}://${l}/app/${encodeURIComponent(n)}${d}`;e(`/dev/${o.replace(i.engineUrl,h)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:n,targetApp:r?o.qDocName:o.qDocId})},t.createElement(Os,{primary:o.qTitle,secondary:o.qDocId})))))};function Ql(e){return globalThis.process?.argv?Promise.all([s.e(241),s.e(917)]).then(s.bind(s,6917)):s.e(465).then(s.bind(s,1465)).then(t=>t.importRuntimeModule("auth@v1",e))}s(3475);var Yl={registerAuthModule:function(e,t){Ql().then(n=>n.registerAuthModule(e,t))},setDefaultHostConfig:function(e){Ql(e).then(t=>t.setDefaultHostConfig(e))},registerHostConfig:function(e,t){Ql(t).then(n=>n.registerHostConfig(e,t))},unregisterHostConfig:function(e){Ql().then(t=>t.unregisterHostConfig(e))},getAccessToken:async function({hostConfig:e}){return Ql(e).then(t=>t.getAccessToken({hostConfig:e}))},getWebResourceAuthParams:async function({hostConfig:e}){return Ql(e).then(t=>t.getWebResourceAuthParams({hostConfig:e}))}};const Xl=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let i=e;const o={language:e=>(e&&(i=e),i),add:e=>{const{id:t,locale:i}=e;Object.keys(i).forEach(e=>{n[e]||(n[e]={}),n[e][t]=i[e]})},get(e,o){let r;return r=n[i]&&void 0!==n[i][e]?n[i][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,(e,t)=>void 0!==n[t]?n[t]:e)})(r,o):r}};return o}({initial:e,fallback:t});return{translator:n}},Zl=JSON.parse('{"Accessibility_Object_NoTitle":{"id":"Accessibility.Object.NoTitle","locale":{"de-DE":"Kein Titel","en-US":"No title","es-ES":"Sin título","fr-FR":"Pas de titre","it-IT":"Nessun titolo","ja-JP":"タイトルなし","ko-KR":"제목 없음","nl-NL":"Geen titel","pl-PL":"Brak tytułu","pt-BR":"Sem título","ru-RU":"Без заголовка","sv-SE":"Ingen rubrik","tr-TR":"Başlık yok","zh-CN":"无标题","zh-TW":"無標題"}},"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_Clear_Search":{"id":"Listbox.Clear.Search","locale":{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},"Listbox_Cyclic":{"id":"Listbox.Cyclic","locale":{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},"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_ActionButton":{"id":"Object.ActionButton","locale":{"de-DE":"Schaltfläche","en-US":"Button","es-ES":"Botón","fr-FR":"Bouton","it-IT":"Pulsante","ja-JP":"ボタン","ko-KR":"버튼","nl-NL":"Knop","pl-PL":"Przycisk","pt-BR":"Botão","ru-RU":"Кнопка","sv-SE":"Knapp","tr-TR":"Düğme","zh-CN":"按钮","zh-TW":"按鈕"}},"Object_AutoChart":{"id":"Object.AutoChart","locale":{"de-DE":"Automatisches Diagramm","en-US":"Autochart","es-ES":"Gráfico automático","fr-FR":"Graphique automatique","it-IT":"Grafico automatico","ja-JP":"オートチャート","ko-KR":"자동 차트","nl-NL":"Automatisch diagram","pl-PL":"Automatyczny wykres","pt-BR":"Gráfico automático","ru-RU":"Автодиаграмма","sv-SE":"Automatiskt diagram","tr-TR":"Otomatik grafik","zh-CN":"自动图表","zh-TW":"自動圖表"}},"Object_BarChart":{"id":"Object.BarChart","locale":{"de-DE":"Balkendiagramm","en-US":"Bar chart","es-ES":"Gráfico de barras","fr-FR":"Graphique en barres","it-IT":"Grafico a barre","ja-JP":"棒グラフ","ko-KR":"막대형 차트","nl-NL":"Staafdiagram","pl-PL":"Wykres słupkowy","pt-BR":"Gráfico de barras","ru-RU":"Линейчатая диаграмма","sv-SE":"Stapeldiagram","tr-TR":"Sütun grafik","zh-CN":"条形图","zh-TW":"長條圖"}},"Object_BoxPlot":{"id":"Object.BoxPlot","locale":{"de-DE":"Boxplot","en-US":"Box plot","es-ES":"Diagrama de caja","fr-FR":"Boîte à moustaches","it-IT":"Box plot","ja-JP":"ボックス プロット","ko-KR":"상자 그림","nl-NL":"Boxplot","pl-PL":"Wykres pudełkowy","pt-BR":"Plotagem de caixa","ru-RU":"Блочная диаграмма","sv-SE":"Lådagram","tr-TR":"Kutu çizimi","zh-CN":"框图","zh-TW":"盒狀圖"}},"Object_BulletChart":{"id":"Object.BulletChart","locale":{"de-DE":"Bullet-Diagramm","en-US":"Bullet chart","es-ES":"Gráfico de viñetas","fr-FR":"Graphique à puces","it-IT":"Grafico bullet","ja-JP":"ブレット チャート","ko-KR":"글머리 기호 차트","nl-NL":"Bulletgrafiek","pl-PL":"Wykres pociskowy","pt-BR":"Quadro comparativo","ru-RU":"Диаграмма Буллет","sv-SE":"Nyansdiagram","tr-TR":"Madde imli grafik","zh-CN":"子弹图","zh-TW":"子彈圖"}},"Object_ComboChart":{"id":"Object.ComboChart","locale":{"de-DE":"Kombi-Diagramm","en-US":"Combo chart","es-ES":"Gráfico combinado","fr-FR":"Graphique combiné","it-IT":"Grafico combinato","ja-JP":"コンボ チャート","ko-KR":"콤보 차트","nl-NL":"Combinatiegrafiek","pl-PL":"Wykres kombi","pt-BR":"Gráfico de combinação","ru-RU":"Комбинированная диаграмма","sv-SE":"Kombinationsdiagram","tr-TR":"Birleşik grafik","zh-CN":"组合图","zh-TW":"組合圖"}},"Object_Container":{"id":"Object.Container","locale":{"de-DE":"Sammelbox","en-US":"Container","es-ES":"Contenedor","fr-FR":"Conteneur","it-IT":"Contenitore","ja-JP":"コンテナー","ko-KR":"컨테이너","nl-NL":"Container","pl-PL":"Kontener","pt-BR":"Contêiner","ru-RU":"Контейнер","sv-SE":"Behållare","tr-TR":"Kapsayıcı","zh-CN":"容器","zh-TW":"容器"}},"Object_DistributionPlot":{"id":"Object.DistributionPlot","locale":{"de-DE":"Verteilungsdiagramm","en-US":"Distribution plot","es-ES":"Diagrama de distribución","fr-FR":"Diagramme de distribution","it-IT":"Grafico di distribuzione","ja-JP":"分布プロット","ko-KR":"분포도","nl-NL":"Verdelingsplot","pl-PL":"Wykres rozkładu","pt-BR":"Gráfico de distribuição","ru-RU":"График распределения","sv-SE":"Fördelningsdiagram","tr-TR":"Dağılım grafiği","zh-CN":"分布图","zh-TW":"分佈圖"}},"Object_FilterLabel_All":{"id":"Object.FilterLabel.All","locale":{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUT","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKIE","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},"Object_FilterLabel_Exclude":{"id":"Object.FilterLabel.Exclude","locale":{"de-DE":"NICHT","en-US":"NOT","es-ES":"NO","fr-FR":"EXCLURE","it-IT":"NON","ja-JP":"除外","ko-KR":"제외","nl-NL":"NIET","pl-PL":"NIE","pt-BR":"NÃO","ru-RU":"НЕ","sv-SE":"INTE","tr-TR":"DEĞİL","zh-CN":"非","zh-TW":"不是"}},"Object_FilterLabel_Unknown":{"id":"Object.FilterLabel.Unknown","locale":{"de-DE":"Unbekannt","en-US":"Unknown","es-ES":"Desconocido","fr-FR":"Inconnu","it-IT":"Sconosciuto","ja-JP":"不明","ko-KR":"알 수 없음","nl-NL":"Onbekend","pl-PL":"Nieznany","pt-BR":"Desconhecido","ru-RU":"Неизвестный","sv-SE":"Okänt","tr-TR":"Bilinmiyor","zh-CN":"未知","zh-TW":"未知"}},"Object_FilterPane":{"id":"Object.FilterPane","locale":{"de-DE":"Filterfenster","en-US":"Filter pane","es-ES":"Panel de filtrado","fr-FR":"Panneau de filtre","it-IT":"Casella di filtro","ja-JP":"フィルター パネル","ko-KR":"필터 창","nl-NL":"Filtervak","pl-PL":"Panel filtrowania","pt-BR":"Painel de filtro","ru-RU":"Фильтр","sv-SE":"Filterruta","tr-TR":"Filtre bölmesi","zh-CN":"筛选器窗格","zh-TW":"篩選窗格"}},"Object_FiltersApplied":{"id":"Object.FiltersApplied","locale":{"de-DE":"Angewendete Filter:","en-US":"Filters applied:","es-ES":"Filtros aplicados:","fr-FR":"Filtres appliqués :","it-IT":"Filtri applicati:","ja-JP":"適用されているフィルター:","ko-KR":"적용된 필터:","nl-NL":"Toegepaste filters:","pl-PL":"Zastosowane filtry:","pt-BR":"Filtros aplicados:","ru-RU":"Примененные фильтры:","sv-SE":"Använda filter:","tr-TR":"Uygulanan filtreler:","zh-CN":"应用的筛选器:","zh-TW":"篩選器已套用:"}},"Object_FunnelChart":{"id":"Object.FunnelChart","locale":{"de-DE":"Trichterdiagramm","en-US":"Funnel chart","es-ES":"Gráfico de embudo","fr-FR":"Graphique en entonnoir","it-IT":"Grafico a imbuto","ja-JP":"ファネル チャート","ko-KR":"깔때기형 차트","nl-NL":"Trechterdiagram","pl-PL":"Wykres lejkowy","pt-BR":"Gráfico de funil","ru-RU":"Диаграмма Воронка","sv-SE":"Trattdiagram","tr-TR":"Huni grafik","zh-CN":"漏斗图","zh-TW":"漏斗圖"}},"Object_Gauge":{"id":"Object.Gauge","locale":{"de-DE":"Messzeiger","en-US":"Gauge","es-ES":"Indicador","fr-FR":"Jauge","it-IT":"Misuratore","ja-JP":"ゲージ","ko-KR":"게이지","nl-NL":"Meter","pl-PL":"Miernik","pt-BR":"Mostrador","ru-RU":"Датчик","sv-SE":"Mätare","tr-TR":"Gösterge","zh-CN":"仪表","zh-TW":"量表"}},"Object_GridChart":{"id":"Object.GridChart","locale":{"de-DE":"Matrixdiagramm","en-US":"Grid chart","es-ES":"Gráfico de cuadrícula","fr-FR":"Bulles","it-IT":"Grafico a griglia","ja-JP":"グリッド チャート","ko-KR":"그리드형 차트","nl-NL":"Rasterdiagram","pl-PL":"Wykres siatkowy","pt-BR":"Gráfico de grade","ru-RU":"Сетчатая диаграмма","sv-SE":"Rutnätsdiagram","tr-TR":"Izgara grafik","zh-CN":"网格图","zh-TW":"格線圖"}},"Object_Histogram":{"id":"Object.Histogram","locale":{"de-DE":"Histogramm","en-US":"Histogram","es-ES":"Histograma","fr-FR":"Histogramme","it-IT":"Istogramma","ja-JP":"ヒストグラム","ko-KR":"히스토그램","nl-NL":"Histogram","pl-PL":"Histogram","pt-BR":"Histograma","ru-RU":"Гистограмма","sv-SE":"Histogram","tr-TR":"Histogram","zh-CN":"直方图","zh-TW":"色階分佈圖"}},"Object_Kpi":{"id":"Object.Kpi","locale":{"de-DE":"KPI","en-US":"KPI","es-ES":"KPI","fr-FR":"ICP","it-IT":"KPI","ja-JP":"KPI","ko-KR":"KPI","nl-NL":"KPI","pl-PL":"Wskaźnik KPI","pt-BR":"KPI","ru-RU":"Ключевой показатель эффективности","sv-SE":"KPI (nyckeltal)","tr-TR":"KPI","zh-CN":"KPI","zh-TW":"KPI"}},"Object_LayoutContainer":{"id":"Object.LayoutContainer","locale":{"de-DE":"Layout-Sammelbox","en-US":"Layout container","es-ES":"Contenedor de diseño","fr-FR":"Conteneur de disposition","it-IT":"Contenitore layout","ja-JP":"レイアウト コンテナ","ko-KR":"레이아웃 컨테이너","nl-NL":"Lay-outcontainer","pl-PL":"Kontener układu","pt-BR":"Contêiner de layout","ru-RU":"Контейнер макета","sv-SE":"Layoutbehållare","tr-TR":"Düzen kapsayıcısı","zh-CN":"布局容器","zh-TW":"版面配置容器"}},"Object_LineChart":{"id":"Object.LineChart","locale":{"de-DE":"Liniendiagramm","en-US":"Line chart","es-ES":"Gráfico de líneas","fr-FR":"Graphique en courbes","it-IT":"Grafico lineare","ja-JP":"折れ線グラフ","ko-KR":"꺾은선형 차트","nl-NL":"Lijndiagram","pl-PL":"Wykres liniowy","pt-BR":"Gráfico de linhas","ru-RU":"Линейный график","sv-SE":"Linjediagram","tr-TR":"Çizgi grafik","zh-CN":"折线图","zh-TW":"折線圖"}},"Object_Listbox":{"id":"Object.Listbox","locale":{"de-DE":"Listbox","en-US":"List box","es-ES":"Cuadro de lista","fr-FR":"Liste de sélection","it-IT":"Casella di elenco","ja-JP":"リスト ボックス","ko-KR":"목록 상자","nl-NL":"Keuzelijst","pl-PL":"Lista wartości","pt-BR":"Lista","ru-RU":"Список","sv-SE":"Listruta","tr-TR":"Liste kutusu","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_Map":{"id":"Object.Map","locale":{"de-DE":"Karte","en-US":"Map","es-ES":"Mapa","fr-FR":"Carte","it-IT":"Mappa","ja-JP":"マップ","ko-KR":"맵","nl-NL":"Kaart","pl-PL":"Mapa","pt-BR":"Mapa","ru-RU":"Карта","sv-SE":"Karta","tr-TR":"Harita","zh-CN":"映射","zh-TW":"地圖"}},"Object_MekkoChart":{"id":"Object.MekkoChart","locale":{"de-DE":"Marimekko-Diagramm","en-US":"Mekko chart","es-ES":"Gráfico Mekko","fr-FR":"Graphique Mekko","it-IT":"Grafico Mekko","ja-JP":"メッコ チャート","ko-KR":"메코 차트","nl-NL":"Mekko-diagram","pl-PL":"Wykres Mekko","pt-BR":"Gráfico Mekko","ru-RU":"Диаграмма Мекко","sv-SE":"Mosaikdiagram","tr-TR":"Mekko grafiği","zh-CN":"玛丽麦高图","zh-TW":"Mekko 圖"}},"Object_NavMenu":{"id":"Object.NavMenu","locale":{"de-DE":"Navigationsmenü","en-US":"Navigation menu","es-ES":"Menú de navegación","fr-FR":"Menu de navigation","it-IT":"Menu di navigazione","ja-JP":"ナビゲーション メニュー","ko-KR":"탐색 메뉴","nl-NL":"Navigatiemenu","pl-PL":"Menu nawigacji","pt-BR":"Menu de navegação","ru-RU":"Меню навигации","sv-SE":"Navigationsmeny","tr-TR":"Gezinti menüsü","zh-CN":"导航菜单","zh-TW":"導覽功能表"}},"Object_NlgChart":{"id":"Object.NlgChart","locale":{"de-DE":"NL-Einblicke","en-US":"NL insights","es-ES":"Información en LN","fr-FR":"Informations analytiques NL","it-IT":"Informazioni strategiche NL","ja-JP":"NL インサイト","ko-KR":"NL 통찰력","nl-NL":"NL-inzichten","pl-PL":"Wnioski w języku naturalnym","pt-BR":"Ideias de NL","ru-RU":"Наблюдения на естественном языке","sv-SE":"Insikter på naturligt språk (NL)","tr-TR":"NL içgörüleri","zh-CN":"NL 见解","zh-TW":"自然語言深入資訊"}},"Object_PieChart":{"id":"Object.PieChart","locale":{"de-DE":"Kreisdiagramm","en-US":"Pie chart","es-ES":"Gráfico de tarta","fr-FR":"Graphique en secteurs","it-IT":"Grafico a torta","ja-JP":"円グラフ","ko-KR":"원형 차트","nl-NL":"Cirkeldiagram","pl-PL":"Wykres kołowy","pt-BR":"Gráfico de pizza","ru-RU":"Круговая диаграмма","sv-SE":"Cirkeldiagram","tr-TR":"Pasta grafik","zh-CN":"饼图","zh-TW":"圓形圖"}},"Object_PivotTable":{"id":"Object.PivotTable","locale":{"de-DE":"Pivottabelle","en-US":"Pivot table","es-ES":"Tabla dinámica","fr-FR":"Tableau croisé dynamique","it-IT":"Tabella pivot","ja-JP":"ピボット テーブル","ko-KR":"피벗 테이블","nl-NL":"Draaitabel","pl-PL":"Tabela przestawna","pt-BR":"Tabela dinâmica","ru-RU":"Сводная таблица","sv-SE":"Pivottabell","tr-TR":"Pivot tablo","zh-CN":"透视表","zh-TW":"樞紐分析表"}},"Object_RadarChart":{"id":"Object.RadarChart","locale":{"de-DE":"Netzdiagramm","en-US":"Radar chart","es-ES":"Gráfico de radar","fr-FR":"Diagramme en étoile","it-IT":"Grafico a radar","ja-JP":"レーダー チャート","ko-KR":"방사형 차트","nl-NL":"Radardiagram","pl-PL":"Wykres radarowy","pt-BR":"Gráfico de radar","ru-RU":"Диаграмма Радар","sv-SE":"Radardiagram","tr-TR":"Radar grafiği","zh-CN":"雷达图","zh-TW":"雷達圖"}},"Object_SankeyChart":{"id":"Object.SankeyChart","locale":{"de-DE":"Sankey-Diagramm","en-US":"Sankey chart","es-ES":"Diagrama de Sankey","fr-FR":"Diagramme de Sankey","it-IT":"Diagramma di Sankey","ja-JP":"サンキー グラフ","ko-KR":"Sankey 차트","nl-NL":"Sankey-diagram","pl-PL":"Wykres Sankeya","pt-BR":"Gráfico de Sankey","ru-RU":"Диаграмма Сэнки","sv-SE":"Sankey-diagram","tr-TR":"Sankey grafiği","zh-CN":"桑基图","zh-TW":"桑基圖"}},"Object_ScatterPlot":{"id":"Object.ScatterPlot","locale":{"de-DE":"Punktdiagramm","en-US":"Scatter plot","es-ES":"Gráfico de dispersión","fr-FR":"Nuage de points","it-IT":"Grafico a dispersione","ja-JP":"散布図","ko-KR":"스캐터 차트","nl-NL":"Spreidingsplot","pl-PL":"Wykres punktowy","pt-BR":"Plotagem de dispersão","ru-RU":"Точечная диаграмма","sv-SE":"Spridningsdiagram","tr-TR":"Dağılım çizimi","zh-CN":"散点图","zh-TW":"散佈圖"}},"Object_StraightTable":{"id":"Object.StraightTable","locale":{"de-DE":"Tabellendiagramm","en-US":"Straight table","es-ES":"Tabla simple","fr-FR":"Tableau simple","it-IT":"Tabella lineare","ja-JP":"ストレート テーブル","ko-KR":"일반표","nl-NL":"Strakke tabel","pl-PL":"Tabela prosta","pt-BR":"Tabela estática","ru-RU":"Прямая таблица","sv-SE":"Enkel tabell","tr-TR":"Düz tablo","zh-CN":"垂直表","zh-TW":"直表"}},"Object_TabContainer":{"id":"Object.TabContainer","locale":{"de-DE":"Registerkarten-Container","en-US":"Tab container","es-ES":"Contenedor de pestañas","fr-FR":"Conteneur d\'onglets","it-IT":"Contenitore a schede","ja-JP":"タブ付きコンテナ","ko-KR":"탭 컨테이너","nl-NL":"Tabbladcontainer","pl-PL":"Kontener karty","pt-BR":"Contêiner de guias","ru-RU":"Контейнер вкладок","sv-SE":"Flikbehållare","tr-TR":"Sekme kapsayıcısı","zh-CN":"选项卡容器","zh-TW":"索引標籤容器"}},"Object_Table":{"id":"Object.Table","locale":{"de-DE":"Tabelle","en-US":"Table","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},"Object_Table_Deprecated":{"id":"Object.Table.Deprecated","locale":{"de-DE":"Tabelle","en-US":"Table ","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},"Object_Text":{"id":"Object.Text","locale":{"de-DE":"Text","en-US":"Text","es-ES":"Texto","fr-FR":"Texte","it-IT":"Testo","ja-JP":"テキスト","ko-KR":"텍스트","nl-NL":"Tekst","pl-PL":"Tekst","pt-BR":"Texto","ru-RU":"Текст","sv-SE":"Text","tr-TR":"Metin","zh-CN":"文本","zh-TW":"文字"}},"Object_TextImage":{"id":"Object.TextImage","locale":{"de-DE":"Text und Bild","en-US":"Text & image","es-ES":"Texto e imagen","fr-FR":"Texte et image","it-IT":"Testo e immagine","ja-JP":"テキストと画像","ko-KR":"텍스트 및 이미지","nl-NL":"Tekst en afbeelding","pl-PL":"Tekst i grafika","pt-BR":"Texto e imagem","ru-RU":"Текст и изображение","sv-SE":"Text och bild","tr-TR":"Metin ve resim","zh-CN":"文本和图片","zh-TW":"文字與影像"}},"Object_Treemap":{"id":"Object.Treemap","locale":{"de-DE":"Baumkarte","en-US":"Treemap","es-ES":"Gráfico de bloques","fr-FR":"Treemap","it-IT":"Mappa ad albero","ja-JP":"ツリーマップ","ko-KR":"트리맵","nl-NL":"Structuuroverzicht","pl-PL":"Mapa drzewa","pt-BR":"Mapa de árvore","ru-RU":"Карта дерева","sv-SE":"Trädkarta","tr-TR":"Ağaç haritası","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":"資料更新已取消"}},"Object_WaterfallChart":{"id":"Object.WaterfallChart","locale":{"de-DE":"Wasserfalldiagramm","en-US":"Waterfall chart","es-ES":"Gráfico de cascada","fr-FR":"Graphique en cascade","it-IT":"Grafico a cascata","ja-JP":"ウォーターフォール グラフ","ko-KR":"폭포형 차트","nl-NL":"Watervalgrafiek","pl-PL":"Wykres wodospadowy","pt-BR":"Gráfico em cascata","ru-RU":"Каскадная диаграмма","sv-SE":"Vattenfallsdiagram","tr-TR":"Şelale grafik","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_ClickToLock":{"id":"SelectionToolbar.ClickToLock","locale":{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","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 Jl=s(7120),ec=s.n(Jl);function tc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function nc(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function ic(){}var oc=.7,rc=1/oc,sc="\\s*([+-]?\\d+)\\s*",ac="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",lc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cc=/^#([0-9a-f]{3,8})$/,dc=new RegExp(`^rgb\\(${sc},${sc},${sc}\\)$`),hc=new RegExp(`^rgb\\(${lc},${lc},${lc}\\)$`),uc=new RegExp(`^rgba\\(${sc},${sc},${sc},${ac}\\)$`),gc=new RegExp(`^rgba\\(${lc},${lc},${lc},${ac}\\)$`),pc=new RegExp(`^hsl\\(${ac},${lc},${lc}\\)$`),mc=new RegExp(`^hsla\\(${ac},${lc},${lc},${ac}\\)$`),fc={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 bc(){return this.rgb().formatHex()}function vc(){return this.rgb().formatRgb()}function Cc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cc.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_c(t):3===n?new wc(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?yc(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?yc(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=dc.exec(e))?new wc(t[1],t[2],t[3],1):(t=hc.exec(e))?new wc(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=uc.exec(e))?yc(t[1],t[2],t[3],t[4]):(t=gc.exec(e))?yc(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=pc.exec(e))?Dc(t[1],t[2]/100,t[3]/100,1):(t=mc.exec(e))?Dc(t[1],t[2]/100,t[3]/100,t[4]):fc.hasOwnProperty(e)?_c(fc[e]):"transparent"===e?new wc(NaN,NaN,NaN,0):null}function _c(e){return new wc(e>>16&255,e>>8&255,255&e,1)}function yc(e,t,n,i){return i<=0&&(e=t=n=NaN),new wc(e,t,n,i)}function Ac(e,t,n,i){return 1===arguments.length?((o=e)instanceof ic||(o=Cc(o)),o?new wc((o=o.rgb()).r,o.g,o.b,o.opacity):new wc):new wc(e,t,n,null==i?1:i);var o}function wc(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Sc(){return`#${Lc(this.r)}${Lc(this.g)}${Lc(this.b)}`}function kc(){const e=xc(this.opacity);return`${1===e?"rgb(":"rgba("}${Ec(this.r)}, ${Ec(this.g)}, ${Ec(this.b)}${1===e?")":`, ${e})`}`}function xc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ec(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Lc(e){return((e=Ec(e))<16?"0":"")+e.toString(16)}function Dc(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Nc(e,t,n,i)}function Ic(e){if(e instanceof Nc)return new Nc(e.h,e.s,e.l,e.opacity);if(e instanceof ic||(e=Cc(e)),!e)return new Nc;if(e instanceof Nc)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Nc(s,a,l,e.opacity)}function Nc(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Mc(e){return(e=(e||0)%360)<0?e+360:e}function Tc(e){return Math.max(0,Math.min(1,e||0))}function Rc(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}tc(ic,Cc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bc,formatHex:bc,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ic(this).formatHsl()},formatRgb:vc,toString:vc}),tc(wc,Ac,nc(ic,{brighter(e){return e=null==e?rc:Math.pow(rc,e),new wc(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oc:Math.pow(oc,e),new wc(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wc(Ec(this.r),Ec(this.g),Ec(this.b),xc(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:Sc,formatHex:Sc,formatHex8:function(){return`#${Lc(this.r)}${Lc(this.g)}${Lc(this.b)}${Lc(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:kc,toString:kc})),tc(Nc,function(e,t,n,i){return 1===arguments.length?Ic(e):new Nc(e,t,n,null==i?1:i)},nc(ic,{brighter(e){return e=null==e?rc:Math.pow(rc,e),new Nc(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oc:Math.pow(oc,e),new Nc(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new wc(Rc(e>=240?e-240:e+120,o,i),Rc(e,o,i),Rc(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Nc(Mc(this.h),Tc(this.s),Tc(this.l),xc(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=xc(this.opacity);return`${1===e?"hsl(":"hsla("}${Mc(this.h)}, ${100*Tc(this.s)}%, ${100*Tc(this.l)}%${1===e?")":`, ${e})`}`}}));var qc=s(312),Oc=s.n(qc);const Pc=JSON.parse('{"fontSize":"12px","fontFamily":"\'Source Sans Pro\', \'Arial\', \'sans-serif\'","backgroundColor":"transparent","dataColors":{"primaryColor":"#26a0a7","othersColor":"#a5a5a5","errorColor":"#ff4444","nullColor":"#d2d2d2"},"object":{"title":{"main":{"color":"@B50","fontSize":"15px","backgroundColor":"transparent"},"subTitle":{"color":"@B50","fontSize":"12px","backgroundColor":"transparent"},"footer":{"color":"@B50","fontSize":"12px","backgroundColor":"transparent"}}},"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"]}]}}'),Bc=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"}'),Fc=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","object":{"listBox":{"backgroundColor":"@B20","title":{"main":{"color":"@B98","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#@B98","fontSize":"12px"}}}}'),Wc=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),zc={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}},Vc=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Hc=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,jc=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,Uc=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,$c=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Gc=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Kc}=Math,{round:Qc}=Math;class Yc{constructor(...e){let t,n,i,o,r,s,a,l,c,d,h,u,g=0,p=0,m=0,f=1;if(this._invalid=!1,e[0]instanceof Yc)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(u=e[0],h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10),f=parseFloat(h[4]);else if(h=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))f=parseInt(h[1],10)/255,g=parseInt(h[2],10),p=parseInt(h[3],10),m=parseInt(h[4],10);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(u))g=parseInt(h[1],16),p=parseInt(h[2],16),m=parseInt(h[3],16),f=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(u))g=parseInt(h[1]+h[1],16),p=parseInt(h[2]+h[2],16),m=parseInt(h[3]+h[3],16),f=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),o=parseFloat(h[5]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,s=o<=.5?2*o*n:(2-2*o)*n,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=Qc(255*g),p=Qc(255*p),m=Qc(255*m),f=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),o=parseFloat(h[5]),f=parseFloat(h[7]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,s=o<=.5?2*o*n:(2-2*o)*n,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=Qc(255*g),p=Qc(255*p),m=Qc(255*m)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),r=parseFloat(h[5]),t%=360,n/=100,r/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,r=r<0?0:r>1?1:r,s=r*n,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=Qc(255*g),p=Qc(255*p),m=Qc(255*m),f=1}else zc[u.toLowerCase()]?(i=u.toLowerCase(),g=zc[i].r,p=zc[i].g,m=zc[i].b,f="number"==typeof zc[i].a?zc[i].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=Kc(g),this._g=Kc(p),this._b=Kc(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=Yc.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Yc.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Yc.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Yc.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Yc.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Yc.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=Yc.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Yc.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(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),i=parseFloat(n[1]),o=parseFloat(n[3]);let r=parseFloat(n[5]);const s=parseFloat(n[7]);return r+=e,r=Math.max(0,Math.min(r,100)),`hsla(${i},${o},${r},${s})`}isEqual(e){return e instanceof Yc||(e=new Yc(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[Kc(this._r+(e._r-this._r)*t),Kc(this._g+(e._g-this._g)*t),Kc(this._b+(e._b-this._b)*t),Kc(this._a+(e._a-this._a)*t)].join(",")})`}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,i=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Yc(i)}static toRGB(e){return e instanceof Yc?`rgb(${[e._r,e._g,e._b].join(",")})`:("string"==typeof e&&(e=Yc.toNumber(e)),`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`)}static toRGBA(e,t){return e instanceof Yc?`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`:("string"==typeof e&&(e=Yc.toNumber(e)),`rgba(${(16711680&e)>>16},${(65280&e)>>8},${255&e},${void 0!==t?t:e._a})`)}static toHex(e){let t,n,i;return e instanceof Yc?(t=e._r.toString(16),n=e._g.toString(16),i=e._b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${[t,n,i].join("")}`):("string"==typeof e&&(e=Yc.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),i=(255&e).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${t}${n}${i}`)}static toHSL(e,t){let n,i,o,r=0;"string"==typeof e&&(e=new Yc(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(i=t?.21*s+.72*a+.07*l:(c+d)/2,c===d)n=0,r=0;else{switch(o=c-d,n=i>.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*n},${100*i})`}static toHSLA(e,t){let n,i,o,r=0;"string"==typeof e&&(e=new Yc(e));const s=e._r/255,a=e._g/255,l=e._b/255,c=e._a,d=Math.max(s,a,l),h=Math.min(s,a,l);if(i=t?.21*s+.72*a+.07*l:(d+h)/2,d===h)n=0,r=0;else{switch(o=d-h,n=i>.5?o/(2-d-h):o/(d+h),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*n},${100*i},${c})`}static toHSVComponents(e){let t,n,i=0;"string"==typeof e&&(e=new Yc(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,i=0;else{switch(n=a-l,t=0===n?0:n/c,a){case o:i=(r-s)/n+(r<s?6:0);break;case r:i=(s-o)/n+2;break;case s:i=(o-r)/n+4}i/=6}return{h:360*i%360,s:100*t,v:100*c}}static toNumber(...e){if(1===e.length&&e[0]instanceof Yc)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,n,i=0,o=0,r=0;return 1===e.length&&"string"==typeof e[0]&&(n=e[0],(t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(n))?(i=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(n))?(i=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(n))&&(i=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),r=parseInt(t[3]+t[3],16))),(i<<16)+(o<<8)+r}static blend(e,t,n){const i=(16711680&(e=Yc.toNumber(e)))>>16,o=(65280&e)>>8,r=255&e;return(i+(((16711680&(t=Yc.toNumber(t)))>>16)-i)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(r+((255&t)-r)*n)}static getBlend(e,t,n){const i=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,r=e._b+(t._b-e._b)*n,s=e._a+(t._a-e._a)*n;return new Yc(i,o,r,s)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Vc.test(e)||Hc.test(e)||jc.test(e)||Uc.test(e)||$c.test(e)||Gc.test(e)||zc[e.toLowerCase()])}static getBestContrast(e,t,n){const i=e.getLuminance();return Math.abs(i-t.getLuminance())>Math.abs(i-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,i=t.getLuminance()/100;return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}static isDark(...e){return new Yc(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const Xc=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Cc(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([Cc(e),Cc(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const i=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(i);o=o===i?o-1:o;const r=this.colorParts[t][o],s=r[0],a=r[1];if(e===this.min)return a;if(e===this.max)return s;const l=function(e,t,n){return Ac(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(s,a,i-o);return l}};function Zc(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function Jc(e,t,n){const i=[],o=new Xc(t);i.push(e[0]),n||i.push(e[0]);let r=1;for(;r<e.length-1;r++)i.push(e[r]),i.push(e[r]);i.push(e[r]),n||i.push(e[r]);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function ed(e,t,n){const i=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const i=Zc(1/t*o,t,n);r=e.getColor(i);break}}i.push(Cc(r).formatHex())}return i}function td(e,t){const n=[];let i,o;if(e){let r=e.length;for(;r>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),r--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function nd(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function id(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=td(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=nd(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function od(e,t){Object.keys(e).forEach(n=>{"object"==typeof e[n]&&null!==e[n]?od(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])})}function rd(e){const t=Cc(e);if(!t)return 0;const{r:n,g:i,b:o}=t.rgb(),[r,s,a]=[n,i,o].map(e=>e/255),[l,c,d]=[r,s,a].map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return+(.2126*l+.7152*c+.0722*d).toFixed(5)}function sd(){let e,t,n,i={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(i[t]||(i[t]=id(t,e)),i[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const i=Cc(...e);return i?i.toString():void 0}},r={setTheme(r,s){e=function(e,t){const n="dark"===e.type?Fc:Bc;let i=Wc;!1!==e._inherit&&"false"!==e._inherit||(i={});const o=Oc()(!0,{},Pc,i,n),r=Oc()(!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,id.resolveRawTheme),i={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})}),t},dataPalettes(){const t=[];return e.palettes.data.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})}),t},uiPalettes(){const t=[];return e.palettes.ui.forEach(e=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})}),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){if(("number"!=typeof e?.index||Number.isNaN(e?.index))&&"string"!=typeof e?.color)return;const n=(()=>e?.index<0||void 0===e?.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return n;const i=new Yc(n);return i.setAlpha(e.alpha),i.isInvalid()?n:i.toRGBA()}}}(e);const a=o.getStyle("","","color"),l=rd(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(rd);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const r=rd(o),s=i.map(e=>{return t=r,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n}),a=e[s.indexOf(Math.max(...s))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(ec().prototype).forEach(e=>{o[e]=ec().prototype[e]}),ec().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}id.resolveRawTheme=e=>{const t=Oc()(!0,{},e);return od(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach(e=>{if("class"===e.type){const n=function(e,t,n){const i=Jc(e,n,!0),o=Jc(ed(i,t-1,t),n,!1),r=[null];for(let e=0;e<t;e++)r.push(ed(o,e,t));return r}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}})}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const ad=(e,t)=>new Promise(n=>{setTimeout(()=>n(t),e)});const ld=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null}),cd={active:!0,select:!0,passive:!0,edit:!1};function dd(e){const t={},n={},i=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const i={};return Object.keys(t).forEach(e=>{i[e]=!t[e]}),i}(e);Object.keys(cd).forEach(e=>{void 0!==i[e]?(t[e]=i[e],n[e]=!i[e]):(t[e]=cd[e],n[e]=!cd[e])}),e.constraints=n,e.interactions=t}const hd=(e={},n=()=>{})=>{const i=e,o=[],r={},s={get:e=>i[e],set:(e,t)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return i[e]=t,r[e]=n({type:"SET",value:t}),t},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);i[e]=null},dispatch:e=>{o.forEach(t=>t(e?{}:i))},destroy:()=>{Object.keys(r).forEach(e=>{r[e]&&r[e]()})}};return[()=>{const[,e]=(0,t.useState)(i);return(0,t.useEffect)(()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)}),[e]),[s]},s]};function ud(e){const[t,n]=hd({}),[i,o]=hd({}),[r,s]=hd({}),[a,l]=hd({}),[c,d]=hd({}),[,h]=hd({}),u=({type:e,value:t})=>{const i=h.get(t.id);h.set(t.id,{});const r=()=>{o.clear(t.id),d.set(t.id,{}),d.dispatch(!0)},a=()=>{t.removeListener("closed",a),t.removeListener("changed",r),n.clear(t.id),o.clear(t.id),s.clear(t.id),l.clear(t.id),d.clear(t.id),h.clear(t.id)};return"SET"===e&&(i||(t.on("changed",r),t.once("closed",a))),a},[g,p]=hd({},u);return{subscribe:e=>{const t=u({type:"SET",value:e});return()=>{t(),p.clear(e.id)}},destroy:()=>{p.destroy()},useModelStore:g,modelStore:p,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:i,rpcRequestStore:o,useRpcRequestModelStore:a,rpcRequestModelStore:l,useRpcRequestSessionModelStore:r,rpcRequestSessionModelStore:s,modelChangedStore:d,appId:e}}function gd(e){const[t,n]=hd({}),[i,o]=hd({}),[r,s]=hd({});return{useAppSelectionsStore:t,useAppModalStore:i,appSelectionsStore:n,appModalStore:o,useModalObjectStore:r,modalObjectStore:s,appId:e}}const pd=(0,t.forwardRef)(({initialContext:e,renderCallback:n,modelStore:i,selectionStore:o},r)=>{const[s,a]=(0,t.useState)(e),[l,c]=(0,t.useState)(),{theme:d}=(0,t.useMemo)(()=>({theme:xi(l)}),[l]),[h,u]=(0,t.useState)([]);return(0,t.useEffect)(()=>{n&&n()},[]),(0,t.useImperativeHandle)(r,()=>({setComps(e){u([...e])},setMuiThemeName:c,setContext:e=>a(t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)}),[]),s&&(s.modelStore=i,s.selectionStore=o),t.createElement(gi.A,{injectFirst:!0},t.createElement(ui,{theme:d},t.createElement(ld.Provider,{value:s},h)))});function md(){const{useModelStore:e}=(0,t.useContext)(ld).modelStore;return e()}function fd(e,n,...i){const o=n?`${n.id}/${JSON.stringify(e)}`:null,[r]=md(),[s]=function(){const{useRpcRequestSessionModelStore:e}=(0,t.useContext)(ld).modelStore;return e()}(),[a,l]=(0,t.useState)();return(0,t.useEffect)(()=>{n&&(async()=>{let t=s.get(o);t||(t=n.createSessionObject(e),s.set(o,t));const i=await t;r.set(o,i),l(i)})()},[n,...i]),[a]}const bd={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function vd(e){return fd(bd,e)}const Cd=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let r;switch(t.type){case"INVALID":r={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":r={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":r={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let s=n.get(i);return s||(s={}),s[o]=r,n.set(i,s),r};function _d(e,n){const i=e?`${e.id}`:null,[o]=function(){const{useRpcResultStore:e}=(0,t.useContext)(ld).modelStore;return e()}(),[r,s]=(0,t.useReducer)(Cd,i?o.get(i):null),[a]=function(){const{useModelChangedStore:e}=(0,t.useContext)(ld).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=(0,t.useContext)(ld).modelStore;return e()}();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async t=>{let r=c[n];(!r||r&&r.rpcRetry)&&(r={rpc:e[n](),rpcRetry:!1},c[n]=r,s({type:"INVALID",method:n,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{await new Promise(e=>{setTimeout(e,0)});const t=await r.rpc;s({type:"VALID",result:t,key:i,method:n,model:e,rpcResultStore:o})}catch(e){15!==e.code||t||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},h={cancel:async()=>{const t=e.session.getObjectApi({handle:-1});await t.cancelRequest(c[n].rpc.requestId),s({type:"CANCELLED",key:i,method:n,model:e,rpcResultStore:o})},retry:()=>{c[n].rpcRetry=!0,d()}};return(0,t.useEffect)(()=>{e&&d()},[e,a.get(e&&e.id),i,n]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},h]}function yd(e){const[t,{validating:n,canCancel:i,canRetry:o},r]=_d(e,"getLayout");return e?.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:i,canRetry:o},r]:[t,{validating:n,canCancel:i,canRetry:o},r]}function Ad(e){return _d(e,"getAppLayout")}function wd(){const[e,n]=(0,t.useState)(),[i,o]=(0,t.useState)(),r=(0,t.useCallback)(e=>{e&&n(e)},[]),s=()=>{const{left:t,top:n,width:i,height:r}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:r})};return(0,t.useLayoutEffect)(()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(s);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}},[e]),[r,i,e]}const Sd=e=>ss((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)),kd=e=>({...e,viewBox:"0 0 12 16",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"}}]}),xd=e=>ss(kd(e));function Ed(e){var n;return parseInt(t.version,10)>=19?(null==e||null==(n=e.props)?void 0:n.ref)||null:(null==e?void 0:e.ref)||null}const Ld=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Dd(e){return`scale(${e}, ${e**2})`}const Id={entering:{opacity:1,transform:Dd(1)},entered:{opacity:1,transform:"none"}},Nd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Md=t.forwardRef(function(e,n){const{addEndListener:i,appear:o=!0,children:r,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:h,onExited:u,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=$r}=e,b=(0,Zt.A)(e,Ld),v=(0,Po.A)(),C=t.useRef(),_=Gn(),y=t.useRef(null),A=(0,wo.A)(y,Ed(r),n),w=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},S=w(d),k=w((e,t)=>{Kr(e);const{duration:n,delay:i,easing:o}=Qr({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=_.transitions.getAutoHeightDuration(e.clientHeight),C.current=r):r=n,e.style.transition=[_.transitions.create("opacity",{duration:r,delay:i}),_.transitions.create("transform",{duration:Nd?r:.666*r,delay:i,easing:o})].join(","),l&&l(e,t)}),x=w(c),E=w(g),L=w(e=>{const{duration:t,delay:n,easing:i}=Qr({style:p,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=_.transitions.getAutoHeightDuration(e.clientHeight),C.current=o):o=t,e.style.transition=[_.transitions.create("opacity",{duration:o,delay:n}),_.transitions.create("transform",{duration:Nd?o:.666*o,delay:Nd?n:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Dd(.75),h&&h(e)}),D=w(u);return(0,dn.jsx)(f,(0,Jt.A)({appear:o,in:a,nodeRef:y,onEnter:k,onEntered:x,onEntering:S,onExit:L,onExited:D,onExiting:E,addEndListener:e=>{"auto"===m&&v.start(C.current||0,e),i&&i(y.current,e)},timeout:"auto"===m?null:m},b,{children:(e,n)=>t.cloneElement(r,(0,Jt.A)({style:(0,Jt.A)({opacity:0,transform:Dd(.75),visibility:"exited"!==e||a?void 0:"hidden"},Id[e],p,r.props.style),ref:A},n))}))});Md.muiSupportAuto=!0;const Td=Md;var Rd=s(3395);const qd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Od(e){const t=[],n=[];return Array.from(e.querySelectorAll(qd)).forEach((e,i)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:i,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Pd(){return!0}const Bd=function(e){const{children:n,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=Od,isEnabled:a=Pd,open:l}=e,c=t.useRef(!1),d=t.useRef(null),h=t.useRef(null),u=t.useRef(null),g=t.useRef(null),p=t.useRef(!1),m=t.useRef(null),f=(0,Fs.A)(Ed(n),m),b=t.useRef(null);t.useEffect(()=>{l&&m.current&&(p.current=!i)},[i,l]),t.useEffect(()=>{if(!l||!m.current)return;const e=(0,Rd.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{r||(u.current&&u.current.focus&&(c.current=!0,u.current.focus()),u.current=null)}},[l]),t.useEffect(()=>{if(!l||!m.current)return;const e=(0,Rd.A)(m.current),t=t=>{b.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,h.current&&h.current.focus())},n=()=>{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!==h.current)return;if(e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let n=[];if(e.activeElement!==d.current&&e.activeElement!==h.current||(n=s(m.current)),n.length>0){var i,r;const e=Boolean((null==(i=b.current)?void 0:i.shiftKey)&&"Tab"===(null==(r=b.current)?void 0:r.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[i,o,r,a,l,s]);const v=e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0};return(0,dn.jsxs)(t.Fragment,{children:[(0,dn.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),t.cloneElement(n,{ref:f,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0,g.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,dn.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:h,"data-testid":"sentinelEnd"})]})};var Fd=s(3659);const Wd=t.forwardRef(function(e,n){const{children:i,container:o,disablePortal:r=!1}=e,[s,a]=t.useState(null),l=(0,Fs.A)(t.isValidElement(i)?Ed(i):null,n);if((0,ii.A)(()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)},[o,r]),(0,ii.A)(()=>{if(s&&!r)return(0,Fd.A)(n,s),()=>{(0,Fd.A)(n,null)}},[n,s,r]),r){if(t.isValidElement(i)){const e={ref:l};return t.cloneElement(i,e)}return(0,dn.jsx)(t.Fragment,{children:i})}return(0,dn.jsx)(t.Fragment,{children:s?Br.createPortal(i,s):s})}),zd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Vd={entering:{opacity:1},entered:{opacity:1}},Hd=t.forwardRef(function(e,n){const i=Gn(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:h,onEntering:u,onExit:g,onExited:p,onExiting:m,style:f,timeout:b=o,TransitionComponent:v=$r}=e,C=(0,Zt.A)(e,zd),_=t.useRef(null),y=(0,wo.A)(_,Ed(a),n),A=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},w=A(u),S=A((e,t)=>{Kr(e);const n=Qr({style:f,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",n),e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)}),k=A(h),x=A(m),E=A(e=>{const t=Qr({style:f,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)}),L=A(p);return(0,dn.jsx)(v,(0,Jt.A)({appear:s,in:c,nodeRef:_,onEnter:S,onEntered:k,onEntering:w,onExit:E,onExited:L,onExiting:x,addEndListener:e=>{r&&r(_.current,e)},timeout:b},C,{children:(e,n)=>t.cloneElement(a,(0,Jt.A)({style:(0,Jt.A)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Vd[e],f,a.props.style),ref:y},n))}))}),jd=Hd;function Ud(e){return(0,ln.Ay)("MuiBackdrop",e)}(0,an.A)("MuiBackdrop",["root","invisible"]);const $d=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Gd=(0,sn.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>(0,Jt.A)({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"})),Kd=t.forwardRef(function(e,t){var n,i,o;const r=(0,rn.b)({props:e,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",components:c={},componentsProps:d={},invisible:h=!1,open:u,slotProps:g={},slots:p={},TransitionComponent:m=jd,transitionDuration:f}=r,b=(0,Zt.A)(r,$d),v=(0,Jt.A)({},r,{component:l,invisible:h}),C=(e=>{const{classes:t,invisible:n}=e,i={root:["root",n&&"invisible"]};return(0,tn.A)(i,Ud,t)})(v),_=null!=(n=g.root)?n:d.root;return(0,dn.jsx)(m,(0,Jt.A)({in:u,timeout:f},b,{children:(0,dn.jsx)(Gd,(0,Jt.A)({"aria-hidden":!0},_,{as:null!=(i=null!=(o=p.root)?o:c.Root)?i:l,className:(0,en.A)(C.root,a,null==_?void 0:_.className),ownerState:(0,Jt.A)({},v,null==_?void 0:_.ownerState),classes:C,ref:t,children:s}))}))}),Qd=Kd;var Yd=s(2351);function Xd(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Zd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Jd(e){return parseInt((0,Ha.A)(e).getComputedStyle(e).paddingRight,10)||0}function eh(e,t,n,i,o){const r=[t,n,...i];[].forEach.call(e.children,e=>{const t=-1===r.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Zd(e,o)})}function th(e,t){let n=-1;return e.some((e,i)=>!!t(e)&&(n=i,!0)),n}const nh=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Zd(e.modalRef,!1);const i=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);eh(t,e.mount,e.modalRef,i,!0);const o=th(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=th(this.containers,t=>-1!==t.modals.indexOf(e)),i=this.containers[n];i.restore||(i.restore=function(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Rd.A)(e);return t.body===e?(0,Ha.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=Xd((0,Rd.A)(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Jd(i)+e}px`;const t=(0,Rd.A)(i).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Jd(t)+e}px`})}let e;if(i.parentNode instanceof DocumentFragment)e=(0,Rd.A)(i).body;else{const t=i.parentElement,n=(0,Ha.A)(i);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:i}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const i=th(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Zd(e.modalRef,t),eh(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Zd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ih(e){return(0,ln.Ay)("MuiModal",e)}(0,an.A)("MuiModal",["root","hidden","backdrop"]);const oh=["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"],rh=(0,sn.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>(0,Jt.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),sh=(0,sn.Ay)(Qd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ah=t.forwardRef(function(e,n){var i,o,r,s,a,l;const c=(0,rn.b)({name:"MuiModal",props:e}),{BackdropComponent:d=sh,BackdropProps:h,className:u,closeAfterTransition:g=!1,children:p,container:m,component:f,components:b={},componentsProps:v={},disableAutoFocus:C=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:y=!1,disablePortal:A=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:k=!1,keepMounted:x=!1,onBackdropClick:E,open:L,slotProps:D,slots:I}=c,N=(0,Zt.A)(c,oh),M=(0,Jt.A)({},c,{closeAfterTransition:g,disableAutoFocus:C,disableEnforceFocus:_,disableEscapeKeyDown:y,disablePortal:A,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:k,keepMounted:x}),{getRootProps:T,getBackdropProps:R,getTransitionProps:q,portalRef:O,isTopModal:P,exited:B,hasTransition:F}=function(e){const{container:n,disableEscapeKeyDown:i=!1,disableScrollLock:o=!1,manager:r=nh,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:h,rootRef:u}=e,g=t.useRef({}),p=t.useRef(null),m=t.useRef(null),f=(0,Fs.A)(m,u),[b,v]=t.useState(!h),C=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let _=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(_=!1);const y=()=>(g.current.modalRef=m.current,g.current.mount=p.current,g.current),A=()=>{r.mount(y(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},w=(0,ja.A)(()=>{const e=function(e){return"function"==typeof e?e():e}(n)||(0,Rd.A)(p.current).body;r.add(y(),e),m.current&&A()}),S=t.useCallback(()=>r.isTopModal(y()),[r]),k=(0,ja.A)(e=>{p.current=e,e&&(h&&S()?A():m.current&&Zd(m.current,_))}),x=t.useCallback(()=>{r.remove(y(),_)},[_,r]);t.useEffect(()=>()=>{x()},[x]),t.useEffect(()=>{h?w():C&&s||x()},[h,x,C,s,w]);const E=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&S()&&(i||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(t={})=>{const n=zs(e);delete n.onTransitionEnter,delete n.onTransitionExited;const i=(0,Jt.A)({},n,t);return(0,Jt.A)({role:"presentation"},i,{onKeyDown:E(i),ref:f})},getBackdropProps:(e={})=>{const t=e;return(0,Jt.A)({"aria-hidden":!0},t,{onClick:L(t),open:h})},getTransitionProps:()=>({onEnter:(0,Yd.A)(()=>{v(!1),a&&a()},null==c?void 0:c.props.onEnter),onExited:(0,Yd.A)(()=>{v(!0),l&&l(),s&&x()},null==c?void 0:c.props.onExited)}),rootRef:f,portalRef:k,isTopModal:S,exited:b,hasTransition:C}}((0,Jt.A)({},M,{rootRef:n})),W=(0,Jt.A)({},M,{exited:B}),z=(e=>{const{open:t,exited:n,classes:i}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,tn.A)(o,ih,i)})(W),V={};if(void 0===p.props.tabIndex&&(V.tabIndex="-1"),F){const{onEnter:e,onExited:t}=q();V.onEnter=e,V.onExited=t}const H=null!=(i=null!=(o=null==I?void 0:I.root)?o:b.Root)?i:rh,j=null!=(r=null!=(s=null==I?void 0:I.backdrop)?s:b.Backdrop)?r:d,U=null!=(a=null==D?void 0:D.root)?a:v.root,$=null!=(l=null==D?void 0:D.backdrop)?l:v.backdrop,G=$s({elementType:H,externalSlotProps:U,externalForwardedProps:N,getSlotProps:T,additionalProps:{ref:n,as:f},ownerState:W,className:(0,en.A)(u,null==U?void 0:U.className,null==z?void 0:z.root,!W.open&&W.exited&&(null==z?void 0:z.hidden))}),K=$s({elementType:j,externalSlotProps:$,additionalProps:h,getSlotProps:e=>R((0,Jt.A)({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,en.A)(null==$?void 0:$.className,null==h?void 0:h.className,null==z?void 0:z.backdrop),ownerState:W});return x||L||F&&!B?(0,dn.jsx)(Wd,{ref:O,container:m,disablePortal:A,children:(0,dn.jsxs)(H,(0,Jt.A)({},G,{children:[!k&&d?(0,dn.jsx)(j,(0,Jt.A)({},K)):null,(0,dn.jsx)(Bd,{disableEnforceFocus:_,disableAutoFocus:C,disableRestoreFocus:w,isEnabled:P,open:L,children:t.cloneElement(p,V)})]}))}):null}),lh=ah,ch=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function dh(e){return(0,ln.Ay)("MuiPaper",e)}(0,an.A)("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 hh=["className","component","elevation","square","variant"],uh=(0,sn.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return(0,Jt.A)({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,Jt.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,Ao.X4)("#fff",ch(t.elevation))}, ${(0,Ao.X4)("#fff",ch(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),gh=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiPaper"}),{className:i,component:o="div",elevation:r=1,square:s=!1,variant:a="elevation"}=n,l=(0,Zt.A)(n,hh),c=(0,Jt.A)({},n,{component:o,elevation:r,square:s,variant:a}),d=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e,r={root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]};return(0,tn.A)(r,dh,o)})(c);return(0,dn.jsx)(uh,(0,Jt.A)({as:o,ownerState:c,className:(0,en.A)(d.root,i),ref:t},l))}),ph=gh;function mh(e){return(0,ln.Ay)("MuiPopover",e)}(0,an.A)("MuiPopover",["root","paper"]);const fh=["onEntering"],bh=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],vh=["slotProps"];function Ch(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function _h(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function yh(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Ah(e){return"function"==typeof e?e():e}const wh=(0,sn.Ay)(lh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sh=(0,sn.Ay)(ph,{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}),kh=t.forwardRef(function(e,n){var i,o,r;const s=(0,rn.b)({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:u,className:g,container:p,elevation:m=8,marginThreshold:f=16,open:b,PaperProps:v={},slots:C,slotProps:_,transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:A=Td,transitionDuration:w="auto",TransitionProps:{onEntering:S}={},disableScrollLock:k=!1}=s,x=(0,Zt.A)(s.TransitionProps,fh),E=(0,Zt.A)(s,bh),L=null!=(i=null==_?void 0:_.paper)?i:v,D=t.useRef(),I=(0,wo.A)(D,L.ref),N=(0,Jt.A)({},s,{anchorOrigin:c,anchorReference:h,elevation:m,marginThreshold:f,externalPaperSlotProps:L,transformOrigin:y,TransitionComponent:A,transitionDuration:w,TransitionProps:x}),M=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"],paper:["paper"]},mh,t)})(N),T=t.useCallback(()=>{if("anchorPosition"===h)return d;const e=Ah(l),t=(e&&1===e.nodeType?e:(0,ha.A)(D.current).body).getBoundingClientRect();return{top:t.top+Ch(t,c.vertical),left:t.left+_h(t,c.horizontal)}},[l,c.horizontal,c.vertical,d,h]),R=t.useCallback(e=>({vertical:Ch(e,y.vertical),horizontal:_h(e,y.horizontal)}),[y.horizontal,y.vertical]),q=t.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=R(t);if("none"===h)return{top:null,left:null,transformOrigin:yh(n)};const i=T();let o=i.top-n.vertical,r=i.left-n.horizontal;const s=o+t.height,a=r+t.width,c=(0,Zs.A)(Ah(l)),d=c.innerHeight-f,u=c.innerWidth-f;if(null!==f&&o<f){const e=o-f;o-=e,n.vertical+=e}else if(null!==f&&s>d){const e=s-d;o-=e,n.vertical+=e}if(null!==f&&r<f){const e=r-f;r-=e,n.horizontal+=e}else if(a>u){const e=a-u;r-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(r)}px`,transformOrigin:yh(n)}},[l,h,T,R,f]),[O,P]=t.useState(b),B=t.useCallback(()=>{const e=D.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)},[q]);t.useEffect(()=>(k&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[l,k,B]),t.useEffect(()=>{b&&B()}),t.useImperativeHandle(a,()=>b?{updatePosition:()=>{B()}}:null,[b,B]),t.useEffect(()=>{if(!b)return;const e=(0,Gs.A)(()=>{B()}),t=(0,Zs.A)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,b,B]);let F=w;"auto"!==w||A.muiSupportAuto||(F=void 0);const W=p||(l?(0,ha.A)(Ah(l)).body:void 0),z=null!=(o=null==C?void 0:C.root)?o:wh,V=null!=(r=null==C?void 0:C.paper)?r:Sh,H=$s({elementType:V,externalSlotProps:(0,Jt.A)({},L,{style:O?L.style:(0,Jt.A)({},L.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:N,className:(0,en.A)(M.paper,null==L?void 0:L.className)}),j=$s({elementType:z,externalSlotProps:(null==_?void 0:_.root)||{},externalForwardedProps:E,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:W,open:b},ownerState:N,className:(0,en.A)(M.root,g)}),{slotProps:U}=j,$=(0,Zt.A)(j,vh);return(0,dn.jsx)(z,(0,Jt.A)({},$,!ps(z)&&{slotProps:U,disableScrollLock:k},{children:(0,dn.jsx)(A,(0,Jt.A)({appear:!0,in:b,onEntering:(e,t)=>{S&&S(e,t),B()},onExited:()=>{P(!1)},timeout:F},x,{children:(0,dn.jsx)(V,(0,Jt.A)({},H,{children:u}))}))}))}),xh=kh;var Eh=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Lh=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},Dh=function(e){function t(){var e,n,i;!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 n=i=Lh(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;i._lastRenderedStartIndex=t,i._lastRenderedStopIndex=n,i._ensureRowsLoaded(t,n)},i._setRef=function(e){i._listRef=e},Lh(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Eh(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,i=n.isItemLoaded,o=n.itemCount,r=n.minimumBatchSize,s=void 0===r?10:r,a=n.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,i=e.minimumBatchSize,o=e.stopIndex,r=[],s=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(r.push(s,a),s=a=null):(a=l,null===s&&(s=l));if(null!==a){for(var c=Math.min(Math.max(a,s+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<i&&r[0]>0;){var h=r[0]-1;if(t(h))break;r[0]=h}return r}({isItemLoaded:i,itemCount:o,minimumBatchSize:s,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some(function(e,t){return c[t]!==e}))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,i=function(i){var o=e[i],r=e[i+1],s=n(o,r);null!=s&&s.then(function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r}).startIndex>e.lastRenderedStopIndex||e.stopIndex<e.lastRenderedStartIndex)){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}var e})},o=0;o<e.length;o+=2)i(o)}}]),t}(t.PureComponent);const Ih=Dh,Nh=["S","XS"],Mh=e=>e.reduce((e,t)=>e.concat(t));async function Th({selections:e,elemNumbers:t,toggle:n,isSingleSelect:i}){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,n]})}catch{o=!1}o||(i?e.cancel():e.clear())}return o}const Rh="RowColumn",qh={row:`${Rh}-row`,rowBorderBottom:`${Rh}-rowBorderBottom`,column:`${Rh}-column`,fieldRoot:`${Rh}-fieldRoot`,cell:`${Rh}-cell`,labelText:`${Rh}-labelText`,labelDense:`${Rh}-labelDense`,highlighted:`${Rh}-highlighted`,checkboxLabel:`${Rh}-checkboxLabel`,icon:`${Rh}-icon`,S:`${Rh}-S`,XS:`${Rh}-XS`,A:`${Rh}-A`,X:`${Rh}-X`,frequencyCount:`${Rh}-frequencyCount`,barContainer:`${Rh}-barContainer`,bar:`${Rh}-bar`,barSelected:`${Rh}-barSelected`,barWithCheckbox:`${Rh}-barWithCheckbox`,barSelectedWithCheckbox:`${Rh}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Rh}-excludedTextWithCheckbox`},Oh=`.${qh.fieldRoot}`,Ph=e=>!(e?.metaKey||e?.ctrlKey);const Bh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),Fh=e=>ss(Bh(e)),Wh=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,zh=({cell:e,checkboxes:t})=>{return(((n=e)?"A"===n.qState:null)||Wh(e))&&t;var n},Vh=e=>e.filter(e=>!!e).join(" ").trim(),Hh=e=>e||"-",jh=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:i})=>"P"===t?`${e.freqMinWidth}px`:n&&!i?"max-content":"25%",Uh=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,$h=({theme:e,checkboxes:t,styles:n,selectionState:i})=>{if(t)return"selected"===i?{[`& .${qh.labelText}`]:{color:n.selections.selected}}:{};const o=n.selections,r=o[i],s=o[`${i}Contrast`];return{background:r,color:s,"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`,outline:"none"},"& $cell":{paddingRight:0},[`& .${qh.labelText}`]:{color:s},[`& .${qh.icon}`]:{color:s}}},Gh={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Kh=(0,sn.Ay)("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})(({theme:e,checkboxes:t,isGridMode:n,isGridCol:i,dense:o,direction:r,sizes:s,frequencyMode:a,freqHitsValue:l,styles:c})=>{const{backgroundColor:d,...h}=c.content,u=$h({theme:e,styles:c,checkboxes:t,selectionState:"selected"}),g=$h({theme:e,styles:c,checkboxes:t,selectionState:"excluded"}),p={height:"100%",transition:"width 0.2s",border:"1px solid",borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},m={opacity:"30%"};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"}},[`& .${qh.row}`]:{flexWrap:"nowrap",...c.content},[`& .${qh.rowBorderBottom}`]:{borderBottom:i?"none":`1px solid ${e.palette.divider}`,borderLeft:i?`1px solid ${e.palette.divider}`:"none"},[`& .${qh.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${qh.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${qh.labelText}`]:{lineHeight:"24px",userSelect:"none",paddingRight:"1px",...Gh,...h},[`& .${qh.labelDense}`]:{lineHeight:"18px"},[`& .${qh.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${qh.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...Gh,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${qh.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${qh.S}`]:{...u,border:n?"none":void 0},[`& .${qh.XS}`]:{...$h({theme:e,styles:c,checkboxes:t,selectionState:"selectedExcluded"}),border:n?"none":void 0},[`& .${qh.A}`]:{...$h({theme:e,styles:c,checkboxes:t,selectionState:"alternative"}),border:n?"none":void 0},[`& .${qh.X}`]:{...g,border:n?"none":void 0},[`& .${qh.X}, & .${qh.XS}`]:{border:n?"none":void 0,[`& .${qh.barSelected} .bar-filled`]:{...p}},[`& .${qh.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...Gh,flex:`0 0 ${jh({sizes:s,frequencyMode:a,isGridMode:n,freqHitsValue:l})}`,minWidth:!n&&"P"!==a&&l?s.freqMinWidth:"max-content",maxWidth:Uh({sizes:s,frequencyMode:a,isGridMode:n}),textAlign:"rtl"===r?"left":"right",paddingLeft:"rtl"!==r?"8px":0},[`&.${qh.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${qh.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{...p}},[`& .${qh.barSelected}`]:{"& .bar-filled":{...m}},[`& .${qh.barWithCheckbox}`]:{left:"rtl"===r?4:29,width:"calc(100% - 33px)"},[`& .${qh.barSelectedWithCheckbox}`]:{"& .bar-filled":{...m,backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected}},[`& .${qh.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}}),Qh=t.memo(Kh);var Yh=s(1967);const Xh=["component","direction","spacing","divider","children","className","useFlexGap"],Zh=(0,bn.A)(),Jh=Pn("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function eu(e){return An({props:e,name:"MuiStack",defaultTheme:Zh})}function tu(e,n){const i=t.Children.toArray(e).filter(Boolean);return i.reduce((e,o,r)=>(e.push(o),r<i.length-1&&e.push(t.cloneElement(n,{key:`separator-${r}`})),e),[])}const nu=({ownerState:e,theme:t})=>{let n=(0,Jt.A)({display:"flex",flexDirection:"column"},(0,dr.NI)({theme:t},(0,dr.kW)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const i=(0,Yh.LX)(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),r=(0,dr.kW)({values:e.direction,base:o}),s=(0,dr.kW)({values:e.spacing,base:o});"object"==typeof r&&Object.keys(r).forEach((e,t,n)=>{if(!r[e]){const i=t>0?r[n[t-1]]:"column";r[e]=i}});const a=(t,n)=>{return e.useFlexGap?{gap:(0,Yh._W)(i,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?r[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,Yh._W)(i,t)}};var o};n=(0,Sn.A)(n,(0,dr.NI)({theme:t},s,a))}return n=(0,dr.iZ)(t.breakpoints,n),n},iu=function(e={}){const{createStyledComponent:n=Jh,useThemeProps:i=eu,componentName:o="MuiStack"}=e,r=n(nu),s=t.forwardRef(function(e,t){const n=i(e),s=(0,Li.A)(n),{component:a="div",direction:l="column",spacing:c=0,divider:d,children:h,className:u,useFlexGap:g=!1}=s,p=(0,Zt.A)(s,Xh),m={direction:l,spacing:c,useFlexGap:g},f=(0,tn.A)({root:["root"]},e=>(0,ln.Ay)(o,e),{});return(0,dn.jsx)(r,(0,Jt.A)({as:a,ownerState:m,ref:t,className:(0,en.A)(f.root,u)},p,{children:d?tu(h,d):h}))});return s}({createStyledComponent:(0,sn.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,rn.b)({props:e,name:"MuiStack"})}),ou=iu;function ru(e){return(0,ln.Ay)("MuiFormControlLabel",e)}const su=(0,an.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),au=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],lu=(0,sn.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${su.label}`]:t.label},t.root,t[`labelPlacement${(0,Vn.A)(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${su.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},{[`& .${su.label}`]:{[`&.${su.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),cu=(0,sn.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${su.error}`]:{color:(e.vars||e).palette.error.main}})),du=t.forwardRef(function(e,n){var i,o;const r=(0,rn.b)({props:e,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:h,labelPlacement:u="end",required:g,slotProps:p={}}=r,m=(0,Zt.A)(r,au),f=Oa(),b=null!=(i=null!=c?c:l.props.disabled)?i:null==f?void 0:f.disabled,v=null!=g?g:l.props.required,C={disabled:b,required:v};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===l.props[e]&&void 0!==r[e]&&(C[e]=r[e])});const _=Pa({props:r,muiFormControl:f,states:["error"]}),y=(0,Jt.A)({},r,{disabled:b,labelPlacement:u,required:v,error:_.error}),A=(e=>{const{classes:t,disabled:n,labelPlacement:i,error:o,required:r}=e,s={root:["root",n&&"disabled",`labelPlacement${(0,Vn.A)(i)}`,o&&"error",r&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,tn.A)(s,ru,t)})(y),w=null!=(o=p.typography)?o:a.typography;let S=h;return null==S||S.type===Lr||d||(S=(0,dn.jsx)(Lr,(0,Jt.A)({component:"span"},w,{className:(0,en.A)(A.label,null==w?void 0:w.className),children:S}))),(0,dn.jsxs)(lu,(0,Jt.A)({className:(0,en.A)(A.root,s),ownerState:y,ref:n},m,{children:[t.cloneElement(l,C),v?(0,dn.jsxs)(ou,{display:"block",children:[S,(0,dn.jsxs)(cu,{ownerState:y,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):S]}))}),hu=du;var uu=s(1078);function gu(e){return(0,ln.Ay)("PrivateSwitchBase",e)}(0,an.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const pu=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],mu=(0,sn.Ay)(ir,{name:"MuiSwitchBase"})(({ownerState:e})=>(0,Jt.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),fu=(0,sn.Ay)("input",{name:"MuiSwitchBase",shouldForwardProp:Na.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),bu=t.forwardRef(function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,className:r,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:h,inputProps:u,inputRef:g,name:p,onBlur:m,onChange:f,onFocus:b,readOnly:v,required:C=!1,tabIndex:_,type:y,value:A}=e,w=(0,Zt.A)(e,pu),[S,k]=(0,uu.A)({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),x=Oa();let E=a;x&&void 0===E&&(E=x.disabled);const L="checkbox"===y||"radio"===y,D=(0,Jt.A)({},e,{checked:S,disabled:E,disableFocusRipple:l,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,r={root:["root",n&&"checked",i&&"disabled",o&&`edge${(0,Vn.A)(o)}`],input:["input"]};return(0,tn.A)(r,gu,t)})(D);return(0,dn.jsxs)(mu,(0,Jt.A)({component:"span",className:(0,en.A)(I.root,r),centerRipple:!0,focusRipple:!l,disabled:E,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),x&&x.onFocus&&x.onFocus(e)},onBlur:e=>{m&&m(e),x&&x.onBlur&&x.onBlur(e)},ownerState:D,ref:t},w,{children:[(0,dn.jsx)(fu,(0,Jt.A)({autoFocus:n,checked:i,defaultChecked:s,className:I.input,disabled:E,id:L?h:void 0,name:p,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),f&&f(e,t)},readOnly:v,ref:g,required:C,ownerState:D,tabIndex:_,type:y},"checkbox"===y&&void 0===A?{}:{value:A},u)),S?o:d]}))}),vu=bu,Cu=(0,Gi.A)((0,dn.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"),_u=(0,Gi.A)((0,dn.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"),yu=(0,Gi.A)((0,dn.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 Au(e){return(0,ln.Ay)("MuiCheckbox",e)}const wu=(0,an.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Su=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ku=(0,sn.Ay)(vu,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,Vn.A)(n.size)}`],"default"!==n.color&&t[`color${(0,Vn.A)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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,Ao.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${wu.checked}, &.${wu.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${wu.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),xu=(0,dn.jsx)(_u,{}),Eu=(0,dn.jsx)(Cu,{}),Lu=(0,dn.jsx)(yu,{}),Du=t.forwardRef(function(e,n){var i,o;const r=(0,rn.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=xu,color:a="primary",icon:l=Eu,indeterminate:c=!1,indeterminateIcon:d=Lu,inputProps:h,size:u="medium",className:g}=r,p=(0,Zt.A)(r,Su),m=c?d:l,f=c?d:s,b=(0,Jt.A)({},r,{color:a,indeterminate:c,size:u}),v=(e=>{const{classes:t,indeterminate:n,color:i,size:o}=e,r={root:["root",n&&"indeterminate",`color${(0,Vn.A)(i)}`,`size${(0,Vn.A)(o)}`]},s=(0,tn.A)(r,Au,t);return(0,Jt.A)({},t,s)})(b);return(0,dn.jsx)(ku,(0,Jt.A)({type:"checkbox",inputProps:(0,Jt.A)({"data-indeterminate":c},h),icon:t.cloneElement(m,{fontSize:null!=(i=m.props.fontSize)?i:u}),checkedIcon:t.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:u}),ownerState:b,ref:n,className:(0,en.A)(v.root,g)},p,{classes:v}))}),Iu=Du,Nu="ListBoxCheckbox",Mu={cbIcon:`${Nu}-cbIcon`,cbIconChecked:`${Nu}-cbIconChecked`,cbIconExcluded:`${Nu}-cbIconExcluded`,cbIconAlternative:`${Nu}-cbIconAlternative`,checkbox:`${Nu}-checkbox`,dense:`${Nu}-dense`},Tu=(0,sn.Ay)(Iu,{shouldForwardProp:e=>"styles"!==e})(({styles:e})=>({[`& .${Mu.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"},[`& .${Mu.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:'""'}},[`& .${Mu.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${Mu.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${Mu.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${Mu.dense}`]:{padding:"4px 8px"}})),Ru=(e,n=!0,i=!1)=>t.createElement("span",{className:e.cbIcon},i&&t.createElement("span",{className:n&&i?e.cbIconExcluded:""}));function qu({onChange:e,checked:n,label:i,dense:o,excluded:r,styles:s,showGray:a=!0,dataN:l}){return t.createElement(Tu,{edge:"start",onChange:e,checked:n,disableRipple:!0,className:[Mu.checkbox,o&&Mu.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":i,"data-n":l},name:i,icon:Ru(Mu,a,r),checkedIcon:t.createElement("span",{className:Mu.cbIconChecked}),styles:s})}const Ou=(0,Gi.A)((0,dn.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"),Pu=(0,Gi.A)((0,dn.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"),Bu=(0,sn.Ay)("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Na.A})({position:"relative",display:"flex"}),Fu=(0,sn.Ay)(Ou,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),Wu=(0,sn.Ay)(Pu,{name:"MuiRadioButtonIcon"})(({theme:e,ownerState:t})=>(0,Jt.A)({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})})),zu=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o=(0,Jt.A)({},e,{checked:t});return(0,dn.jsxs)(Bu,{className:n.root,ownerState:o,children:[(0,dn.jsx)(Fu,{fontSize:i,className:n.background,ownerState:o}),(0,dn.jsx)(Wu,{fontSize:i,className:n.dot,ownerState:o})]})};var Vu=s(2001);const Hu=t.createContext(void 0);function ju(e){return(0,ln.Ay)("MuiRadio",e)}const Uu=(0,an.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),$u=["checked","checkedIcon","color","icon","name","onChange","size","className"],Gu=(0,sn.Ay)(vu,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${(0,Vn.A)(n.size)}`],t[`color${(0,Vn.A)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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,Ao.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Uu.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Uu.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Ku=(0,dn.jsx)(zu,{checked:!0}),Qu=(0,dn.jsx)(zu,{}),Yu=t.forwardRef(function(e,n){var i,o;const r=(0,rn.b)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=Ku,color:l="primary",icon:c=Qu,name:d,onChange:h,size:u="medium",className:g}=r,p=(0,Zt.A)(r,$u),m=(0,Jt.A)({},r,{color:l,size:u}),f=(e=>{const{classes:t,color:n,size:i}=e,o={root:["root",`color${(0,Vn.A)(n)}`,"medium"!==i&&`size${(0,Vn.A)(i)}`]};return(0,Jt.A)({},t,(0,tn.A)(o,ju,t))})(m),b=t.useContext(Hu);let v=s;const C=(0,Vu.A)(h,b&&b.onChange);let _=d;return b&&(void 0===v&&(v=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(b.value,r.value)),void 0===_&&(_=b.name)),(0,dn.jsx)(Gu,(0,Jt.A)({type:"radio",icon:t.cloneElement(c,{fontSize:null!=(i=Qu.props.fontSize)?i:u}),checkedIcon:t.cloneElement(a,{fontSize:null!=(o=Ku.props.fontSize)?o:u}),ownerState:m,classes:f,name:_,checked:v,onChange:C,ref:n,className:(0,en.A)(f.root,g)},p))}),Xu=Yu,Zu="ListBoxRadioButton-radioButton",Ju=(0,sn.Ay)(Xu,{shouldForwardProp:e=>!["dense","styles"].includes(e)})(({checked:e,styles:t,dense:n})=>({[`&.${Zu}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}));function eg({onChange:e,checked:n,label:i,dense:o,dataN:r,styles:s}){return t.createElement(Ju,{checked:n,onChange:e,value:i,name:i,className:Zu,inputProps:{"data-n":r},disableRipple:!0,size:o?"small":"medium",dense:o,styles:s})}const tg=function({label:e,dense:n,showGray:i=!0,checkboxes:o,cell:r,valueTextAlign:s}){return t.createElement(Lr,{component:"span",variant:"body2",className:Vh([qh.labelText,n&&qh.labelDense,i&&zh({cell:r,checkboxes:o})&&qh.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,e))},ng=function({label:e,color:n,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}){return"string"==typeof e?t.createElement(tg,{label:e,color:n,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}):e},ig=function({onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){const g=t.createElement(qu,{onChange:e,label:n,checked:o,dense:r,excluded:Wh(s),isGridCol:a,showGray:l,dataN:i,styles:u}),p=t.createElement(eg,{onChange:e,label:n,checked:o,dense:r,dataN:i,styles:u});return t.createElement(hu,{control:c?p:g,className:qh.checkboxLabel,label:t.createElement(ng,{label:n,dense:r,showGray:l,checkboxes:d,cell:s,valueTextAlign:h}),key:i})};function og({labels:e,dense:n,showGray:i,checkboxes:o}){const r=e.map(([e,n],i)=>t.createElement("span",{id:i,className:n?qh.highlighted:""},e));return t.createElement(tg,{label:r,dense:n,showGray:i,checkboxes:o})}const rg=function({onChange:e,labels:n,checkboxes:i,dense:o,showGray:r,qElemNumber:s,isSelected:a,cell:l,isGridCol:c,isSingleSelect:d,valueTextAlign:h,styles:u}){const g=t.createElement(og,{labels:n,dense:o,showGray:r,checkboxes:i});return i?t.createElement(ig,{onChange:e,label:g,qElemNumber:s,isSelected:a,dense:o,cell:l,isGridCol:c,showGray:r,isSingleSelect:d,checkboxes:i,valueTextAlign:h,styles:u}):g};function sg({onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){return d?t.createElement(ig,{onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}):t.createElement(tg,{label:n,dense:r,showGray:!0,checkboxes:d,cell:s,valueTextAlign:h})}const ag=t.memo(sg),lg=function({qFrequency:e,histogram:n,checkboxes:i,isSelected:o,frequencyMax:r}){if(!e||!n||"-"===Hh(e))return;const s=(({qFrequency:e,frequencyMax:t})=>{const n=String(e),i="%"===n.substring(n.length-1),o=parseFloat(i?n:e);return`${i?o:o/t*100}%`})({qFrequency:e,checkboxes:i,frequencyMax:r});return t.createElement(Ri,{className:Vh([qh.bar,i&&qh.barWithCheckbox,o&&(i?qh.barSelectedWithCheckbox:qh.barSelected)])},t.createElement(Ri,{className:"bar-filled",width:s}))},cg=function({cell:e,checkboxes:n,dense:i,showGray:o}){const r=Hh(e?.qFrequency);return t.createElement(yr,{item:!0,style:{display:"flex",alignItems:"center"},className:qh.frequencyCount,"aria-label":r,title:r},t.createElement(Lr,{noWrap:!0,color:"inherit",variant:"body2",className:Vh([i&&qh.labelDense,qh.labelText,o&&zh({cell:e,checkboxes:n})&&qh.excludedTextWithCheckbox])},r))};function dg({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:i}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:i?"100%":`calc(100% - ${n}px)`,width:`calc(100% - ${2*n}px)`,position:"absolute",left:4};default:return{}}}const hg=(0,sn.Ay)(yr,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})(({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:i,direction:o,fillHeight:r})=>{const s="padding"+("rtl"===o?"Left":"Right");return{[`&.${qh.fieldRoot}`]:{...dg({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:r}),[s]:i?"8px":void 0}}}),ug=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===ug.ARROW_UP||e===ug.ARROW_DOWN||e===ug.ARROW_LEFT||e===ug.ARROW_RIGHT}),gg=ug;function pg(e){e?.querySelectorAll(".last-focused").forEach(e=>{e.classList.remove("last-focused")})}function mg(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")||e?.closest(".qv-gs-listbox")}function fg({containerRef:e,enabled:n}){const[i,o]=(0,t.useState)(!1);return{enabled:n,active:i,innerTabStops:!n||i,blur(t){if(!n)return;o(!1);const i=mg(e.current)||e.current?.parentElement;var r;r=e.current,r?.querySelectorAll('[tabIndex="0"]').forEach(e=>{e.setAttribute("tabIndex",-1)}),pg(e.current),t&&i&&(i.setAttribute("tabIndex",0),e.current.setAttribute("tabIndex",-1),i.focus())},focus(){if(!n)return;o(!0);const t=e.current,i=t?.querySelector(".search input"),r=t?.querySelector(".value.last-focused"),s=t?.querySelector(".value.selector, .value"),a=t?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=t?.querySelector("#listbox-unlock-button"),c=t?.querySelector(".listbox-cyclic-button"),d=c||i||r||s||l||a;d?.setAttribute("tabIndex",0),d?.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return n?.setAttribute("tabIndex",0),n?.focus(),n}}}const bg=e=>+e.getAttribute("data-n"),vg=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},Cg=e=>{const t=e?.querySelector(".value.last-focused"),n=e?.querySelector(".value.selector"),i=e?.querySelector(".value"),o=t||n||i;return o?.setAttribute("tabIndex",0),o?.focus(),pg(e),o},_g=e=>{const t=e?.querySelector(".listbox-cyclic-button:not(:disabled)");return t?.setAttribute("tabIndex",0),t?.focus(),t},yg=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:i}=e,o=i.classList.contains("listbox-container"),r=n.closest(".listbox-container"),s=mg(r),a=1===s?.querySelectorAll(".listbox-container").length;if(o||a)t.blur(!0);else{pg(r),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),e?.focus()}},Ag={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"},wg=function({index:e,rowIndex:n,columnIndex:i,style:o,data:r}){const{onChange:s,onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onTouchStart:h,onTouchEnd:u,pages:g,isLocked:p,column:m=!1,checkboxes:f=!1,textAlign:b,direction:v,layoutOptions:C={},freqIsAllowed:_,isSingleSelect:y,actions:A,frequencyMax:w="",histogram:S=!1,keyboard:k,showGray:x=!0,showTick:E=!0,columnCount:L=1,rowCount:D=1,dataOffset:I,deducedFrequencyMode:N,focusListItems:M,listCount:T,sizes:R,translator:q,showSearch:O,isModal:P,contentFontStyle:B,styles:F,fillHeight:W}=r,{dense:z=!1,dataLayout:V="singleColumn",layoutOrder:H}=C,{itemPadding:j}=R;let U,$;const G={max:null,currentIndex:null};if("number"==typeof n&&"number"==typeof i){"row"===H?(U=n*L+i,G.max=D,G.currentIndex=n):(U=i*D+n,G.max=L,G.currentIndex=i);const e=0;$={...o,height:W?"100%":o.height,left:e+(0===i?o.left:Number(o.left)+i*e),top:0===n?o.top:Number(o.top)+n*e}}else U=e,G.max=T,G.currentIndex=e,$={...o};U+=I;const[K,Q]=(0,t.useState)(null);(0,t.useEffect)(()=>{null!==K&&(0===G.currentIndex&&M.first&&(K.focus(),M.setFirst(!1)),G.currentIndex===G.max-1&&M.last&&(K.focus(),M.setLast(!1)))},[K,M.first,M.last]);const Y=(0,t.useCallback)(function({select:e,selectAll:t,onCtrlF:n,confirm:i,cancel:o,setScrollPosition:r,focusListItems:s,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:h,columnIndex:u,layoutOrder:g}){const p=(e,t,n=!1)=>{if(e===gg.ARROW_LEFT||e===gg.ARROW_RIGHT||"number"!=typeof h||"number"!=typeof u){const e=t?.parentElement[n?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const i=t?.parentElement.parentElement,o=i?.childElementCount;if(o){const n=(({rowIndex:e,columnIndex:t,rowCount:n,columnCount:i,layoutOrder:o,keyCode:r,numCells:s})=>{const a=e=>{let t;return"row"===o?(t=s%i,e<t?n:n-1):(t=s%n,e<i-1?n:t)};let l=e,c=t;if(r===gg.ARROW_DOWN)if(e>=a(t)-1){if(t===i-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*i+c;const d=s%n;return 0===d||l<d?l*i+c:(l-d)*(i-1)+c+d*i})({rowIndex:h,columnIndex:u,rowCount:c,columnCount:d,layoutOrder:g,keyCode:e,numCells:o}),i=t?.parentElement.parentElement.children[n];return i?.querySelector("[role]")}};let m=!1;const f=e=>{m=e};return c=>{let d;const{currentTarget:h,nativeEvent:u}=c,{keyCode:g,shiftKey:b=!1,ctrlKey:v=!1,metaKey:C=!1}=u;switch(g){case gg.TAB:{const e=h.closest(".listbox-container"),t=void 0!==l?l():void 0;if(h.classList.add("last-focused"),!a?.enabled){if(!t)return;return a.focusSelection(),c.preventDefault(),void c.stopPropagation()}if(b){vg(e)||_g(e)||(t?a.focusSelection():yg(c,a));break}a.focusSelection()||_g(e)||vg(e)||(h.blur(),yg(c,a));break}case gg.SHIFT:f(!0);break;case gg.SPACE:e([bg(h)],!1,c);break;case gg.ARROW_DOWN:case gg.ARROW_RIGHT:d=p(g,h,!0),b&&d&&(m&&(e([bg(h)],!0),f(!1)),e([bg(d)],!0));break;case gg.ARROW_UP:case gg.ARROW_LEFT:d=p(g,h,!1),b&&d&&(m&&(e([bg(h)],!0),f(!1)),e([bg(d)],!0));break;case gg.ENTER:if(i(),void 0===l)return;break;case gg.ESCAPE:if(void 0===l)return void o();if(!l())return;o();break;case gg.HOME:if(s.setFirst(!0),v){r?.("overflowStart");break}r?.("start");break;case gg.END:if(s.setLast(!0),v){r?.("overflowEnd");break}r?.("end");break;case gg.A:if(v||C){t();break}return;case gg.F:if(v||C){n();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...A,focusListItems:M,keyboard:k,isModal:P,rowCount:D,columnCount:L,rowIndex:n,columnIndex:i,layoutOrder:H}),[A,k?.innerTabStops,D,L,n,i,H]),X=(0,t.useMemo)(()=>function({pages:e,cellIndex:t}){let n;const i=e.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(i){const e=i.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([n]=i.qMatrix[t-e.qTop])}return n}({pages:g,cellIndex:U}),[g,U]),Z="S"===X?.qState||"XS"===X?.qState||"L"===X?.qState||"XL"===X?.qState,J=(0,t.useMemo)(()=>(({column:e,histogram:t,cell:n,showGray:i})=>{if(!n)return[];const o=[e?qh.column:qh.row];t||o.push(qh.rowBorderBottom);const r=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?qh.XS:qh.S;break;case"S":case"L":n=qh.S;break;case"A":n=!!t&&qh.A;break;case"X":case"XL":n=!!t&&qh.X;break;default:n=!1}return n}({cell:n,showGray:i});return r&&o.push(r),o})({column:m,histogram:S,cell:X,showGray:x}),[X?.qState,S,z]),ee=(0,t.useCallback)(e=>{e.preventDefault()},[f]),te=(0,t.useMemo)(()=>X&&function({direction:e,cell:t,textAlign:n}){const i=!["NaN",void 0].includes(t?.qNum);let o;return o=!n||n.auto?i?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:n?.align||"left",["left","center","right"].includes(o)?o:"left"}({direction:v,cell:X,textAlign:b}),[v,X,b]);if(!X)return null;const ne="grid"===V&&"column"===H,ie=X?.qText??"";let oe;if(X.qHighlightRanges?.qRanges?.length){const e=X.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[];oe=function(e,t){if(!t.length)return[];const n=t.reduce((n,i,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,r=[];return i>n&&r.push([e.slice(n,i),!1]),r.push([e.slice(i,i+o),!0]),r}(e,i,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&n.push([e.slice(a),!1]),n},[]);return n}(ie,e)}const re={alignItems:"center",display:"flex",fontSize:"8px"},se="rtl"===v,ae={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:se?8:f?0:void 0,paddingRight:f?0:se?8:0,justifyContent:te,textAlign:te},le=0===e,ce=Z&&p,de=!f&&Z&&!p,he=!f&&E,ue=f||!E,ge=function({translator:e,label:t,qState:n,isSelected:i,currentIndex:o,maxIndex:r,showSearch:s}){const a=Ag[n],l=e.get(a),c=[];if(i){const t=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=e.get(t);c.push(n)}const d=`${t} ${l}`,h=e.get("CurrentSelections.Of",[o+1,r+1]);return c.unshift(d,h),c.join(". ").trim()}({translator:q,label:ie,qState:X.qState,currentIndex:G.currentIndex,maxIndex:G.max,showSearch:O}),pe=!se&&"right"===te||se&&"left"===te;return t.createElement(Qh,{className:qh.barContainer,checkboxes:f,style:$,styles:F,isGridCol:ne,isGridMode:"grid"===V,dense:z,direction:v,sizes:R,frequencyMode:N,freqHitsValue:pe,contentFontStyle:B,"data-testid":"listbox.item"},t.createElement(hg,{role:"row","aria-label":ge,"aria-selected":Z,"aria-setsize":G.max,"aria-rowindex":G.currentIndex,ref:Q,container:!0,dataLayout:V,cellPaddingRight:ue,layoutOrder:H,itemPadding:j,gap:0,className:Vh(["value",...J]),classes:{root:qh.fieldRoot},onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:Y,onTouchStart:h,onTouchEnd:u,onContextMenu:ee,tabIndex:le&&k.innerTabStops?0:-1,"data-n":X?.qElemNumber,direction:v,fillHeight:W},X?.qFrequency&&t.createElement(lg,{qFrequency:X?.qFrequency,histogram:S,checkboxes:f,isSelected:Z,frequencyMax:w}),t.createElement(yr,{item:!0,style:ae,className:Vh([qh.cell,qh.selectedCell]),title:`${ie}`},oe?t.createElement(rg,{onChange:s,labels:oe,checkboxes:f,dense:z,showGray:x,qElemNumber:X.qElemNumber,isSelected:Z,cell:X,isGridCol:ne,isSingleSelect:y,valueTextAlign:te,styles:F}):t.createElement(ag,{onChange:s,label:ie,qElemNumber:X.qElemNumber,isSelected:Z,dense:z,cell:X,isGridCol:ne,showGray:x,isSingleSelect:y,checkboxes:f,valueTextAlign:te,styles:F})),_&&t.createElement(cg,{cell:X,checkboxes:f,dense:z,showGray:x}),he&&t.createElement(yr,{item:!0,className:qh.icon},ce&&t.createElement(Sd,{style:re,size:"small"}),de&&t.createElement(Fh,{style:re,size:"small"}))))};var Sg=s(4117),kg=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xg(e,t){return e===t||!(!kg(e)||!kg(t))}function Eg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!xg(e[n],t[n]))return!1;return!0}const Lg=function(e,t){var n;void 0===t&&(t=Eg);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}};var Dg="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Ig(e){cancelAnimationFrame(e.id)}function Ng(e,t){var n=Dg(),i={id:requestAnimationFrame(function o(){Dg()-n>=t?e.call(null):i.id=requestAnimationFrame(o)})};return i}var Mg=-1;function Tg(e){if(void 0===e&&(e=!1),-1===Mg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Mg=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Mg}var Rg=null;function qg(e){if(void 0===e&&(e=!1),null===Rg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?Rg="positive-descending":(t.scrollLeft=1,Rg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Rg}return Rg}var Og=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Pg(e){var n,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,r=e.getColumnStopIndexForStartIndex,s=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,h=e.getRowHeight,u=e.getRowOffset,g=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return n=function(e){function n(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,xo(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:xo(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Lg(function(e,t,i,o,r,s,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=Lg(function(e,t,i,o,r){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,r=n.props,a=r.columnWidth,l=r.direction,c=r.rowHeight,d=n._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=i(n.props,t,n._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:u(n.props,e,n._instanceProps),height:h(n.props,e,n._instanceProps),width:s(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Lg(function(e,t,n){return{}}),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=n.props.direction,c=r;if("rtl"===t)switch(qg()){case"negative":c=-r;break;case"positive-descending":c=l-o-r}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(s,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Ig(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Ng(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Lo(n,e),n.getDerivedStateFromProps=function(e,t){return Bg(e,t),b(e),null};var v=n.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,r=this.props,s=r.columnCount,h=r.height,u=r.rowCount,g=r.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,b=Tg();void 0!==i&&(i=Math.max(0,Math.min(i,s-1))),void 0!==o&&(o=Math.max(0,Math.min(o,u-1)));var v=a(this.props,this._instanceProps),C=l(this.props,this._instanceProps)>g?b:0,_=v>h?b:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,_):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,C):f})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var i=this._outerRef;"number"==typeof t&&(i.scrollLeft=t),"number"==typeof n&&(i.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,i=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(qg()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ig(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,n=e.children,i=e.className,o=e.columnCount,r=e.direction,s=e.height,c=e.innerRef,d=e.innerElementType,h=e.innerTagName,u=e.itemData,g=e.itemKey,p=void 0===g?Og:g,m=e.outerElementType,f=e.outerTagName,b=e.rowCount,v=e.style,C=e.useIsScrolling,_=e.width,y=this.state.isScrolling,A=this._getHorizontalRangeToRender(),w=A[0],S=A[1],k=this._getVerticalRangeToRender(),x=k[0],E=k[1],L=[];if(o>0&&b)for(var D=x;D<=E;D++)for(var I=w;I<=S;I++)L.push((0,t.createElement)(n,{columnIndex:I,data:u,isScrolling:C?y:void 0,key:p({columnIndex:I,data:u,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,I)}));var N=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return(0,t.createElement)(m||f||"div",{className:i,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,Jt.A)({position:"relative",height:s,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},v)},(0,t.createElement)(d||h||"div",{children:L,ref:c,style:{height:N,pointerEvents:y?"none":void 0,width:M}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,i=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var r=this._getHorizontalRangeToRender(),s=r[0],a=r[1],l=r[2],c=r[3],d=this._getVerticalRangeToRender(),h=d[0],u=d[1],g=d[2],p=d[3];this._callOnItemsRendered(s,a,h,u,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,C=m.scrollUpdateWasRequested,_=m.verticalScrollDirection;this._callOnScroll(b,v,f,_,C)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,h=l.scrollLeft,u=n||i||s||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,h,this._instanceProps),p=r(this.props,g,h,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,u),f=d&&"forward"!==c?1:Math.max(1,u);return[Math.max(0,g-m),Math.max(0,Math.min(t-1,p+f)),g,p]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=i||o||n||1;if(0===t||0===r)return[0,0,0,0];var h=g(this.props,c,this._instanceProps),u=p(this.props,h,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,h-m),Math.max(0,Math.min(r-1,u+f)),h,u]},n}(t.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},n}var Bg=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Fg=function(e,t){return e};function Wg(e){var n,i=e.getItemOffset,o=e.getEstimatedTotalSize,r=e.getItemSize,s=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,h=e.validateProps;return n=function(e){function n(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,xo(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:xo(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Lg(function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=Lg(function(e,t,i){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,s=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var h=i(n.props,e,n._instanceProps),u=r(n.props,e,n._instanceProps),g="horizontal"===s||"horizontal"===l,p="rtl"===s,m=g?h:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:h,height:g?"100%":u,width:g?u:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Lg(function(e,t,n){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,s=o;if("rtl"===t)switch(qg()){case"negative":s=-o;break;case"positive-descending":s=r-i-o}return s=Math.max(0,Math.min(s,r-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<s?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;n.setState(function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,o-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Ig(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Ng(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Lo(n,e),n.getDerivedStateFromProps=function(e,t){return zg(e,t),h(e),null};var u=n.prototype;return u.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)},u.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,i=n.itemCount,o=n.layout,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?Tg():0:l.scrollHeight>l.clientHeight?Tg():0}this.scrollTo(s(this.props,e,t,r,this._instanceProps,a))},u.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,i=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===i?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},u.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,i=this.state,o=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(qg()){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()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ig(this._resetIsScrollingTimeoutId)},u.render=function(){var e=this.props,n=e.children,i=e.className,r=e.direction,s=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,h=e.itemData,u=e.itemKey,g=void 0===u?Fg:u,p=e.layout,m=e.outerElementType,f=e.outerTagName,b=e.style,v=e.useIsScrolling,C=e.width,_=this.state.isScrolling,y="horizontal"===r||"horizontal"===p,A=y?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),S=w[0],k=w[1],x=[];if(d>0)for(var E=S;E<=k;E++)x.push((0,t.createElement)(n,{data:h,key:g(E,h),index:E,isScrolling:v?_:void 0,style:this._getItemStyle(E)}));var L=o(this.props,this._instanceProps);return(0,t.createElement)(m||f||"div",{className:i,onScroll:A,ref:this._outerRefSetter,style:(0,Jt.A)({position:"relative",height:s,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},b)},(0,t.createElement)(l||c||"div",{children:x,ref:a,style:{height:y?"100%":L,pointerEvents:_?"none":void 0,width:y?L:"100%"}}))},u._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],i=e[2],o=e[3];this._callOnItemsRendered(t,n,i,o)}if("function"==typeof this.props.onScroll){var r=this.state,s=r.scrollDirection,a=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},u._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,r=i.scrollDirection,s=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),d=l(this.props,c,s,this._instanceProps),h=o&&"backward"!==r?1:Math.max(1,n),u=o&&"forward"!==r?1:Math.max(1,n);return[Math.max(0,c-h),Math.max(0,Math.min(t-1,d+u)),c,d]},n}(t.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var zg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Vg=Pg({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,i,o,r){var s=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,s*a-l),d=Math.min(c,t*a),h=Math.max(0,t*a-l+r+a);switch("smart"===n&&(n=i>=h-l&&i<=d+l?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(l/2)?0:u>c+Math.floor(l/2)?c:u;default:return i>=h&&i<=d?i:h>d||i<h?h:d}},getOffsetForRowAndAlignment:function(e,t,n,i,o,r){var s=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*s-a),d=Math.min(c,t*s),h=Math.max(0,t*s-a+r+s);switch("smart"===n&&(n=i>=h-a&&i<=d+a?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(a/2)?0:u>c+Math.floor(a/2)?c:u;default:return i>=h&&i<=d?i:h>d||i<h?h:d}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var i=e.columnWidth,o=e.columnCount,r=e.width,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var i=e.rowHeight,o=e.rowCount,r=e.height,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),Hg=Wg({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,i,o,r){var s=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,h=e.width,u="horizontal"===s||"horizontal"===d?h:a,g=Math.max(0,l*c-u),p=Math.min(g,t*c),m=Math.max(0,t*c-u+c+r);switch("smart"===n&&(n=i>=m-u&&i<=p+u?"auto":"center"),n){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(u/2)?0:f>g+Math.floor(u/2)?g:f;default:return i>=m&&i<=p?i:i<m?m:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,n){var i=e.direction,o=e.height,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===i||"horizontal"===a?l:o,h=Math.ceil((d+n-c)/s);return Math.max(0,Math.min(r-1,t+h-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const jg="#BBB",Ug="#f1f1f1",$g="ListBox-styledScrollbars";function Gg({renderProps:e,layoutOptions:t,maxCount:n,columnCount:i,rowCount:o,overflowDisclaimer:r,qCardinal:s,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=((e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(e,l),d=l?n.column:n.row,h=(l?i:o)>=d,u=((e,t,n,i)=>e===t*n+i+n)(s,c,l?o:i,a),g=!!a&&((e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(e,l),p=h&&!u&&c>=d-1||g||r.state.show;r.set(p)}function Kg(){return Kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Kg.apply(null,arguments)}const{StyledFixedSizeList:Qg,StyledFixedSizeGrid:Yg}=function(){const e=e=>({scrollbarColor:`${jg} ${Ug}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Ug},"&::-webkit-scrollbar-thumb":{backgroundColor:jg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:(0,Sg.A)(Hg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${$g}`]:e(t)})),StyledFixedSizeGrid:(0,Sg.A)(Vg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${$g}`]:e(t)}))}}(),Xg=e=>{const n=(0,t.useMemo)(()=>"text"in e?e:{},[e]);return(0,t.useMemo)(()=>((e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map(e=>n.measureText(e).width));const i=n.measureText(e);return Math.ceil(i.width||0)})(n.text,n.font||"12px Source Sans Pro"),[n.text,n.font])};function Zg(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Jg({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}const[ep,tp]=hd({});function np(e){const t=`${e.id}`,[n]=ep();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}var ip=s(8259);function op(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rp(e){return e instanceof op(e).Element||e instanceof Element}function sp(e){return e instanceof op(e).HTMLElement||e instanceof HTMLElement}function ap(e){return"undefined"!=typeof ShadowRoot&&(e instanceof op(e).ShadowRoot||e instanceof ShadowRoot)}var lp=Math.max,cp=Math.min,dp=Math.round;function hp(){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 up(){return!/^((?!chrome|android).)*safari/i.test(hp())}function gp(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&sp(e)&&(o=e.offsetWidth>0&&dp(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&dp(i.height)/e.offsetHeight||1);var s=(rp(e)?op(e):window).visualViewport,a=!up()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,d=i.width/o,h=i.height/r;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function pp(e){var t=op(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mp(e){return e?(e.nodeName||"").toLowerCase():null}function fp(e){return((rp(e)?e.ownerDocument:e.document)||window.document).documentElement}function bp(e){return gp(fp(e)).left+pp(e).scrollLeft}function vp(e){return op(e).getComputedStyle(e)}function Cp(e){var t=vp(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function _p(e,t,n){void 0===n&&(n=!1);var i,o,r=sp(t),s=sp(t)&&function(e){var t=e.getBoundingClientRect(),n=dp(t.width)/e.offsetWidth||1,i=dp(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=fp(t),l=gp(e,s,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==mp(t)||Cp(a))&&(c=(i=t)!==op(i)&&sp(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:pp(i)),sp(t)?((d=gp(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=bp(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function yp(e){var t=gp(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ap(e){return"html"===mp(e)?e:e.assignedSlot||e.parentNode||(ap(e)?e.host:null)||fp(e)}function wp(e){return["html","body","#document"].indexOf(mp(e))>=0?e.ownerDocument.body:sp(e)&&Cp(e)?e:wp(Ap(e))}function Sp(e,t){var n;void 0===t&&(t=[]);var i=wp(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=op(i),s=o?[r].concat(r.visualViewport||[],Cp(i)?i:[]):i,a=t.concat(s);return o?a:a.concat(Sp(Ap(s)))}function kp(e){return["table","td","th"].indexOf(mp(e))>=0}function xp(e){return sp(e)&&"fixed"!==vp(e).position?e.offsetParent:null}function Ep(e){for(var t=op(e),n=xp(e);n&&kp(n)&&"static"===vp(n).position;)n=xp(n);return n&&("html"===mp(n)||"body"===mp(n)&&"static"===vp(n).position)?t:n||function(e){var t=/firefox/i.test(hp());if(/Trident/i.test(hp())&&sp(e)&&"fixed"===vp(e).position)return null;var n=Ap(e);for(ap(n)&&(n=n.host);sp(n)&&["html","body"].indexOf(mp(n))<0;){var i=vp(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var Lp="top",Dp="bottom",Ip="right",Np="left",Mp="auto",Tp=[Lp,Dp,Ip,Np],Rp="start",qp="end",Op="viewport",Pp="popper",Bp=Tp.reduce(function(e,t){return e.concat([t+"-"+Rp,t+"-"+qp])},[]),Fp=[].concat(Tp,[Mp]).reduce(function(e,t){return e.concat([t,t+"-"+Rp,t+"-"+qp])},[]),Wp=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function zp(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),i}function Vp(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var Hp={placement:"bottom",modifiers:[],strategy:"absolute"};function jp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Up(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?Hp:o;return function(e,t,n){void 0===n&&(n=r);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hp,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},r,o.options,a),o.scrollParents={reference:rp(e)?Sp(e):e.contextElement?Sp(e.contextElement):[],popper:Sp(t)};var d,h,u=function(e){var t=zp(e);return Wp.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((d=[].concat(i,o.options.modifiers),h=d.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(h).map(function(e){return h[e]})));return o.orderedModifiers=u.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var a=r({state:o,name:t,instance:l,options:i});s.push(a||function(){})}}),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(jp(t,n)){o.rects={reference:_p(t,Ep(n),"fixed"===o.options.strategy),popper:yp(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<o.orderedModifiers.length;i++)if(!0!==o.reset){var r=o.orderedModifiers[i],s=r.fn,c=r.options,d=void 0===c?{}:c,h=r.name;"function"==typeof s&&(o=s({state:o,options:d,name:h,instance:l})||o)}else o.reset=!1,i=-1}}},update:Vp(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){c(),a=!0}};if(!jp(e,t))return l;function c(){s.forEach(function(e){return e()}),s=[]}return l.setOptions(n).then(function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var $p={passive:!0};function Gp(e){return e.split("-")[0]}function Kp(e){return e.split("-")[1]}function Qp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yp(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?Gp(o):null,s=o?Kp(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Lp:t={x:a,y:n.y-i.height};break;case Dp:t={x:a,y:n.y+n.height};break;case Ip:t={x:n.x+n.width,y:l};break;case Np:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?Qp(r):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case Rp:t[c]=t[c]-(n[d]/2-i[d]/2);break;case qp:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}var Xp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zp(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=s.x,g=void 0===u?0:u,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 b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),C=Np,_=Lp,y=window;if(c){var A=Ep(n),w="clientHeight",S="clientWidth";A===op(n)&&"static"!==vp(A=fp(n)).position&&"absolute"===a&&(w="scrollHeight",S="scrollWidth"),(o===Lp||(o===Np||o===Ip)&&r===qp)&&(_=Dp,m-=(h&&A===y&&y.visualViewport?y.visualViewport.height:A[w])-i.height,m*=l?1:-1),o!==Np&&(o!==Lp&&o!==Dp||r!==qp)||(C=Ip,g-=(h&&A===y&&y.visualViewport?y.visualViewport.width:A[S])-i.width,g*=l?1:-1)}var k,x=Object.assign({position:a},c&&Xp),E=!0===d?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:dp(n*o)/o||0,y:dp(i*o)/o||0}}({x:g,y:m},op(n)):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},x,((k={})[_]=v?"0":"",k[C]=b?"0":"",k.transform=(y.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",k)):Object.assign({},x,((t={})[_]=v?m+"px":"",t[C]=b?g+"px":"",t.transform="",t))}const Jp={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];sp(o)&&mp(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});sp(i)&&mp(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};var em={left:"right",right:"left",bottom:"top",top:"bottom"};function tm(e){return e.replace(/left|right|bottom|top/g,function(e){return em[e]})}var nm={start:"end",end:"start"};function im(e){return e.replace(/start|end/g,function(e){return nm[e]})}function om(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ap(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function rm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sm(e,t,n){return t===Op?rm(function(e,t){var n=op(e),i=fp(e),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=up();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+bp(e),y:l}}(e,n)):rp(t)?function(e,t){var n=gp(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):rm(function(e){var t,n=fp(e),i=pp(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=lp(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=lp(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+bp(e),l=-i.scrollTop;return"rtl"===vp(o||n).direction&&(a+=lp(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(fp(e)))}function am(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function lm(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function cm(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,s=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?Op:c,h=n.elementContext,u=void 0===h?Pp:h,g=n.altBoundary,p=void 0!==g&&g,m=n.padding,f=void 0===m?0:m,b=am("number"!=typeof f?f:lm(f,Tp)),v=u===Pp?"reference":Pp,C=e.rects.popper,_=e.elements[p?v:u],y=function(e,t,n,i){var o="clippingParents"===t?function(e){var t=Sp(Ap(e)),n=["absolute","fixed"].indexOf(vp(e).position)>=0&&sp(e)?Ep(e):e;return rp(n)?t.filter(function(e){return rp(e)&&om(e,n)&&"body"!==mp(e)}):[]}(e):[].concat(t),r=[].concat(o,[n]),s=r[0],a=r.reduce(function(t,n){var o=sm(e,n,i);return t.top=lp(o.top,t.top),t.right=cp(o.right,t.right),t.bottom=cp(o.bottom,t.bottom),t.left=lp(o.left,t.left),t},sm(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(rp(_)?_:_.contextElement||fp(e.elements.popper),l,d,s),A=gp(e.elements.reference),w=Yp({reference:A,element:C,strategy:"absolute",placement:o}),S=rm(Object.assign({},C,w)),k=u===Pp?S:A,x={top:y.top-k.top+b.top,bottom:k.bottom-y.bottom+b.bottom,left:y.left-k.left+b.left,right:k.right-y.right+b.right},E=e.modifiersData.offset;if(u===Pp&&E){var L=E[o];Object.keys(x).forEach(function(e){var t=[Ip,Dp].indexOf(e)>=0?1:-1,n=[Lp,Dp].indexOf(e)>=0?"y":"x";x[e]+=L[n]*t})}return x}const dm={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,u=n.altBoundary,g=n.flipVariations,p=void 0===g||g,m=n.allowedAutoPlacements,f=t.options.placement,b=Gp(f),v=l||(b!==f&&p?function(e){if(Gp(e)===Mp)return[];var t=tm(e);return[im(e),t,im(t)]}(f):[tm(f)]),C=[f].concat(v).reduce(function(e,n){return e.concat(Gp(n)===Mp?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Fp:l,d=Kp(i),h=d?a?Bp:Bp.filter(function(e){return Kp(e)===d}):Tp,u=h.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=h);var g=u.reduce(function(t,n){return t[n]=cm(e,{placement:n,boundary:o,rootBoundary:r,padding:s})[Gp(n)],t},{});return Object.keys(g).sort(function(e,t){return g[e]-g[t]})}(t,{placement:n,boundary:d,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)},[]),_=t.rects.reference,y=t.rects.popper,A=new Map,w=!0,S=C[0],k=0;k<C.length;k++){var x=C[k],E=Gp(x),L=Kp(x)===Rp,D=[Lp,Dp].indexOf(E)>=0,I=D?"width":"height",N=cm(t,{placement:x,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),M=D?L?Ip:Np:L?Dp:Lp;_[I]>y[I]&&(M=tm(M));var T=tm(M),R=[];if(r&&R.push(N[E]<=0),a&&R.push(N[M]<=0,N[T]<=0),R.every(function(e){return e})){S=x,w=!1;break}A.set(x,R)}if(w)for(var q=function(e){var t=C.find(function(t){var n=A.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},O=p?3:1;O>0&&"break"!==q(O);O--);t.placement!==S&&(t.modifiersData[i]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function hm(e,t,n){return lp(e,cp(t,n))}const um={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,u=n.tether,g=void 0===u||u,p=n.tetherOffset,m=void 0===p?0:p,f=cm(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),b=Gp(t.placement),v=Kp(t.placement),C=!v,_=Qp(b),y="x"===_?"y":"x",A=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,x="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(A){if(r){var D,I="y"===_?Lp:Np,N="y"===_?Dp:Ip,M="y"===_?"height":"width",T=A[_],R=T+f[I],q=T-f[N],O=g?-S[M]/2:0,P=v===Rp?w[M]:S[M],B=v===Rp?-S[M]:-w[M],F=t.elements.arrow,W=g&&F?yp(F):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=z[I],H=z[N],j=hm(0,w[M],W[M]),U=C?w[M]/2-O-j-V-x.mainAxis:P-j-V-x.mainAxis,$=C?-w[M]/2+O+j+H+x.mainAxis:B+j+H+x.mainAxis,G=t.elements.arrow&&Ep(t.elements.arrow),K=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,Q=null!=(D=null==E?void 0:E[_])?D:0,Y=T+$-Q,X=hm(g?cp(R,T+U-Q-K):R,T,g?lp(q,Y):q);A[_]=X,L[_]=X-T}if(a){var Z,J="x"===_?Lp:Np,ee="x"===_?Dp:Ip,te=A[y],ne="y"===y?"height":"width",ie=te+f[J],oe=te-f[ee],re=-1!==[Lp,Np].indexOf(b),se=null!=(Z=null==E?void 0:E[y])?Z:0,ae=re?ie:te-w[ne]-S[ne]-se+x.altAxis,le=re?te+w[ne]+S[ne]-se-x.altAxis:oe,ce=g&&re?function(e,t,n){var i=hm(e,t,n);return i>n?n:i}(ae,te,le):hm(g?ae:ie,te,g?le:oe);A[y]=ce,L[y]=ce-te}t.modifiersData[i]=L}},requiresIfExists:["offset"]};function gm(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pm(e){return[Lp,Ip,Dp,Np].some(function(t){return e[t]>=0})}var mm=Up({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=op(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,$p)}),a&&l.addEventListener("resize",n.update,$p),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,$p)}),a&&l.removeEventListener("resize",n.update,$p)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Yp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:Gp(t.placement),variation:Kp(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,Zp(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,Zp(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:{}},Jp,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,s=Fp.reduce(function(e,n){return e[n]=function(e,t,n){var i=Gp(e),o=[Np,Lp].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Np,Ip].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,r),e},{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}},dm,um,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Gp(n.placement),l=Qp(a),c=[Np,Ip].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return am("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:lm(e,Tp))}(o.padding,n),h=yp(r),u="y"===l?Lp:Np,g="y"===l?Dp:Ip,p=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],f=Ep(r),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,v=p/2-m/2,C=d[u],_=b-h[c]-d[g],y=b/2-h[c]/2+v,A=hm(C,y,_),w=l;n.modifiersData[i]=((t={})[w]=A,t.centerOffset=A-y,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&om(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=cm(t,{elementContext:"reference"}),a=cm(t,{altBoundary:!0}),l=gm(s,i),c=gm(a,o,r),d=pm(l),h=pm(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}}]});function fm(e){return(0,ln.Ay)("MuiPopper",e)}(0,an.A)("MuiPopper",["root"]);const bm=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],vm=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Cm(e){return"function"==typeof e?e():e}const _m={},ym=t.forwardRef(function(e,n){var i;const{anchorEl:o,children:r,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:h,popperRef:u,slotProps:g={},slots:p={},TransitionProps:m}=e,f=(0,Zt.A)(e,bm),b=t.useRef(null),v=(0,Fs.A)(b,n),C=t.useRef(null),_=(0,Fs.A)(C,u),y=t.useRef(_);(0,ii.A)(()=>{y.current=_},[_]),t.useImperativeHandle(u,()=>C.current,[]);const A=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),[w,S]=t.useState(A),[k,x]=t.useState(Cm(o));t.useEffect(()=>{C.current&&C.current.forceUpdate()}),t.useEffect(()=>{o&&x(Cm(o))},[o]),(0,ii.A)(()=>{if(!k||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{S(e.placement)}}];null!=l&&(e=e.concat(l)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));const t=mm(k,b.current,(0,Jt.A)({placement:A},h,{modifiers:e}));return y.current(t),()=>{t.destroy(),y.current(null)}},[k,a,l,c,h,A]);const E={placement:w};null!==m&&(E.TransitionProps=m);const L=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"]},fm,t)})(e),D=null!=(i=p.root)?i:"div",I=$s({elementType:D,externalSlotProps:g.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return(0,dn.jsx)(D,(0,Jt.A)({},I,{children:"function"==typeof r?r(E):r}))}),Am=t.forwardRef(function(e,n){const{anchorEl:i,children:o,container:r,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:u=_m,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:b={}}=e,v=(0,Zt.A)(e,vm),[C,_]=t.useState(!0);if(!l&&!d&&(!m||C))return null;let y;if(r)y=r;else if(i){const e=Cm(i);y=e&&void 0!==e.nodeType?(0,Rd.A)(e).body:(0,Rd.A)(null).body}const A=d||!l||m&&!C?void 0:"none",w=m?{in:d,onEnter:()=>{_(!1)},onExited:()=>{_(!0)}}:void 0;return(0,dn.jsx)(Wd,{disablePortal:a,container:y,children:(0,dn.jsx)(ym,(0,Jt.A)({anchorEl:i,direction:s,disablePortal:a,modifiers:c,ref:n,open:m?!C:d,placement:h,popperOptions:u,popperRef:g,slotProps:f,slots:b},v,{style:(0,Jt.A)({position:"fixed",top:0,left:0,display:A},p),TransitionProps:w,children:o}))})}),wm=Am,Sm=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],km=(0,sn.Ay)(wm,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xm=t.forwardRef(function(e,t){var n;const i=(0,ip.A)(),o=(0,rn.b)({props:e,name:"MuiPopper"}),{anchorEl:r,component:s,components:a,componentsProps:l,container:c,disablePortal:d,keepMounted:h,modifiers:u,open:g,placement:p,popperOptions:m,popperRef:f,transition:b,slots:v,slotProps:C}=o,_=(0,Zt.A)(o,Sm),y=null!=(n=null==v?void 0:v.root)?n:null==a?void 0:a.Root,A=(0,Jt.A)({anchorEl:r,container:c,disablePortal:d,keepMounted:h,modifiers:u,open:g,placement:p,popperOptions:m,popperRef:f,transition:b},_);return(0,dn.jsx)(km,(0,Jt.A)({as:s,direction:null==i?void 0:i.direction,slots:{root:y},slotProps:null!=C?C:l},A,{ref:t}))});var Em=s(23);function Lm(e){return(0,ln.Ay)("MuiTooltip",e)}const Dm=(0,an.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Im=["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"],Nm=(0,sn.Ay)(xm,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>(0,Jt.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Dm.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Dm.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Dm.arrow}`]:(0,Jt.A)({},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"] .${Dm.arrow}`]:(0,Jt.A)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Mm=(0,sn.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Vn.A)(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>{return(0,Jt.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Ao.X4)(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:(n=16/14,Math.round(1e5*n)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${Dm.popper}[data-popper-placement*="left"] &`]:(0,Jt.A)({transformOrigin:"right center"},t.isRtl?(0,Jt.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,Jt.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Dm.popper}[data-popper-placement*="right"] &`]:(0,Jt.A)({transformOrigin:"left center"},t.isRtl?(0,Jt.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,Jt.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Dm.popper}[data-popper-placement*="top"] &`]:(0,Jt.A)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Dm.popper}[data-popper-placement*="bottom"] &`]:(0,Jt.A)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n}),Tm=(0,sn.Ay)("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,Ao.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Rm=!1;const qm=new Po.E;let Om={x:0,y:0};function Pm(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const Bm=t.forwardRef(function(e,n){var i,o,r,s,a,l,c,d,h,u,g,p,m,f,b,v,C,_,y;const A=(0,rn.b)({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:S,components:k={},componentsProps:x={},describeChild:E=!1,disableFocusListener:L=!1,disableHoverListener:D=!1,disableInteractive:I=!1,disableTouchListener:N=!1,enterDelay:M=100,enterNextDelay:T=0,enterTouchDelay:R=700,followCursor:q=!1,id:O,leaveDelay:P=0,leaveTouchDelay:B=1500,onClose:F,onOpen:W,open:z,placement:V="bottom",PopperComponent:H,PopperProps:j={},slotProps:U={},slots:$={},title:G,TransitionComponent:K=Td,TransitionProps:Q}=A,Y=(0,Zt.A)(A,Im),X=t.isValidElement(S)?S:(0,dn.jsx)("span",{children:S}),Z=Gn(),J=ei(),[ee,te]=t.useState(),[ne,ie]=t.useState(null),oe=t.useRef(!1),re=I||q,se=(0,Po.A)(),ae=(0,Po.A)(),le=(0,Po.A)(),ce=(0,Po.A)(),[de,he]=(0,uu.A)({controlled:z,default:!1,name:"Tooltip",state:"open"});let ue=de;const ge=(0,Em.A)(O),pe=t.useRef(),me=(0,So.A)(()=>{void 0!==pe.current&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),ce.clear()});t.useEffect(()=>me,[me]);const fe=e=>{qm.clear(),Rm=!0,he(!0),W&&!ue&&W(e)},be=(0,So.A)(e=>{qm.start(800+P,()=>{Rm=!1}),he(!1),F&&ue&&F(e),se.start(Z.transitions.duration.shortest,()=>{oe.current=!1})}),ve=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),ae.clear(),le.clear(),M||Rm&&T?ae.start(Rm?T:M,()=>{fe(e)}):fe(e))},Ce=e=>{ae.clear(),le.start(P,()=>{be(e)})},{isFocusVisibleRef:_e,onBlur:ye,onFocus:Ae,ref:we}=(0,ko.A)(),[,Se]=t.useState(!1),ke=e=>{ye(e),!1===_e.current&&(Se(!1),Ce(e))},xe=e=>{ee||te(e.currentTarget),Ae(e),!0===_e.current&&(Se(!0),ve(e))},Ee=e=>{oe.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)};t.useEffect(()=>{if(ue)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||be(e)}},[be,ue]);const Le=(0,wo.A)(Ed(X),we,te,n);G||0===G||(ue=!1);const De=t.useRef(),Ie={},Ne="string"==typeof G;E?(Ie.title=ue||!Ne||D?null:G,Ie["aria-describedby"]=ue?ge:null):(Ie["aria-label"]=Ne?G:null,Ie["aria-labelledby"]=ue&&!Ne?ge:null);const Me=(0,Jt.A)({},Ie,Y,X.props,{className:(0,en.A)(Y.className,X.props.className),onTouchStart:Ee,ref:Le},q?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),Om={x:e.clientX,y:e.clientY},De.current&&De.current.update()}}:{}),Te={};N||(Me.onTouchStart=e=>{Ee(e),le.clear(),se.clear(),me(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(R,()=>{document.body.style.WebkitUserSelect=pe.current,ve(e)})},Me.onTouchEnd=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),le.start(B,()=>{be(e)})}),D||(Me.onMouseOver=Pm(ve,Me.onMouseOver),Me.onMouseLeave=Pm(Ce,Me.onMouseLeave),re||(Te.onMouseOver=ve,Te.onMouseLeave=Ce)),L||(Me.onFocus=Pm(xe,Me.onFocus),Me.onBlur=Pm(ke,Me.onBlur),re||(Te.onFocus=xe,Te.onBlur=ke));const Re=t.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=j.popperOptions)&&e.modifiers&&(t=t.concat(j.popperOptions.modifiers)),(0,Jt.A)({},j.popperOptions,{modifiers:t})},[ne,j]),qe=(0,Jt.A)({},A,{isRtl:J,arrow:w,disableInteractive:re,placement:V,PopperComponentProp:H,touch:oe.current}),Oe=(e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:r}=e,s={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,Vn.A)(r.split("-")[0])}`],arrow:["arrow"]};return(0,tn.A)(s,Lm,t)})(qe),Pe=null!=(i=null!=(o=$.popper)?o:k.Popper)?i:Nm,Be=null!=(r=null!=(s=null!=(a=$.transition)?a:k.Transition)?s:K)?r:Td,Fe=null!=(l=null!=(c=$.tooltip)?c:k.Tooltip)?l:Mm,We=null!=(d=null!=(h=$.arrow)?h:k.Arrow)?d:Tm,ze=Ws(Pe,(0,Jt.A)({},j,null!=(u=U.popper)?u:x.popper,{className:(0,en.A)(Oe.popper,null==j?void 0:j.className,null==(g=null!=(p=U.popper)?p:x.popper)?void 0:g.className)}),qe),Ve=Ws(Be,(0,Jt.A)({},Q,null!=(m=U.transition)?m:x.transition),qe),He=Ws(Fe,(0,Jt.A)({},null!=(f=U.tooltip)?f:x.tooltip,{className:(0,en.A)(Oe.tooltip,null==(b=null!=(v=U.tooltip)?v:x.tooltip)?void 0:b.className)}),qe),je=Ws(We,(0,Jt.A)({},null!=(C=U.arrow)?C:x.arrow,{className:(0,en.A)(Oe.arrow,null==(_=null!=(y=U.arrow)?y:x.arrow)?void 0:_.className)}),qe);return(0,dn.jsxs)(t.Fragment,{children:[t.cloneElement(X,Me),(0,dn.jsx)(Pe,(0,Jt.A)({as:null!=H?H:xm,placement:V,anchorEl:q?{getBoundingClientRect:()=>({top:Om.y,left:Om.x,right:Om.x,bottom:Om.y,width:0,height:0})}:ee,popperRef:De,open:!!ee&&ue,id:ge,transition:!0},Te,ze,{popperOptions:Re,children:({TransitionProps:e})=>(0,dn.jsx)(Be,(0,Jt.A)({timeout:Z.transitions.duration.shorter},e,Ve,{children:(0,dn.jsxs)(Fe,(0,Jt.A)({},He,{children:[G,w?(0,dn.jsx)(We,(0,Jt.A)({},je,{ref:ie})):null]}))}))}))]})}),Fm=Bm,Wm=(0,sn.Ay)(Lr,{shouldForwardProp:e=>!["width","dense"].includes(e)})(({width:e,dense:t})=>({minWidth:`${e}px`,textAlign:"center",fontSize:t?"12px":"14px",whiteSpace:"normal",...t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}}));function zm({width:e,text:n,dense:i,tooltip:o}){const{translator:r}=(0,t.useContext)(ld);return t.createElement(Fm,{title:o?r.get(n):""},t.createElement(Wm,{width:e,dense:i,component:"div",variant:"body1",py:"12px"},r.get(n)))}var Vm=s(6307);const Hm=(0,sn.Ay)(ph)(({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t})),jm=(0,sn.Ay)("div")(()=>({paddingLeft:"6px",flexGrow:1})),Um=(0,sn.Ay)("div")(({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"})),$m=(0,sn.Ay)(Vm.A)(()=>({fontSize:"14px"}));function Gm({text:e,dismiss:n,dense:i,parentWidth:o=0}){const r="function"==typeof n,s=i?370:282,a=Math.max(o/2-s/2,0),l=Math.min(s,o)-42,c=i&&o<s;return t.createElement(Hm,{left:a,style:{maxWidth:s}},t.createElement(jm,null,t.createElement(zm,{text:e,dense:i,width:l,tooltip:c})),t.createElement(Um,{dense:i},r&&t.createElement(cr,{"aria-label":"close",onClick:()=>n()},t.createElement($m,null))))}function Km({itemWidth:e,layout:t,frequencyMode:n}){const i=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["N",void 0].includes(n);return!(!i||!r&&!o)}const Qm=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,Ym=e=>{const t=Qm(e);return`Max(AGGR(Count(${t}), ${t}))`},Xm=(0,sn.Ay)("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function Zm({model:e,app:n,constraints:i,layout:o,selections:r,selectionState:s,direction:a,checkboxes:l,height:c,width:d,frequencyMode:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m=!1,keyboard:f={},showGray:b=!0,scrollState:v,keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:_={set:()=>{}},renderedCallback:y,onCtrlF:A,showSearch:w,isModal:S,styles:k}){const{translator:x}=(0,t.useContext)(ld),[E,L]=(0,t.useState)(!1),D=!(!o||!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:I=l,histogram:N}=o??{},M=(0,t.useRef)(null),T=(0,t.useRef)({queue:[],validPages:!1,dataOffset:0}),R=(0,t.useRef)({pages:[]}),{frequencyMax:q,awaitingFrequencyMax:O}=((e,n)=>{const i=(e=>"fetch"===e?.frequencyMax)(n),[o,r]=(0,t.useState)(),[s,a]=(0,t.useState)(i);return(0,t.useEffect)(()=>{i&&(async()=>{const t=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,i=n.qGroupFieldDefs[n.qGroupPos],o=Ym(i);return(await t.evaluateEx(o)).qNumber})(n,e);r(t),a(!1)})()},[i&&n]),{frequencyMax:i?o:n?.frequencyMax,awaitingFrequencyMax:s}})(n,o),{isLoadingData:P,...B}=function({local:e,loaderRef:n,model:i,fetchStart:o,scrollTimeout:r,postProcessPages:s,listData:a}){const[l,c]=(0,t.useState)(!1),[d,h]=(0,t.useState)([]);let[u]=(0,t.useState)(0);const g=(t,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:t+d,stop:l+d});const g=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise(t=>{e.current.timeout=setTimeout(()=>{const n=e.current.queue.slice(-1)[0],r=i.getListObjectData("/qListObjectDef",[{qTop:n.start>u?n.start-u:0,qHeight:u,qLeft:0,qWidth:1},{qTop:n.start,qHeight:u,qLeft:0,qWidth:1}]).then(n=>{const i=s?s(n):n;e.current.validPages=!0,a.current.pages=i,h(i),c(!1),t()});o&&o(r)},g?r:0)})};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(u=e),g)},pages:d,isLoading:l}}({local:T,loaderRef:M,model:e,fetchStart:g,scrollTimeout:0,postProcessPages:p,listData:R}),{getStoreValue:F,setStoreValue:W}=np(e),z=(0,t.useCallback)(B.loadMoreItems,[o]),[V,H]=(0,t.useState)({show:!1,dismissed:!1}),[j,U]=(0,t.useState)([]);B?.pages&&s.update({setPages:U,pages:B.pages,isSingleSelect:D,layout:o});const $=o?.qListObject.qDimensionInfo.qCardinal;(B?.pages.length&&!O||0===$)&&y?.();const G=(0,t.useCallback)(e=>{if(!j?.length||!T.current.validPages)return!1;T.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=j.filter(e=>t(e))[0];return n&&t(n)},[o,j]),{interactionEvents:K,select:Q}=function({selectionState:e,selections:n,checkboxes:i=!1,doc:o=document,loaderRef:r}){const s=(0,t.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,t.useEffect)(()=>{if(!r.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),n=e=>e.preventDefault(),i=r.current._listRef._outerRef;return i.addEventListener("gesturestart",e),i.addEventListener("gesturechange",t),i.addEventListener("gestureend",n),()=>{i.removeEventListener("gesturestart",e),i.removeEventListener("gesturechange",t),i.removeEventListener("gestureend",n)}},[r.current?._listRef?._outerRef]);const a=async()=>!e.selectDisabled?.()&&(e.setSelectableValuesUpdating(),Th({selections:n,elemNumbers:s.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:s.current.toggle})),l=(t,n)=>{const i=function(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[{qElemNumber:t}]=e;return t});return t});return Mh(t)}(e.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:i}=function(e,t){let n=1/0,i=-1/0;return e.forEach(e=>{const o=t.indexOf(e);n=o<n?o:n,i=o>i?o:i}),{min:n,max:i}}(e,t);return t.slice(n,i+1)}([t,n],i)},c=t=>{const{startElemNumber:n}=s.current;if(n===t)return;const i=l(s.current.startElemNumber,t);e.updateItems(i,!0,s.current.elemNumbers)},d=(0,t.useCallback)(t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),i=!e.isSingleSelect&&Ph(t.nativeEvent);s.current.elemNumbers=[n],s.current.toggle=i,i||e.clearItemStates(!0),e.updateItem(n),s.current.active=!1,a()},[]),h=(0,t.useCallback)(t=>{if(0!==t.button||e.selectDisabled())return;const n=+t.currentTarget.getAttribute("data-n"),i=!e.isSingleSelect&&Ph(t);s.current.isRange=!1,s.current.startElemNumber=n,s.current.elemNumbers=[n],s.current.toggle=i,s.current.active=!0,i||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(s.current.active=!1,a()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)},[]),u=(0,t.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,t.useCallback)(e=>{0===e.button&&s.current.active&&(s.current.active=!1,a())},[]),p=(0,t.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 n=+t.currentTarget.getAttribute("data-n");c(n)},[]),m=(0,t.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 n=Number(t.touches[0].target?.closest(Oh)?.getAttribute("data-n")),i=Number(t.touches[1].target?.closest(Oh)?.getAttribute("data-n"));Number.isNaN(n)||Number.isNaN(n)?a():(s.current.active=!0,l(n,i).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[n,i])},[]),f=(0,t.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,t.useEffect)(()=>(o.addEventListener("mouseup",g),()=>{o.removeEventListener("mouseup",g)}),[g]),(0,t.useEffect)(()=>{const t=()=>{e.clearItemStates(!1)},i=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return n.on("clearItemStates",t),n.on("deactivated",t),n.on("cleared",i),()=>{n.removeListener("clearItemStates",t),n.removeListener("deactivated",t),n.removeListener("cleared",i)}},[n]);const b={};return i?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:u,onMouseDown:h,onMouseEnter:p,onTouchStart:m,onTouchEnd:f}),{interactionEvents:b,select:async(t=[],i=!1,o=void 0)=>{if(e.selectDisabled?.())return!1;const r=!e.isSingleSelect&&Ph(o?.nativeEvent);r||e.clearItemStates(!0);const s=[];return e.updateItems(t,i,s),e.setSelectableValuesUpdating(),Th({selections:n,elemNumbers:i?s:t,isSingleSelect:e.isSingleSelect,toggle:r})}}}({selectionState:s,selections:r,checkboxes:I,doc:document,loaderRef:M}),{layoutOptions:Y={}}=o||{};let X=!0;Y.dataLayout&&(X="singleColumn"===Y.dataLayout||"row"===Y?.layoutOrder);const Z="grid"===Y?.dataLayout,J=e=>{const t={...X?{rowIndex:e}:{columnIndex:e}},n=Z?t:e;M.current._listRef.scrollToItem(n)},ee=()=>{if(T.current.queue=[],T.current.validPages=!1,M.current){M.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&C.reset());T.current.dataOffset=0,J(0)}};u&&u.call(null,ee),(0,t.useEffect)(()=>{v&&!E&&M.current&&(M.current._listRef.scrollToItem(v.initScrollPos),L(!0))},[M.current]),(0,t.useEffect)(()=>{ee()},[o,T.current.dataOffset]);let te=100;const ne="grid"!==Y.dataLayout,ie=o?.qListObject.qSize?.qcy,oe=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:i=!1}){const o=e?.length&&i?(({pages:e=[],minimumBatchSize:t,count:n})=>{const i=e.some(e=>e.qArea.qHeight<t),o=Math.max(...e.map(e=>e.qArea.qTop+e.qArea.qHeight));return i?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}({pages:j,minimumBatchSize:te,count:ie,calculatePagesHeight:m,layoutOptions:Y,model:e});let re=Km({itemWidth:d,layout:o,frequencyMode:h});const se=function(e){return e.some(({qMatrix:e})=>e.some(([e])=>!!e.qFrequency?.match("%")))?"P":"-"}(j),ae=function({layout:e,width:t,height:n,listCount:i,count:o,freqIsAllowed:r,checkboxes:s,styles:a}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:d={},maxVisibleColumns:h,dense:u,dataLayout:g}=l,{fontSize:p="12px",fontFamily:m="Source sans pro"}=a?.content||{},f=`${p} ${m}`,b=Xg({text:Zg(e),font:f}),v=Xg({text:Zg(5),font:f}),C=Xg({text:Zg(8),font:f}),_=r?v:0,y=s?20:0;let A=56+_+y;!s&&A>=80&&(A+=20);let w,S,k,x,E=b+18+_+y;!s&&E>=80&&(E+=20),E=Math.min(150,Math.max(E,A));const L=Jg({isGridMode:"grid"===g,dense:u}),D=n??8*L;if(c){let e=t;"row"===c?(w={overflowX:"hidden"},e+=8,({rowCount:x,columnWidth:k,columnCount:S}=function({maxVisibleColumns:e,listCount:t,containerWidth:n,columnAutoWidth:i,itemMinWidth:o}){const r=e?.maxColumns||3,s=n-10;let a;const l=Math.min(t,Math.max(1,Math.round(s/Math.max(o,i))));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:h,listCount:i,containerWidth:e,columnAutoWidth:E,itemMinWidth:A}))):(w={overflowY:"hidden"},({rowCount:x,columnWidth:k,columnCount:S}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:i,columnAutoWidth:o,containerWidth:r,itemMinWidth:s}){let a;const l=e?.maxRows||3,c=Math.floor(i/t);a=!1!==e.auto?c:Math.min(n,l,c),a=Math.max(a,1);const d=Math.ceil(n/a);return{columnWidth:Math.max(o,r/d,s),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:L,listCount:i,listHeight:D,columnAutoWidth:E,containerWidth:e,itemMinWidth:A})))}S=("singleColumn"===g?1:S)||1,x=("singleColumn"===g?o:x)||i;const I=l.dense?838e3:577e3;x=Math.min(x,I);const N=Math.floor(3355e4/k);S=Math.min(S,N)||1;const M=x*S;return{columnCount:S,columnWidth:k,rowCount:x,overflowStyling:w,itemHeight:L,listHeight:D,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(i,M),maxCount:{row:I,column:N},itemPadding:4,textWidth:b,freqMinWidth:v,freqMaxWidth:C}}({layout:o,width:d,height:c,listCount:oe,count:ie,freqIsAllowed:re,checkboxes:I,styles:k});ae.columnWidth&&(re=Km({itemWidth:ae.columnWidth,layout:o,frequencyMode:h}));const{listCount:le}=ae;W("listCount",le);const ce=F("inputText"),de=function({layout:e,searchInputText:n,listCount:i}){const{translator:o}=(0,t.useContext)(ld),r=[];if(n?.length){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}(i),t=o.get(e,[i]);r.push(t)}const s=function({layout:e,translatorDynamic:t}){const{qStateCounts:n={}}=e?.qListObject?.qDimensionInfo||{},i=n.qSelected+n.qSelectedExcluded+n.qLocked+n.qLockedExcluded;let o;switch(i){case 0:o="ScreenReader.ZeroSelected";break;case 1:o="ScreenReader.OneSelected";break;default:o="ScreenReader.ManySelected"}return t.get(o,[i])}({layout:e,translatorDynamic:o});r.push(s);const a=r.filter(e=>!!e?.length).join(". ");return a}({layout:o,searchInputText:ce,listCount:le}),he=e=>{const{scrollIndex:t,offset:n,triggerRerender:i}=function({position:e,isRow:t,sizes:n,layout:i,offset:o}){let r,s=!1,a=o??0;switch(e){case"start":r=0;break;case"end":r=t?n.rowCount:n.columnCount;break;case"overflowStart":a=0,r=0,s=!0;break;case"overflowEnd":a=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,n.listCount),r=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:r,offset:a,triggerRerender:s}}({position:e,isRow:X,sizes:ae,layout:o,offset:T.current.dataOffset});T.current.dataOffset=n,i&&s.triggerStateChanged(),J(t)};(0,t.useEffect)(()=>{const e=C.state;e.up?J(_.state.start-e.up):e.down?J(_.state.stop+e.down):e.scrollPosition&&he(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()},[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ue}=o?.qListObject.qDimensionInfo||{},[ge,pe]=(0,t.useState)({first:!1,last:!1}),{List:me,Grid:fe}=function({layout:e,width:n,checkboxes:i,local:o,isVertical:r,pages:s,selectionState:a,interactionEvents:l,deducedFrequencyMode:c,histogram:d,isSingleSelect:h,select:u,selectAll:g,onCtrlF:p,textAlign:m,selections:f,keyboard:b,showGray:v,scrollState:C,direction:_,sizes:y,listCount:A,overflowDisclaimer:w,setScrollPosition:S,focusListItems:k,setCurrentScrollIndex:x,constraints:E,frequencyMax:L,freqIsAllowed:D,translator:I,showSearch:N,isModal:M,styles:T}){const{layoutOptions:R={}}=e||{},{columnWidth:q,listHeight:O,itemHeight:P,rowCount:B,columnCount:F}=y||{},W=("grid"===R.dataLayout?q:n)>80,z={direction:"rtl"===_?"rtl":"ltr",useIsScrolling:!0,className:$g},V=e?.qListObject.qDimensionInfo.qLocked,H=O<=P,j={isLocked:V,column:!r,pages:s,...V||a.selectDisabled()?{}:l,checkboxes:i,layoutOptions:R,deducedFrequencyMode:c,freqIsAllowed:D,isSingleSelect:h,textAlign:m,sizes:y,actions:{select:u,confirm:()=>f?.confirm.call(f),cancel:()=>f?.cancel.call(f),setScrollPosition:S,selectAll:g,onCtrlF:p},frequencyMax:L,histogram:d,keyboard:b,showGray:v,showTick:W,dataOffset:o.current.dataOffset,focusListItems:k,direction:_,translator:I,showSearch:N,isModal:M,styles:T,fillHeight:H};return{List:({onItemsRendered:i,ref:r})=>(o.current.listRef=r,t.createElement(Qg,Kg({},z,{dataTestid:"fixed-size-list",scrollDisabled:E?.active,height:O,width:n,itemCount:A,itemData:{...j,listCount:A},itemSize:P,onItemsRendered:t=>{x({start:t.visibleStartIndex,stop:t.visibleStopIndex}),C&&C.setScrollPos(t.visibleStopIndex),Gg({renderProps:t,layoutOptions:R,maxCount:y.maxCount,columnCount:F,rowCount:B,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i({...t})},ref:r}),wg)),Grid:({onItemsRendered:i,ref:r})=>{const{overflowStyling:s,scrollBarWidth:a}=y,{layoutOrder:l}=R||{},c=Math.min(O,B*P+a);return o.current.listRef=r,t.createElement(Yg,Kg({},z,{dataTestid:"fixed-size-grid",scrollDisabled:E?.active,height:c,width:n,columnCount:F,columnWidth:q,rowCount:B,rowHeight:P,style:{...s},itemData:{...j,column:void 0,columnCount:F,rowCount:B},onItemsRendered:t=>{const n="row"===l;x({start:n?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:n?t.visibleRowStopIndex:t.visibleColumnStopIndex});const r=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let h,u,g,p;return n&&n.setScrollPos(d),"column"===i?(h=l*o,u=s,g=c*o,p=a):(h=l,u=s*r,g=c,p=a*r),{visibleStartIndex:h+u,visibleStopIndex:g+p}}({renderProps:t,scrollState:C,layoutOrder:l,rowCount:B,columnCount:F});Gg({renderProps:t,layoutOptions:R,maxCount:y.maxCount,columnCount:F,rowCount:B,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i(r)},ref:r}),wg)}}}({direction:a,layout:o,height:c,width:d,checkboxes:I,deducedFrequencyMode:se,histogram:N,keyboard:f,showGray:b,interactionEvents:K,select:Q,selectAll:()=>{s.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:A,textAlign:ue,isVertical:ne,pages:j,selectionState:s,isSingleSelect:D,selections:r,scrollState:v,local:T,sizes:ae,listCount:le,overflowDisclaimer:{state:V,set:e=>H(t=>({...t,show:e}))},setScrollPosition:he,focusListItems:{first:ge.first,setFirst:e=>pe(t=>({...t,first:e})),last:ge.last,setLast:e=>pe(t=>({...t,last:e}))},setCurrentScrollIndex:_.set,constraints:i,frequencyMax:q,freqIsAllowed:re,translator:x,showSearch:w,isModal:S,styles:k}),{columnWidth:be,listHeight:ve,itemHeight:Ce}=ae||{};return ne||(te=function({width:e,columnWidth:t,listHeight:n,itemHeight:i}){return Math.ceil(e/t)*Math.ceil(n/i)*2}({width:d,columnWidth:be,listHeight:ve,itemHeight:Ce})),t.createElement(Xm,null,t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},de),!le&&$>0&&t.createElement(zm,{width:d,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(Ih,{isItemLoaded:G,itemCount:le||1,loadMoreItems:z.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:M,role:"grid"},ne?me:fe),V.show&&!V.dismissed&&t.createElement(Gm,{text:"Listbox.ItemsOverflow",dismiss:()=>H(e=>({...e,dismissed:!0})),parentWidth:M?.current?._listRef?.props?.width,dense:Y?.dense}))}const Jm=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"}}]}),ef=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"}}]}),tf=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"}}]}),nf=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"}}]}),of=({layout:e,model:t,translator:n,selectionState:i,isDirectQuery:o=!1,selections:r})=>{if(e.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const s="/qListObjectDef",a=()=>{r.isActive()||r.begin(s)};return[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:Jm,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAll(s)}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:tf,enabled:()=>["qOption"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectPossible(s)}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:ef,enabled:()=>["qAlternative"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAlternative(s)}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:nf,enabled:()=>["qAlternative","qExcluded"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectExcluded(s)}}].filter(Boolean)};function rf(e){return(0,ln.Ay)("MuiDivider",e)}const sf=(0,an.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),af=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],lf=(0,sn.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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,Ao.X4)(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,Jt.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>(0,Jt.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>(0,Jt.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>(0,Jt.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),cf=(0,sn.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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)`})),df=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:r,component:s=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==s?"separator":void 0),textAlign:h="center",variant:u="fullWidth"}=n,g=(0,Zt.A)(n,af),p=(0,Jt.A)({},n,{absolute:i,component:s,flexItem:a,light:l,orientation:c,role:d,textAlign:h,variant:u}),m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,tn.A)(c,rf,i)})(p);return(0,dn.jsx)(lf,(0,Jt.A)({as:s,className:(0,en.A)(m.root,r),role:d,ref:t,ownerState:p},g,{children:o?(0,dn.jsx)(cf,{className:m.wrapper,ownerState:p,children:o}):null}))});df.muiSkipListHighlight=!0;const hf=df,uf=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 gf(e){const t=Gn(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,i="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:i}}const pf={className:"njs-cell-action"},mf=t.forwardRef(({ariaExpanded:e=!1,item:n,addAnchor:i=!1},o)=>{const r=Gn(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=gf(n);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),h=n.keyboardAction||n.action,u=h?e=>["Enter"].includes(e.key)&&h():null,g=h?e=>[" ","Spacebar"].includes(e.key)&&h():null,p=`actions-toolbar-${n.key}`;return t.createElement(cr,{ref:i?null:o,title:n.label,onClick:n.action,onKeyDown:u,onKeyUp:g,disabled:a,style:l,className:[pf.className,p].join(" "),size:"large",disableRipple:!0,"aria-expanded":e,"aria-controls":"moreMenuList","data-testid":p},c&&ss(n.getSvgIconShape()),i&&t.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))}),ff=mf,bf=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"}}]}),vf=e=>ss(bf(e)),Cf=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"}}]}),_f=e=>ss(Cf(e));function yf(e){return(0,ln.Ay)("MuiListItemIcon",e)}const Af=(0,an.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);function wf(e){return(0,ln.Ay)("MuiMenuItem",e)}const Sf=(0,an.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),kf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],xf=(0,sn.Ay)(ir,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,Jt.A)({},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"}},[`&.${Sf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Ao.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Sf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ao.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Sf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ao.X4)(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,Ao.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Sf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Sf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${sf.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${sf.inset}`]:{marginLeft:52},[`& .${Ms.root}`]:{marginTop:0,marginBottom:0},[`& .${Ms.inset}`]:{paddingLeft:36},[`& .${Af.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,Jt.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Af.root} svg`]:{fontSize:"1.25rem"}}))),Ef=t.forwardRef(function(e,n){const i=(0,rn.b)({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:h,className:u}=i,g=(0,Zt.A)(i,kf),p=t.useContext(ls),m=t.useMemo(()=>({dense:s||p.dense||!1,disableGutters:l}),[p.dense,s,l]),f=t.useRef(null);(0,fs.A)(()=>{o&&f.current&&f.current.focus()},[o]);const b=(0,Jt.A)({},i,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:r,classes:s}=e,a={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",r&&"selected"]},l=(0,tn.A)(a,wf,s);return(0,Jt.A)({},s,l)})(i),C=(0,wo.A)(f,n);let _;return i.disabled||(_=void 0!==h?h:-1),(0,dn.jsx)(ls.Provider,{value:m,children:(0,dn.jsx)(xf,(0,Jt.A)({ref:C,role:d,tabIndex:_,component:r,focusVisibleClassName:(0,en.A)(v.focusVisible,c),className:(0,en.A)(v.root,u)},g,{ownerState:b,classes:v}))})}),Lf=Ef,Df=["className"],If=(0,sn.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>(0,Jt.A)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Nf=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiListItemIcon"}),{className:o}=i,r=(0,Zt.A)(i,Df),s=t.useContext(ls),a=(0,Jt.A)({},i,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,i={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,tn.A)(i,yf,n)})(a);return(0,dn.jsx)(If,(0,Jt.A)({className:(0,en.A)(l.root,o),ownerState:a,ref:n},r))}),Mf=Nf,Tf=Xd,Rf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function qf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Of(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Pf(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Bf(e,t,n,i,o,r){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&Pf(a,r)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const Ff=t.forwardRef(function(e,n){const{actions:i,autoFocus:o=!1,autoFocusItem:r=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:h="selectedMenu"}=e,u=(0,Zt.A)(e,Rf),g=t.useRef(null),p=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,fs.A)(()=>{o&&g.current.focus()},[o]),t.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&n){const n=`${Tf((0,ha.A)(e))}px`;g.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}}),[]);const m=(0,wo.A)(g,n);let f=-1;t.Children.forEach(s,(e,n)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===h&&e.props.selected||-1===f)&&(f=n),f===n&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=s.length&&(f=-1))):f===n&&(f+=1,f>=s.length&&(f=-1))});const b=t.Children.map(s,(e,n)=>{if(n===f){const n={};return r&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(n.tabIndex=0),t.cloneElement(e,n)}return e});return(0,dn.jsx)(gs,(0,Jt.A)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,n=e.key,i=(0,ha.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Bf(t,i,c,l,qf);else if("ArrowUp"===n)e.preventDefault(),Bf(t,i,c,l,Of);else if("Home"===n)e.preventDefault(),Bf(t,null,c,l,qf);else if("End"===n)e.preventDefault(),Bf(t,null,c,l,Of);else if(1===n.length){const o=p.current,r=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&r!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(r);const a=i&&!o.repeating&&Pf(i,o);o.previousKeyMatched&&(a||Bf(t,i,!1,l,qf,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},u,{children:b}))}),Wf=Ff;function zf(){return zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zf.apply(null,arguments)}const Vf="More-icon",Hf=(0,sn.Ay)(xh)(({theme:e})=>({pointerEvents:"none",[`& .${Vf} *`]:{color:e.palette.text.primary}}));function jf({item:e,autoFocus:n,onActionClick:i=()=>{}}){const{hidden:o,disabled:r,hasSvgIconShape:s}=gf(e);return o?null:t.createElement(Lf,{autoFocus:n,title:e.label,onClick:()=>{e.action(),i()},disabled:r,tabindex:"0"},s&&t.createElement(Mf,{className:Vf},ss(e.getSvgIconShape())),t.createElement(Lr,{noWrap:!0},e.label))}const Uf=t.forwardRef(({actions:e=[],show:n=!0,alignTo:i,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=()=>{},disablePortal:a=!0},l)=>{const c=e.length>0,d=e.findIndex(e=>!e.disabled);return c&&t.createElement(Hf,zf({},o,{onClose:s,ref:l,open:n,anchorEl:i.current,getContentAnchorEl:a?null:void 0,container:a?i.current:void 0,disablePortal:a,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"}}),t.createElement(Wf,{id:"moreMenuList"},e.map((e,n)=>t.createElement(jf,{key:n,item:e,autoFocus:n===d,onActionClick:s}))))});const $f="ActionsToolbar",Gf={item:`${$f}-item`,itemSpacing:`${$f}-itemSpacing`},Kf=(0,sn.Ay)(xh)(({theme:e})=>({[`& .${Gf.itemSpacing}`]:{padding:e.spacing(0,.25)}})),Qf=t.forwardRef(({className:e,ariaExpanded:n=!1,actions:i=[],addAnchor:o=!1,isRtl:r=!1},s)=>i.length>0?t.createElement(yr,{item:!0,container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e},i.map((e,i)=>t.createElement(yr,{item:!0,key:e.key,className:`${Gf.itemSpacing} ${Gf.item}`},t.createElement(ff,{ariaExpanded:n,key:e.key,item:e,ref:0===i?s:null,addAnchor:o})))):null),Yf={pointerEvents:"none"},Xf=function({show:e=!0,actions:n=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:r,more:s={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:a={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:c=null,isRtl:d,autoConfirm:h=!1,layout:u}){const g=function({api:e,layout:n,onConfirm:i=()=>{},onCancel:o=()=>{},onKeyDeactivate:r=()=>{}}){const{translator:s}=(0,t.useContext)(ld);return[{key:"clear",type:"icon-button",label:s.get("Selection.Clear"),enabled:()=>e.canClear(n),action:()=>e.clear(),getSvgIconShape:Cf},{key:"cancel",type:"icon-button",label:s.get("Selection.Cancel"),enabled:()=>e.canCancel(n),action:()=>{o(),e.cancel()},keyboardAction:()=>{r(),o(),e.cancel()},getSvgIconShape:bf},{key:"confirm",type:"icon-button",label:s.get("Selection.Confirm"),enabled:()=>e.canConfirm(n),action:()=>{i(),e.confirm()},keyboardAction:()=>{r(),i(),e.confirm()},getSvgIconShape:Bh}]}({...o,layout:u}),{translator:p,keyboardNavigation:m}=(0,t.useContext)(ld),[f,b]=(0,t.useState)(!1),v={vertical:12,horizontal:d?0:(a.anchorEl?.clientWidth??0)-7},C={vertical:"bottom",horizontal:d?-7:"right"},_=(0,t.useRef)(),y=(0,t.useRef)(),A=Gn(),w=(0,t.useMemo)(()=>({margin:A.spacing(.5,0)})),S=e=>{const t=_.current||c;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},k=(0,t.useMemo)(()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:i,isRtl:o}){return r=>{const{target:s,nativeEvent:a}=r,{keyCode:l}=a;switch(l){case gg.ARROW_LEFT:case gg.ARROW_DOWN:case gg.ARROW_RIGHT:case gg.ARROW_UP:if(s.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(s);let t=[gg.ARROW_LEFT,gg.ARROW_DOWN].includes(l);t=o?!t:t,(e=>{const t=document.querySelector("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");n.length&&n[Math.min(Math.max(0,e),n.length-1)].focus()})(t?e-1:e+1)}r.stopPropagation(),r.preventDefault();break;case gg.SPACE:r.preventDefault();break;case gg.TAB:e&&t?.refocusContent&&(r.shiftKey&&n(!1)===r.target||!r.shiftKey&&n(!0)===r.target)&&(r.preventDefault(),r.stopPropagation(),t.refocusContent());break;case gg.ESCAPE:i&&(i.onCancel(),i.api.cancel(),r.preventDefault(),r.stopPropagation())}}}({keyboardNavigation:m,focusHandler:l,getEnabledButton:S,selections:o,isRtl:d}),[m,l,S,o,d]);if((0,t.useEffect)(()=>()=>{b(!1)},[a.show,e,o.show]),(0,t.useEffect)(()=>{l&&(l.on("focus_toolbar_first",()=>{const e=S(!1);e?.focus()}),l.on("focus_toolbar_last",()=>{const e=S(!0);e?.focus()}))},[]),h)return;let x=s.enabled,E=s.actions;const L=s.alignTo||y,D=n.filter(e=>!e.hidden);if(D.length>i){const e=D.splice(-(D.length-i)-1);x=!0,E=[...e,...s.actions]}if(!o.show&&0===D.length&&!x)return null;const I={key:"more",label:p.get("Menu.More"),getSvgIconShape:uf,hidden:!1,active:f,enabled:()=>x,action:()=>b(!f)},N=D.length>0,M=E.length>0,T=N&&o.show||M&&o.show,R=t.createElement(yr,{ref:_,onKeyDown:k,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:d?"row-reverse":"row"}},r?.length&&t.createElement(Qf,{className:"actions-toolbar-extra-actions",actions:r,isRtl:d}),N&&t.createElement(Qf,{actions:D}),M&&t.createElement(Qf,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,ariaExpanded:f,actions:[I],addAnchor:!0}),T&&t.createElement(yr,{item:!0,className:Gf.itemSpacing,style:w},t.createElement(hf,{orientation:"vertical"})),o.show&&t.createElement(Qf,{className:"actions-toolbar-default-actions",actions:g,isRtl:d}),f&&t.createElement(Uf,{show:f,actions:E,alignTo:L,popoverProps:s.popoverProps,popoverPaperStyle:s.popoverPaperStyle,onCloseOrActionClick:()=>{b(!1)},disablePortal:s.disablePortal}));return a.show?t.createElement(Kf,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:v,transformOrigin:C,hideBackdrop:!0,style:Yf,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:A.spacing(.5,.25)}}}},R):e&&R};function Zf(e){return(0,ln.Ay)("MuiInputAdornment",e)}const Jf=(0,an.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var eb;const tb=["children","className","component","disablePointerEvents","disableTypography","position","variant"],nb=(0,sn.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Vn.A)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Jf.positionStart}&:not(.${Jf.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),ib=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=i,h=(0,Zt.A)(i,tb),u=Oa()||{};let g=d;d&&u.variant,u&&!g&&(g=u.variant);const p=(0,Jt.A)({},i,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:r,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${(0,Vn.A)(o)}`,s,i&&"hiddenLabel",r&&`size${(0,Vn.A)(r)}`]};return(0,tn.A)(a,Zf,t)})(p);return(0,dn.jsx)(qa.Provider,{value:null,children:(0,dn.jsx)(nb,(0,Jt.A)({as:s,ownerState:p,className:(0,en.A)(m.root,r),ref:n},h,{children:"string"!=typeof o||l?(0,dn.jsxs)(t.Fragment,{children:["start"===c?eb||(eb=(0,dn.jsx)("span",{className:"notranslate",children:"​"})):null,o]}):(0,dn.jsx)(Lr,{color:"text.secondary",children:o})}))})}),ob=ib,rb=e=>ss((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)),sb="/qListObjectDef",ab=e=>e?.substring(0,64e3),lb=(0,sn.Ay)(pl,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})(({styles:e,dense:t,isRtl:n})=>{let i={};return t&&(i={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:e.search.color,textAlign:n?"right":"left"}}),{display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:e.search.backgroundColor,backdropFilter:e.background.backgroundImage?e.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:n?"row-reverse":"row","& fieldset":{borderColor:`${e.search.borderColor}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:`${e.search.highlightBorderColor} !important`},"& .MuiInputBase-root":{...e.search},"& *":{color:e.search.color},"& input":{color:e.search.color,textAlign:n?"right":"left"},...i}}),cb=(0,sn.Ay)(cr)(()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}}));function db({popoverOpen:e,selections:n,selectionState:i,model:o,keyboard:r,dense:s=!1,visible:a=!0,autoFocus:l=!0,beginSelectionOnFocus:c=!0,wildCardSearch:d=!1,searchEnabled:h,direction:u,hide:g,styles:p},m){const{translator:f}=(0,t.useContext)(ld),[b,v]=(0,t.useState)(""),[C,_]=(0,t.useState)(!1),y=(0,t.useRef)(),A=(0,t.useRef)(),w=f.get("Listbox.Clear.Search"),{getStoreValue:S,setStoreValue:k}=np(o),x="rtl"===u,E=async()=>{try{await o.abortListObjectSearch(sb)}finally{v("")}};(0,t.useEffect)(()=>a?()=>E():()=>{},[a]),(0,t.useEffect)(()=>(n.on("deactivated",E),()=>{n.removeListener&&n.removeListener("deactivated",E)}),[]),(0,t.useEffect)(()=>{if(C&&y.current){const e=b.length-1;y.current.setSelectionRange(e,e),_(!1)}},[C,y.current]),(0,t.useEffect)(()=>{k("inputText",b)},[b]);const L=()=>{y.current?.focus()},D=()=>{E(),L()};return(0,t.useImperativeHandle)(m,()=>({focus(){L()}})),a&&!1!==h?t.createElement(lb,{styles:p,dense:s,isRtl:x,startAdornment:t.createElement(ob,{position:"start",sx:{marginLeft:s?"8px":"9px"}},t.createElement(rb,{size:s?"small":"normal"})),endAdornment:t.createElement(ob,{position:"end",sx:{marginLeft:0}},""!==b&&t.createElement(cb,{tabIndex:0,ref:A,title:w,"aria-label":w,onClick:D,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":D();break;case"Tab":e.shiftKey?L():Cg(t);break;default:return}e.preventDefault(),e.stopPropagation()}},t.createElement(vf,{size:s?"small":"normal"}))),className:"search",inputRef:y,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:b,onFocus:()=>{d&&(v("**"),_(!0)),c&&!i.selectDisabled()&&!n.isModal()&&n.begin("/qListObjectDef")},onChange:async e=>{const t=ab(e.target.value);return v(t),t.length?o.searchListObjectFor(sb,t):E()},onKeyDown:async t=>{const{currentTarget:s}=t,a=s.closest(".listbox-container");switch(t.key){case"Enter":(async()=>{let e;const t=ab(b),r=await o.searchListObjectFor(sb,t);i.selectDisabled()||r&&t.length&&S("listCount")>0&&(e=o.acceptListObjectSearch(sb,!0),n.selectionsMade=!0,i.clearItemStates(!1),v(""))})();break;case"Escape":if(Cg(a),n.cancel(),e)return;break;case"Tab":t.shiftKey?_g(a)||r.focusSelection():A.current?A.current.focus():Cg(a);break;case"f":case"F":if(!t.ctrlKey&&!t.metaKey)return;g&&(g(),Cg(a));break;default:return}t.preventDefault(),t.stopPropagation()},autoFocus:l,inputProps:{tabIndex:r.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":f.get("Listbox.Search.ScreenReaderInstructions")}}):null}const hb=(0,t.forwardRef)(db);function ub(e){if(!e.session)return[];const{selectionStore:n}=(0,t.useContext)(ld),[i]=n.useAppSelectionsStore(),o=e?e.id:null;let r=i.get(o);return(0,t.useEffect)(()=>{e&&!r&&(r=function({app:e,selectionStore:t}){const n=`${e.id}`,{modalObjectStore:i,appModalStore:o}=t,r=async(e=!0)=>{const{model:t,objectSelections:o}=i.get(n)||{};t&&(await t.endSelections(e),i.clear(n),o.emit("deactivated"))},s={begin:async({model:t,paths:o,accept:s=!0,objectSelections:a})=>{if(a===i.get(n)?.objectSelections)return;r(s),i.set(n,{model:t,objectSelections:a});const l=Array.isArray(o)?o:[o],c=async o=>{try{await t.beginSelections(l),i.set(n,{model:t,objectSelections:a})}catch(t){6003!==t.code||o?i.clear(n):(await e.abortModal(s),c(!0))}};await c()},end:r};o.set(n,s);const a={model:e,isInModal:()=>!!i.get(n),isModal:e=>e?i.get(n)?.objectSelections===e:!!i.get(n),forward:()=>s.end().then(()=>e.forward()),back:()=>s.end().then(()=>e.back()),clear:()=>s.end().then(()=>e.clearAll()),clearField:(t,n="$")=>s.end().then(()=>e.getField(t,n).then(e=>e.clear()))};return a}({app:e,selectionStore:n}),i.set(o,r),i.dispatch(!0))},[e]),[r]}function gb(e){return Object.keys(ec().prototype).forEach(t=>{e[t]=ec().prototype[t]}),ec().init(e),e}const pb=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,r=!1;const s={id:n.id,setLayout(e){i=e},begin(e){const i=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",i),i.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:n,paths:e,accept:!0,objectSelections:s}))},clear(){return r=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return r=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return r=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const i=this.begin([t.params[0]]);if(!e.isModal())return!1;await i;const o=await n[t.method](...t.params);return r="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(s),goModal:e=>t.begin({model:n,paths:e,accept:!1,objectSelections:s}),noModal:(e=!1)=>t.end(e)};return gb(s),s};function mb(e,n,i,o){const r=Array.isArray(i)?i:[i],[s]=ub(e),[a]=yd(n),{appModalStore:l}=(0,t.useContext)(ld).selectionStore,c=l.get(e.id),[d,h]=(0,t.useState)();return(0,t.useEffect)(()=>{s&&n&&!d&&h(pb({appSelections:s,appModal:c,model:n}))},[s,n]),(0,t.useEffect)(()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=(({elements:e,objectSelections:t,options:n={}})=>{const i=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const i=e.map(e=>"string"==typeof e?document.querySelector(e):e?.current).filter(e=>!!e&&!!document.contains(e));i.length&&!i.some(e=>e.contains(n.target))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",i),n?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",i),n?.onSelectionDeactivated?.()}}})({elements:r,objectSelections: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,t.useEffect)(()=>{d&&d.setLayout(a)},[d,a]),[d]}function fb(e={}){const t={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0,...e,update({setPages:e,pages:n,isSingleSelect:i,selectDisabled:o,layout:r}){this.setPages=e;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)),t.enginePages!==n&&void 0!==n&&(t.enginePages=n??[],t.selectedInEngine=function(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[t]=e;return n=t.qState,!!Nh.includes(n)&&t.qElemNumber;var n});return t.filter(e=>!1!==e)});return Mh(t)}(n),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=i,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=r?.qListObject?.qDimensionInfo?.qIsCalculated??!1},allowedToSelect:()=>!(t.selectDisabled()||t.isDimCalculated&&t.selectableValuesUpdating),setSelectableValuesUpdating(){t.selectableValuesUpdating=!0},useClientItemState:e=>t.ignoreSelectionState||e in t.itemStates,isSelected:e=>t.useClientItemState(e)?!!t.itemStates[e]:t.selectedInEngine.includes(e),getState(e){const{qElemNumber:n,qState:i}=e;return t.useClientItemState(n)?t.itemStates[n]?"XS"===i?"XS":"S":"S"===i||"XS"===i?"A":i:i},updateItemNoEvents(e,n,i){const o=t.isSelected(e);o&&!n?t.itemStates[e]=!1:o||(i?.push(e),t.itemStates[e]=!0)},triggerStateChanged(){if(this.setPages){const e=t.applySelectionsOnPages(t.enginePages);this.setPages(e)}},applySelectionsOnPages(e){const n=e.map(e=>{const n=e.qMatrix.map(e=>{const[n]=e,i=t.getState(n);return[{...n,qState:i},...e.slice(1)]});return{...e,qMatrix:n}});return n},updateItem(e,n,i){t.updateItemNoEvents(e,n,i),t.triggerStateChanged()},updateItems(e,n,i){e.forEach(e=>{t.updateItemNoEvents(e,n,i)}),t.triggerStateChanged()},clearItemStates(e){t.itemStates={},t.ignoreSelectionState=e}};return t}const bb=(e,t,n=void 0)=>e?.[t]??n;function vb(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return bb(t,"qSelected",0)+bb(t,"qSelectedExcluded",0)+bb(t,"qLocked",0)+bb(t,"qLockedExcluded",0)>0}function Cb(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function _b(e){if("object"==typeof e&&Cb(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,i=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+i}const yb={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:0,g:0,b:0,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}};function Ab(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,i=0,o=0,r=1;if(null!==(s=e[0])&&"object"==typeof s&&"type"in s&&"qcm-color"===s.type)({r:n,g:i,b:o,a:r}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Cb(e[0]))({r:n,g:i,b:o}=e[0]),"a"in e[0]&&({a:r}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const s=e[0];let a;if(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))n=parseInt(a[1],10),i=parseInt(a[2],10),o=parseInt(a[3],10);else if(a=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(s))n=parseInt(a[1],10),i=parseInt(a[2],10),o=parseInt(a[3],10),r=parseFloat(a[4]);else if(a=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))r=parseInt(a[1],10)/255,n=parseInt(a[2],10),i=parseInt(a[3],10),o=parseInt(a[4],10);else if(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(s))n=parseInt(a[1],16),i=parseInt(a[2],16),o=parseInt(a[3],16),r=1;else if(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))n=parseInt(a[1]+a[1],16),i=parseInt(a[2]+a[2],16),o=parseInt(a[3]+a[3],16),r=1;else if(a=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s<=.5?2*s*t:(2-2*s)*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=s-.5*l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o),r=1}else if(a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);r=parseFloat(a[7]),e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s<=.5?2*s*t:(2-2*s)*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=s-.5*l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o)}else if(a=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=s-l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o),r=1}else{const e=s.toLowerCase();if(function(e){return e in yb}(e)){const t=yb[e];({r:n,g:i,b:o}=t),r="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(r=(4278190080&e[0])>>>24,r/=255,n=(16711680&e[0])>>16,i=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,i=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],i=e[1],o=e[2],r=4===e.length?e[3]:1):t.invalid=!0;var s;return Number.isNaN(+n+i+o+r)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(i),t.b=Math.floor(o),t.a=r,t}function wb(e){let t,n,i;if(Cb(e))return t=e.r.toString(16),n=e.g.toString(16),i=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${[t,n,i].join("")}`;const o="string"==typeof e?_b(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),i=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${t}${n}${i}`}function Sb(e){let t,n,i=0;const o="string"==typeof e?Ab(e):e,r=o.r/255,s=o.g/255,a=o.b/255,{a:l}=o,c=Math.max(r,s,a),d=Math.min(r,s,a),h=(c+d)/2;if(c===d)t=0,i=0;else{switch(n=c-d,t=h>.5?n/(2-c-d):n/(c+d),c){case r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/n+4}i/=6}return{h:360*i,s:100*t,l:100*h,a:l}}function kb(e){let t,n,i=0;const o="string"==typeof e?Ab(e):e,r=o.r/255,s=o.g/255,a=o.b/255,l=Math.max(r,s,a),c=Math.min(r,s,a),d=l;if(l===c)t=0,i=0;else{switch(n=l-c,t=0===n?0:n/d,l){case r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/n+4}i/=6}return{h:360*i%360,s:100*t,v:100*d}}function xb(e){if(Cb(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?_b(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function Eb(e,t){return Cb(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${void 0!==t?t:e.a})`:Eb(Ab(e),t)}function Lb(e){return Cb(e)?1===e.a?xb(e):Eb(e):Lb(Ab(e))}const Db=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Ib(e){return.2126*Db(e.r)+.7152*Db(e.g)+.0722*Db(e.b)}function Nb(...e){const t=Ab(...e);return t.invalid||Ib(t)<.4}function Mb(...e){const t=Ab(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},i=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=Sb(n)),n.spaces.hslaObject),o=e=>{const t=i(),{h:n,s:o,l:r,a:s}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(r+e,100))}, ${s})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Ab(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>Nb(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=xb(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=Eb(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Lb(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=wb(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,i=0;const o="string"==typeof e?Ab(e):e,r=o.r/255,s=o.g/255,a=o.b/255,l=Math.max(r,s,a),c=Math.min(r,s,a),d=(l+c)/2;if(l===c)t=0,i=0;else{switch(n=l-c,t=d>.5?n/(2-l-c):n/(l+c),l){case r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/n+4}i/=6}return`hsl(${360*i}, ${100*t}, ${100*d})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:i,a:o}=Sb(e);return`hsla(${t}, ${n}, ${i}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:i,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:i}=kb(e);return`hsv(${t}, ${n}, ${i})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=kb(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>Mb(o(18*e)),getDarkenedColor:(e=1)=>Mb(o(18*-e))}}function Tb(e,t){if(!e||!t)return;const n=Ib(e),i=Ib(t);return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}function Rb(e,t){const n=Mb("#FFFFFF"),i=Mb(e),o=Mb(t);if(i.isInvalid()||o.isInvalid()||i.getAlpha()<1||o.getAlpha()<1)return t;const r=Tb(n,i),s=Tb(o,i),a=r>s||r>4.5;return!a&&s>3?o.getHex():a?"#FFFFFF":"#000000"}function qb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ob,Pb,Bb,Fb="top",Wb="top-right",zb="right",Vb="bottom-right",Hb="bottom",jb="bottom-left",Ub="left",$b="top-left";qb(qb(qb(qb(qb(qb(qb(qb(qb(qb(Ob={},"equal-equal",[Fb,Hb]),"equal-higher",[Hb,Vb]),"equal-lower",[Fb,Wb]),"equal-void",[Fb,Hb]),"higher-equal",[Ub,jb,Fb,Wb]),"higher-higher-acute",[Hb,jb,Ub,Wb]),"higher-higher-obtuse",[Hb,Fb]),"higher-lower-negative",[Fb,Wb,zb]),"higher-lower-positive",[Hb,jb,Ub]),"higher-void",[Fb]),qb(qb(qb(qb(qb(qb(qb(qb(qb(qb(Ob,"lower-equal",[Fb]),"lower-higher-negative",[Fb,$b]),"lower-higher-positive",[Vb]),"lower-lower-acute",[Fb,$b,Ub,Wb,zb]),"lower-lower-obtuse",[Fb,Hb]),"lower-void",[Fb]),"void-equal",[Fb]),"void-higher",[Fb,Hb]),"void-lower",[Fb,Hb,Ub]),"void-void",[Fb]),qb(Ob,"unclassified",[Fb,Hb,zb,Ub,Wb,Vb,jb,$b]);var Gb=function(){if(Bb)return Pb;Bb=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},r=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var i,o=e.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!r)return!1;for(i in n);return void 0===i||e.call(n,i)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(i)return i(t,n).value}return t[n]};return Pb=function e(){var t,n,i,l,c,d,h=arguments[0],u=1,g=arguments.length,p=!1;for("boolean"==typeof h&&(p=h,h=arguments[1]||{},u=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});u<g;++u)if(null!=(t=arguments[u]))for(n in t)i=a(h,n),h!==(l=a(t,n))&&(p&&l&&(r(l)||(c=o(l)))?(c?(c=!1,d=i&&o(i)?i:[]):d=i&&r(i)?i:{},s(h,{name:n,newValue:e(p,d,l)})):void 0!==l&&s(h,{name:n,newValue:l}));return h},Pb}();function Kb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Qb(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Yb(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Gb);var Xb=1/.7,Zb="\\s*([+-]?\\d+)\\s*",Jb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ev="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tv=/^#([0-9a-f]{3,8})$/,nv=new RegExp(`^rgb\\(${Zb},${Zb},${Zb}\\)$`),iv=new RegExp(`^rgb\\(${ev},${ev},${ev}\\)$`),ov=new RegExp(`^rgba\\(${Zb},${Zb},${Zb},${Jb}\\)$`),rv=new RegExp(`^rgba\\(${ev},${ev},${ev},${Jb}\\)$`),sv=new RegExp(`^hsl\\(${Jb},${ev},${ev}\\)$`),av=new RegExp(`^hsla\\(${Jb},${ev},${ev},${Jb}\\)$`),lv={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 cv(){return this.rgb().formatHex()}function dv(){return this.rgb().formatRgb()}function hv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=tv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?uv(t):3===n?new fv(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gv(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gv(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=nv.exec(e))?new fv(t[1],t[2],t[3],1):(t=iv.exec(e))?new fv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ov.exec(e))?gv(t[1],t[2],t[3],t[4]):(t=rv.exec(e))?gv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=sv.exec(e))?Av(t[1],t[2]/100,t[3]/100,1):(t=av.exec(e))?Av(t[1],t[2]/100,t[3]/100,t[4]):lv.hasOwnProperty(e)?uv(lv[e]):"transparent"===e?new fv(NaN,NaN,NaN,0):null}function uv(e){return new fv(e>>16&255,e>>8&255,255&e,1)}function gv(e,t,n,i){return i<=0&&(e=t=n=NaN),new fv(e,t,n,i)}function pv(e){return e instanceof Yb||(e=hv(e)),e?new fv((e=e.rgb()).r,e.g,e.b,e.opacity):new fv}function mv(e,t,n,i){return 1===arguments.length?pv(e):new fv(e,t,n,null==i?1:i)}function fv(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function bv(){return`#${yv(this.r)}${yv(this.g)}${yv(this.b)}`}function vv(){const e=Cv(this.opacity);return`${1===e?"rgb(":"rgba("}${_v(this.r)}, ${_v(this.g)}, ${_v(this.b)}${1===e?")":`, ${e})`}`}function Cv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _v(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yv(e){return((e=_v(e))<16?"0":"")+e.toString(16)}function Av(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Sv(e,t,n,i)}function wv(e){if(e instanceof Sv)return new Sv(e.h,e.s,e.l,e.opacity);if(e instanceof Yb||(e=hv(e)),!e)return new Sv;if(e instanceof Sv)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Sv(s,a,l,e.opacity)}function Sv(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function kv(e){return(e=(e||0)%360)<0?e+360:e}function xv(e){return Math.max(0,Math.min(1,e||0))}function Ev(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Kb(Yb,hv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:cv,formatHex:cv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return wv(this).formatHsl()},formatRgb:dv,toString:dv}),Kb(fv,mv,Qb(Yb,{brighter(e){return e=null==e?Xb:Math.pow(Xb,e),new fv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new fv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fv(_v(this.r),_v(this.g),_v(this.b),Cv(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:bv,formatHex:bv,formatHex8:function(){return`#${yv(this.r)}${yv(this.g)}${yv(this.b)}${yv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:vv,toString:vv})),Kb(Sv,function(e,t,n,i){return 1===arguments.length?wv(e):new Sv(e,t,n,null==i?1:i)},Qb(Yb,{brighter(e){return e=null==e?Xb:Math.pow(Xb,e),new Sv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Sv(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new fv(Ev(e>=240?e-240:e+120,o,i),Ev(e,o,i),Ev(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Sv(kv(this.h),xv(this.s),xv(this.l),Cv(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=Cv(this.opacity);return`${1===e?"hsl(":"hsla("}${kv(this.h)}, ${100*xv(this.s)}%, ${100*xv(this.l)}%${1===e?")":`, ${e})`}`}}));const Lv=Math.PI/180,Dv=180/Math.PI,Iv=4/29,Nv=6/29,Mv=3*Nv*Nv;function Tv(e){if(e instanceof Rv)return new Rv(e.l,e.a,e.b,e.opacity);if(e instanceof Fv)return Wv(e);e instanceof fv||(e=pv(e));var t,n,i=Bv(e.r),o=Bv(e.g),r=Bv(e.b),s=qv((.2225045*i+.7168786*o+.0606169*r)/1);return i===o&&o===r?t=n=s:(t=qv((.4360747*i+.3850649*o+.1430804*r)/.96422),n=qv((.0139322*i+.0971045*o+.7141733*r)/.82521)),new Rv(116*s-16,500*(t-s),200*(s-n),e.opacity)}function Rv(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function qv(e){return e>.008856451679035631?Math.pow(e,1/3):e/Mv+Iv}function Ov(e){return e>Nv?e*e*e:Mv*(e-Iv)}function Pv(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Bv(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Fv(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}function Wv(e){if(isNaN(e.h))return new Rv(e.l,0,0,e.opacity);var t=e.h*Lv;return new Rv(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Kb(Rv,function(e,t,n,i){return 1===arguments.length?Tv(e):new Rv(e,t,n,null==i?1:i)},Qb(Yb,{brighter(e){return new Rv(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Rv(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new fv(Pv(3.1338561*(t=.96422*Ov(t))-1.6168667*(e=1*Ov(e))-.4906146*(n=.82521*Ov(n))),Pv(-.9787684*t+1.9161415*e+.033454*n),Pv(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Kb(Fv,function(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof Fv)return new Fv(e.h,e.c,e.l,e.opacity);if(e instanceof Rv||(e=Tv(e)),0===e.a&&0===e.b)return new Fv(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Dv;return new Fv(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Fv(e,t,n,null==i?1:i)},Qb(Yb,{brighter(e){return new Fv(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Fv(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Wv(this).rgb()}}));var zv=e=>()=>e;function Vv(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):zv(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Vv:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):zv(isNaN(t)?n:t)}}(t);function i(e,t){var i=n((e=mv(e)).r,(t=mv(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=Vv(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=o(t),e.b=r(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);var Hv="center",jv="bottom";function Uv(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Gv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$v(Object(n),!0).forEach(function(t){Uv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}[{key:"NoDataExist",alignment:Hv,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Hv,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Hv,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Hv},{key:"DataRangeIncludingZero",alignment:jv},{key:"LimitedData",alignment:jv},{key:"NegativeOrZeroValues",alignment:jv}].reduce(function(e,t){return e[t.key]=t,e},{});var Kv=Object.prototype.hasOwnProperty,Qv=Object.prototype.toString,Yv=Object.defineProperty,Xv=Object.getOwnPropertyDescriptor,Zv=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Qv.call(e)},Jv=function(e){if(!e||"[object Object]"!==Qv.call(e))return!1;var t,n=Kv.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&Kv.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||Kv.call(e,t)},eC=function(e,t){Yv&&"__proto__"===t.name?Yv(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},tC=function(e,t){if("__proto__"===t){if(!Kv.call(e,t))return;if(Xv)return Xv(e,t).value}return e[t]},nC=function e(){var t,n,i,o,r,s,a=arguments[0],l=1,c=arguments.length,d=!1;for("boolean"==typeof a&&(d=a,a=arguments[1]||{},l=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)i=tC(a,n),a!==(o=tC(t,n))&&(d&&o&&(Jv(o)||(r=Zv(o)))?(r?(r=!1,s=i&&Zv(i)?i:[]):s=i&&Jv(i)?i:{},eC(a,{name:n,newValue:e(d,s,o)})):void 0!==o&&eC(a,{name:n,newValue:o}));return a};function iC(e,t,n,i){if(!e)return-1;const o=n.cache,r=e.origin?e.origin():null;r&&(e=r);let s=o.fields.indexOf(e),a=-1,l=-1;if(-1===s)for(let t=0;t<o.wrappedFields.length;t++)if(l=o.wrappedFields[t].attrDims.map(e=>e.instance).indexOf(e),a=o.wrappedFields[t].attrExps.map(e=>e.instance).indexOf(e),-1!==l||-1!==a){s=t;break}if(Array.isArray(i)&&i.some((e,t)=>e!==t)){const e=i.indexOf(s);-1!==e&&(s=e)}return s-=t.qArea.qLeft,s<0||s>=t.qArea.qWidth?-1:l>=0?e=>e[s].qAttrDims.qValues[l]:a>=0?e=>e[s].qAttrExps.qValues[a]:e=>e[s]}function oC(e,t,n){let{key:i}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:i,field:e.field.key()}),o}function rC(e){let{cache:t,f:n,mainCell:i,p:o,prop:r,page:s,rowIdx:a,row:l,sourceKey:c,target:d,targetProp:h,columnOrder:u}=e,g=i;if(o.field&&o.field!==n){const e=iC(o.field,s,{cache:t},u);if(-1===e)return;g=nC({qRow:a},e(l))}d[h]=oC(o,g,{key:c})}function sC(e,t,n,i){const o=Array.isArray(e)?e:[e];let r=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const s=t.raw(),a=t.key(),l="object"==typeof o[e].field?o[e].field:t.field(o[e].field),{props:c,main:d}=i.normalizeConfig(o[e],t),h=Object.keys(c),u=!!o[e].trackBy,g=typeof o[e].trackBy,p={},m=[],f=[];for(let t=0;t<s.qDataPages.length;t++){const r=iC(l,s.qDataPages[t],{cache:n},s.qColumnOrder);if(-1!==r)for(let b=0;b<s.qDataPages[t].qMatrix.length;b++){const v=s.qDataPages[t].qArea.qTop+b,C=nC({qRow:v},r(s.qDataPages[t].qMatrix[b])),_=oC(d,C,{key:a});if(!d.filter||d.filter(C)){for(let e=0;e<h.length;e++){const i=c[h[e]];let o=i.fields||[i];i.fields&&(_[h[e]]=[]);for(let r=0;r<o.length;r++)rC({cache:n,f:l,mainCell:C,p:o[r],prop:h[e],props:c,page:s.qDataPages[t],rowIdx:v,row:s.qDataPages[t].qMatrix[b],sourceKey:a,target:i.fields?_[h[e]]:_,targetProp:i.fields?r:h[e],columnOrder:s.qColumnOrder});if(i.fields){const t=_[h[e]].map(e=>e.value),n=_[h[e]].map(e=>e.label);_[h[e]]={value:"function"==typeof i.value?i.value(t):void 0!==i.value?i.value:t,label:"function"==typeof i.label?i.label(n):void 0!==i.label?String(i.label):String(_[h[e]].value)}}}u&&i.track({cfg:o[e],itemData:C,obj:_,target:m,tracker:p,trackType:g}),f.push(_)}}}const b=u?i.collect(m,{main:d,propsArr:h,props:c}):f;r=[...r,...b]}return r}function aC(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}function lC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=dC)):void 0===t&&(t=cC);for(var n,i,o,r,s,a=new gC(e),l=[a];n=l.pop();)if((o=t(n.data))&&(s=(o=Array.from(o)).length))for(n.children=o,r=s-1;r>=0;--r)l.push(i=o[r]=new gC(o[r])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(uC)}function cC(e){return e.children}function dC(e){return Array.isArray(e)?e[1]:null}function hC(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function uC(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function gC(e){this.data=e,this.depth=this.height=0,this.parent=null}function pC(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}gC.prototype=lC.prototype={constructor:gC,count:function(){return this.eachAfter(aC)},each:function(e,t){let n=-1;for(const i of this)e.call(t,i,++n,this);return this},eachAfter:function(e,t){for(var n,i,o,r=this,s=[r],a=[],l=-1;r=s.pop();)if(a.push(r),n=r.children)for(i=0,o=n.length;i<o;++i)s.push(n[i]);for(;r=a.pop();)e.call(t,r,++l,this);return this},eachBefore:function(e,t){for(var n,i,o=this,r=[o],s=-1;o=r.pop();)if(e.call(t,o,++s,this),n=o.children)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this},find:function(e,t){let n=-1;for(const i of this)if(e.call(t,i,++n,this))return i},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,i=t.children,o=i&&i.length;--o>=0;)n+=i[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),o=null;for(e=n.pop(),t=i.pop();e===t;)o=e,e=n.pop(),t=i.pop();return o}(t,e),i=[t];t!==n;)t=t.parent,i.push(t);for(var o=i.length;e!==n;)i.splice(o,0,e),e=e.parent;return i},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return lC(this).eachBefore(hC)},[Symbol.iterator]:function*(){var e,t,n,i,o=this,r=[o];do{for(e=r.reverse(),r=[];o=e.pop();)if(yield o,t=o.children)for(n=0,i=t.length;n<i;++n)r.push(t[n])}while(r.length)}};var mC={depth:-1},fC={},bC={};function vC(e){return e.id}function CC(e){return e.parentId}function _C(e){let t=e.length;if(t<2)return"";for(;--t>1&&!yC(e,t););return e.slice(0,t)}function yC(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function AC(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let i,o=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(o)){const t=[];i=n.slice(e+1).join("/");for(let e=0;e<o.length;e++){let n=AC(i,o[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(o)){const t=new Array(o.length);i=n.slice(e+1).join("/");for(let e=0;e<o.length;e++)t[e]=AC(i,o[e]);return t}n[e]in o&&(o=o[n[e]])}return o}function wC(e,t,n){let i=[];if(!e||!e.length)return i;if(t<=0){const t=n>=0?[e[n]]:e;i=[...i,...t]}else for(let o=0;o<e.length;o++)e[o].children&&e[o].children.length&&(i=[...i,...wC(e[o].children,t-1,n)]);return i}function SC(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const i=Math.max(0,Math.min(100,t-e));return e=>wC(e.children,i-1,n)}return!1}const kC=/^qDimensionInfo(?:\/(\d+))?/,xC=/^\/?qMeasureInfo\/(\d+)/,EC=/\/qAttrExprInfo\/(\d+)/,LC=/\/qAttrDimInfo\/(\d+)/;function DC(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map((e,t)=>t)).filter(t=>t<e.qDimensionInfo.length)}function IC(e,t){let{cube:n}=t;if(!e)return-1;let i=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,r=-1,s=-1,a=-1,l=-1,c=-1,d=-1,h=i;const u=n.qEffectiveInterColumnSortOrder,g=DC(n);return kC.test(h)&&(o=!0,r=+kC.exec(h)[1],h=i.replace(kC,"")),xC.test(h)&&("K"===n.qMode?c=+xC.exec(h)[1]:u&&-1!==u.indexOf(-1)?(c=+xC.exec(h)[1],d=0):d=+xC.exec(h)[1],h=h.replace(xC,"")),h&&(LC.exec(h)?a=+LC.exec(h)[1]:EC.exec(h)&&(s=+EC.exec(h)[1])),l=o?"S"===n.qMode?g[r]:u?u.indexOf(r):r:u&&-1!==u.indexOf(-1)?u.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:d,attrDimIdx:a,attrIdx:s}}function NC(e,t){let n,i,o=SC(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?i=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(i=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:o,attrFn:i,valueFn:n}}function MC(e,t,n){let{key:i}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:i,field:e.field.key()}),o}function TC(e){let{propsArr:t,props:n,item:i,itemData:o,ret:r,sourceKey:s}=e;for(let e=0;e<t.length;e++){const a=n[t[e]],l=a.fields||[a];let c,d;a.fields&&(c=[],d=[]);for(let n=0;n<l.length;n++){const h=l[n];let u,g,p,m,f,b;if("primitive"===h.type?(p=h.value,b=String(h.value)):("function"==typeof h.value&&(u=e=>h.value(e,i)),"function"==typeof h.label&&(g=e=>h.label(e,i)),h.accessor?(m=h.accessor(i),Array.isArray(m)?(f=m.map(h.valueAccessor),h.attrAccessor&&(f=f.map(h.attrAccessor)),u&&(p=f.map(u),u=null),g&&(b=f.map(g),g=null),p=h.reduce?h.reduce(p):p,b=h.reduceLabel?h.reduceLabel(b,p):String(p)):(p=h.attrAccessor?h.attrAccessor(h.valueAccessor(m)):h.valueAccessor(m),b=p)):(p=o,b=o)),a.fields){const e=u?u(p):p;c.push(e),d.push(g&&null!=b?g(b):null!=b?b:String(e))}else{const n=u?u(p):p;r[t[e]]={value:n,label:g?g(b):null!=b?b:String(n)},h.field&&(r[t[e]].source={field:h.field.key(),key:s})}}c&&(r[t[e]]={value:"function"==typeof a.value?a.value(c,i):c,label:"function"==typeof a.label?a.label(d,i):d})}}const RC=(e,t,n)=>{const i="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",r=AC(i,e);return r&&r[0]?(t.tree=lC(r[0],n.children||(e=>e[o])),t.tree):null};const qC=e=>{let{propsArr:t,props:n,cube:i,cache:o,itemDepthObject:r,f:s}=e;for(let e=0;e<t.length;e++){const a=n[t[e]],l=a.fields?a.fields:[a];for(let e=0;e<l.length;e++){const t=l[e];if(t.field!==s){const e=NC(r,IC(t.field,{cube:i,cache:o}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function OC(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;const o=t.raw(),r=t.key(),s="S"===o.qMode?function(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map((e,t)=>t)}(e),i=e.fields(),o=e.fields().filter(e=>"dimension"===e.type()).map(e=>n.indexOf(i.indexOf(e))),r=e.fields().filter(e=>"measure"===e.type()).map(e=>n.indexOf(i.indexOf(e))),s={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let i="__root",l=!1;for(let e=0;e<o.length;e++){var a;const t=n[o[e]],r="".concat(i,"__").concat(null!==(a=t.qElemNumber)&&void 0!==a?a:t.qElemNo);s[r]||(s[r]=Gv({__id:r,__parent:i,qValues:[]},t),l=!0),i=r}if(l)for(let e=0;e<r.length;e++){const t=n[r[e]];s[i].qValues.push(t)}}const l=Object.keys(s).map(e=>s[e]);return function(){var e,t=vC,n=CC;function i(i){var o,r,s,a,l,c,d,h,u=Array.from(i),g=t,p=n,m=new Map;if(null!=e){const t=u.map((t,n)=>function(e){let t=(e=`${e}`).length;return yC(e,t-1)&&!yC(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,i))),n=t.map(_C),o=new Set(t).add("");for(const e of n)o.has(e)||(o.add(e),t.push(e),n.push(_C(e)),u.push(bC));g=(e,n)=>t[n],p=(e,t)=>n[t]}for(s=0,o=u.length;s<o;++s)r=u[s],c=u[s]=new gC(r),null!=(d=g(r,s,i))&&(d+="")&&(h=c.id=d,m.set(h,m.has(h)?fC:c)),null!=(d=p(r,s,i))&&(d+="")&&(c.parent=d);for(s=0;s<o;++s)if(d=(c=u[s]).parent){if(!(l=m.get(d)))throw new Error("missing: "+d);if(l===fC)throw new Error("ambiguous: "+d);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(a)throw new Error("multiple roots");a=c}if(!a)throw new Error("no root");if(null!=e){for(;a.data===bC&&1===a.children.length;)a=a.children[0],--o;for(let e=u.length-1;e>=0&&(c=u[e]).data===bC;--e)c.data=null}if(a.parent=mC,a.eachBefore(function(e){e.depth=e.parent.depth+1,--o}).eachBefore(uC),a.parent=null,o>0)throw new Error("cycle");return a}return i.id=function(e){return arguments.length?(t=pC(e),i):t},i.parentId=function(e){return arguments.length?(n=pC(e),i):n},i.path=function(t){return arguments.length?(e=pC(t),i):e},i}().id(e=>e.__id).parentId(e=>e.__parent)(l)}(t):RC(o,n,e);if(!s)return null;const a=s.height,l=[];for(let r=0;r<=a;r++){let s=null;if(r>0)if("S"===o.qMode){let e=DC(o)[r-1];s=n.fields[e]}else{let e=o.qEffectiveInterColumnSortOrder[r-1];r>o.qEffectiveInterColumnSortOrder.length&&(e=o.qDimensionInfo.length),s=n.fields[e]}const{props:a,main:c}=i.normalizeConfig(Gv(Gv({},e),{},{field:s?s.key():void 0}),t),d=Object.keys(a);l[r]={propsArr:d,props:a,main:c};const h=s?IC(s,{cube:o,cache:n}):{fieldDepth:0};qC({propsArr:d,props:a,cube:o,cache:n,itemDepthObject:h,f:s})}const c=s.copy().descendants(),d=s.descendants();for(let e=0;e<d.length;e++){const t=l[d[e].depth].propsArr,n=l[d[e].depth].props,i=l[d[e].depth].main,o=c[e],s=o.data,a=MC(i,s,{key:r});TC({propsArr:t,props:n,item:o,itemData:s,ret:a,sourceKey:r,isTree:!0}),d[e].data=a}return s}function PC(e,t,n,i){const o=Array.isArray(e)?e:[e];let r=[];for(let s=0;s<o.length;s++)if(void 0!==o[s].field){const a=t.raw(),l=t.key();if(!RC(a,n,e))continue;const c="object"==typeof o[s].field?o[s].field:t.field(o[s].field),{props:d,main:h}=i.normalizeConfig(o[s],t),u=Object.keys(d),g=IC(c,{cube:a,cache:n}),{nodeFn:p,attrFn:m,valueFn:f}=NC({fieldDepth:0},g);qC({propsArr:u,props:d,cube:a,cache:n,itemDepthObject:g,f:c});const b=!!o[s].trackBy,v=typeof o[s].trackBy,C={},_=[],y=p(n.tree),A=[];for(let e=0;e<y.length;e++){const t=y[e],n=m?m(f(t)):f(t);if(h.filter&&!h.filter(n))continue;const r=MC(h,n,{key:l});TC({propsArr:u,props:d,item:t,itemData:n,ret:r,sourceKey:l}),b&&i.track({cfg:o[s],itemData:n,obj:r,target:_,tracker:C,trackType:v}),A.push(r)}const w=b?i.collect(_,{main:h,propsArr:u,props:d}):A;r=[...r,...w]}return r}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==s.g?s.g:"undefined"!=typeof self&&self;var BC,FC,WC=(BC=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,i,o,r,s,a,l,c,d,h,u=e.length,g=e.search(/[0-9\-\+#]/),p=g>0?e.substring(0,g):"",m=e.split("").reverse().join(""),f=m.search(/[0-9\-\+#]/),b=u-f,v=e.substring(b,b+1),C=b+("."===v||","===v?1:0),_=f>0?e.substring(C,u):"";if(n=(t="-"===(e=e.substring(g,C)).charAt(0)?-t:+t)<0?t=-t:0,o=(i=e.match(/[^\d\-\+#]/g))&&i[i.length-1]||".",r=i&&i[1]&&i[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",a=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=a)&&(t=(+t).toFixed(a+1)),d=e[0].split(r),e[0]=d.join(""),(s=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-s;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=d[1]&&d[d.length-1].length){for(m="",b=(h=t[0]).length%l,u=h.length,C=0;C<u;C++)m+=h.charAt(C),!((C-b+1)%l)&&C<u-l&&(m+=r);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(i=t.join(""))&&""!==i||(n=!1),p+(n?"-":"")+i+_}},BC(FC={exports:{}}),FC.exports);function zC(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const VC={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},HC=/%\)?$/,jC=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,UC=/^\(oct\)/i,$C=/^\(dec\)/i,GC=/^\(hex\)/i,KC=/^\(bin\)/i,QC=/^\(rom\)/i,YC=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,XC=/#|0/g;function ZC(e,t,n,i){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",i||".")}function JC(e,t,n){const i=zC(e);return n?i:new RegExp(i||"",t)}function e_(e,t,n,i){let o,r,s,a,l,c,d,h,u,g=e.pattern;var p,m;i&&(e.abbreviate=!0),p=t,(m=n)&&(m=zC(m)),p&&(p=zC(p)),u=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),s=g.match(u),s=s?s[0]:"",a=s?g.substr(0,g.indexOf(s)):g,l=s?g.substring(g.indexOf(s)+s.length):"",s||(s=g?"#":"##########"),t&&t===n&&(o=s.split(n),r=o.pop(),s=o.join("")+n+r,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(s=s.replace(JC(c,"g"),t)),d=n,n=".",d&&(s=s.replace(JC(d,"g"),n)),h=s.match(/#/g),h=h?h.length:0;const f=g.split(d);let b;f[1]&&(b=f[1].match(XC)),e.prefix=a||"",e.postfix=l||"",e.pattern=g,e.maxPrecision=b?b.length:2,e.percentage=HC.test(g),e.numericPattern=s||"",e.numericRegex=new RegExp("".concat(JC(t,null,!0),"|").concat(JC(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=d,e.t=t,e.d=n,e.temp=h}class t_{constructor(e,t,n,i,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=i||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return VC;const n={};return e.qNumericalAbbreviation.split(t).forEach(e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])}),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new t_(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,i){return this.prepare(t,n,i),this.formatValue(e)}prepare(e,t,n){let i;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},i=this._prepared,e=e.split(this.patternSeparator),i.positive.pattern=e[0],i.negative.pattern=e[1],i.zero.pattern=e[2],YC.test(e[0])&&(i.positive.isFunctional=!0),e[1]?YC.test(e[1])&&(i.negative.isFunctional=!0):i.negative=!1,e[2]?YC.test(e[2])&&(i.zero.isFunctional=!0):i.zero=!1;const o="U"===this.type;i.positive.isFunctional||e_(i.positive,t,n,o),i.negative&&!i.negative.isFunctional&&e_(i.negative,t,n,o),i.zero&&!i.zero.isFunctional&&e_(i.zero,t,n,o)}formatValue(e){let t,n,i,o,r,s,a,l,c,d=this._prepared,h="",u="",g=e;if(isNaN(e))return"".concat(g);if(e=+e,!1===d.pattern)return e.toString();if(0===e&&d.zero)return d=d.zero,d.pattern;if(e<0&&d.negative?(d=d.negative,e=-e):d=d.positive,r=d.d,s=d.t,d.isFunctional)e=function(e,t,n){let i;return jC.test(t)?e=ZC(e,Number(/\d{2}/.exec(t)[0]),t,n):UC.test(t)?e=ZC(e,8,t,n):$C.test(t)?e=ZC(e,10,t,n):GC.test(t)?e=ZC(e,16,t,n):KC.test(t)?e=ZC(e,2,t,n):QC.test(t)&&(i="",e<0&&(i="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,i="",o=Number(String(e).slice(-3)),r=(e-o)/1e3,s=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),a=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(n=0;n<s.length;n++)if(s[n]<=o){i+=a[n],o-=s[n];break}for(n=0;n<r;n++)i="M".concat(i);return t[1]!==t[1].toUpperCase()&&(i=i.toLowerCase()),i}(e,t),e=i+e):e=t+i+e.toExponential(0)),e}(e,d.pattern,r);else{if(d.percentage&&(e*=100),d.abbreviate){const t=Object.keys(this.abbreviations).map(e=>parseInt(e,10)).sort((e,t)=>e-t);let i,o,r=t[0];for(a=0,n=Number(Number(e).toExponential().split("e")[1]);r<=n&&a<t.length;)a++,r=t[a];a>0&&(i=t[a-1]),i&&n>0&&i>0?o=i:(n<0&&i<0||!i)&&(r<0&&r-n<=d.maxPrecision?o=r:i<=n&&!(r>0&&-n<=d.maxPrecision)&&(o=i)),o&&(h=this.abbreviations[o],e/=10**o)}if(i=Math.abs(e),t=d.temp,l=d.numericPattern,c=l.split(r)[1],"I"===this.type&&(e=Math.round(e)),o=e,c||"#"!==l.slice(-1)[0])if(i>=1e15||i>0&&i<=1e-14)e=i?i.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=l.split(r)[0];if(n+=r,e=WC(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let o=("I"===this.type?0:i%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(a=o.length;a<n;a++)o+="0";o&&(e+=r+o)}else 0===t&&(o=0)}else if(i>=10**t||i<1||i<1e-4)0===e?e="0":i<1e-4||i>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),u=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",r));else{for(l+=r,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(i)/Math.log(10)))),a=0;a<t;a++)l+="#";e=WC(l,e)}e=e.replace(d.numericRegex,e=>e===s?d.groupTemp:e===r?d.decTemp:""),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return d.prefix+e+u+h+d.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function n_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:i=!1,toKey:o=e=>e}=t;let r,s,a=Object.create(null),l=Object.create(null),c=0,d=0;return r=i?function(){return s=o(...arguments),r.has(s)?r.get(s):r.set(s,e(...arguments))}:t=>(s=o(t),r.has(s)?r.get(s):r.set(s,e(t))),r.set=(e,t)=>(c>=n&&(delete a[l[d]],delete l[d],c--,d++),a[e]=t,l[c]=e,c++,t),r.get=e=>a[e],r.has=e=>e in a,r.clear=()=>{a=Object.create(null),l=Object.create(null),c=0,d=0},r.size=()=>c,r}function i_(e,t,n,i,o){const r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new t_(...t)}(o,e,t,n,i),s=n_(r.formatValue.bind(r),{toKey:e=>isNaN(e)?e:+e});function a(e){return s(e)}return a.format=function(e,t,n,i){return s.clear(),r.format(t,e,n,i)},a.pattern=function(e){return e&&(s.clear(),r.pattern=e,r.prepare()),r.pattern},a}const o_="D",r_="T",s_="TS",a_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],l_=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],c_=["January","February","March","April","May","June","July","August","September","October","November","December"],d_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function h_(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function u_(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class g_{constructor(e,t,n){const i=e||{};i.qCalendarStrings||(i.qCalendarStrings={qLongDayNames:a_,qDayNames:l_,qLongMonthNames:c_,qMonthNames:d_}),this.localeInfo=i,this.locale_days=i.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=i.qCalendarStrings.qDayNames.slice(),this.locale_months=i.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=i.qCalendarStrings.qMonthNames.slice(),t||(t={[r_]:i.qTimeFmt||"hh:mm:ss",[o_]:i.qDateFmt||"YYYY-MM-DD",[s_]:i.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new g_(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let i;e instanceof Date?i=function(e,t){let n=e.getUTCHours(),i=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),i<0&&(i=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:i,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),i=function(e,t){let n,i=function(e){const t=e,n=24*u_(t),i=60*u_(n),o=60*u_(i),r=1e3*u_(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(i),s:Math.floor(o),f:Math.round(r)}}(e),o=i.d,r=i.h,s=i.m,a=i.s,l=i.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(r+=24*o),/h+/gi.test(t)||(s+=60*r),/m+/gi.test(t)||(a+=60*s),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let d="";return n&&(d=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:o,h:r,m:s,s:a,f:l,t:d}}(e,t));const o=(r=this,s=i,{"Y+|y+":{Y:"".concat(Number("".concat(s.year).slice(-2))),YY:h_("".concat(s.year).slice(-2),2),YYY:h_("".concat(s.year).slice(-3),3),def:e=>h_("".concat(s.year),e.length)},"M+":{M:s.month+1,MM:h_("".concat(s.month+1),2),MMM:r.locale_months_abbr[s.month],def:r.locale_months[s.month]},"W+|w+":{W:s.day,WW:h_("".concat(s.day),2),WWW:r.locale_days_abbr[s.day],def:r.locale_days[s.day]},"D+|d+":{D:s.date,def:e=>h_("".concat(s.date),e.length)},"h+|H+":{h:s.h,def:e=>h_("".concat(s.h),e.length)},"m+":{m:s.m,def:e=>h_("".concat(s.m),e.length)},"s+|S+":{s:s.s,def:e=>h_("".concat(s.s),e.length)},"f+|F+":{def(e){let t="".concat(s.f),n=e.length-t.length;if(n>0)for(let e=0;e<n;e++)t+="0";else n<0&&(t=t.slice(0,e.length));return t}},"t{1,2}|T{1,2}":{def(e){let t=s.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var r,s;const a=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&a.push(e);const l=new RegExp(a.join("|"),"g");return t.replace(l,e=>{let t,n,i;for(n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in o[n])if(t===e||t.toLowerCase()===e){i=o[n][t],void 0===i&&(i=o[n][t.toLowerCase()]);break}return void 0===i&&(i=o[n].def),"function"==typeof i&&(i=i(e)),i})}}function p_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new g_(...t)}function m_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=p_(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),i=n_(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function o(e){return"IV"!==t?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function r(e){return e=o(e),i(e)}return r.format=function(e,t){return i.clear(),t=o(t),n.format(t,e)},r.locale=function(o){return n=p_(o,e,t),i=n_(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},r.qtype=function(e){return void 0!==e&&(t=e,i.clear()),t},r}function f_(){let e,{meta:t,id:n,key:i,localeInfo:o,fieldExtractor:r,value:s,type:a,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=s||("dimension"===a?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),d="dimension"===a?"first":"avg",h=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return m_(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",i=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",r="U",s=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,i=e.qNumFormat.qThou||i,o=e.qNumFormat.qDec||o,r=e.qNumFormat.qType||r,s=s&&-1===["M"].indexOf(e.qNumFormat.qType)):s=!0,(s||"U"===r)&&(n="#".concat(o,"##"),r="U"),i_(n,i,o,r,t)}(t,o),u="dimension"===a?"first":(e,t)=>h(t),g={id:()=>n,key:()=>i,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>a,origin:()=>l,items:()=>(e||(e=r(g)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:d,reduceLabel:u,formatter:()=>h,tags:()=>t.qTags};return g}function b_(e,t,n,i,o){return(t[e]||[]).map((t,r)=>{const s="".concat(i?"".concat(i,"/"):"").concat(e,"/").concat(r),a={instance:f_(nC({id:"".concat(n?"".concat(n,"/"):"").concat(s),key:s,meta:t},o))};return a.attrDims=b_("qAttrDimInfo",t,n,s,nC({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),a.attrExps=b_("qAttrExprInfo",t,n,s,nC({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),a.measures=b_("qMeasureInfo",t,n,s,nC({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),a})}function v_(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},o=t;if(!o)throw new Error('Missing "data" input');if(!o.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const r=v_.util,s={cache:i,cube:o,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},a={key:()=>e,raw:()=>o,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const i=n.allFields;if("function"==typeof e){for(let t=0;t<i.length;t++)if(e(i[t]))return i[t];return!1}if("string"==typeof e){for(let t=0;t<i.length;t++)if(i[t].key()===e||i[t].title()===e)return i[t]}else if(e&&-1!==i.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,s),fields:()=>i.fields.slice(),extract:e=>s.extractor(e,a,i,r),hierarchy:e=>s.hierarchy(e,a,i,r),_cache:()=>i};"K"===o.qMode||"T"===o.qMode||!o.qMode&&o.qNodesOnDim?(s.extractor=PC,s.hierarchy=OC,s.pages="K"===o.qMode?o.qStackedDataPages:o.qTreeDataPages):"S"===o.qMode?(s.extractor=sC,s.pages=o.qDataPages,s.hierarchy=OC):s.extractor=()=>[],s.fieldExtractor=e=>s.extractor({field:e},a,i,r);const l="S"===o.qMode?e=>e.qElemNumber:void 0,c="S"===o.qMode?e=>e.qNum:void 0;i.wrappedFields.push(...b_("qDimensionInfo",o,e,"",nC({},s,{value:l,type:"dimension"}))),i.wrappedFields.push(...b_("qMeasureInfo",o,e,"",nC({},s,{value:c,type:"measure"}))),i.fields=i.wrappedFields.map(e=>e.instance);const d=e=>{e.forEach(e=>{i.allFields.push(e.instance),d(e.measures),d(e.attrDims),d(e.attrExps)})};return d(i.wrappedFields),(n.virtualFields||[]).forEach(t=>{const n=a.field(t.from),o=f_(Gv({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>s.extractor({field:e},a,i,r),key:t.key,type:n.type(),localeInfo:s.localeInfo,value:n.value},t.override||{}));i.virtualFields.push(o)}),i.allFields.push(...i.virtualFields),a}const C_=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],__=/\/qDimensionInfo(?:\/(\d+))?/,y_=/\/qMeasureInfo\/(\d+)/,A_=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,w_=/\/qAttrExprInfo\/(\d+)/,S_=/\/?qHyperCube/,k_=/\/?qTreeData/,x_=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),E_=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function L_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i=t.byCells,o=t.primarySource,r=[],s={},a=e.isActive();let l=!1;return e.brushes().forEach(e=>{const t=function(e,t){let n=e,i=-1,o=-1,r="",s=e=>e;S_.test(e)?(r="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),s=x_):k_.test(e)&&(r="".concat(n.substr(0,n.indexOf("qTreeData")+9)),s=E_);let a=!0;if(__.test(e)&&(i=+__.exec(e)[1]),y_.test(e)&&(o=+y_.exec(e)[1]),A_.test(e)){o=-1,i=0;const e=+A_.exec(n)[2];isNaN(e)||(i=e,n=n.replace(/\/\d+$/,"")),a=!1}if(w_.test(e)){const e=o;if(t){o=0;const s=AC(r,t);o+=(s.qMeasureInfo||[]).length,i>-1?(o=s.qDimensionInfo.slice(0,i).reduce((e,t)=>e+t.qAttrExprInfo.length,o),i=-1):(o=s.qDimensionInfo.reduce((e,t)=>e+t.qAttrExprInfo.length,o),o=s.qMeasureInfo.slice(0,e).reduce((e,t)=>e+t.qAttrExprInfo.length,o)),o+=+w_.exec(n)[1]}else i>-1?(i=-1,o=+w_.exec(n)[1]):o+=+w_.exec(n)[1]+1}return C_.forEach(e=>{let[t,i]=e;n=n.replace(t,i)}),a&&(n=s(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:o,dimensionIdx:i,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,s.multiRangeSelectTreeDataValues||(s.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach(e=>s.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,s.rangeSelectHyperCubeValues||(s.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach(e=>s.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,s.selectHyperCubeContinuousRange||(s.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach(e=>s.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}})))}if("value"===e.type&&t.dimensionIdx>-1)if(i)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const i=n.qHyperCube,r=i.qNoOfLeftDims,a=i.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(s.selectPivotCells||(s.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));(0===r||a>=r)&&r>-1?n.forEach(e=>{s.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:a-r})}):n.forEach(e=>{s.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})}),l=!!s.selectPivotCells.cells.length}}else s.selectHyperCubeCells||(s.selectHyperCubeCells={path:t.path,cols:[]}),s.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||s.selectHyperCubeCells.values)||(s.selectHyperCubeCells.values=e.brush.values().map(e=>+e).filter(e=>!isNaN(e)),l=!!s.selectHyperCubeCells.values.length);else{const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));l=!!n.length,r.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}}),!l&&a?[{method:"resetMadeSelections",params:[]}]:(s.rangeSelectHyperCubeValues&&r.push({method:"rangeSelectHyperCubeValues",params:[s.rangeSelectHyperCubeValues.path,s.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),s.selectHyperCubeContinuousRange&&r.push({method:"selectHyperCubeContinuousRange",params:[s.selectHyperCubeContinuousRange.path,s.selectHyperCubeContinuousRange.ranges]}),s.selectHyperCubeCells&&r.push({method:"selectHyperCubeCells",params:[s.selectHyperCubeCells.path,s.selectHyperCubeCells.values,s.selectHyperCubeCells.cols]}),s.selectPivotCells&&r.push({method:"selectPivotCells",params:[s.selectPivotCells.path,s.selectPivotCells.cells]}),s.multiRangeSelectTreeDataValues&&r.push({method:"multiRangeSelectTreeDataValues",params:[s.multiRangeSelectTreeDataValues.path,s.multiRangeSelectTreeDataValues.ranges]}),r);var c}function D_(e){v_.util=e.data("matrix").util,e.data("q",v_),e.formatter("q-number",i_),e.formatter("q-time",m_)}D_.qBrushHelper=L_,D_.selections=L_;"#".concat("chart-modules-tooltip"),Number.MAX_VALUE,new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");const I_=/,(?![^(]*\))/,N_=/\s(?![^(]*\))/,M_=/^[0-9]+[a-zA-Z%]+?$/,T_=["none","inset","initial","inherit"],R_=e=>{if(!e)return;const t=e.split(N_).filter(e=>!T_.includes(e.toLowerCase())).at(-1),n=!t||(e=>"0"===e||M_.test(e))(t)||T_.includes(t.toLowerCase())?void 0:t;return n},q_=e=>e?e.split(I_).map(e=>e.trim()):[];function O_(e,t,n,i){return n&&i?n.getStyle(`object.${i}`,e,t):n?n.getStyle("",e,t):void 0}function P_(e,t,n,i,o){return e&&i?"none"!==e.color?i.getColorPickerColor(e):void 0:O_(t,n,i,o)}const B_={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},F_={"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 W_(e,t,n){const i=e?.bgImage;if(i){let o="";if("media"===i.mode||"media"===e.useImage){let e;const r=i?.mediaUrl,{qUrl:s}=r?.qStaticContentUrl||{};o=s?decodeURIComponent(s):void 0,o=function(e,t){return t?function(e){let t,n,i,o;return e?.session?.config?(t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://",i+n.host):""}(e)+t:void 0}(t,o),n&&(e=Object.entries(n).map(([e,t])=>`&${e}=${encodeURIComponent(t)}`).join("&"),o=`${o}?${e}`)}"expression"===i.mode&&(o=i.expressionUrl?decodeURIComponent(i.expressionUrl):void 0);const r=function(e){let t="center center";return e?.bgImage?.position&&(t=F_[e.bgImage.position]),t}(e),s=function(e){let t=B_.originalSize;const n=e?.bgImage?.sizing;return n&&(t=B_[n]),t}(e);return o?{url:o,pos:r,size:s}:void 0}}function z_(e,t,n){const i=e?.bgColor;return i&&t&&(i.useExpression||i.useColorExpression)?t.validateColor(i.colorExpression):P_(i?.color,"","backgroundColor",t,n)}function V_(e,t,n){const i=O_("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&T_.includes(e.toLowerCase()))return e.toLowerCase();const i=q_(e);if(1!==i.length)return e;let o=n;if(!o){const n=q_(t);if(1!==n.length)return e;o=R_(n[0])}if(!o)return e;const r=R_(i[0]);return r?e.replace(r,o):`${e} ${o}`})(e?.shadow?.boxShadow||i,i,P_(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,n))}function H_(e,t,n,i){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||n.getStyle(`object.${i}`,`title.${t}`,"fontFamily"),fontSize:o.fontSize||n.getStyle(`object.${i}`,`title.${t}`,"fontSize"),color:o.color&&"none"!==o.color.color?n.getColorPickerColor(o.color):n.getStyle(`object.${i}`,`title.${t}`,"color"),backgroundColor:o.backgroundColor||n.getStyle(`object.${i}`,`title.${t}`,"backgroundColor"),fontWeight:r.includes("bold")?"bold":"normal",fontStyle:r.includes("italic")?"italic":"normal",textDecoration:r.includes("underline")?"underline":"initial"}}const j_={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},U_=["theme","selections"];function $_({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:r}){return function({app:e,themeApi:t,theme:n,queryParams:i,components:o=[],checkboxes:r=!1}){const s=function(e=[]){const t={};return e.forEach(e=>{const n=e?.key;U_.includes(n)&&(t[n]=e)}),t}(o),a=(e,n)=>t.getStyle("object.listBox",e,n),l=e=>e?.index>0||e?.color?t.getColorPickerColor(e):void 0,c=function({getColorPickerColor:e,theme:t,getListboxStyle:n,overrides:i,checkboxes:o}){const r=i.theme?.content?.fontColor,s=e(r)||n("content","color")||t.palette?.text.primary,a=!o&&(i.theme?.content?.useContrastColor??!0),l=i.selections?.colors||{},c=i=>{const o="selected"===i?"main":i,r=`${i}Contrast`,c=e(l[i])||n("",`dataColors.${i}`)||"possible"===i&&n("","backgroundColor")||t.palette?.selected?.[o]||j_[i],d=a?Rb(c,s):s||t.palette?.selected[`${r}Text}`];return{[i]:c,[r]:d}};return{...c("selected"),...c("alternative"),...c("excluded"),...c("selectedExcluded"),...c("possible")}}({getColorPickerColor:l,theme:n,getListboxStyle:a,overrides:s,checkboxes:r}),d=s.theme||{},h=l(d.header?.fontColor)||a("title.main","color"),u=function({themeApi:e,themeOverrides:t}){let n;const i=t?.background;return i?(n=i?.useExpression?z_({bgColor:i},e,"listBox"):e.getColorPickerColor(i?.color),n):n}({themeApi:t,themeOverrides:d}),g=d.background?.image?W_({bgImage:d.background.image},e,i):void 0,p=u||a("","backgroundColor")||n.palette.background.default,m=function(e,t){const n=Mb(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(p,a),f=function(e){return Rb("#fff",e("content","color"))}(a),b=d.header?.fontStyle||{},v=d.content?.fontStyle||{},C=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:p,backgroundImage:g?.url&&!g?.url.startsWith("url(")?`url('${g.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:g?.size,backgroundPosition:g?.pos},header:{color:h,fontSize:d.header?.fontSize||a("title.main","fontSize"),fontFamily:d.header?.fontFamily||a("title.main","fontFamily"),fontWeight:C(b.bold,"bold","normal")||a("title.main","fontWeight")||"bold",textDecoration:b.underline?"underline":"initial",fontStyle:C(b.italic,"italic","normal")||a("title.main","fontStyle")||"initial"},content:{backgroundColor:r?void 0:c.possible,color:c.possibleContrast||a("content","color"),fontSize:d.content?.fontSize||a("content","fontSize"),fontFamily:d.content?.fontFamily||a("content","fontFamily"),fontWeight:C(v.bold,"bold","normal")||a("content","fontWeight")||"normal",textDecoration:v.underline?"underline":"initial",fontStyle:C(v.italic,"italic","normal")||a("content","fontStyle")||"initial"},search:{color:f,borderColor:n.palette.divider,highlightBorderColor:n.palette.custom.focusBorder,backgroundColor:m,backdropFilter:"blur(8px)"},selections:c}}({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:r})}function G_({alignTo:e,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:i={vertical:"top",horizontal:"center"},show:o,close:r,app:s,fieldName:a,stateName:l="$",autoFocus:c,components:d,checkboxes:h,selectDisabled:u=()=>!1,sortCriteria:g=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:p="ltr"}){const m=Boolean(a?.qLibraryId),f=o&&Boolean(e.current),[b,v]=(0,t.useState)(0),C=Gn(),_=(0,t.useRef)(),[y]=fd({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:g,qFieldDefs:m?void 0:[a]},qLibraryId:m?a.qLibraryId:void 0}},s,a,l),A=(0,t.useCallback)(()=>{y.lock("/qListObjectDef")},[y]),w=(0,t.useCallback)(()=>{y.unlock("/qListObjectDef")},[y]),{translator:S,themeApi:k,keyboardNavigation:x,hostConfig:E}=(0,t.useContext)(ld),L=(0,t.useRef)(),D=(0,t.useRef)(),[I]=mb(s,y,D),[N]=yd(y),[M]=(0,t.useState)(()=>fb({selectDisabled:u})),T=fg({containerRef:D,enabled:x}),{checkboxes:R=h}=N||{},q=$_({themeApi:k,theme:C,hostConfig:E,components:d,checkboxes:R});if((0,t.useEffect)(()=>{I&&f&&(I.isModal(y)||I.goModal("/qListObjectDef"))},[I,f]),!(y&&N&&S&&q))return null;const O=!0===N.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;I.noModal(n),r()},B=of({layout:N,model:y,translator:S,selectionState:M,selections:I}),F=vb(N);return t.createElement(xh,{className:"listbox-container",open:f,onClose:P,anchorEl:e.current,anchorOrigin:n,transformOrigin:i,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?P():void 0,direction:p},t.createElement(yr,{container:!0,direction:"column",gap:0,ref:D},t.createElement(yr,{item:!0,container:!0,style:{direction:p,padding:C.spacing(1)}},t.createElement(yr,{item:!0},O?t.createElement(cr,{onClick:w,disabled:!O,size:"large"},t.createElement(Sd,{title:S.get("Listbox.Unlock")})):t.createElement(cr,{onClick:A,disabled:!F,size:"large"},t.createElement(xd,{title:S.get("Listbox.Lock")}))),t.createElement(yr,{item:!0,xs:!0}),t.createElement(yr,{item:!0},t.createElement(Xf,{layout:N,more:{enabled:!O,actions:B,alignTo:L,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:I,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}}))),t.createElement(yr,{item:!0,xs:!0},t.createElement("div",{ref:L}),t.createElement(yr,{item:!0},t.createElement(hb,{ref:_,popoverOpen:f,styles:q,visible:!0,model:y,listCount:b,selections:I,selectionState:M,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:T.focusSelection},autoFocus:c??!0,direction:p})),t.createElement(Zm,{model:y,app:s,layout:N,selections:I,selectionState:M,direction:p,onSetListCount:e=>v(e),onCtrlF:()=>{_.current.focus()},styles:q,keyboard:T}))))}function K_({field:e,api:n,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=()=>{}}){const{translator:a}=(0,t.useContext)(ld),l=r||(0,t.useRef)(),c=Gn(),[d,h]=(0,t.useState)(!1),u=()=>{h(!1),s()},g=e.selections[i];void 0===g.qTotal&&(g.qTotal=0);const p=g.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},m=(p.qSelected+p.qLocked)/g.qTotal,f=p.qAlternative/g.qTotal,b=(p.qExcluded+p.qLockedExcluded+p.qSelectedExcluded)/g.qTotal,v=p.qSelected+p.qSelectedExcluded+p.qLocked+p.qLockedExcluded,C=0===v&&0===g.qTotal;let _="";g.qTotal===v&&g.qTotal>1?_=a.get("CurrentSelections.All"):v>1&&g.qTotal?_=a.get("CurrentSelections.Of",[v,g.qTotal]):g.qSelectedFieldSelectionInfo&&(_=g.qSelectedFieldSelectionInfo.map(e=>e.qName).join(", ")),"$"!==e.states[i]&&(_=`${e.states[i]}: ${_}`);const y=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:b}];y.forEach((e,t)=>{e.offset=t?y[t-1].offset+y[t-1].ratio:0});let A=null,w=null,S=null,k=null;return r||(A=t.createElement(yr,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},t.createElement(Lr,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.label),t.createElement(Lr,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},_)),g.qLocked?w=t.createElement(yr,{item:!0},t.createElement(cr,{size:"large"},t.createElement(Sd,null))):g.qOneAndOnlyOne||(w=t.createElement(yr,{item:!0},t.createElement(cr,{title:a.get("Selection.Clear"),onClick:t=>{t.stopPropagation(),n.clearField(g.qField,e.states[i])},size:"large"},t.createElement(as,null)))),S=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===C&&y.map(e=>t.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}}))),k=t.createElement(yr,{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)&&h(!d)})||null},A,w,S,d&&t.createElement(G_,{alignTo:l,show:d,close:u,app:n.model,fieldName:g.qField,stateName:e.states[i]}))),r?t.createElement(G_,{alignTo:l,show:!0,close:u,app:n.model,fieldName:g.qField,stateName:e.states[i]}):k}const Q_=e=>{const n=t.useRef({});return t.useEffect(()=>{n.current=e}),n.current};function Y_(e){return(0,ln.Ay)("MuiBadge",e)}const X_=(0,an.A)("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"]),Z_=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],J_=(0,sn.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ey=(0,sn.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,Vn.A)(n.anchorOrigin.vertical)}${(0,Vn.A)(n.anchorOrigin.horizontal)}${(0,Vn.A)(n.overlap)}`],"default"!==n.color&&t[`color${(0,Vn.A)(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{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}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter(t=>{var n,i;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(i=e.vars)?i:e).palette[t].contrastText}).map(t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${X_.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),ty=t.forwardRef(function(e,t){var n,i,o,r,s,a;const l=(0,rn.b)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:h,components:u={},componentsProps:g={},children:p,overlap:m="rectangular",color:f="default",invisible:b=!1,max:v=99,badgeContent:C,slots:_,slotProps:y,showZero:A=!1,variant:w="standard"}=l,S=(0,Zt.A)(l,Z_),{badgeContent:k,invisible:x,max:E,displayValue:L}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,r=Q_({badgeContent:t,max:i});let s=n;!1!==n||0!==t||o||(s=!0);const{badgeContent:a,max:l=i}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:v,invisible:b,badgeContent:C,showZero:A}),D=Q_({anchorOrigin:c,color:f,overlap:m,variant:w,badgeContent:C}),I=x||null==k&&"dot"!==w,{color:N=f,overlap:M=m,anchorOrigin:T=c,variant:R=w}=I?D:l,q="dot"!==R?L:void 0,O=(0,Jt.A)({},l,{badgeContent:k,invisible:I,max:E,displayValue:q,showZero:A,anchorOrigin:T,color:N,overlap:M,variant:R}),P=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:s={}}=e,a={root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${(0,Vn.A)(n.vertical)}${(0,Vn.A)(n.horizontal)}`,`anchorOrigin${(0,Vn.A)(n.vertical)}${(0,Vn.A)(n.horizontal)}${(0,Vn.A)(o)}`,`overlap${(0,Vn.A)(o)}`,"default"!==t&&`color${(0,Vn.A)(t)}`]};return(0,tn.A)(a,Y_,s)})(O),B=null!=(n=null!=(i=null==_?void 0:_.root)?i:u.Root)?n:J_,F=null!=(o=null!=(r=null==_?void 0:_.badge)?r:u.Badge)?o:ey,W=null!=(s=null==y?void 0:y.root)?s:g.root,z=null!=(a=null==y?void 0:y.badge)?a:g.badge,V=$s({elementType:B,externalSlotProps:W,externalForwardedProps:S,additionalProps:{ref:t,as:h},ownerState:O,className:(0,en.A)(null==W?void 0:W.className,P.root,d)}),H=$s({elementType:F,externalSlotProps:z,ownerState:O,className:(0,en.A)(P.badge,null==z?void 0:z.className)});return(0,dn.jsxs)(B,(0,Jt.A)({},V,{children:[p,(0,dn.jsx)(F,(0,Jt.A)({},H,{children:q}))]}))}),ny=ty,iy=e=>ss((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)),oy="MultiState-item",ry=(0,sn.Ay)(yr)(({theme:e})=>({[`&.${oy}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}}));function sy({field:e,api:n,moreAlignTo:i=null,onClose:o=()=>{}}){const[r,s]=(0,t.useState)(!!i),[a,l]=(0,t.useState)(-1),[c,d]=(0,t.useState)(i?i.current:null),h=i||(0,t.useRef)(),{translator:u}=(0,t.useContext)(ld),g=u.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=t.createElement(t.Fragment,null,t.createElement(yr,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(ny,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},t.createElement(Lr,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.label))),t.createElement(yr,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(yr,{item:!0},t.createElement(cr,{size:"large"},t.createElement(iy,null)))));const f=t.createElement(gs,{dense:!0},t.createElement(Is,{title:g,onClick:()=>{e.states.forEach(t=>n.clearField(e.name,t))}},t.createElement(wl,{variant:"contained",fullWidth:!0},g)),e.states.map((i,o)=>t.createElement(Is,{key:o,title:e.label,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},t.createElement(Ri,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(K_,{field:e,api:n,stateIx:o,skipHandleShowListBoxPopover:!0}))))),b=t.createElement(xh,{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),v=i?b:t.createElement(ry,{container:!0,gap:0,className:oy,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),h.current=e.currentTarget,s(!r))}},m,r&&b,a>-1&&t.createElement(G_,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return i&&a>-1?t.createElement(G_,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):v}const ay="More",ly={item:`${ay}-item`,badge:`${ay}-badge`},cy=(0,sn.Ay)(yr)(({theme:e})=>({[`&.${ly.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${ly.badge}`]:{padding:e.spacing(0,1)}}));function dy({items:e=[],api:n}){const i=Gn(),[o,r]=(0,t.useState)(!1),[s,a]=(0,t.useState)(-1),[l,c]=(0,t.useState)(null),d=(0,t.useRef)(),h=()=>{a(-1)};let u=null;return s>-1&&(u=e[s].states.length>1?t.createElement(sy,{field:e[s],api:n,moreAlignTo:d,onClose:h}):t.createElement(K_,{field:e[s],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:h})),t.createElement(cy,{container:!0,gap:0,className:ly.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},t.createElement(yr,{item:!0},t.createElement(Ri,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(Lr,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),t.createElement(yr,{item:!0},t.createElement(cr,{size:"large"},t.createElement(iy,null))),o&&t.createElement(xh,{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"}}},t.createElement(gs,{dense:!0},e.map((e,i)=>t.createElement(Is,{key:i,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,i)},t.createElement(Ri,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(sy,{field:e,api:n}):t.createElement(K_,{field:e,api:n})))))),u)}function hy({api:e,app:n}){const i=Gn(),[o]=vd(n),[r]=yd(o),[s,a]=(0,t.useState)({items:[],more:[]}),{modalObjectStore:l}=(0,t.useContext)(ld).selectionStore,[c,d]=wd(),[h,u]=(0,t.useState)(0);return(0,t.useEffect)(()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-72,n=Math.floor(t/120);u(n)},[d]),(0,t.useEffect)(()=>{if(!(n&&o&&r&&h))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach(e=>{const i=e.qField;let o=t[i];void 0===o&&(o={name:i,label:e.qDimensionReferences?.find(e=>e.qLabel)?.qLabel||e.qReadableName||i,states:[],selections:[]},t[i]=o),o.states.push(n),o.selections.push(e)})}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach(e=>n(e.qSelectionObject,e.stateName)),Object.keys(t).map(e=>t[e]).filter(e=>!e.selections.some(e=>e.qIsHidden))}(r);a(t=>{const i=e;if((()=>{const{model:e}=l.get(n.id)||{};return"njsListbox"===e?.genericType})()&&i.length+1===t.items.length){const e=t.items.filter(e=>!1===i.some(t=>e.name===t.name))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);i.splice(o,0,e)}let o=[];return h<i.length&&(o=i.splice(h-i.length)),{items:i,more:o}})},[n,o,r,e.isInModal(),h]),t.createElement(yr,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map(n=>t.createElement(yr,{item:!0,key:`${n.states.join("::")}::${n.name}`,style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},n.states.length>1?t.createElement(sy,{field:n,api:e}):t.createElement(K_,{field:n,api:e}))),s.more.length>0&&t.createElement(yr,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},t.createElement(dy,{items:s.more,api:e})))}const uy=e=>ss((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)),gy=e=>ss((e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));function py({api:e,app:n}){const{translator:i}=(0,t.useContext)(ld),[o]=function(e){const[n]=vd(e),[i]=yd(n),[o]=Ad(e),[r,s]=(0,t.useState)(null);return(0,t.useEffect)(()=>{o&&n&&i&&((e,t,n)=>{const i=[...n.qStateNames||[]].map(e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})),o=(t&&t.alternateStates?t.alternateStates.map(e=>e.stateName):[]).join("::"),r=(n.qStateNames||[]).map(e=>e).join("::");o!==r&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(i)}],!0)})(n,i,o)},[o,n,i]),(0,t.useEffect)(()=>{if(!i)return;let e=!1,t=!1,n=!1;[i,...i.alternateStates||[]].forEach(i=>{e=e||i.qSelectionObject&&i.qSelectionObject.qBackCount>0,t=t||i.qSelectionObject&&i.qSelectionObject.qForwardCount>0,n=n||(i.qSelectionObject&&i.qSelectionObject.qSelections||[]).filter(e=>!0!==e.qLocked).length>0}),s({canGoBack:e,canGoForward:t,canClear:n})},[i]),[r,n,i]}(n);return t.createElement(yr,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(yr,{item:!0},t.createElement(cr,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},t.createElement(uy,null))),t.createElement(yr,{item:!0},t.createElement(cr,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},t.createElement(gy,null))),t.createElement(yr,{item:!0},t.createElement(cr,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},t.createElement(_f,null))))}const my=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function fy([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function by(){return my.map(fy).join("")}function vy({app:e}){const n=Gn(),[i]=ub(e);return i?t.createElement(yr,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},t.createElement(yr,{item:!0,style:{borderRight:`1px solid ${n.palette.divider}`}},t.createElement(py,{api:i,app:e})),t.createElement(yr,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},t.createElement(hy,{api:i,app:e}))):null}let Cy;Cy="undefined"!=typeof window?window:"undefined"!=typeof self?self:s.g;let _y=null,yy=null;const Ay=Cy.clearTimeout,wy=Cy.setTimeout,Sy=Cy.cancelAnimationFrame||Cy.mozCancelAnimationFrame||Cy.webkitCancelAnimationFrame,ky=Cy.requestAnimationFrame||Cy.mozRequestAnimationFrame||Cy.webkitRequestAnimationFrame;null==Sy||null==ky?(_y=Ay,yy=function(e){return wy(e,20)}):(_y=function([e,t]){Sy(e),Ay(t)},yy=function(e){const t=ky(function(){Ay(n),e()}),n=wy(function(){Sy(t),e()},20);return[t,n]});class xy extends t.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:n}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},o=parseFloat(i.paddingLeft||"0"),r=parseFloat(i.paddingRight||"0"),s=parseFloat(i.paddingTop||"0"),a=parseFloat(i.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-s-a,d=l.width-o-r,h=this._parentNode.offsetHeight-s-a,u=this._parentNode.offsetWidth-o-r;(e||this.state.height===h&&this.state.scaledHeight===c)&&(t||this.state.width===u&&this.state.scaledWidth===d)||(this.setState({height:h,width:u,scaledHeight:c,scaledWidth:d}),"function"==typeof n&&n({height:h,scaledHeight:c,scaledWidth:d,width:u}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,i,o,r,s,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,o=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;s(this),this.__resizeRAF__&&_y(this.__resizeRAF__),this.__resizeRAF__=yy(function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";i="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){h=c[n],l="-"+h.toLowerCase()+"-",i=d[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){const l=r.ownerDocument,c=Cy.getComputedStyle(r);c&&"static"===c.position&&(r.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const i=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=i:s.appendChild(n.createTextNode(i)),r.appendChild(s)}}(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 h=l.createElement("div");h.className="contract-trigger",r.__resizeTriggers__.appendChild(d),r.__resizeTriggers__.appendChild(h),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),i&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(r)},r.__resizeTriggers__.addEventListener(i,r.__resizeTriggers__.__animationListener__))}r.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:i,disableHeight:o=!1,disableWidth:r=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:a,onResize:l,style:c={},tagName:d="div",...h}=this.props,{height:u,scaledHeight:g,scaledWidth:p,width:m}=this.state,f={overflow:"visible"},b={};let v=!1;return o||(0===u&&(v=!0),f.height=0,b.height=u,b.scaledHeight=g),r||(0===m&&(v=!0),f.width=0,b.width=m,b.scaledWidth=p),s&&(v=!1),(0,t.createElement)(d,{ref:this._setRef,style:{...f,...c},...h},!v&&e(b))}}function Ey({keyboard:e,hovering:t,updateKeyScroll:n,currentScrollIndex:i,isModal:o,constraints:r,selections:s}){return{handleKeyDown:t=>{const{keyCode:n,shiftKey:i=!1}=t.nativeEvent,r=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=o();switch(n){case gg.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(i)Cg(a)||vg(a)||yg(t,e);else if(!(_g(a)||vg(a)||Cg(a)))break;r();break;case gg.ENTER:case gg.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),r();break;case gg.ESCAPE:yg(t,e),s.isActive()&&s.cancel()}},handleOnMouseEnter:()=>{t.current=!0},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current||(()=>{const e=r?.select||r?.active,t=o();return e||t})())return;const{keyCode:s,ctrlKey:a=!1,shiftKey:l=!1}=e;switch(s){case gg.ARROW_UP:n({up:1});break;case gg.ARROW_DOWN:n({down:1});break;case gg.PAGE_UP:n({up:i.stop-i.start});break;case gg.PAGE_DOWN:n({down:i.stop-i.start});break;case gg.HOME:n({scrollPosition:a&&l?"overflowStart":"start"});break;case gg.END:n({scrollPosition:a&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Ly=(0,sn.Ay)("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function Dy({text:e}){const{translator:n}=(0,t.useContext)(ld);return t.createElement(Ly,null,n.get(e))}const Iy={fontSize:"12px"},Ny=(0,sn.Ay)(ir)(({theme:e,isLoading:t})=>({position:"absolute",top:0,left:0,height:48,zIndex:2,background:e.palette.custom.disabledBackground,opacity:1,color:e.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:t?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:e.palette.custom.disabledContrastText},"& i":{padding:"7px"}})),My=(0,sn.Ay)(yr,{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}})),Ty=(0,sn.Ay)(Lr)(({styles:e})=>({...e.header,display:"block",alignItems:"center",paddingRight:"1px"}));function Ry({translator:e,toggleLock:n,keyboard:i,isLoading:o}){const r=e.get("SelectionToolbar.ClickToUnlock");return t.createElement(Ny,{title:r,tabIndex:i.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?t.createElement(Gl,{size:16,variant:"indeterminate",color:"primary"}):t.createElement(Sd,{disableRipple:!0,style:Iy}),!o&&t.createElement(Lr,{fontSize:"14px"},r))}const qy=e=>ss((e=>({...e,shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e)),Oy=e=>ss((e=>({...e,shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e)),Py=e=>ss((e=>({...e,shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e)),By=(0,sn.Ay)(wl)(()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})),Fy=function({iconData:e,translator:n,iconStyle:i,disabled:o,keyboard:r}){if(!e)return;const{icon:s,tooltip:a,onClick:l,onKeyDown:c}=e,d=s,h=n.get(a);return l?t.createElement(By,{variant:"outlined",onClick:l,tabIndex:r.innerTabStops?0:-1,title:h,size:"large",disableRipple:!0,disabled:o,onKeyDown:c,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},t.createElement(d,{style:i})):t.createElement(d,{title:h,size:"large",style:{...i,padding:"7px"}})};function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Wy.apply(null,arguments)}let zy=0;const Vy=function({layout:e,translator:n,styles:i,isRtl:o,showLock:r,showSearchIcon:s,constraints:a,onShowSearch:l,classes:c,containerRect:d,isPopover:h,showToolbar:u,showDetachedToolbarOnly:g,containerRef:p,model:m,selectionState:f,isDirectQuery:b,selections:v,keyboard:C,autoConfirm:_,app:y,disablePortal:A}){const[w,S]=(0,t.useState)(g),[k,x]=(0,t.useState)(e?.qListObject?.qDimensionInfo?.qLocked),[E,L]=(0,t.useState)(!1);(0,t.useEffect)(()=>{x(e?.qListObject?.qDimensionInfo?.qLocked)},[e?.qListObject?.qDimensionInfo?.qLocked]);const D=(0,t.useRef)(null),I=(({dimInfo:e,app:t,selections:n,isPopover:i,active:o,keyboard:r})=>{switch(e.qGrouping){case"H":return{icon:Oy,tooltip:"Listbox.DrillDown",onClick:void 0};case"C":{const s=t&&o,a=()=>{i||n.confirm(),t.getDimension(e.qLibraryId).then(e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")}).catch(()=>null)};return{icon:s?Py:qy,tooltip:"Listbox.Cyclic",onClick:s?a:void 0,onKeyDown:s?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case gg.SPACE:case gg.ENTER:a();break;case gg.TAB:{if(!r.enabled)return;let n;n=e.shiftKey?r.focusSelection():vg(t)||Cg(t),n||yg(e,r)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}})({dimInfo:e?.qListObject?.qDimensionInfo,app:y,selections:v,isPopover:h,active:!a?.active,keyboard:C}),N=r&&k,M=!r&&k,T=s||M||I,R=9-(T?7:0),q=o?9-(T?7:0):4,O=(s?28:0)+(M?28:0)+(I?28:0),P=function({isLocked:e,setLocked:t,settingLockedState:n,model:i,setSettingLockedState:o}){return()=>{const r=new Date;if(r-zy<500)return Promise.resolve();if(n)return()=>{};o(!0),zy=r;const s=e?i.unlock:i.lock;return t(!e),s.call(i,"/qListObjectDef").catch(()=>{t(e)}).finally(()=>{setTimeout(()=>{o(!1)},0)})}}({isLocked:k,setLocked:x,settingLockedState:E,setSettingLockedState:L,model:m}),B=of({layout:e,model:m,translator:n,selectionState:f,isDirectQuery:b,selections:v}),F=k||!r?void 0:[{key:"lock",type:void 0,label:n.get("SelectionToolbar.ClickToLock"),getSvgIconShape:kd,enabled:()=>!E&&!f.selectDisabled()&&vb(e),action:P}],W=a?.active?t.createElement(rb,{title:n.get("Listbox.Search"),size:"large",style:{...Iy,padding:"7px"}}):t.createElement(cr,{onClick:l,tabIndex:-1,title:n.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(rb,{style:Iy}));(0,t.useEffect)(()=>{if(!D.current||!d)return;const e=function({containerRect:e,titleRef:t,iconsWidth:n,paddingLeft:i,paddingRight:o}){const r=i+o;return!!(e.width<(t?.current?.clientWidth??0)+n+r+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:d,titleRef:D,iconsWidth:O,paddingLeft:R,paddingRight:q});S(g||e)},[O,R,q,D.current,g,Object.entries(d||{}).sort().join(",")]);const z=function({isDetached:e,showToolbar:t,containerRef:n,isLocked:i,listboxSelectionToolbarItems:o,extraItems:r,selections:s,keyboard:a,autoConfirm:l,disablePortal:c}){return{autoConfirm:l,isDetached:e,show:t&&!e,popover:{show:t&&e,anchorEl:n.current},extraItems:r,more:{enabled:!i,actions:o,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:c},selections:{show:t,api:s,onConfirm:()=>{a?.focus()},onCancel:()=>{a?.focus()}}}}({isDetached:!h&&w,showToolbar:u,containerRef:p,isPopover:h,isLocked:k,extraItems:F,listboxSelectionToolbarItems:B,selections:v,keyboard:C,autoConfirm:_,disablePortal:A}),V=t.createElement(Xf,Wy({isRtl:o,layout:e},z));if(g)return V;const H=M?t.createElement(Sd,{size:"large",style:{...Iy,padding:"7px"}}):void 0;return t.createElement(My,{item:!0,container:!0,styles:i,isRtl:o,marginY:1,paddingLeft:`${R}px`,paddingRight:`${q}px`,className:"header-container"},N&&t.createElement(Ry,{isLoading:E,translator:n,toggleLock:P,keyboard:C}),T&&t.createElement(yr,{item:!0,container:!0,alignItems:"center",width:O,className:"header-action-container"},H||s&&W,t.createElement(Fy,{iconData:I,iconStyle:Iy,disabled:v.isActive()&&h,translator:n,keyboard:C})),t.createElement(yr,{item:!0,xs:!0,minWidth:0,justifyContent:o?"flex-end":"flex-start",className:c.listBoxHeader},t.createElement(Ty,{variant:"h6",noWrap:!0,ref:D,title:e.title,styles:i},e.title)),t.createElement(yr,{item:!0,display:"flex"},V))},Hy="ListBoxInline",jy={listBoxHeader:`${Hy}-listBoxHeader`,screenReaderOnly:`${Hy}-screenReaderOnly`,listboxWrapper:`${Hy}-listboxWrapper`},Uy=(0,sn.Ay)(yr,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})(({theme:e,containerPadding:t,isGridMode:n,styles:i})=>({...i.background,[`& .${jy.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${jy.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${jy.listboxWrapper}`]:{padding:t},"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus ::-webkit-scrollbar-track":{boxShadow:n?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}));function $y({options:e,layout:n}){const{app:i,direction:o,frequencyMode:r,checkboxes:s,search:a=!0,focusSearch:l=!1,rangeSelect:c=!0,model:d,selections:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,showGray:f=!0,scrollState:b,renderedCallback:v,toolbar:C=!0,isPopover:_=!1,showLock:y=!1,components:A,selectDisabled:w=()=>!1,disablePortal:S=!0}=e,k=Gn(),{translator:x,keyboardNavigation:E,themeApi:L,queryParams:D,constraints:I}=(0,t.useContext)(ld),{checkboxes:N=s}=n||{},M=$_({app:i,themeApi:L,theme:k,queryParams:D,components:A,checkboxes:N}),T=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:i?.layout}),R=(0,t.useRef)(),q=(0,t.useRef)(),[O,P]=wd(),[B,F]=(0,t.useState)(!1),[W,z]=(0,t.useState)(!1),V=(0,t.useRef)(!1),[H,j]=(0,t.useState)({down:0,up:0,scrollPosition:""}),U=e=>j(t=>({...t,...e})),[$,G]=(0,t.useState)({start:0,stop:0}),[K]=ub(i),[Q]=(0,t.useState)(()=>fb({selectDisabled:w})),Y=fg({containerRef:R,enabled:E}),X=(0,t.useCallback)(()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:i,appSelections:K}),[i,K]),Z=n?.qListObject.qDimensionInfo.qError,J=Z&&I.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:ee,handleOnMouseEnter:te,handleOnMouseLeave:ne,globalKeyDown:ie}=(0,t.useMemo)(()=>Ey({keyboard:Y,hovering:V,updateKeyScroll:U,containerRef:R,currentScrollIndex:$,app:i,appSelections:K,constraints:I,isModal:X,selections:h}),[Y,V,U,R,$,i,K,I,X]);(0,t.useEffect)(()=>(document.addEventListener("keydown",ie),()=>{document.removeEventListener("keydown",ie)}),[ie]),(0,t.useEffect)(()=>{!0===a&&z(!0);const e=()=>{F(!0)},t=()=>{F(!1),"toggle"===a&&z(!1)};return _&&(h.isActive()||(h.on("activated",e),h.on("deactivated",t)),F(_)),C&&h&&(h.isModal()||(h.on("activated",e),h.on("deactivated",t)),F(_||h.isActive())),()=>{h&&h.removeListener&&(h.removeListener("activated",e),h.removeListener("deactivated",t))}},[C,h,_]);const{wildCardSearch:oe,searchEnabled:re,autoConfirm:se=!1,layoutOptions:ae={}}=n??{},le=n?.qListObject?.qDimensionInfo?.qLocked,ce=!1!==re&&"toggle"===a&&!le,de=n?.title?.length&&!1!==n?.showTitle,he=C&&!de&&!_,ue=C&&de||_,ge="rtl"===o;if(!(d&&n&&x&&M))return null;const pe=!0===a||"toggle"===a&&W&&!1!==re,me=ae.dense??!1,fe=()=>{z(!W)},be=()=>{"toggle"===a?fe():q.current.focus()},ve=pe&&("toggle"===a||l),Ce="grid"===ae?.dataLayout,_e=function({isGridMode:e,dense:t,height:n,layoutOrder:i}){let o;if(e){let r;r=Jg({isGridMode:e,dense:t})>n?"0px":"2px",o="row"===i?`${r} 4px`:`${r} 6px ${r} 4px`}else o=void 0;return o}({isGridMode:Ce,dense:me,height:R.current?.clientHeight,layoutOrder:ae.layoutOrder});Z&&v?.();const ye=ue?30:0,Ae=t.createElement(Vy,{app:i,showSearchIcon:ce,onShowSearch:fe,isPopover:_,showToolbar:B,isDirectQuery:T,autoConfirm:se,showDetachedToolbarOnly:he,layout:n,translator:x,styles:M,isRtl:ge,showLock:y,constraints:I,classes:jy,containerRect:P,containerRef:R,model:d,selectionState:Q,selections:h,keyboard:Y,disablePortal:S});return t.createElement(t.Fragment,null,he&&Ae,t.createElement(Uy,{className:"listbox-container",container:!0,tabIndex:Y.enabled?-1:void 0,direction:"column",gap:0,containerPadding:_e,styles:M,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:ee,onMouseEnter:te,onMouseLeave:ne,ref:e=>{R.current=e,O(e)},isGridMode:Ce,"aria-label":Y.active?x.get("Listbox.ScreenReaderInstructions"):""},ue&&Ae,t.createElement(yr,{item:!0,container:!0,direction:"column",height:"100%",minHeight:ye,role:"region","aria-label":x.get("Listbox.ResultFilterLabel")},t.createElement(yr,{item:!0},t.createElement(hb,{ref:q,selections:h,selectionState:Q,model:d,dense:me,keyboard:Y,visible:pe,search:a,autoFocus:ve,beginSelectionOnFocus:!_,wildCardSearch:oe,searchEnabled:re,direction:o,hide:ce&&fe,styles:M})),t.createElement(yr,{item:!0,xs:!0,className:jy.listboxWrapper},Z?t.createElement(Dy,{text:J}):t.createElement(xy,null,({height:e,width:s})=>t.createElement(Zm,{model:d,app:i,constraints:I,layout:n,selections:h,selectionState:Q,direction:o,frequencyMode:r,rangeSelect:c,checkboxes:N,height:e,width:s,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,keyboard:Y,showGray:f,scrollState:b,keyScroll:{state:H,reset:()=>j({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:$,set:G},renderedCallback:v,onCtrlF:be,isModal:X,styles:M}))))))}const Gy=t.memo($y),Ky=function({options:e={}}){const{model:n}=e,[i]=yd(n);return t.createElement(Gy,{options:e,layout:i})};const Qy={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 Yy(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 Xy=(e={})=>{const{__DO_NOT_USE__:t={},...n}=e;return{...n,update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1,...t}},Zy=(0,t.forwardRef)(({app:e,fieldIdentifier:n,qId:i,stateName:o,element:r,initialOptions:s,renderedCallback:a},l)=>{const[c,d]=(0,t.useState)(s),{isExistingObject:h,hasExternalSelectionsApi:u}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:c});h||Object.assign(c,{frequencyMode:Yy(c.frequencyMode)});const[g,p]=(0,t.useState)(0);(0,t.useEffect)(()=>{if(g)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(g+1)},[h,u]);const m=h?function({app:e,qId:n,options:i={}}){const[o,r]=(0,t.useState)(),[s]=md(),{sessionModel:a}=i,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(i).filter(e=>l.includes(e));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,t.useEffect)(()=>{let t=!1,i=()=>{};return async function(){const o=await Promise.resolve(a||async function(t){return s.get(t)||await e.getObject(t)}(n));if(!t){if(!s.get(o.id)){s.set(o.id,o);const e=()=>{s.clear(o.id)};o.once("closed",e),i=()=>{o.removeListener("closed",e)}}r(o)}}(),()=>{t=!0,i()}},[]),o}({app:e,qId:i,options:c}):function({app:e,fieldIdentifier:n,stateName:i,options:o={}}){const[r,s]=(0,t.useState)(""),[a,l]=(0,t.useState)(!0),[c,d]=(0,t.useState)(),[h,u]=(0,t.useState)(),g=o.title??h;let{histogram:p=!1,frequencyMode:m="N"}=o;r&&r.failedToFetchFieldDef&&(p=!1,m="N"),(0,t.useEffect)(()=>{const t=p||"N"!==m;n.qLibraryId&&t?async function(){try{const t=await e.getDimension(n.qLibraryId),i=await t.getLayout();u(i.qDim.title),"N"===i.qDim.qGrouping?s(i.qDim.qFieldDefs?i.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),u(n))},[]);const{dense:f,checkboxes:b,listLayout:v,properties:C={}}=o,_={dense:f};"horizontal"===v&&(_.dataLayout="grid",_.layoutOrder="column",_.maxVisibleColumns={auto:!0},_.maxVisibleRows={auto:!1,maxRows:1});const y=(0,t.useRef)();y.current||(y.current=by());const A=Oc()(!0,{},Qy,{qInfo:{qId:y.current},qListObjectDef:{qStateName:i,qFrequencyMode:p&&"N"===m?"V":m},histogram:p,checkboxes:b,layoutOptions:_,title:g});let w;if(Oc()(!0,A,C),n.qLibraryId?(A.qListObjectDef.qLibraryId=n.qLibraryId,w=n.qLibraryId):(A.qListObjectDef.qDef.qFieldDefs=[n],w=n),"P"!==m&&p)if(r?.multiFieldDim)A.frequencyMax="fetch";else{const e=n.qLibraryId?r:w;A.frequencyMax={qValueExpression:Ym(e)}}const[S]=fd(A,a?null:e,w,i);return(0,t.useEffect)(()=>{S&&d(S)},[S]),c}({app:e,fieldIdentifier:n,stateName:o,options:c}),f=(0,t.useRef)(r),b=u?c.selectionsApi:mb(e,m,[f,".njs-action-toolbar-more",".njs-action-toolbar-popover"],c)[0],v=(0,t.useMemo)(()=>({...c,selections:b,model:m,app:e,renderedCallback:a}),[c,b,m,e]);return(0,t.useImperativeHandle)(l,()=>({setOptions:e=>d(e)}),[]),b&&m?t.createElement(Ky,{options:v}):null}),Jy={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function eA({app:e,fieldIdentifier:n,stateName:i,element:o,options:r={}}){const[s,a]=(0,t.useState)(!!r.show);return t.createElement(G_,{show:s,app:e,alignTo:{current:o},anchorOrigin:r.anchorOrigin,transformOrigin:r.transformOrigin,close:()=>{a(!1),r.onPopoverClose&&r.onPopoverClose()},fieldName:n,stateName:i,autoFocus:r.autoFocus,components:r.components,sortCriteria:r.sortCriteria,direction:r.direction})}function tA(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function nA(e,t){let n=0;for(let i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n}function iA({dc:e,def:t,properties:n}){e.qDimensions=e.qDimensions||[],e.qMeasures=e.qMeasures||[],e.qInterColumnSortOrder=e.qInterColumnSortOrder||[],e.qInitialDataFetch=e.qInitialDataFetch||[],e.qColumnOrder=e.qColumnOrder||[],e.qExpansionState=e.qExpansionState||[];const i=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const r="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return r.qDef.cId=r.qDef.cId||by(),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),tA(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return nA(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const r="string"==typeof n?(e=>({qDef:{qDef:e}}))(n):{...n,qDef:n.qDef||{}};r.qDef.cId=r.qDef.cId||by(),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),tA(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];nA(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,i,n)},maxDimensions:()=>t.dimensions.max(e.qMeasures.length),maxMeasures:()=>t.measures.max(e.qDimensions.length),canAddDimension:()=>e.qDimensions.length<o.maxDimensions(),canAddMeasure:()=>e.qMeasures.length<o.maxMeasures()};return o}function oA({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const i=n,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(n){const o="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return o.qDef.cId=o.qDef.cId||by(),o.qDef.qSortCriterias=e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(o).forEach(t=>{e[t]=o[t]}),t.dimensions.added(o,i),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,i,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const rA=e=>({qDef:{qFieldDefs:[e]}});function sA({children:e,halo:t}){const n={async addDimension(n){const i=(e=>{let t;return t="string"==typeof e?Oc()(!0,{},Qy,{qListObjectDef:rA(e)}):e.qListObjectDef?Oc()(!0,{},Qy,e):Oc()(!0,{},Qy,{qListObjectDef:e}),t})(n),o=i.qListObjectDef;if(o.qDef.cId=o.qDef.cId||by(),!i.title)if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),n=await e.getProperties();n.qDim.qLabelExpression?i.title={qStringExpression:{qExpr:n.qDim.qLabelExpression}}:i.title=n.qDim.title}else i.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:i,qChildren:[]})},addMeasure(){}};return n}function aA(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 lA({sn:e,properties:t,fields:n,children:i},o){if(!n.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")?oA:e.match("/qChildListDef")?sA:iA}(s),d=c({dc:l,def:r,properties:t,children:i,halo:o});for(let e=0;e<n.length;++e){const t=n[e];"measure"===aA(t)?await d.addMeasure(t):await d.addDimension(t)}}const cA={getValue:(e,t,n)=>{if(null==e||null==t)return n;const i=t.split(".");let o=e;for(let e=0;e<i.length;++e){const t=i[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const i=t.split("."),o=i[i.length-1];let r=e;for(let e=0;e<i.length-1;++e){const t=i[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+i[e+1])?{}:[]),r=r[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?r[o]=n:delete r[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object},dA=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let i=0;i<t.length;i++){const o=e.indexOf(t[i]);if(n>o)return!1;n=o}return!0}return!1},hA=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},uA=function(e,t){let n,i=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i},gA=function(e,t,n){if(n<0)throw Error("newIndex cannot be a negative value!");if(n>=e.length){let t=n-e.length+1;for(;t;)e.push(void 0),t--}const i=e.at(t);e.splice(t,1),e.splice(n,0,i)},pA=2**53-1;function mA(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function fA(e,t){const n=Oc()(!0,{},t,e);return cA.getValue(n,"qOtherTotalSpec.qOtherCounted")||cA.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),cA.getValue(n,"qOtherTotalSpec.qOtherLimit")||cA.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function bA(e,t){return Oc()(!0,{},t,e)}function vA(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const CA={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===cA.getValue(e,t)&&cA.setValue(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:mA,importCommonProperties:function(e,t,n){const i="masterobject"===cA.getValue(t,"properties.qInfo.qType")?"masterobject":cA.getValue(n,"qInfo.qType");cA.setValue(e,"qInfo.qType",i),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,i){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=i},createDefaultDimension:fA,createDefaultMeasure:bA,resolveValue:vA,getHypercubePath:function(e){const t=cA.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function({exportFormat:e,newHyperCubeDef:t}){const n=e.data[0],i=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==i)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==i;)o<i?(hA(t.qInterColumnSortOrder,o),++o):(--o,uA(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach(o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(i.qLayoutExclude.quarantine=Oc()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?cA.setValue(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||mA(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]}),i=Oc()(!0,{},t,i),null===i.components&&(i.components=[]),i},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],i=t.dimensions||{max:0},o=t.measures||{max:0},r=vA(o.max,n.dimensions.length,pA),s=vA(o.min,n.dimensions.length,0);return{maxDimensions:vA(i.max,r,pA),minDimensions:vA(i.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>i&&i>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>n||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!i&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:r}){const s=e.data[0];r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.qHyperCubeDef||(r.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>t&&t>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&s.dimensions.length&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)i.qDimensions.length<t?i.qDimensions.push(fA(r.dimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(fA(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(fA(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)i.qDimensions.length<n?i.qDimensions.push(fA(r.excludedDimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(fA(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)i.qMeasures.length<t?i.qMeasures.push(bA(r.measures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(bA(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(bA(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)i.qMeasures.length<n?i.qMeasures.push(bA(r.excludedMeasures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(bA(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=cA.getValue(e,n||"").qHyperCubeDef,o=[...i.qDimensions];i.qDimensions=[],o.forEach(n=>{i.qDimensions.push(n),t.dimensions.added(n,e)})}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.measures&&"function"==typeof t.measures.added){const i=cA.getValue(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach(n=>{i.qMeasures.push(n),t.measures.added(n,e)})}}},_A={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const n=function(e=1){const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),i=e.qProperty,o=cA.getValue(i,t||""),r=o.qHyperCubeDef,s=n.data[0];if(r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),s.dimensions.push(...r.qDimensions),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...r.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...r.qMeasures),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...r.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=r.qInterColumnSortOrder.concat(),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();dA(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.qLayoutExclude,Object.keys(i).forEach(e=>{n.properties[e]=i[e]}),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.disabled&&(Object.keys(i.qLayoutExclude.disabled).forEach(e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=i.qLayoutExclude.disabled[e])}),delete i.qLayoutExclude.disabled),i.qLayoutExclude.changed&&(CA.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&!cA.isEmpty(i.qLayoutExclude.quarantine)||delete i.qLayoutExclude,n}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const r={qChildren:[]},s=CA.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=cA.getValue(t,o||"").qHyperCubeDef,l=cA.getValue(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u}=CA.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=CA.getDefaultDimension(),defaultMeasure:p=CA.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,CA.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u})&&CA.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u,newHyperCubeDef:l}),CA.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),CA.addDefaultMeasures({exportFormat:e,maxMeasures:h,minMeasures:u,newHyperCubeDef:l,defaultMeasure:p}),CA.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),CA.copyPropertyIfExist("qMaxStackedCells",a,l),CA.copyPropertyIfExist("qNoOfLeftDims",a,l),CA.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),CA.copyPropertyOrSetDefault("qMode",a,l,"S"),CA.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),CA.copyPropertyOrSetDefault("qSortbyYValue",a,l),CA.copyPropertyOrSetDefault("qIndentMode",a,l),CA.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),CA.importCommonProperties(s,e,t),CA.updateDimensionsOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),CA.updateMeasuresOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),r.qProperty=s,r}(e)},yA=e=>cA.getValue(e,"data.targets.0.propertyPath"),AA=async({halo:e,model:t,cellRef:n,newType:i,properties:o,viewDataMode:r=!1})=>{const s=o?{qProperty:o}:await t.getFullPropertyTree(),a=n.current.getQae(),l=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return _A.exportProperties})(yA(e)))(a);if(!l)throw new Error("Source chart does not support conversion");const c=await(async({halo:e,name:t,version:n})=>{const{types:i}=e;return await i.get({name:t,version:n}).supernova()})({halo:e,name:i}),d=c.qae,h=(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return _A.importProperties})(yA(e)))(d);if(!h)throw new Error("Target chart does not support conversion");return h({exportFormat:l({propertyTree:s,hypercubePath:CA.getHypercubePath(a),viewDataMode:r}),initialProperties:{qInfo:{qType:i},visualization:i,...cA.getValue(d,"properties.initial",{})},dataDefinition:cA.getValue(d,"data.targets.0.",{}),hypercubePath:CA.getHypercubePath(d),viewDataMode:r})},wA={hypercube:_A};function SA(e){return(0,ln.Ay)("MuiIcon",e)}(0,an.A)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kA=["baseClassName","className","color","component","fontSize"],xA=(0,sn.Ay)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,Vn.A)(n.color)}`],t[`fontSize${(0,Vn.A)(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),EA=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium"}=n,l=(0,Zt.A)(n,kA),c=(0,Jt.A)({},n,{baseClassName:i,color:r,component:s,fontSize:a}),d=(e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root","inherit"!==t&&`color${(0,Vn.A)(t)}`,`fontSize${(0,Vn.A)(n)}`]};return(0,tn.A)(o,SA,i)})(c);return(0,dn.jsx)(xA,(0,Jt.A)({as:s,className:(0,en.A)(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))});EA.muiName="Icon";const LA=EA,DA=e=>ss((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 IA({d:e}){const n=Gn();let i="inherit",o=n.palette.success.main;e.missing?o=n.palette.warning.main:e.error&&(i="error",o=n.palette.error.main);const r={color:o},s=t.createElement(Lr,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},t.createElement(LA,null,e.missing||e.error?t.createElement(DA,{style:r}):t.createElement(Fh,{style:r})));return t.createElement(yr,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(yr,{item:!0},s),t.createElement(yr,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(Lr,{noWrap:!0,component:"p"},t.createElement(Lr,{component:"span",variant:"subtitle2",color:i},e.description),t.createElement(Lr,{component:"span"}," "),t.createElement(Lr,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function NA({data:e}){const n=Gn();return t.createElement(yr,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map((e,i)=>{const o=e.descriptions.map((e,n)=>t.createElement(IA,{d:e,key:n}));return o.length>0&&t.createElement(yr,{container:!0,item:!0,key:i,direction:"column",style:{paddingBottom:n.spacing(2)}},t.createElement(Lr,{noWrap:!0,key:i,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)}))}function MA({title:e="Error",message:n="",data:i=[]}){return t.createElement(yr,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(yr,{item:!0},t.createElement(DA,{style:{fontSize:"38px"}})),t.createElement(yr,{item:!0},t.createElement(Lr,{variant:"h6",align:"center","data-tid":"error-title"},e)),t.createElement(yr,{item:!0},t.createElement(Lr,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),t.createElement(NA,{data:i}))}function TA(){return TA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},TA.apply(null,arguments)}const RA="Progress",qA={root:`${RA}-root`,front:`${RA}-front`,back:`${RA}-back`},OA=(0,sn.Ay)("div")(({theme:e})=>({[`&.${qA.root}`]:{position:"relative",display:"inline-block"},[`& .${qA.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${qA.back}`]:{color:e.palette.divider}})),PA={small:16,medium:32,large:64,xlarge:128};function BA({size:e="medium",...n}){const i=PA[e];return t.createElement(OA,{className:qA.root},t.createElement(Gl,TA({variant:"determinate",value:100,className:qA.back,size:i,thickness:3},n)),t.createElement(Gl,TA({variant:"indeterminate",disableShrink:!0,className:qA.front,size:i,thickness:3},n)))}function FA(){return FA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},FA.apply(null,arguments)}const WA={stripes:"LongRunningQuery-stripes"},zA=(0,sn.Ay)(yr)(()=>({[`& .${WA.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 VA({cancel:e,translator:n,...i}){return t.createElement(t.Fragment,null,t.createElement(zA,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(yr,{item:!0},t.createElement(BA,null)),t.createElement(yr,{item:!0},t.createElement(Lr,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),t.createElement(yr,FA({item:!0},i),t.createElement(wl,{variant:"contained",onClick:e},n.get("Cancel"))))}function HA({retry:e,translator:n,...i}){return t.createElement(t.Fragment,null,t.createElement(yr,{item:!0},t.createElement(DA,{style:{fontSize:"38px"}})),t.createElement(yr,{item:!0},t.createElement(Lr,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),t.createElement(yr,{item:!0},t.createElement(wl,FA({variant:"contained",onClick:e},i),n.get("Retry"))))}function jA({canCancel:e,canRetry:n,api:i}){const{translator:o}=(0,t.useContext)(ld);return t.createElement(yr,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:WA.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&t.createElement(VA,{cancel:i.cancel,translator:o,className:WA.cancel}),n&&t.createElement(HA,{retry:i.retry,translator:o,className:WA.retry}))}function UA(){return t.createElement(yr,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(BA,{size:"large"}))}const $A={width:0,height:0},GA="Header",KA={containerStyle:`${GA}-containerStyle`,containerTitleStyle:`${GA}-containerTitleStyle`},QA=(0,sn.Ay)(yr)(({theme:e})=>({[`&.${KA.containerStyle}`]:{flexGrow:0},[`&.${KA.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}})),YA=function({id:e,layout:n,sn:i,anchorEl:o,hovering:r,focusHandler:s,titleStyles:a={},isRtl:l,translator:c}){const d=n.showTitles&&!!n.title,h=n.showTitles&&!!n.subtitle,u=n.qSelectionInfo&&n.qSelectionInfo.qInSelections,[g,p]=(0,t.useState)([]);(0,t.useEffect)(()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions(e=>{p([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])})},[i]);const m=[KA.containerStyle,...d||h?[KA.containerTitleStyle]:[]],f=r||u,b=t.createElement(Xf,{show:!1,selections:{show:u,api:i.component.selections,onKeyDeactivate:s.refocusContent},actions:g,popover:{show:f,anchorEl:o},focusHandler:s,layout:n,isRtl:l});return t.createElement(QA,{item:!0,container:!0,wrap:"nowrap",className:m.join(" ")},t.createElement(yr,{item:!0,zeroMinWidth:!0,xs:!0,dir:l?"rtl":"ltr"},t.createElement(yr,{container:!0,wrap:"nowrap",direction:"column"},d?t.createElement(Fm,{title:n.title},t.createElement(Lr,{id:`${e}_title`,variant:"h6",noWrap:!0,className:"njs-cell-title",style:a.main},n.title)):t.createElement("div",{id:`${e}_title`,style:$A,"aria-label":c.get("Accessibility.Object.NoTitle")}),h&&t.createElement(Fm,{title:n.subtitle},t.createElement(Lr,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:a.subTitle},n.subtitle)))),t.createElement(yr,{item:!0},b))},XA=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude");return e.filter(e=>!1!==e.showInFooter).map(e=>{let i="";switch(e.type){case"search":i+=(e=>{let t="",n="";const i=e.options?.mode;switch(i){case"beginning_of_word":t="*^",n="*";break;case"ends_with":t="*";break;case"starts_with":n="*";break;case"matches_exactly":break;default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case"condition":i+=(e=>{const{options:t}=e,n="general"===t?.mode,i="fixed_value"===t?.modifier?.type,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!i&&(!t.firstValue?.aggregator||!t.firstValue?.field)||i&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let r,s,a="=";n&&i?(r=`${t.conditionField?.aggregator}(${Qm(t.conditionField?.field)})`,s=`${t.firstValue?.fixedValue}`):!n&&i?(r="",s=`${t.firstValue?.fixedValue}`,a=""):n||i?(r=`${t.conditionField?.aggregator}(${Qm(t.conditionField?.field)})`,s=`${t.firstValue?.aggregator}(${Qm(t.firstValue?.field)})`):(r=`${Qm(e.field)}`,s=`${t.firstValue?.aggregator}(total ${Qm(t.firstValue?.field)})`);const l=`${a}${r}${o[0]}${s}`;let c="";if(o.length>1){if(!i&&(!t.secondValue?.aggregator||!t.secondValue?.field)||i&&!t.secondValue?.fixedValue)return"";let e,s;n&&i?(e=`${t.secondValue?.fixedValue}`,s=` and ${r}`):!n&&i?(e=`${t.secondValue?.fixedValue}`,s=""):n||i?(e=`${t.secondValue?.aggregator}(${Qm(t.secondValue?.field)})`,s=` and ${r}`):(e=`${t.secondValue?.aggregator}(total ${Qm(t.secondValue?.field)})`,s=` and ${r}`),c=`${s}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case"clear_selection":i+=t.get("Object.FilterLabel.All");break;default:i+=e.options?.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==i&&(i=i.replace(/^"|"$/g,""),e.exclude&&(i=`${n} ${i}`)),{field:e.field,label:i}}).filter(e=>""!==e.label)},ZA=(e,t)=>XA(e,t).map(e=>`${e.field}: ${e.label}`).join("; "),JA=e=>ss((e=>({...e,shapes:[{type:"path",attrs:{d:"M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z"}}]}))(e));function ew({styles:e,children:n}){return t.createElement(Lr,{noWrap:!0,variant:"body2",style:{...e,fontStyle:"italic"}},n)}const tw=function({layout:e,translator:n,filtersFootnoteString:i,footerStyle:o,isRtl:r}){const s=XA(e?.filters??[],n),a={color:o?.color,fontFamily:o?.fontFamily,fontSize:o?.fontSize,fontWeight:o?.fontWeight};return t.createElement(Fm,{title:i},t.createElement(yr,{container:!0,wrap:"nowrap",sx:{backgroundColor:o?.backgroundColor,padding:o?.padding,borderTop:o?.borderTop},"data-testid":"filters-footnote",justifyContent:r?"flex-end":"flex-start"},t.createElement(yr,{item:!0,display:"flex"},t.createElement(JA,{style:{fontSize:"12px",color:o.color,margin:"auto"}}),t.createElement(ew,{styles:{...a,marginLeft:"2px"}},n.get("Object.FiltersApplied"),"  ")),t.createElement(yr,{item:!0,display:"flex"},s.map(e=>t.createElement(yr,{container:!0,wrap:"nowrap",key:`${e.field}-${e.label}`},t.createElement(ew,{styles:{...a,fontWeight:"bold"}},`${e.field}:`),t.createElement(ew,{styles:a},"   ",e.label,"  "))))))},nw="Footer-itemStyle",iw=(0,sn.Ay)(yr)(()=>({[`& .${nw}`]:{minWidth:0,width:"100%"}})),ow="njs-cell-footer",rw=function({layout:e,titleStyles:n={},translator:i,flags:o,isCardTheme:r,isRtl:s}){const a=n.footer,l=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,c=ZA(e?.filters??[],i),d=!e?.footnote&&l&&c,h=o?.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),u=r?"1px":"6px";return e&&e.showTitles&&(e.footnote||d)?t.createElement(iw,{container:!0},t.createElement(yr,{item:!0,className:nw,"data-testid":ow,sx:{paddingTop:e=>h?u:e.spacing(1)}},e.footnote&&t.createElement(Fm,{title:e.footnote},t.createElement(Lr,{noWrap:!0,variant:"body2",className:ow,style:a,align:s?"right":"left"},e.footnote)),d&&t.createElement(tw,{layout:e,translator:i,filtersFootnoteString:c,footerStyle:a,isRtl:s}))):null};class sw{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 aw=function({sn:e,snOptions:n,snPlugins:i,layout:o,appLayout:r,halo:s,cellId:a}){const{component:l}=e,{theme:c,language:d,constraints:h,interactions:u,keyboardNavigation:g}=(0,t.useContext)(ld),[p]=(0,t.useState)(()=>new sw),[m,f]=(0,t.useState)(!1),[b,v]=(0,t.useState)(0),[C,_,y]=wd(),[A,w]=(0,t.useState)(null),S=(0,t.useCallback)(e=>{e&&w(e)},[]);return(0,t.useEffect)(()=>{if(A)return l.created({options:n}),l.mounted(A),f(!0),()=>{p.stop(),l.willUnmount()}},[A,l]),(0,t.useEffect)(()=>{m&&A&&_&&(!l.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||p.schedule(()=>{const t=[];return h.passive||t.push("passive"),h.active||t.push("interact"),h.select||t.push("select"),h.edit||t.push("edit"),s.app&&s.app.session&&t.push("fetch"),Promise.resolve(l.render({layout:o,options:n,plugins:i,embed:s.public.nebbie,context:{constraints:h,interactions:u,theme:s.public.theme,appLayout:r,keyboardNavigation:g,...l.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:t}}})).then(e=>{!1!==e&&(0===b&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),v(b+1))})}))},[_,n,i,A,y,o,r,c,d,h,u,m,g]),t.createElement("div",{ref:C,"data-render-count":b,style:{position:"relative",height:"100%"},className:"njs-viz"},t.createElement("div",{ref:S,id:`${a}_content`,style:{position:"absolute",width:"100%",height:"100%"}}))},lw={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart"};class cw extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const dw=["action-button","sn-nav-menu","filterpane","sn-shape"],hw=[...dw,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],uw=e=>-1===dw.indexOf(e),gw=e=>uw(e)?"10px 10px 0":"10px 0 0",pw=new Map;[["auto-chart","Object.AutoChart"],["dummy-chart","Dummy"],["barchart","Object.BarChart"],["combochart","Object.ComboChart"],["container","Object.Container"],["distributionplot","Object.DistributionPlot"],["boxplot","Object.BoxPlot"],["filterpane","Object.FilterPane"],["gauge","Object.Gauge"],["histogram","Object.Histogram"],["kpi","Object.Kpi"],["linechart","Object.LineChart"],["listbox","Object.Listbox"],["piechart","Object.PieChart"],["pivot-table","Object.PivotTable"],["map","Object.Map"],["scatterplot","Object.ScatterPlot"],["sn-table","Object.StraightTable"],["text-image","Object.TextImage"],["treemap","Object.Treemap"],["waterfallchart","Object.WaterfallChart"],["mekkochart","Object.MekkoChart"],["action-button","Object.ActionButton"],["sn-nav-menu","Object.NavMenu"],["bulletchart","Object.BulletChart"],["sn-nlg-chart","Object.NlgChart"],["sn-analysis-autochart","Common.AnalysisTypes"],["sn-tabbed-container","Object.TabContainer"],["qlik-sankey-chart-ext","Object.SankeyChart"],["qlik-radar-chart","Object.RadarChart"],["qlik-funnel-chart-ext","Object.FunnelChart"],["sn-grid-chart","Object.GridChart"],["sn-layout-container","Object.LayoutContainer"]].forEach(([e,t])=>{pw.set(e,t)});const mw=pw,fw=(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 bw({delay:e=750}){const[n,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{const t=setTimeout(()=>i(!0),e);return()=>clearTimeout(t)},[]),n?t.createElement(UA,null):null}const vw=e=>!e.qError||7005===e.qError.qErrorCode,Cw=(e,t,n,i,o)=>[...Array(e).keys()].map(e=>{const r=!(!t||!t[e]),s=r&&t[e].qError&&7005===t[e].qError.qErrorCode,a=r&&!s&&t[e].qError,l=s&&t[e].qCalcCondMsg,c=`${a?i:s?l||o:r&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}}),_w=e=>e&&(Array.isArray(e)?e:[e])||[],yw=(e,t,n,i)=>{const o=i.dimensions.min(),r=i.measures.min(),s=i.resolveLayout(t),a=Cw(o,_w(s.qDimensionInfo||s.qItems),e=>i.dimensions.description(n,e),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=Cw(r,_w(s.qMeasureInfo),e=>i.measures.description(n,e),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:a,reqMeasErrors:l}};function Aw(){return new(ec())}const ww=(0,t.forwardRef)(({halo:e,model:n,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,currentId:a,emitter:l,navigation:c,onError:d},h)=>{const{app:u,types:g}=e,{nebbie:p}=e.public,{theme:m,translator:f,language:b,keyboardNavigation:v,externalFocusManagement:C,disableCellPadding:_=!1,navigation:y,queryParams:A}=(0,t.useContext)(ld),[w]=(0,t.useState)(l||Aw),S=Gn(),[k,x,E]=wd(),[L,D]=(0,t.useReducer)(fw,{loading:!1,loaded:!1,longRunningQuery:!1,error:(I=r)?{title:I.message}:null,sn:null,visualization:null});var I;const[N,M]=(0,t.useState)(n),[T,{validating:R,canCancel:q,canRetry:O},P]=yd(N),[B]=Ad(u),[F,W,z]=wd(),[V,H]=(0,t.useState)(i),[j,U]=(0,t.useState)(o),$=`njs-cell-${a}`,[G]=mb(u,N,[`#${$}`,".njs-action-toolbar-popover"]),[K,Q]=(0,t.useState)(!1),Y=(0,t.useRef)({enter:null,leave:null}),{titleStyles:X,bgColor:Z,bgImage:J,border:ee,borderRadius:te,boxShadow:ne}=(({layout:e,theme:n,app:i,themeName:o,disableThemeBorder:r,queryParams:s})=>(0,t.useMemo)(()=>{if(e&&n){const o=e.components?e.components.find(e=>"general"===e.key):null,a=(t=e.visualization,lw[t.toLowerCase()]?lw[t.toLowerCase()]:t),l={main:H_(o,"main",n,a),footer:H_(o,"footer",n,a),subTitle:H_(o,"subTitle",n,a)},c=z_(o,n,a),d=W_(o,i,s),h=function(e,t,n,i){const o=P_(e?.borderColor,"","borderColor",t,n);let r=e?.borderWidth;return!r&&!i&&(r=O_("","borderWidth",t,n)),r&&o?`${r} solid ${o}`:void 0}(o,n,a,r),u=function(e,t,n){return e?.borderRadius||O_("","borderRadius",t,n)}(o,n,a);return{titleStyles:l,bgColor:c,bgImage:d,border:h,borderRadius:u,boxShadow:V_(o,n,a)}}var t;return{}},[e,n,i,o,r]))({layout:T,theme:e.public.theme,app:e.app,themeName:m,disableThemeBorder:V?.disableThemeBorder,queryParams:A}),ie=!("rtl"!==V?.direction),oe=(0,t.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,t.useEffect)(()=>{gb(oe.current),oe.current.blurCallback=t=>{oe.current.onBlurHandler?oe.current.onBlurHandler(t):(e.root.toggleFocusOfCells(),t&&z&&z.focus())},oe.current.refocusContent=()=>{L.sn.component&&"function"==typeof L.sn.component.focus&&L.sn.component.focus()}},[]),(0,t.useEffect)(()=>{if(r)return void s();if(!B||!T)return;if(L.visualization===T.visualization&&L.sn)return void(async e=>{const[t,n]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,r=0,s=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],h=d.dimensions.min(),u=d.measures.min(),g=d.resolveLayout(n),p=_w(g.qDimensionInfo||g.qItems).filter(vw),m=_w(g.qMeasureInfo).filter(vw);if(o+=h,r+=u,(p.length<h||m.length<u)&&(i=!0),g.qError){s=!0,a=7005===g.qError.qErrorCode;const t=a&&g.qCalcCondMsg?g.qCalcCondMsg:a?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:i,aggMinD:o,aggMinM:r,hasLayoutErrors:s,layoutErrors:l}})(e,n,t),c=[],d=[];let h=null;for(let r=0;r<n.length;++r){const s=n[r];if(!a&&o){const n=h||await i.getProperties();h=n;const o=yw(e,t,n,s);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const u=c.filter(e=>!(e.missing||e.error)).length,g=e.get("Visualization.Incomplete.Dimensions",[u,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]}],b=a?l:f;return[a||o,{title:a?l[0].title:e.get("Visualization.Incomplete"),data:b}]})(f,T,e.generator.qae.data,N);D(t?{type:"ERROR",error:n}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const i=e&&e.component&&e.component.selections;if(i&&i.id&&n.id&&i.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!i.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;i.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||i.isModal()&&i.noModal()}})({sn:L.sn,layout:T,model:N})})(L.sn);const e=g.getSupportedVersion(T.visualization,T.version);return(async(e,t)=>{D({type:"LOADING"}),await(async({dispatch:e,types:t,visualization:n,version:i,model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c,onMount:d,navigation:h})=>{try{const u=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:i}),g=u.create({model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c,navigation:h});g&&(e({type:"LOADED",sn:g,visualization:n}),d())}catch(t){e(i?{type:"ERROR",error:{title:t.message,errorObject:t}}:{type:"ERROR",error:{title:`Could not find a version of '${n}' that supports current object version. Did you forget to register ${n}?`}}),d()}})({dispatch:D,types:g,visualization:e,version:t,model:N,app:u,selections:G,nebbie:p,focusHandler:oe.current,emitter:w,onMount:s,navigation:c??y})})(T.visualization,e),()=>{}},[g,L.sn,N,G,T,B,b]),(0,t.useEffect)(()=>{if(!R)return;const e=setTimeout(()=>D({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(e)},[R]),(0,t.useImperativeHandle)(h,()=>({getQae:()=>L.sn.generator.qae,getExtensionDefinition:()=>L.sn.generator.definition.ext,support(e,t,n){if(T&&L.loaded&&!L.error){const i=t||L.sn.generator.definition.ext?.support;if(i)return function(e,t,n){const i=t[e];return"function"==typeof i?i.call(null,n):"boolean"==typeof i&&i}(e,i,n||T)}return!1},toggleFocus(e){"function"==typeof L.sn.component.focus&&(e?L.sn.component.focus():L.sn.component.blur())},setOnBlurHandler(e){oe.current.onBlurHandler=e},setSnOptions:H,setSnPlugins:U,setModel:M,getImperativeHandle:()=>L.sn?.component&&"function"==typeof L.sn.component.getImperativeHandle?L.sn.component.getImperativeHandle():{},onContextMenu:(...e)=>L.sn?.component.onContextMenu(...e),async takeSnapshot(){const{width:e,height:t}=x;let n=JSON.parse(JSON.stringify(T));return"function"==typeof L.sn.component.setSnapshotData&&(n=await L.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:f.language(),theme:S.name,appLayout:B,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)}}),[L.sn,W,x,T,S.name,B]);let re=null;L.loading&&!L.longRunningQuery?re=t.createElement(bw,null):L.error?(d&&d(L.error.errorObject?L.error.errorObject:new cw(L.error.title)),re=t.createElement(MA,L.error)):L.loaded&&(re=t.createElement(aw,{key:T.visualization,sn:L.sn,halo:e,snOptions:V,snPlugins:j,layout:T,appLayout:B,cellId:a}));const se=!!e.public.theme?.getStyle("","","_cards"),ae=e.public.galaxy?.flags;let le,ce;_?(le=!1,ce=void 0):ae?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(le=!1,ce=(({layout:e,isError:t,isCardTheme:n,titleStyles:i,translator:o})=>{if(n){const n=e?.showTitles&&!!e?.title,r=e?.showTitles&&!!e?.subtitle,s=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,a=e?.visualization,l=ZA(e?.filters??[],o),c=!e?.footnote&&s&&l,d=e?.showTitles&&(!!e?.footnote||c);let h;return n&&(i.main.padding=gw(a)),r&&(i.subTitle.padding=((e,t)=>{const n=uw(e);return t?n?"0 10px":"0":gw(e)})(a,n)),d&&(-1===dw.indexOf(a)&&(i.footer.borderTop="1px solid #d9d9d9"),i.footer.padding="6px 10px"),(t||-1===hw.indexOf(a))&&(h=`${n||r?"0":"10px"} 10px ${d?"0":"5px"}`),h}})({layout:T,isError:L.error,isCardTheme:se,titleStyles:X,translator:f})):(le=!0,ce=void 0);const de=mw.get(T?.visualization),he=f.get(de);return t.createElement(ph,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Z||"unset",backgroundImage:J&&J.url?`url(${J.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:J&&J.size,backgroundPosition:J&&J.pos,border:ee,borderRadius:te,boxShadow:ne,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:k,id:$,onMouseEnter:()=>{Y.current.leave&&clearTimeout(Y.current.leave),Y.enter||(Y.current.enter=setTimeout(()=>{Q(!0),Y.current.enter=null},250))},onMouseLeave:()=>{Y.current.enter&&clearTimeout(Y.current.enter),Y.current.leave||(Y.current.leave=setTimeout(()=>{Q(!1),Y.current.leave=null},750))}},t.createElement(yr,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...le?{padding:S.spacing(1)}:{},...L.longRunningQuery?{opacity:"0.3"}:{}},"aria-labelledby":`${a}_title ${a}_type ${a}_content`},T&&t.createElement("div",{id:`${a}_type`,style:$A,"aria-label":he??T.visualization}),E&&T&&L.sn&&t.createElement(YA,{layout:T,sn:L.sn,anchorEl:E,hovering:K,focusHandler:oe.current,titleStyles:X,isRtl:ie,id:a,translator:f}," "),t.createElement(yr,{tabIndex:v&&!C?0:-1,onKeyDown:v&&!C?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,item:!0,xs:!0,className:"njs-cell-body",style:{height:"100%",...ce?{padding:ce}:{}},ref:F},re),E&&T&&L.sn&&t.createElement(rw,{layout:T,titleStyles:X,translator:f,flags:ae,isCardTheme:se,isRtl:ie})),L.longRunningQuery&&t.createElement(jA,{canCancel:q,canRetry:O,api:P}))}),Sw=ww;function kw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function xw(e="/",t,n){const i=[];return Object.keys(t).forEach(o=>{const r=t[o];"object"!=typeof n[o]||"object"!=typeof r||Array.isArray(r)?function(e,t){return kw(e)&&kw(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(r,n[o])||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):i.push(...xw(`${e}${o}/`,t[o],n[o]))}),i}function Ew(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`)})}function Lw(e={}){return{isEnabled:t=>!0===e[t]}}const Dw=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Iw=(e,t)=>e&&e.find(e=>e.qDef?.cId===t)||null,Nw=e=>({...e,qDef:{...e.qDef,cId:e.qDef?.cId??by()}}),Mw=e=>({...Nw(e),qOtherTotalSpec:e.qOtherTotalSpec??{}}),Tw=(e,t,n)=>{const i=t;e.forEach((e,t)=>{const o=e.qTags,r={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(i,n.properties,o,r,n):(r.qSortByNumeric=1,r.qSortByAscii=1),i.qDef.qSortCriterias?i.qDef.qSortCriterias[t]=r:i.qDef.qSortCriterias=[r]})},Rw=new Error("Not supported in this object, need to implement in subclass."),qw=e=>e?[...e].map(e=>e.qDef?.autoSort&&void 0!==e.autoSort?{...e,qDef:{...e.qDef,autoSort:e.autoSort},autoSort:void 0}:e):[],Ow=(e,t)=>{if(e)return t&&cA(e,t)?cA(e,t).qHyperCube:e.qHyperCube};function Pw(e,t){return e.filter((e,n)=>t.includes(n))}function Bw(e,t,n=void 0){const i=e.getAlternativeDimensions(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function Fw(e,t,n){hA(e.hcProperties.qInterColumnSortOrder,n??t.length-1)}function Ww(e,t){return"function"==typeof e.dimensionDefinition.move?Promise.resolve(e.dimensionDefinition.move.call(e,t,e.properties,e)).then(()=>t):Promise.resolve(t)}function zw(e,t){return e.getAlternativeDimensions().length+t.length>=1e3}function Vw(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<1e3}async function Hw(e,t,n,i,o,r){await e.autoSortDimension(t),hA(e.hcProperties.qInterColumnSortOrder,n+r),i.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function jw(e,t,n=void 0){const i=e.getAlternativeMeasures(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function Uw(e,t){hA(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function $w(e,t,n){return n||e.maxMeasures()<=t.length&&t.length<1e3}function Gw(e,t,n,i){const o=e-n.length;let[r]=n.splice(n.length-1,1);return i.splice(0,0,r),[r]=i.splice(o+1,1),n.splice(t,0,r),Promise.resolve(r)}const Kw=class{constructor(e){const t=e||{};this.dimensionDefinition=t.dimensionDefinition||{max:0},this.measureDefinition=t.measureDefinition||{max:0},this.dimensionProperties=t.dimensionProperties??{},this.measureProperties=t.measureProperties??{},this.globalChangeListeners=t.globalChangeListeners,this.app=t.app}setProperties(e){this.properties=e,this.isAnalysisType=this.properties?.metaData?.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}static type(){throw new Error("Must override this method")}static getDimensions(){return[]}getDimension(e){const t=this.getDimensions(),n=this.getAlternativeDimensions();return Iw(t,e)??Iw(n,e)}static getAlternativeDimensions(){throw new Error("Method not implemented.")}static addDimension(){throw Rw}static addDimensions(){throw Rw}static removeDimension(){throw Rw}static removeDimensions(){throw Rw}static autoSortDimension(){throw Rw}static replaceDimension(){throw Rw}static getSorting(){throw Rw}createLibraryDimension(e,t){const n=Oc()(!0,{},this.dimensionProperties||{},t||{});return n.qDef=n.qDef??{},n.qOtherTotalSpec=n.qOtherTotalSpec??{},n.qLibraryId=e,n.qDef.autoSort=!0,n.qDef.qSortCriterias=Dw,delete n.qDef.qFieldDefs,delete n.qDef.qFieldLabels,n}createFieldDimension(e,t,n){const i=Oc()(!0,{},this.dimensionProperties||{},n||{});return i.qDef=i.qDef??{},i.qOtherTotalSpec=i.qOtherTotalSpec??{},e||(i.qDef.qFieldDefs=[],i.qDef.qFieldLabels=[],i.qDef.qSortCriterias=[]),i.qDef.qFieldDefs=[e],i.qDef.qFieldLabels=t?[t]:[""],i.qDef.qSortCriterias=Dw,i.qDef.autoSort=!0,i}addFieldDimension(e,t,n){const i=this.createFieldDimension(e,t,n);return this.addDimension(i)}addFieldDimensions(e){const t=e.map(({field:e,label:t,defaults:n})=>this.createFieldDimension(e,t,n));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryDimension(e,t));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map(({id:e})=>this.createLibraryDimension(e));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map(({field:e})=>this.createFieldDimension(e));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e,t,n){const i=this.createFieldDimension(e,t,n);return this.addDimension(i,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(e=0){const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){const e=Lw("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return this.dimensionDefinition.max?.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasure(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();return Iw(t,e)??Iw(n,e)}static getMeasures(){return[]}static getAlternativeMeasures(){throw new Error("Method not implemented.")}static addMeasure(){throw Rw}static addMeasures(){throw Rw}static removeMeasure(){throw Rw}static removeMeasures(){throw Rw}static autoSortMeasure(){throw Rw}static replaceMeasure(){throw Rw}createExpressionMeasure(e,t,n){const i=Oc()(!0,{},this.measureProperties||{},n||{});return i.qDef=i.qDef??{},i.qDef.qNumFormat=i.qDef.qNumFormat??{},i.qDef.qDef=e,i.qDef.qLabel=t,i.qDef.autoSort=!0,i}addExpressionMeasure(e,t,n){const i=this.createExpressionMeasure(e,t,n);return this.addMeasure(i)}addExpressionMeasures(e){const t=e.map(({expression:e,label:t,defaults:n})=>this.createExpressionMeasure(e,t,n));return this.addMeasures(t)}createLibraryMeasure(e,t){const n=Oc()(!0,{},this.measureProperties||{},t||{});return n.qDef=n.qDef??{},n.qDef.qNumFormat=n.qDef.qNumFormat??{},Lw("MASTER_measureURE_FORMAT")&&(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(n.qDef),n.qLibraryId=e,n.qDef.autoSort=!0,delete n.qDef.qDef,delete n.qDef.qLabel,n}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t)}addAltLibraryMeasures(e){const t=e.map(({id:e})=>this.createLibraryMeasure(e));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map(({expression:e})=>this.createExpressionMeasure(e));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const i=this.createExpressionMeasure(e,t,n);return this.addMeasure(i,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(e=0){if("function"==typeof this.measureDefinition.max){const t=this.getDimensions().length-e,n=Lw("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return this.measureDefinition.max.apply(null,n)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach(t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})})}},Qw=function(e,t,n){const i=e.getDimensions(),o=n??i.length;return i.length<e.maxDimensions()?function(e,t,n){const i=e.getDimensions();return i.splice(n,0,t),e.autoSortDimension(t).then(async()=>(Fw(e,i,n),await function(e,t){return t&&"function"==typeof e.dimensionDefinition.add?Promise.resolve(e.dimensionDefinition.add.call(null,t,e.properties,e)).then(()=>t):Promise.resolve(t)}(e,t),t))}(e,t,o):Promise.resolve(t)},Yw=async function(e,t){!function(e,t){uA(e.hcProperties.qInterColumnSortOrder,t)}(e,t),await function(e,t){const[n]=e.getDimensions().splice(t,1);return n&&"function"==typeof e.dimensionDefinition.remove?Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)},Xw=async function(e,t){!function(e,t){uA(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t)}(e,t),await function(e,t){const[n]=e.getMeasures().splice(t,1);return n&&"function"==typeof e.measureDefinition.remove?Promise.resolve(e.measureDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)},Zw=function(e,t){const[n]=e.getAlternativeDimensions().splice(t,1);if(n&&"function"==typeof e.dimensionDefinition.remove)return n.isAlternative=!0,Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)).then(()=>{delete n.isAlternative})},Jw=class extends Kw{constructor(e){super(e),this.path=e.path}setProperties(e){return e?(super.setProperties(e),this.hcProperties=this.path?cA.getValue(e,`${this.path}.qHyperCubeDef`):e.qHyperCubeDef,this.hcProperties?(function(e){const t=e;t.hcProperties.qDimensions=t.getDimensions()??[],t.hcProperties.qMeasures=t.getMeasures()??[],t.hcProperties.qInterColumnSortOrder=t.hcProperties.qInterColumnSortOrder??[],t.hcProperties.qLayoutExclude=t.hcProperties.qLayoutExclude??{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},t.hcProperties.qLayoutExclude.qHyperCubeDef=t.hcProperties.qLayoutExclude.qHyperCubeDef??{qDimensions:[],qMeasures:[]},t.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=t.getAlternativeDimensions()??[],t.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=t.getAlternativeMeasures()??[]}(this),function(e){const t=e;t.hcProperties.isHCEnabled&&0===t.hcProperties.qDynamicScript.length&&"S"===t.hcProperties.qMode&&(t.hcProperties.qDynamicScript=[])}(this),this.hcProperties.qDimensions=qw(this.hcProperties.qDimensions),this.hcProperties.qMeasures=qw(this.hcProperties.qMeasures),{}):{}):{}}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qDimensions??[]}getDimensionLayout(e){return this.getDimensionLayouts().filter(t=>e===t.cId)[0]}getDimensionLayouts(){const e=Ow(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const i=Mw(e);return Vw(this,t)?Bw(this,i,n):Qw(this,i,n)}async addDimensions(e,t=!1){const n=this.getDimensions(),i=n.length,o=[];let r=0;for await(const s of e){if(zw(this,n))return o;const e=Mw(s);if(Vw(this,t)){const t=await Bw(this,e);o.push(t)}else n.length<this.maxDimensions()&&(await Hw(this,e,i,n,o,r),r++)}return o}removeDimension(e,t){t&&Zw(this,e),Yw(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),i=this.getDimensions();if(0===e.length)return[];let o=[];const r=[...e].sort((e,t)=>t-e);if(t&&n.length>0){o=Pw(n,e);for await(const e of r)await Zw(this,e)}else if(i.length>0){o=Pw(i,e);for await(const e of r)await Yw(this,e)}return o}replaceDimension(e,t){return this.autoSortDimension(t).then(()=>function(e,t,n){if(!n)return;const i=e.getDimensions(),o=i[t],r={...n,qDef:{...n.qDef,cId:by()}};return i[t]=r,r&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,r,o,t,e.properties,e),r}(this,e,t))}reinsertDimension(e,t,n){const i=Nw(e);return Vw(this,t)?Bw(this,i,n).then(()=>{Ww(this,i)}):function(e,t,n){const i=e.getDimensions(),o=n??i.length;return i.length<e.maxDimensions()?(i.splice(o,0,t),Fw(e,i),Ww(e,t)):Promise.resolve(t)}(this,i,n)}moveDimension(e,t){const n=this.getDimensions(),i=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(gA(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,i){const o=t-n.length;let[r]=i.splice(0,1);return n.push(r),[r]=n.splice(e,1),i.splice(o,0,r),Promise.resolve(r)}(e,t,n,i):e>=n.length&&t<n.length?Promise.resolve(Gw(e,t,n,i)):Promise.resolve(function(e,t,n,i){const o=e-n.length,r=t-n.length;gA(i,o,r)}(e,t,n,i))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then(n=>{const i=t?.qLibraryId&&(o=t.qLibraryId,(r=n)&&r.find(e=>e.qInfo.qId===o)||null);var o,r;return i&&Tw(i.qData.info,t,e),t})}(this,e):function(e,t){return e.app.getFieldList().then(n=>{const i=t?.qDef?.qFieldDefs&&((e,t)=>{const n=(e=>{const t=[];return e.forEach(e=>{t.push((e=>{const t=e;return t.isDateField=(e=>e?.qDerivedFieldData&&(e?.qTags?.indexOf("$date")>-1||e?.qTags?.indexOf("$timestamp")>-1))(t),t.isGeoField=(e=>e.qTags.indexOf("$geoname")>-1)(t),t})(e));const n=(e=>{const t=[];return e.qDerivedFieldData?(e.qDerivedFieldData.qDerivedFieldLists.forEach(n=>{n.qFieldDefs.forEach(i=>{var o;t.push({qName:i.qName,displayName:(o=i.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:i.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})})}),t):t})(e);t.push(...n)}),t})(t.slice(0)),i=(e=>{let t=e;t=t.trim(),"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t})(e);return n&&((e,t)=>t&&t.find(t=>t.qName===e)||null)(i,n)||null})(t.qDef.qFieldDefs[0],n);return i&&Tw([i],t,e),t})}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qMeasures??[]}getMeasureLayouts(){const e=Ow(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter(t=>e===t.cId)[0]}addMeasure(e,t,n){const i=this.getAlternativeMeasure(),o=Nw(e);return $w(this,i,t)?jw(this,o,n):function(e,t,n){const i=e.getMeasures(),o=n??i.length;return i.length<e.maxMeasures()?(i.splice(o,0,t),e.autoSortMeasure(t).then(()=>(Uw(e,i),function(e,t){return t&&"function"==typeof e.measureDefinition.add?Promise.resolve(e.measureDefinition.add.call(null,t,e.properties,e)):Promise.resolve()}(e,t).then(()=>t)))):t}(this,o,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e,t=!1){const n=this.getMeasures(),i=[];let o=0;return e.forEach(async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=1e3}(this,n))return!1;const r=Nw(e);return $w(this,n,t)?(jw(this,r),i.push(r)):n.length<this.maxMeasures()&&(await function(e,t,n,i,o){const r=e.getDimensions(),s={...t};return s.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},hA(e.hcProperties.qInterColumnSortOrder,r.length+n.length+o),n.push(s),i.push(s),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,s,e.properties,e),Promise.resolve(i)}(this,r,n,i,o),o++),!0}),i}removeMeasure(e,t){t&&function(e,t){e.getAlternativeMeasures().splice(t,1)}(this,e),Xw(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),i=this.getAlternativeMeasures();if(0===e.length)return[];let o=[];if(t&&i.length>0)o=Pw(i,e),function(e,t){const n=e,i=function(e,t){return e.filter((e,n)=>!t.includes(n))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=i}(this,e);else if(n.length>0){o=Pw(n,e);const t=[...e].sort((e,t)=>t-e);for await(const e of t)await Xw(this,e)}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then(()=>function(e,t,n){const i=e.getMeasures(),o=i[t],r={...n,qDef:{...n.qDef,cId:by()}};return i[t]=r,r&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,r,o,t,e.properties,e),r}(this,e,t))}reinsertMeasure(e,t,n){const i=this.getAlternativeMeasures(),o=Nw(e);return $w(this,i,t)?jw(this,o,n):function(e,t,n){const i=e.getMeasures(),o=n??i.length;return i.length<e.maxMeasures()?(i.splice(o,0,t),Uw(e,i),function(e,t){return"function"==typeof e.measureDefinition.move?Promise.resolve(e.measureDefinition.move.call(null,t,e.properties,e,!0)).then(()=>t):Promise.resolve(t)}(e,t)):Promise.resolve(t)}(this,o,n)}moveMeasure(e,t){const n=this.getMeasures(),i=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(gA(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,i){const o=t-n.length;let[r]=i.splice(0,1);return n.push(r),[r]=n.splice(e,1),i.splice(o,0,r),Promise.resolve(r)}(e,t,n,i):e>=n.length&&t<n.length?Gw(e,t,n,i):Promise.resolve(function(e,t,n,i){const o=e-n.length,r=t-n.length;gA(i,o,r)}(e,t,n,i))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){cA.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){return this.hcProperties?.qDynamicScript||[]}},eS=Oc().bind(null,!0),tS={},{isArray:nS}=Array;function iS(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function oS(e){return void 0===e}function rS(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function sS(e,t){const n=t.substring(1).split("/").slice(0,-1);let i;return n.forEach((t,o)=>{if(o===n.length)return;i=+t;const r=isNaN(i)?{}:[];e[i||t]=oS(e[i||t])?r:e[t],e=e[i||t]}),e}function aS(e,t){let n=!0;if(iS(e)&&iS(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(i=>{aS(e[i],t[i])||(n=!1)}),n);if(nS(e)&&nS(t)){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n+=1)if(!aS(e[n],t[n]))return!1;return!0}return e===t}tS.generate=function(e,t,n){n=n||"";let i=[];return Object.keys(t).forEach(o=>{const r=function(e){return e?eS({},{val:e}).val:e}(t[o]),s=e[o],a=`${n}/${o}`;aS(r,s)||rS(t,o)||(oS(s)?i.push({op:"add",path:a,value:r}):iS(r)&&iS(s)?i=i.concat(tS.generate(s,r,a)):nS(r)&&nS(s)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let r=-1;function s(e,t,n){if(e[n]&&oS(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(aS(t,o))return i;if(!oS(t[0])&&oS(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(tS.generate(o[e],t[r],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return i}(s,r,a)):i.push({op:"replace",path:`${n}/${o}`,value:r}))}),Object.keys(e).forEach(o=>{oS(t[o])&&!rS(e,o)&&i.push({op:"remove",path:`${n}/${o}`})}),i},tS.apply=function(e,t){t.forEach(t=>{let n=sS(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&isNaN(+i)?n[i]:n[+i]||n;const r=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(nS(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(nS(o)&&nS(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(iS(o)&&iS(t.value))s=o,Object.keys(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!rS(s,e)&&delete s[e]}),eS(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){const o=sS(e,t.from);nS(n)?n.splice(+i,0,o.splice(+r,1)[0]):(n[i]=o[r],delete o[r])}else"remove"===t.op&&(nS(n)?n.splice(+i,1):delete n[i]);var s})},tS.clone=function(e){return eS({},e)},tS.createPatch=function(e,t,n){const i={op:e.toLowerCase(),path:n};return"move"===i.op?i.from=t:void 0!==t&&(i.value=t),i},tS.updateObject=function(e,t){Object.keys(e).length?tS.apply(e,tS.generate(e,t)):eS(e,t)};const lS=tS;let cS,dS;function hS(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function uS(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},contraintsWarning:!0}}function gS(e){mS(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 pS(e){if(e.__hooks.obsolete)return Promise.resolve();dS=-1,cS=e;let t=-1;cS.__hooks.initiated&&(t=cS.__hooks.list.length);try{cS.fn.call(null)}catch(e){console.error(e)}cS.__hooks.initiated=!0,t>-1&&t!==cS.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=cS.__hooks;return CS(cS),dS=void 0,cS=void 0,n.chain.promise||(n.chain.promise=new Promise(e=>{n.chain.resolve=e})),function(e){mS(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame(()=>{!function(e){mS(e.pendingEffects),e.macro=null,function(e){e.pendingPromises.length||e.micro||e.macro||(e.chain.promise=null,e.chain.resolve(!e.waitForData))}(e)}(e)}))}(n),n.chain.promise}function mS(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 fS(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 bS(e,t,n,i){try{return Promise.all(e.__hooks.menus.map(e=>Promise.resolve(e.fn(t,n,i)))).then(e=>e[e.length-1])}catch(e){console.error(e)}return Promise.resolve()}function vS(e){return e.__hooks.imperativeHandle}function CS(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function _S(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,CS(e))}function yS(e){if(void 0===cS)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=cS.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function AS(e){return yS(++dS),cS.context[e]}function wS(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function SS(e){return{__hooked:!0,fn:e,initiate:uS,run:pS,teardown:gS,runSnaps:fS,runMenu:bS,focus:nk,blur:ik,observeActions:_S,getImperativeHandle:vS,updateRectOnNextRun:wS}}function kS(e){const t=yS(++dS);if(!t.value){t.component=cS;const n=e=>{if(t.component.__hooks.obsolete)throw new Error("Calling setState on an unmounted component is a no-op and indicates a memory leak in your component.");const n="function"==typeof e?e(t.value[0]):e;var i;n!==t.value[0]&&(t.value[0]=n,(i=t.component).__hooks.micro||(i.__hooks.micro=setTimeout(()=>{i.__hooks.micro=null,pS(i)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function xS(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=yS(++dS);hS(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===cS.__hooks.pendingEffects.indexOf(n)&&cS.__hooks.pendingEffects.push(n))}function ES(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=yS(++dS);hS(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],cS.__hooks.pendingLayoutEffects.push(n))}function LS(e,t){t||console.warn("useMemo called without dependencies.");const n=yS(++dS);return hS(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function DS(e){return LS(()=>({current:e}),[])}function IS(e,t){const[n,i]=kS(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=yS(++dS);return o.component||(o.component=cS),ES(()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then(e=>{t||(o.teardown&&o.teardown(),i({resolved:e,rejected:void 0,state:"resolved"}))}).catch(e=>{t||(o.teardown&&o.teardown(),i({resolved:void 0,rejected:e,state:"resolved"}))}),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}},t),[n.resolved,n.rejected]}function NS(){return AS("element")}function MS(){const e=NS(),t=cS.__hooks.resizer,[n,i]=kS(()=>{const{left:t,top:n,width:i,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:i,height:o}});return t.current=n,-1===t.setters.indexOf(i)&&t.setters.push(i),t.update&&t.resize&&(t.update=!1,t.resize()),ES(()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===n&&s.top===i||t.setters.forEach(e=>e({left:n,top:i,width:o,height:r}))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let i=new ResizeObserver(n);return i.observe(e),()=>{i.unobserve(e),i.disconnect(e),i=null,t.resize=void 0}}},[e]),n}function TS(){return AS("layout")}function RS(){const e=AS("layout"),[t]=kS({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function qS(){return AS("appLayout")}function OS(){const e=AS("model");return e&&e.session?e:void 0}function PS(){const e=AS("app");return e&&e.session?e:void 0}function BS(){const e=AS("global");return e&&e.session?e:void 0}function FS(){return AS("selections")}function WS(){return AS("theme")}function zS(){return AS("nebbie")}function VS(){return AS("translator")}function HS(){return AS("deviceType")}function jS(){return AS("navigation")}function US(){return AS("plugins")}function $S(e,t){const[n]=kS({action(){n._config.action.call(null)}});return n.component||(n.component=cS,cS.__hooks.actions.list.push(n)),LS(()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0},t),n.action}function GS(){return cS.__hooks.contraintsWarning&&(console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),cS.__hooks.contraintsWarning=!1),AS("constraints")}function KS(){return AS("interactions")}function QS(){return AS("options")}function YS(e,t){const n=yS(++dS);if(!n.imperative){if(cS.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(hS(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],cS.__hooks.imperativeHandle=i}}function XS(e){const t=yS(++dS);t.value||(t.value=1,cS.__hooks.snaps.push(t)),t.fn=e}function ZS(e){const t=yS(++dS);t.value||(t.value=1,cS.__hooks.menus.push(t)),t.fn=e}function JS(){yS(++dS);const e=cS.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function ek(){return AS("emitter")}function tk(){const e=AS("keyboardNavigation"),t=AS("focusHandler");if(!cS.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n.enabled&&n.active&&(ik(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(cS);cS.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),nk(this))}.bind(cS);cS.__hooks.accessibility.focusFunction=n;const i=function(e=!1){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(cS);cS.__hooks.accessibility.focusSelectionFunction=i}const n=cS.__hooks.accessibility.focusFunction,i=cS.__hooks.accessibility.exitFunction,o=cS.__hooks.accessibility.focusSelectionFunction,[r,s]=kS({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return cS.__hooks.accessibility.setter=s,cS.__hooks.accessibility.enabled=e,xS(()=>s({active:!1,enabled:e,blur:i,focus:n,focusSelection:o}),[e]),r}function nk(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 ik(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 ok={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},rk=Object.keys(ok);function sk(e,t){console.warn("Obsolete API - time to get hooked!");const n={...ok};var i;i=n,Object.keys(ec().prototype).forEach(e=>{i[e]=ec().prototype[e]}),ec().init(i);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach(t=>{-1!==rk.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]});const r=function({sn:e,component:t}){const n={},i=[],o=(e=>t=>{const n=(i={...t,action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0},Object.keys(ec().prototype).forEach(e=>{i[e]=ec().prototype[e]}),ec().init(i),i);var i;return n})(t);return((e.definition.selectionToolbar||{}).items||[]).forEach(e=>{const t=o(e);n[e.key]=t,i.push(t)}),(e.definition.actions||[]).forEach(e=>{const t=o(e);n[e.key]=t}),{actions:n,selectionToolbarItems:i,destroy(){i.length=0}}}({sn:e,component:o}),s=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:s,selections:t.selections,actions:r.actions}),Object.assign(n,{actions:r.actions,model:t.model,app:t.app,selections:t.selections}),[n,r]}const ak=()=>{};function lk(e,t){return void 0===e?()=>t:()=>e}function ck(e){const t=e||{};return{min:"function"==typeof t.min?t.min:lk(t.min,0),max:"function"==typeof t.max?t.max:lk(t.max,1e3),added:t.added||t.add||ak,description:t.description||ak,moved:t.moved||t.move||ak,removed:t.removed||t.remove||ak,replaced:t.replaced||t.replace||ak,isDefined:()=>!!e}}function dk(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.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:n,resolveLayout:e=>((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(e,n,{}),dimensions:ck(e.dimensions),measures:ck(e.measures)}}function hk(e={}){let t,n=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(n=e.properties.initial,t=e.properties.onChange),{properties:{initial:n,onChange:t},data:{targets:((e.data||{}).targets||[]).map(dk)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function uk(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:hk(n.qae),component:n.component||{},create:e=>function(e,t,n){"function"==typeof e.component&&(e.component=SS(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==pS&&console.warn("Detected multiple supernova modules, this might cause problems.");const i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const r={},s=["appLayout","constraints","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:i,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:a,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let i=!1;Object.keys(t.options).forEach(n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(i=!0)}),i&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach((t,n)=>{this.context.plugins[n]!==t&&(e=!0)}),e&&(this.context.plugins=[...t.plugins],n=!0)}s.forEach(e=>{const i=t.context;if(i&&Object.prototype.hasOwnProperty.call(i,e)){let t=JSON.stringify(i[e]);"constraints"===e&&(t=JSON.stringify({...i[e],...a})),"interactions"===e&&(t=JSON.stringify({...i[e],...l})),t!==r[e]&&(n=!0,r[e]=t,this.context[e]=JSON.parse(t))}})}else n=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(n=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(n=!0,r.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,i){return e.component.runMenu(this,t,n,i)},focus(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?t.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,n):sk(e,t),r=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(...n){try{e.qae.properties.onChange.call({model:t.model},...n)}catch{console.warn("Error in chart setProperties interceptor onChange call ")}return t.model.__snInterceptor.setProperties.call(this,...n)},t.model.applyPatches=function(n,i){const o=i?"getEffectiveProperties":"getProperties";return t.model[o]().then(o=>{const r=lS.clone(o),s=n.map(e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath}));lS.apply(o,s);try{e.qae.properties.onChange.call({model:t.model},o)}catch{console.warn("Error in chart applyPatches interceptor onChange call ")}const a=lS.generate(r,o).map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}));return t.model.__snInterceptor.applyPatches.call(this,a,i)})},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach(e=>e())},logicalSize:e.definition.logicalSize||(()=>!1)}}(i,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new Jw(e)}:{}};return Object.keys(n).forEach(e=>{i[e]||(i.definition[e]=n[e])}),i}const gk=(e,t,n)=>{if(!e)return Promise.resolve();let i=lS.generate(t,n);return Oc()(!0,t,n),i&&i.length?(i=i.map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,i,!0):e.applyPatches(i,!0)):Promise.resolve()},pk=()=>{};async function mk(e,n,i,o,r,s=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:r=async()=>{},onRender:s=()=>{},onError:a=()=>{}}={}){let l,c,d,h=pk,u=null,g=null,p=null,m=null,f=!1;const b=new Promise(e=>{p=e}),v=new Promise(e=>{m=e}),C=e=>()=>{e?.(),m(),s(),f=!0};let _={},y=[];const A=new(ec());let w={};n.context?.enablePrivateExperimental&&(w={support:e=>!(!g||!f)&&u.current.support(e,c?.support,d),getPropertyPanelDefinition:()=>!(!g||!f)&&(c?c.definition:u.current.getExtensionDefinition().definition),toggleFocus(e){u.current.toggleFocus(e)},setOnBlurHandler(e){u.current.setOnBlurHandler(e)},onContextMenu:(...e)=>u.current.onContextMenu(...e)});const S={id:e.id,model:e,async destroy(){await r(),h(),h=pk},async convertTo(t,i=!0,o=!1){if(i){if((r=await e.getLayout())&&!r.qHasSoftPatches&&!r.qExtendsId&&(r.qMeta?.privileges||[]).indexOf("update")>-1&&!o){const i=await AA({halo:n,model:e,cellRef:u,newType:t});return await((e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t))(e,i.qProperty),i}const i=await e.getEffectiveProperties(),s=await AA({halo:n,model:e,cellRef:u,newType:t,properties:i}),a=s.qProperty;return await gk(e,i,a),s}var r;return await AA({halo:n,model:e,cellRef:u,newType:t})},async toggleDataView(t){let i;if(l||!1===t)l&&!0!==t&&(i=e,await n.app.destroySessionObject(l),l=void 0,c=void 0,d=void 0);else{let t=n.context.dataViewType;const o=await e.getEffectiveProperties();if(!n.types.getSupportedVersion(t)){if(!n.types.getSupportedVersion("table"))throw new Error("No data view type registered");t="table"}const r=await AA({halo:n,model:e,cellRef:u,newType:t,properties:o,viewDataMode:!0});i=await n.app.createSessionObject(r.qProperty),l=i.id,c=u.current.getExtensionDefinition(),d=await e.getLayout()}i&&u.current.setModel(i)},get viewDataToggled(){return void 0!==l},addListener(e,t){A.addListener(e,t)},removeListener(e,t){A.removeListener(e,t)},getImperativeHandle:async()=>(await v,u.current.getImperativeHandle()),takeSnapshot:async()=>(await v,u.current.takeSnapshot()),...w,__DO_NOT_USE__:{mount(r){if(g)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return g=r,[h,u]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,emitter:a,initialError:l,navigation:c,onError:d}){const{root:h}=e,u=t.createRef(),g=by(),p=Br.createPortal(t.createElement(Sw,{ref:u,halo:e,model:i,currentId:g,initialSnOptions:o,initialSnPlugins:r,initialError:l,onMount:s,emitter:a,navigation:c,onError:d}),n,g),m=()=>{h.remove(p),i.removeListener("closed",m)};return i.on("closed",m),h.addCell(g,u),(async()=>{try{await h.add(p,m)}catch(e){m(),s(),d(e)}})(),[m,u]}({halo:n,element:r,model:e,initialSnOptions:_,initialSnPlugins:y,initialError:o,onMount:p,emitter:A,navigation:i,onError:a}),b},async applyProperties(t){const n=xw("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;g?(async()=>{await b,u.current.setSnOptions({..._,...e,onInitialRender:C(t)})})():_={..._,...e,onInitialRender:C(t)}})(e)},plugins(e){(async e=>{Ew(e),g?(async()=>{await b,u.current.setSnPlugins(e)})():y=e})(e)},exportImage:()=>u.current.exportImage(),takeSnapshot:()=>u.current.takeSnapshot(),getModel:()=>e,convert:{async toType(t){const i=await e.getEffectiveProperties(),o=await AA({halo:n,model:e,cellRef:u,newType:t,properties:i}),r=o.qProperty;return await gk(e,i,r),o},async revert(){await e.clearSoftPatches()}}}};return S}({model:e,halo:i,navigation:o,initialError:r,onDestroy:s,onRender:a,onError:l});return n.options&&c.__DO_NOT_USE__.options(n.options),n.plugins&&c.__DO_NOT_USE__.plugins(n.plugins),n.element&&await c.__DO_NOT_USE__.mount(n.element),c}async function fk({type:e,version:t,fields:n,properties:i,extendProperties:o},r,s,a){let l={};const c=[],{modelStore:d}=a;try{const s=r.types.get({name:e,version:t});l=await s.initialProperties(i,o);const a=await s.supernova();n&&await lA({sn:a,properties:l,fields:n,children:c},r),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},l)}catch(t){l=s?null:{qInfo:{qType:e},visualization:e}}if(!s){const e=await r.app.createObject(l);return c.length>0&&await e.setFullPropertyTree({qProperty:l,qChildren:c}),d.set(e.id,e),e}return l}function bk(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const vk=(0,t.forwardRef)(({model:e,halo:n,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,unmount:a,navigation:l,onError:c},d)=>{const{root:h}=n,[u,g]=(0,t.useState)(e),[p]=yd(u),{theme:m,modelStore:f}=(0,t.useContext)(ld),[b,v]=(0,t.useState)([]),[C,_]=(0,t.useState)(void 0),[y,A]=(0,t.useState)(void 0),[w,S]=(0,t.useState)(""),k=(0,t.useRef)({cellCount:0,cellsRendered:0,initialRender:!1});l?.setCurrentSheetId?.(u.id),(0,t.useEffect)(()=>{if(p){const e=JSON.stringify(p.cells);if(e===w)return;S(e);const o=async()=>{b.forEach(e=>{h.removeCell(e.currentId)});const e=p.cells;k.cellCount=e.length,k.cellsRendered=0;const o=()=>{k.cellsRendered++,k.cellsRendered!==k.cellCount||k.initialRender||(k.initialRender=!0,i.onInitialRender())},{columns:r,rows:s}=p,a=await Promise.all(e.map(async e=>{let a;const l=new Promise(e=>{a=e}),c=b.find(t=>t.id===e.name);if(c)return c.bounds=bk(e,r,s),delete c.mountedPromise,c;const d=await async function({id:e,options:t,plugins:n,element:i},o,r){const{modelStore:s,rpcRequestModelStore:a}=r,l=`${e}`;let c=a.get(l);c||(c=o.app.getObject(e),a.set(l,c));const d=await c;return s.set(l,d),mk(d,{options:t,plugins:n,element:i},o)}({id:e.name},n,f);return{model:d.model,id:e.name,bounds:bk(e,r,s),cellRef:t.createRef(),currentId:by(),mounted:a,mountedPromise:l,options:{...i,onInitialRender:o}}}));a.forEach(e=>h.addCell(e.currentId,e.cellRef)),v(a)};o()}},[p]),(0,t.useEffect)(()=>{const e=()=>{u.removeListener("closed",e),a()};return u.on("closed",e),()=>u.removeListener("closed",e)},[u]);const x=(0,t.useMemo)(()=>b?b.map(e=>function(e,n,i,o,r,s,a,l){const{x:c,y:d,width:h,height:u}=e.bounds,g={left:`${c}%`,top:`${d}%`,width:`${h}%`,height:`${u}%`,position:"absolute"},p=n.public.galaxy?.flags;return p?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(g.boxSizing="border-box",g.padding="4px"),t.createElement("div",{style:g,key:e.model.id},t.createElement(Sw,{ref:e.cellRef,halo:n,model:e.model,currentId:e.currentId,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,navigation:a,onError:l}))}(e,n,e.options,o,r,e.mounted,l,c)):[],[b]);(0,t.useEffect)(()=>{const e=p?.components?p.components.find(e=>"general"===e.key):null;_(z_(e,n.public.theme)),A(W_(e,n.app))},[p,n.public.theme,n.app,m]),(0,t.useImperativeHandle)(d,()=>({setModel:g}),[]);const E=!p||void 0===p.height||Number.isNaN(p.height)?"100%":`${Number(p.height)}%`,L=b.map(e=>e.mountedPromise),D=L.filter(e=>!!e);return D.length&&Promise.all(L).then(()=>{s()}),t.createElement("div",{className:"njs-sheet",style:{width:"100%",height:E,position:"relative",backgroundColor:C,backgroundImage:y&&y.url?`url(${y.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:y&&y.size,backgroundPosition:y&&y.pos}},x)}),Ck=vk,_k=()=>{};async function yk({id:e,options:n,plugins:i,element:o,onRender:r,onError:s,navigation:a},l,c){const{modelStore:d,rpcRequestModelStore:h}=c,u=`${e}`;let g=h.get(u);g||(g=l.app.getObject(e),h.set(u,g));const p=await g;d.set(u,p);const m=a||("sheet"===p.genericType?function(e,t,n){const{galaxy:i}=e.public;if(i.anything?.sense?.navigation)return i.anything?.sense?.navigation;const o={model:n},r={goToSheet:async n=>{if(!o.sheetRef)return;const{modelStore:i,rpcRequestModelStore:s}=t,a=`${n}`;let l,c=s.get(a);c||(c=e.app.getObject(n),s.set(a,c));try{if(l=await c,"sheet"!==l.genericType)return}catch(e){return}i.set(a,l),o.sheetRef?.current?.setModel?.(l),o.model=l,r.emit("sheetChanged")},setSheetRef:e=>{o.sheetRef=e},getCurrentSheetId:()=>!!o.model&&o.model.id};return gb(r),r}(l,c,p):void 0);return"sheet"===p.genericType?async function(e,n,i,o,r,s=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:r=async()=>{},onRender:s=()=>{},onError:a=()=>{}}={}){let l=_k,c=null,d=null,h=null,u=null;const g=new Promise(e=>{h=e}),p=new Promise(e=>{u=e}),m=e=>()=>{e?.(),u(),s()};let f={},b=[];const v={id:e.id,model:e,navigation:i,getImperativeHandle:async()=>(await p,c.current.getImperativeHandle()),async destroy(){await r(),l(),l=_k},__DO_NOT_USE__:{mount(r){if(d)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return d=r,[l,c]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a,navigation:l,onError:c}){const{root:d}=e,h=t.createRef();let u;const g=()=>{d.remove(u)};return u=Br.createPortal(t.createElement(Ck,{ref:h,halo:e,model:i,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s,unmount:g,navigation:l,onError:c}),n,i.id),l.setSheetRef(h),d.add(u,g),[g,h]}({halo:n,element:r,model:e,initialSnOptions:f,initialSnPlugins:b,initialError:o,onMount:h,navigation:i,onError:a}),g},async applyProperties(t){const n=xw("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;d?(async()=>{await g,c.current.setSnOptions({...f,...e,onInitialRender:m(t)})})():f={...f,...e,onInitialRender:m(t)}})(e)},plugins(e){(async e=>{Ew(e),d?(async()=>{await g,c.current.setSnPlugins(e)})():b=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return v}({model:e,halo:i,navigation:o,initialError:r,onDestroy:s,onRender:a,onError:l});return n.options&&c.__DO_NOT_USE__.options(n.options),n.plugins&&c.__DO_NOT_USE__.plugins(n.plugins),n.element&&await c.__DO_NOT_USE__.mount(n.element),c}(p,{options:n,plugins:i,element:o,onRender:r,onError:s},l,m):mk(p,{options:n,plugins:i,element:o,onRender:r,onError:s},l,m)}var Ak=s(3326),wk=s.n(Ak);const Sk={};function kk(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,r)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:r}=n,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||wk()(e,r.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!Sk[o]){const r=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(i||n.load)({name:e,version:t}),a=Promise.resolve(s);Sk[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 cw(`Failed to load visualization: '${r}'`,e)})}return Sk[o]}(s.name,s.version,t,n.load).then(e=>(i=i||uk(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i)),initialProperties(e,t=!1){return this.supernova().then(()=>{const n={qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o)};return t?(Oc()(!0,n,e),n):{...n,...e}})}};return s}({name:e,version:o},t,r),i=null},getMatchingVersionFromProperties:e=>{i||(i=function(e){const t=e.filter(e=>"undefined"===e);return[...t,...e.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("."))]}(Object.keys(n)));for(let t=i.length-1;t>=0;t--)if(n[i[t]].supportsPropertiesVersion(e))return i[t];return null},versions:n}}const xk={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},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())}};xk.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};const Ek=(e={},t={})=>({...e,...t}),Lk=(e=[],t=[])=>[...e,...t].filter((e,t,n)=>n.indexOf(e)===t),Dk=function e(i={}){const o=function(e){const t=Xl({initial:e});return Object.keys(Zl).forEach(e=>{t.translator.add(Zl[e])}),{translator:t.translator}}(i.context.language);function r(e,s){if(s)return r.createConfiguration(s)(e);let a={...i.context,translator:o.translator,hostConfig:i.hostConfig};const[l,c]=function({app:e,context:i}){let o,r=!1;const s=new Promise(e=>{o=e}),a=t.createRef(),l=document.createElement("div");l.style.display="none",l.setAttribute("data-nebulajs-version","6.0.0-alpha.1"),l.setAttribute("data-app-id",e.id),document.body.appendChild(l),i&&dd(i);const c=ud(e.id),d=gd(e.id),h=n.createRoot(l);h.render(t.createElement(pd,{ref:a,initialContext:i,renderCallback:o,modelStore:c,selectionStore:d}));const u={},g=[],p=[];return[{toggleFocusOfCells(e){Object.keys(u).forEach(t=>{u[t].current?.toggleFocus(t===e)})},cells:u,addCell(e,t){u[e]=t},removeCell(e){delete u[e]},add:(e,t)=>(async()=>{await s,p.push(e),g.push(t),a.current.setComps(p)})(),remove(e){r||(async()=>{await s;const t=p.indexOf(e);-1!==t&&(g[t]?.(),p.splice(t,1),g.splice(t,1)),a?.current?.setComps(p)})()},setMuiThemeName(e){(async()=>{await s,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await s,e&&dd(e),a.current.setContext(e)})()},destroy(){r=!0,g.forEach(e=>{e&&e()}),c.destroy(),h.unmount(),document.body.removeChild(l)}},c,d,a,s]}({app:e,context:a}),d=function({themes:e=[],loadTheme:t,root:n}={}){const i=sd();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),ad(5e3,{__timedOut:!0})]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(s="dark"===e.type?"dark":"light",i.internalAPI.setTheme(e,o),n.setMuiThemeName(s))}catch(e){console.error(e)}else i.internalAPI.setTheme({type:s},o),n.setMuiThemeName(s)},externalAPI:i.externalAPI}}({themes:i.themes,loadTheme:i.loadTheme,root:l});a.themeApi=d.externalAPI;const h={galaxy:{translator:o.translator,theme:d.externalAPI,flags:Lw(i.flags),deviceType:(p=i.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"),hostConfig:i.hostConfig,anything:i.anything},theme:d.externalAPI,translator:o.translator,nebbie:null},u={app:e,root:l,config:i,public:h,context:a,types:null},g=function({halo:e,parent:t}){const n={},i=t||{get:()=>{}};return{register:(t,i)=>{n[t.name]||(n[t.name]=kk(t.name,e)),n[t.name].register(t.version,i)},getSupportedVersion:(e,t)=>{if(n[e])return n[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:o}=e;if(n[t]){if(!n[t].versions[o]){const e=Object.keys(n[t].versions)[0];console.warn(`Version ${o} of ${t} is not registered. Falling back to version ${e}`),o=e}}else console.warn(`Visualization ${t} is not registered. Adding it now.`),this.register({name:t,version:o});return n[t].get(o)||i.get(e)},getList:()=>Object.keys(n).map(e=>({name:e,versions:Object.keys(n[e].versions).map(e=>"undefined"===e?void 0:e)})),clearFromCache:e=>{n[e]&&(n[e]=void 0),function(e){Object.keys(Sk).forEach(t=>{t.split("__")[0]===e&&(Sk[t]=void 0)})}(e)}}}({halo:u});var p;i.types.forEach(e=>g.register({name:e.name,version:e.version},{meta:e.meta,load:e.load}));let m=new Promise(e=>{(async()=>{if(await d.setTheme(i.context.theme),i.hostConfig&&Yl&&Yl.getWebResourceAuthParams){const{queryParams:e}=await Yl.getWebResourceAuthParams({hostConfig:i.hostConfig});a.queryParams=e,l.context(a)}})().then(e)}),f=null,b=null;const v={render:async e=>(await m,e.id?yk(e,u,c):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:r,element:s,extendProperties:a,navigation:l,onRender:c,onError:d},h,u){let g={};const p=[],{modelStore:m,subscribe:f}=u;let b;try{const o=h.types.get({name:e,version:t});g=await o.initialProperties(i,a);const r=await o.supernova();n&&await lA({sn:r,properties:g,fields:n,children:p},h),i&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},g)}catch(t){b=t,g={qInfo:{qType:e},visualization:e}}const v=await h.app.createSessionObject(g);p.length>0&&await v.setFullPropertyTree({qProperty:g,qChildren:p}),m.set(v.id,v);const C=f(v);return mk(v,{options:o,plugins:r,element:s,onRender:c,onError:d},h,l,b,async()=>{await h.app.destroySessionObject(v.id),C()})}(e,u,c)),destroy:async()=>{l.destroy()},create:async e=>fk(e,u,!1,c),generateProperties:async e=>fk(e,u,!0,c),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])}),t&&(a={...a,...t,translator:o.translator},t.theme&&(await m,m=d.setTheme(t.theme),await m),t.language&&u.public.translator.language(t.language),l.context(a))},selections:async()=>(f||(f={mount(n){b?console.error("Already mounted"):(b=function({element:e,app:n}){return Br.createPortal(t.createElement(vy,{app:n}),e,by())}({element:n,app:e}),l.add(b))},unmount(){b&&(l.remove(b),b=null)}}),f),field:async n=>{let i;const o="string"==typeof n?n:n.qLibraryId;if(n.qId)i=n.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const r={fieldName:o,async mount(s,a={}){if(!s)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);const c=()=>r.emit("selectionActivated"),d=()=>r.emit("selectionDeactivated");return new Promise(o=>{[this._instance,this._ref]=function({element:e,app:n,fieldIdentifier:i,qId:o,stateName:r="$",options:s={},renderedCallback:a}){const l=t.createRef();return[Br.createPortal(t.createElement(Zy,{ref:l,app:n,element:e,fieldIdentifier:i,qId:o,stateName:r,initialOptions:s,renderedCallback:a}),e,by()),l]}({element:s,app:e,fieldIdentifier:n,qId:i,options:Xy({onSelectionActivated:c,onSelectionDeactivated:d,...a}),stateName:a.stateName||"$",renderedCallback:o}),l.add(this._instance)})},unmount(){this._instance&&(l.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){const t=()=>r.emit("selectionActivated"),n=()=>r.emit("selectionDeactivated");if(r._ref?.current){const i=Xy({onSelectionActivated:t,onSelectionDeactivated:n,...e});r._ref.current.setOptions(i)}}}};return gb(r),r},getRegisteredTypes:g.getList,__DO_NOT_USE__:{types:g,popover(n,i,o){v._popoverInstance&&(l.remove(v._popoverInstance),v._popoverInstance=null);const r=((e={})=>{const t={...Jy};return Oc()(!0,t,e),t})({onPopoverClose:()=>v.emit("fieldPopoverClose"),...o});v._popoverInstance=t.createElement(eA,{element:n,key:by(),app:e,fieldIdentifier:i,options:r,stateName:o.stateName||"$"}),l.add(v._popoverInstance)}}};return u.public.nebbie=v,u.types=g,gb(v),v}return r.createConfiguration=t=>e(((e,t)=>({context:Ek(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:Lk(e.types,t.types),themes:Lk(e.themes,t.themes),flags:Ek(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:Ek(e.anything,t.anything)}))(i,t)),r.config=i,r}(xk),Ik=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},Nk=globalThis.crypto||{getRandomValues:()=>123456},Mk=function(e){return t=>{const n=Oc()({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^Nk.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}`;const i=n._mock;let o=n;return i&&(delete n._mock,o=Oc()({},n,i)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}},Tk=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,Rk=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const r=Tk(e,{defaultValue:t,args:o});return n?new Promise(e=>{setTimeout(()=>e(r),i)}):r},qk=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Ok(e){return!qk.includes(e)}function Pk(e){const t=Tk(e.getLayout);return t.qInfo&&t.qInfo.qId}function Bk(e,t){let n=Pk(e);const{delay:i}=t,{id:o,session:r,...s}=e;if(o&&n&&o!==n)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${n}, id: ${o}`);n=n||o||"object - "+ +Date.now();const a={id:n,session:Tk(r,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{},...Object.entries(s).reduce((e,[t,n])=>({...e,[t]:Rk(n,{async:Ok(t),delay:i})}),{}),genericType:e.type};return{[n]:a}}function Fk(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Pk(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const Wk=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(Fk);const n=function(e,t){return e.reduce((e,n)=>({...e,...Bk(n,t)}),{})}(e,t);return async e=>Promise.resolve(n[e])},zk=function(){return()=>Promise.resolve({id:"app-layout"})},Vk={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new Ik,i=new Mk(n),o=new Wk(e,t),r=new zk,s={id:"app - "+ +Date.now(),session:n,createSessionObject:i,destroySessionObject:async()=>{},getObject:o,getAppLayout:r,getListObject:async e=>o(e.qInfo?.qId)};return Promise.resolve(s)}(e,t)},Hk=Vk,jk={generator:uk,hook:SS,theme:sd,locale:Xl};var Uk=s(4548),$k=s(8044),Gk=s(5475),Kk=s(2579),Qk=s(2661);function Yk(e){return(0,ln.Ay)("MuiToolbar",e)}(0,an.A)("MuiToolbar",["root","gutters","regular","dense"]);const Xk=["className","component","disableGutters","variant"],Zk=(0,sn.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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),Jk=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:r=!1,variant:s="regular"}=n,a=(0,Zt.A)(n,Xk),l=(0,Jt.A)({},n,{component:o,disableGutters:r,variant:s}),c=(e=>{const{classes:t,disableGutters:n,variant:i}=e,o={root:["root",!n&&"gutters",i]};return(0,tn.A)(o,Yk,t)})(l);return(0,dn.jsx)(Zk,(0,Jt.A)({as:o,className:(0,en.A)(c.root,i),ref:t,ownerState:l},a))}),ex=Jk;function tx(e){return(0,ln.Ay)("MuiToggleButtonGroup",e)}const nx=(0,an.A)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),ix=t.createContext({}),ox=t.createContext(void 0);function rx(e){return(0,ln.Ay)("MuiToggleButton",e)}const sx=(0,an.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),ax=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],lx=(0,sn.Ay)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nx.grouped}`]:t.grouped},{[`& .${nx.grouped}`]:t[`grouped${(0,Vn.A)(n.orientation)}`]},{[`& .${nx.firstButton}`]:t.firstButton},{[`& .${nx.lastButton}`]:t.lastButton},{[`& .${nx.middleButton}`]:t.middleButton},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>(0,Jt.A)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${nx.grouped}`]:(0,Jt.A)({},"horizontal"===e.orientation?{[`&.${nx.selected} + .${nx.grouped}.${nx.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${nx.selected} + .${nx.grouped}.${nx.selected}`]:{borderTop:0,marginTop:0}})},"horizontal"===e.orientation?{[`& .${nx.firstButton},& .${nx.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${nx.lastButton},& .${nx.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${nx.firstButton},& .${nx.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${nx.lastButton},& .${nx.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},"horizontal"===e.orientation?{[`& .${nx.lastButton}.${sx.disabled},& .${nx.middleButton}.${sx.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${nx.lastButton}.${sx.disabled},& .${nx.middleButton}.${sx.disabled}`]:{borderTop:"1px solid transparent"}})),cx=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:r,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:h="horizontal",size:u="medium",value:g}=i,p=(0,Zt.A)(i,ax),m=(0,Jt.A)({},i,{disabled:a,fullWidth:c,orientation:h,size:u}),f=(e=>{const{classes:t,orientation:n,fullWidth:i,disabled:o}=e,r={root:["root","vertical"===n&&"vertical",i&&"fullWidth"],grouped:["grouped",`grouped${(0,Vn.A)(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,tn.A)(r,tx,t)})(m),b=t.useCallback((e,t)=>{if(!d)return;const n=g&&g.indexOf(t);let i;g&&n>=0?(i=g.slice(),i.splice(n,1)):i=g?g.concat(t):[t],d(e,i)},[d,g]),v=t.useCallback((e,t)=>{d&&d(e,g===t?null:t)},[d,g]),C=t.useMemo(()=>({className:f.grouped,onChange:l?v:b,value:g,size:u,fullWidth:c,color:s,disabled:a}),[f.grouped,l,v,b,g,u,c,s,a]),_=function(e){return t.Children.toArray(e).filter(e=>t.isValidElement(e))}(o),y=_.length,A=e=>{const t=0===e,n=e===y-1;return t&&n?"":t?f.firstButton:n?f.lastButton:f.middleButton};return(0,dn.jsx)(lx,(0,Jt.A)({role:"group",className:(0,en.A)(f.root,r),ref:n,ownerState:m},p,{children:(0,dn.jsx)(ix.Provider,{value:C,children:_.map((e,t)=>(0,dn.jsx)(ox.Provider,{value:A(t),children:e},t))})}))}),dx=cx;var hx=s(787);function ux(e){if(e.type)return e;if("#"===e.charAt(0))return ux(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Va.A)(9,e));let i,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),i=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,Va.A)(10,i))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:i}}function gx(e,t){return e=ux(e),t=function(e,t=0,n=1){return(0,hx.A)(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return-1!==t.indexOf("rgb")?i=i.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),i=-1!==t.indexOf("color")?`${n} ${i.join(" ")}`:`${i.join(", ")}`,`${t}(${i})`}(e)}function px(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}const mx=["value"],fx=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],bx=(0,sn.Ay)(ir,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${(0,Vn.A)(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n,i="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(i="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,n="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,Jt.A)({},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%"},{[`&.${sx.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})`:gx(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sx.selected}`]:{color:i,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:gx(i,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gx(i,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:gx(i,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})}),vx=t.forwardRef(function(e,n){const i=t.useContext(ix),{value:o}=i,r=(0,Zt.A)(i,mx),s=t.useContext(ox),a=(0,fn.A)((0,Jt.A)({},r,{selected:px(e.value,o)}),e),l=(0,rn.b)({props:a,name:"MuiToggleButton"}),{children:c,className:d,color:h="standard",disabled:u=!1,disableFocusRipple:g=!1,fullWidth:p=!1,onChange:m,onClick:f,selected:b,size:v="medium",value:C}=l,_=(0,Zt.A)(l,fx),y=(0,Jt.A)({},l,{color:h,disabled:u,disableFocusRipple:g,fullWidth:p,size:v}),A=(e=>{const{classes:t,fullWidth:n,selected:i,disabled:o,size:r,color:s}=e,a={root:["root",i&&"selected",o&&"disabled",n&&"fullWidth",`size${(0,Vn.A)(r)}`,s]};return(0,tn.A)(a,rx,t)})(y),w=s||"";return(0,dn.jsx)(bx,(0,Jt.A)({className:(0,en.A)(r.className,A.root,d,w),disabled:u,focusRipple:!g,ref:n,onClick:e=>{f&&(f(e,C),e.defaultPrevented)||m&&m(e,C)},onChange:m,value:C,ownerState:y,"aria-pressed":b},_,{children:c}))}),Cx=vx;function _x(e){return(0,ln.Ay)("MuiMenu",e)}(0,an.A)("MuiMenu",["root","paper","list"]);const yx=["onEntering"],Ax=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],wx={vertical:"top",horizontal:"right"},Sx={vertical:"top",horizontal:"left"},kx=(0,sn.Ay)(xh,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xx=(0,sn.Ay)(Sh,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ex=(0,sn.Ay)(Wf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Lx=t.forwardRef(function(e,n){var i,o;const r=(0,rn.b)({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:h,open:u,PaperProps:g={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:{onEntering:f}={},variant:b="selectedMenu",slots:v={},slotProps:C={}}=r,_=(0,Zt.A)(r.TransitionProps,yx),y=(0,Zt.A)(r,Ax),A=ei(),w=(0,Jt.A)({},r,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:f,PaperProps:g,transitionDuration:m,TransitionProps:_,variant:b}),S=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"],paper:["paper"],list:["list"]},_x,t)})(w),k=s&&!c&&u,x=t.useRef(null);let E=-1;t.Children.map(a,(e,n)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===E)&&(E=n))});const L=null!=(i=v.paper)?i:xx,D=null!=(o=C.paper)?o:g,I=$s({elementType:v.root,externalSlotProps:C.root,ownerState:w,className:[S.root,l]}),N=$s({elementType:L,externalSlotProps:D,ownerState:w,className:S.paper});return(0,dn.jsx)(kx,(0,Jt.A)({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:A?"right":"left"},transformOrigin:A?wx:Sx,slots:{paper:L,root:v.root},slotProps:{root:I,paper:N},open:u,ref:n,transitionDuration:m,TransitionProps:(0,Jt.A)({onEntering:(e,t)=>{x.current&&x.current.adjustStyleForScrollbar(e,{direction:A?"rtl":"ltr"}),f&&f(e,t)}},_),ownerState:w},y,{classes:p,children:(0,dn.jsx)(Ex,(0,Jt.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))},actions:x,autoFocus:s&&(-1===E||c),autoFocusItem:k,variant:b},d,{className:(0,en.A)(S.list,d.className),children:a}))}))}),Dx=Lx,Ix=new Map,Nx=[],Mx=Nx.map,Tx=Nx.some,Rx=Nx.hasOwnProperty,qx=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,Ox=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,Px=/(?:\.[^/]*|\/)$/;class Bx extends Error{constructor(e){super(e)}}function Fx(e){const t=qx.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function Wx(e){const t=new Map,n=o(null);function i(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise((t,n)=>{const i=document.createElement("script");i.onload=()=>{try{t(Nx.pop()(o(e)))}catch(e){n(new Bx("invalid module"))}i.remove()},i.onerror=()=>{n(new Bx("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=jx,document.head.appendChild(i)})),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function r(e){return arguments.length>1?Promise.all(Mx.call(arguments,n)).then(zx):n(e)}return r.alias=function(t){return Wx((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i))},r.resolve=e,r}function zx(e){const t={};for(const n of e)for(const e in n)Rx.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:Vx(n,e)}):t[e]=n[e]);return t}function Vx(e,t){return()=>e[t]}function Hx(e){return"exports"==(e+="")||"module"===e}function jx(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),Nx.push(Tx.call(t,Hx)?e=>{const i={},o={exports:i};return Promise.all(Mx.call(t,t=>"exports"==(t+="")?i:"module"===t?o:e(t))).then(e=>(n.apply(null,e),o.exports))}:e=>Promise.all(Mx.call(t,e)).then(e=>"function"==typeof n?n.apply(null,e):n))}Bx.prototype.name=Bx.name,Wx(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function n(t){const n=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let i=Ix.get(n);return i||Ix.set(n,i=fetch(n).then(e=>{if(!e.ok)throw new Bx("unable to load package.json");return e.redirected&&!Ix.has(e.url)&&Ix.set(e.url,i),e.json()})),i}return async function(i,o){if(i.startsWith(e)&&(i=i.substring(e.length)),/^(\w+:)|\/\//i.test(i))return i;if(/^[.]{0,2}\//i.test(i))return new URL(i,null==o?location:o).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new Bx("illegal name");const r=Fx(i);if(!r)return`${e}${i}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await n(Fx(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!Px.test(r.path)&&(r.path+=".js"),r.path&&r.version&&Ox.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await n(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),Px.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),jx.amd={};const Ux=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`,o=Wx(async e=>i(e));return o.alias({"@nebula.js/stardust":e})(n||t)},$x={};function Gx(e){const[n,i]=(0,t.useState)();return(0,t.useEffect)(()=>{if(e){const t=()=>{e.getProperties().then(e=>{i(e)})};return e.on("changed",t),t(),()=>{e.removeListener("changed",t)}}return()=>{}},[e]),[n,t=>e.setProperties(t)]}window.onHotChange=(e,t)=>($x[e]||($x[e]=[]),$x[e].push(t),window[e]&&t(),()=>{const n=$x[e].indexOf(t);$x[e].splice(n,1)});const Kx=t.createContext();function Qx({dc:e,def:t,properties:n,dimensions:i}){const o=n,r={dimensions:()=>i,measures:()=>[],addDimension(n){const i="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||by(),i.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(i,o),i},removeDimension(e){const n=i[e];return t.dimensions.removed(n,o,e),n},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>r.dimensions().length<r.maxDimensions(),canAddMeasure:()=>!1};return r}const Yx={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},Xx={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function Zx(e,t="dimension"){const n="dimension"===t?Yx:Xx,[i]=fd(n,e),[o]=yd(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function Jx(e){return(0,ln.Ay)("MuiListSubheader",e)}(0,an.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const eE=["className","color","component","disableGutters","disableSticky","inset"],tE=(0,sn.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Vn.A)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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})),nE=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=n,c=(0,Zt.A)(n,eE),d=(0,Jt.A)({},n,{color:o,component:r,disableGutters:s,disableSticky:a,inset:l}),h=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:r}=e,s={root:["root","default"!==n&&`color${(0,Vn.A)(n)}`,!i&&"gutters",o&&"inset",!r&&"sticky"]};return(0,tn.A)(s,Jx,t)})(d);return(0,dn.jsx)(tE,(0,Jt.A)({as:r,className:(0,en.A)(h.root,i),ref:t,ownerState:d},c))});nE.muiSkipListHighlight=!0;const iE=nE;var oE=s(5543),rE=s.n(oE),sE=s(5869),aE=s.n(sE),lE=s(6284),cE=s(4445);function dE(e){return(0,ln.Ay)("MuiInput",e)}const hE=(0,Jt.A)({},Fa,(0,an.A)("MuiInput",["root","underline","input"])),uE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],gE=(0,sn.Ay)(ol,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nl(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,Jt.A)({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"},[`&.${hE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hE.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${hE.disabled}, .${hE.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${hE.disabled}:before`]:{borderBottomStyle:"dotted"}})}),pE=(0,sn.Ay)(rl,{name:"MuiInput",slot:"Input",overridesResolver:il})({}),mE=t.forwardRef(function(e,t){var n,i,o,r;const s=(0,rn.b)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:u=!1,slotProps:g,slots:p={},type:m="text"}=s,f=(0,Zt.A)(s,uE),b=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,tn.A)(i,dE,t);return(0,Jt.A)({},t,o)})(s),v={root:{ownerState:{disableUnderline:a}}},C=(null!=g?g:c)?(0,Sn.A)(null!=g?g:c,v):v,_=null!=(n=null!=(i=p.root)?i:l.Root)?n:gE,y=null!=(o=null!=(r=p.input)?r:l.Input)?o:pE;return(0,dn.jsx)(ll,(0,Jt.A)({slots:{root:_,input:y},slotProps:C,fullWidth:d,inputComponent:h,multiline:u,ref:t,type:m},f,{classes:b}))});mE.muiName="Input";const fE=mE;function bE(e){return(0,ln.Ay)("MuiFilledInput",e)}const vE=(0,Jt.A)({},Fa,(0,an.A)("MuiFilledInput",["root","underline","input"])),CE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_E=(0,sn.Ay)(ol,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nl(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const i="light"===e.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Jt.A)({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}},[`&.${vE.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${vE.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vE.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(.${vE.disabled}, .${vE.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vE.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,Jt.A)({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}))}),yE=(0,sn.Ay)(rl,{name:"MuiFilledInput",slot:"Input",overridesResolver:il})(({theme:e,ownerState:t})=>(0,Jt.A)({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})),AE=t.forwardRef(function(e,t){var n,i,o,r;const s=(0,rn.b)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:h=!1,slotProps:u,slots:g={},type:p="text"}=s,m=(0,Zt.A)(s,CE),f=(0,Jt.A)({},s,{fullWidth:c,inputComponent:d,multiline:h,type:p}),b=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,tn.A)(i,bE,t);return(0,Jt.A)({},t,o)})(s),v={root:{ownerState:f},input:{ownerState:f}},C=(null!=u?u:l)?(0,Sn.A)(v,null!=u?u:l):v,_=null!=(n=null!=(i=g.root)?i:a.Root)?n:_E,y=null!=(o=null!=(r=g.input)?r:a.Input)?o:yE;return(0,dn.jsx)(ll,(0,Jt.A)({slots:{root:_,input:y},componentsProps:C,fullWidth:c,inputComponent:d,multiline:h,ref:t,type:p},m,{classes:b}))});AE.muiName="Input";const wE=AE;function SE(e){return(0,ln.Ay)("MuiFormLabel",e)}const kE=(0,an.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),xE=["children","className","color","component","disabled","error","filled","focused","required"],EE=(0,sn.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,Jt.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>(0,Jt.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${kE.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${kE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${kE.error}`]:{color:(e.vars||e).palette.error.main}})),LE=(0,sn.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${kE.error}`]:{color:(e.vars||e).palette.error.main}})),DE=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiFormLabel"}),{children:i,className:o,component:r="label"}=n,s=(0,Zt.A)(n,xE),a=Pa({props:n,muiFormControl:Oa(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Jt.A)({},n,{color:a.color||"primary",component:r,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:n,focused:i,disabled:o,error:r,filled:s,required:a}=e,l={root:["root",`color${(0,Vn.A)(n)}`,o&&"disabled",r&&"error",s&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return(0,tn.A)(l,SE,t)})(l);return(0,dn.jsxs)(EE,(0,Jt.A)({as:r,ownerState:l,className:(0,en.A)(c.root,o),ref:t},s,{children:[i,a.required&&(0,dn.jsxs)(LE,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}),IE=DE;function NE(e){return(0,ln.Ay)("MuiInputLabel",e)}(0,an.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ME=["disableAnimation","margin","shrink","variant","className"],TE=(0,sn.Ay)(IE,{shouldForwardProp:e=>(0,Na.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kE.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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,Jt.A)({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,Jt.A)({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,Jt.A)({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)"}))),RE=t.forwardRef(function(e,t){const n=(0,rn.b)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:o,className:r}=n,s=(0,Zt.A)(n,ME),a=Oa();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=Pa({props:n,muiFormControl:a,states:["size","variant","required","focused"]}),d=(0,Jt.A)({},n,{disableAnimation:i,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),h=(e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:r,variant:s,required:a}=e,l={root:["root",n&&"formControl",!r&&"animated",o&&"shrink",i&&"normal"!==i&&`size${(0,Vn.A)(i)}`,s],asterisk:[a&&"asterisk"]},c=(0,tn.A)(l,NE,t);return(0,Jt.A)({},t,c)})(d);return(0,dn.jsx)(TE,(0,Jt.A)({"data-shrink":l,ownerState:d,ref:t,className:(0,en.A)(h.root,r)},s,{classes:h}))}),qE=RE;function OE(e){return(0,ln.Ay)("MuiFormControl",e)}(0,an.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const PE=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],BE=(0,sn.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,Jt.A)({},t.root,t[`margin${(0,Vn.A)(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>(0,Jt.A)({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%"})),FE=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiFormControl"}),{children:o,className:r,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:h=!1,hiddenLabel:u=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined"}=i,b=(0,Zt.A)(i,PE),v=(0,Jt.A)({},i,{color:s,component:a,disabled:l,error:c,fullWidth:h,hiddenLabel:u,margin:g,required:p,size:m,variant:f}),C=(e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root","none"!==n&&`margin${(0,Vn.A)(n)}`,i&&"fullWidth"]};return(0,tn.A)(o,OE,t)})(v),[_,y]=t.useState(()=>{let e=!1;return o&&t.Children.forEach(o,t=>{if(!(0,ms.A)(t,["Input","Select"]))return;const n=(0,ms.A)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[A,w]=t.useState(()=>{let e=!1;return o&&t.Children.forEach(o,t=>{(0,ms.A)(t,["Input","Select"])&&(el(t.props,!0)||el(t.props.inputProps,!0))&&(e=!0)}),e}),[S,k]=t.useState(!1);l&&S&&k(!1);const x=void 0===d||l?S:d;let E;const L=t.useMemo(()=>({adornedStart:_,setAdornedStart:y,color:s,disabled:l,error:c,filled:A,focused:x,fullWidth:h,hiddenLabel:u,size:m,onBlur:()=>{k(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{k(!0)},registerEffect:E,required:p,variant:f}),[_,s,l,c,A,x,h,u,E,p,m,f]);return(0,dn.jsx)(qa.Provider,{value:L,children:(0,dn.jsx)(BE,(0,Jt.A)({as:a,ownerState:v,className:(0,en.A)(C.root,r),ref:n},b,{children:o}))})}),WE=FE;function zE(e){return(0,ln.Ay)("MuiFormHelperText",e)}const VE=(0,an.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var HE;const jE=["children","className","component","disabled","error","filled","focused","margin","required","variant"],UE=(0,sn.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,Vn.A)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>(0,Jt.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${VE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${VE.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),$E=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:r="p"}=n,s=(0,Zt.A)(n,jE),a=Pa({props:n,muiFormControl:Oa(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Jt.A)({},n,{component:r,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,contained:n,size:i,disabled:o,error:r,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",r&&"error",i&&`size${(0,Vn.A)(i)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,tn.A)(c,zE,t)})(l);return(0,dn.jsx)(UE,(0,Jt.A)({as:r,ownerState:l,className:(0,en.A)(c.root,o),ref:t},s,{children:" "===i?HE||(HE=(0,dn.jsx)("span",{className:"notranslate",children:"​"})):i}))}),GE=$E;function KE(e){return(0,ln.Ay)("MuiNativeSelect",e)}const QE=(0,an.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),YE=["className","disabled","error","IconComponent","inputRef","variant"],XE=({ownerState:e,theme:t})=>(0,Jt.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Jt.A)({},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"},[`&.${QE.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}}),ZE=(0,sn.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Na.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${QE.multiple}`]:t.multiple}]}})(XE),JE=({ownerState:e,theme:t})=>(0,Jt.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${QE.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),eL=(0,sn.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Vn.A)(n.variant)}`],n.open&&t.iconOpen]}})(JE),tL=t.forwardRef(function(e,n){const{className:i,disabled:o,error:r,IconComponent:s,inputRef:a,variant:l="standard"}=e,c=(0,Zt.A)(e,YE),d=(0,Jt.A)({},e,{disabled:o,variant:l,error:r}),h=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e,a={select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Vn.A)(n)}`,r&&"iconOpen",i&&"disabled"]};return(0,tn.A)(a,KE,t)})(d);return(0,dn.jsxs)(t.Fragment,{children:[(0,dn.jsx)(ZE,(0,Jt.A)({ownerState:d,className:(0,en.A)(h.select,i),disabled:o,ref:a||n},c)),e.multiple?null:(0,dn.jsx)(eL,{as:s,ownerState:d,className:h.icon})]})}),nL=tL;var iL=s(9395);function oL(e){return(0,ln.Ay)("MuiSelect",e)}const rL=(0,an.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var sL;const aL=["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"],lL=(0,sn.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${rL.select}`]:t.select},{[`&.${rL.select}`]:t[n.variant]},{[`&.${rL.error}`]:t.error},{[`&.${rL.multiple}`]:t.multiple}]}})(XE,{[`&.${rL.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cL=(0,sn.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Vn.A)(n.variant)}`],n.open&&t.iconOpen]}})(JE),dL=(0,sn.Ay)("input",{shouldForwardProp:e=>(0,iL.A)(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 hL(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function uL(e){return null==e||"string"==typeof e&&!e.trim()}const gL=t.forwardRef(function(e,n){var i;const{"aria-describedby":o,"aria-label":r,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:h,disabled:u,displayEmpty:g,error:p=!1,IconComponent:m,inputRef:f,labelId:b,MenuProps:v={},multiple:C,name:_,onBlur:y,onChange:A,onClose:w,onFocus:S,onOpen:k,open:x,readOnly:E,renderValue:L,SelectDisplayProps:D={},tabIndex:I,value:N,variant:M="standard"}=e,T=(0,Zt.A)(e,aL),[R,q]=(0,uu.A)({controlled:N,default:h,name:"Select"}),[O,P]=(0,uu.A)({controlled:x,default:d,name:"Select"}),B=t.useRef(null),F=t.useRef(null),[W,z]=t.useState(null),{current:V}=t.useRef(null!=x),[H,j]=t.useState(),U=(0,wo.A)(n,f),$=t.useCallback(e=>{F.current=e,e&&z(e)},[]),G=null==W?void 0:W.parentNode;t.useImperativeHandle(U,()=>({focus:()=>{F.current.focus()},node:B.current,value:R}),[R]),t.useEffect(()=>{d&&O&&W&&!V&&(j(a?null:G.clientWidth),F.current.focus())},[W,a]),t.useEffect(()=>{s&&F.current.focus()},[s]),t.useEffect(()=>{if(!b)return;const e=(0,ha.A)(F.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[b]);const K=(e,t)=>{e?k&&k(t):w&&w(t),V||(j(a?null:G.clientWidth),P(e))},Q=t.Children.toArray(l),Y=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(C){n=Array.isArray(R)?R.slice():[];const t=R.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),R!==n&&(q(n),A)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:_}}),A(o,e)}C||K(!1,t)}},X=null!==W&&O;let Z,J;delete T["aria-invalid"];const ee=[];let te=!1,ne=!1;(el({value:R})||g)&&(L?Z=L(R):te=!0);const ie=Q.map(e=>{if(!t.isValidElement(e))return null;let n;if(C){if(!Array.isArray(R))throw new Error((0,Va.A)(2));n=R.some(t=>hL(t,e.props.value)),n&&te&&ee.push(e.props.children)}else n=hL(R,e.props.value),n&&te&&(J=e.props.children);return n&&(ne=!0),t.cloneElement(e,{"aria-selected":n?"true":"false",onClick:Y(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:n,value:void 0,"data-value":e.props.value})});te&&(Z=C?0===ee.length?null:ee.reduce((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):J);let oe,re=H;!a&&V&&W&&(re=G.clientWidth),oe=void 0!==I?I:u?null:0;const se=D.id||(_?`mui-component-select-${_}`:void 0),ae=(0,Jt.A)({},e,{variant:M,value:R,open:X,error:p}),le=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e,a={select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Vn.A)(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return(0,tn.A)(a,oL,t)})(ae),ce=(0,Jt.A)({},v.PaperProps,null==(i=v.slotProps)?void 0:i.paper),de=(0,oi.A)();return(0,dn.jsxs)(t.Fragment,{children:[(0,dn.jsx)(lL,(0,Jt.A)({ref:$,tabIndex:oe,role:"combobox","aria-controls":de,"aria-disabled":u?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[b,se].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{E||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))},onMouseDown:u||E?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),K(!0,e))},onBlur:e=>{!X&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:R,name:_}}),y(e))},onFocus:S},D,{ownerState:ae,className:(0,en.A)(D.className,le.select,c),id:se,children:uL(Z)?sL||(sL=(0,dn.jsx)("span",{className:"notranslate",children:"​"})):Z})),(0,dn.jsx)(dL,(0,Jt.A)({"aria-invalid":p,value:Array.isArray(R)?R.join(","):R,name:_,ref:B,"aria-hidden":!0,onChange:e=>{const t=Q.find(t=>t.props.value===e.target.value);void 0!==t&&(q(t.props.value),A&&A(e,t))},tabIndex:-1,disabled:u,className:le.nativeInput,autoFocus:s,ownerState:ae},T)),(0,dn.jsx)(cL,{as:m,className:le.icon,ownerState:ae}),(0,dn.jsx)(Dx,(0,Jt.A)({id:`menu-${_||""}`,anchorEl:G,open:X,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:(0,Jt.A)({"aria-labelledby":b,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:de},v.MenuListProps),slotProps:(0,Jt.A)({},v.slotProps,{paper:(0,Jt.A)({},ce,{style:(0,Jt.A)({minWidth:re},null!=ce?ce.style:null)})}),children:ie}))]})}),pL=gL,mL=(0,Gi.A)((0,dn.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),fL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bL=["root"],vL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,Na.A)(e)&&"variant"!==e,slot:"Root"},CL=(0,sn.Ay)(fE,vL)(""),_L=(0,sn.Ay)(pl,vL)(""),yL=(0,sn.Ay)(wE,vL)(""),AL=t.forwardRef(function(e,n){const i=(0,rn.b)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=mL,id:h,input:u,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:b=!1,native:v=!1,onClose:C,onOpen:_,open:y,renderValue:A,SelectDisplayProps:w,variant:S="outlined"}=i,k=(0,Zt.A)(i,fL),x=v?nL:pL,E=Pa({props:i,muiFormControl:Oa(),states:["variant","error"]}),L=E.variant||S,D=(0,Jt.A)({},i,{variant:L,classes:s}),I=(e=>{const{classes:t}=e;return t})(D),N=(0,Zt.A)(I,bL),M=u||{standard:(0,dn.jsx)(CL,{ownerState:D}),outlined:(0,dn.jsx)(_L,{label:p,ownerState:D}),filled:(0,dn.jsx)(yL,{ownerState:D})}[L],T=(0,wo.A)(n,Ed(M));return(0,dn.jsx)(t.Fragment,{children:t.cloneElement(M,(0,Jt.A)({inputComponent:x,inputProps:(0,Jt.A)({children:r,error:E.error,IconComponent:d,variant:L,type:void 0,multiple:b},v?{id:h}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:C,onOpen:_,open:y,renderValue:A,SelectDisplayProps:(0,Jt.A)({id:h},w)},g,{classes:g?(0,Sn.A)(N,g.classes):N},u?u.props.inputProps:{})},(b&&v||c)&&"outlined"===L?{notched:!0}:{},{ref:T,className:(0,en.A)(M.props.className,a,I.root)},!u&&{variant:L},k))})});AL.muiName="Select";const wL=AL;function SL(e){return(0,ln.Ay)("MuiTextField",e)}(0,an.A)("MuiTextField",["root"]);const kL=["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"],xL={standard:fE,filled:wE,outlined:pl},EL=(0,sn.Ay)(WE,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LL=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:r,className:s,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:h,fullWidth:u=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:b,inputRef:v,label:C,maxRows:_,minRows:y,multiline:A=!1,name:w,onBlur:S,onChange:k,onFocus:x,placeholder:E,required:L=!1,rows:D,select:I=!1,SelectProps:N,type:M,value:T,variant:R="outlined"}=n,q=(0,Zt.A)(n,kL),O=(0,Jt.A)({},n,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:u,multiline:A,required:L,select:I,variant:R}),P=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"]},SL,t)})(O),B={};"outlined"===R&&(m&&void 0!==m.shrink&&(B.notched=m.shrink),B.label=C),I&&(N&&N.native||(B.id=void 0),B["aria-describedby"]=void 0);const F=(0,oi.A)(p),W=g&&F?`${F}-helper-text`:void 0,z=C&&F?`${F}-label`:void 0,V=xL[R],H=(0,dn.jsx)(V,(0,Jt.A)({"aria-describedby":W,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:u,multiline:A,name:w,rows:D,maxRows:_,minRows:y,type:M,value:T,id:F,inputRef:v,onBlur:S,onChange:k,onFocus:x,placeholder:E,inputProps:f},B,b));return(0,dn.jsxs)(EL,(0,Jt.A)({className:(0,en.A)(P.root,s),disabled:c,error:d,fullWidth:u,ref:t,required:L,color:a,variant:R,ownerState:O},q,{children:[null!=C&&""!==C&&(0,dn.jsx)(qE,(0,Jt.A)({htmlFor:F,id:z},m,{children:C})),I?(0,dn.jsx)(wL,(0,Jt.A)({"aria-describedby":W,id:F,labelId:z,value:T,input:H},N,{children:r})):H,g&&(0,dn.jsx)(GE,(0,Jt.A)({id:W},h,{children:g}))]}))}),DL=LL,IL="Search",NL={gridContainer:`${IL}-gridContainer`,gridItem:`${IL}-gridItem`},ML=(0,sn.Ay)(yr)(({theme:e})=>({[`& .${NL.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${NL.gridItem}`]:{padding:e.spacing(0,1,0,1)}}));function TL(){const e=document.querySelector('meta[name="viewport"]');e instanceof HTMLMetaElement&&(e.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0")}function RL({onChange:e=()=>{},onEnter:n=()=>{},onEscape:i=()=>{}}){const[o,r]=(0,t.useState)("");return t.createElement(ML,{className:NL.gridContainer,item:!0,container:!0,direction:"row",alignItems:"center"},t.createElement(yr,{item:!0},t.createElement(rb,null)),t.createElement(yr,{className:NL.gridItem,item:!0,xs:!0},t.createElement(DL,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{r(t.target.value),e(t.target.value)},onFocus:TL,onKeyDown:e=>{switch(e.key){case"Enter":n(),r("");break;case"Escape":i()}}})))}function qL({field:e,onSelect:n,sub:i,parts:o}){return t.createElement(Is,{button:!0,onClick:()=>n(e.qName),"data-key":e.qName},t.createElement(Os,null,o.map((e,n)=>t.createElement("span",{key:n,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text))),i&&t.createElement(lE.A,{fontSize:"small"}))}function OL({item:e,onSelect:n,parts:i}){return t.createElement(Is,{button:!0,onClick:()=>n(e.qInfo),"data-key":e.qInfo.qId},t.createElement(Os,null,i.map((e,n)=>t.createElement("span",{key:n,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text))))}function PL({aggr:e,field:n,onSelect:i}){return t.createElement(Is,{button:!0,onClick:()=>i(e),"data-key":e},t.createElement(Os,null,`${e}(${n})`))}function BL({app:e,onSelect:n,title:i="",type:o="dimension",searchTerm:r=""}){const[s]=Zx(e,o),a=(0,t.useMemo)(()=>s.slice().sort((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())),[s]);return s.length>0?t.createElement(t.Fragment,null,t.createElement(iE,{component:"div",style:{backgroundColor:"inherit"}},i),a.map(e=>{const i=aE()(e.qData.title,r),o=rE()(e.qData.title,i);return r&&0===i.length?null:t.createElement(OL,{key:e.qInfo.qId,item:e,onSelect:n,parts:o})})):null}function FL({alignTo:e,show:n,close:i,onSelected:o,type:r}){const s=(0,t.useContext)(Kx),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(""),h=Gn(),[u]=fd({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=yd(u),p=(0,t.useMemo)(()=>(g&&g.qFieldList.qItems||[]).slice().sort((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())),[g]),m=e=>{e&&e.qId?(o(e),i()):"measure"===r?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return t.createElement(xh,{open:n,onClose:i,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:h.palette.background.lightest}}},!a&&t.createElement(RL,{onChange:d}),a&&t.createElement(gs,{dense:!0,component:"nav"},t.createElement(Is,{button:!0,onClick:()=>l(null)},t.createElement(Mf,null,t.createElement(cE.A,null)),t.createElement(Os,null,"Back")),t.createElement(hf,null),t.createElement(iE,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map(e=>t.createElement(PL,{key:e,aggr:e,field:a,onSelect:f}))),!a&&p.length>0&&t.createElement(gs,{dense:!0,component:"nav",style:{background:h.palette.background.lightest}},t.createElement(BL,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),t.createElement(iE,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map(e=>{const n=aE()(e.qName,c),i=rE()(e.qName,n);return c&&0===n.length?null:t.createElement(qL,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:i})})))}const WL=({field:e,libraryItems:t})=>{if(e.qLibraryId){const n=t.filter(t=>t.qInfo.qId===e.qLibraryId)[0];return n?n.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function zL({items:e,type:n="dimension",label:i="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,t.useState)(!1),d=(0,t.useRef)(null),h=(0,t.useContext)(Kx),[u]=Zx(h,n);return t.createElement("div",null,t.createElement(Lr,{variant:"overline"},i),t.createElement(gs,{dense:!0},e.map((e,i)=>t.createElement(Is,{disableGutters:!0,key:e.qDef&&e.qDef.cId||i},t.createElement(Os,null,t.createElement(WL,{field:e,libraryItems:u,type:n})),t.createElement(Ss,null,t.createElement(cr,{onClick:()=>{s(i)},size:"large"},t.createElement(as,null)))))),t.createElement(wl,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&t.createElement(FL,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?r(e):e&&r("dimension"===n?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:n}))}function VL({setProperties:e,target:n,properties:i}){const[o,r]=(0,t.useState)([]),s=n.dimensions&&n.dimensions.max&&n.dimensions.max()>1?Qx:oA,a=n.propertyPath.match("/qHyperCube")?iA:s,l=((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(i,n.propertyPath),c=(0,t.useMemo)(()=>a({def:n,dc:l,properties:i,dimensions:o}),[l,n,i,o]);return t.createElement("div",{style:{width:"100%"}},t.createElement(Lr,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},n.propertyPath),t.createElement(zL,{key:"dimensions",onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(n);e(i).then(()=>{r([...o,s])})},onRemoved:t=>{c.removeDimension(t),e(i).then(()=>{r([...o.slice(0,t),...o.slice(t+1)])})},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),t.createElement(zL,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(i)},onRemoved:t=>{c.removeMeasure(t),e(i)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function HL({setProperties:e,sn:n,properties:i}){if(!n)return null;const{targets:o}=n.qae.data;return o.length?t.createElement(gs,null,o.map(n=>t.createElement(Is,{key:n.propertyPath,divider:!0,disableGutters:!0},t.createElement(VL,{target:n,properties:i,setProperties:e})))):t.createElement(Lr,null,"No data targets found")}const jL=t.createContext({}),UL=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],$L=["component","slots","slotProps"],GL=["component"];function KL(e){return(0,ln.Ay)("MuiAccordion",e)}const QL=(0,an.A)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),YL=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],XL=(0,sn.Ay)(ph,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${QL.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${QL.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${QL.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e})=>({variants:[{props:e=>!e.square,style:{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}}}},{props:e=>!e.disableGutters,style:{[`&.${QL.expanded}`]:{margin:"16px 0"}}}]})),ZL=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiAccordion"}),{children:o,className:r,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:h=!1,slots:u={},slotProps:g={},TransitionComponent:p,TransitionProps:m}=i,f=(0,Zt.A)(i,YL),[b,v]=(0,uu.A)({controlled:c,default:s,name:"Accordion",state:"expanded"}),C=t.useCallback(e=>{v(!b),d&&d(e,!b)},[b,d,v]),[_,...y]=t.Children.toArray(o),A=t.useMemo(()=>({expanded:b,disabled:a,disableGutters:l,toggle:C}),[b,a,l,C]),w=(0,Jt.A)({},i,{square:h,disabled:a,disableGutters:l,expanded:b}),S=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:r}=e,s={root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!r&&"gutters"],region:["region"]};return(0,tn.A)(s,KL,t)})(w),k=(0,Jt.A)({transition:p},u),x=(0,Jt.A)({transition:m},g),[E,L]=function(e,t){const{className:n,elementType:i,ownerState:o,externalForwardedProps:r,getSlotOwnerState:s,internalForwardedProps:a}=t,l=(0,Zt.A)(t,UL),{component:c,slots:d={[e]:void 0},slotProps:h={[e]:void 0}}=r,u=(0,Zt.A)(r,$L),g=d[e]||i,p=js(h[e],o),m=Hs((0,Jt.A)({className:n},l,{externalForwardedProps:"root"===e?u:void 0,externalSlotProps:p})),{props:{component:f},internalRef:b}=m,v=(0,Zt.A)(m.props,GL),C=(0,Fs.A)(b,null==p?void 0:p.ref,t.ref),_=s?s(v):{},y=(0,Jt.A)({},o,_),A="root"===e?f||c:f,w=Ws(g,(0,Jt.A)({},"root"===e&&!c&&!d[e]&&a,"root"!==e&&!d[e]&&a,v,A&&{as:A},{ref:C}),y);return Object.keys(_).forEach(e=>{delete w[e]}),[g,w]}("transition",{elementType:ns,externalForwardedProps:{slots:k,slotProps:x},ownerState:w});return(0,dn.jsxs)(XL,(0,Jt.A)({className:(0,en.A)(S.root,r),ref:n,ownerState:w,square:h},f,{children:[(0,dn.jsx)(jL.Provider,{value:A,children:_}),(0,dn.jsx)(E,(0,Jt.A)({in:b,timeout:"auto"},L,{children:(0,dn.jsx)("div",{"aria-labelledby":_.props.id,id:_.props["aria-controls"],role:"region",className:S.region,children:y})}))]}))}),JL=ZL;function eD(e){return(0,ln.Ay)("MuiAccordionSummary",e)}const tD=(0,an.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),nD=["children","className","expandIcon","focusVisibleClassName","onClick"],iD=(0,sn.Ay)(ir,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${tD.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tD.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${tD.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${tD.expanded}`]:{minHeight:64}}}]}}),oD=(0,sn.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${tD.expanded}`]:{margin:"20px 0"}}}]})),rD=(0,sn.Ay)("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}),[`&.${tD.expanded}`]:{transform:"rotate(180deg)"}})),sD=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l}=i,c=(0,Zt.A)(i,nD),{disabled:d=!1,disableGutters:h,expanded:u,toggle:g}=t.useContext(jL),p=(0,Jt.A)({},i,{expanded:u,disabled:d,disableGutters:h}),m=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e,r={root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,tn.A)(r,eD,t)})(p);return(0,dn.jsxs)(iD,(0,Jt.A)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":u,className:(0,en.A)(m.root,r),focusVisibleClassName:(0,en.A)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:n,ownerState:p},c,{children:[(0,dn.jsx)(oD,{className:m.content,ownerState:p,children:o}),s&&(0,dn.jsx)(rD,{className:m.expandIconWrapper,ownerState:p,children:s})]}))}),aD=sD;function lD(e){return(0,ln.Ay)("MuiAccordionDetails",e)}(0,an.A)("MuiAccordionDetails",["root"]);const cD=["className"],dD=(0,sn.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),hD=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiAccordionDetails"}),{className:i}=n,o=(0,Zt.A)(n,cD),r=n,s=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"]},lD,t)})(r);return(0,dn.jsx)(dD,(0,Jt.A)({className:(0,en.A)(s.root,i),ref:t,ownerState:r},o))}),uD=hD;var gD=s(6698);let pD=null;const mD="AutoComponents",fD={summary:`${mD}-summary`,details:`${mD}-details`,root:`${mD}-root`},bD=(0,sn.Ay)(yr)(({theme:e})=>({[`& .${fD.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${fD.details}`]:{padding:e.spacing(1)}})),vD=(0,sn.Ay)(JL)(({theme:e})=>({[`& .${fD.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}})),CD={boolean:function({property:e,value:n,target:i,changed:o}){return t.createElement(hu,{control:t.createElement(Iu,{checked:n,onChange:t=>{i[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:n,target:i,changed:o}){const[r,s]=(0,t.useState)(n);return t.createElement(DL,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==n&&(i[e]=r,o())},label:e,value:r})},object:function({property:e,value:n,changed:i,app:o}){return t.createElement(vD,{square:!0,className:fD.root},t.createElement(aD,{expandIcon:t.createElement(gD.A,null),className:fD.summary},t.createElement(Lr,null,e)),t.createElement(uD,{className:fD.details},AD(n,i,o)))},number:function({property:e,value:n,target:i,changed:o}){const[r,s]=(0,t.useState)(+n);return t.createElement(DL,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==n&&(i[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:n,target:i,changed:o}){const r=n.qStringExpression&&n.qStringExpression.qExpr?n.qStringExpression.qExpr:"",[s,a]=(0,t.useState)(r);return t.createElement(DL,{variant:"standard",InputProps:{startAdornment:t.createElement(ob,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==n&&(i[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:n,target:i,changed:o,app:r}){const[s,a]=(0,t.useState)(n.name),[l,c]=(0,t.useState)([]);return(0,t.useEffect)(()=>{!async function(){const e=await async function(e){return pD||(pD=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await pD.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?t.createElement("em",null,"No variables in app"):t.createElement(WE,{size:"small",fullWidth:!0},t.createElement(wL,{onChange:t=>{a(t.target.value),i[e].name=t.target.value,i[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:s,renderValue:e=>0===e.length?t.createElement("em",null,"Select a variable"):e},l.map(e=>t.createElement(Lf,{key:e.value,value:e.value},e.label))))}},_D=/^q[A-Z]/;let yD=!1;function AD(e,n,i,o){o&&o.PP_EXPRESSIONS&&(yD=!0);const r=Object.keys(e).map(t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(_D.test(t))return!1;const n=((e,t)=>Array.isArray(e)?"array":yD&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":yD&&e&&"object"==typeof e&&"qStringExpression"in e?"expression":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"number"==typeof e?"number":e&&"object"==typeof e?"object":"unknown")(e[t],t);return!!CD[n]&&{Component:CD[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}}).filter(Boolean);return t.createElement(bD,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map(o=>t.createElement(yr,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},t.createElement(o.Component,{key:o.key,app:i,property:o.property,value:o.value,target:e,changed:n}))))}function wD({viz:e,sn:n,isTemp:i,storage:o,flags:r}){const[s,a]=Gx(e?.model),l=(0,t.useContext)(Kx),[c,d]=(0,t.useState)(!1!==o.get("readFromCache")),h=(0,t.useCallback)(()=>{a(s)},[e,n,s]);return n&&e&&s?t.createElement("div",{style:{minWidth:"250px",padding:"8px"}},i&&t.createElement(t.Fragment,null,t.createElement(yr,{item:!0,container:!0,alignItems:"center"},t.createElement(hu,{control:t.createElement(Iu,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),t.createElement(hf,null)),t.createElement(HL,{properties:s,setProperties:a,sn:n}),AD(s,h,l,r)):null}function SD(e){return(0,ln.Ay)("MuiDialog",e)}const kD=(0,an.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),xD=t.createContext({}),ED=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],LD=(0,sn.Ay)(Qd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),DD=(0,sn.Ay)(lh,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),ID=(0,sn.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,Vn.A)(n.scroll)}`]]}})(({ownerState:e})=>(0,Jt.A)({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"}})),ND=(0,sn.Ay)(ph,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,Vn.A)(n.scroll)}`],t[`paperWidth${(0,Vn.A)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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)`,[`&.${kD.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}`,[`&.${kD.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,[`&.${kD.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),MD=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiDialog"}),o=Gn(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:h,disableEscapeKeyDown:u=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:f,onClick:b,onClose:v,open:C,PaperComponent:_=ph,PaperProps:y={},scroll:A="paper",TransitionComponent:w=jd,transitionDuration:S=r,TransitionProps:k}=i,x=(0,Zt.A)(i,ED),E=(0,Jt.A)({},i,{disableEscapeKeyDown:u,fullScreen:g,fullWidth:p,maxWidth:m,scroll:A}),L=(e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${(0,Vn.A)(n)}`],paper:["paper",`paperScroll${(0,Vn.A)(n)}`,`paperWidth${(0,Vn.A)(String(i))}`,o&&"paperFullWidth",r&&"paperFullScreen"]};return(0,tn.A)(s,SD,t)})(E),D=t.useRef(),I=(0,oi.A)(a),N=t.useMemo(()=>({titleId:I}),[I]);return(0,dn.jsx)(DD,(0,Jt.A)({className:(0,en.A)(L.root,h),closeAfterTransition:!0,components:{Backdrop:LD},componentsProps:{backdrop:(0,Jt.A)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:u,onClose:v,open:C,ref:n,onClick:e=>{b&&b(e),D.current&&(D.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:E},x,{children:(0,dn.jsx)(w,(0,Jt.A)({appear:!0,in:C,timeout:S,role:"presentation"},k,{children:(0,dn.jsx)(ID,{className:(0,en.A)(L.container),onMouseDown:e=>{D.current=e.target===e.currentTarget},ownerState:E,children:(0,dn.jsx)(ND,(0,Jt.A)({as:_,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":I},y,{className:(0,en.A)(L.paper,y.className),ownerState:E,children:(0,dn.jsx)(xD.Provider,{value:N,children:d})}))})}))}))}),TD=MD;function RD(e){return(0,ln.Ay)("MuiDialogTitle",e)}const qD=(0,an.A)("MuiDialogTitle",["root"]),OD=["className","id"],PD=(0,sn.Ay)(Lr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),BD=t.forwardRef(function(e,n){const i=(0,rn.b)({props:e,name:"MuiDialogTitle"}),{className:o,id:r}=i,s=(0,Zt.A)(i,OD),a=i,l=(e=>{const{classes:t}=e;return(0,tn.A)({root:["root"]},RD,t)})(a),{titleId:c=r}=t.useContext(xD);return(0,dn.jsx)(PD,(0,Jt.A)({component:"h2",className:(0,en.A)(l.root,o),ownerState:a,ref:n,variant:"h6",id:null!=r?r:c},s))}),FD=BD;function WD(e){return(0,ln.Ay)("MuiDialogContent",e)}(0,an.A)("MuiDialogContent",["root","dividers"]);const zD=["className","dividers"],VD=(0,sn.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>(0,Jt.A)({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}`}:{[`.${qD.root} + &`]:{paddingTop:0}})),HD=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,r=(0,Zt.A)(n,zD),s=(0,Jt.A)({},n,{dividers:o}),a=(e=>{const{classes:t,dividers:n}=e,i={root:["root",n&&"dividers"]};return(0,tn.A)(i,WD,t)})(s);return(0,dn.jsx)(VD,(0,Jt.A)({className:(0,en.A)(a.root,i),ownerState:s,ref:t},r))}),jD=HD;function UD(e){return(0,ln.Ay)("MuiDialogActions",e)}(0,an.A)("MuiDialogActions",["root","spacing"]);const $D=["className","disableSpacing"],GD=(0,sn.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>(0,Jt.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),KD=t.forwardRef(function(e,t){const n=(0,rn.b)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,r=(0,Zt.A)(n,$D),s=(0,Jt.A)({},n,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:n}=e,i={root:["root",!n&&"spacing"]};return(0,tn.A)(i,UD,t)})(s);return(0,dn.jsx)(GD,(0,Jt.A)({className:(0,en.A)(a.root,i),ownerState:s,ref:t},r))}),QD=KD;var YD=s(9663);function XD({model:e,show:n,close:i}){const[o,r]=(0,t.useState)(""),[s,a]=(0,t.useState)(null),[l,c]=(0,t.useState)([]),[d,h,u]=wd(),g=Gn(),p=(0,t.useCallback)(()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(i)});return(0,t.useEffect)(()=>{if(!n)return;const t=()=>{e&&n&&e.getProperties().then(e=>{n&&r(JSON.stringify(e||{},null,2))})};return e.on("changed",t),t(),()=>{e&&e.removeListener("changed",t)}},[e&&e.id,n]),(0,t.useEffect)(()=>{if(!(d&&u&&h&&o))return;const{left:e,top:t,width:n,height:i}=h;if(0===e&&0===t&&0===n&&0===i)return;const r=YD.editor.create(u,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});r.layout({width:h.width,height:h.height});const s=r.onDidChangeModelDecorations(()=>{const e=YD.editor.getModelMarkers();c(e)});return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}},[u,h,o]),t.createElement(TD,{disableEscapeKeyDown:!0,open:n,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}}},t.createElement(FD,null,"Modify object properties"),t.createElement(jD,{dividers:!0},t.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),t.createElement(QD,null,t.createElement(wl,{variant:"contained",onClick:i},"Cancel"),t.createElement(wl,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const ZD=t.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),JD=t.createContext();function eI({id:e,onLoad:n}){const i=(0,t.useContext)(JD),o=(0,t.useRef)();return(0,t.useEffect)(()=>{const t=i.render({id:e,element:o.current});return t.then(e=>{n(e,o.current)}),()=>{t.then(e=>{e.destroy()})}},[e]),t.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const tI="Cell",nI={secondaryIcon:`${tI}-secondaryIcon`,drop:`${tI}-drop`},iI=(0,sn.Ay)(yr)(({theme:e})=>({[`& .${nI.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${nI.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}}));function oI({id:e,expandable:n,minHeight:i}){const o=(0,t.useContext)(Kx),[r]=md(),[s,a]=(0,t.useState)(null),[l,c]=(0,t.useState)(!1),[d,h]=(0,t.useState)(null),{currentThemeName:u,activeViz:g,setActiveViz:p,setExpandedObject:m,expandedObject:f}=(0,t.useContext)(ZD),b=f===e,v=(0,t.useRef)();(0,t.useEffect)(()=>{const t=o.getObject(e).then(t=>(a(t),r.set(`${e}`,t),t));return()=>{t.then(e=>e.emit("close"))}},[e]);const[C,_]=(0,t.useState)(!1),y=(0,t.useCallback)(()=>{_(!1)},[]),A=(0,t.useCallback)((e,t)=>{v.current={viz:e,el:t},h(e)},[e]),w=(0,t.useCallback)((e=!1)=>{if(v.current)if(e)c(!0),v.current.viz.__DO_NOT_USE__.exportImage().then(e=>{e&&e.url&&window.open(e.url),c(!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)}`)})}},[s,u]),S=!b&&v.current&&g&&g===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},k=g===d;return t.createElement(iI,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"}},t.createElement(yr,{item:!0},t.createElement(ex,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},t.createElement(XD,{model:s,show:C,close:y}),t.createElement(cr,{title:"Modify object properties",className:nI.secondaryIcon,disabled:!s,onClick:()=>_(!0),size:"large"},ss({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"}}]})),t.createElement(cr,{title:"Open in single render view",className:nI.secondaryIcon,disabled:!s,href:s?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${s.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large"},ss({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"}}]})),t.createElement(cr,{title:"Take and render as snapshot",className:nI.secondaryIcon,disabled:!s,onClick:()=>w(),size:"large"},ss({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"}}]})),l?t.createElement(Gl,{size:24}):t.createElement(cr,{title:"Export as image",className:nI.secondaryIcon,disabled:!s,onClick:()=>w(!0),size:"large"},ss({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"}}]})),t.createElement(yr,{item:!0,xs:!0}),n&&t.createElement(cr,{title:"Edit",className:nI.secondaryIcon,disabled:!d||k,onClick:()=>p(d),size:"large"},ss({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"}}]})),n&&t.createElement(cr,{title:"Expand",disabled:!s||!d,className:nI.secondaryIcon,onClick:()=>{b?m(null):(m(e),p(d))},size:"large"},ss({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:b?"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z":"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}}]})))),t.createElement(yr,{item:!0,xs:!0,style:{...S},className:nI.drop},t.createElement(eI,{id:e,onLoad:A})))}function rI({info:e,storage:n,uid:i}){const o=(0,t.useContext)(JD),{activeViz:r,setActiveViz:s}=(0,t.useContext)(ZD),[a]=Gx(r?.model);return(0,t.useEffect)(()=>{if(!i)return;const t=o.render({type:e.supernova.name,properties:{...!1!==n.get("readFromCache")?n.props(e.supernova.name):{},qInfo:{qId:i,qType:e.supernova.name}}});return t.then(e=>{s(e)}),()=>{t.then(e=>e.destroy())}},[i]),(0,t.useEffect)(()=>{a&&n.props(e.supernova.name,a)},[a]),r&&r.id===i?t.createElement(yr,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},t.createElement(yr,{item:!0,xs:!0},t.createElement(oI,{id:i}))):null}function sI({types:e,cache:n}){const i=(0,t.useContext)(Kx),[o]=Ad(i),[r,s]=(0,t.useState)(null),{expandedObject:a}=(0,t.useContext)(ZD);if((0,t.useEffect)(()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then(e=>{s(e.slice(0,20))})},[o,e.join(":")]),!r)return null;const l=a?r.filter(e=>e.qInfo.qId===a):r;return t.createElement(yr,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map(e=>t.createElement(yr,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${n}`},t.createElement(oI,{id:e.qInfo.qId,expandable:!0,minHeight:600}))):t.createElement(yr,{item:!0},t.createElement("div",null,t.createElement(Lr,{display:"inline"},"Could not find any components with "),t.createElement(Lr,{display:"inline"},t.createElement("code",null,`qType: "${e[0]}"`)),t.createElement(Lr,{display:"inline"}," in the current app"))))}const aI=["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"],lI=["select","active","passive"];function cI(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function dI(){const e=(0,t.useRef)(),n=K(),{info:i}=Ht(),{waiting:o,app:r}=(({info:e})=>{const[n,i]=(0,t.useState)(null),[o,r]=(0,t.useState)(!0);(0,t.useEffect)(()=>{r(!0),e&&s().then(e=>i(e)).catch(e=>console.log(e)).finally(()=>r(!1))},[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:n,enigma:i=null,enigma:{host:o}={}}=e;let r="";if(n){const t=await Vt({webIntegrationId:n,host:o});r=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/auth/getSocketUrl/${e?.enigma.appId}`)).json();r=t}else{const e=await Ot(`https://${i.host}${i.prefix?`/${i.prefix}`:""}`);r=He().buildUrl({...i,urlParams:{"qlik-csrf-token":e}})}return(await We().create({schema:ze,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:n,setApp:i}})({info:i}),s=(0,t.useMemo)(()=>Gt(r),[r]),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(null),[h,u]=(0,t.useState)(null),[g,p]=(0,t.useState)(s.get("themeName")),[m,f]=(0,t.useState)(s.get("language")||"en-US"),[b,v]=(0,t.useState)("light"),[C,_]=(0,t.useState)(lI),[y,A]=(0,t.useState)(!0===s.get("objectListMode")),w=(0,t.useRef)(null),[S,k]=(0,t.useState)(),[x,E]=t.useState(null),[L,D]=t.useState(null),[I,N]=(0,t.useState)(!1),[M,T]=(0,t.useState)(null),R=Array.isArray(i?.themes)&&i.themes.length?["light","dark",...i.themes]:[],[q,O]=(0,t.useState)(),P=(0,t.useMemo)(()=>xi(b),[b]),B=(0,t.useMemo)(()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d}),[a,c,g]);(0,t.useEffect)(()=>{(async()=>{i&&(await function(e){const t=()=>{Ux(e.supernova.name,e.supernova.url).then(t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,$x[n]&&$x[n].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=>Ux(e.name,e.url).then(t=>{window[e.name]=t}));return Promise.all(t)}return Promise.resolve()}(i),N(!0))})()},[i]),(0,t.useEffect)(()=>{if(o||!I)return;const e=Dk(r,{context:{theme:g,language:m,interactions:cI(C),keyboardNavigation:i?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:i?.flags,themes:i?.themes?i?.themes.map(e=>({id:e,load:()=>fetch(`/theme/${e}`).then(e=>e.json()).then(e=>(v("dark"===e.type?"dark":"light"),e))})):null});e.__DO_NOT_USE__.types.register(i?.supernova),i?.types&&i?.types.forEach(t=>{e.__DO_NOT_USE__.types.register(t)}),T(e)},[r,i,o,I]),(0,t.useLayoutEffect)(()=>{M&&(M.context({theme:g}),"light"!==g&&"dark"!==g||v(g))},[M,g]);const F=()=>{window[i?.supernova.name]&&(e.current=String(Date.now()),k(e.current))};return(0,t.useEffect)(()=>{M&&(M.selections().then(e=>e.mount(w.current)),window.onHotChange(i?.supernova.name,()=>{M.__DO_NOT_USE__.types.clearFromCache(i?.supernova.name),M.__DO_NOT_USE__.types.register(i?.supernova),F(),M.__DO_NOT_USE__.types.get({name:i?.supernova.name}).supernova().then(u)}),F())},[M,i]),(0,t.useEffect)(()=>{const t=()=>{r&&r.destroySessionObject(e.current)};if(window.addEventListener("beforeunload",t),r){const e=ud(r.id),t=gd(r.id);O({modelStore:e,selectionStore:t,myKey:"this is the key here"})}return()=>{window.removeEventListener("beforeunload",t)}},[r]),t.createElement(ld.Provider,{value:q},t.createElement(Kx.Provider,{value:r},t.createElement(gi.A,{injectFirst:!0},t.createElement(ui,{theme:P},t.createElement(JD.Provider,{value:M},t.createElement(yr,{container:!0,wrap:"nowrap",direction:"column",style:{background:P.palette.background.darkest,height:"100%"},gap:0},t.createElement(yr,{item:!0},t.createElement(ex,{variant:"dense",style:{background:P.palette.background.paper,boxShadow:P.shadows[1]}},t.createElement(yr,{container:!0,gap:1},t.createElement(yr,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(yr,{item:!0},t.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},t.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"}})))),t.createElement(yr,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(cr,{title:"Home",onClick:()=>n("/"),size:"large"},t.createElement(Uk.A,{style:{verticalAlign:"middle"}}))),t.createElement(yr,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(wa,{value:y?1:0,onChange:(e,t)=>{const n=1===t;s.save("objectListMode",n),n&&(l(null),d(null)),A(n)},"aria-label":"Navigation"},t.createElement(Da,{label:t.createElement(Lr,null,"Create"),value:0}),t.createElement(Da,{label:t.createElement(Lr,null,"Edit"),value:1}))),t.createElement(yr,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(yr,{item:!0,gap:1},t.createElement(Lr,null,"State:")),t.createElement(yr,{item:!0,gap:2},t.createElement(dx,{size:"small",value:C,onChange:(e,t)=>{_(t),M&&M.context({interactions:cI(t)})},color:"primary"},t.createElement(Cx,{value:"select"},"Select"),t.createElement(Cx,{value:"active"},"Active"),t.createElement(Cx,{value:"passive"},"Passive"),t.createElement(Cx,{value:"edit"},"Edit"))),t.createElement(yr,{item:!0},R.length?t.createElement(t.Fragment,null,t.createElement(cr,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},t.createElement($k.A,{fontSize:"small"})),t.createElement(Dx,{anchorEl:x,open:!!x,keepMounted:!0,onClose:()=>E(null)},R.map(e=>t.createElement(Lf,{key:e,selected:e===g,onClick:()=>(e=>{E(null),s.save("themeName",e),p(e)})(e)},e)))):t.createElement(cr,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?t.createElement(Gk.A,{fontSize:"small"}):t.createElement(Kk.A,{fontSize:"small"}))),t.createElement(yr,{item:!0},t.createElement(wl,{startIcon:t.createElement(Qk.A,null),title:"Select language",onClick:e=>D(e.currentTarget)},m),t.createElement(Dx,{anchorEl:L,open:!!L,keepMounted:!0,onClose:()=>D(null)},aI.map(e=>t.createElement(Lf,{key:e,selected:e===m,onClick:()=>{return t=e,D(null),s.save("language",t),f(t),void(M&&M.context({language:t}));var t}},e)))))))),t.createElement(yr,{item:!0,style:{padding:P.spacing(1,1,0,1)}},t.createElement("div",{ref:w,style:{flex:"0 0 auto",boxShadow:P.shadows[1]}})),t.createElement(yr,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:P.spacing(0,1,1,1)}},t.createElement(ZD.Provider,{value:B},h?t.createElement(yr,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},t.createElement(yr,{item:!0,xs:!0,zeroMinWidth:!0},y?t.createElement(sI,{cache:S,types:[i?.supernova.name]}):t.createElement(rI,{info:i,storage:s,uid:S})),a&&t.createElement(yr,{item:!0,style:{background:P.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:P.shadows[1],padding:0}},t.createElement(wD,{sn:h,viz:a,isTemp:!y,storage:s,flags:i?.flags}))):t.createElement(yr,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},t.createElement(yr,{item:!0},t.createElement(Gl,null)))))))))))}const hI=()=>t.createElement(Ei,null,t.createElement(mo,{marginTop:5},t.createElement(Lr,{variant:"h4",gutterBottom:!0},"Error!"),t.createElement(Lr,{variant:"subtitle1",gutterBottom:!0},"OAUTH REDIRECT LINK ERROR!"),t.createElement(Lr,{variant:"body2",paragraph:!0},"We updated our route which was previously had the responsibility to handle the redirected link including the correct credentials to have"," ",t.createElement("code",null,t.createElement("b",null,"/auth/"))," ","part within it. This change is now impacting your redirect links if you already using your old client-id."),t.createElement(Lr,{variant:"h6",gutterBottom:!0},"Here is what you need to do:"),t.createElement(Lr,{variant:"body2",paragraph:!0},t.createElement("b",null,"1.")," Go to your tenant that you created your client id",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"2.")," Open Managment console",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"3.")," Click on OAuth menu in left panel (if you dont see that menu it means you dont have access to it and you need to ask a person who has the proper access)",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"4.")," Find your Client id and from ... menu, click on edit",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"5."),' There is a section called "Add redirect URLs", find it and add your new link. The only difference is that your new link will include `/auth/` part in it, for example, if you had this redirect link previously:',t.createElement("code",null,"http://localhost:8000/login/callback"),t.createElement("br",null),"now it will be like:",t.createElement("code",null,"http://localhost:8000/",t.createElement("b",null,"auth/"),"login/callback"),t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"6.")," Click on save and you are set!",t.createElement("br",null)))),uI=()=>t.createElement(Ne,null,t.createElement(Xt,null,t.createElement(ce,null,t.createElement(ae,{element:t.createElement(_o,null)},t.createElement(ae,{path:"/",element:t.createElement(Tl,null)}),t.createElement(ae,{path:"/app-list",element:t.createElement(Kl,null)})),t.createElement(ae,{path:"/dev",element:t.createElement(dI,null)}),t.createElement(ae,{path:"/login/callback",element:t.createElement(hI,null)}))));n.createRoot(document.querySelector("#app")).render(t.createElement(uI,null))})()})();
103
103
  //# sourceMappingURL=eHub.js.map