@nebula.js/sn-pie-chart 1.22.1 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-pie-chart v1.22.1
2
+ * @nebula.js/sn-pie-chart v1.23.0
3
3
  * Copyright (c) 2023 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["hammerjs","picasso.js","picasso-plugin-q","react","react-dom","@nebula.js/stardust","qlik-chart-modules","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,w,E,C,k,S,T,R,N,P,D,M,L,I,A,O,q,z,F,W;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.default,i=e.Children,a=e.isValidElement,s=e.cloneElement},function(e){l=e.default},function(e){c=e.useOptions,u=e.useElement,d=e.useSelections,p=e.useState,f=e.useLayout,h=e.useTranslator,m=e.useAction,g=e.useEffect,v=e.useModel,y=e.useApp,b=e.useStaleLayout,x=e.usePlugins,w=e.useConstraints,E=e.useTheme,C=e.useAppLayout,k=e.useEmbed,S=e.usePromise,T=e.useRect,R=e.onTakeSnapshot,N=e.useImperativeHandle},function(e){P=e.selectionService,D=e.storage,M=e.cache,L=e.getValue,I=e.tooltipService,A=e.colorService,O=e.pluginService,q=e.themeService,z=e.debouncer,F=e.setValue},function(e){W=e.default}],execute:function(){var H={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};var B={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function $(e){return B[e]||e}function j(e){return function(t,n,r){var o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((function(t){t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));var n=$(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),(a=a||new e.Manager(r)).add(new e[n](t.options)),Object.keys(t.events).forEach((function(e){t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((function(t){var n=$(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((function(e){return""!==e}))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((function(e){return""!==e}))))})))}function d(){l.forEach((function(e){Object.keys(e.events).forEach((function(t){a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set:function(e){!function(e){s=e.key,i={chart:t,mediator:n,settings:o=e},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off:function(){c=!1,d()},on:function(){c=!0,0===l.length&&u()},destroy:function(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var U=Object.prototype.hasOwnProperty,_=Object.prototype.toString,Y=Object.defineProperty,K=Object.getOwnPropertyDescriptor,X=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===_.call(e)},G=function(e){if(!e||"[object Object]"!==_.call(e))return!1;var t,n=U.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&U.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||U.call(e,t)},Z=function(e,t){Y&&"__proto__"===t.name?Y(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},J=function(e,t){if("__proto__"===t){if(!U.call(e,t))return;if(K)return K(e,t).value}return e[t]},Q=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=J(s,n),s!==(o=J(t,n))&&(u&&o&&(G(o)||(i=X(o)))?(i?(i=!1,a=r&&X(r)?r:[]):a=r&&G(r)?r:{},Z(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Z(s,{name:n,newValue:o}));return s};const ee="center",te="bottom";var ne={NoDataExist:{label:"NoDataExist",alignment:ee,default:!0},OnlyNanData:{label:"OnlyNanData",alignment:ee,default:!0},OnlyNegativeOrZeroValues:{label:"OnlyNegativeOrZeroValues",alignment:ee,default:!1},LimitedData:{label:"LimitedData",alignment:te,default:!1},OnlyNanColor:{label:"OnlyNanColor",alignment:te,default:!1},NegativeOrZeroValues:{label:"NegativeOrZeroValues",alignment:te,default:!1},DataRangeIncludingZero:{label:"DataRangeIncludingZero",alignment:te,default:!1}};const re=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],oe={};re.forEach((([e,{width:t,height:n}])=>{oe[e]={width:t,height:n}}));const ie={getLayoutModes:()=>oe,getLayoutMode(e,t){let n;for(n=0;n<re.length;++n)if(e>=re[n][1].width&&t>=re[n][1].height)return re[n][0];return"SPARK"}};function ae(e,t){return{layoutModes:ie.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const se=(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i};function le(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const ce=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),ue=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),de=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),pe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>ce.test(e),isRtlChar:e=>ue.test(e)||de.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],pe.isLtrChar(r))return"ltr";if(pe.isRtlChar(r))return"rtl"}return"ltr"}},fe={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=""+n.coloring.label),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=""+e}}return a.fill=void 0===r._fillColor?fe.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:""+e(t.source.key).field(t.source.field).title(),value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=pe.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=pe.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:pe.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=pe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=pe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,fe.getColorSymbol(e,t)]:[fe.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=pe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=pe.detectTextDirection(e.value);let l;return l=o?r?[e.value,fe.getColorSymbol(t,n)]:[fe.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function he(e){const t=parseInt(e,10);if(!isNaN(t))return t}const me=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function ge(e,t){const n=e.themeService.getStyles();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=n.themeService.getStyles();return{position:e.position,justify:e.justify,fill:e.onBackground?r.label.value.color:me(t),overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:he(n.label.value.fontSize),fontFamily:n.label.value.fontFamily,label:e.label}}function ve(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ye(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function be(){}var xe=.7,we=1/xe,Ee="\\s*([+-]?\\d+)\\s*",Ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Se=/^#([0-9a-f]{3,8})$/,Te=new RegExp(`^rgb\\(${Ee},${Ee},${Ee}\\)$`),Re=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),Ne=new RegExp(`^rgba\\(${Ee},${Ee},${Ee},${Ce}\\)$`),Pe=new RegExp(`^rgba\\(${ke},${ke},${ke},${Ce}\\)$`),De=new RegExp(`^hsl\\(${Ce},${ke},${ke}\\)$`),Me=new RegExp(`^hsla\\(${Ce},${ke},${ke},${Ce}\\)$`),Le={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 Ie(){return this.rgb().formatHex()}function Ae(){return this.rgb().formatRgb()}function Oe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Se.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?qe(t):3===n?new We(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ze(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=Te.exec(e))?new We(t[1],t[2],t[3],1):(t=Re.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ne.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=Pe.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=De.exec(e))?Ue(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Ue(t[1],t[2]/100,t[3]/100,t[4]):Le.hasOwnProperty(e)?qe(Le[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function qe(e){return new We(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,n,r){return r<=0&&(e=t=n=NaN),new We(e,t,n,r)}function Fe(e){return e instanceof be||(e=Oe(e)),e?new We((e=e.rgb()).r,e.g,e.b,e.opacity):new We}function We(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function He(){return`#${Ve(this.r)}${Ve(this.g)}${Ve(this.b)}`}function Be(){const e=$e(this.opacity);return`${1===e?"rgb(":"rgba("}${je(this.r)}, ${je(this.g)}, ${je(this.b)}${1===e?")":`, ${e})`}`}function $e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function je(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ve(e){return((e=je(e))<16?"0":"")+e.toString(16)}function Ue(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ye(e,t,n,r)}function _e(e){if(e instanceof Ye)return new Ye(e.h,e.s,e.l,e.opacity);if(e instanceof be||(e=Oe(e)),!e)return new Ye;if(e instanceof Ye)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ye(a,s,l,e.opacity)}function Ye(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ke(e){return(e=(e||0)%360)<0?e+360:e}function Xe(e){return Math.max(0,Math.min(1,e||0))}function Ge(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ve(be,Oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ie,formatHex:Ie,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _e(this).formatHsl()},formatRgb:Ae,toString:Ae}),ve(We,(function(e,t,n,r){return 1===arguments.length?Fe(e):new We(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return e=null==e?we:Math.pow(we,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?xe:Math.pow(xe,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(je(this.r),je(this.g),je(this.b),$e(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:He,formatHex:He,formatHex8:function(){return`#${Ve(this.r)}${Ve(this.g)}${Ve(this.b)}${Ve(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Be,toString:Be})),ve(Ye,(function(e,t,n,r){return 1===arguments.length?_e(e):new Ye(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return e=null==e?we:Math.pow(we,e),new Ye(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xe:Math.pow(xe,e),new Ye(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,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new We(Ge(e>=240?e-240:e+120,o,r),Ge(e,o,r),Ge(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ye(Ke(this.h),Xe(this.s),Xe(this.l),$e(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=$e(this.opacity);return`${1===e?"hsl(":"hsla("}${Ke(this.h)}, ${100*Xe(this.s)}%, ${100*Xe(this.l)}%${1===e?")":`, ${e})`}`}}));const Ze=Math.PI/180,Je=180/Math.PI,Qe=.96422,et=.82521,tt=4/29,nt=6/29,rt=3*nt*nt;function ot(e){if(e instanceof it)return new it(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof We||(e=Fe(e));var t,n,r=ct(e.r),o=ct(e.g),i=ct(e.b),a=at((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=at((.4360747*r+.3850649*o+.1430804*i)/Qe),n=at((.0139322*r+.0971045*o+.7141733*i)/et)),new it(116*a-16,500*(t-a),200*(a-n),e.opacity)}function it(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function at(e){return e>.008856451679035631?Math.pow(e,1/3):e/rt+tt}function st(e){return e>nt?e*e*e:rt*(e-tt)}function lt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ut(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof it||(e=ot(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Je;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function dt(e,t,n,r){return 1===arguments.length?ut(e):new pt(e,t,n,null==r?1:r)}function pt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ft(e){if(isNaN(e.h))return new it(e.l,0,0,e.opacity);var t=e.h*Ze;return new it(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ve(it,(function(e,t,n,r){return 1===arguments.length?ot(e):new it(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return new it(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new it(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 We(lt(3.1338561*(t=Qe*st(t))-1.6168667*(e=1*st(e))-.4906146*(n=et*st(n))),lt(-.9787684*t+1.9161415*e+.033454*n),lt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ve(pt,dt,ye(be,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var ht=-.14861,mt=1.78277,gt=-.29227,vt=-.90649,yt=1.97294,bt=yt*vt,xt=yt*mt,wt=mt*gt-vt*ht;function Et(e){if(e instanceof Ct)return new Ct(e.h,e.s,e.l,e.opacity);e instanceof We||(e=Fe(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(wt*r+bt*t-xt*n)/-5.9615122912,i=r-o,a=(yt*(n-o)-gt*i)/vt,s=Math.sqrt(a*a+i*i)/(yt*o*(1-o)),l=s?Math.atan2(a,i)*Je-120:NaN;return new Ct(l<0?l+360:l,s,o,e.opacity)}function Ct(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function kt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}ve(Ct,(function(e,t,n,r){return 1===arguments.length?Et(e):new Ct(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return e=null==e?we:Math.pow(we,e),new Ct(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xe:Math.pow(xe,e),new Ct(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Ze,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new We(255*(t+n*(ht*r+mt*o)),255*(t+n*(gt*r+vt*o)),255*(t+n*(yt*r)),this.opacity)}})),function(e){1===e.length&&(e=function(e){return function(t,n){return kt(e(t),n)}}(e))}(kt);var St="$";function Tt(){}function Rt(e,t){var n=new Tt;if(e instanceof Tt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Nt(){}Tt.prototype=Rt.prototype={constructor:Tt,has:function(e){return St+e in this},get:function(e){return this[St+e]},set:function(e,t){return this[St+e]=t,this},remove:function(e){var t=St+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===St&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===St&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===St&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===St&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===St&&++e;return e},empty:function(){for(var e in this)if(e[0]===St)return!1;return!0},each:function(e){for(var t in this)t[0]===St&&e(this[t],t.slice(1),this)}};var Pt=Rt.prototype;function Dt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Lt(){}Nt.prototype={constructor:Nt,has:Pt.has,add:function(e){return this[St+(e+="")]=e,this},remove:Pt.remove,clear:Pt.clear,values:Pt.keys,size:Pt.size,empty:Pt.empty,each:Pt.each};var It=.7,At=1/It,Ot="\\s*([+-]?\\d+)\\s*",qt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",zt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ft=/^#([0-9a-f]{3})$/,Wt=/^#([0-9a-f]{6})$/,Ht=new RegExp("^rgb\\("+[Ot,Ot,Ot]+"\\)$"),Bt=new RegExp("^rgb\\("+[zt,zt,zt]+"\\)$"),$t=new RegExp("^rgba\\("+[Ot,Ot,Ot,qt]+"\\)$"),jt=new RegExp("^rgba\\("+[zt,zt,zt,qt]+"\\)$"),Vt=new RegExp("^hsl\\("+[qt,zt,zt]+"\\)$"),Ut=new RegExp("^hsla\\("+[qt,zt,zt,qt]+"\\)$"),_t={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 Yt(e){var t;return e=(e+"").trim().toLowerCase(),(t=Ft.exec(e))?new Jt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Wt.exec(e))?Kt(parseInt(t[1],16)):(t=Ht.exec(e))?new Jt(t[1],t[2],t[3],1):(t=Bt.exec(e))?new Jt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$t.exec(e))?Xt(t[1],t[2],t[3],t[4]):(t=jt.exec(e))?Xt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Vt.exec(e))?en(t[1],t[2]/100,t[3]/100,1):(t=Ut.exec(e))?en(t[1],t[2]/100,t[3]/100,t[4]):_t.hasOwnProperty(e)?Kt(_t[e]):"transparent"===e?new Jt(NaN,NaN,NaN,0):null}function Kt(e){return new Jt(e>>16&255,e>>8&255,255&e,1)}function Xt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jt(e,t,n,r)}function Gt(e){return e instanceof Lt||(e=Yt(e)),e?new Jt((e=e.rgb()).r,e.g,e.b,e.opacity):new Jt}function Zt(e,t,n,r){return 1===arguments.length?Gt(e):new Jt(e,t,n,null==r?1:r)}function Jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Qt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function en(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new nn(e,t,n,r)}function tn(e){if(e instanceof nn)return new nn(e.h,e.s,e.l,e.opacity);if(e instanceof Lt||(e=Yt(e)),!e)return new nn;if(e instanceof nn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new nn(a,s,l,e.opacity)}function nn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function rn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Dt(Lt,Yt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Dt(Jt,Zt,Mt(Lt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?It:Math.pow(It,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Qt(this.r)+Qt(this.g)+Qt(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Dt(nn,(function(e,t,n,r){return 1===arguments.length?tn(e):new nn(e,t,n,null==r?1:r)}),Mt(Lt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new nn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?It:Math.pow(It,e),new nn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Jt(rn(e>=240?e-240:e+120,o,r),rn(e,o,r),rn(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var on=Math.PI/180,an=180/Math.PI,sn=.96422,ln=.82521,cn=4/29,un=6/29,dn=3*un*un;function pn(e){if(e instanceof fn)return new fn(e.l,e.a,e.b,e.opacity);if(e instanceof bn){if(isNaN(e.h))return new fn(e.l,0,0,e.opacity);var t=e.h*on;return new fn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Jt||(e=Gt(e));var n,r,o=vn(e.r),i=vn(e.g),a=vn(e.b),s=hn((.2225045*o+.7168786*i+.0606169*a)/1);return o===i&&i===a?n=r=s:(n=hn((.4360747*o+.3850649*i+.1430804*a)/sn),r=hn((.0139322*o+.0971045*i+.7141733*a)/ln)),new fn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function fn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function hn(e){return e>.008856451679035631?Math.pow(e,1/3):e/dn+cn}function mn(e){return e>un?e*e*e:dn*(e-cn)}function gn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yn(e){if(e instanceof bn)return new bn(e.h,e.c,e.l,e.opacity);if(e instanceof fn||(e=pn(e)),0===e.a&&0===e.b)return new bn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*an;return new bn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function bn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Dt(fn,(function(e,t,n,r){return 1===arguments.length?pn(e):new fn(e,t,n,null==r?1:r)}),Mt(Lt,{brighter:function(e){return new fn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new fn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){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 Jt(gn(3.1338561*(t=sn*mn(t))-1.6168667*(e=1*mn(e))-.4906146*(n=ln*mn(n))),gn(-.9787684*t+1.9161415*e+.033454*n),gn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Dt(bn,(function(e,t,n,r){return 1===arguments.length?yn(e):new bn(e,t,n,null==r?1:r)}),Mt(Lt,{brighter:function(e){return new bn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new bn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return pn(this).rgb()}}));var xn=-.14861,wn=1.78277,En=-.29227,Cn=-.90649,kn=1.97294,Sn=kn*Cn,Tn=kn*wn,Rn=wn*En-Cn*xn;function Nn(e){if(e instanceof Dn)return new Dn(e.h,e.s,e.l,e.opacity);e instanceof Jt||(e=Gt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Rn*r+Sn*t-Tn*n)/(Rn+Sn-Tn),i=r-o,a=(kn*(n-o)-En*i)/Cn,s=Math.sqrt(a*a+i*i)/(kn*o*(1-o)),l=s?Math.atan2(a,i)*an-120:NaN;return new Dn(l<0?l+360:l,s,o,e.opacity)}function Pn(e,t,n,r){return 1===arguments.length?Nn(e):new Dn(e,t,n,null==r?1:r)}function Dn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mn(e){return function(){return e}}function Ln(e,t){return function(n){return e+n*t}}function In(e){return 1==(e=+e)?An: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(r){return Math.pow(e+r*t,n)}}(t,n,e):Mn(isNaN(t)?n:t)}}function An(e,t){var n=t-e;return n?Ln(e,n):Mn(isNaN(e)?t:e)}function On(e){return function t(n){function r(t,r){var o=e((t=Pn(t)).h,(r=Pn(r)).h),i=An(t.s,r.s),a=An(t.l,r.l),s=An(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function qn(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}Dt(Dn,Pn,Mt(Lt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new Dn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?It:Math.pow(It,e),new Dn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*on,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new Jt(255*(t+n*(xn*r+wn*o)),255*(t+n*(En*r+Cn*o)),255*(t+n*(kn*r)),this.opacity)}})),function e(t){var n=In(t);function r(e,t){var r=n((e=Zt(e)).r,(t=Zt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=An(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),On((function(e,t){var n=t-e;return n?Ln(e,n>180||n<-180?n-360*Math.round(n/360):n):Mn(isNaN(e)?t:e)})),On(An);var zn,Fn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Wn(e){return new Hn(e)}function Hn(e){if(!(t=Fn.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function Bn(e,t){var n=qn(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Wn.prototype=Hn.prototype,Hn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var $n={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Bn(100*e,t)},r:Bn,s:function(e,t){var n=qn(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(zn=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+qn(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function jn(e){return e}var Vn,Un=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _n(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}):jn,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):jn,s=e.percent||"%";function l(e){var t=(e=Wn(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,p=e.comma,f=e.precision,h=e.trim,m=e.type;"n"===m?(p=!0,m="g"):$n[m]||(null==f&&(f=12),h=!0,m="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?o[0]:"#"===c&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",v="$"===c?o[1]:/[%p]/.test(m)?s:"",y=$n[m],b=/[defgprs%]/.test(m);function x(e){var o,s,c,x=g,w=v;if("c"===m)w=y(e)+w,e="";else{var E=(e=+e)<0;if(e=y(Math.abs(e),f),h&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(o>0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),E&&0==+e&&(E=!1),x=(E?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===m?Un[8+zn/3]:"")+w+(E&&"("===l?")":""),b)for(o=-1,s=e.length;++o<s;)if(48>(c=e.charCodeAt(o))||c>57){w=(46===c?i+e.slice(o+1):e.slice(o))+w,e=e.slice(0,o);break}}p&&!u&&(e=r(e,1/0));var C=x.length+e.length+w.length,k=C<d?new Array(d-C+1).join(t):"";switch(p&&u&&(e=r(k+e,k.length?d-w.length:1/0),k=""),n){case"<":e=x+e+w+k;break;case"=":e=x+k+e+w;break;case"^":e=k.slice(0,C=k.length>>1)+x+e+w+k.slice(C);break;default:e=k+x+e+w}return a(e)}return f=null==f?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Wn(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=qn(Math.abs(e)))?e[1]:NaN}(t)/3))),o=Math.pow(10,-r),i=Un[8+r/3];return function(e){return n(o*e)+i}}}}!function(e){(Vn=_n(e)).format,Vn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Yn=new Date,Kn=new Date;function Xn(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return Xn((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Yn.setTime(+t),Kn.setTime(+r),e(Yn),e(Kn),Math.floor(n(Yn,Kn))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Gn=Xn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Gn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Xn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Gn:null},Gn.range;var Zn=1e3,Jn=6e4,Qn=36e5,er=864e5,tr=6048e5;Xn((function(e){e.setTime(Math.floor(e/Zn)*Zn)}),(function(e,t){e.setTime(+e+t*Zn)}),(function(e,t){return(t-e)/Zn}),(function(e){return e.getUTCSeconds()})).range,Xn((function(e){e.setTime(Math.floor(e/Jn)*Jn)}),(function(e,t){e.setTime(+e+t*Jn)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getMinutes()})).range,Xn((function(e){var t=e.getTimezoneOffset()*Jn%Qn;t<0&&(t+=Qn),e.setTime(Math.floor((+e-t)/Qn)*Qn+t)}),(function(e,t){e.setTime(+e+t*Qn)}),(function(e,t){return(t-e)/Qn}),(function(e){return e.getHours()})).range;var nr=Xn((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jn)/er}),(function(e){return e.getDate()-1}));function rr(e){return Xn((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jn)/tr}))}nr.range;var or=rr(0),ir=rr(1),ar=rr(2),sr=rr(3),lr=rr(4),cr=rr(5),ur=rr(6);or.range,ir.range,ar.range,sr.range,lr.range,cr.range,ur.range,Xn((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var dr=Xn((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));dr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xn((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},dr.range,Xn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Jn)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getUTCMinutes()})).range,Xn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Qn)}),(function(e,t){return(t-e)/Qn}),(function(e){return e.getUTCHours()})).range;var pr=Xn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/er}),(function(e){return e.getUTCDate()-1}));function fr(e){return Xn((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/tr}))}pr.range;var hr=fr(0),mr=fr(1),gr=fr(2),vr=fr(3),yr=fr(4),br=fr(5),xr=fr(6);hr.range,mr.range,gr.range,vr.range,yr.range,br.range,xr.range,Xn((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})).range;var wr=Xn((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function Er(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Cr(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function kr(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}wr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xn((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},wr.range;var Sr,Tr,Rr,Nr={"-":"",_:" ",0:"0"},Pr=/^\s*\d+/,Dr=/^%/,Mr=/[\\^$*+?|[\]().{}]/g;function Lr(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Ir(e){return e.replace(Mr,"\\$&")}function Ar(e){return new RegExp("^(?:"+e.map(Ir).join("|")+")","i")}function Or(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function qr(e,t,n){var r=Pr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=Pr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Fr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Hr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Br(e,t,n){var r=Pr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $r(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function jr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Vr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ur(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _r(e,t,n){var r=Pr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Yr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Kr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Xr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Gr(e,t,n){var r=Pr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Zr(e,t,n){var r=Pr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Jr(e,t,n){var r=Dr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Qr(e,t,n){var r=Pr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function eo(e,t,n){var r=Pr.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function to(e,t){return Lr(e.getDate(),t,2)}function no(e,t){return Lr(e.getHours(),t,2)}function ro(e,t){return Lr(e.getHours()%12||12,t,2)}function oo(e,t){return Lr(1+nr.count(dr(e),e),t,3)}function io(e,t){return Lr(e.getMilliseconds(),t,3)}function ao(e,t){return io(e,t)+"000"}function so(e,t){return Lr(e.getMonth()+1,t,2)}function lo(e,t){return Lr(e.getMinutes(),t,2)}function co(e,t){return Lr(e.getSeconds(),t,2)}function uo(e){var t=e.getDay();return 0===t?7:t}function po(e,t){return Lr(or.count(dr(e),e),t,2)}function fo(e,t){var n=e.getDay();return e=n>=4||0===n?lr(e):lr.ceil(e),Lr(lr.count(dr(e),e)+(4===dr(e).getDay()),t,2)}function ho(e){return e.getDay()}function mo(e,t){return Lr(ir.count(dr(e),e),t,2)}function go(e,t){return Lr(e.getFullYear()%100,t,2)}function vo(e,t){return Lr(e.getFullYear()%1e4,t,4)}function yo(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Lr(t/60|0,"0",2)+Lr(t%60,"0",2)}function bo(e,t){return Lr(e.getUTCDate(),t,2)}function xo(e,t){return Lr(e.getUTCHours(),t,2)}function wo(e,t){return Lr(e.getUTCHours()%12||12,t,2)}function Eo(e,t){return Lr(1+pr.count(wr(e),e),t,3)}function Co(e,t){return Lr(e.getUTCMilliseconds(),t,3)}function ko(e,t){return Co(e,t)+"000"}function So(e,t){return Lr(e.getUTCMonth()+1,t,2)}function To(e,t){return Lr(e.getUTCMinutes(),t,2)}function Ro(e,t){return Lr(e.getUTCSeconds(),t,2)}function No(e){var t=e.getUTCDay();return 0===t?7:t}function Po(e,t){return Lr(hr.count(wr(e),e),t,2)}function Do(e,t){var n=e.getUTCDay();return e=n>=4||0===n?yr(e):yr.ceil(e),Lr(yr.count(wr(e),e)+(4===wr(e).getUTCDay()),t,2)}function Mo(e){return e.getUTCDay()}function Lo(e,t){return Lr(mr.count(wr(e),e),t,2)}function Io(e,t){return Lr(e.getUTCFullYear()%100,t,2)}function Ao(e,t){return Lr(e.getUTCFullYear()%1e4,t,4)}function Oo(){return"+0000"}function qo(){return"%"}function zo(e){return+e}function Fo(e){return Math.floor(+e/1e3)}!function(e){(Sr=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Ar(o),u=Or(o),d=Ar(i),p=Or(i),f=Ar(a),h=Or(a),m=Ar(s),g=Or(s),v=Ar(l),y=Or(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:to,e:to,f:ao,H:no,I:ro,j:oo,L:io,m:so,M:lo,p:function(e){return o[+(e.getHours()>=12)]},Q:zo,s:Fo,S:co,u:uo,U:po,V:fo,w:ho,W:mo,x:null,X:null,y:go,Y:vo,Z:yo,"%":qo},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:bo,e:bo,f:ko,H:xo,I:wo,j:Eo,L:Co,m:So,M:To,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:zo,s:Fo,S:Ro,u:No,U:Po,V:Do,w:Mo,W:Lo,x:null,X:null,y:Io,Y:Ao,Z:Oo,"%":qo},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:Ur,e:Ur,f:Zr,H:Yr,I:Yr,j:_r,L:Gr,m:Vr,M:Kr,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Qr,s:eo,S:Xr,u:zr,U:Fr,V:Wr,w:qr,W:Hr,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:$r,Y:Br,Z:jr,"%":Jr};function E(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=Nr[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=kr(1900);if(k(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Cr(kr(i.y))).getUTCDay(),r=o>4||0===o?mr.ceil(r):mr(r),r=pr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(kr(i.y))).getDay(),r=o>4||0===o?ir.ceil(r):ir(r),r=nr.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Cr(kr(i.y)).getUTCDay():t(kr(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Cr(i)):t(i)}}function k(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Nr?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=E(n,b),b.X=E(r,b),b.c=E(t,b),x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",Er);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,Cr);return t.toString=function(){return e},t}}}(e)).format,Sr.parse,Tr=Sr.utcFormat,Rr=Sr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Wo="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Tr(Wo),+new Date("2000-01-01T00:00:00.000Z")||Rr(Wo);const Ho=Q.bind(null,!0),Bo={},{isArray:$o}=Array;function jo(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Vo(e){return void 0===e}function Uo(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function _o(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=Vo(e[r||t])?i:e[t],e=e[r||t]})),e}function Yo(e,t){let n=!0;if(jo(e)&&jo(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Yo(e[r],t[r])||(n=!1)})),n);if($o(e)&&$o(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Yo(e[n],t[n]))return!1;return!0}return e===t}Bo.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Ho({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;Yo(i,a)||Uo(t,o)||(Vo(a)?r.push({op:"add",path:s,value:i}):jo(i)&&jo(a)?r=r.concat(Bo.generate(a,i,s)):$o(i)&&$o(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Vo(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Yo(t,o))return r;if(!Vo(t[0])&&Vo(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(Bo.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{Vo(t[o])&&!Uo(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},Bo.apply=function(e,t){t.forEach((t=>{let n=_o(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if($o(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if($o(o)&&$o(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(jo(o)&&jo(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Uo(a,e)&&delete a[e]})),Ho(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=_o(e,t.from);$o(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&($o(n)?n.splice(+r,1):delete n[r]);var a}))},Bo.clone=function(e){return Ho({},e)},Bo.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Bo.updateObject=function(e,t){Object.keys(e).length?Bo.apply(e,Bo.generate(e,t)):Ho(e,t)};const Ko=[[2,4,6],[2,4],[3]],Xo=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function Go(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function Zo(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Go(e[r],t,n)}!function(){let e,t;for(Zo(Ko,1,10),e=0;e<Xo.length;e++)if(Xo[e])for(t=0;t<Xo[e].length;t++)Array.isArray(Xo[e][t])&&Zo(Xo[e][t])}();var Jo={exports:{}};function Qo(){}function ei(){}ei.resetWarningCache=Qo;Jo.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ei,resetWarningCache:Qo};return n.PropTypes=n,n}();var ti={black:"#000",white:"#fff"},ni="#e57373",ri="#f44336",oi="#d32f2f",ii="#ff4081",ai="#f50057",si="#c51162",li="#7986cb",ci="#3f51b5",ui="#303f9f",di={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function pi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>n?n:e}function fi(e){if(e.type)return e;if("#"===e.charAt(0))return fi(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb(".concat(n.map((function(e){return parseInt(e,16)})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(["Material-UI: unsupported `".concat(e,"` color."),"We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."].join("\n"));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function hi(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function mi(e){var t="hsl"===(e=fi(e)).type?fi(function(e){var t=(e=fi(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),hi({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return mi(e)>.5?yi(e,t):bi(e,t)}function vi(e,t){return e=fi(e),t=pi(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,hi(e)}function yi(e,t){if(e=fi(e),t=pi(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return hi(e)}function bi(e,t){if(e=fi(e),t=pi(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return hi(e)}function xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(){return(wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ei(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ci(e,t){if(null==e)return{};var n,r,o=Ei(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ki(e){return(ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Si(e){return(Si="function"==typeof Symbol&&"symbol"===ki(Symbol.iterator)?function(e){return ki(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ki(e)})(e)}function Ti(e){return e&&"object"===Si(e)&&!Array.isArray(e)}function Ri(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?wi({},e):e;return Ti(e)&&Ti(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Ti(t[o])&&o in e?r[o]=Ri(e[o],t[o],n):r[o]=t[o])})),r}(Jo.exports.element,function(){return null}).isRequired=(Jo.exports.element.isRequired,function(){return null});var Ni={exports:{}},Pi={};
7
+ System.register(["hammerjs","picasso.js","picasso-plugin-q","react","react-dom","@nebula.js/stardust","qlik-chart-modules","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,w,E,C,k,S,T,R,N,P,D,M,L,I,A,O,q,z,F,W;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.default,i=e.Children,a=e.isValidElement,s=e.cloneElement},function(e){l=e.default},function(e){c=e.useOptions,u=e.useElement,d=e.useSelections,p=e.useState,f=e.useLayout,h=e.useTranslator,m=e.useAction,g=e.useEffect,v=e.useModel,y=e.useApp,b=e.useStaleLayout,x=e.usePlugins,w=e.useConstraints,E=e.useTheme,C=e.useAppLayout,k=e.useEmbed,S=e.usePromise,T=e.useRect,R=e.onTakeSnapshot,N=e.useImperativeHandle},function(e){P=e.selectionService,D=e.storage,M=e.cache,L=e.getValue,I=e.tooltipService,A=e.colorService,O=e.pluginService,q=e.themeService,z=e.debouncer,F=e.setValue},function(e){W=e.default}],execute:function(){var H={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const B={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function $(e){return B[e]||e}function j(e){return function(t,n,r){let o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=$(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((t=>{const n=$(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,o=e,i={chart:t,mediator:n,settings:o},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var U=Object.prototype.hasOwnProperty,_=Object.prototype.toString,Y=Object.defineProperty,K=Object.getOwnPropertyDescriptor,X=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===_.call(e)},G=function(e){if(!e||"[object Object]"!==_.call(e))return!1;var t,n=U.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&U.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||U.call(e,t)},Z=function(e,t){Y&&"__proto__"===t.name?Y(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},J=function(e,t){if("__proto__"===t){if(!U.call(e,t))return;if(K)return K(e,t).value}return e[t]},Q=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=J(s,n),s!==(o=J(t,n))&&(u&&o&&(G(o)||(i=X(o)))?(i?(i=!1,a=r&&X(r)?r:[]):a=r&&G(r)?r:{},Z(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Z(s,{name:n,newValue:o}));return s};const ee="center",te="bottom";var ne={NoDataExist:{label:"NoDataExist",alignment:ee,default:!0},OnlyNanData:{label:"OnlyNanData",alignment:ee,default:!0},OnlyNegativeOrZeroValues:{label:"OnlyNegativeOrZeroValues",alignment:ee,default:!1},LimitedData:{label:"LimitedData",alignment:te,default:!1},OnlyNanColor:{label:"OnlyNanColor",alignment:te,default:!1},NegativeOrZeroValues:{label:"NegativeOrZeroValues",alignment:te,default:!1},DataRangeIncludingZero:{label:"DataRangeIncludingZero",alignment:te,default:!1}};const re=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],oe={};re.forEach((([e,{width:t,height:n}])=>{oe[e]={width:t,height:n}}));const ie={getLayoutModes:()=>oe,getLayoutMode(e,t){let n;for(n=0;n<re.length;++n)if(e>=re[n][1].width&&t>=re[n][1].height)return re[n][0];return"SPARK"}};function ae(e,t){return{layoutModes:ie.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const se=(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i};function le(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const ce=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),ue=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),de=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),pe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>ce.test(e),isRtlChar:e=>ue.test(e)||de.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],pe.isLtrChar(r))return"ltr";if(pe.isRtlChar(r))return"rtl"}return"ltr"}},fe={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=""+n.coloring.label),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=""+e}}return a.fill=void 0===r._fillColor?fe.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:""+e(t.source.key).field(t.source.field).title(),value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=pe.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=pe.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:pe.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=pe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=pe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,fe.getColorSymbol(e,t)]:[fe.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=pe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=pe.detectTextDirection(e.value);let l;return l=o?r?[e.value,fe.getColorSymbol(t,n)]:[fe.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function he(e){const t=parseInt(e,10);if(!isNaN(t))return t}const me=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function ge(e,t){const n=e.themeService.getStyles();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=n.themeService.getStyles();return{position:e.position,justify:e.justify,fill:e.onBackground?r.label.value.color:me(t),overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:he(n.label.value.fontSize),fontFamily:n.label.value.fontFamily,label:e.label}}function ve(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ye(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function be(){}var xe=.7,we=1/xe,Ee="\\s*([+-]?\\d+)\\s*",Ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Se=/^#([0-9a-f]{3,8})$/,Te=new RegExp(`^rgb\\(${Ee},${Ee},${Ee}\\)$`),Re=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),Ne=new RegExp(`^rgba\\(${Ee},${Ee},${Ee},${Ce}\\)$`),Pe=new RegExp(`^rgba\\(${ke},${ke},${ke},${Ce}\\)$`),De=new RegExp(`^hsl\\(${Ce},${ke},${ke}\\)$`),Me=new RegExp(`^hsla\\(${Ce},${ke},${ke},${Ce}\\)$`),Le={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 Ie(){return this.rgb().formatHex()}function Ae(){return this.rgb().formatRgb()}function Oe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Se.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?qe(t):3===n?new We(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ze(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=Te.exec(e))?new We(t[1],t[2],t[3],1):(t=Re.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ne.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=Pe.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=De.exec(e))?Ue(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Ue(t[1],t[2]/100,t[3]/100,t[4]):Le.hasOwnProperty(e)?qe(Le[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function qe(e){return new We(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,n,r){return r<=0&&(e=t=n=NaN),new We(e,t,n,r)}function Fe(e){return e instanceof be||(e=Oe(e)),e?new We((e=e.rgb()).r,e.g,e.b,e.opacity):new We}function We(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function He(){return`#${Ve(this.r)}${Ve(this.g)}${Ve(this.b)}`}function Be(){const e=$e(this.opacity);return`${1===e?"rgb(":"rgba("}${je(this.r)}, ${je(this.g)}, ${je(this.b)}${1===e?")":`, ${e})`}`}function $e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function je(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ve(e){return((e=je(e))<16?"0":"")+e.toString(16)}function Ue(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ye(e,t,n,r)}function _e(e){if(e instanceof Ye)return new Ye(e.h,e.s,e.l,e.opacity);if(e instanceof be||(e=Oe(e)),!e)return new Ye;if(e instanceof Ye)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ye(a,s,l,e.opacity)}function Ye(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ke(e){return(e=(e||0)%360)<0?e+360:e}function Xe(e){return Math.max(0,Math.min(1,e||0))}function Ge(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ve(be,Oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ie,formatHex:Ie,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _e(this).formatHsl()},formatRgb:Ae,toString:Ae}),ve(We,(function(e,t,n,r){return 1===arguments.length?Fe(e):new We(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return e=null==e?we:Math.pow(we,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?xe:Math.pow(xe,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(je(this.r),je(this.g),je(this.b),$e(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:He,formatHex:He,formatHex8:function(){return`#${Ve(this.r)}${Ve(this.g)}${Ve(this.b)}${Ve(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Be,toString:Be})),ve(Ye,(function(e,t,n,r){return 1===arguments.length?_e(e):new Ye(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return e=null==e?we:Math.pow(we,e),new Ye(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xe:Math.pow(xe,e),new Ye(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,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new We(Ge(e>=240?e-240:e+120,o,r),Ge(e,o,r),Ge(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ye(Ke(this.h),Xe(this.s),Xe(this.l),$e(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=$e(this.opacity);return`${1===e?"hsl(":"hsla("}${Ke(this.h)}, ${100*Xe(this.s)}%, ${100*Xe(this.l)}%${1===e?")":`, ${e})`}`}}));const Ze=Math.PI/180,Je=180/Math.PI,Qe=.96422,et=.82521,tt=4/29,nt=6/29,rt=3*nt*nt;function ot(e){if(e instanceof it)return new it(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof We||(e=Fe(e));var t,n,r=ct(e.r),o=ct(e.g),i=ct(e.b),a=at((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=at((.4360747*r+.3850649*o+.1430804*i)/Qe),n=at((.0139322*r+.0971045*o+.7141733*i)/et)),new it(116*a-16,500*(t-a),200*(a-n),e.opacity)}function it(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function at(e){return e>.008856451679035631?Math.pow(e,1/3):e/rt+tt}function st(e){return e>nt?e*e*e:rt*(e-tt)}function lt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ut(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof it||(e=ot(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Je;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function dt(e,t,n,r){return 1===arguments.length?ut(e):new pt(e,t,n,null==r?1:r)}function pt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ft(e){if(isNaN(e.h))return new it(e.l,0,0,e.opacity);var t=e.h*Ze;return new it(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ve(it,(function(e,t,n,r){return 1===arguments.length?ot(e):new it(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return new it(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new it(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 We(lt(3.1338561*(t=Qe*st(t))-1.6168667*(e=1*st(e))-.4906146*(n=et*st(n))),lt(-.9787684*t+1.9161415*e+.033454*n),lt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ve(pt,dt,ye(be,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var ht=-.14861,mt=1.78277,gt=-.29227,vt=-.90649,yt=1.97294,bt=yt*vt,xt=yt*mt,wt=mt*gt-vt*ht;function Et(e){if(e instanceof Ct)return new Ct(e.h,e.s,e.l,e.opacity);e instanceof We||(e=Fe(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(wt*r+bt*t-xt*n)/-5.9615122912,i=r-o,a=(yt*(n-o)-gt*i)/vt,s=Math.sqrt(a*a+i*i)/(yt*o*(1-o)),l=s?Math.atan2(a,i)*Je-120:NaN;return new Ct(l<0?l+360:l,s,o,e.opacity)}function Ct(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function kt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}ve(Ct,(function(e,t,n,r){return 1===arguments.length?Et(e):new Ct(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return e=null==e?we:Math.pow(we,e),new Ct(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xe:Math.pow(xe,e),new Ct(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Ze,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new We(255*(t+n*(ht*r+mt*o)),255*(t+n*(gt*r+vt*o)),255*(t+n*(yt*r)),this.opacity)}})),function(e){1===e.length&&(e=function(e){return function(t,n){return kt(e(t),n)}}(e))}(kt);var St="$";function Tt(){}function Rt(e,t){var n=new Tt;if(e instanceof Tt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Nt(){}Tt.prototype=Rt.prototype={constructor:Tt,has:function(e){return St+e in this},get:function(e){return this[St+e]},set:function(e,t){return this[St+e]=t,this},remove:function(e){var t=St+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===St&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===St&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===St&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===St&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===St&&++e;return e},empty:function(){for(var e in this)if(e[0]===St)return!1;return!0},each:function(e){for(var t in this)t[0]===St&&e(this[t],t.slice(1),this)}};var Pt=Rt.prototype;function Dt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Lt(){}Nt.prototype={constructor:Nt,has:Pt.has,add:function(e){return this[St+(e+="")]=e,this},remove:Pt.remove,clear:Pt.clear,values:Pt.keys,size:Pt.size,empty:Pt.empty,each:Pt.each};var It=.7,At=1/It,Ot="\\s*([+-]?\\d+)\\s*",qt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",zt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ft=/^#([0-9a-f]{3})$/,Wt=/^#([0-9a-f]{6})$/,Ht=new RegExp("^rgb\\("+[Ot,Ot,Ot]+"\\)$"),Bt=new RegExp("^rgb\\("+[zt,zt,zt]+"\\)$"),$t=new RegExp("^rgba\\("+[Ot,Ot,Ot,qt]+"\\)$"),jt=new RegExp("^rgba\\("+[zt,zt,zt,qt]+"\\)$"),Vt=new RegExp("^hsl\\("+[qt,zt,zt]+"\\)$"),Ut=new RegExp("^hsla\\("+[qt,zt,zt,qt]+"\\)$"),_t={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 Yt(e){var t;return e=(e+"").trim().toLowerCase(),(t=Ft.exec(e))?new Jt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Wt.exec(e))?Kt(parseInt(t[1],16)):(t=Ht.exec(e))?new Jt(t[1],t[2],t[3],1):(t=Bt.exec(e))?new Jt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$t.exec(e))?Xt(t[1],t[2],t[3],t[4]):(t=jt.exec(e))?Xt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Vt.exec(e))?en(t[1],t[2]/100,t[3]/100,1):(t=Ut.exec(e))?en(t[1],t[2]/100,t[3]/100,t[4]):_t.hasOwnProperty(e)?Kt(_t[e]):"transparent"===e?new Jt(NaN,NaN,NaN,0):null}function Kt(e){return new Jt(e>>16&255,e>>8&255,255&e,1)}function Xt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jt(e,t,n,r)}function Gt(e){return e instanceof Lt||(e=Yt(e)),e?new Jt((e=e.rgb()).r,e.g,e.b,e.opacity):new Jt}function Zt(e,t,n,r){return 1===arguments.length?Gt(e):new Jt(e,t,n,null==r?1:r)}function Jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Qt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function en(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new nn(e,t,n,r)}function tn(e){if(e instanceof nn)return new nn(e.h,e.s,e.l,e.opacity);if(e instanceof Lt||(e=Yt(e)),!e)return new nn;if(e instanceof nn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new nn(a,s,l,e.opacity)}function nn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function rn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Dt(Lt,Yt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Dt(Jt,Zt,Mt(Lt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?It:Math.pow(It,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Qt(this.r)+Qt(this.g)+Qt(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Dt(nn,(function(e,t,n,r){return 1===arguments.length?tn(e):new nn(e,t,n,null==r?1:r)}),Mt(Lt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new nn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?It:Math.pow(It,e),new nn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Jt(rn(e>=240?e-240:e+120,o,r),rn(e,o,r),rn(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var on=Math.PI/180,an=180/Math.PI,sn=.96422,ln=.82521,cn=4/29,un=6/29,dn=3*un*un;function pn(e){if(e instanceof fn)return new fn(e.l,e.a,e.b,e.opacity);if(e instanceof bn){if(isNaN(e.h))return new fn(e.l,0,0,e.opacity);var t=e.h*on;return new fn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Jt||(e=Gt(e));var n,r,o=vn(e.r),i=vn(e.g),a=vn(e.b),s=hn((.2225045*o+.7168786*i+.0606169*a)/1);return o===i&&i===a?n=r=s:(n=hn((.4360747*o+.3850649*i+.1430804*a)/sn),r=hn((.0139322*o+.0971045*i+.7141733*a)/ln)),new fn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function fn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function hn(e){return e>.008856451679035631?Math.pow(e,1/3):e/dn+cn}function mn(e){return e>un?e*e*e:dn*(e-cn)}function gn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yn(e){if(e instanceof bn)return new bn(e.h,e.c,e.l,e.opacity);if(e instanceof fn||(e=pn(e)),0===e.a&&0===e.b)return new bn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*an;return new bn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function bn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Dt(fn,(function(e,t,n,r){return 1===arguments.length?pn(e):new fn(e,t,n,null==r?1:r)}),Mt(Lt,{brighter:function(e){return new fn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new fn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){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 Jt(gn(3.1338561*(t=sn*mn(t))-1.6168667*(e=1*mn(e))-.4906146*(n=ln*mn(n))),gn(-.9787684*t+1.9161415*e+.033454*n),gn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Dt(bn,(function(e,t,n,r){return 1===arguments.length?yn(e):new bn(e,t,n,null==r?1:r)}),Mt(Lt,{brighter:function(e){return new bn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new bn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return pn(this).rgb()}}));var xn=-.14861,wn=1.78277,En=-.29227,Cn=-.90649,kn=1.97294,Sn=kn*Cn,Tn=kn*wn,Rn=wn*En-Cn*xn;function Nn(e){if(e instanceof Dn)return new Dn(e.h,e.s,e.l,e.opacity);e instanceof Jt||(e=Gt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Rn*r+Sn*t-Tn*n)/(Rn+Sn-Tn),i=r-o,a=(kn*(n-o)-En*i)/Cn,s=Math.sqrt(a*a+i*i)/(kn*o*(1-o)),l=s?Math.atan2(a,i)*an-120:NaN;return new Dn(l<0?l+360:l,s,o,e.opacity)}function Pn(e,t,n,r){return 1===arguments.length?Nn(e):new Dn(e,t,n,null==r?1:r)}function Dn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mn(e){return function(){return e}}function Ln(e,t){return function(n){return e+n*t}}function In(e){return 1==(e=+e)?An: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(r){return Math.pow(e+r*t,n)}}(t,n,e):Mn(isNaN(t)?n:t)}}function An(e,t){var n=t-e;return n?Ln(e,n):Mn(isNaN(e)?t:e)}function On(e){return function t(n){function r(t,r){var o=e((t=Pn(t)).h,(r=Pn(r)).h),i=An(t.s,r.s),a=An(t.l,r.l),s=An(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function qn(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}Dt(Dn,Pn,Mt(Lt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new Dn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?It:Math.pow(It,e),new Dn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*on,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new Jt(255*(t+n*(xn*r+wn*o)),255*(t+n*(En*r+Cn*o)),255*(t+n*(kn*r)),this.opacity)}})),function e(t){var n=In(t);function r(e,t){var r=n((e=Zt(e)).r,(t=Zt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=An(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),On((function(e,t){var n=t-e;return n?Ln(e,n>180||n<-180?n-360*Math.round(n/360):n):Mn(isNaN(e)?t:e)})),On(An);var zn,Fn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Wn(e){return new Hn(e)}function Hn(e){if(!(t=Fn.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function Bn(e,t){var n=qn(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Wn.prototype=Hn.prototype,Hn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var $n={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Bn(100*e,t)},r:Bn,s:function(e,t){var n=qn(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(zn=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+qn(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function jn(e){return e}var Vn,Un=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _n(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}):jn,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):jn,s=e.percent||"%";function l(e){var t=(e=Wn(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,p=e.comma,f=e.precision,h=e.trim,m=e.type;"n"===m?(p=!0,m="g"):$n[m]||(null==f&&(f=12),h=!0,m="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?o[0]:"#"===c&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",v="$"===c?o[1]:/[%p]/.test(m)?s:"",y=$n[m],b=/[defgprs%]/.test(m);function x(e){var o,s,c,x=g,w=v;if("c"===m)w=y(e)+w,e="";else{var E=(e=+e)<0;if(e=y(Math.abs(e),f),h&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(o>0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),E&&0==+e&&(E=!1),x=(E?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===m?Un[8+zn/3]:"")+w+(E&&"("===l?")":""),b)for(o=-1,s=e.length;++o<s;)if(48>(c=e.charCodeAt(o))||c>57){w=(46===c?i+e.slice(o+1):e.slice(o))+w,e=e.slice(0,o);break}}p&&!u&&(e=r(e,1/0));var C=x.length+e.length+w.length,k=C<d?new Array(d-C+1).join(t):"";switch(p&&u&&(e=r(k+e,k.length?d-w.length:1/0),k=""),n){case"<":e=x+e+w+k;break;case"=":e=x+k+e+w;break;case"^":e=k.slice(0,C=k.length>>1)+x+e+w+k.slice(C);break;default:e=k+x+e+w}return a(e)}return f=null==f?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Wn(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=qn(Math.abs(e)))?e[1]:NaN}(t)/3))),o=Math.pow(10,-r),i=Un[8+r/3];return function(e){return n(o*e)+i}}}}!function(e){(Vn=_n(e)).format,Vn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Yn=new Date,Kn=new Date;function Xn(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return Xn((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Yn.setTime(+t),Kn.setTime(+r),e(Yn),e(Kn),Math.floor(n(Yn,Kn))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Gn=Xn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Gn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Xn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Gn:null},Gn.range;var Zn=1e3,Jn=6e4,Qn=36e5,er=864e5,tr=6048e5;Xn((function(e){e.setTime(Math.floor(e/Zn)*Zn)}),(function(e,t){e.setTime(+e+t*Zn)}),(function(e,t){return(t-e)/Zn}),(function(e){return e.getUTCSeconds()})).range,Xn((function(e){e.setTime(Math.floor(e/Jn)*Jn)}),(function(e,t){e.setTime(+e+t*Jn)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getMinutes()})).range,Xn((function(e){var t=e.getTimezoneOffset()*Jn%Qn;t<0&&(t+=Qn),e.setTime(Math.floor((+e-t)/Qn)*Qn+t)}),(function(e,t){e.setTime(+e+t*Qn)}),(function(e,t){return(t-e)/Qn}),(function(e){return e.getHours()})).range;var nr=Xn((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jn)/er}),(function(e){return e.getDate()-1}));function rr(e){return Xn((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jn)/tr}))}nr.range;var or=rr(0),ir=rr(1),ar=rr(2),sr=rr(3),lr=rr(4),cr=rr(5),ur=rr(6);or.range,ir.range,ar.range,sr.range,lr.range,cr.range,ur.range,Xn((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var dr=Xn((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));dr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xn((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},dr.range,Xn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Jn)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getUTCMinutes()})).range,Xn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Qn)}),(function(e,t){return(t-e)/Qn}),(function(e){return e.getUTCHours()})).range;var pr=Xn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/er}),(function(e){return e.getUTCDate()-1}));function fr(e){return Xn((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/tr}))}pr.range;var hr=fr(0),mr=fr(1),gr=fr(2),vr=fr(3),yr=fr(4),br=fr(5),xr=fr(6);hr.range,mr.range,gr.range,vr.range,yr.range,br.range,xr.range,Xn((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})).range;var wr=Xn((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function Er(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Cr(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function kr(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}wr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xn((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},wr.range;var Sr,Tr,Rr,Nr={"-":"",_:" ",0:"0"},Pr=/^\s*\d+/,Dr=/^%/,Mr=/[\\^$*+?|[\]().{}]/g;function Lr(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Ir(e){return e.replace(Mr,"\\$&")}function Ar(e){return new RegExp("^(?:"+e.map(Ir).join("|")+")","i")}function Or(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function qr(e,t,n){var r=Pr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=Pr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Fr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Hr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Br(e,t,n){var r=Pr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $r(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function jr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Vr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ur(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _r(e,t,n){var r=Pr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Yr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Kr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Xr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Gr(e,t,n){var r=Pr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Zr(e,t,n){var r=Pr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Jr(e,t,n){var r=Dr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Qr(e,t,n){var r=Pr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function eo(e,t,n){var r=Pr.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function to(e,t){return Lr(e.getDate(),t,2)}function no(e,t){return Lr(e.getHours(),t,2)}function ro(e,t){return Lr(e.getHours()%12||12,t,2)}function oo(e,t){return Lr(1+nr.count(dr(e),e),t,3)}function io(e,t){return Lr(e.getMilliseconds(),t,3)}function ao(e,t){return io(e,t)+"000"}function so(e,t){return Lr(e.getMonth()+1,t,2)}function lo(e,t){return Lr(e.getMinutes(),t,2)}function co(e,t){return Lr(e.getSeconds(),t,2)}function uo(e){var t=e.getDay();return 0===t?7:t}function po(e,t){return Lr(or.count(dr(e),e),t,2)}function fo(e,t){var n=e.getDay();return e=n>=4||0===n?lr(e):lr.ceil(e),Lr(lr.count(dr(e),e)+(4===dr(e).getDay()),t,2)}function ho(e){return e.getDay()}function mo(e,t){return Lr(ir.count(dr(e),e),t,2)}function go(e,t){return Lr(e.getFullYear()%100,t,2)}function vo(e,t){return Lr(e.getFullYear()%1e4,t,4)}function yo(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Lr(t/60|0,"0",2)+Lr(t%60,"0",2)}function bo(e,t){return Lr(e.getUTCDate(),t,2)}function xo(e,t){return Lr(e.getUTCHours(),t,2)}function wo(e,t){return Lr(e.getUTCHours()%12||12,t,2)}function Eo(e,t){return Lr(1+pr.count(wr(e),e),t,3)}function Co(e,t){return Lr(e.getUTCMilliseconds(),t,3)}function ko(e,t){return Co(e,t)+"000"}function So(e,t){return Lr(e.getUTCMonth()+1,t,2)}function To(e,t){return Lr(e.getUTCMinutes(),t,2)}function Ro(e,t){return Lr(e.getUTCSeconds(),t,2)}function No(e){var t=e.getUTCDay();return 0===t?7:t}function Po(e,t){return Lr(hr.count(wr(e),e),t,2)}function Do(e,t){var n=e.getUTCDay();return e=n>=4||0===n?yr(e):yr.ceil(e),Lr(yr.count(wr(e),e)+(4===wr(e).getUTCDay()),t,2)}function Mo(e){return e.getUTCDay()}function Lo(e,t){return Lr(mr.count(wr(e),e),t,2)}function Io(e,t){return Lr(e.getUTCFullYear()%100,t,2)}function Ao(e,t){return Lr(e.getUTCFullYear()%1e4,t,4)}function Oo(){return"+0000"}function qo(){return"%"}function zo(e){return+e}function Fo(e){return Math.floor(+e/1e3)}!function(e){(Sr=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Ar(o),u=Or(o),d=Ar(i),p=Or(i),f=Ar(a),h=Or(a),m=Ar(s),g=Or(s),v=Ar(l),y=Or(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:to,e:to,f:ao,H:no,I:ro,j:oo,L:io,m:so,M:lo,p:function(e){return o[+(e.getHours()>=12)]},Q:zo,s:Fo,S:co,u:uo,U:po,V:fo,w:ho,W:mo,x:null,X:null,y:go,Y:vo,Z:yo,"%":qo},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:bo,e:bo,f:ko,H:xo,I:wo,j:Eo,L:Co,m:So,M:To,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:zo,s:Fo,S:Ro,u:No,U:Po,V:Do,w:Mo,W:Lo,x:null,X:null,y:Io,Y:Ao,Z:Oo,"%":qo},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:Ur,e:Ur,f:Zr,H:Yr,I:Yr,j:_r,L:Gr,m:Vr,M:Kr,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Qr,s:eo,S:Xr,u:zr,U:Fr,V:Wr,w:qr,W:Hr,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:$r,Y:Br,Z:jr,"%":Jr};function E(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=Nr[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=kr(1900);if(k(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Cr(kr(i.y))).getUTCDay(),r=o>4||0===o?mr.ceil(r):mr(r),r=pr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(kr(i.y))).getDay(),r=o>4||0===o?ir.ceil(r):ir(r),r=nr.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Cr(kr(i.y)).getUTCDay():t(kr(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Cr(i)):t(i)}}function k(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Nr?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=E(n,b),b.X=E(r,b),b.c=E(t,b),x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",Er);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,Cr);return t.toString=function(){return e},t}}}(e)).format,Sr.parse,Tr=Sr.utcFormat,Rr=Sr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Wo="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Tr(Wo),+new Date("2000-01-01T00:00:00.000Z")||Rr(Wo);const Ho=Q.bind(null,!0),Bo={},{isArray:$o}=Array;function jo(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Vo(e){return void 0===e}function Uo(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function _o(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=Vo(e[r||t])?i:e[t],e=e[r||t]})),e}function Yo(e,t){let n=!0;if(jo(e)&&jo(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Yo(e[r],t[r])||(n=!1)})),n);if($o(e)&&$o(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Yo(e[n],t[n]))return!1;return!0}return e===t}Bo.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Ho({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;Yo(i,a)||Uo(t,o)||(Vo(a)?r.push({op:"add",path:s,value:i}):jo(i)&&jo(a)?r=r.concat(Bo.generate(a,i,s)):$o(i)&&$o(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Vo(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Yo(t,o))return r;if(!Vo(t[0])&&Vo(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(Bo.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{Vo(t[o])&&!Uo(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},Bo.apply=function(e,t){t.forEach((t=>{let n=_o(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if($o(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if($o(o)&&$o(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(jo(o)&&jo(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Uo(a,e)&&delete a[e]})),Ho(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=_o(e,t.from);$o(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&($o(n)?n.splice(+r,1):delete n[r]);var a}))},Bo.clone=function(e){return Ho({},e)},Bo.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Bo.updateObject=function(e,t){Object.keys(e).length?Bo.apply(e,Bo.generate(e,t)):Ho(e,t)};const Ko=[[2,4,6],[2,4],[3]],Xo=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function Go(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function Zo(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Go(e[r],t,n)}!function(){let e,t;for(Zo(Ko,1,10),e=0;e<Xo.length;e++)if(Xo[e])for(t=0;t<Xo[e].length;t++)Array.isArray(Xo[e][t])&&Zo(Xo[e][t])}();var Jo={exports:{}};function Qo(){}function ei(){}ei.resetWarningCache=Qo;Jo.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ei,resetWarningCache:Qo};return n.PropTypes=n,n}();var ti={black:"#000",white:"#fff"},ni="#e57373",ri="#f44336",oi="#d32f2f",ii="#ff4081",ai="#f50057",si="#c51162",li="#7986cb",ci="#3f51b5",ui="#303f9f",di={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function pi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>n?n:e}function fi(e){if(e.type)return e;if("#"===e.charAt(0))return fi(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb(".concat(n.map((function(e){return parseInt(e,16)})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(["Material-UI: unsupported `".concat(e,"` color."),"We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."].join("\n"));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function hi(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function mi(e){var t="hsl"===(e=fi(e)).type?fi(function(e){var t=(e=fi(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),hi({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return mi(e)>.5?yi(e,t):bi(e,t)}function vi(e,t){return e=fi(e),t=pi(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,hi(e)}function yi(e,t){if(e=fi(e),t=pi(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return hi(e)}function bi(e,t){if(e=fi(e),t=pi(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return hi(e)}function xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(){return(wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ei(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ci(e,t){if(null==e)return{};var n,r,o=Ei(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ki(e){return(ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Si(e){return(Si="function"==typeof Symbol&&"symbol"===ki(Symbol.iterator)?function(e){return ki(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ki(e)})(e)}function Ti(e){return e&&"object"===Si(e)&&!Array.isArray(e)}function Ri(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?wi({},e):e;return Ti(e)&&Ti(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Ti(t[o])&&o in e?r[o]=Ri(e[o],t[o],n):r[o]=t[o])})),r}(Jo.exports.element,function(){return null}).isRequired=(Jo.exports.element.isRequired,function(){return null});var Ni={exports:{}},Pi={};
8
8
  /** @license React v16.11.0
9
9
  * react-is.production.min.js
10
10
  *
@@ -44,4 +44,4 @@ Object.defineProperty(Pi,"__esModule",{value:!0});var Di="function"==typeof Symb
44
44
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45
45
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
46
46
  * SOFTWARE.
47
- */var Zh=Xh&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Gh))}};function Jh(e){return e&&"[object Function]"==={}.toString.call(e)}function Qh(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function em(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function tm(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Qh(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:tm(em(e))}function nm(e){return e&&e.referenceNode?e.referenceNode:e}var rm=Xh&&!(!window.MSInputMethodContext||!document.documentMode),om=Xh&&/MSIE 10/.test(navigator.userAgent);function im(e){return 11===e?rm:10===e?om:rm||om}function am(e){if(!e)return document.documentElement;for(var t=im(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Qh(n,"position")?am(n):n:e?e.ownerDocument.documentElement:document.documentElement}function sm(e){return null!==e.parentNode?sm(e.parentNode):e}function lm(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&am(a.firstElementChild)!==a?am(l):l;var c=sm(e);return c.host?lm(c.host,t):lm(e,sm(t).host)}function cm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function um(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=cm(t,"top"),o=cm(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function dm(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function pm(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],im(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function fm(e){var t=e.body,n=e.documentElement,r=im(10)&&getComputedStyle(n);return{height:pm("Height",t,n,r),width:pm("Width",t,n,r)}}var hm=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},mm=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),gm=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},vm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ym(e){return vm({},e,{right:e.left+e.width,bottom:e.top+e.height})}function bm(e){var t={};try{if(im(10)){t=e.getBoundingClientRect();var n=cm(e,"top"),r=cm(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?fm(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=Qh(e);l-=dm(u,"x"),c-=dm(u,"y"),o.width-=l,o.height-=c}return ym(o)}function xm(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=im(10),o="HTML"===t.nodeName,i=bm(e),a=bm(t),s=tm(e),l=Qh(t),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=ym({top:i.top-a.top-c,left:i.left-a.left-u,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop,10),f=parseFloat(l.marginLeft,10);d.top-=c-p,d.bottom-=c-p,d.left-=u-f,d.right-=u-f,d.marginTop=p,d.marginLeft=f}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=um(d,t)),d}function wm(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=xm(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:cm(n),s=t?0:cm(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return ym(l)}function Em(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Qh(e,"position"))return!0;var n=em(e);return!!n&&Em(n)}function Cm(e){if(!e||!e.parentElement||im())return document.documentElement;for(var t=e.parentElement;t&&"none"===Qh(t,"transform");)t=t.parentElement;return t||document.documentElement}function km(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?Cm(e):lm(e,nm(t));if("viewport"===r)i=wm(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=tm(em(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=xm(s,a,o);if("HTML"!==s.nodeName||Em(a))i=l;else{var c=fm(e.ownerDocument),u=c.height,d=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=d+l.left}}var p="number"==typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function Sm(e){return e.width*e.height}function Tm(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=km(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return vm({key:e},s[e],{area:Sm(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Rm(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?Cm(t):lm(t,nm(n));return xm(n,o,r)}function Nm(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Pm(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Dm(e,t,n){n=n.split("-")[0];var r=Nm(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[Pm(s)],o}function Mm(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Lm(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Mm(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Jh(n)&&(t.offsets.popper=ym(t.offsets.popper),t.offsets.reference=ym(t.offsets.reference),t=n(t,e))})),t}function Im(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Rm(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Tm(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Dm(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Lm(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Am(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Om(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function qm(){return this.state.isDestroyed=!0,Am(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Om("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function zm(e){var t=e.ownerDocument;return t?t.defaultView:window}function Fm(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||Fm(tm(i.parentNode),t,n,r),r.push(i)}function Wm(e,t,n,r){n.updateBound=r,zm(e).addEventListener("resize",n.updateBound,{passive:!0});var o=tm(e);return Fm(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Hm(){this.state.eventsEnabled||(this.state=Wm(this.reference,this.options,this.state,this.scheduleUpdate))}function Bm(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,zm(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function $m(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function jm(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&$m(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Vm=Xh&&/Firefox/i.test(navigator.userAgent);function Um(e,t,n){var r=Mm(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var _m=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ym=_m.slice(3);function Km(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ym.indexOf(e),r=Ym.slice(n+1).concat(Ym.slice(0,n));return t?r.reverse():r}var Xm="flip",Gm="clockwise",Zm="counterclockwise";function Jm(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Mm(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return ym(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){$m(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Qm={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:gm({},l,i[l]),end:gm({},l,i[l]+i[c]-a[c])};e.offsets.popper=vm({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],l=void 0;return l=$m(+n)?[+n,0]:Jm(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||am(e.instance.popper);e.instance.reference===n&&(n=am(n));var r=Om("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=km(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),gm({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),gm({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=vm({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Um(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",f=l?"bottom":"right",h=Nm(r)[c];s[f]-h<a[d]&&(e.offsets.popper[d]-=a[d]-(s[f]-h)),s[d]+h>a[f]&&(e.offsets.popper[d]+=s[d]+h-a[f]),e.offsets.popper=ym(e.offsets.popper);var m=s[d]+s[c]/2-h/2,g=Qh(e.instance.popper),v=parseFloat(g["margin"+u],10),y=parseFloat(g["border"+u+"Width"],10),b=m-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[c]-h,b),0),e.arrowElement=r,e.offsets.arrow=(gm(n={},d,Math.round(b)),gm(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Am(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=km(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Pm(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Xm:a=[r,o];break;case Gm:a=Km(r);break;case Zm:a=Km(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=Pm(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),h=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===r&&f||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&f||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&g),x=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&f||!y&&"start"===i&&g||!y&&"end"===i&&m),w=b||x;(p||v||w)&&(e.flipped=!0,(p||v)&&(r=a[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=vm({},e.offsets.popper,Dm(e.instance.popper,e.offsets.reference,e.placement)),e=Lm(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=Pm(t),e.offsets.popper=ym(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Um(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Mm(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=Mm(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=am(e.instance.popper),l=bm(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(o.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?i:a:s,f=t?i:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!Vm),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",f=Om("transform"),h=void 0,m=void 0;if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,h="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&f)c[f]="translate3d("+h+"px, "+m+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===p?-1:1;c[d]=m*g,c[p]=h*v,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=vm({},y,e.attributes),e.styles=vm({},c,e.styles),e.arrowStyles=vm({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return jm(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&jm(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=Rm(o,t,e,n.positionFixed),a=Tm(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),jm(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},eg=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};hm(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Zh(this.update.bind(this)),this.options=vm({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(vm({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=vm({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return vm({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Jh(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return mm(e,[{key:"update",value:function(){return Im.call(this)}},{key:"destroy",value:function(){return qm.call(this)}},{key:"enableEventListeners",value:function(){return Hm.call(this)}},{key:"disableEventListeners",value:function(){return Bm.call(this)}}]),e}();function tg(e){return"function"==typeof e?e():e}eg.Utils=("undefined"!=typeof window?window:global).PopperUtils,eg.placements=_m,eg.Defaults=Qm;var ng="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,rg={},og=o.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,i=e.container,a=e.disablePortal,s=void 0!==a&&a,l=e.keepMounted,c=void 0!==l&&l,u=e.modifiers,d=e.open,p=e.placement,f=void 0===p?"bottom":p,h=e.popperOptions,m=void 0===h?rg:h,g=e.popperRef,v=e.transition,y=void 0!==v&&v,b=Ci(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition"]),x=o.useRef(null),w=Ru(x,t),E=o.useRef(null),C=Ru(E,g),k=o.useRef(C);ng((function(){k.current=C}),[C]),o.useImperativeHandle(g,(function(){return E.current}),[]);var S=o.useState(!0),T=S[0],R=S[1],N=function(e){if("rtl"!==("undefined"!=typeof window&&document.body.getAttribute("dir")||"ltr"))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}}(f),P=o.useState(N),D=P[0],M=P[1],L=o.useCallback((function(){if(x.current&&n&&d){E.current&&(E.current.destroy(),k.current(null));var e=function(e){M(e.placement)};tg(n);var t=new eg(tg(n),x.current,wi({placement:N},m,{modifiers:wi({},s?{}:{preventOverflow:{boundariesElement:"window"}},{},u,{},m.modifiers),onCreate:Dp(e,m.onCreate),onUpdate:Dp(e,m.onUpdate)}));k.current(t)}}),[n,s,u,d,N,m]),I=o.useCallback((function(e){Tu(w,e),L()}),[w,L]),A=function(){E.current&&(E.current.destroy(),k.current(null))};if(o.useEffect((function(){L()}),[L]),o.useEffect((function(){return function(){A()}}),[]),o.useEffect((function(){d||y||A()}),[d,y]),!c&&!d&&(!y||T))return null;var O={placement:D};return y&&(O.TransitionProps={in:d,onEnter:function(){R(!1)},onExited:function(){R(!0),A()}}),o.createElement(Pp,{disablePortal:s,container:i},o.createElement("div",wi({ref:I,role:"tooltip"},b,{style:wi({position:"fixed",top:0,left:0},b.style)}),"function"==typeof r?r(O):r))})),ig=$d(o.createElement("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"})),ag=$d(o.createElement("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"})),sg=o.createElement(ig,null);var lg=_c((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var t=e.checked,n=e.classes;return o.createElement("div",{className:Rc(n.root,t&&n.checked)},sg,o.createElement(ag,{className:n.layer}))})),cg=o.createContext(),ug=o.createElement(lg,{checked:!0}),dg=o.createElement(lg,null),pg=o.forwardRef((function(e,t){var n=e.checked,r=e.classes,i=e.color,a=void 0===i?"secondary":i,s=e.name,l=e.onChange,c=Ci(e,["checked","classes","color","name","onChange"]),u=o.useContext(cg),d=n,p=Dp(l,u&&u.onChange),f=s;return u&&(void 0===d&&(d=u.value===e.value),void 0===f&&(f=u.name)),o.createElement(cp,wi({color:a,type:"radio",icon:dg,checkedIcon:ug,classes:{root:Rc(r.root,r["color".concat(Yc(a))]),checked:r.checked,disabled:r.disabled},name:f,checked:d,onChange:p,ref:t},c))}));function fg(e,t){return"object"===Si(t)&&null!==t?e===t:String(e)===String(t)}_c((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:vi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:vi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(pg),o.forwardRef((function(e,t){var n=e.actions,r=e.children,i=e.name,a=e.value,s=e.onChange,l=Ci(e,["actions","children","name","value","onChange"]),c=o.useRef(null),u=o.useRef(null!=a).current,d=o.useState((function(){return u?null:e.defaultValue})),p=d[0],f=d[1];o.useImperativeHandle(n,(function(){return{focus:function(){var e=c.current.querySelector("input:not(:disabled):checked");e||(e=c.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var h={name:i,onChange:function(e){u||f(e.target.value),s&&s(e,e.target.value)},value:u?a:p},m=Ru(t,c);return o.createElement(Mf,wi({role:"radiogroup",ref:m},l),o.createElement(cg.Provider,{value:h},r))})),o.Component;var hg=o.forwardRef((function(e,t){var n=e.autoFocus,r=e.autoWidth,i=e.children,a=e.classes,s=e.className,l=e.defaultValue,c=e.disabled,u=e.displayEmpty,d=e.labelId,p=e.IconComponent,f=e.inputRef,h=e.MenuProps,m=void 0===h?{}:h,g=e.multiple,v=e.name,y=e.onBlur,b=e.onChange,x=e.onClose,w=e.onFocus,E=e.onOpen,C=e.open,k=e.readOnly,S=e.renderValue;e.required;var T=e.SelectDisplayProps,R=void 0===T?{}:T,N=e.tabIndex;e.type;var P=e.value,D=e.variant,M=void 0===D?"standard":D,L=Ci(e,["autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","labelId","IconComponent","inputRef","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),I=o.useRef(null!=P).current,A=o.useState(l),O=A[0],q=A[1],z=I?P:O,F=o.useRef(null),W=o.useState(null),H=W[0],B=W[1],$=o.useRef(null!=C).current,j=o.useState(),V=j[0],U=j[1],_=o.useState(!1),Y=_[0],K=_[1],X=Ru(t,f);o.useImperativeHandle(X,(function(){return{focus:function(){H.focus()},node:F.current,value:z}}),[H,z]),o.useEffect((function(){n&&H&&H.focus()}),[n,H]);var G,Z,J=function(e,t){e?E&&E(t):(H.focus(),x&&x(t)),$||(U(r?null:H.clientWidth),K(e))},Q=function(e){return function(t){var n;if(g||J(!1,t),g){n=Array.isArray(z)?sl(z):[];var r=z.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;I||q(n),b&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:v}}),b(t,e))}},ee=null!==H&&($?C:Y);delete L["aria-invalid"];var te=[],ne=!1;(xf({value:z})||u)&&(S?G=S(z):ne=!0);var re=o.Children.map(i,(function(e){if(!o.isValidElement(e))return null;var t;if(g){if(!Array.isArray(z))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(t=z.some((function(t){return fg(t,e.props.value)})))&&ne&&te.push(e.props.children)}else(t=fg(z,e.props.value))&&ne&&(Z=e.props.children);return o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:Q(e),role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ne&&(G=g?te.join(", "):Z);var oe,ie=V;!r&&$&&H&&(ie=H.clientWidth),oe=void 0!==N?N:c?null:0;var ae=R.id||(v?"mui-component-select-".concat(v):void 0);return o.createElement(o.Fragment,null,o.createElement("div",wi({className:Rc(a.root,a.select,a.selectMenu,a[M],s,c&&a.disabled),ref:B,tabIndex:oe,role:"button","aria-expanded":ee?"true":void 0,"aria-labelledby":"".concat(d||""," ").concat(ae||""),"aria-haspopup":"listbox",onKeyDown:function(e){if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onClick:c||k?null:function(e){J(!0,e)},onBlur:function(e){!ee&&y&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:v}}),y(e))},onFocus:w},R,{id:ae}),function(e){return null==e||"string"==typeof e&&!e.trim()}(G)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):G),o.createElement("input",wi({value:Array.isArray(z)?z.join(","):z,name:v,ref:F,type:"hidden",autoFocus:n},L)),o.createElement(p,{className:Rc(a.icon,a["icon".concat(Yc(M))],ee&&a.iconOpen)}),o.createElement(qh,wi({id:"menu-".concat(v||""),anchorEl:H,open:ee,onClose:function(e){J(!1,e)}},m,{MenuListProps:wi({"aria-labelledby":d,role:"listbox",disableListWrap:!0},m.MenuListProps),PaperProps:wi({},m.PaperProps,{style:wi({minWidth:ie},null!=m.PaperProps?m.PaperProps.style:null)})}),re))})),mg=$h,gg=o.createElement(th,null),vg=o.createElement(Sf,null),yg=o.forwardRef((function e(t,n){var r=t.autoWidth,i=void 0!==r&&r,a=t.children,s=t.classes,l=t.displayEmpty,c=void 0!==l&&l,u=t.IconComponent,d=void 0===u?Bh:u,p=t.id,f=t.input,h=t.inputProps,m=t.labelId,g=t.MenuProps,v=t.multiple,y=void 0!==v&&v,b=t.native,x=void 0!==b&&b,w=t.onClose,E=t.onOpen,C=t.open,k=t.renderValue,S=t.SelectDisplayProps,T=t.variant,R=void 0===T?"standard":T,N=t.labelWidth,P=void 0===N?0:N,D=Ci(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant","labelWidth"]),M=x?Hh:hg,L=hf({props:t,muiFormControl:ip(),states:["variant"]}).variant||R,I=f||{standard:gg,outlined:o.createElement(Kh,{labelWidth:P}),filled:vg}[L];return o.cloneElement(I,wi({inputComponent:M,select:!0,inputProps:wi({children:a,IconComponent:d,variant:L,type:void 0,multiple:y},x?{}:{autoWidth:i,displayEmpty:c,labelId:m,MenuProps:g,onClose:w,onOpen:E,open:C,renderValue:k,SelectDisplayProps:wi({id:p},S)},{},h,{classes:h?oc({baseClasses:s,newClasses:h.classes,Component:e}):s},f?f.props.inputProps:{}),ref:n},D))}));yg.muiName="Select";var bg=_c(mg,{name:"MuiSelect"})(yg);var xg=_c((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:wi({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,left:"calc(-50% + -4px)",transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,i=e.open,a=e.value,s=e.valueLabelDisplay;return"off"===s?t:o.cloneElement(t,{className:Rc(t.props.className,(i||"on"===s)&&n.open,n.thumb)},o.createElement("span",{className:Rc(n.offset,r)},o.createElement("span",{className:n.circle},o.createElement("span",{className:n.label},a))))}));function wg(e,t){return e-t}function Eg(e,t,n){return e<t?t:e>n?n:e}function Cg(e,t){return e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null).index}function kg(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Sg(e,t,n){return 100*(e-t)/(n-t)}function Tg(e,t){var n=Math.round(e/t)*t;return Number(n.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function Rg(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=sl(t);return i[o]=r,i}function Ng(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[data-index="'.concat(n,'"]')).focus(),r&&r(n)}var Pg={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},Dg=[],Mg=function(e){return e},Lg=o.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],i=e["aria-valuetext"],a=e.classes,s=e.className,l=e.color,c=void 0===l?"primary":l,u=e.component,d=void 0===u?"span":u,p=e.defaultValue,f=e.disabled,h=void 0!==f&&f,m=e.getAriaLabel,g=e.getAriaValueText,v=e.marks,y=void 0===v?Dg:v,b=e.max,x=void 0===b?100:b,w=e.min,E=void 0===w?0:w,C=e.name,k=e.onChange,S=e.onChangeCommitted,T=e.onMouseDown,R=e.orientation,N=void 0===R?"horizontal":R,P=e.step,D=void 0===P?1:P,M=e.ThumbComponent,L=void 0===M?"span":M,I=e.track,A=void 0===I?"normal":I,O=e.value,q=e.ValueLabelComponent,z=void 0===q?xg:q,F=e.valueLabelDisplay,W=void 0===F?"off":F,H=e.valueLabelFormat,B=void 0===H?Mg:H,$=Ci(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),j=Uc(),V=o.useRef(null!=O).current,U=o.useRef(),_=o.useState(-1),Y=_[0],K=_[1],X=o.useState(-1),G=X[0],Z=X[1],J=o.useState(p),Q=J[0],ee=J[1],te=V?O:Q,ne=Array.isArray(te),re=o.useRef(),oe=ne?sl(te).sort(wg):[te];oe=oe.map((function(e){return Eg(e,E,x)}));var ie=!0===y&&null!==D?sl(Array(Math.floor((x-E)/D)+1)).map((function(e,t){return{value:E+D*t}})):y;re.current={source:te};var ae=Ku(),se=ae.isFocusVisible,le=ae.onBlurVisible,ce=ae.ref,ue=o.useState(-1),de=ue[0],pe=ue[1],fe=o.useRef(),he=Ru(ce,fe),me=Ru(t,he),ge=qu((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));se(e)&&pe(t),Z(t)})),ve=qu((function(){-1!==de&&(pe(-1),le()),Z(-1)})),ye=qu((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Z(t)})),be=qu((function(){Z(-1)})),xe=qu((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=oe[n],o=(x-E)/10,i=ie.map((function(e){return e.value})),a=i.indexOf(r);switch(e.key){case"Home":t=E;break;case"End":t=x;break;case"PageUp":D&&(t=r+o);break;case"PageDown":D&&(t=r-o);break;case"ArrowRight":case"ArrowUp":t=D?r+D:i[a+1]||i[i.length-1];break;case"ArrowLeft":case"ArrowDown":t=D?r-D:i[a-1]||i[0];break;default:return}if(e.preventDefault(),D&&(t=Tg(t,D)),t=Eg(t,E,x),ne){var s=t;t=Rg({values:oe,source:te,newValue:t,index:n}).sort(wg),Ng({sliderRef:fe,activeIndex:t.indexOf(s)})}V||ee(t),pe(n),k&&k(e,t),S&&S(e,t)})),we=o.useRef(),Ee=N;"rtl"===j.direction&&"vertical"!==N&&(Ee+="-reverse");var Ce=o.useCallback((function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=e.values,s=e.source,l=fe.current.getBoundingClientRect(),c=l.width,u=l.height,d=l.bottom,p=l.left;if(t=0===Ee.indexOf("vertical")?(d-r.y)/u:(r.x-p)/c,-1!==Ee.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,E,x),D)n=Tg(n,D);else{var f=ie.map((function(e){return e.value}));n=f[Cg(f,n)]}n=Eg(n,E,x);var h=0;if(ne){var m=n;h=(n=Rg({values:a,source:s,newValue:n,index:h=i?we.current:Cg(a,n)}).sort(wg)).indexOf(m),we.current=h}return{newValue:n,activeIndex:h}}),[x,E,Ee,ne,D,ie]),ke=qu((function(e){var t=kg(e,U);if(t){var n=Ce({finger:t,move:!0,values:oe,source:te}),r=n.newValue,o=n.activeIndex;Ng({sliderRef:fe,activeIndex:o,setActive:K}),V||ee(r),k&&k(e,r)}})),Se=qu((function(e){var t=kg(e,U);if(t){var n=Ce({finger:t,values:oe,source:te}).newValue;K(-1),"touchend"===e.type&&Z(-1),S&&S(e,n),U.current=void 0,document.body.removeEventListener("mousemove",ke),document.body.removeEventListener("mouseup",Se),document.body.removeEventListener("mouseenter",Te),document.body.removeEventListener("touchmove",ke),document.body.removeEventListener("touchend",Se)}})),Te=qu((function(e){0===e.buttons&&Se(e)})),Re=qu((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(U.current=t.identifier);var n=kg(e,U),r=Ce({finger:n,values:oe,source:te}),o=r.newValue,i=r.activeIndex;Ng({sliderRef:fe,activeIndex:i,setActive:K}),V||ee(o),k&&k(e,o),document.body.addEventListener("touchmove",ke),document.body.addEventListener("touchend",Se)}));o.useEffect((function(){var e=fe.current;return e.addEventListener("touchstart",Re),function(){e.removeEventListener("touchstart",Re),document.body.removeEventListener("mousemove",ke),document.body.removeEventListener("mouseup",Se),document.body.removeEventListener("mouseenter",Te),document.body.removeEventListener("touchmove",ke),document.body.removeEventListener("touchend",Se)}}),[Te,Se,ke,Re]);var Ne=qu((function(e){T&&T(e),e.preventDefault();var t=kg(e,U),n=Ce({finger:t,values:oe,source:te}),r=n.newValue,o=n.activeIndex;Ng({sliderRef:fe,activeIndex:o,setActive:K}),V||ee(r),k&&k(e,r),document.body.addEventListener("mousemove",ke),document.body.addEventListener("mouseenter",Te),document.body.addEventListener("mouseup",Se)})),Pe=Sg(ne?oe[0]:E,E,x),De=Sg(oe[oe.length-1],E,x)-Pe,Me=wi({},Pg[Ee].offset(Pe),{},Pg[Ee].leap(De));return o.createElement(d,wi({ref:me,className:Rc(a.root,a["color".concat(Yc(c))],s,h&&a.disabled,ie.length>0&&ie.some((function(e){return e.label}))&&a.marked,!1===A&&a.trackFalse,{vertical:a.vertical}[N],{inverted:a.trackInverted}[A]),onMouseDown:Ne},$),o.createElement("span",{className:a.rail}),o.createElement("span",{className:a.track,style:Me}),o.createElement("input",{value:oe.join(","),name:C,type:"hidden"}),ie.map((function(e){var t,n=Sg(e.value,E,x),r=Pg[Ee].offset(n);if(!1===A)t=-1!==oe.indexOf(e.value);else{var i=ne?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0];t=i&&"normal"===A||!i&&"inverted"===A}return o.createElement(o.Fragment,{key:e.value},o.createElement("span",{style:r,className:Rc(a.mark,t&&a.markActive)}),o.createElement("span",{"aria-hidden":!0,style:r,className:Rc(a.markLabel,t&&a.markLabelActive)},e.label))})),oe.map((function(e,t){var s=Sg(e,E,x),l=Pg[Ee].offset(s);return o.createElement(z,{key:t,valueLabelFormat:B,valueLabelDisplay:W,className:a.valueLabel,value:"function"==typeof B?B(e,t):B,index:t,open:G===t||Y===t||"on"===W,disabled:h},o.createElement(L,{className:Rc(a.thumb,a["thumbColor".concat(Yc(c))],Y===t&&a.active,h&&a.disabled,de===t&&a.focusVisible),tabIndex:h?null:0,role:"slider",style:l,"data-index":t,"aria-label":m?m(t):n,"aria-labelledby":r,"aria-orientation":N,"aria-valuemax":x,"aria-valuemin":E,"aria-valuenow":e,"aria-valuetext":g?g(e,t):i,onKeyDown:xe,onFocus:ge,onBlur:ve,onMouseOver:ye,onMouseLeave:be}))})))}));_c((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"11px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 11px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?bi(e.palette.primary.main,.62):yi(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',left:-18,top:-18,right:-18,bottom:-18},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(vi(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(vi(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(vi(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(vi(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:wi({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:22,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:22,transform:"translateY(50%)"}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(Lg);var Ig=o.forwardRef((function(e,t){var n=e.action,r=e.classes,i=e.className,a=e.message,s=e.role,l=void 0===s?"alert":s,c=Ci(e,["action","classes","className","message","role"]);return o.createElement(Xc,wi({component:Wd,variant:"body2",variantMapping:{body1:"div",body2:"div"},role:l,square:!0,elevation:6,className:Rc(r.root,i),ref:t},c),o.createElement("div",{className:r.message},a),n?o.createElement("div",{className:r.action},n):null)})),Ag=_c((function(e){var t="light"===e.palette.type?.8:.98,n=gi(e.palette.background.default,t);return{root:xi({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(Ig),Og=o.forwardRef((function(e,t){var n=e.action,r=e.anchorOrigin,i=(r=void 0===r?{vertical:"bottom",horizontal:"center"}:r).vertical,a=r.horizontal,s=e.autoHideDuration,l=e.children,c=e.classes,u=e.className,d=e.ClickAwayListenerProps,p=e.ContentProps,f=e.disableWindowBlurListener,h=void 0!==f&&f,m=e.message,g=e.onClose,v=e.onEnter,y=e.onEntered,b=e.onEntering,x=e.onExit,w=e.onExited,E=e.onExiting,C=e.onMouseEnter,k=e.onMouseLeave,S=e.open,T=e.resumeHideDuration,R=e.TransitionComponent,N=void 0===R?_f:R,P=e.transitionDuration,D=void 0===P?{enter:pa.enteringScreen,exit:pa.leavingScreen}:P,M=e.TransitionProps,L=Ci(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),I=o.useRef(),A=o.useState(!0),O=A[0],q=A[1],z=o.useCallback((function(e){var t=null!=e?e:s;g&&null!=t&&(clearTimeout(I.current),I.current=setTimeout((function(){g&&null!=(null!=e?e:s)&&g(null,"timeout")}),t))}),[s,g]);o.useEffect((function(){return S&&z(),function(){clearTimeout(I.current)}}),[S,z]);var F=function(){clearTimeout(I.current)},W=o.useCallback((function(){if(null!=s){if(null!=T)return void z(T);z(.5*s)}}),[s,T,z]);return o.useEffect((function(){if(!h&&S)return window.addEventListener("focus",W),window.addEventListener("blur",F),function(){window.removeEventListener("focus",W),window.removeEventListener("blur",F)}}),[h,W,S]),!S&&O?null:o.createElement(kp,wi({onClickAway:function(e){g&&g(e,"clickaway")}},d),o.createElement("div",wi({className:Rc(c.root,c["anchorOrigin".concat(Yc(i)).concat(Yc(a))],u),onMouseEnter:function(e){C&&C(e),F()},onMouseLeave:function(e){k&&k(e),W()},ref:t},L),o.createElement(N,wi({appear:!0,in:S,onEnter:Dp((function(){q(!1)}),v),onEntered:y,onEntering:b,onExit:x,onExited:Dp((function(){q(!0)}),w),onExiting:E,timeout:D,direction:"top"===i?"down":"up"},M),l||o.createElement(Ag,wi({message:m,action:n},p)))))}));_c((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},i={top:24},a={bottom:24},s={right:24},l={left:24},c={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:wi({},t,xi({},e.breakpoints.up("sm"),wi({},i,{},c))),anchorOriginBottomCenter:wi({},n,xi({},e.breakpoints.up("sm"),wi({},a,{},c))),anchorOriginTopRight:wi({},t,{},r,xi({},e.breakpoints.up("sm"),wi({left:"auto"},i,{},s))),anchorOriginBottomRight:wi({},n,{},r,xi({},e.breakpoints.up("sm"),wi({left:"auto"},a,{},s))),anchorOriginTopLeft:wi({},t,{},o,xi({},e.breakpoints.up("sm"),wi({right:"auto"},i,{},l))),anchorOriginBottomLeft:wi({},n,{},o,xi({},e.breakpoints.up("sm"),wi({right:"auto"},a,{},l)))}}),{flip:!1,name:"MuiSnackbar"})(Og);var qg=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.alternativeLabel,a=e.children,s=e.classes,l=e.className,c=e.completed,u=void 0!==c&&c,d=e.connector,p=e.disabled,f=void 0!==p&&p,h=e.index,m=e.last,g=e.orientation,v=Ci(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","index","last","orientation"]);return o.createElement("div",wi({className:Rc(s.root,s[g],l,i&&s.alternativeLabel,u&&s.completed),ref:t},v),d&&i&&0!==h&&o.cloneElement(d,{orientation:g,alternativeLabel:i,index:h,active:r,completed:u,disabled:f}),o.Children.map(a,(function(e){return o.isValidElement(e)?o.cloneElement(e,wi({active:r,alternativeLabel:i,completed:u,disabled:f,last:m,icon:h+1,orientation:g},e.props)):null})))}));_c({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(qg);var zg=$d(o.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),Fg=$d(o.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),Wg=o.createElement("circle",{cx:"12",cy:"12",r:"12"}),Hg=o.forwardRef((function(e,t){var n=e.completed,r=void 0!==n&&n,i=e.icon,a=e.active,s=void 0!==a&&a,l=e.error,c=void 0!==l&&l,u=e.classes;return"number"==typeof i||"string"==typeof i?c?o.createElement(Fg,{className:Rc(u.root,u.error),ref:t}):r?o.createElement(zg,{className:Rc(u.root,u.completed),ref:t}):o.createElement(Bd,{className:Rc(u.root,s&&u.active),ref:t},Wg,o.createElement("text",{className:u.text,x:"12",y:"16",textAnchor:"middle"},i)):i})),Bg=_c((function(e){return{root:{display:"block",color:e.palette.text.disabled,"&$active":{color:e.palette.primary.main},"&$completed":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily},active:{},completed:{},error:{}}}),{name:"MuiStepIcon"})(Hg),$g=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.alternativeLabel,a=void 0!==i&&i,s=e.children,l=e.classes,c=e.className,u=e.completed,d=void 0!==u&&u,p=e.disabled,f=void 0!==p&&p,h=e.error,m=void 0!==h&&h,g=e.icon;e.last;var v=e.optional,y=e.orientation,b=void 0===y?"horizontal":y,x=e.StepIconComponent,w=e.StepIconProps,E=Ci(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),C=x;return g&&!C&&(C=Bg),o.createElement("span",wi({className:Rc(l.root,l[b],c,f&&l.disabled,a&&l.alternativeLabel,m&&l.error),ref:t},E),g||C?o.createElement("span",{className:Rc(l.iconContainer,a&&l.alternativeLabel)},o.createElement(C,wi({completed:d,active:r,error:m,icon:g},w))):null,o.createElement("span",{className:l.labelContainer},o.createElement(Wd,{variant:"body2",component:"span",className:Rc(l.label,a&&l.alternativeLabel,d&&l.completed,r&&l.active,m&&l.error),display:"block"},s),v))}));$g.muiName="StepLabel";var jg=_c((function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}}),{name:"MuiStepLabel"})($g),Vg=o.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,i=e.children,a=e.classes,s=e.className,l=e.completed,c=e.disabled,u=e.icon;e.last;var d=e.optional,p=e.orientation,f=Ci(e,["active","alternativeLabel","children","classes","className","completed","disabled","icon","last","optional","orientation"]),h={active:n,alternativeLabel:r,completed:l,disabled:c,icon:u,optional:d,orientation:p},m=Tf(i,["StepLabel"])?o.cloneElement(i,h):o.createElement(jg,h,i);return o.createElement(td,wi({disabled:c,TouchRippleProps:{className:a.touchRipple},className:Rc(a.root,a[p],s),ref:t},f),m)}));_c({root:{width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},horizontal:{},vertical:{justifyContent:"flex-start",padding:"8px",margin:"-8px"},touchRipple:{color:"rgba(0, 0, 0, 0.3)"}},{name:"MuiStepButton"})(Vg);var Ug=o.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,i=void 0!==r&&r,a=e.classes,s=e.className,l=e.completed,c=e.disabled;e.index;var u=e.orientation,d=void 0===u?"horizontal":u,p=Ci(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return o.createElement("div",wi({className:Rc(a.root,a[d],s,i&&a.alternativeLabel,n&&a.active,l&&a.completed,c&&a.disabled),ref:t},p),o.createElement("span",{className:Rc(a.line,"vertical"===d?a.lineVertical:a.lineHorizontal)}))})),_g=_c((function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}}),{name:"MuiStepConnector"})(Ug),Yg=o.forwardRef((function(e,t){var n=e.active;e.alternativeLabel;var r=e.children,i=e.classes,a=e.className;e.completed;var s=e.last;e.optional,e.orientation;var l=e.TransitionComponent,c=void 0===l?Tp:l,u=e.transitionDuration,d=void 0===u?"auto":u,p=e.TransitionProps,f=Ci(e,["active","alternativeLabel","children","classes","className","completed","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]),h=d;return"auto"!==d||c.muiSupportAuto||(h=void 0),o.createElement("div",wi({className:Rc(i.root,a,s&&i.last),ref:t},f),o.createElement(c,wi({in:n,className:i.transition,timeout:h,unmountOnExit:!0},p),r))}));_c((function(e){return{root:{marginTop:8,marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:"1px solid ".concat("light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600])},last:{borderLeft:"none"},transition:{}}}),{name:"MuiStepContent"})(Yg);var Kg=o.createElement(_g,null),Xg=o.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,i=e.alternativeLabel,a=void 0!==i&&i,s=e.children,l=e.classes,c=e.className,u=e.connector,d=void 0===u?Kg:u,p=e.nonLinear,f=void 0!==p&&p,h=e.orientation,m=void 0===h?"horizontal":h,g=Ci(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),v=o.isValidElement(d)?o.cloneElement(d,{orientation:m}):null,y=o.Children.toArray(s),b=y.map((function(e,t){var n={alternativeLabel:a,connector:d,last:t+1===y.length,orientation:m},i={index:t,active:!1,completed:!1,disabled:!1};return r===t?i.active=!0:!f&&r>t?i.completed=!0:!f&&r<t&&(i.disabled=!0),[!a&&v&&0!==t&&o.cloneElement(v,wi({key:t},i)),o.cloneElement(e,wi({},n,{},i,{},e.props))]}));return o.createElement(Xc,wi({square:!0,elevation:0,className:Rc(l.root,l[m],c,a&&l.alternativeLabel),ref:t},g),b)}));_c({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(Xg);var Gg=o.forwardRef((function(e,t){var n=e.anchor,r=e.classes,i=e.className,a=e.width,s=Ci(e,["anchor","classes","className","width"]);return o.createElement("div",wi({className:Rc(r.root,r["anchor".concat(Yc(n))],i),ref:t,style:xi({},nf(n)?"width":"height",a)},s))})),Zg=_c((function(e){return{root:{position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},anchorLeft:{right:"auto"},anchorRight:{left:"auto",right:0},anchorTop:{bottom:"auto",right:0},anchorBottom:{top:"auto",bottom:0,right:0}}}),{name:"PrivateSwipeArea"})(Gg),Jg=null;function Qg(e,t){return"right"===e?document.body.offsetWidth-t[0].pageX:t[0].pageX}function ev(e,t){return"bottom"===e?window.innerHeight-t[0].clientY:t[0].clientY}function tv(e,t){return e?t.clientWidth:t.clientHeight}function nv(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}var rv="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),ov={enter:pa.enteringScreen,exit:pa.leavingScreen},iv="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;o.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,i=e.disableBackdropTransition,a=void 0!==i&&i,s=e.disableDiscovery,c=void 0!==s&&s,u=e.disableSwipeToOpen,d=void 0===u?rv:u,p=e.hideBackdrop,f=e.hysteresis,h=void 0===f?.52:f,m=e.minFlingVelocity,g=void 0===m?450:m,v=e.ModalProps,y=(v=void 0===v?{}:v).BackdropProps,b=Ci(v,["BackdropProps"]),x=e.onClose,w=e.onOpen,E=e.open,C=e.PaperProps,k=void 0===C?{}:C,S=e.SwipeAreaProps,T=e.swipeAreaWidth,R=void 0===T?20:T,N=e.transitionDuration,P=void 0===N?ov:N,D=e.variant,M=void 0===D?"temporary":D,L=Ci(e,["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"]),I=Uc(),A=o.useState(!1),O=A[0],q=A[1],z=o.useRef({isSwiping:null}),F=o.useRef(),W=o.useRef(),H=o.useRef(),B=o.useRef(!1),$=o.useRef();iv((function(){$.current=null}),[E]);var j=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,o=void 0===n?null:n,i=t.changeTransition,s=void 0===i||i,l=rf(I,r),c=-1!==["right","bottom"].indexOf(l)?1:-1,u=nf(r),d=u?"translate(".concat(c*e,"px, 0)"):"translate(0, ".concat(c*e,"px)"),f=H.current.style;f.webkitTransform=d,f.transform=d;var h="";if(o&&(h=I.transitions.create("all",Su({timeout:P},{mode:o}))),s&&(f.webkitTransition=h,f.transition=h),!a&&!p){var m=W.current.style;m.opacity=1-e/tv(u,H.current),s&&(m.webkitTransition=h,m.transition=h)}}),[r,a,p,I,P]),V=qu((function(e){if(B.current)if(Jg=null,B.current=!1,q(!1),z.current.isSwiping){z.current.isSwiping=null;var t,n=rf(I,r),o=nf(r);t=o?Qg(n,e.changedTouches):ev(n,e.changedTouches);var i=o?z.current.startX:z.current.startY,a=tv(o,H.current),s=nv(t,i,E,a),l=s/a;Math.abs(z.current.velocity)>g&&($.current=1e3*Math.abs((a-s)/z.current.velocity)),E?z.current.velocity>g||l>h?x():j(0,{mode:"exit"}):z.current.velocity<-g||1-l>h?w():j(tv(o,H.current),{mode:"enter"})}else z.current.isSwiping=null})),U=qu((function(e){if(H.current&&B.current&&(null==Jg||Jg===z.current)){var t=rf(I,r),n=nf(r),o=Qg(t,e.touches),i=ev(t,e.touches);if(E&&H.current.contains(e.target)&&null==Jg){var a=function(e){var t=e.domTreeShapes,n=e.start,r=e.current,o=e.anchor,i={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},s={x:"clientWidth",y:"clientHeight"};return t.some((function(e){var t=r>=n;"top"!==o&&"left"!==o||(t=!t);var l="left"===o||"right"===o?"x":"y",c=e[i[l]],u=c>0,d=c+e[s[l]]<e[a[l]];return t&&d||!t&&u?e:null}))}({domTreeShapes:function(e,t){for(var n=[];e&&e!==t;){var r=window.getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")?n=[]:(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,H.current),start:n?z.current.startX:z.current.startY,current:n?o:i,anchor:r});if(a)return void(Jg=a);Jg=z.current}if(null==z.current.isSwiping){var s=Math.abs(o-z.current.startX),l=Math.abs(i-z.current.startY);s>l&&e.cancelable&&e.preventDefault();var u=n?s>l&&s>3:l>s&&l>3;if(!0===u||(n?l>3:s>3)){if(z.current.isSwiping=u,!u)return void V(e);z.current.startX=o,z.current.startY=i,c||E||(n?z.current.startX-=R:z.current.startY-=R)}}if(z.current.isSwiping){var d=tv(n,H.current),p=n?z.current.startX:z.current.startY;E&&!z.current.paperHit&&(p=Math.min(p,d));var f=nv(n?o:i,p,E,d);if(E)if(z.current.paperHit)0===f&&(z.current.startX=o,z.current.startY=i);else{if(!(n?o<d:i<d))return;z.current.paperHit=!0,z.current.startX=o,z.current.startY=i}null===z.current.lastTranslate&&(z.current.lastTranslate=f,z.current.lastTime=performance.now()+1);var h=(f-z.current.lastTranslate)/(performance.now()-z.current.lastTime)*1e3;z.current.velocity=.4*z.current.velocity+.6*h,z.current.lastTranslate=f,z.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),j(f)}}})),_=qu((function(e){if(!e.defaultPrevented&&!e.muiHandled&&(!E||W.current.contains(e.target)||H.current.contains(e.target))){var t=rf(I,r),n=nf(r),o=Qg(t,e.touches),i=ev(t,e.touches);if(!E){if(d||e.target!==F.current)return;if(n){if(o>R)return}else if(i>R)return}e.muiHandled=!0,Jg=null,z.current.startX=o,z.current.startY=i,q(!0),!E&&H.current&&j(tv(n,H.current)+(c?20:-R),{changeTransition:!1}),z.current.velocity=0,z.current.lastTime=null,z.current.lastTranslate=null,z.current.paperHit=!1,B.current=!0}}));o.useEffect((function(){if("temporary"===M)return document.body.addEventListener("touchstart",_),document.body.addEventListener("touchmove",U,{passive:!1}),document.body.addEventListener("touchend",V),function(){document.body.removeEventListener("touchstart",_),document.body.removeEventListener("touchmove",U,{passive:!1}),document.body.removeEventListener("touchend",V)}}),[M,_,U,V]),o.useEffect((function(){return function(){Jg===z.current&&(Jg=null)}}),[]),o.useEffect((function(){E||q(!1)}),[E]);var Y=o.useCallback((function(e){W.current=l.findDOMNode(e)}),[]),K=o.useCallback((function(e){H.current=l.findDOMNode(e)}),[]);return o.createElement(o.Fragment,null,o.createElement(sf,wi({open:!("temporary"!==M||!O)||E,variant:M,ModalProps:wi({BackdropProps:wi({},y,{ref:Y})},b),PaperProps:wi({},k,{style:wi({pointerEvents:"temporary"!==M||E?"":"none"},k.style),ref:K}),anchor:r,transitionDuration:$.current||P,onClose:x,ref:t},L)),!d&&"temporary"===M&&o.createElement(Fu,null,o.createElement(Zg,wi({anchor:r,ref:F,width:R},S))))}));var av=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"secondary":i,s=e.edge,l=void 0!==s&&s,c=e.size,u=void 0===c?"medium":c,d=Ci(e,["classes","className","color","edge","size"]),p=o.createElement("span",{className:n.thumb});return o.createElement("span",{className:Rc(n.root,r,{start:n.edgeStart,end:n.edgeEnd}[l],{small:n["size".concat(Yc(u))]}[u])},o.createElement(cp,wi({type:"checkbox",icon:p,checkedIcon:p,classes:{root:Rc(n.switchBase,n["color".concat(Yc(a))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},d)),o.createElement("span",{className:n.track}))}));_c((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle"},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(50%)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:vi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:vi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(av);var sv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disabled,a=void 0!==i&&i,s=e.disableFocusRipple,l=void 0!==s&&s,c=e.fullWidth,u=e.icon,d=e.indicator,p=e.label,f=e.onChange,h=e.onClick,m=e.selected,g=e.textColor,v=void 0===g?"inherit":g,y=e.value,b=e.wrapped,x=void 0!==b&&b,w=Ci(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","selected","textColor","value","wrapped"]);return o.createElement(td,wi({focusRipple:!l,className:Rc(n.root,n["textColor".concat(Yc(v))],r,a&&n.disabled,m&&n.selected,p&&u&&n.labelIcon,c&&n.fullWidth,x&&n.wrapped),ref:t,role:"tab","aria-selected":m,disabled:a,onClick:function(e){f&&f(e,y),h&&h(e)}},w),o.createElement("span",{className:n.wrapper},u,p),d)}));_c((function(e){var t;return{root:wi({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},xi(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),xi(t,"overflow","hidden"),xi(t,"whiteSpace","normal"),xi(t,"textAlign","center"),xi(t,e.breakpoints.up("sm"),{fontSize:e.typography.pxToRem(13),minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(sv);var lv=o.createContext(),cv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"table":i,s=e.padding,l=void 0===s?"default":s,c=e.size,u=void 0===c?"medium":c,d=e.stickyHeader,p=void 0!==d&&d,f=Ci(e,["classes","className","component","padding","size","stickyHeader"]),h=o.useMemo((function(){return{padding:l,size:u,stickyHeader:p}}),[l,u,p]);return o.createElement(lv.Provider,{value:h},o.createElement(a,wi({ref:t,className:Rc(n.root,r,p&&n.stickyHeader)},f)))}));_c((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":wi({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(cv);var uv=o.createContext(),dv={variant:"body"},pv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tbody":i,s=Ci(e,["classes","className","component"]);return o.createElement(uv.Provider,{value:dv},o.createElement(a,wi({className:Rc(n.root,r),ref:t},s)))}));_c({root:{display:"table-row-group"}},{name:"MuiTableBody"})(pv);var fv=o.forwardRef((function(e,t){var n,r=e.align,i=void 0===r?"inherit":r,a=e.classes,s=e.className,l=e.component,c=e.padding,u=e.scope,d=e.size,p=e.sortDirection,f=e.variant,h=Ci(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),m=o.useContext(lv),g=o.useContext(uv);n=l||(g&&"head"===g.variant?"th":"td");var v=u;!v&&g&&"head"===g.variant&&(v="col");var y=c||(m&&m.padding?m.padding:"default"),b=d||(m&&m.size?m.size:"medium"),x=f||g&&g.variant,w=null;return p&&(w="asc"===p?"ascending":"descending"),o.createElement(n,wi({ref:t,className:Rc(a.root,a[x],s,"inherit"!==i&&a["align".concat(Yc(i))],"default"!==y&&a["padding".concat(Yc(y))],"medium"!==b&&a["size".concat(Yc(b))],{head:m&&m.stickyHeader&&a.stickyHeader}[x]),"aria-sort":w,scope:v},h))})),hv=_c((function(e){return{root:wi({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?bi(vi(e.palette.divider,1),.88):yi(vi(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0px 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(fv),mv={variant:"footer"},gv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tfoot":i,s=Ci(e,["classes","className","component"]);return o.createElement(uv.Provider,{value:mv},o.createElement(a,wi({className:Rc(n.root,r),ref:t},s)))}));_c({root:{display:"table-footer-group"}},{name:"MuiTableFooter"})(gv);var vv={variant:"head"},yv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"thead":i,s=Ci(e,["classes","className","component"]);return o.createElement(uv.Provider,{value:vv},o.createElement(a,wi({className:Rc(n.root,r),ref:t},s)))}));_c({root:{display:"table-header-group"}},{name:"MuiTableHead"})(yv);var bv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=e.disableGutters,l=void 0!==s&&s,c=e.variant,u=void 0===c?"regular":c,d=Ci(e,["classes","className","component","disableGutters","variant"]);return o.createElement(a,wi({className:Rc(n.root,n[u],r,!l&&n.gutters),ref:t},d))})),xv=_c((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:xi({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(bv),wv=$d(o.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),Ev=$d(o.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),Cv=o.createElement(Ev,null),kv=o.createElement(wv,null),Sv=o.createElement(wv,null),Tv=o.createElement(Ev,null),Rv=o.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,i=e.nextIconButtonProps,a=e.onChangePage,s=e.page,l=e.rowsPerPage,c=Ci(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),u=Uc();return o.createElement("div",wi({ref:t},c),o.createElement(sp,wi({onClick:function(e){a(e,s-1)},disabled:0===s,color:"inherit"},n),"rtl"===u.direction?Cv:kv),o.createElement(sp,wi({onClick:function(e){a(e,s+1)},disabled:s>=Math.ceil(r/l)-1,color:"inherit"},i),"rtl"===u.direction?Sv:Tv))})),Nv=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(-1===n?r:n," of ").concat(r)},Pv=[10,25,50,100],Dv=o.forwardRef((function(e,t){var n,r=e.ActionsComponent,i=void 0===r?Rv:r,a=e.backIconButtonProps,s=e.classes,l=e.className,c=e.colSpan,u=e.component,d=void 0===u?hv:u,p=e.count,f=e.labelDisplayedRows,h=void 0===f?Nv:f,m=e.labelRowsPerPage,g=void 0===m?"Rows per page:":m,v=e.nextIconButtonProps,y=e.onChangePage,b=e.onChangeRowsPerPage,x=e.page,w=e.rowsPerPage,E=e.rowsPerPageOptions,C=void 0===E?Pv:E,k=e.SelectProps,S=void 0===k?{}:k,T=Ci(e,["ActionsComponent","backIconButtonProps","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);d!==hv&&"td"!==d||(n=c||1e3);var R=S.native?"option":Fh;return o.createElement(d,wi({className:Rc(s.root,l),colSpan:n,ref:t},T),o.createElement(xv,{className:s.toolbar},o.createElement("div",{className:s.spacer}),C.length>1&&o.createElement(Wd,{color:"inherit",variant:"body2",className:s.caption},g),C.length>1&&o.createElement(bg,wi({classes:{select:s.select,icon:s.selectIcon},input:o.createElement(Cf,{className:Rc(s.input,s.selectRoot)}),value:w,onChange:b},S),C.map((function(e){return o.createElement(R,{className:s.menuItem,key:e,value:e.value?e.value:e},e.label?e.label:e)}))),o.createElement(Wd,{color:"inherit",variant:"body2",className:s.caption},h({from:0===p?0:x*w+1,to:Math.min(p,(x+1)*w),count:p,page:x})),o.createElement(i,{className:s.actions,backIconButtonProps:a,count:p,nextIconButtonProps:v,onChangePage:y,page:x,rowsPerPage:w})))}));_c((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{top:1},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(Dv);var Mv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tr":i,s=e.hover,l=void 0!==s&&s,c=e.selected,u=void 0!==c&&c,d=Ci(e,["classes","className","component","hover","selected"]),p=o.useContext(uv);return o.createElement(a,wi({ref:t,className:Rc(n.root,r,p&&{head:n.head,footer:n.footer}[p.variant],l&&n.hover,u&&n.selected)},d))}));_c((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$selected":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.08)"},"&$hover:hover":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.07)":"rgba(255, 255, 255, 0.14)"}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(Mv);var Lv=$d(o.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),Iv=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.children,a=e.classes,s=e.className,l=e.direction,c=void 0===l?"desc":l,u=e.hideSortIcon,d=void 0!==u&&u,p=e.IconComponent,f=void 0===p?Lv:p,h=Ci(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return o.createElement(td,wi({className:Rc(a.root,s,r&&a.active),component:"span",disableRipple:!0,ref:t},h),i,d&&!r?null:o.createElement(f,{className:Rc(a.icon,a["iconDirection".concat(Yc(c))])}))}));_c((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:1}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(Iv);var Av,Ov=!("undefined"==typeof window||!window.document||!window.document.createElement);function qv(){if(Av)return Av;if(!Ov||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Av="reverse",e.scrollLeft>0?Av="default":(e.scrollLeft=1,0===e.scrollLeft&&(Av="negative")),document.body.removeChild(e),Av}function zv(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=qv();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n}return n}function Fv(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var Wv={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Hv(e){var t=e.onChange,n=Ci(e,["onChange"]),r=o.useRef(),i=o.useRef(null),a=function(){r.current=i.current.offsetHeight-i.current.clientHeight};return o.useEffect((function(){var e=Zp((function(){var e=r.current;a(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),o.useEffect((function(){a(),t(r.current)}),[t]),o.createElement("div",wi({style:Wv,ref:i},n))}var Bv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=e.orientation,s=Ci(e,["classes","className","color","orientation"]);return o.createElement("span",wi({className:Rc(n.root,n["color".concat(Yc(i))],r,{vertical:n.vertical}[a]),ref:t},s))})),$v=_c((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(Bv),jv=o.createElement(wv,{fontSize:"small"}),Vv=o.createElement(Ev,{fontSize:"small"}),Uv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.direction,a=e.orientation,s=e.visible,l=Ci(e,["classes","className","direction","orientation","visible"]),c=Rc(n.root,r,{vertical:n.vertical}[a]);return s?o.createElement(td,wi({component:"div",className:c,ref:t,role:null,tabIndex:null},l),"left"===i?jv:Vv):o.createElement("div",{className:c})})),_v=_c({root:{width:40,flexShrink:0},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}}},{name:"PrivateTabScrollButton"})(Uv),Yv=o.forwardRef((function(e,t){var n=e.action,r=e.centered,i=void 0!==r&&r,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"div":c,d=e.indicatorColor,p=void 0===d?"secondary":d,f=e.onChange,h=e.orientation,m=void 0===h?"horizontal":h,g=e.ScrollButtonComponent,v=void 0===g?_v:g,y=e.scrollButtons,b=void 0===y?"auto":y,x=e.TabIndicatorProps,w=void 0===x?{}:x,E=e.textColor,C=void 0===E?"inherit":E,k=e.value,S=e.variant,T=void 0===S?"standard":S,R=Ci(e,["action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","value","variant"]),N=Uc(),P="scrollable"===T,D="rtl"===N.direction,M="vertical"===m,L=M?"scrollTop":"scrollLeft",I=M?"top":"left",A=M?"bottom":"right",O=M?"clientHeight":"clientWidth",q=M?"height":"width",z=o.useState(!1),F=z[0],W=z[1],H=o.useState({}),B=H[0],$=H[1],j=o.useState({start:!1,end:!1}),V=j[0],U=j[1],_=o.useState({overflow:"hidden",marginBottom:null}),Y=_[0],K=_[1],X=new Map,G=o.useRef(null),Z=o.useRef(null),J=function(){var e,t,n=G.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:zv(n,N.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==k){var o=Z.current.children;if(o.length>0){var i=o[X.get(k)];t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Q=qu((function(){var e,t=J(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(M)o=r.top-n.top+n.scrollTop;else{var i=D?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(xi(e={},I,o),xi(e,q,r?r[q]:0),e);if(isNaN(B[I])||isNaN(B[q]))$(a);else{var s=Math.abs(B[I]-a[I]),l=Math.abs(B[q]-a[q]);(s>=1||l>=1)&&$(a)}})),ee=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?Fv:i,s=r.duration,l=void 0===s?300:s,c=null,u=t[e],d=!1,p=function(){d=!0},f=function r(i){if(d)o(new Error("Animation cancelled"));else{null===c&&(c=i);var s=Math.min(1,(i-c)/l);t[e]=a(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};u===n?o(new Error("Element already at target position")):requestAnimationFrame(f)}(L,G.current,e)},te=function(e){var t=G.current[L];M?t+=e:(t+=e*(D?-1:1),t*=D&&"reverse"===qv()?-1:1),ee(t)},ne=function(){te(-G.current[O])},re=function(){te(G.current[O])},oe=o.useCallback((function(e){K({overflow:null,marginBottom:-e})}),[]),ie=qu((function(){var e=J(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[I]<t[I]){var r=t[L]+(n[I]-t[I]);ee(r)}else if(n[A]>t[A]){var o=t[L]+(n[A]-t[A]);ee(o)}})),ae=qu((function(){if(P&&"off"!==b){var e,t,n=G.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(M)e=r>1,t=r<o-i-1;else{var l=zv(G.current,N.direction);e=D?l<a-s-1:l>1,t=D?l>1:l<a-s-1}e===V.start&&t===V.end||U({start:e,end:t})}}));o.useEffect((function(){var e=Zp((function(){Q(),ae()})),t=Lp(G.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[Q,ae]);var se=o.useCallback(Zp((function(){ae()})));o.useEffect((function(){return function(){se.clear()}}),[se]),o.useEffect((function(){W(!0)}),[]),o.useEffect((function(){Q(),ae()})),o.useEffect((function(){ie()}),[ie,B]),o.useImperativeHandle(n,(function(){return{updateIndicator:Q,updateScrollButtons:ae}}),[Q,ae]);var le=o.createElement($v,wi({className:s.indicator,orientation:m,color:p},w,{style:wi({},B,{},w.style)})),ce=0,ue=o.Children.map(a,(function(e){if(!o.isValidElement(e))return null;var t=void 0===e.props.value?ce:e.props.value;X.set(t,ce);var n=t===k;return ce+=1,o.cloneElement(e,{fullWidth:"fullWidth"===T,indicator:n&&!F&&le,selected:n,onChange:f,textColor:C,value:t})})),de=function(){var e={};e.scrollbarSizeListener=P?o.createElement(Hv,{className:s.scrollable,onChange:oe}):null;var t=V.start||V.end,n=P&&("auto"===b&&t||"desktop"===b||"on"===b);return e.scrollButtonStart=n?o.createElement(v,{orientation:m,direction:D?"right":"left",onClick:ne,visible:V.start,className:Rc(s.scrollButtons,"on"!==b&&s.scrollButtonsDesktop)}):null,e.scrollButtonEnd=n?o.createElement(v,{orientation:m,direction:D?"left":"right",onClick:re,visible:V.end,className:Rc(s.scrollButtons,"on"!==b&&s.scrollButtonsDesktop)}):null,e}();return o.createElement(u,wi({className:Rc(s.root,l,M&&s.vertical),ref:t},R),de.scrollButtonStart,de.scrollbarSizeListener,o.createElement("div",{className:Rc(s.scroller,P?s.scrollable:s.fixed),style:Y,ref:G,onScroll:se},o.createElement("div",{className:Rc(s.flexContainer,M&&s.flexContainerVertical,i&&!P&&s.centered),ref:Z,role:"tablist"},ue),F&&le),de.scrollButtonEnd)}));_c((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:xi({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(Yv);var Kv={standard:th,filled:Sf,outlined:Kh},Xv=o.forwardRef((function(e,t){var n=e.autoComplete,r=e.autoFocus,i=e.children,a=e.classes,s=e.className,c=e.color,u=void 0===c?"primary":c,d=e.defaultValue,p=e.error,f=e.FormHelperTextProps,h=e.fullWidth,m=e.helperText,g=e.hiddenLabel,v=e.id,y=e.InputLabelProps,b=e.inputProps,x=e.InputProps,w=e.inputRef,E=e.label,C=e.multiline,k=e.name,S=e.onBlur,T=e.onChange,R=e.onFocus,N=e.placeholder,P=e.required,D=void 0!==P&&P,M=e.rows,L=e.rowsMax,I=e.select,A=void 0!==I&&I,O=e.SelectProps,q=e.type,z=e.value,F=e.variant,W=void 0===F?"standard":F,H=Ci(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]),B=o.useState(0),$=B[0],j=B[1],V=o.useRef(null);o.useEffect((function(){if("outlined"===W){var e=l.findDOMNode(V.current);j(null!=e?e.offsetWidth:0)}}),[W,D,E]);var U={};"outlined"===W&&(y&&void 0!==y.shrink&&(U.notched=y.shrink),U.labelWidth=$),A&&(O&&O.native||(U.id=void 0),U["aria-describedby"]=void 0);var _=m&&v?"".concat(v,"-helper-text"):void 0,Y=E&&v?"".concat(v,"-label"):void 0,K=Kv[W],X=o.createElement(K,wi({"aria-describedby":_,autoComplete:n,autoFocus:r,defaultValue:d,fullWidth:h,multiline:C,name:k,rows:M,rowsMax:L,type:q,value:z,id:v,inputRef:w,onBlur:S,onChange:T,onFocus:R,placeholder:N,inputProps:b},U,x));return o.createElement(Nf,wi({className:Rc(a.root,s),error:p,fullWidth:h,hiddenLabel:g,ref:t,required:D,color:u,variant:W},H),E&&o.createElement(oh,wi({htmlFor:v,ref:V,id:Y},y),E),A?o.createElement(bg,wi({"aria-describedby":_,id:v,labelId:Y,value:z,input:X},O),i):X,m&&o.createElement(If,wi({id:_},f),m))}));function Gv(e){return Math.round(1e5*e)/1e5}_c({root:{}},{name:"MuiTextField"})(Xv);var Zv=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.disableFocusListener,a=void 0!==i&&i,s=e.disableHoverListener,c=void 0!==s&&s,u=e.disableTouchListener,d=void 0!==u&&u,p=e.enterDelay,f=void 0===p?0:p,h=e.enterTouchDelay,m=void 0===h?700:h,g=e.id,v=e.interactive,y=void 0!==v&&v,b=e.leaveDelay,x=void 0===b?0:b,w=e.leaveTouchDelay,E=void 0===w?1500:w,C=e.onClose,k=e.onOpen,S=e.open,T=e.placement,R=void 0===T?"bottom":T,N=e.PopperProps,P=e.title,D=e.TransitionComponent,M=void 0===D?_f:D,L=e.TransitionProps,I=Ci(e,["children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperProps","title","TransitionComponent","TransitionProps"]),A=Uc(),O=o.useState(!1),q=O[0],z=O[1],F=o.useState(0)[1],W=o.useState(),H=W[0],B=W[1],$=o.useRef(!1),j=o.useRef(null!=S).current,V=o.useRef(),U=o.useRef(),_=o.useRef(),Y=o.useRef(),K=o.useRef();o.useEffect((function(){V.current||(V.current="mui-tooltip-".concat(Math.round(1e5*Math.random()))),S&&F((function(e){return!e}))}),[S]),o.useEffect((function(){return function(){clearTimeout(U.current),clearTimeout(_.current),clearTimeout(Y.current),clearTimeout(K.current)}}),[]);var X=function(e){j||q||z(!0),k&&k(e)},G=function(e){var t=n.props;"mouseover"===e.type&&t.onMouseOver&&t.onMouseOver(e),$.current&&"touchstart"!==e.type||(H&&H.removeAttribute("title"),clearTimeout(_.current),clearTimeout(Y.current),f?(e.persist(),_.current=setTimeout((function(){X(e)}),f)):X(e))},Z=Ku(),J=Z.isFocusVisible,Q=Z.onBlurVisible,ee=Z.ref,te=o.useState(!1),ne=te[0],re=te[1],oe=function(e){j||z(!1),C&&C(e),clearTimeout(U.current),U.current=setTimeout((function(){$.current=!1}),A.transitions.duration.shortest)},ie=function(e){var t=n.props;"blur"===e.type&&(t.onBlur&&t.onBlur(e),ne&&(re(!1),Q())),"mouseleave"===e.type&&t.onMouseLeave&&t.onMouseLeave(e),clearTimeout(_.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),x)},ae=Ru(B,t),se=Ru(ee,ae),le=o.useCallback((function(e){Tu(se,l.findDOMNode(e))}),[se]),ce=Ru(n.ref,le),ue=j?S:q;""===P&&(ue=!1);var de=!ue&&!c,pe=wi({"aria-describedby":ue?g||V.current:null,title:de&&"string"==typeof P?P:null},I,{},n.props,{className:Rc(I.className,n.props.className)});d||(pe.onTouchStart=function(e){$.current=!0;var t=n.props;t.onTouchStart&&t.onTouchStart(e),clearTimeout(Y.current),clearTimeout(U.current),clearTimeout(K.current),e.persist(),K.current=setTimeout((function(){G(e)}),m)},pe.onTouchEnd=function(e){n.props.onTouchEnd&&n.props.onTouchEnd(e),clearTimeout(K.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),E)}),c||(pe.onMouseOver=G,pe.onMouseLeave=ie),a||(pe.onFocus=function(e){H||B(e.currentTarget),J(e)&&(re(!0),G(e));var t=n.props;t.onFocus&&t.onFocus(e)},pe.onBlur=ie);var fe=y?{onMouseOver:pe.onMouseOver,onMouseLeave:pe.onMouseLeave,onFocus:pe.onFocus,onBlur:pe.onBlur}:{};return o.createElement(o.Fragment,null,o.cloneElement(n,wi({ref:ce},pe)),o.createElement(og,wi({className:Rc(r.popper,y&&r.popperInteractive),placement:R,anchorEl:H,open:!!H&&ue,id:pe["aria-describedby"],transition:!0},fe,N),(function(e){var t=e.placement,n=e.TransitionProps;return o.createElement(M,wi({timeout:A.transitions.duration.shorter},n,L),o.createElement("div",{className:Rc(r.tooltip,r["tooltipPlacement".concat(Yc(t.split("-")[0]))],$.current&&r.touch)},P))})))}));_c((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none",flip:!1},popperInteractive:{pointerEvents:"auto"},tooltip:{backgroundColor:vi(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(Gv(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(Gv(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:xi({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:xi({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:xi({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:xi({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip"})(Zv);var Jv={entering:{transform:"none"},entered:{transform:"none"}},Qv={enter:pa.enteringScreen,exit:pa.leavingScreen};function ey(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function ty({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:ey(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return o.createElement("i",{style:i},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.createElement("path",{d:e})))}o.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,a=e.onExit,s=e.style,l=e.timeout,c=void 0===l?Qv:l,u=Ci(e,["children","in","onEnter","onExit","style","timeout"]),d=Uc(),p=Ru(n.ref,t);return o.createElement(au,wi({appear:!0,in:r,onEnter:function(e,t){ku(e);var n=Su({style:s,timeout:c},{mode:"enter"});e.style.webkitTransition=d.transitions.create("transform",n),e.style.transition=d.transitions.create("transform",n),i&&i(e,t)},onExit:function(e){var t=Su({style:s,timeout:c},{mode:"exit"});e.style.webkitTransition=d.transitions.create("transform",t),e.style.transition=d.transitions.create("transform",t),a&&a(e)},timeout:c},u),(function(e,t){return o.cloneElement(n,wi({style:wi({transform:"scale(0)",visibility:"exited"!==e||r?void 0:"hidden"},Jv[e],{},s,{},n.props.style),ref:p},t))}))}));const ny={d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"},ry={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},oy="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",iy={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},ay={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};function sy(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.",e.layout);let r=Bo.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function ly(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=Q(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),sy(e,a,c)}))}const cy=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))};function uy({dir:e,dock:t,altList:n,model:r,translator:o,app:i,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives:()=>cy(i,n).then((e=>Promise.all(n.filter((t=>!e.includes(t.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(e,i,o).then((t=>({id:e.qDef.cId,selected:!1,title:t})))))))),changeTo(e,t){ly(r,e,t,"qDimensions",a)}}}function dy(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(o=e,"H"===o.qGrouping?o.title||"":o.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)},id:e.cId};var o}function py({altList:e,app:t,dir:n,dock:r,model:o,onChange:i,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives:()=>cy(t,e).then((n=>Promise.all(e.filter((e=>!n.includes(e.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t})))))))),changeTo(e,t){ly(o,e,t,"qMeasures",i,a)}}}function fy(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}const hy={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}},my=({children:e,...t})=>o.createElement(Kd,V({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);function gy(e){function t({title:e,selected:t,onClick:n}){const r=pe.detectTextDirection(e);return o.createElement(fh,{role:"menuitem",button:!0,onClick:n,style:{textAlign:"start"}},o.createElement(gh,{style:{minWidth:32}},o.createElement(ty,{d:t?oy:""})),o.createElement(bh,{primaryTypographyProps:{dir:r}},e))}function n({alignTo:e,changeTo:n,current:r,dir:i,dock:a,list:s,onClose:l,show:c,instruction:u}){const d=s.map((e=>o.createElement(t,{key:e.id,title:e.title,onClick:()=>n(e.id)})));return o.createElement(Th,V({anchorEl:e,open:c,onClose:l},hy[a],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),o.createElement(uh,{dense:!0,dir:i,"aria-label":u,component:"nav"},o.createElement(t,{title:r,selected:!0,onClick:l}),d))}t.propTypes={title:Jo.exports.string.isRequired,selected:Jo.exports.bool,onClick:Jo.exports.func.isRequired},t.defaultProps={selected:!1},n.propTypes={alignTo:Jo.exports.any,changeTo:Jo.exports.func.isRequired,current:Jo.exports.string.isRequired,dir:Jo.exports.string.isRequired,dock:Jo.exports.string.isRequired,list:Jo.exports.array,onClose:Jo.exports.func.isRequired,show:Jo.exports.bool.isRequired,instruction:Jo.exports.string.isRequired},n.defaultProps={list:[],alignTo:null};class r extends o.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasValidAlternatives:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=o.createRef()}componentDidMount(){const{selections:e}=this.props;e&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),e.addListener("activated",this.onSelectionsActivated),e.addListener("deactivated",this.onSelectionsDeactivated),e.addListener("canceled",this.onSelectionsDeactivated))}componentDidUpdate(e,t){const{popover:n,supportConditional:r}=this.props;n&&r&&n.getAlternatives().then((e=>{t.hasValidAlternatives!==(0!==e.length)&&this.setState({hasValidAlternatives:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.id,e),this.closePopover()}openPopover(){this.state.closeTime&&Date.now()-this.state.closeTime<20||this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e})}))}closePopover(){this.setState({open:!1,closeTime:Date.now()})}render(){const{titleData:e,popover:t,translator:r,disabled:i,isDimension:a,padding:s,minWidth:l,hasAlternative:c,supportConditional:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},p=e.breadcrumbs.length,f=i||this.state.inSelection,h=e.breadcrumbs.map(((t,n)=>o.createElement(my,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:e.drillUp(p-n),title:t},o.createElement("span",{style:d},t),o.createElement(ty,V({},ay,{size:"small",style:{margin:"0 8px"}}))))),m=u?this.state.hasValidAlternatives:c,g=t&&!this.state.open?this.openPopover:this.closePopover,v=!t||i||this.state.inSelection,y={display:"flex",alignItems:"center",width:"100%",color:v&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!a&&v&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(y.background="rgba(0,0,0,0.08)");s&&(y.padding=s),l&&(y.minWidth=l);const b=pe.detectTextDirection(e.text),x=o.createElement(my,{"aria-label":r.get("Accessibility.Alternative.Instructions",[e.text]),style:y,onClick:v?void 0:g,title:e.text,tabIndex:v?-1:0,onFocus:v?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:v?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()}},e.locked&&o.createElement(ty,V({},ry,{size:"small",title:r.get("Tooltip.selections.locked")})),o.createElement("span",{style:d,dir:b},e.text),t&&m&&o.createElement(ty,V({},iy,{size:"small",style:{margin:"0 8px"}})));return o.createElement(o.Fragment,null,e.drilldown&&o.createElement(ty,V({},ny,{size:"small",title:r.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),h,o.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},x),t&&m&&o.createElement(n,{dock:t.dock,dir:t.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function i(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function a(e){return!e.isDimension&&se(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return r.propTypes={disabled:Jo.exports.bool.isRequired,padding:Jo.exports.string,minWidth:Jo.exports.string,titleData:Jo.exports.shape({breadcrumbs:Jo.exports.arrayOf(Jo.exports.string).isRequired,drilldown:Jo.exports.bool.isRequired,index:Jo.exports.number.isRequired,locked:Jo.exports.bool.isRequired,text:Jo.exports.string.isRequired,popoverText:Jo.exports.string.isRequired,drillUp:Jo.exports.func,id:Jo.exports.string.isRequired}).isRequired,popover:Jo.exports.shape({dir:Jo.exports.string.isRequired,dock:Jo.exports.string.isRequired,changeTo:Jo.exports.func.isRequired,getAlternatives:Jo.exports.func.isRequired}),translator:Jo.exports.shape({get:Jo.exports.func.isRequired}).isRequired,selections:Jo.exports.shape({isActive:Jo.exports.func,addListener:Jo.exports.func,removeListener:Jo.exports.func}),style:Jo.exports.shape({fontSize:Jo.exports.string,color:Jo.exports.string,fontFamily:Jo.exports.string}).isRequired,isDimension:Jo.exports.bool.isRequired,hasAlternative:Jo.exports.bool.isRequired,supportConditional:Jo.exports.bool.isRequired},r.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:t}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||a(this.settings.settings)?Math.max(28,t):Math.max(20,t)},render(){const{settings:{app:e,disabled:t,explicitItemInfos:n,hyperCube:s,hyperCubeDef:l,isDimension:c,minWidth:u,model:d,onChangeToAlternative:p,padding:f,rtl:h,selections:m,skipAttributeExpressions:g,translator:v,supportConditional:y=!1},layout:{dock:b}}=this.settings,x="top"!==b&&"bottom"!==b||!h?"ltr":"rtl",w=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(b,this.rect),E=l&&l.qLayoutExclude&&l.qLayoutExclude.qHyperCubeDef,C=E&&E[c?"qDimensions":"qMeasures"]||[],k=n||s[c?"qDimensionInfo":"qMeasureInfo"],S=c?uy:py,T=c?dy:fy,R=d&&d.colorSupport&&d.modifiers&&S({altList:C,app:e,dir:h?"rtl":"ltr",dock:i(b),model:d,onChange:p,skipAttributeExpressions:g,translator:v}),N=(P=this.settings.settings).isDimension&&se(P,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||a(this.settings.settings);var P;const D=k.map(((e,n)=>{const i="number"==typeof e.explicitColumn?e.explicitColumn:n,a=T(e,i,d),s=n===k.length-1;return o.createElement(o.Fragment,{key:e.cId},o.createElement(r,{popover:R,titleData:a,model:d,translator:v,selections:m,disabled:t(),style:this.style,isDimension:c,padding:f,minWidth:u,hasAlternative:N,supportConditional:y}),!s&&o.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return o.createElement("div",{style:w,dir:x},D)}}}const vy=ga({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const yy=ba({productionPrefix:"qbee6",disableGlobal:!0,seed:""});function by(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const a={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=Math.round(i.margin.left+i.x*t)+"px",r.style.top=Math.round(i.margin.top+i.y*n)+"px",r.style.width=Math.round(i.width)+"px",r.style.height=Math.round(i.height)+"px",r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",l.render(function(e,t){return o.createElement(hc,{generateClassName:t},o.createElement($c,{theme:vy},e))}(e,yy),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&l.unmountComponentAtNode(r),a),destroy(){r&&r.parentElement&&(l.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return a}}function xy(){return function(e){e.renderer("react",by()),e.component("data-title",gy(e.renderer("svg")())),e.component("disclaimer",function(){class e extends o.Component{render(){const{label:e,spanStyle:t}=this.props;return o.createElement(o.Fragment,null,o.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:Jo.exports.string.isRequired,spanStyle:Jo.exports.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r},style:i={}}=this.settings,a="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",s=function(e,t,n){const r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.fontFamily||'"Source Sans Pro", "Arial", "sans-serif"'};switch(t){case"left":r.width=n.height+"px",r.transform=`rotate(-90deg) translate(-${n.height}px, 0)`,r.transformOrigin="top left";break;case"right":r.width=n.height+"px",r.transform=`rotate(90deg) translate(0, -${n.width}px)`,r.transformOrigin="top left";break;case"center":r.width=n.width+"px",r.height=n.height+"px",r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:case"top":case"bottom":r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(i,r,this.rect),l="center"===r?t:"* "+t,c="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return o.createElement("div",{style:s,dir:a},o.createElement(o.Fragment,null,o.createElement(e,{label:l,spanStyle:c})))}}}())}}function wy(e){return dt(e).l<70}function Ey(e,t){const n=dt(e).l/100,r=dt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Cy(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var ky={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const o=[];let i=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=i.attrs.fill,a=t.attrs.fill;if(Ey(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,i.desc.slice.innerRadius),s=Math.min(s,i.desc.slice.outerRadius),s>r){const t=Cy({r:s,a:e},n),i=Cy({r:r,a:e},n);o.push({type:"line",x1:t.x,y1:t.y,x2:i.x,y2:i.y,strokeWidth:1,opacity:.4,stroke:wy(a)?"#ccc":"#333"})}}i=t}return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Sy(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function Ty(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),o=Math.sin(t),i=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:Sy(s)}}var Ry={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(o={r:t.offset,a:l},{x:(i=s).x+o.r*Math.sin(o.a),y:i.y-o.r*Math.cos(o.a)}),u=Ty({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var o,i;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Ny(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return function(t){t.interaction("hammer",j(e))};e.interaction("hammer",j(Hammer))}(t)),e.use(xy()),e.component("pie-dividers",ky),e.component("negative-indicators",Ry),e}var Py={};function Dy(){Dy.init.call(this)}Py.isObject=function(e){return"object"==typeof e&&null!==e},Py.isNumber=function(e){return"number"==typeof e},Py.isUndefined=function(e){return void 0===e},Py.isFunction=function(e){return"function"==typeof e};var My=Dy;Dy.EventEmitter=Dy,Dy.prototype._events=void 0,Dy.prototype._maxListeners=void 0,Dy.defaultMaxListeners=10,Dy.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Dy.prototype.setMaxListeners=function(e){if(!Py.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Dy.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Py.isUndefined(n))return!1;if(Py.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Py.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Dy.prototype.addListener=function(e,t){var n;if(!Py.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Py.isFunction(t.listener)?t.listener:t),this._events[e]?Py.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Py.isObject(this._events[e])&&!this._events[e].warned)&&((n=Py.isUndefined(this._maxListeners)?Dy.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Py.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Py.isFunction(console.trace)&&console.trace()));return this},Dy.prototype.on=Dy.prototype.addListener,Dy.prototype.once=function(e,t){if(!Py.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Dy.prototype.removeListener=function(e,t){var n,r,o,i;if(!Py.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Py.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Py.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Dy.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Py.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Dy.prototype.listeners=function(e){return this._events&&this._events[e]?Py.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Dy.listenerCount=function(e,t){return e._events&&e._events[t]?Py.isFunction(e._events[t])?1:e._events[t].length:0};function Ly(){const e={};var t;return t=e,Object.keys(My.prototype).forEach((e=>{t[e]=My.prototype[e]})),My.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}const Iy={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function Ay(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Oy={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function qy(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r,o,i;let a,s,l,c,u,d;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(r=n.session)&&void 0!==r&&r.sessionConfig||null!==(o=e.session)&&void 0!==o&&null!==(i=o.config)&&void 0!==i&&i.url)){var p;if(a=e.session.options||(null===(p=e.enigmaModel)||void 0===p?void 0:p.session.sessionConfig),!a){var f;a=null===(f=e.session)||void 0===f?void 0:f.config;const t=new URL(a.url);a.host=t.hostname,a.port=t.port,a.isSecure="wss:"===t.protocol}return d=void 0!==a.secure?a.secure:a.isSecure,s=d?"https://":"http://",l=a.host||"localhost",c=a.port?":"+a.port:"",u=a.prefix?a.prefix:"/","/"!==u[u.length-1]&&(u+="/"),s+l+c+u}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await Oy.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function zy(e,t,n,r){var o,i,a,s,l,c;const{app:u,flags:d}=t,p=null===(o=e.layout)||void 0===o||null===(i=o.tooltip)||void 0===i?void 0:i.imageComponents;if(!p)return[];const[f]=p,h=f.size||"small",m=f.type||"media";let g=-1;for(let e=0;e<n.length;e++)if(n[e].cId===f.cId){g=e;break}const v=(null===(a=r.data)||void 0===a||null===(s=a.customTooltipAttrExps)||void 0===s?void 0:s.value)||[];let y;if(-1!==g&&v[g]&&(y=v[g]),"media"===m&&null!==(l=f.ref)&&void 0!==l&&null!==(c=l.qStaticContentUrl)&&void 0!==c&&c.qUrl)return qy(f,h,u);if("url"===m)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Ay(a))try{const t="data:image/png;base64, "+await e.getImage(a),{height:n,width:o,imageError:s}=await Oy.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Oy.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(u,d,f,h,y);if(d.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===m&&y&&y.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Ay(a))try{const t=await e.getImage(a);if(t){const e="data:image/png;base64, "+t,{height:r,width:i,imageError:a}=await Oy.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(u,n[g],h,y)}return[]}const Fy={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(zy(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t,n;const r=null===(t=e.layout)||void 0===t||null===(n=t.tooltip)||void 0===n?void 0:n.imageComponents;return!!r&&r.length>0}},Wy={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await Fy.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>Fy.checkIfPromisesExist({customTooltipModel:e})};const Hy=(e,t)=>{var n,r,o;const i=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:Iy.CHART.CHART_PARENT_TYPE,qId:Iy.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},By=e=>{var t,n,r;const o=null===(t=e.tooltip)||void 0===t||null===(n=t.chart)||void 0===n||null===(r=n.object)||void 0===r?void 0:r.refId;return{qInfo:{qType:Iy.CHART.CHART_CHILD_TYPE},qExtendsId:o}};const $y={createContainer:({ctx:e,layout:t})=>{var n,r;if(!((null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r?void 0:r.length)<=0))return function(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.tooltip)||void 0===r||null===(o=r.chart)||void 0===o||null===(i=o.style)||void 0===i?void 0:i.size)&&void 0!==n?n:"medium",s=Iy.CHART.STYLE[a];return[{content:[e.h("div",{style:{display:"flex",width:s,height:s,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:Iy.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":s,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a,s,l;const c=o,u=null==t||null===(a=t.tooltip)||void 0===a||null===(s=a.chart)||void 0===s||null===(l=s.object)||void 0===l?void 0:l.refId;if(null!=c&&c.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&u&&!(t.qHyperCubeDef.qDimensions.length<=0)){await $y.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=Iy.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=Iy.CHART.STATE,a=Hy(t,i),s=await e.createSessionObject(a),l=By(t);if(s.id!==Iy.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(c.miniChartToken.alternateState&&c.miniChartToken.sessionObj&&a){var d,p,f,h;const e=n.length>0&&void 0!==(null===(d=n[0].data)||void 0===d?void 0:d.value)?[null===(p=n[0].data)||void 0===p?void 0:p.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var m,g;const e=null!==(m=n[0].data.selectionOuterDimension)&&void 0!==m?m:n[0].data.selectionDimension;if(null!=e&&null!==(g=e.source)&&void 0!==g&&g.field){var v;const t=null==e||null===(v=e.source)||void 0===v?void 0:v.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const s=document.getElementById(Iy.CHART.CONTAINER_ID),l={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};c.miniChartToken.vis=await o.embed.render({element:s,model:c.miniChartToken.model,options:l,id:null===(f=c.miniChartToken.model)||void 0===f?void 0:f.id,type:null===(h=c.miniChartToken.model)||void 0===h?void 0:h.genericType})}}catch(t){await $y.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&($y.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Iy.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=Iy.CHART.STATE;await e.removeSessionAlternateState(r),n.miniChartToken.alternateState=void 0}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t,n;const r=e;"function"==typeof(null===(t=r.miniChartToken)||void 0===t||null===(n=t.vis)||void 0===n?void 0:n.destroy)&&(r.miniChartToken.vis.destroy(),r.miniChartToken.vis=void 0)}};function jy(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Vy(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=Iy.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function Uy(e){const t=Vy();return e.filter((e=>t[e.id]))}const _y={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=_y.getAttrExprData(a);i.length||n.length?Wy.handlePromises({customTooltipModel:o,nodes:_y.getDataNodes(s,i.length>0?i:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&$y.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Wy.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i,a,s;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(a=i.qDimensionInfo)||void 0===a||null===(s=a[t])||void 0===s?void 0:s.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n,r;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(r=n.quarantine)||void 0===r?void 0:r[Iy.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[Iy.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[Iy.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Uy(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t,n;const r=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(n=t.quarantine)||void 0===n?void 0:n[Iy.CUSTOM.QUARANTINE])&&delete r.qLayoutExclude.quarantine[Iy.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=jy(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===Uy(o).length){var i,a;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(a=i.quarantine)||void 0===a?void 0:a.customTooltip)||[],n=[...o,...t],s=e;s.qHyperCubeDef?s.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:s.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const o=jy(e)||[];[...o,t].forEach((e=>{const t=Uy(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=Vy(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:pe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=pe.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function Yy(e,t,n,r){var o,i,a;const s=(null===(o=t.qHyperCube)||void 0===o||null===(i=o[n])||void 0===i||null===(a=i[r])||void 0===a?void 0:a.qAttrExprInfo)||[],l=[],c=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return c?(s.forEach(((e,t)=>{const o=c.qValues&&c.qValues[t]?c.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case Iy.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Iy.CUSTOM.TITLE:case Iy.CUSTOM.DESCRIPTION:case Iy.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);l.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),l):l}const Ky={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Yy(t,e,r,n)}}};const Xy={getCustomAttrExps(e,t,n){var r,o;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},a=(null===(r=t.data)||void 0===r||null===(o=r.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];if(Number.isNaN(a))return i;return function(e,t,n,r){const o={[Iy.CUSTOM.TITLE]:!0,[Iy.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=_y.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===Iy.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===Iy.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,a.map((t=>fe.getMeasure(e,t))),e,i)}};function Gy({nodes:e,layout:t,dataset:n}){return function(e,t,n){const r=[];return e.forEach((e=>{r.push(Xy.getCustomAttrExps(n,e,t))})),r}(e,t,n).reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function Zy(e){const t=Iy.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function Jy(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var Qy={attrExpr:{migrateProperties(e){var t,n,r,o;const i=Q(!0,{},e),a=(null===(t=i.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[];let s=Jy(i);return s=function(e,t){return t.concat(e.map((e=>Zy(e))))}(a,s),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(s,i),null===(o=i.tooltip)||void 0===o||delete o.data,i},getPatches(e){var t,n,r,o;const i=(null===(t=e.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[],a=(null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qDimensions.length)-1;return function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=Zy(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(Jy(e),i,a)},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,o,i,a,s;const l=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],c=(null===(o=t.tooltip)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.qHyperCube)||{},u=null===(a=t.qMeta)||void 0===a||null===(s=a.privileges)||void 0===s?void 0:s.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(c,l)&&e.getEffectiveProperties().then((t=>{if(u){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}};const{CUSTOM:eb}=Iy;function tb({flags:e,layout:t,app:n,model:r,picasso:o,chart:i,translator:a,localeInfo:s,embed:l,options:c}){var u,d,p;const f=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:_y,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:o,chart:i,translator:a,localeInfo:s,embed:l}),h="rtl"===c.direction,m=!(!t.tooltip||t.tooltip.auto),g=m&&L(t,"tooltip.hideBasic",!1),v=!!(m&&null!==(u=t.tooltip)&&void 0!==u&&null!==(d=u.chart)&&void 0!==d&&null!==(p=d.object)&&void 0!==p&&p.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));return{isEnabled:()=>m,hideBasic:()=>g,getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=Gy({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===eb.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===eb.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>_y.checkIfPromisesExist({customTooltipModel:f}),createImageRow:({value:e,h:t})=>_y.getImageRow(e,{h:t,rtl:h}),addImages:({nodes:r})=>{const o=_y.getDataNodes(i,r),a=_y.getAttrExprData(t);return Wy.handlePromises({customTooltipModel:f,nodes:o,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>v,hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>$y.createContainer({layout:t,ctx:{h:e,rtl:h}}),createLimitationRow:()=>_y.getFooterRow(a.get("properties.tooltip.notselectedmessage"),h),show:({nodes:e,properties:t})=>$y.show({app:n,properties:t,selectedNodes:e,customTooltipModel:f,rtl:h}),hasAlternateState:()=>{var e;return!(null===(e=f.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>$y.hide({app:n,customTooltipModel:f}),destroy:()=>$y.destroyVisualization({customTooltipModel:f})}}}function nb(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function rb({chart:e,translator:t,layout:n,constraints:r,options:o,themeService:i,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===o.direction,{fontFamily:u}=i.getStyles();return I({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:o,create:i,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},f=[];u&&f.push(i.text({value:u,style:{bold:!0}})),d&&f.push(i.text({value:d}));const h=s.hideBasic();if(h&&!p.length&&(u||d)||f.push(i.text({value:c.data.label,style:{bold:!0}})),!h){f.push(i.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}f.push(i.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:o("share")(c.desc.share)}))}p&&f.push(...p.map((e=>i.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),f.push(i.raw({value:s.chart.createLimitationRow()}))):f.push(i.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&f.push(...m.map((t=>i.raw({value:s.createImageRow({value:t,h:e})})))),f},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}function ob({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:o}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:e+"Range",direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const ib=.8,ab=.55,sb={CORNER_RADIUS:0,INNER_RADIUS:ab,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},lb=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,o;let i=ib,a=0;const s=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:ab;e.donut.showAsDonut&&(i=ib-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*i+a}}:ib,cb=({layout:e},t,n)=>{var r,o;if(!e.donut.showAsDonut)return 0;const i=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:ab;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=ib-i,n=i;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:i},ub=({layout:e},t)=>{var n,r,o,i,a,s;const l=t.colorService.getDatumProps(),c=l[Object.keys(l)[0]],u=c&&c.field?c.field:void 0,d="qDimensionInfo/0"===u,p=u?t.ds.field(u).raw():null,f=p&&(p.label||p.title||p.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:m}=t.chart,g=se(e,"qHyperCube.qDimensionInfo",[]).length;function v(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>m(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...l,num:v(t.encodings.slice.arc,"arc"),fillTooltip:u?{field:u,label:f,value:e=>d?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==g?Ky.getNode(e,{dimensionCount:g}):void 0,radius:h?v(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:cb({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?sb.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:sb.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(o=y.style)||void 0===o||null===(i=o.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:sb.STROKE.COLOR,outerRadius:lb({layout:e},t,y),cornerRadius:null!==(a=null==y||null===(s=y.style)||void 0===s?void 0:s.cornerRadius)&&void 0!==a?a:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function db({layout:e},t){var n,r;const o=(e.components||[]).filter((e=>"slices"===e.key))[0],i=null!==(n=null==o||null===(r=o.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:ab,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=ib-i,n=i;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function pb(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function fb({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}function hb(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function mb(e){return e.node.data.num.label}function gb(e){return e.node.data.radius.label}function vb(e,t,n){if(e.dataPoint.auto)return n?mb:hb;if("share"===e.dataPoint.labelMode)return hb;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?gb:mb}return null}function yb({data:e}){return e?e.label:""}function bb(e){const t=parseInt(e,10);if(!isNaN(t))return t}function xb(e){const t=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return!t||t.style.innerRadius>.3}function wb({node:e,data:t}){return Q({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Eb(e,t,n){const r=t.themeService.getStyles(),o=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",fill:r.label.name.color,padding:t.encodings.slice.outerRadius?4:2}],fontSize:bb(r.label.name.fontSize),fontFamily:r.label.name.fontFamily,label:yb,linkData:({node:e,data:t})=>Q({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(vb(e,t,!1)){const r=function(e,t,n){return{label:vb(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&xb(e)?"inside":"into",onBackground:e.donut.showAsDonut&&xb(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),i=ge(Q(t,r),n.theme);i.linkData=wb,o.push(i)}return{key:"pie-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:o}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Cb({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=vb(e,t,!0),o=(e=>t=>e.getContrastingColorTo(t.node.attrs.fill))(n.theme),i=t.themeService.getStyles();return{key:"pie-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fill:e.donut.showAsDonut?i.label.name.color:o,fontSize:bb(i.label.name.fontSize),fontFamily:i.label.name.fontFamily,label:yb,linkData:({data:e})=>e},{fill:e.donut.showAsDonut?i.label.value.color:o,fontSize:bb(i.label.value.fontSize),fontFamily:i.label.value.fontFamily,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Eb(e,n,t))}const kb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=(this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type))||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return r||this.chart.component("legendRangeBrush").emit("rangeClear"),r}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function Sb(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}function Tb(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:o}=Sb(e,t),i=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*ib;return(i-r)**2+(a-o)**2<=s**2}const Rb=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let o=Sb(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(o={cx:o.x,cy:o.y,r:5});const i=this.chart.shapesAt(o,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});i.length&&(this.chart.brushFromShapes(i,{components:[{key:i[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Nb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),Pb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function Db(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Tb(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const Mb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&Tb(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),Lb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),Ib=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[Mb(e,{}),Rb(e,t,{}),...n]:[kb(e,{}),Pb(e,{}),Mb(e,{}),Nb(e,{}),Lb(e,{}),Rb(e,t,{}),...n]});function Ab(e,t,n){const r=e.getIsSingleSelect(0),{constraints:o}=n;if(o.active&&o.passive)return[];const i=t.tooltipService.getInteractions();return[Ib(t,r,i.gestures),Db(t),i.native]}function Ob({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function qb({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,o=t.themeService.getStyles();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections},style:{fontFamily:o.axis.title.fontFamily,fontSize:o.axis.title.fontSize,color:o.axis.title.color}}}function zb({layout:e},t,n){const r=function(e,t){const n={field:"qDimensionInfo/0",props:{num:{field:t.encodings.slice.arc}}};t.encodings.slice.outerRadius&&(n.props.radius={field:t.encodings.slice.outerRadius});let r=t.ds.extract(n);if(0===r.length)return"NoDataExist";const o=se(e,"qHyperCube.qSize.qcy");if(se(e,"qHyperCube.qDataPages.0.qArea.qHeight")<o)return"LimitedData";if(r=t.encodings.slice.outerRadius?r.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):r.filter((e=>"NaN"!==e.num.value)),0===r.length)return"OnlyNanData";const i=r;return r=t.encodings.slice.outerRadius&&!e.donut.showAsDonut?r.filter((e=>e.num.value>0&&e.radius.value>0)):r.filter((e=>e.num.value>0)),0===r.length?"OnlyNegativeOrZeroValues":i.length!==r.length&&"NegativeOrZeroValues"}(e,t),{fontFamily:o}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:o}=t,{rtl:i}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:ne[e].alignment},settings:{label:o.get("Object.Disclaimer."+e),rtl:i},style:r}}(r,t,n,{fontFamily:o})}function Fb({layout:e,context:t,selectionService:n},r={}){const o=function({layout:e}={},t={}){const n={};return Q(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&Q(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),i={scales:o};let a=[];const s=zb({layout:e},r,t);if(s&&"center"===s.layout.dock)return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",rtl:t.rtl},{navigationDisabled:l});return o.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(o.fillRange.invert=!0),a=[ub({layout:e,settings:i},r),db({layout:e},r),pb(r),fb({layout:e},r),qb({layout:e},r,t),...c.components,ob({settings:i,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),{key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}},{key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}},Cb({layout:{components:e.components,dataPoint:Q({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),(!1!==e.showDisclaimer||!r.flags.isEnabled("SHOW_DISCLAIMER"))&&s],a=a.filter((e=>!1!==e)),{interactions:Ab(n,r,t),scales:o,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:Ob({settings:i},r),strategy:ae(0,r)}}function Wb({instance:e,services:t}){const n=u(),r=b();R((o=>{if(!(r.snapshotData&&r.snapshotData.content&&r.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(o,n),e&&t))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:le(t,"legend-cat"),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:o,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),N((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:le(e.chart,"legend-cat")})})),[e])}const Hb={setValue(e,t,n){if(!t)return;const r=t.split(".");let o=e;const i=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==o[r[a]]&&(o[r[a]]=Number.isNaN(+r[a+1])?{}:[]),o=o[r[a]];void 0!==n?o[i]=n:delete o[i]},getValue(e,t,n){const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(null==i[r[o]])return n;i=i[r[o]]}return i}},Bb={getDimensions:e=>Hb.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>Hb.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>Hb.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>Hb.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=Hb.getValue(e,t?t+".qHyperCube":"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=Hb.getValue(e,t?t+".qHyperCube":"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const $b={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>Bb.getNumMeasures(e)>=1},showLegend:e=>{const t=Hb.getValue(e,"color.auto"),n=Hb.getValue(e,"color.expressionIsColor"),r=Hb.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!Hb.getValue(e,"color.auto")&&"byDimension"===Hb.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===Hb.getValue(e,"color.useDimColVal")&&Hb.setValue(e,"color.useDimColVal",!1),!Hb.getValue(e,"color.auto")&&"byDimension"===Hb.getValue(e,"color.mode")&&"libraryItem"===Hb.getValue(e,"color.byDimDef.type"))},jb=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:o}=$b;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!Hb.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:o,showTitle:{show(e){const t=Hb.getValue(e,"color.auto");return Hb.getValue(e,"legend.show")&&o(e)&&(t||!function(e){return"byExpression"===Hb.getValue(e,"color.mode")&&!0===Hb.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>Hb.getValue(e,"legend.show")&&o(e)}}};function Vb(e){return new jb(e)}const Ub={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},_b={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"slices",ref:"components",defaultValues:{key:"slices",style:{strokeColor:{index:-1,color:"#FFFFFF"},strokeWidth:"none",cornerRadius:0,innerRadius:.55}},items:{slices:{components:"items",type:"items",uses:"styling.slice",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},cornerRadius:{component:"slider",min:0,max:40,step:.05,defaultValue:0,show:!0},innerRadius:{component:"slider",min:.05,max:.75,step:.01,defaultValue:.55,show:(e,t,n)=>n.layout.donut.showAsDonut}}}}},Yb=e=>({component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}}),Kb=Vb("hard");const Xb=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(F(e,"color.mode","byDimension"),F(e,"color.byDimDef.activeDimensionIndex",0),F(e,"color.persistent",!1))},Gb=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},Zb=e=>{const{flags:t,translator:n}=e||{},r=null==t?void 0:t.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),o={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?n.get("Simple.Color.Auto",n.get("properties.colorMode.byDimension")):n.get("Common.Custom")},change:Xb},colorMode:{options:Gb}}}}},i={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||F(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,o){o.dimensionTitle=!e}}}}}}};return{uses:"settings",items:{simpleStyling:null!=t&&t.isEnabled("PIECHART_SIMPLE_STYLING")?Ub:void 0,simpleLabels:i,general:{items:{showDisclaimer:null!=t&&t.isEnabled("SHOW_DISCLAIMER")?{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}:void 0}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:null!=t&&t.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_PIECHART")?Yb(r):_b,showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:Kb.color.colorMode.options},persistentColors:{show:Kb.color.persistentColors.show}}},simpleColors:o,legend:{show:Kb.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:Kb.legend.showTitle.show},dock:{show:Kb.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}}},Jb={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},Qb={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},ex={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function tx(e){return{type:"items",component:"accordion",items:{data:Jb,sorting:Qb,addons:ex,settings:Zb(e)}}}const nx=Vb("explore"),rx=tx();var ox={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:rx.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:rx.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:nx.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&nx.color.useDimColVal.show(e))}}}}}}};const ix="slices";function ax(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function sx(e){return e.data.num.label}function lx(e){return e.data.radius.label}function cx(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?sx:ax;if("share"===e.dataPoint.labelMode)return ax;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?lx:sx;return sx}(n,r)(e,t)}function ux(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=n.substr(0,t-3)+"..."),n}(e.data.label,20):"",t}class dx{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const o=e.find(".effectLayer");o.length>0&&o.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),o=n.map((n=>{const{start:o,end:i,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(o+i)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),p=c.top-r.top+l.y*(s.y-a*Math.cos(u)),f=Math.cos(u)>0?"top":"bottom",h=Math.sin(u)>0?"right":"left";return{title:ux(n),label:cx(n,this.chart.formatter,e,t),orientation:`${f}${h}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,o)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=Q(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=Q(e.options,{effect:null}),n?t.getProperties().then((e=>Q(e,{effectPath:null,effectProperties:null,dataPoint:Q(!0,{},e.originalModelSettings.dataPoint),legend:Q(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class px extends dx{init(e,t,n,r){return e.options=Q(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(ix).data.items,n=e.effectProperties.min,r=e.effectProperties.max,o=[];let i=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const o=e.num.value;n&&o<i[0]&&(i=[o,t]),r&&o>a[0]&&(a=[o,t])})),-1!==i[1]&&o.push(t[i[1]].value),-1!==a[1]&&o.push(t[a[1]].value),o.length&&this.chart.brush("highlight").setValues(o.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class fx extends dx{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(ix).data.items.map((e=>e.value)).indexOf(n.data.value);-1!==r&&(this.selectedIndex=r,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(ix).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===ix)).map(((n,r)=>{const o=cx(n,this.chart.formatter,e,t);return{text:`${ux(n)} (${o})`,value:r}}))}init(e,t,n,r){return e.options=Q(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const hx="/effects/highlight-value",mx="/effects/maxmin";var gx={isCompatible:({effectPath:e})=>e===mx||e===hx,create:e=>e.effectPath===mx?new px(e):e.effectPath===hx?new fx(e):null};function vx(e){const t={},{components:n,tooltip:r}=e,o=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(o&&o.style&&Object.keys(o.style).forEach((e=>{t["chart_style_"+e]=o.style[e]})),r){var i,a;t.chart_tooltip_custom=!r.auto;const e=null===(i=r.chart)||void 0===i||null===(a=i.object)||void 0===a?void 0:a.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function yx(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function bx(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function xx({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){bx(e),yx(t),_y.addCallbackCustomTooltip(t)},move(e,t){bx(e),yx(t),_y.moveCallbackCustomTooltip(t,e)},remove(e,t){_y.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){bx(e),yx(r),_y.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){yx(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const wx=e=>e.qMax<=0,Ex=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(wx));function Cx(e){return{definition:tx(e),softDefinition:ox,support:{snapshot:Ex,export:Ex,exportData:!0,sharing:Ex,viewData:!0,effects:!0},effects:gx,extendMetrics:vx,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:xx(e),defaultPropertyValues:a,hypercubePath:o});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function kx(e){return{properties:{version:"1.22.1",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:sb.STROKE.COLOR},cornerRadius:sb.CORNER_RADIUS,innerRadius:sb.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[xx(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const o=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:xx(e),hypercubePath:r});return o.qProperty.dataPoint&&!1===o.qProperty.dataPoint.show&&delete o.qProperty.dataPoint.show,o},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}e("default",(e=>{const{flags:t}=e;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(H).forEach((t=>{e.add(H[t])}))}}(e.translator);const n=Ny();return{qae:kx(e),ext:Cx(e),component(){const e=function({picasso:e}){var t;const n=c(),r=u(),o=d(),[i,a]=p(),s=Ly(),l=f(),v=h(),y=!(null===(t=l.qSelectionInfo)||void 0===t||!t.qInSelections),[b,x]=p(!1);return s.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:o}){var i,a,s;return{active:n,label:o.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(i=e.qHyperCube)||void 0===i||null===(a=i.qDimensionInfo)||void 0===a||null===(s=a[0])||void 0===s||!s.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:l,isInSelections:y,isLassoActionActive:b,setIsLassoActionActive:x,translator:v}),m((()=>(i&&(i.interactions.lasso.active=()=>b),{...s.lasso})),[i,b,y,v.language()]),g((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),i=t.chart({element:r,data:[],settings:{}}),c=P({chart:i,actions:s,selections:o,config:{selectionActions:!1}});c.setLayout(l),c.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const u=D({legendScrollOffset:0,rotation:0});u.intercept("rotation",(e=>(u.get("rotation")+e)%(2*Math.PI))),u.onChanged("rotation",(()=>{i.update({partialData:!0})}));const d=M();return s.on("selections-start",(()=>{i.brush("selection").start()})),a({picasso:t,chart:i,selectionService:c,viewState:u,viewCache:d,interactions:s}),()=>{c.destroy(),i.destroy(),s.removeAllListeners(),delete s.select,u.intercept("rotation",void 0),u.onChanged("rotation",void 0)}}),[]),i}({picasso:n}),o=function({flags:e,picasso:t,instance:n}){const r=v(),o=y(),i=h(),a=u(),[s,l]=p(),d=b(),f=x(),m=w(),S=c(),T=E(),{qLocaleInfo:R}=C(),N=k();return g((()=>{if(!n)return;a.style.overflow="hidden";const s=A({picasso:n.picasso,model:r,app:o,translator:i,config:{auto:!1,key:"fill"}}),c=O({picassoInstance:n.picasso,plugins:f,pluginArgs:nb(d)}),u=tb({flags:e,layout:d,app:o,model:r,picasso:t,chart:n.chart,translator:i,localeInfo:R,embed:N,options:S}),p=q({theme:T,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),h=rb({app:o,chart:n.chart,translator:i,layout:d,constraints:m,options:S,themeService:p,colorService:s,custom:u});l({colorService:s,pluginService:c,themeService:p,tooltipService:h})}),[r,o,n,d,i.language(),m,S.direction,T.name()]),s}({flags:t,picasso:n,instance:e});!function({instance:e,services:t,picasso:n,flags:o}){const i=c(),a=v(),s=y(),l=h(),u=E(),p=b(),f=d(),m=w(),{qLocaleInfo:x}=C(),[k]=S((()=>t?(Qy.attrExpr.updateProperties(a,p),Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:u,legendProps:p.legend,layout:p,localeInfo:x,hc:p.qHyperCube,colorProps:{...p.color,useBaseColors:e(p)}})}),a&&!p.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])):Promise.resolve()),[t]);g((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(p)}),[p]),g((()=>{if(!e||!k)return;const{chart:c,viewState:d,interactions:h,viewCache:g}=e,{colorService:v,pluginService:y,themeService:b,tooltipService:w}=t,E=i.viewState||{};p.snapshotData||(d.preventSet("legendScrollOffset",E.legendScrollOffset||0),d.preventSet("rotation",E.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(p,d),w.expando.set("properties",k[1]);const C=n.data("q")({key:"qHyperCube",data:p.qHyperCube,config:{localeInfo:x}}),S=[{type:"q",key:"qHyperCube",data:p.qHyperCube,config:{localeInfo:x}},...v.getData()],T={slice:{arc:"qMeasureInfo/0"}};p.qHyperCube.qMeasureInfo.length>1&&(T.slice.outerRadius="qMeasureInfo/1");const R=function(e,t){return t.slice.outerRadius?e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length:e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(n.data("q")({data:p.qHyperCube,config:{localeInfo:x}}),T),N=f?()=>{const e=c.brush("selection");r.selections(e,{},p).forEach((e=>{f.select(e)}))}:()=>{},P=p.snapshotData&&!i.freeResize?{width:(p.snapshotData.content.size||p.snapshotData.object.size).w,height:(p.snapshotData.content.size||p.snapshotData.object.size).h}:void 0,D=t=>e.selectionService.getIsSelectionLocked(t),M=()=>Fb({layout:p,context:{rtl:"rtl"===i.direction,theme:u,translator:l,constraints:m,model:a},selectionService:e.selectionService},{picasso:n,ds:C,model:a,app:s,chart:c,onSelect:N,isLocked:D,interactions:h,constraints:m,translator:l,viewState:d,dataRowCount:R,encodings:T,colorService:v,pluginService:y,themeService:b,tooltipService:w,debouncer:z,properties:k[1],logicalSize:P,flags:o,animations:{enabled:()=>function({viewState:e,options:t,constraints:n,viewCache:r,chart:o}){return!1!==t.chartAnimations&&!n.active&&r.get("chartWidth")===o.element.clientWidth&&r.get("chartHeight")===o.element.clientHeight&&r.get("hasZeroLine")===!!o.component("zeroLine")&&0===e.get("rotation")}({viewState:d,options:i,constraints:m,viewCache:g,chart:c})}});e.generateSettings=M;const L=M();c.update({data:S,settings:L}),g.set("chartWidth",c.element.clientWidth),g.set("chartHeight",c.element.clientHeight),g.set("hasZeroLine",L.components.filter((e=>"zeroLine"===e.key)).length>0),i.effect&&p.effectProperties?i.effect.update(p,c,{encodings:T}):p.effectPath||c.brush("highlight").end()}),[e,k,i.direction,i.effectProperties,m,u.name(),l.language()])}({instance:e,services:o,picasso:n,flags:t}),function({instance:e}){const t=b(),n=c(),r=T();g((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:o,generateSettings:i}=e;o.update({settings:i()}),r.set("chartWidth",o.element.clientWidth),r.set("chartHeight",o.element.clientHeight),n.effect&&n.effect.update(t,o)}),[r.width,r.height])}({instance:e}),Wb({instance:e,services:o})}}}))}}}));
47
+ */var Zh=Xh&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Gh))}};function Jh(e){return e&&"[object Function]"==={}.toString.call(e)}function Qh(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function em(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function tm(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Qh(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:tm(em(e))}function nm(e){return e&&e.referenceNode?e.referenceNode:e}var rm=Xh&&!(!window.MSInputMethodContext||!document.documentMode),om=Xh&&/MSIE 10/.test(navigator.userAgent);function im(e){return 11===e?rm:10===e?om:rm||om}function am(e){if(!e)return document.documentElement;for(var t=im(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Qh(n,"position")?am(n):n:e?e.ownerDocument.documentElement:document.documentElement}function sm(e){return null!==e.parentNode?sm(e.parentNode):e}function lm(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&am(a.firstElementChild)!==a?am(l):l;var c=sm(e);return c.host?lm(c.host,t):lm(e,sm(t).host)}function cm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function um(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=cm(t,"top"),o=cm(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function dm(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function pm(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],im(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function fm(e){var t=e.body,n=e.documentElement,r=im(10)&&getComputedStyle(n);return{height:pm("Height",t,n,r),width:pm("Width",t,n,r)}}var hm=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},mm=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),gm=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},vm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ym(e){return vm({},e,{right:e.left+e.width,bottom:e.top+e.height})}function bm(e){var t={};try{if(im(10)){t=e.getBoundingClientRect();var n=cm(e,"top"),r=cm(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?fm(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=Qh(e);l-=dm(u,"x"),c-=dm(u,"y"),o.width-=l,o.height-=c}return ym(o)}function xm(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=im(10),o="HTML"===t.nodeName,i=bm(e),a=bm(t),s=tm(e),l=Qh(t),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=ym({top:i.top-a.top-c,left:i.left-a.left-u,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop,10),f=parseFloat(l.marginLeft,10);d.top-=c-p,d.bottom-=c-p,d.left-=u-f,d.right-=u-f,d.marginTop=p,d.marginLeft=f}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=um(d,t)),d}function wm(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=xm(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:cm(n),s=t?0:cm(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return ym(l)}function Em(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Qh(e,"position"))return!0;var n=em(e);return!!n&&Em(n)}function Cm(e){if(!e||!e.parentElement||im())return document.documentElement;for(var t=e.parentElement;t&&"none"===Qh(t,"transform");)t=t.parentElement;return t||document.documentElement}function km(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?Cm(e):lm(e,nm(t));if("viewport"===r)i=wm(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=tm(em(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=xm(s,a,o);if("HTML"!==s.nodeName||Em(a))i=l;else{var c=fm(e.ownerDocument),u=c.height,d=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=d+l.left}}var p="number"==typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function Sm(e){return e.width*e.height}function Tm(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=km(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return vm({key:e},s[e],{area:Sm(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Rm(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?Cm(t):lm(t,nm(n));return xm(n,o,r)}function Nm(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Pm(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Dm(e,t,n){n=n.split("-")[0];var r=Nm(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[Pm(s)],o}function Mm(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Lm(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Mm(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Jh(n)&&(t.offsets.popper=ym(t.offsets.popper),t.offsets.reference=ym(t.offsets.reference),t=n(t,e))})),t}function Im(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Rm(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Tm(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Dm(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Lm(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Am(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Om(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function qm(){return this.state.isDestroyed=!0,Am(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Om("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function zm(e){var t=e.ownerDocument;return t?t.defaultView:window}function Fm(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||Fm(tm(i.parentNode),t,n,r),r.push(i)}function Wm(e,t,n,r){n.updateBound=r,zm(e).addEventListener("resize",n.updateBound,{passive:!0});var o=tm(e);return Fm(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Hm(){this.state.eventsEnabled||(this.state=Wm(this.reference,this.options,this.state,this.scheduleUpdate))}function Bm(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,zm(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function $m(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function jm(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&$m(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Vm=Xh&&/Firefox/i.test(navigator.userAgent);function Um(e,t,n){var r=Mm(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var _m=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ym=_m.slice(3);function Km(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ym.indexOf(e),r=Ym.slice(n+1).concat(Ym.slice(0,n));return t?r.reverse():r}var Xm="flip",Gm="clockwise",Zm="counterclockwise";function Jm(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Mm(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return ym(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){$m(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Qm={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:gm({},l,i[l]),end:gm({},l,i[l]+i[c]-a[c])};e.offsets.popper=vm({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],l=void 0;return l=$m(+n)?[+n,0]:Jm(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||am(e.instance.popper);e.instance.reference===n&&(n=am(n));var r=Om("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=km(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),gm({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),gm({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=vm({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Um(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",f=l?"bottom":"right",h=Nm(r)[c];s[f]-h<a[d]&&(e.offsets.popper[d]-=a[d]-(s[f]-h)),s[d]+h>a[f]&&(e.offsets.popper[d]+=s[d]+h-a[f]),e.offsets.popper=ym(e.offsets.popper);var m=s[d]+s[c]/2-h/2,g=Qh(e.instance.popper),v=parseFloat(g["margin"+u],10),y=parseFloat(g["border"+u+"Width"],10),b=m-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[c]-h,b),0),e.arrowElement=r,e.offsets.arrow=(gm(n={},d,Math.round(b)),gm(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Am(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=km(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Pm(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Xm:a=[r,o];break;case Gm:a=Km(r);break;case Zm:a=Km(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=Pm(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),h=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===r&&f||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&f||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&g),x=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&f||!y&&"start"===i&&g||!y&&"end"===i&&m),w=b||x;(p||v||w)&&(e.flipped=!0,(p||v)&&(r=a[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=vm({},e.offsets.popper,Dm(e.instance.popper,e.offsets.reference,e.placement)),e=Lm(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=Pm(t),e.offsets.popper=ym(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Um(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Mm(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=Mm(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=am(e.instance.popper),l=bm(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(o.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?i:a:s,f=t?i:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!Vm),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",f=Om("transform"),h=void 0,m=void 0;if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,h="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&f)c[f]="translate3d("+h+"px, "+m+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===p?-1:1;c[d]=m*g,c[p]=h*v,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=vm({},y,e.attributes),e.styles=vm({},c,e.styles),e.arrowStyles=vm({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return jm(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&jm(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=Rm(o,t,e,n.positionFixed),a=Tm(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),jm(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},eg=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};hm(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Zh(this.update.bind(this)),this.options=vm({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(vm({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=vm({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return vm({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Jh(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return mm(e,[{key:"update",value:function(){return Im.call(this)}},{key:"destroy",value:function(){return qm.call(this)}},{key:"enableEventListeners",value:function(){return Hm.call(this)}},{key:"disableEventListeners",value:function(){return Bm.call(this)}}]),e}();function tg(e){return"function"==typeof e?e():e}eg.Utils=("undefined"!=typeof window?window:global).PopperUtils,eg.placements=_m,eg.Defaults=Qm;var ng="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,rg={},og=o.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,i=e.container,a=e.disablePortal,s=void 0!==a&&a,l=e.keepMounted,c=void 0!==l&&l,u=e.modifiers,d=e.open,p=e.placement,f=void 0===p?"bottom":p,h=e.popperOptions,m=void 0===h?rg:h,g=e.popperRef,v=e.transition,y=void 0!==v&&v,b=Ci(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition"]),x=o.useRef(null),w=Ru(x,t),E=o.useRef(null),C=Ru(E,g),k=o.useRef(C);ng((function(){k.current=C}),[C]),o.useImperativeHandle(g,(function(){return E.current}),[]);var S=o.useState(!0),T=S[0],R=S[1],N=function(e){if("rtl"!==("undefined"!=typeof window&&document.body.getAttribute("dir")||"ltr"))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}}(f),P=o.useState(N),D=P[0],M=P[1],L=o.useCallback((function(){if(x.current&&n&&d){E.current&&(E.current.destroy(),k.current(null));var e=function(e){M(e.placement)};tg(n);var t=new eg(tg(n),x.current,wi({placement:N},m,{modifiers:wi({},s?{}:{preventOverflow:{boundariesElement:"window"}},{},u,{},m.modifiers),onCreate:Dp(e,m.onCreate),onUpdate:Dp(e,m.onUpdate)}));k.current(t)}}),[n,s,u,d,N,m]),I=o.useCallback((function(e){Tu(w,e),L()}),[w,L]),A=function(){E.current&&(E.current.destroy(),k.current(null))};if(o.useEffect((function(){L()}),[L]),o.useEffect((function(){return function(){A()}}),[]),o.useEffect((function(){d||y||A()}),[d,y]),!c&&!d&&(!y||T))return null;var O={placement:D};return y&&(O.TransitionProps={in:d,onEnter:function(){R(!1)},onExited:function(){R(!0),A()}}),o.createElement(Pp,{disablePortal:s,container:i},o.createElement("div",wi({ref:I,role:"tooltip"},b,{style:wi({position:"fixed",top:0,left:0},b.style)}),"function"==typeof r?r(O):r))})),ig=$d(o.createElement("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"})),ag=$d(o.createElement("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"})),sg=o.createElement(ig,null);var lg=_c((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var t=e.checked,n=e.classes;return o.createElement("div",{className:Rc(n.root,t&&n.checked)},sg,o.createElement(ag,{className:n.layer}))})),cg=o.createContext(),ug=o.createElement(lg,{checked:!0}),dg=o.createElement(lg,null),pg=o.forwardRef((function(e,t){var n=e.checked,r=e.classes,i=e.color,a=void 0===i?"secondary":i,s=e.name,l=e.onChange,c=Ci(e,["checked","classes","color","name","onChange"]),u=o.useContext(cg),d=n,p=Dp(l,u&&u.onChange),f=s;return u&&(void 0===d&&(d=u.value===e.value),void 0===f&&(f=u.name)),o.createElement(cp,wi({color:a,type:"radio",icon:dg,checkedIcon:ug,classes:{root:Rc(r.root,r["color".concat(Yc(a))]),checked:r.checked,disabled:r.disabled},name:f,checked:d,onChange:p,ref:t},c))}));function fg(e,t){return"object"===Si(t)&&null!==t?e===t:String(e)===String(t)}_c((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:vi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:vi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(pg),o.forwardRef((function(e,t){var n=e.actions,r=e.children,i=e.name,a=e.value,s=e.onChange,l=Ci(e,["actions","children","name","value","onChange"]),c=o.useRef(null),u=o.useRef(null!=a).current,d=o.useState((function(){return u?null:e.defaultValue})),p=d[0],f=d[1];o.useImperativeHandle(n,(function(){return{focus:function(){var e=c.current.querySelector("input:not(:disabled):checked");e||(e=c.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var h={name:i,onChange:function(e){u||f(e.target.value),s&&s(e,e.target.value)},value:u?a:p},m=Ru(t,c);return o.createElement(Mf,wi({role:"radiogroup",ref:m},l),o.createElement(cg.Provider,{value:h},r))})),o.Component;var hg=o.forwardRef((function(e,t){var n=e.autoFocus,r=e.autoWidth,i=e.children,a=e.classes,s=e.className,l=e.defaultValue,c=e.disabled,u=e.displayEmpty,d=e.labelId,p=e.IconComponent,f=e.inputRef,h=e.MenuProps,m=void 0===h?{}:h,g=e.multiple,v=e.name,y=e.onBlur,b=e.onChange,x=e.onClose,w=e.onFocus,E=e.onOpen,C=e.open,k=e.readOnly,S=e.renderValue;e.required;var T=e.SelectDisplayProps,R=void 0===T?{}:T,N=e.tabIndex;e.type;var P=e.value,D=e.variant,M=void 0===D?"standard":D,L=Ci(e,["autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","labelId","IconComponent","inputRef","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),I=o.useRef(null!=P).current,A=o.useState(l),O=A[0],q=A[1],z=I?P:O,F=o.useRef(null),W=o.useState(null),H=W[0],B=W[1],$=o.useRef(null!=C).current,j=o.useState(),V=j[0],U=j[1],_=o.useState(!1),Y=_[0],K=_[1],X=Ru(t,f);o.useImperativeHandle(X,(function(){return{focus:function(){H.focus()},node:F.current,value:z}}),[H,z]),o.useEffect((function(){n&&H&&H.focus()}),[n,H]);var G,Z,J=function(e,t){e?E&&E(t):(H.focus(),x&&x(t)),$||(U(r?null:H.clientWidth),K(e))},Q=function(e){return function(t){var n;if(g||J(!1,t),g){n=Array.isArray(z)?sl(z):[];var r=z.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;I||q(n),b&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:v}}),b(t,e))}},ee=null!==H&&($?C:Y);delete L["aria-invalid"];var te=[],ne=!1;(xf({value:z})||u)&&(S?G=S(z):ne=!0);var re=o.Children.map(i,(function(e){if(!o.isValidElement(e))return null;var t;if(g){if(!Array.isArray(z))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(t=z.some((function(t){return fg(t,e.props.value)})))&&ne&&te.push(e.props.children)}else(t=fg(z,e.props.value))&&ne&&(Z=e.props.children);return o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:Q(e),role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ne&&(G=g?te.join(", "):Z);var oe,ie=V;!r&&$&&H&&(ie=H.clientWidth),oe=void 0!==N?N:c?null:0;var ae=R.id||(v?"mui-component-select-".concat(v):void 0);return o.createElement(o.Fragment,null,o.createElement("div",wi({className:Rc(a.root,a.select,a.selectMenu,a[M],s,c&&a.disabled),ref:B,tabIndex:oe,role:"button","aria-expanded":ee?"true":void 0,"aria-labelledby":"".concat(d||""," ").concat(ae||""),"aria-haspopup":"listbox",onKeyDown:function(e){if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onClick:c||k?null:function(e){J(!0,e)},onBlur:function(e){!ee&&y&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:v}}),y(e))},onFocus:w},R,{id:ae}),function(e){return null==e||"string"==typeof e&&!e.trim()}(G)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):G),o.createElement("input",wi({value:Array.isArray(z)?z.join(","):z,name:v,ref:F,type:"hidden",autoFocus:n},L)),o.createElement(p,{className:Rc(a.icon,a["icon".concat(Yc(M))],ee&&a.iconOpen)}),o.createElement(qh,wi({id:"menu-".concat(v||""),anchorEl:H,open:ee,onClose:function(e){J(!1,e)}},m,{MenuListProps:wi({"aria-labelledby":d,role:"listbox",disableListWrap:!0},m.MenuListProps),PaperProps:wi({},m.PaperProps,{style:wi({minWidth:ie},null!=m.PaperProps?m.PaperProps.style:null)})}),re))})),mg=$h,gg=o.createElement(th,null),vg=o.createElement(Sf,null),yg=o.forwardRef((function e(t,n){var r=t.autoWidth,i=void 0!==r&&r,a=t.children,s=t.classes,l=t.displayEmpty,c=void 0!==l&&l,u=t.IconComponent,d=void 0===u?Bh:u,p=t.id,f=t.input,h=t.inputProps,m=t.labelId,g=t.MenuProps,v=t.multiple,y=void 0!==v&&v,b=t.native,x=void 0!==b&&b,w=t.onClose,E=t.onOpen,C=t.open,k=t.renderValue,S=t.SelectDisplayProps,T=t.variant,R=void 0===T?"standard":T,N=t.labelWidth,P=void 0===N?0:N,D=Ci(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant","labelWidth"]),M=x?Hh:hg,L=hf({props:t,muiFormControl:ip(),states:["variant"]}).variant||R,I=f||{standard:gg,outlined:o.createElement(Kh,{labelWidth:P}),filled:vg}[L];return o.cloneElement(I,wi({inputComponent:M,select:!0,inputProps:wi({children:a,IconComponent:d,variant:L,type:void 0,multiple:y},x?{}:{autoWidth:i,displayEmpty:c,labelId:m,MenuProps:g,onClose:w,onOpen:E,open:C,renderValue:k,SelectDisplayProps:wi({id:p},S)},{},h,{classes:h?oc({baseClasses:s,newClasses:h.classes,Component:e}):s},f?f.props.inputProps:{}),ref:n},D))}));yg.muiName="Select";var bg=_c(mg,{name:"MuiSelect"})(yg);var xg=_c((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:wi({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,left:"calc(-50% + -4px)",transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,i=e.open,a=e.value,s=e.valueLabelDisplay;return"off"===s?t:o.cloneElement(t,{className:Rc(t.props.className,(i||"on"===s)&&n.open,n.thumb)},o.createElement("span",{className:Rc(n.offset,r)},o.createElement("span",{className:n.circle},o.createElement("span",{className:n.label},a))))}));function wg(e,t){return e-t}function Eg(e,t,n){return e<t?t:e>n?n:e}function Cg(e,t){return e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null).index}function kg(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Sg(e,t,n){return 100*(e-t)/(n-t)}function Tg(e,t){var n=Math.round(e/t)*t;return Number(n.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function Rg(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=sl(t);return i[o]=r,i}function Ng(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[data-index="'.concat(n,'"]')).focus(),r&&r(n)}var Pg={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},Dg=[],Mg=function(e){return e},Lg=o.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],i=e["aria-valuetext"],a=e.classes,s=e.className,l=e.color,c=void 0===l?"primary":l,u=e.component,d=void 0===u?"span":u,p=e.defaultValue,f=e.disabled,h=void 0!==f&&f,m=e.getAriaLabel,g=e.getAriaValueText,v=e.marks,y=void 0===v?Dg:v,b=e.max,x=void 0===b?100:b,w=e.min,E=void 0===w?0:w,C=e.name,k=e.onChange,S=e.onChangeCommitted,T=e.onMouseDown,R=e.orientation,N=void 0===R?"horizontal":R,P=e.step,D=void 0===P?1:P,M=e.ThumbComponent,L=void 0===M?"span":M,I=e.track,A=void 0===I?"normal":I,O=e.value,q=e.ValueLabelComponent,z=void 0===q?xg:q,F=e.valueLabelDisplay,W=void 0===F?"off":F,H=e.valueLabelFormat,B=void 0===H?Mg:H,$=Ci(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),j=Uc(),V=o.useRef(null!=O).current,U=o.useRef(),_=o.useState(-1),Y=_[0],K=_[1],X=o.useState(-1),G=X[0],Z=X[1],J=o.useState(p),Q=J[0],ee=J[1],te=V?O:Q,ne=Array.isArray(te),re=o.useRef(),oe=ne?sl(te).sort(wg):[te];oe=oe.map((function(e){return Eg(e,E,x)}));var ie=!0===y&&null!==D?sl(Array(Math.floor((x-E)/D)+1)).map((function(e,t){return{value:E+D*t}})):y;re.current={source:te};var ae=Ku(),se=ae.isFocusVisible,le=ae.onBlurVisible,ce=ae.ref,ue=o.useState(-1),de=ue[0],pe=ue[1],fe=o.useRef(),he=Ru(ce,fe),me=Ru(t,he),ge=qu((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));se(e)&&pe(t),Z(t)})),ve=qu((function(){-1!==de&&(pe(-1),le()),Z(-1)})),ye=qu((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Z(t)})),be=qu((function(){Z(-1)})),xe=qu((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=oe[n],o=(x-E)/10,i=ie.map((function(e){return e.value})),a=i.indexOf(r);switch(e.key){case"Home":t=E;break;case"End":t=x;break;case"PageUp":D&&(t=r+o);break;case"PageDown":D&&(t=r-o);break;case"ArrowRight":case"ArrowUp":t=D?r+D:i[a+1]||i[i.length-1];break;case"ArrowLeft":case"ArrowDown":t=D?r-D:i[a-1]||i[0];break;default:return}if(e.preventDefault(),D&&(t=Tg(t,D)),t=Eg(t,E,x),ne){var s=t;t=Rg({values:oe,source:te,newValue:t,index:n}).sort(wg),Ng({sliderRef:fe,activeIndex:t.indexOf(s)})}V||ee(t),pe(n),k&&k(e,t),S&&S(e,t)})),we=o.useRef(),Ee=N;"rtl"===j.direction&&"vertical"!==N&&(Ee+="-reverse");var Ce=o.useCallback((function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=e.values,s=e.source,l=fe.current.getBoundingClientRect(),c=l.width,u=l.height,d=l.bottom,p=l.left;if(t=0===Ee.indexOf("vertical")?(d-r.y)/u:(r.x-p)/c,-1!==Ee.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,E,x),D)n=Tg(n,D);else{var f=ie.map((function(e){return e.value}));n=f[Cg(f,n)]}n=Eg(n,E,x);var h=0;if(ne){var m=n;h=(n=Rg({values:a,source:s,newValue:n,index:h=i?we.current:Cg(a,n)}).sort(wg)).indexOf(m),we.current=h}return{newValue:n,activeIndex:h}}),[x,E,Ee,ne,D,ie]),ke=qu((function(e){var t=kg(e,U);if(t){var n=Ce({finger:t,move:!0,values:oe,source:te}),r=n.newValue,o=n.activeIndex;Ng({sliderRef:fe,activeIndex:o,setActive:K}),V||ee(r),k&&k(e,r)}})),Se=qu((function(e){var t=kg(e,U);if(t){var n=Ce({finger:t,values:oe,source:te}).newValue;K(-1),"touchend"===e.type&&Z(-1),S&&S(e,n),U.current=void 0,document.body.removeEventListener("mousemove",ke),document.body.removeEventListener("mouseup",Se),document.body.removeEventListener("mouseenter",Te),document.body.removeEventListener("touchmove",ke),document.body.removeEventListener("touchend",Se)}})),Te=qu((function(e){0===e.buttons&&Se(e)})),Re=qu((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(U.current=t.identifier);var n=kg(e,U),r=Ce({finger:n,values:oe,source:te}),o=r.newValue,i=r.activeIndex;Ng({sliderRef:fe,activeIndex:i,setActive:K}),V||ee(o),k&&k(e,o),document.body.addEventListener("touchmove",ke),document.body.addEventListener("touchend",Se)}));o.useEffect((function(){var e=fe.current;return e.addEventListener("touchstart",Re),function(){e.removeEventListener("touchstart",Re),document.body.removeEventListener("mousemove",ke),document.body.removeEventListener("mouseup",Se),document.body.removeEventListener("mouseenter",Te),document.body.removeEventListener("touchmove",ke),document.body.removeEventListener("touchend",Se)}}),[Te,Se,ke,Re]);var Ne=qu((function(e){T&&T(e),e.preventDefault();var t=kg(e,U),n=Ce({finger:t,values:oe,source:te}),r=n.newValue,o=n.activeIndex;Ng({sliderRef:fe,activeIndex:o,setActive:K}),V||ee(r),k&&k(e,r),document.body.addEventListener("mousemove",ke),document.body.addEventListener("mouseenter",Te),document.body.addEventListener("mouseup",Se)})),Pe=Sg(ne?oe[0]:E,E,x),De=Sg(oe[oe.length-1],E,x)-Pe,Me=wi({},Pg[Ee].offset(Pe),{},Pg[Ee].leap(De));return o.createElement(d,wi({ref:me,className:Rc(a.root,a["color".concat(Yc(c))],s,h&&a.disabled,ie.length>0&&ie.some((function(e){return e.label}))&&a.marked,!1===A&&a.trackFalse,{vertical:a.vertical}[N],{inverted:a.trackInverted}[A]),onMouseDown:Ne},$),o.createElement("span",{className:a.rail}),o.createElement("span",{className:a.track,style:Me}),o.createElement("input",{value:oe.join(","),name:C,type:"hidden"}),ie.map((function(e){var t,n=Sg(e.value,E,x),r=Pg[Ee].offset(n);if(!1===A)t=-1!==oe.indexOf(e.value);else{var i=ne?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0];t=i&&"normal"===A||!i&&"inverted"===A}return o.createElement(o.Fragment,{key:e.value},o.createElement("span",{style:r,className:Rc(a.mark,t&&a.markActive)}),o.createElement("span",{"aria-hidden":!0,style:r,className:Rc(a.markLabel,t&&a.markLabelActive)},e.label))})),oe.map((function(e,t){var s=Sg(e,E,x),l=Pg[Ee].offset(s);return o.createElement(z,{key:t,valueLabelFormat:B,valueLabelDisplay:W,className:a.valueLabel,value:"function"==typeof B?B(e,t):B,index:t,open:G===t||Y===t||"on"===W,disabled:h},o.createElement(L,{className:Rc(a.thumb,a["thumbColor".concat(Yc(c))],Y===t&&a.active,h&&a.disabled,de===t&&a.focusVisible),tabIndex:h?null:0,role:"slider",style:l,"data-index":t,"aria-label":m?m(t):n,"aria-labelledby":r,"aria-orientation":N,"aria-valuemax":x,"aria-valuemin":E,"aria-valuenow":e,"aria-valuetext":g?g(e,t):i,onKeyDown:xe,onFocus:ge,onBlur:ve,onMouseOver:ye,onMouseLeave:be}))})))}));_c((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"11px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 11px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?bi(e.palette.primary.main,.62):yi(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',left:-18,top:-18,right:-18,bottom:-18},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(vi(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(vi(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(vi(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(vi(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:wi({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:22,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:22,transform:"translateY(50%)"}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(Lg);var Ig=o.forwardRef((function(e,t){var n=e.action,r=e.classes,i=e.className,a=e.message,s=e.role,l=void 0===s?"alert":s,c=Ci(e,["action","classes","className","message","role"]);return o.createElement(Xc,wi({component:Wd,variant:"body2",variantMapping:{body1:"div",body2:"div"},role:l,square:!0,elevation:6,className:Rc(r.root,i),ref:t},c),o.createElement("div",{className:r.message},a),n?o.createElement("div",{className:r.action},n):null)})),Ag=_c((function(e){var t="light"===e.palette.type?.8:.98,n=gi(e.palette.background.default,t);return{root:xi({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(Ig),Og=o.forwardRef((function(e,t){var n=e.action,r=e.anchorOrigin,i=(r=void 0===r?{vertical:"bottom",horizontal:"center"}:r).vertical,a=r.horizontal,s=e.autoHideDuration,l=e.children,c=e.classes,u=e.className,d=e.ClickAwayListenerProps,p=e.ContentProps,f=e.disableWindowBlurListener,h=void 0!==f&&f,m=e.message,g=e.onClose,v=e.onEnter,y=e.onEntered,b=e.onEntering,x=e.onExit,w=e.onExited,E=e.onExiting,C=e.onMouseEnter,k=e.onMouseLeave,S=e.open,T=e.resumeHideDuration,R=e.TransitionComponent,N=void 0===R?_f:R,P=e.transitionDuration,D=void 0===P?{enter:pa.enteringScreen,exit:pa.leavingScreen}:P,M=e.TransitionProps,L=Ci(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),I=o.useRef(),A=o.useState(!0),O=A[0],q=A[1],z=o.useCallback((function(e){var t=null!=e?e:s;g&&null!=t&&(clearTimeout(I.current),I.current=setTimeout((function(){g&&null!=(null!=e?e:s)&&g(null,"timeout")}),t))}),[s,g]);o.useEffect((function(){return S&&z(),function(){clearTimeout(I.current)}}),[S,z]);var F=function(){clearTimeout(I.current)},W=o.useCallback((function(){if(null!=s){if(null!=T)return void z(T);z(.5*s)}}),[s,T,z]);return o.useEffect((function(){if(!h&&S)return window.addEventListener("focus",W),window.addEventListener("blur",F),function(){window.removeEventListener("focus",W),window.removeEventListener("blur",F)}}),[h,W,S]),!S&&O?null:o.createElement(kp,wi({onClickAway:function(e){g&&g(e,"clickaway")}},d),o.createElement("div",wi({className:Rc(c.root,c["anchorOrigin".concat(Yc(i)).concat(Yc(a))],u),onMouseEnter:function(e){C&&C(e),F()},onMouseLeave:function(e){k&&k(e),W()},ref:t},L),o.createElement(N,wi({appear:!0,in:S,onEnter:Dp((function(){q(!1)}),v),onEntered:y,onEntering:b,onExit:x,onExited:Dp((function(){q(!0)}),w),onExiting:E,timeout:D,direction:"top"===i?"down":"up"},M),l||o.createElement(Ag,wi({message:m,action:n},p)))))}));_c((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},i={top:24},a={bottom:24},s={right:24},l={left:24},c={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:wi({},t,xi({},e.breakpoints.up("sm"),wi({},i,{},c))),anchorOriginBottomCenter:wi({},n,xi({},e.breakpoints.up("sm"),wi({},a,{},c))),anchorOriginTopRight:wi({},t,{},r,xi({},e.breakpoints.up("sm"),wi({left:"auto"},i,{},s))),anchorOriginBottomRight:wi({},n,{},r,xi({},e.breakpoints.up("sm"),wi({left:"auto"},a,{},s))),anchorOriginTopLeft:wi({},t,{},o,xi({},e.breakpoints.up("sm"),wi({right:"auto"},i,{},l))),anchorOriginBottomLeft:wi({},n,{},o,xi({},e.breakpoints.up("sm"),wi({right:"auto"},a,{},l)))}}),{flip:!1,name:"MuiSnackbar"})(Og);var qg=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.alternativeLabel,a=e.children,s=e.classes,l=e.className,c=e.completed,u=void 0!==c&&c,d=e.connector,p=e.disabled,f=void 0!==p&&p,h=e.index,m=e.last,g=e.orientation,v=Ci(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","index","last","orientation"]);return o.createElement("div",wi({className:Rc(s.root,s[g],l,i&&s.alternativeLabel,u&&s.completed),ref:t},v),d&&i&&0!==h&&o.cloneElement(d,{orientation:g,alternativeLabel:i,index:h,active:r,completed:u,disabled:f}),o.Children.map(a,(function(e){return o.isValidElement(e)?o.cloneElement(e,wi({active:r,alternativeLabel:i,completed:u,disabled:f,last:m,icon:h+1,orientation:g},e.props)):null})))}));_c({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(qg);var zg=$d(o.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),Fg=$d(o.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),Wg=o.createElement("circle",{cx:"12",cy:"12",r:"12"}),Hg=o.forwardRef((function(e,t){var n=e.completed,r=void 0!==n&&n,i=e.icon,a=e.active,s=void 0!==a&&a,l=e.error,c=void 0!==l&&l,u=e.classes;return"number"==typeof i||"string"==typeof i?c?o.createElement(Fg,{className:Rc(u.root,u.error),ref:t}):r?o.createElement(zg,{className:Rc(u.root,u.completed),ref:t}):o.createElement(Bd,{className:Rc(u.root,s&&u.active),ref:t},Wg,o.createElement("text",{className:u.text,x:"12",y:"16",textAnchor:"middle"},i)):i})),Bg=_c((function(e){return{root:{display:"block",color:e.palette.text.disabled,"&$active":{color:e.palette.primary.main},"&$completed":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily},active:{},completed:{},error:{}}}),{name:"MuiStepIcon"})(Hg),$g=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.alternativeLabel,a=void 0!==i&&i,s=e.children,l=e.classes,c=e.className,u=e.completed,d=void 0!==u&&u,p=e.disabled,f=void 0!==p&&p,h=e.error,m=void 0!==h&&h,g=e.icon;e.last;var v=e.optional,y=e.orientation,b=void 0===y?"horizontal":y,x=e.StepIconComponent,w=e.StepIconProps,E=Ci(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),C=x;return g&&!C&&(C=Bg),o.createElement("span",wi({className:Rc(l.root,l[b],c,f&&l.disabled,a&&l.alternativeLabel,m&&l.error),ref:t},E),g||C?o.createElement("span",{className:Rc(l.iconContainer,a&&l.alternativeLabel)},o.createElement(C,wi({completed:d,active:r,error:m,icon:g},w))):null,o.createElement("span",{className:l.labelContainer},o.createElement(Wd,{variant:"body2",component:"span",className:Rc(l.label,a&&l.alternativeLabel,d&&l.completed,r&&l.active,m&&l.error),display:"block"},s),v))}));$g.muiName="StepLabel";var jg=_c((function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}}),{name:"MuiStepLabel"})($g),Vg=o.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,i=e.children,a=e.classes,s=e.className,l=e.completed,c=e.disabled,u=e.icon;e.last;var d=e.optional,p=e.orientation,f=Ci(e,["active","alternativeLabel","children","classes","className","completed","disabled","icon","last","optional","orientation"]),h={active:n,alternativeLabel:r,completed:l,disabled:c,icon:u,optional:d,orientation:p},m=Tf(i,["StepLabel"])?o.cloneElement(i,h):o.createElement(jg,h,i);return o.createElement(td,wi({disabled:c,TouchRippleProps:{className:a.touchRipple},className:Rc(a.root,a[p],s),ref:t},f),m)}));_c({root:{width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},horizontal:{},vertical:{justifyContent:"flex-start",padding:"8px",margin:"-8px"},touchRipple:{color:"rgba(0, 0, 0, 0.3)"}},{name:"MuiStepButton"})(Vg);var Ug=o.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,i=void 0!==r&&r,a=e.classes,s=e.className,l=e.completed,c=e.disabled;e.index;var u=e.orientation,d=void 0===u?"horizontal":u,p=Ci(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return o.createElement("div",wi({className:Rc(a.root,a[d],s,i&&a.alternativeLabel,n&&a.active,l&&a.completed,c&&a.disabled),ref:t},p),o.createElement("span",{className:Rc(a.line,"vertical"===d?a.lineVertical:a.lineHorizontal)}))})),_g=_c((function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}}),{name:"MuiStepConnector"})(Ug),Yg=o.forwardRef((function(e,t){var n=e.active;e.alternativeLabel;var r=e.children,i=e.classes,a=e.className;e.completed;var s=e.last;e.optional,e.orientation;var l=e.TransitionComponent,c=void 0===l?Tp:l,u=e.transitionDuration,d=void 0===u?"auto":u,p=e.TransitionProps,f=Ci(e,["active","alternativeLabel","children","classes","className","completed","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]),h=d;return"auto"!==d||c.muiSupportAuto||(h=void 0),o.createElement("div",wi({className:Rc(i.root,a,s&&i.last),ref:t},f),o.createElement(c,wi({in:n,className:i.transition,timeout:h,unmountOnExit:!0},p),r))}));_c((function(e){return{root:{marginTop:8,marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:"1px solid ".concat("light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600])},last:{borderLeft:"none"},transition:{}}}),{name:"MuiStepContent"})(Yg);var Kg=o.createElement(_g,null),Xg=o.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,i=e.alternativeLabel,a=void 0!==i&&i,s=e.children,l=e.classes,c=e.className,u=e.connector,d=void 0===u?Kg:u,p=e.nonLinear,f=void 0!==p&&p,h=e.orientation,m=void 0===h?"horizontal":h,g=Ci(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),v=o.isValidElement(d)?o.cloneElement(d,{orientation:m}):null,y=o.Children.toArray(s),b=y.map((function(e,t){var n={alternativeLabel:a,connector:d,last:t+1===y.length,orientation:m},i={index:t,active:!1,completed:!1,disabled:!1};return r===t?i.active=!0:!f&&r>t?i.completed=!0:!f&&r<t&&(i.disabled=!0),[!a&&v&&0!==t&&o.cloneElement(v,wi({key:t},i)),o.cloneElement(e,wi({},n,{},i,{},e.props))]}));return o.createElement(Xc,wi({square:!0,elevation:0,className:Rc(l.root,l[m],c,a&&l.alternativeLabel),ref:t},g),b)}));_c({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(Xg);var Gg=o.forwardRef((function(e,t){var n=e.anchor,r=e.classes,i=e.className,a=e.width,s=Ci(e,["anchor","classes","className","width"]);return o.createElement("div",wi({className:Rc(r.root,r["anchor".concat(Yc(n))],i),ref:t,style:xi({},nf(n)?"width":"height",a)},s))})),Zg=_c((function(e){return{root:{position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},anchorLeft:{right:"auto"},anchorRight:{left:"auto",right:0},anchorTop:{bottom:"auto",right:0},anchorBottom:{top:"auto",bottom:0,right:0}}}),{name:"PrivateSwipeArea"})(Gg),Jg=null;function Qg(e,t){return"right"===e?document.body.offsetWidth-t[0].pageX:t[0].pageX}function ev(e,t){return"bottom"===e?window.innerHeight-t[0].clientY:t[0].clientY}function tv(e,t){return e?t.clientWidth:t.clientHeight}function nv(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}var rv="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),ov={enter:pa.enteringScreen,exit:pa.leavingScreen},iv="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;o.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,i=e.disableBackdropTransition,a=void 0!==i&&i,s=e.disableDiscovery,c=void 0!==s&&s,u=e.disableSwipeToOpen,d=void 0===u?rv:u,p=e.hideBackdrop,f=e.hysteresis,h=void 0===f?.52:f,m=e.minFlingVelocity,g=void 0===m?450:m,v=e.ModalProps,y=(v=void 0===v?{}:v).BackdropProps,b=Ci(v,["BackdropProps"]),x=e.onClose,w=e.onOpen,E=e.open,C=e.PaperProps,k=void 0===C?{}:C,S=e.SwipeAreaProps,T=e.swipeAreaWidth,R=void 0===T?20:T,N=e.transitionDuration,P=void 0===N?ov:N,D=e.variant,M=void 0===D?"temporary":D,L=Ci(e,["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"]),I=Uc(),A=o.useState(!1),O=A[0],q=A[1],z=o.useRef({isSwiping:null}),F=o.useRef(),W=o.useRef(),H=o.useRef(),B=o.useRef(!1),$=o.useRef();iv((function(){$.current=null}),[E]);var j=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,o=void 0===n?null:n,i=t.changeTransition,s=void 0===i||i,l=rf(I,r),c=-1!==["right","bottom"].indexOf(l)?1:-1,u=nf(r),d=u?"translate(".concat(c*e,"px, 0)"):"translate(0, ".concat(c*e,"px)"),f=H.current.style;f.webkitTransform=d,f.transform=d;var h="";if(o&&(h=I.transitions.create("all",Su({timeout:P},{mode:o}))),s&&(f.webkitTransition=h,f.transition=h),!a&&!p){var m=W.current.style;m.opacity=1-e/tv(u,H.current),s&&(m.webkitTransition=h,m.transition=h)}}),[r,a,p,I,P]),V=qu((function(e){if(B.current)if(Jg=null,B.current=!1,q(!1),z.current.isSwiping){z.current.isSwiping=null;var t,n=rf(I,r),o=nf(r);t=o?Qg(n,e.changedTouches):ev(n,e.changedTouches);var i=o?z.current.startX:z.current.startY,a=tv(o,H.current),s=nv(t,i,E,a),l=s/a;Math.abs(z.current.velocity)>g&&($.current=1e3*Math.abs((a-s)/z.current.velocity)),E?z.current.velocity>g||l>h?x():j(0,{mode:"exit"}):z.current.velocity<-g||1-l>h?w():j(tv(o,H.current),{mode:"enter"})}else z.current.isSwiping=null})),U=qu((function(e){if(H.current&&B.current&&(null==Jg||Jg===z.current)){var t=rf(I,r),n=nf(r),o=Qg(t,e.touches),i=ev(t,e.touches);if(E&&H.current.contains(e.target)&&null==Jg){var a=function(e){var t=e.domTreeShapes,n=e.start,r=e.current,o=e.anchor,i={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},s={x:"clientWidth",y:"clientHeight"};return t.some((function(e){var t=r>=n;"top"!==o&&"left"!==o||(t=!t);var l="left"===o||"right"===o?"x":"y",c=e[i[l]],u=c>0,d=c+e[s[l]]<e[a[l]];return t&&d||!t&&u?e:null}))}({domTreeShapes:function(e,t){for(var n=[];e&&e!==t;){var r=window.getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")?n=[]:(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,H.current),start:n?z.current.startX:z.current.startY,current:n?o:i,anchor:r});if(a)return void(Jg=a);Jg=z.current}if(null==z.current.isSwiping){var s=Math.abs(o-z.current.startX),l=Math.abs(i-z.current.startY);s>l&&e.cancelable&&e.preventDefault();var u=n?s>l&&s>3:l>s&&l>3;if(!0===u||(n?l>3:s>3)){if(z.current.isSwiping=u,!u)return void V(e);z.current.startX=o,z.current.startY=i,c||E||(n?z.current.startX-=R:z.current.startY-=R)}}if(z.current.isSwiping){var d=tv(n,H.current),p=n?z.current.startX:z.current.startY;E&&!z.current.paperHit&&(p=Math.min(p,d));var f=nv(n?o:i,p,E,d);if(E)if(z.current.paperHit)0===f&&(z.current.startX=o,z.current.startY=i);else{if(!(n?o<d:i<d))return;z.current.paperHit=!0,z.current.startX=o,z.current.startY=i}null===z.current.lastTranslate&&(z.current.lastTranslate=f,z.current.lastTime=performance.now()+1);var h=(f-z.current.lastTranslate)/(performance.now()-z.current.lastTime)*1e3;z.current.velocity=.4*z.current.velocity+.6*h,z.current.lastTranslate=f,z.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),j(f)}}})),_=qu((function(e){if(!e.defaultPrevented&&!e.muiHandled&&(!E||W.current.contains(e.target)||H.current.contains(e.target))){var t=rf(I,r),n=nf(r),o=Qg(t,e.touches),i=ev(t,e.touches);if(!E){if(d||e.target!==F.current)return;if(n){if(o>R)return}else if(i>R)return}e.muiHandled=!0,Jg=null,z.current.startX=o,z.current.startY=i,q(!0),!E&&H.current&&j(tv(n,H.current)+(c?20:-R),{changeTransition:!1}),z.current.velocity=0,z.current.lastTime=null,z.current.lastTranslate=null,z.current.paperHit=!1,B.current=!0}}));o.useEffect((function(){if("temporary"===M)return document.body.addEventListener("touchstart",_),document.body.addEventListener("touchmove",U,{passive:!1}),document.body.addEventListener("touchend",V),function(){document.body.removeEventListener("touchstart",_),document.body.removeEventListener("touchmove",U,{passive:!1}),document.body.removeEventListener("touchend",V)}}),[M,_,U,V]),o.useEffect((function(){return function(){Jg===z.current&&(Jg=null)}}),[]),o.useEffect((function(){E||q(!1)}),[E]);var Y=o.useCallback((function(e){W.current=l.findDOMNode(e)}),[]),K=o.useCallback((function(e){H.current=l.findDOMNode(e)}),[]);return o.createElement(o.Fragment,null,o.createElement(sf,wi({open:!("temporary"!==M||!O)||E,variant:M,ModalProps:wi({BackdropProps:wi({},y,{ref:Y})},b),PaperProps:wi({},k,{style:wi({pointerEvents:"temporary"!==M||E?"":"none"},k.style),ref:K}),anchor:r,transitionDuration:$.current||P,onClose:x,ref:t},L)),!d&&"temporary"===M&&o.createElement(Fu,null,o.createElement(Zg,wi({anchor:r,ref:F,width:R},S))))}));var av=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"secondary":i,s=e.edge,l=void 0!==s&&s,c=e.size,u=void 0===c?"medium":c,d=Ci(e,["classes","className","color","edge","size"]),p=o.createElement("span",{className:n.thumb});return o.createElement("span",{className:Rc(n.root,r,{start:n.edgeStart,end:n.edgeEnd}[l],{small:n["size".concat(Yc(u))]}[u])},o.createElement(cp,wi({type:"checkbox",icon:p,checkedIcon:p,classes:{root:Rc(n.switchBase,n["color".concat(Yc(a))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},d)),o.createElement("span",{className:n.track}))}));_c((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle"},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(50%)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:vi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:vi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(av);var sv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disabled,a=void 0!==i&&i,s=e.disableFocusRipple,l=void 0!==s&&s,c=e.fullWidth,u=e.icon,d=e.indicator,p=e.label,f=e.onChange,h=e.onClick,m=e.selected,g=e.textColor,v=void 0===g?"inherit":g,y=e.value,b=e.wrapped,x=void 0!==b&&b,w=Ci(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","selected","textColor","value","wrapped"]);return o.createElement(td,wi({focusRipple:!l,className:Rc(n.root,n["textColor".concat(Yc(v))],r,a&&n.disabled,m&&n.selected,p&&u&&n.labelIcon,c&&n.fullWidth,x&&n.wrapped),ref:t,role:"tab","aria-selected":m,disabled:a,onClick:function(e){f&&f(e,y),h&&h(e)}},w),o.createElement("span",{className:n.wrapper},u,p),d)}));_c((function(e){var t;return{root:wi({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},xi(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),xi(t,"overflow","hidden"),xi(t,"whiteSpace","normal"),xi(t,"textAlign","center"),xi(t,e.breakpoints.up("sm"),{fontSize:e.typography.pxToRem(13),minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(sv);var lv=o.createContext(),cv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"table":i,s=e.padding,l=void 0===s?"default":s,c=e.size,u=void 0===c?"medium":c,d=e.stickyHeader,p=void 0!==d&&d,f=Ci(e,["classes","className","component","padding","size","stickyHeader"]),h=o.useMemo((function(){return{padding:l,size:u,stickyHeader:p}}),[l,u,p]);return o.createElement(lv.Provider,{value:h},o.createElement(a,wi({ref:t,className:Rc(n.root,r,p&&n.stickyHeader)},f)))}));_c((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":wi({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(cv);var uv=o.createContext(),dv={variant:"body"},pv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tbody":i,s=Ci(e,["classes","className","component"]);return o.createElement(uv.Provider,{value:dv},o.createElement(a,wi({className:Rc(n.root,r),ref:t},s)))}));_c({root:{display:"table-row-group"}},{name:"MuiTableBody"})(pv);var fv=o.forwardRef((function(e,t){var n,r=e.align,i=void 0===r?"inherit":r,a=e.classes,s=e.className,l=e.component,c=e.padding,u=e.scope,d=e.size,p=e.sortDirection,f=e.variant,h=Ci(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),m=o.useContext(lv),g=o.useContext(uv);n=l||(g&&"head"===g.variant?"th":"td");var v=u;!v&&g&&"head"===g.variant&&(v="col");var y=c||(m&&m.padding?m.padding:"default"),b=d||(m&&m.size?m.size:"medium"),x=f||g&&g.variant,w=null;return p&&(w="asc"===p?"ascending":"descending"),o.createElement(n,wi({ref:t,className:Rc(a.root,a[x],s,"inherit"!==i&&a["align".concat(Yc(i))],"default"!==y&&a["padding".concat(Yc(y))],"medium"!==b&&a["size".concat(Yc(b))],{head:m&&m.stickyHeader&&a.stickyHeader}[x]),"aria-sort":w,scope:v},h))})),hv=_c((function(e){return{root:wi({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?bi(vi(e.palette.divider,1),.88):yi(vi(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0px 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(fv),mv={variant:"footer"},gv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tfoot":i,s=Ci(e,["classes","className","component"]);return o.createElement(uv.Provider,{value:mv},o.createElement(a,wi({className:Rc(n.root,r),ref:t},s)))}));_c({root:{display:"table-footer-group"}},{name:"MuiTableFooter"})(gv);var vv={variant:"head"},yv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"thead":i,s=Ci(e,["classes","className","component"]);return o.createElement(uv.Provider,{value:vv},o.createElement(a,wi({className:Rc(n.root,r),ref:t},s)))}));_c({root:{display:"table-header-group"}},{name:"MuiTableHead"})(yv);var bv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=e.disableGutters,l=void 0!==s&&s,c=e.variant,u=void 0===c?"regular":c,d=Ci(e,["classes","className","component","disableGutters","variant"]);return o.createElement(a,wi({className:Rc(n.root,n[u],r,!l&&n.gutters),ref:t},d))})),xv=_c((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:xi({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(bv),wv=$d(o.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),Ev=$d(o.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),Cv=o.createElement(Ev,null),kv=o.createElement(wv,null),Sv=o.createElement(wv,null),Tv=o.createElement(Ev,null),Rv=o.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,i=e.nextIconButtonProps,a=e.onChangePage,s=e.page,l=e.rowsPerPage,c=Ci(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),u=Uc();return o.createElement("div",wi({ref:t},c),o.createElement(sp,wi({onClick:function(e){a(e,s-1)},disabled:0===s,color:"inherit"},n),"rtl"===u.direction?Cv:kv),o.createElement(sp,wi({onClick:function(e){a(e,s+1)},disabled:s>=Math.ceil(r/l)-1,color:"inherit"},i),"rtl"===u.direction?Sv:Tv))})),Nv=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(-1===n?r:n," of ").concat(r)},Pv=[10,25,50,100],Dv=o.forwardRef((function(e,t){var n,r=e.ActionsComponent,i=void 0===r?Rv:r,a=e.backIconButtonProps,s=e.classes,l=e.className,c=e.colSpan,u=e.component,d=void 0===u?hv:u,p=e.count,f=e.labelDisplayedRows,h=void 0===f?Nv:f,m=e.labelRowsPerPage,g=void 0===m?"Rows per page:":m,v=e.nextIconButtonProps,y=e.onChangePage,b=e.onChangeRowsPerPage,x=e.page,w=e.rowsPerPage,E=e.rowsPerPageOptions,C=void 0===E?Pv:E,k=e.SelectProps,S=void 0===k?{}:k,T=Ci(e,["ActionsComponent","backIconButtonProps","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);d!==hv&&"td"!==d||(n=c||1e3);var R=S.native?"option":Fh;return o.createElement(d,wi({className:Rc(s.root,l),colSpan:n,ref:t},T),o.createElement(xv,{className:s.toolbar},o.createElement("div",{className:s.spacer}),C.length>1&&o.createElement(Wd,{color:"inherit",variant:"body2",className:s.caption},g),C.length>1&&o.createElement(bg,wi({classes:{select:s.select,icon:s.selectIcon},input:o.createElement(Cf,{className:Rc(s.input,s.selectRoot)}),value:w,onChange:b},S),C.map((function(e){return o.createElement(R,{className:s.menuItem,key:e,value:e.value?e.value:e},e.label?e.label:e)}))),o.createElement(Wd,{color:"inherit",variant:"body2",className:s.caption},h({from:0===p?0:x*w+1,to:Math.min(p,(x+1)*w),count:p,page:x})),o.createElement(i,{className:s.actions,backIconButtonProps:a,count:p,nextIconButtonProps:v,onChangePage:y,page:x,rowsPerPage:w})))}));_c((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{top:1},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(Dv);var Mv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tr":i,s=e.hover,l=void 0!==s&&s,c=e.selected,u=void 0!==c&&c,d=Ci(e,["classes","className","component","hover","selected"]),p=o.useContext(uv);return o.createElement(a,wi({ref:t,className:Rc(n.root,r,p&&{head:n.head,footer:n.footer}[p.variant],l&&n.hover,u&&n.selected)},d))}));_c((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$selected":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.08)"},"&$hover:hover":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.07)":"rgba(255, 255, 255, 0.14)"}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(Mv);var Lv=$d(o.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),Iv=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.children,a=e.classes,s=e.className,l=e.direction,c=void 0===l?"desc":l,u=e.hideSortIcon,d=void 0!==u&&u,p=e.IconComponent,f=void 0===p?Lv:p,h=Ci(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return o.createElement(td,wi({className:Rc(a.root,s,r&&a.active),component:"span",disableRipple:!0,ref:t},h),i,d&&!r?null:o.createElement(f,{className:Rc(a.icon,a["iconDirection".concat(Yc(c))])}))}));_c((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:1}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(Iv);var Av,Ov=!("undefined"==typeof window||!window.document||!window.document.createElement);function qv(){if(Av)return Av;if(!Ov||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Av="reverse",e.scrollLeft>0?Av="default":(e.scrollLeft=1,0===e.scrollLeft&&(Av="negative")),document.body.removeChild(e),Av}function zv(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=qv();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n}return n}function Fv(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var Wv={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Hv(e){var t=e.onChange,n=Ci(e,["onChange"]),r=o.useRef(),i=o.useRef(null),a=function(){r.current=i.current.offsetHeight-i.current.clientHeight};return o.useEffect((function(){var e=Zp((function(){var e=r.current;a(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),o.useEffect((function(){a(),t(r.current)}),[t]),o.createElement("div",wi({style:Wv,ref:i},n))}var Bv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=e.orientation,s=Ci(e,["classes","className","color","orientation"]);return o.createElement("span",wi({className:Rc(n.root,n["color".concat(Yc(i))],r,{vertical:n.vertical}[a]),ref:t},s))})),$v=_c((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(Bv),jv=o.createElement(wv,{fontSize:"small"}),Vv=o.createElement(Ev,{fontSize:"small"}),Uv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.direction,a=e.orientation,s=e.visible,l=Ci(e,["classes","className","direction","orientation","visible"]),c=Rc(n.root,r,{vertical:n.vertical}[a]);return s?o.createElement(td,wi({component:"div",className:c,ref:t,role:null,tabIndex:null},l),"left"===i?jv:Vv):o.createElement("div",{className:c})})),_v=_c({root:{width:40,flexShrink:0},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}}},{name:"PrivateTabScrollButton"})(Uv),Yv=o.forwardRef((function(e,t){var n=e.action,r=e.centered,i=void 0!==r&&r,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"div":c,d=e.indicatorColor,p=void 0===d?"secondary":d,f=e.onChange,h=e.orientation,m=void 0===h?"horizontal":h,g=e.ScrollButtonComponent,v=void 0===g?_v:g,y=e.scrollButtons,b=void 0===y?"auto":y,x=e.TabIndicatorProps,w=void 0===x?{}:x,E=e.textColor,C=void 0===E?"inherit":E,k=e.value,S=e.variant,T=void 0===S?"standard":S,R=Ci(e,["action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","value","variant"]),N=Uc(),P="scrollable"===T,D="rtl"===N.direction,M="vertical"===m,L=M?"scrollTop":"scrollLeft",I=M?"top":"left",A=M?"bottom":"right",O=M?"clientHeight":"clientWidth",q=M?"height":"width",z=o.useState(!1),F=z[0],W=z[1],H=o.useState({}),B=H[0],$=H[1],j=o.useState({start:!1,end:!1}),V=j[0],U=j[1],_=o.useState({overflow:"hidden",marginBottom:null}),Y=_[0],K=_[1],X=new Map,G=o.useRef(null),Z=o.useRef(null),J=function(){var e,t,n=G.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:zv(n,N.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==k){var o=Z.current.children;if(o.length>0){var i=o[X.get(k)];t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Q=qu((function(){var e,t=J(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(M)o=r.top-n.top+n.scrollTop;else{var i=D?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(xi(e={},I,o),xi(e,q,r?r[q]:0),e);if(isNaN(B[I])||isNaN(B[q]))$(a);else{var s=Math.abs(B[I]-a[I]),l=Math.abs(B[q]-a[q]);(s>=1||l>=1)&&$(a)}})),ee=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?Fv:i,s=r.duration,l=void 0===s?300:s,c=null,u=t[e],d=!1,p=function(){d=!0},f=function r(i){if(d)o(new Error("Animation cancelled"));else{null===c&&(c=i);var s=Math.min(1,(i-c)/l);t[e]=a(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};u===n?o(new Error("Element already at target position")):requestAnimationFrame(f)}(L,G.current,e)},te=function(e){var t=G.current[L];M?t+=e:(t+=e*(D?-1:1),t*=D&&"reverse"===qv()?-1:1),ee(t)},ne=function(){te(-G.current[O])},re=function(){te(G.current[O])},oe=o.useCallback((function(e){K({overflow:null,marginBottom:-e})}),[]),ie=qu((function(){var e=J(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[I]<t[I]){var r=t[L]+(n[I]-t[I]);ee(r)}else if(n[A]>t[A]){var o=t[L]+(n[A]-t[A]);ee(o)}})),ae=qu((function(){if(P&&"off"!==b){var e,t,n=G.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(M)e=r>1,t=r<o-i-1;else{var l=zv(G.current,N.direction);e=D?l<a-s-1:l>1,t=D?l>1:l<a-s-1}e===V.start&&t===V.end||U({start:e,end:t})}}));o.useEffect((function(){var e=Zp((function(){Q(),ae()})),t=Lp(G.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[Q,ae]);var se=o.useCallback(Zp((function(){ae()})));o.useEffect((function(){return function(){se.clear()}}),[se]),o.useEffect((function(){W(!0)}),[]),o.useEffect((function(){Q(),ae()})),o.useEffect((function(){ie()}),[ie,B]),o.useImperativeHandle(n,(function(){return{updateIndicator:Q,updateScrollButtons:ae}}),[Q,ae]);var le=o.createElement($v,wi({className:s.indicator,orientation:m,color:p},w,{style:wi({},B,{},w.style)})),ce=0,ue=o.Children.map(a,(function(e){if(!o.isValidElement(e))return null;var t=void 0===e.props.value?ce:e.props.value;X.set(t,ce);var n=t===k;return ce+=1,o.cloneElement(e,{fullWidth:"fullWidth"===T,indicator:n&&!F&&le,selected:n,onChange:f,textColor:C,value:t})})),de=function(){var e={};e.scrollbarSizeListener=P?o.createElement(Hv,{className:s.scrollable,onChange:oe}):null;var t=V.start||V.end,n=P&&("auto"===b&&t||"desktop"===b||"on"===b);return e.scrollButtonStart=n?o.createElement(v,{orientation:m,direction:D?"right":"left",onClick:ne,visible:V.start,className:Rc(s.scrollButtons,"on"!==b&&s.scrollButtonsDesktop)}):null,e.scrollButtonEnd=n?o.createElement(v,{orientation:m,direction:D?"left":"right",onClick:re,visible:V.end,className:Rc(s.scrollButtons,"on"!==b&&s.scrollButtonsDesktop)}):null,e}();return o.createElement(u,wi({className:Rc(s.root,l,M&&s.vertical),ref:t},R),de.scrollButtonStart,de.scrollbarSizeListener,o.createElement("div",{className:Rc(s.scroller,P?s.scrollable:s.fixed),style:Y,ref:G,onScroll:se},o.createElement("div",{className:Rc(s.flexContainer,M&&s.flexContainerVertical,i&&!P&&s.centered),ref:Z,role:"tablist"},ue),F&&le),de.scrollButtonEnd)}));_c((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:xi({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(Yv);var Kv={standard:th,filled:Sf,outlined:Kh},Xv=o.forwardRef((function(e,t){var n=e.autoComplete,r=e.autoFocus,i=e.children,a=e.classes,s=e.className,c=e.color,u=void 0===c?"primary":c,d=e.defaultValue,p=e.error,f=e.FormHelperTextProps,h=e.fullWidth,m=e.helperText,g=e.hiddenLabel,v=e.id,y=e.InputLabelProps,b=e.inputProps,x=e.InputProps,w=e.inputRef,E=e.label,C=e.multiline,k=e.name,S=e.onBlur,T=e.onChange,R=e.onFocus,N=e.placeholder,P=e.required,D=void 0!==P&&P,M=e.rows,L=e.rowsMax,I=e.select,A=void 0!==I&&I,O=e.SelectProps,q=e.type,z=e.value,F=e.variant,W=void 0===F?"standard":F,H=Ci(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]),B=o.useState(0),$=B[0],j=B[1],V=o.useRef(null);o.useEffect((function(){if("outlined"===W){var e=l.findDOMNode(V.current);j(null!=e?e.offsetWidth:0)}}),[W,D,E]);var U={};"outlined"===W&&(y&&void 0!==y.shrink&&(U.notched=y.shrink),U.labelWidth=$),A&&(O&&O.native||(U.id=void 0),U["aria-describedby"]=void 0);var _=m&&v?"".concat(v,"-helper-text"):void 0,Y=E&&v?"".concat(v,"-label"):void 0,K=Kv[W],X=o.createElement(K,wi({"aria-describedby":_,autoComplete:n,autoFocus:r,defaultValue:d,fullWidth:h,multiline:C,name:k,rows:M,rowsMax:L,type:q,value:z,id:v,inputRef:w,onBlur:S,onChange:T,onFocus:R,placeholder:N,inputProps:b},U,x));return o.createElement(Nf,wi({className:Rc(a.root,s),error:p,fullWidth:h,hiddenLabel:g,ref:t,required:D,color:u,variant:W},H),E&&o.createElement(oh,wi({htmlFor:v,ref:V,id:Y},y),E),A?o.createElement(bg,wi({"aria-describedby":_,id:v,labelId:Y,value:z,input:X},O),i):X,m&&o.createElement(If,wi({id:_},f),m))}));function Gv(e){return Math.round(1e5*e)/1e5}_c({root:{}},{name:"MuiTextField"})(Xv);var Zv=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.disableFocusListener,a=void 0!==i&&i,s=e.disableHoverListener,c=void 0!==s&&s,u=e.disableTouchListener,d=void 0!==u&&u,p=e.enterDelay,f=void 0===p?0:p,h=e.enterTouchDelay,m=void 0===h?700:h,g=e.id,v=e.interactive,y=void 0!==v&&v,b=e.leaveDelay,x=void 0===b?0:b,w=e.leaveTouchDelay,E=void 0===w?1500:w,C=e.onClose,k=e.onOpen,S=e.open,T=e.placement,R=void 0===T?"bottom":T,N=e.PopperProps,P=e.title,D=e.TransitionComponent,M=void 0===D?_f:D,L=e.TransitionProps,I=Ci(e,["children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperProps","title","TransitionComponent","TransitionProps"]),A=Uc(),O=o.useState(!1),q=O[0],z=O[1],F=o.useState(0)[1],W=o.useState(),H=W[0],B=W[1],$=o.useRef(!1),j=o.useRef(null!=S).current,V=o.useRef(),U=o.useRef(),_=o.useRef(),Y=o.useRef(),K=o.useRef();o.useEffect((function(){V.current||(V.current="mui-tooltip-".concat(Math.round(1e5*Math.random()))),S&&F((function(e){return!e}))}),[S]),o.useEffect((function(){return function(){clearTimeout(U.current),clearTimeout(_.current),clearTimeout(Y.current),clearTimeout(K.current)}}),[]);var X=function(e){j||q||z(!0),k&&k(e)},G=function(e){var t=n.props;"mouseover"===e.type&&t.onMouseOver&&t.onMouseOver(e),$.current&&"touchstart"!==e.type||(H&&H.removeAttribute("title"),clearTimeout(_.current),clearTimeout(Y.current),f?(e.persist(),_.current=setTimeout((function(){X(e)}),f)):X(e))},Z=Ku(),J=Z.isFocusVisible,Q=Z.onBlurVisible,ee=Z.ref,te=o.useState(!1),ne=te[0],re=te[1],oe=function(e){j||z(!1),C&&C(e),clearTimeout(U.current),U.current=setTimeout((function(){$.current=!1}),A.transitions.duration.shortest)},ie=function(e){var t=n.props;"blur"===e.type&&(t.onBlur&&t.onBlur(e),ne&&(re(!1),Q())),"mouseleave"===e.type&&t.onMouseLeave&&t.onMouseLeave(e),clearTimeout(_.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),x)},ae=Ru(B,t),se=Ru(ee,ae),le=o.useCallback((function(e){Tu(se,l.findDOMNode(e))}),[se]),ce=Ru(n.ref,le),ue=j?S:q;""===P&&(ue=!1);var de=!ue&&!c,pe=wi({"aria-describedby":ue?g||V.current:null,title:de&&"string"==typeof P?P:null},I,{},n.props,{className:Rc(I.className,n.props.className)});d||(pe.onTouchStart=function(e){$.current=!0;var t=n.props;t.onTouchStart&&t.onTouchStart(e),clearTimeout(Y.current),clearTimeout(U.current),clearTimeout(K.current),e.persist(),K.current=setTimeout((function(){G(e)}),m)},pe.onTouchEnd=function(e){n.props.onTouchEnd&&n.props.onTouchEnd(e),clearTimeout(K.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),E)}),c||(pe.onMouseOver=G,pe.onMouseLeave=ie),a||(pe.onFocus=function(e){H||B(e.currentTarget),J(e)&&(re(!0),G(e));var t=n.props;t.onFocus&&t.onFocus(e)},pe.onBlur=ie);var fe=y?{onMouseOver:pe.onMouseOver,onMouseLeave:pe.onMouseLeave,onFocus:pe.onFocus,onBlur:pe.onBlur}:{};return o.createElement(o.Fragment,null,o.cloneElement(n,wi({ref:ce},pe)),o.createElement(og,wi({className:Rc(r.popper,y&&r.popperInteractive),placement:R,anchorEl:H,open:!!H&&ue,id:pe["aria-describedby"],transition:!0},fe,N),(function(e){var t=e.placement,n=e.TransitionProps;return o.createElement(M,wi({timeout:A.transitions.duration.shorter},n,L),o.createElement("div",{className:Rc(r.tooltip,r["tooltipPlacement".concat(Yc(t.split("-")[0]))],$.current&&r.touch)},P))})))}));_c((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none",flip:!1},popperInteractive:{pointerEvents:"auto"},tooltip:{backgroundColor:vi(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(Gv(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(Gv(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:xi({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:xi({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:xi({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:xi({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip"})(Zv);var Jv={entering:{transform:"none"},entered:{transform:"none"}},Qv={enter:pa.enteringScreen,exit:pa.leavingScreen};function ey(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function ty({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:ey(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return o.createElement("i",{style:i},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.createElement("path",{d:e})))}o.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,a=e.onExit,s=e.style,l=e.timeout,c=void 0===l?Qv:l,u=Ci(e,["children","in","onEnter","onExit","style","timeout"]),d=Uc(),p=Ru(n.ref,t);return o.createElement(au,wi({appear:!0,in:r,onEnter:function(e,t){ku(e);var n=Su({style:s,timeout:c},{mode:"enter"});e.style.webkitTransition=d.transitions.create("transform",n),e.style.transition=d.transitions.create("transform",n),i&&i(e,t)},onExit:function(e){var t=Su({style:s,timeout:c},{mode:"exit"});e.style.webkitTransition=d.transitions.create("transform",t),e.style.transition=d.transitions.create("transform",t),a&&a(e)},timeout:c},u),(function(e,t){return o.cloneElement(n,wi({style:wi({transform:"scale(0)",visibility:"exited"!==e||r?void 0:"hidden"},Jv[e],{},s,{},n.props.style),ref:p},t))}))}));const ny={d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"},ry={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},oy="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",iy={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},ay={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};function sy(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.",e.layout);let r=Bo.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function ly(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=Q(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),sy(e,a,c)}))}const cy=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))};function uy({dir:e,dock:t,altList:n,model:r,translator:o,app:i,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives:()=>cy(i,n).then((e=>Promise.all(n.filter((t=>!e.includes(t.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(e,i,o).then((t=>({id:e.qDef.cId,selected:!1,title:t})))))))),changeTo(e,t){ly(r,e,t,"qDimensions",a)}}}function dy(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(o=e,"H"===o.qGrouping?o.title||"":o.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)},id:e.cId};var o}function py({altList:e,app:t,dir:n,dock:r,model:o,onChange:i,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives:()=>cy(t,e).then((n=>Promise.all(e.filter((e=>!n.includes(e.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t})))))))),changeTo(e,t){ly(o,e,t,"qMeasures",i,a)}}}function fy(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}const hy={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}},my=({children:e,...t})=>o.createElement(Kd,V({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);function gy(e){function t({title:e,selected:t,onClick:n}){const r=pe.detectTextDirection(e);return o.createElement(fh,{role:"menuitem",button:!0,onClick:n,style:{textAlign:"start"}},o.createElement(gh,{style:{minWidth:32}},o.createElement(ty,{d:t?oy:""})),o.createElement(bh,{primaryTypographyProps:{dir:r}},e))}function n({alignTo:e,changeTo:n,current:r,dir:i,dock:a,list:s,onClose:l,show:c,instruction:u}){const d=s.map((e=>o.createElement(t,{key:e.id,title:e.title,onClick:()=>n(e.id)})));return o.createElement(Th,V({anchorEl:e,open:c,onClose:l},hy[a],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),o.createElement(uh,{dense:!0,dir:i,"aria-label":u,component:"nav"},o.createElement(t,{title:r,selected:!0,onClick:l}),d))}t.propTypes={title:Jo.exports.string.isRequired,selected:Jo.exports.bool,onClick:Jo.exports.func.isRequired},t.defaultProps={selected:!1},n.propTypes={alignTo:Jo.exports.any,changeTo:Jo.exports.func.isRequired,current:Jo.exports.string.isRequired,dir:Jo.exports.string.isRequired,dock:Jo.exports.string.isRequired,list:Jo.exports.array,onClose:Jo.exports.func.isRequired,show:Jo.exports.bool.isRequired,instruction:Jo.exports.string.isRequired},n.defaultProps={list:[],alignTo:null};class r extends o.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasValidAlternatives:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=o.createRef()}componentDidMount(){const{selections:e}=this.props;e&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),e.addListener("activated",this.onSelectionsActivated),e.addListener("deactivated",this.onSelectionsDeactivated),e.addListener("canceled",this.onSelectionsDeactivated))}componentDidUpdate(e,t){const{popover:n,supportConditional:r}=this.props;n&&r&&n.getAlternatives().then((e=>{t.hasValidAlternatives!==(0!==e.length)&&this.setState({hasValidAlternatives:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.id,e),this.closePopover()}openPopover(){this.state.closeTime&&Date.now()-this.state.closeTime<20||this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e})}))}closePopover(){this.setState({open:!1,closeTime:Date.now()})}render(){const{titleData:e,popover:t,translator:r,disabled:i,isDimension:a,padding:s,minWidth:l,hasAlternative:c,supportConditional:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},p=e.breadcrumbs.length,f=i||this.state.inSelection,h=e.breadcrumbs.map(((t,n)=>o.createElement(my,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:e.drillUp(p-n),title:t},o.createElement("span",{style:d},t),o.createElement(ty,V({},ay,{size:"small",style:{margin:"0 8px"}}))))),m=u?this.state.hasValidAlternatives:c,g=t&&!this.state.open?this.openPopover:this.closePopover,v=!t||i||this.state.inSelection,y={display:"flex",alignItems:"center",width:"100%",color:v&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!a&&v&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(y.background="rgba(0,0,0,0.08)");s&&(y.padding=s),l&&(y.minWidth=l);const b=pe.detectTextDirection(e.text),x=o.createElement(my,{"aria-label":r.get("Accessibility.Alternative.Instructions",[e.text]),style:y,onClick:v?void 0:g,title:e.text,tabIndex:v?-1:0,onFocus:v?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:v?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()}},e.locked&&o.createElement(ty,V({},ry,{size:"small",title:r.get("Tooltip.selections.locked")})),o.createElement("span",{style:d,dir:b},e.text),t&&m&&o.createElement(ty,V({},iy,{size:"small",style:{margin:"0 8px"}})));return o.createElement(o.Fragment,null,e.drilldown&&o.createElement(ty,V({},ny,{size:"small",title:r.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),h,o.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},x),t&&m&&o.createElement(n,{dock:t.dock,dir:t.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function i(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function a(e){return!e.isDimension&&se(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return r.propTypes={disabled:Jo.exports.bool.isRequired,padding:Jo.exports.string,minWidth:Jo.exports.string,titleData:Jo.exports.shape({breadcrumbs:Jo.exports.arrayOf(Jo.exports.string).isRequired,drilldown:Jo.exports.bool.isRequired,index:Jo.exports.number.isRequired,locked:Jo.exports.bool.isRequired,text:Jo.exports.string.isRequired,popoverText:Jo.exports.string.isRequired,drillUp:Jo.exports.func,id:Jo.exports.string.isRequired}).isRequired,popover:Jo.exports.shape({dir:Jo.exports.string.isRequired,dock:Jo.exports.string.isRequired,changeTo:Jo.exports.func.isRequired,getAlternatives:Jo.exports.func.isRequired}),translator:Jo.exports.shape({get:Jo.exports.func.isRequired}).isRequired,selections:Jo.exports.shape({isActive:Jo.exports.func,addListener:Jo.exports.func,removeListener:Jo.exports.func}),style:Jo.exports.shape({fontSize:Jo.exports.string,color:Jo.exports.string,fontFamily:Jo.exports.string}).isRequired,isDimension:Jo.exports.bool.isRequired,hasAlternative:Jo.exports.bool.isRequired,supportConditional:Jo.exports.bool.isRequired},r.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:t}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||a(this.settings.settings)?Math.max(28,t):Math.max(20,t)},render(){const{settings:{app:e,disabled:t,explicitItemInfos:n,hyperCube:s,hyperCubeDef:l,isDimension:c,minWidth:u,model:d,onChangeToAlternative:p,padding:f,rtl:h,selections:m,skipAttributeExpressions:g,translator:v,supportConditional:y=!1},layout:{dock:b}}=this.settings,x="top"!==b&&"bottom"!==b||!h?"ltr":"rtl",w=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(b,this.rect),E=l&&l.qLayoutExclude&&l.qLayoutExclude.qHyperCubeDef,C=E&&E[c?"qDimensions":"qMeasures"]||[],k=n||s[c?"qDimensionInfo":"qMeasureInfo"],S=c?uy:py,T=c?dy:fy,R=d&&d.colorSupport&&d.modifiers&&S({altList:C,app:e,dir:h?"rtl":"ltr",dock:i(b),model:d,onChange:p,skipAttributeExpressions:g,translator:v}),N=(P=this.settings.settings).isDimension&&se(P,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||a(this.settings.settings);var P;const D=k.map(((e,n)=>{const i="number"==typeof e.explicitColumn?e.explicitColumn:n,a=T(e,i,d),s=n===k.length-1;return o.createElement(o.Fragment,{key:e.cId},o.createElement(r,{popover:R,titleData:a,model:d,translator:v,selections:m,disabled:t(),style:this.style,isDimension:c,padding:f,minWidth:u,hasAlternative:N,supportConditional:y}),!s&&o.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return o.createElement("div",{style:w,dir:x},D)}}}const vy=ga({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const yy=ba({productionPrefix:"q49ee",disableGlobal:!0,seed:""});function by(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const a={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=Math.round(i.margin.left+i.x*t)+"px",r.style.top=Math.round(i.margin.top+i.y*n)+"px",r.style.width=Math.round(i.width)+"px",r.style.height=Math.round(i.height)+"px",r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",l.render(function(e,t){return o.createElement(hc,{generateClassName:t},o.createElement($c,{theme:vy},e))}(e,yy),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&l.unmountComponentAtNode(r),a),destroy(){r&&r.parentElement&&(l.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return a}}function xy(){return function(e){e.renderer("react",by()),e.component("data-title",gy(e.renderer("svg")())),e.component("disclaimer",function(){class e extends o.Component{render(){const{label:e,spanStyle:t}=this.props;return o.createElement(o.Fragment,null,o.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:Jo.exports.string.isRequired,spanStyle:Jo.exports.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r},style:i={}}=this.settings,a="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",s=function(e,t,n){const r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.fontFamily||'"Source Sans Pro", "Arial", "sans-serif"'};switch(t){case"left":r.width=n.height+"px",r.transform=`rotate(-90deg) translate(-${n.height}px, 0)`,r.transformOrigin="top left";break;case"right":r.width=n.height+"px",r.transform=`rotate(90deg) translate(0, -${n.width}px)`,r.transformOrigin="top left";break;case"center":r.width=n.width+"px",r.height=n.height+"px",r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:case"top":case"bottom":r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(i,r,this.rect),l="center"===r?t:"* "+t,c="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return o.createElement("div",{style:s,dir:a},o.createElement(o.Fragment,null,o.createElement(e,{label:l,spanStyle:c})))}}}())}}function wy(e){return dt(e).l<70}function Ey(e,t){const n=dt(e).l/100,r=dt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Cy(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var ky={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const o=[];let i=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=i.attrs.fill,a=t.attrs.fill;if(Ey(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,i.desc.slice.innerRadius),s=Math.min(s,i.desc.slice.outerRadius),s>r){const t=Cy({r:s,a:e},n),i=Cy({r:r,a:e},n);o.push({type:"line",x1:t.x,y1:t.y,x2:i.x,y2:i.y,strokeWidth:1,opacity:.4,stroke:wy(a)?"#ccc":"#333"})}}i=t}return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Sy(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function Ty(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),o=Math.sin(t),i=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:Sy(s)}}var Ry={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(o={r:t.offset,a:l},{x:(i=s).x+o.r*Math.sin(o.a),y:i.y-o.r*Math.cos(o.a)}),u=Ty({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var o,i;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Ny(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",j(e))};e.interaction("hammer",j(Hammer))}(t)),e.use(xy()),e.component("pie-dividers",ky),e.component("negative-indicators",Ry),e}var Py={};function Dy(){Dy.init.call(this)}Py.isObject=function(e){return"object"==typeof e&&null!==e},Py.isNumber=function(e){return"number"==typeof e},Py.isUndefined=function(e){return void 0===e},Py.isFunction=function(e){return"function"==typeof e};var My=Dy;Dy.EventEmitter=Dy,Dy.prototype._events=void 0,Dy.prototype._maxListeners=void 0,Dy.defaultMaxListeners=10,Dy.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Dy.prototype.setMaxListeners=function(e){if(!Py.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Dy.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Py.isUndefined(n))return!1;if(Py.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Py.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Dy.prototype.addListener=function(e,t){var n;if(!Py.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Py.isFunction(t.listener)?t.listener:t),this._events[e]?Py.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Py.isObject(this._events[e])&&!this._events[e].warned)&&((n=Py.isUndefined(this._maxListeners)?Dy.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Py.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Py.isFunction(console.trace)&&console.trace()));return this},Dy.prototype.on=Dy.prototype.addListener,Dy.prototype.once=function(e,t){if(!Py.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Dy.prototype.removeListener=function(e,t){var n,r,o,i;if(!Py.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Py.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Py.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Dy.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Py.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Dy.prototype.listeners=function(e){return this._events&&this._events[e]?Py.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Dy.listenerCount=function(e,t){return e._events&&e._events[t]?Py.isFunction(e._events[t])?1:e._events[t].length:0};function Ly(){const e={};var t;return t=e,Object.keys(My.prototype).forEach((e=>{t[e]=My.prototype[e]})),My.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}const Iy={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function Ay(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Oy={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function qy(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r,o,i;let a,s,l,c,u,d;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(r=n.session)&&void 0!==r&&r.sessionConfig||null!==(o=e.session)&&void 0!==o&&null!==(i=o.config)&&void 0!==i&&i.url)){var p;if(a=e.session.options||(null===(p=e.enigmaModel)||void 0===p?void 0:p.session.sessionConfig),!a){var f;a=null===(f=e.session)||void 0===f?void 0:f.config;const t=new URL(a.url);a.host=t.hostname,a.port=t.port,a.isSecure="wss:"===t.protocol}return d=void 0!==a.secure?a.secure:a.isSecure,s=d?"https://":"http://",l=a.host||"localhost",c=a.port?":"+a.port:"",u=a.prefix?a.prefix:"/","/"!==u[u.length-1]&&(u+="/"),s+l+c+u}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await Oy.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function zy(e,t,n,r){var o,i,a,s,l,c;const{app:u,flags:d}=t,p=null===(o=e.layout)||void 0===o||null===(i=o.tooltip)||void 0===i?void 0:i.imageComponents;if(!p)return[];const[f]=p,h=f.size||"small",m=f.type||"media";let g=-1;for(let e=0;e<n.length;e++)if(n[e].cId===f.cId){g=e;break}const v=(null===(a=r.data)||void 0===a||null===(s=a.customTooltipAttrExps)||void 0===s?void 0:s.value)||[];let y;if(-1!==g&&v[g]&&(y=v[g]),"media"===m&&null!==(l=f.ref)&&void 0!==l&&null!==(c=l.qStaticContentUrl)&&void 0!==c&&c.qUrl)return qy(f,h,u);if("url"===m)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Ay(a))try{const t="data:image/png;base64, "+await e.getImage(a),{height:n,width:o,imageError:s}=await Oy.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Oy.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(u,d,f,h,y);if(d.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===m&&y&&y.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Ay(a))try{const t=await e.getImage(a);if(t){const e="data:image/png;base64, "+t,{height:r,width:i,imageError:a}=await Oy.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(u,n[g],h,y)}return[]}const Fy={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(zy(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t,n;const r=null===(t=e.layout)||void 0===t||null===(n=t.tooltip)||void 0===n?void 0:n.imageComponents;return!!r&&r.length>0}},Wy={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await Fy.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>Fy.checkIfPromisesExist({customTooltipModel:e})};const Hy=(e,t)=>{var n,r,o;const i=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:Iy.CHART.CHART_PARENT_TYPE,qId:Iy.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},By=e=>{var t,n,r;const o=null===(t=e.tooltip)||void 0===t||null===(n=t.chart)||void 0===n||null===(r=n.object)||void 0===r?void 0:r.refId;return{qInfo:{qType:Iy.CHART.CHART_CHILD_TYPE},qExtendsId:o}};const $y={createContainer:({ctx:e,layout:t})=>{var n,r;if(!((null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r?void 0:r.length)<=0))return function(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.tooltip)||void 0===r||null===(o=r.chart)||void 0===o||null===(i=o.style)||void 0===i?void 0:i.size)&&void 0!==n?n:"medium",s=Iy.CHART.STYLE[a];return[{content:[e.h("div",{style:{display:"flex",width:s,height:s,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:Iy.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":s,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a,s,l;const c=o,u=null==t||null===(a=t.tooltip)||void 0===a||null===(s=a.chart)||void 0===s||null===(l=s.object)||void 0===l?void 0:l.refId;if(null!=c&&c.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&u&&!(t.qHyperCubeDef.qDimensions.length<=0)){await $y.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=Iy.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=Iy.CHART.STATE,a=Hy(t,i),s=await e.createSessionObject(a),l=By(t);if(s.id!==Iy.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(c.miniChartToken.alternateState&&c.miniChartToken.sessionObj&&a){var d,p,f,h;const e=n.length>0&&void 0!==(null===(d=n[0].data)||void 0===d?void 0:d.value)?[null===(p=n[0].data)||void 0===p?void 0:p.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var m,g;const e=null!==(m=n[0].data.selectionOuterDimension)&&void 0!==m?m:n[0].data.selectionDimension;if(null!=e&&null!==(g=e.source)&&void 0!==g&&g.field){var v;const t=null==e||null===(v=e.source)||void 0===v?void 0:v.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const s=document.getElementById(Iy.CHART.CONTAINER_ID),l={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};c.miniChartToken.vis=await o.embed.render({element:s,model:c.miniChartToken.model,options:l,id:null===(f=c.miniChartToken.model)||void 0===f?void 0:f.id,type:null===(h=c.miniChartToken.model)||void 0===h?void 0:h.genericType})}}catch(t){await $y.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&($y.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Iy.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=Iy.CHART.STATE;await e.removeSessionAlternateState(r),n.miniChartToken.alternateState=void 0}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t,n;const r=e;"function"==typeof(null===(t=r.miniChartToken)||void 0===t||null===(n=t.vis)||void 0===n?void 0:n.destroy)&&(r.miniChartToken.vis.destroy(),r.miniChartToken.vis=void 0)}};function jy(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Vy(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=Iy.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function Uy(e){const t=Vy();return e.filter((e=>t[e.id]))}const _y={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=_y.getAttrExprData(a);i.length||n.length?Wy.handlePromises({customTooltipModel:o,nodes:_y.getDataNodes(s,i.length>0?i:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&$y.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Wy.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i,a,s;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(a=i.qDimensionInfo)||void 0===a||null===(s=a[t])||void 0===s?void 0:s.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n,r;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(r=n.quarantine)||void 0===r?void 0:r[Iy.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[Iy.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[Iy.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Uy(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t,n;const r=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(n=t.quarantine)||void 0===n?void 0:n[Iy.CUSTOM.QUARANTINE])&&delete r.qLayoutExclude.quarantine[Iy.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=jy(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===Uy(o).length){var i,a;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(a=i.quarantine)||void 0===a?void 0:a.customTooltip)||[],n=[...o,...t],s=e;s.qHyperCubeDef?s.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:s.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const o=jy(e)||[];[...o,t].forEach((e=>{const t=Uy(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=Vy(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:pe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=pe.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function Yy(e,t,n,r){var o,i,a;const s=(null===(o=t.qHyperCube)||void 0===o||null===(i=o[n])||void 0===i||null===(a=i[r])||void 0===a?void 0:a.qAttrExprInfo)||[],l=[],c=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return c?(s.forEach(((e,t)=>{const o=c.qValues&&c.qValues[t]?c.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case Iy.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Iy.CUSTOM.TITLE:case Iy.CUSTOM.DESCRIPTION:case Iy.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);l.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),l):l}const Ky={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Yy(t,e,r,n)}}};const Xy={getCustomAttrExps(e,t,n){var r,o;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},a=(null===(r=t.data)||void 0===r||null===(o=r.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];if(Number.isNaN(a))return i;return function(e,t,n,r){const o={[Iy.CUSTOM.TITLE]:!0,[Iy.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=_y.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===Iy.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===Iy.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,a.map((t=>fe.getMeasure(e,t))),e,i)}};function Gy({nodes:e,layout:t,dataset:n}){return function(e,t,n){const r=[];return e.forEach((e=>{r.push(Xy.getCustomAttrExps(n,e,t))})),r}(e,t,n).reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function Zy(e){const t=Iy.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function Jy(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var Qy={attrExpr:{migrateProperties(e){var t,n,r,o;const i=Q(!0,{},e),a=(null===(t=i.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[];let s=Jy(i);return s=function(e,t){return t.concat(e.map((e=>Zy(e))))}(a,s),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(s,i),null===(o=i.tooltip)||void 0===o||delete o.data,i},getPatches(e){var t,n,r,o;const i=(null===(t=e.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[],a=(null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qDimensions.length)-1;return function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=Zy(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(Jy(e),i,a)},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,o,i,a,s;const l=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],c=(null===(o=t.tooltip)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.qHyperCube)||{},u=null===(a=t.qMeta)||void 0===a||null===(s=a.privileges)||void 0===s?void 0:s.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(c,l)&&e.getEffectiveProperties().then((t=>{if(u){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}};const{CUSTOM:eb}=Iy;function tb({flags:e,layout:t,app:n,model:r,picasso:o,chart:i,translator:a,localeInfo:s,embed:l,options:c}){var u,d,p;const f=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:_y,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:o,chart:i,translator:a,localeInfo:s,embed:l}),h="rtl"===c.direction,m=!(!t.tooltip||t.tooltip.auto),g=m&&L(t,"tooltip.hideBasic",!1),v=!!(m&&null!==(u=t.tooltip)&&void 0!==u&&null!==(d=u.chart)&&void 0!==d&&null!==(p=d.object)&&void 0!==p&&p.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));return{isEnabled:()=>m,hideBasic:()=>g,getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=Gy({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===eb.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===eb.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>_y.checkIfPromisesExist({customTooltipModel:f}),createImageRow:({value:e,h:t})=>_y.getImageRow(e,{h:t,rtl:h}),addImages:({nodes:r})=>{const o=_y.getDataNodes(i,r),a=_y.getAttrExprData(t);return Wy.handlePromises({customTooltipModel:f,nodes:o,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>v,hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>$y.createContainer({layout:t,ctx:{h:e,rtl:h}}),createLimitationRow:()=>_y.getFooterRow(a.get("properties.tooltip.notselectedmessage"),h),show:({nodes:e,properties:t})=>$y.show({app:n,properties:t,selectedNodes:e,customTooltipModel:f,rtl:h}),hasAlternateState:()=>{var e;return!(null===(e=f.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>$y.hide({app:n,customTooltipModel:f}),destroy:()=>$y.destroyVisualization({customTooltipModel:f})}}}function nb(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function rb({chart:e,translator:t,layout:n,constraints:r,options:o,themeService:i,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===o.direction,{fontFamily:u}=i.getStyles();return I({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:o,create:i,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},f=[];u&&f.push(i.text({value:u,style:{bold:!0}})),d&&f.push(i.text({value:d}));const h=s.hideBasic();if(h&&!p.length&&(u||d)||f.push(i.text({value:c.data.label,style:{bold:!0}})),!h){f.push(i.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}f.push(i.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:o("share")(c.desc.share)}))}p&&f.push(...p.map((e=>i.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),f.push(i.raw({value:s.chart.createLimitationRow()}))):f.push(i.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&f.push(...m.map((t=>i.raw({value:s.createImageRow({value:t,h:e})})))),f},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}function ob({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:o}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:e+"Range",direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const ib=.8,ab=.55,sb={CORNER_RADIUS:0,INNER_RADIUS:ab,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},lb=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,o;let i=ib,a=0;const s=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:ab;e.donut.showAsDonut&&(i=ib-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*i+a}}:ib,cb=({layout:e},t,n)=>{var r,o;if(!e.donut.showAsDonut)return 0;const i=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:ab;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=ib-i,n=i;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:i},ub=({layout:e},t)=>{var n,r,o,i,a,s;const l=t.colorService.getDatumProps(),c=l[Object.keys(l)[0]],u=c&&c.field?c.field:void 0,d="qDimensionInfo/0"===u,p=u?t.ds.field(u).raw():null,f=p&&(p.label||p.title||p.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:m}=t.chart,g=se(e,"qHyperCube.qDimensionInfo",[]).length;function v(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>m(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...l,num:v(t.encodings.slice.arc,"arc"),fillTooltip:u?{field:u,label:f,value:e=>d?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==g?Ky.getNode(e,{dimensionCount:g}):void 0,radius:h?v(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:cb({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?sb.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:sb.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(o=y.style)||void 0===o||null===(i=o.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:sb.STROKE.COLOR,outerRadius:lb({layout:e},t,y),cornerRadius:null!==(a=null==y||null===(s=y.style)||void 0===s?void 0:s.cornerRadius)&&void 0!==a?a:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function db({layout:e},t){var n,r;const o=(e.components||[]).filter((e=>"slices"===e.key))[0],i=null!==(n=null==o||null===(r=o.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:ab,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=ib-i,n=i;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function pb(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function fb({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}function hb(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function mb(e){return e.node.data.num.label}function gb(e){return e.node.data.radius.label}function vb(e,t,n){if(e.dataPoint.auto)return n?mb:hb;if("share"===e.dataPoint.labelMode)return hb;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?gb:mb}return null}function yb({data:e}){return e?e.label:""}function bb(e){const t=parseInt(e,10);if(!isNaN(t))return t}function xb(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:ab)>.3}function wb({node:e,data:t}){return Q({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Eb(e,t,n){const r=t.themeService.getStyles(),o=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",fill:r.label.name.color,padding:t.encodings.slice.outerRadius?4:2}],fontSize:bb(r.label.name.fontSize),fontFamily:r.label.name.fontFamily,label:yb,linkData:({node:e,data:t})=>Q({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(vb(e,t,!1)){const r=function(e,t,n){return{label:vb(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&xb(e)?"inside":"into",onBackground:e.donut.showAsDonut&&xb(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),i=ge(Q(t,r),n.theme);i.linkData=wb,o.push(i)}return{key:"pie-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:o}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Cb({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=vb(e,t,!0),o=(e=>t=>e.getContrastingColorTo(t.node.attrs.fill))(n.theme),i=t.themeService.getStyles();return{key:"pie-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fill:e.donut.showAsDonut?i.label.name.color:o,fontSize:bb(i.label.name.fontSize),fontFamily:i.label.name.fontFamily,label:yb,linkData:({data:e})=>e},{fill:e.donut.showAsDonut?i.label.value.color:o,fontSize:bb(i.label.value.fontSize),fontFamily:i.label.value.fontFamily,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Eb(e,n,t))}const kb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=(this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type))||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return r||this.chart.component("legendRangeBrush").emit("rangeClear"),r}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function Sb(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}function Tb(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:o}=Sb(e,t),i=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*ib;return(i-r)**2+(a-o)**2<=s**2}const Rb=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let o=Sb(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(o={cx:o.x,cy:o.y,r:5});const i=this.chart.shapesAt(o,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});i.length&&(this.chart.brushFromShapes(i,{components:[{key:i[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Nb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),Pb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function Db(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Tb(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const Mb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&Tb(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),Lb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),Ib=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[Mb(e,{}),Rb(e,t,{}),...n]:[kb(e,{}),Pb(e,{}),Mb(e,{}),Nb(e,{}),Lb(e,{}),Rb(e,t,{}),...n]});function Ab(e,t,n){const r=e.getIsSingleSelect(0),{constraints:o}=n;if(o.active&&o.passive)return[];const i=t.tooltipService.getInteractions();return[Ib(t,r,i.gestures),Db(t),i.native]}function Ob({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function qb({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,o=t.themeService.getStyles();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections},style:{fontFamily:o.axis.title.fontFamily,fontSize:o.axis.title.fontSize,color:o.axis.title.color}}}function zb({layout:e},t,n){const r=function(e,t){const n={field:"qDimensionInfo/0",props:{num:{field:t.encodings.slice.arc}}};t.encodings.slice.outerRadius&&(n.props.radius={field:t.encodings.slice.outerRadius});let r=t.ds.extract(n);if(0===r.length)return"NoDataExist";const o=se(e,"qHyperCube.qSize.qcy");if(se(e,"qHyperCube.qDataPages.0.qArea.qHeight")<o)return"LimitedData";if(r=t.encodings.slice.outerRadius?r.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):r.filter((e=>"NaN"!==e.num.value)),0===r.length)return"OnlyNanData";const i=r;return r=t.encodings.slice.outerRadius&&!e.donut.showAsDonut?r.filter((e=>e.num.value>0&&e.radius.value>0)):r.filter((e=>e.num.value>0)),0===r.length?"OnlyNegativeOrZeroValues":i.length!==r.length&&"NegativeOrZeroValues"}(e,t),{fontFamily:o}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:o}=t,{rtl:i}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:ne[e].alignment},settings:{label:o.get("Object.Disclaimer."+e),rtl:i},style:r}}(r,t,n,{fontFamily:o})}function Fb({layout:e,context:t,selectionService:n},r={}){const o=function({layout:e}={},t={}){const n={};return Q(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&Q(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),i={scales:o};let a=[];const s=zb({layout:e},r,t);if(s&&"center"===s.layout.dock)return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",rtl:t.rtl},{navigationDisabled:l});return o.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(o.fillRange.invert=!0),a=[ub({layout:e,settings:i},r),db({layout:e},r),pb(r),fb({layout:e},r),qb({layout:e},r,t),...c.components,ob({settings:i,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),{key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}},{key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}},Cb({layout:{components:e.components,dataPoint:Q({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),(!1!==e.showDisclaimer||!r.flags.isEnabled("SHOW_DISCLAIMER"))&&s],a=a.filter((e=>!1!==e)),{interactions:Ab(n,r,t),scales:o,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:Ob({settings:i},r),strategy:ae(0,r)}}function Wb({instance:e,services:t}){const n=u(),r=b();R((o=>{if(!(r.snapshotData&&r.snapshotData.content&&r.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(o,n),e&&t))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:le(t,"legend-cat"),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:o,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),N((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:le(e.chart,"legend-cat")})})),[e])}const Hb={setValue(e,t,n){if(!t)return;const r=t.split(".");let o=e;const i=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==o[r[a]]&&(o[r[a]]=Number.isNaN(+r[a+1])?{}:[]),o=o[r[a]];void 0!==n?o[i]=n:delete o[i]},getValue(e,t,n){const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(null==i[r[o]])return n;i=i[r[o]]}return i}},Bb={getDimensions:e=>Hb.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>Hb.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>Hb.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>Hb.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=Hb.getValue(e,t?t+".qHyperCube":"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=Hb.getValue(e,t?t+".qHyperCube":"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const $b={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>Bb.getNumMeasures(e)>=1},showLegend:e=>{const t=Hb.getValue(e,"color.auto"),n=Hb.getValue(e,"color.expressionIsColor"),r=Hb.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!Hb.getValue(e,"color.auto")&&"byDimension"===Hb.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===Hb.getValue(e,"color.useDimColVal")&&Hb.setValue(e,"color.useDimColVal",!1),!Hb.getValue(e,"color.auto")&&"byDimension"===Hb.getValue(e,"color.mode")&&"libraryItem"===Hb.getValue(e,"color.byDimDef.type"))},jb=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:o}=$b;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!Hb.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:o,showTitle:{show(e){const t=Hb.getValue(e,"color.auto");return Hb.getValue(e,"legend.show")&&o(e)&&(t||!function(e){return"byExpression"===Hb.getValue(e,"color.mode")&&!0===Hb.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>Hb.getValue(e,"legend.show")&&o(e)}}};function Vb(e){return new jb(e)}const Ub={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},_b={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"slices",ref:"components",defaultValues:{key:"slices",style:{strokeColor:{index:-1,color:"#FFFFFF"},strokeWidth:"none",cornerRadius:0,innerRadius:.55}},items:{slices:{components:"items",type:"items",uses:"styling.slice",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},cornerRadius:{component:"slider",min:0,max:40,step:.05,defaultValue:0,show:!0},innerRadius:{component:"slider",min:.05,max:.75,step:.01,defaultValue:.55,show:(e,t,n)=>n.layout.donut.showAsDonut}}}}},Yb=e=>({component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}}),Kb=Vb("hard");const Xb=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(F(e,"color.mode","byDimension"),F(e,"color.byDimDef.activeDimensionIndex",0),F(e,"color.persistent",!1))},Gb=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},Zb=e=>{const{flags:t,translator:n}=e||{},r=null==t?void 0:t.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),o={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?n.get("Simple.Color.Auto",n.get("properties.colorMode.byDimension")):n.get("Common.Custom")},change:Xb},colorMode:{options:Gb}}}}},i={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||F(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,o){o.dimensionTitle=!e}}}}}}};return{uses:"settings",items:{simpleStyling:null!=t&&t.isEnabled("PIECHART_SIMPLE_STYLING")?Ub:void 0,simpleLabels:i,general:{items:{showDisclaimer:null!=t&&t.isEnabled("SHOW_DISCLAIMER")?{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}:void 0}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:null!=t&&t.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_PIECHART")?Yb(r):_b,showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:Kb.color.colorMode.options},persistentColors:{show:Kb.color.persistentColors.show}}},simpleColors:o,legend:{show:Kb.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:Kb.legend.showTitle.show},dock:{show:Kb.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}}},Jb={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},Qb={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},ex={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function tx(e){return{type:"items",component:"accordion",items:{data:Jb,sorting:Qb,addons:ex,settings:Zb(e)}}}const nx=Vb("explore"),rx=tx();var ox={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:rx.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:rx.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:nx.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&nx.color.useDimColVal.show(e))}}}}}}};const ix="slices";function ax(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function sx(e){return e.data.num.label}function lx(e){return e.data.radius.label}function cx(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?sx:ax;if("share"===e.dataPoint.labelMode)return ax;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?lx:sx;return sx}(n,r)(e,t)}function ux(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=n.substr(0,t-3)+"..."),n}(e.data.label,20):"",t}class dx{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const o=e.find(".effectLayer");o.length>0&&o.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),o=n.map((n=>{const{start:o,end:i,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(o+i)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),p=c.top-r.top+l.y*(s.y-a*Math.cos(u)),f=Math.cos(u)>0?"top":"bottom",h=Math.sin(u)>0?"right":"left";return{title:ux(n),label:cx(n,this.chart.formatter,e,t),orientation:`${f}${h}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,o)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=Q(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=Q(e.options,{effect:null}),n?t.getProperties().then((e=>Q(e,{effectPath:null,effectProperties:null,dataPoint:Q(!0,{},e.originalModelSettings.dataPoint),legend:Q(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class px extends dx{init(e,t,n,r){return e.options=Q(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(ix).data.items,n=e.effectProperties.min,r=e.effectProperties.max,o=[];let i=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const o=e.num.value;n&&o<i[0]&&(i=[o,t]),r&&o>a[0]&&(a=[o,t])})),-1!==i[1]&&o.push(t[i[1]].value),-1!==a[1]&&o.push(t[a[1]].value),o.length&&this.chart.brush("highlight").setValues(o.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class fx extends dx{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(ix).data.items.map((e=>e.value)).indexOf(n.data.value);-1!==r&&(this.selectedIndex=r,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(ix).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===ix)).map(((n,r)=>{const o=cx(n,this.chart.formatter,e,t);return{text:`${ux(n)} (${o})`,value:r}}))}init(e,t,n,r){return e.options=Q(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const hx="/effects/highlight-value",mx="/effects/maxmin";var gx={isCompatible:({effectPath:e})=>e===mx||e===hx,create:e=>e.effectPath===mx?new px(e):e.effectPath===hx?new fx(e):null};function vx(e){const t={},{components:n,tooltip:r}=e,o=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(o&&o.style&&Object.keys(o.style).forEach((e=>{t["chart_style_"+e]=o.style[e]})),r){var i,a;t.chart_tooltip_custom=!r.auto;const e=null===(i=r.chart)||void 0===i||null===(a=i.object)||void 0===a?void 0:a.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function yx(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function bx(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function xx({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){bx(e),yx(t),_y.addCallbackCustomTooltip(t)},move(e,t){bx(e),yx(t),_y.moveCallbackCustomTooltip(t,e)},remove(e,t){_y.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){bx(e),yx(r),_y.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){yx(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const wx=e=>e.qMax<=0,Ex=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(wx));function Cx(e){return{definition:tx(e),softDefinition:ox,support:{snapshot:Ex,export:Ex,exportData:!0,sharing:Ex,viewData:!0,effects:!0},effects:gx,extendMetrics:vx,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:xx(e),defaultPropertyValues:a,hypercubePath:o});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function kx(e){return{properties:{version:"1.23.0",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:sb.STROKE.COLOR},cornerRadius:sb.CORNER_RADIUS,innerRadius:sb.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[xx(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const o=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:xx(e),hypercubePath:r});return o.qProperty.dataPoint&&!1===o.qProperty.dataPoint.show&&delete o.qProperty.dataPoint.show,o},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}e("default",(e=>{const{flags:t}=e;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(H).forEach((t=>{e.add(H[t])}))}}(e.translator);const n=Ny();return{qae:kx(e),ext:Cx(e),component(){const e=function({picasso:e}){var t;const n=c(),r=u(),o=d(),[i,a]=p(),s=Ly(),l=f(),v=h(),y=!(null===(t=l.qSelectionInfo)||void 0===t||!t.qInSelections),[b,x]=p(!1);return s.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:o}){var i,a,s;return{active:n,label:o.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(i=e.qHyperCube)||void 0===i||null===(a=i.qDimensionInfo)||void 0===a||null===(s=a[0])||void 0===s||!s.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:l,isInSelections:y,isLassoActionActive:b,setIsLassoActionActive:x,translator:v}),m((()=>(i&&(i.interactions.lasso.active=()=>b),{...s.lasso})),[i,b,y,v.language()]),g((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),i=t.chart({element:r,data:[],settings:{}}),c=P({chart:i,actions:s,selections:o,config:{selectionActions:!1}});c.setLayout(l),c.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const u=D({legendScrollOffset:0,rotation:0});u.intercept("rotation",(e=>(u.get("rotation")+e)%(2*Math.PI))),u.onChanged("rotation",(()=>{i.update({partialData:!0})}));const d=M();return s.on("selections-start",(()=>{i.brush("selection").start()})),a({picasso:t,chart:i,selectionService:c,viewState:u,viewCache:d,interactions:s}),()=>{c.destroy(),i.destroy(),s.removeAllListeners(),delete s.select,u.intercept("rotation",void 0),u.onChanged("rotation",void 0)}}),[]),i}({picasso:n}),o=function({flags:e,picasso:t,instance:n}){const r=v(),o=y(),i=h(),a=u(),[s,l]=p(),d=b(),f=x(),m=w(),S=c(),T=E(),{qLocaleInfo:R}=C(),N=k();return g((()=>{if(!n)return;a.style.overflow="hidden";const s=A({picasso:n.picasso,model:r,app:o,translator:i,config:{auto:!1,key:"fill"}}),c=O({picassoInstance:n.picasso,plugins:f,pluginArgs:nb(d)}),u=tb({flags:e,layout:d,app:o,model:r,picasso:t,chart:n.chart,translator:i,localeInfo:R,embed:N,options:S}),p=q({theme:T,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),h=rb({app:o,chart:n.chart,translator:i,layout:d,constraints:m,options:S,themeService:p,colorService:s,custom:u});l({colorService:s,pluginService:c,themeService:p,tooltipService:h})}),[r,o,n,d,i.language(),m,S.direction,T.name()]),s}({flags:t,picasso:n,instance:e});!function({instance:e,services:t,picasso:n,flags:o}){const i=c(),a=v(),s=y(),l=h(),u=E(),p=b(),f=d(),m=w(),{qLocaleInfo:x}=C(),[k]=S((()=>t?(Qy.attrExpr.updateProperties(a,p),Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:u,legendProps:p.legend,layout:p,localeInfo:x,hc:p.qHyperCube,colorProps:{...p.color,useBaseColors:e(p)}})}),a&&!p.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])):Promise.resolve()),[t]);g((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(p)}),[p]),g((()=>{if(!e||!k)return;const{chart:c,viewState:d,interactions:h,viewCache:g}=e,{colorService:v,pluginService:y,themeService:b,tooltipService:w}=t,E=i.viewState||{};p.snapshotData||(d.preventSet("legendScrollOffset",E.legendScrollOffset||0),d.preventSet("rotation",E.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(p,d),w.expando.set("properties",k[1]);const C=n.data("q")({key:"qHyperCube",data:p.qHyperCube,config:{localeInfo:x}}),S=[{type:"q",key:"qHyperCube",data:p.qHyperCube,config:{localeInfo:x}},...v.getData()],T={slice:{arc:"qMeasureInfo/0"}};p.qHyperCube.qMeasureInfo.length>1&&(T.slice.outerRadius="qMeasureInfo/1");const R=function(e,t){return t.slice.outerRadius?e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length:e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(n.data("q")({data:p.qHyperCube,config:{localeInfo:x}}),T),N=f?()=>{const e=c.brush("selection");r.selections(e,{},p).forEach((e=>{f.select(e)}))}:()=>{},P=p.snapshotData&&!i.freeResize?{width:(p.snapshotData.content.size||p.snapshotData.object.size).w,height:(p.snapshotData.content.size||p.snapshotData.object.size).h}:void 0,D=t=>e.selectionService.getIsSelectionLocked(t),M=()=>Fb({layout:p,context:{rtl:"rtl"===i.direction,theme:u,translator:l,constraints:m,model:a},selectionService:e.selectionService},{picasso:n,ds:C,model:a,app:s,chart:c,onSelect:N,isLocked:D,interactions:h,constraints:m,translator:l,viewState:d,dataRowCount:R,encodings:T,colorService:v,pluginService:y,themeService:b,tooltipService:w,debouncer:z,properties:k[1],logicalSize:P,flags:o,animations:{enabled:()=>function({viewState:e,options:t,constraints:n,viewCache:r,chart:o}){return!1!==t.chartAnimations&&!n.active&&r.get("chartWidth")===o.element.clientWidth&&r.get("chartHeight")===o.element.clientHeight&&r.get("hasZeroLine")===!!o.component("zeroLine")&&0===e.get("rotation")}({viewState:d,options:i,constraints:m,viewCache:g,chart:c})}});e.generateSettings=M;const L=M();c.update({data:S,settings:L}),g.set("chartWidth",c.element.clientWidth),g.set("chartHeight",c.element.clientHeight),g.set("hasZeroLine",L.components.filter((e=>"zeroLine"===e.key)).length>0),i.effect&&p.effectProperties?i.effect.update(p,c,{encodings:T}):p.effectPath||c.brush("highlight").end()}),[e,k,i.direction,i.effectProperties,m,u.name(),l.language()])}({instance:e,services:o,picasso:n,flags:t}),function({instance:e}){const t=b(),n=c(),r=T();g((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:o,generateSettings:i}=e;o.update({settings:i()}),r.set("chartWidth",o.element.clientWidth),r.set("chartHeight",o.element.clientHeight),n.effect&&n.effect.update(t,o)}),[r.width,r.height])}({instance:e}),Wb({instance:e,services:o})}}}))}}}));