@nebula.js/sn-pie-chart 1.26.9 → 1.26.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-pie-chart.js +7 -7
- package/dist/sn-pie-chart.systemjs.js +3 -3
- package/package.json +1 -1
- package/sn-pie-chart-ext/dist/sn-pie-chart.js +7 -7
- package/sn-pie-chart-ext/sn-pie-chart.qext +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pie-chart v1.26.
|
|
2
|
+
* @nebula.js/sn-pie-chart v1.26.11
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules","react","react-dom","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,i,o,a,s,l,u,c,d,p,h,f,m,g,y,v,b,x,w,S,C,E,k,T,R,D,M,q,P,N,L,I,A,O,z,j,F,H,$,_;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){i=e.getValue,o=e.setValue,a=e.selectionService,s=e.storage,l=e.cache,u=e.tooltipService,c=e.colorService,d=e.pluginService,p=e.themeService,h=e.debouncer,f=e.fontResolver},function(e){m=e.default,g=e,y=e.Children,v=e.isValidElement,b=e.cloneElement},function(e){x=e,w=e.default},function(e){S=e.useOptions,C=e.useElement,E=e.useSelections,k=e.useState,T=e.useLayout,R=e.useTranslator,D=e.useAction,M=e.useEffect,q=e.useModel,P=e.useApp,N=e.useStaleLayout,L=e.usePlugins,I=e.useConstraints,A=e.useTheme,O=e.useAppLayout,z=e.useEmbed,j=e.usePromise,F=e.useRect,H=e.onTakeSnapshot,$=e.useImperativeHandle},function(e){_=e.default}],execute:function(){var U={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 V={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function W(e){return V[e]||e}function B(e){return function(t,n,r){let i,o,a,s,l=[],u=!0;function c(){"function"==typeof i.enable&&(i.enable=i.enable.bind(o)()),i.enable&&(i.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(o));const n=W(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(o),a.on(e,t.events[e])})),l.push(t))})),i.gestures.forEach((t=>{const n=W(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,i=e,o={chart:t,mediator:n,settings:i},i.gestures=i.gestures||[],void 0===i.enable&&(i.enable=!0)}(e),d(),u&&c()},off(){u=!1,d()},on(){u=!0,0===l.length&&c()},destroy(){d(),a&&a.destroy(),a=null,o=null,i=null}}}}function Y(){return Y=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},Y.apply(this,arguments)}function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var G=Object.prototype.hasOwnProperty,J=Object.prototype.toString,Z=Object.defineProperty,X=Object.getOwnPropertyDescriptor,Q=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===J.call(e)},ee=function(e){if(!e||"[object Object]"!==J.call(e))return!1;var t,n=G.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&G.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||G.call(e,t)},te=function(e,t){Z&&"__proto__"===t.name?Z(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ne=function(e,t){if("__proto__"===t){if(!G.call(e,t))return;if(X)return X(e,t).value}return e[t]},re=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=ne(s,n),s!==(i=ne(t,n))&&(c&&i&&(ee(i)||(o=Q(i)))?(o?(o=!1,a=r&&Q(r)?r:[]):a=r&&ee(r)?r:{},te(s,{name:n,newValue:e(c,a,i)})):void 0!==i&&te(s,{name:n,newValue:i}));return s},ie=K(re);const oe="center",ae="bottom";var se={NoDataExist:{label:"NoDataExist",alignment:oe,default:!0},OnlyNanData:{label:"OnlyNanData",alignment:oe,default:!0},OnlyNegativeOrZeroValues:{label:"OnlyNegativeOrZeroValues",alignment:oe,default:!1},LimitedData:{label:"LimitedData",alignment:ae,default:!1},OnlyNanColor:{label:"OnlyNanColor",alignment:ae,default:!1},NegativeOrZeroValues:{label:"NegativeOrZeroValues",alignment:ae,default:!1},DataRangeIncludingZero:{label:"DataRangeIncludingZero",alignment:ae,default:!1}};const le=[["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}]],ue={};le.forEach((([e,{width:t,height:n}])=>{ue[e]={width:t,height:n}}));const ce={getLayoutModes:()=>ue,getLayoutMode(e,t){let n;for(n=0;n<le.length;++n)if(e>=le[n][1].width&&t>=le[n][1].height)return le[n][0];return"SPARK"}};function de(e,t){return{layoutModes:ce.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 pe=/^[A-Z][A-z0-9_]*$/i,he={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),i=r[r.length-1];let o,a=e;for(o=0;o<r.length-1;++o)void 0===a[r[o]]&&(a[r[o]]=Number.isNaN(+r[o+1])?{}:[]),a=a[r[o]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(void 0===o[r[i]])return n;o=o[r[i]]}return o},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||pe.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)};function fe(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const me=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),ge=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),ye=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),ve={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>me.test(e),isRtlChar:e=>ge.test(e)||ye.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],ve.isLtrChar(r))return"ltr";if(ve.isRtlChar(r))return"rtl"}return"ltr"}},be={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,i=e.resources.formatter,o=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=i("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=o(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?be.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=ve.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=ve.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:ve.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=ve.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=ve.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,be.getColorSymbol(e,t)]:[be.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:o,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,i=!1){const o=ve.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=ve.detectTextDirection(e.value);let l;return l=i?r?[e.value,be.getColorSymbol(t,n)]:[be.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:o}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function xe(e){const t=parseInt(e,10);if(!isNaN(t))return t}const we=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Se(e,t){const n=e.styleService.label.value.getStyle();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=n.themeService.getStyles(),i=n.styleService.label.value.getStyle(),o=i.fill===r.label.value.color;return{position:e.position,justify:e.justify,fill:o&&!e.onBackground?we(t):i.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:xe(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function Ce(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ee(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ke(){}var Te=.7,Re=1/Te,De="\\s*([+-]?\\d+)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pe=/^#([0-9a-f]{3,8})$/,Ne=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),Le=new RegExp(`^rgb\\(${qe},${qe},${qe}\\)$`),Ie=new RegExp(`^rgba\\(${De},${De},${De},${Me}\\)$`),Ae=new RegExp(`^rgba\\(${qe},${qe},${qe},${Me}\\)$`),Oe=new RegExp(`^hsl\\(${Me},${qe},${qe}\\)$`),ze=new RegExp(`^hsla\\(${Me},${qe},${qe},${Me}\\)$`),je={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 Fe(){return this.rgb().formatHex()}function He(){return this.rgb().formatRgb()}function $e(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Pe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_e(t):3===n?new We(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ue(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=Ne.exec(e))?new We(t[1],t[2],t[3],1):(t=Le.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ie.exec(e))?Ue(t[1],t[2],t[3],t[4]):(t=Ae.exec(e))?Ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oe.exec(e))?Ze(t[1],t[2]/100,t[3]/100,1):(t=ze.exec(e))?Ze(t[1],t[2]/100,t[3]/100,t[4]):je.hasOwnProperty(e)?_e(je[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function _e(e){return new We(e>>16&255,e>>8&255,255&e,1)}function Ue(e,t,n,r){return r<=0&&(e=t=n=NaN),new We(e,t,n,r)}function Ve(e){return e instanceof ke||(e=$e(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 Be(){return`#${Je(this.r)}${Je(this.g)}${Je(this.b)}`}function Ye(){const e=Ke(this.opacity);return`${1===e?"rgb(":"rgba("}${Ge(this.r)}, ${Ge(this.g)}, ${Ge(this.b)}${1===e?")":`, ${e})`}`}function Ke(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ge(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Je(e){return((e=Ge(e))<16?"0":"")+e.toString(16)}function Ze(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qe(e,t,n,r)}function Xe(e){if(e instanceof Qe)return new Qe(e.h,e.s,e.l,e.opacity);if(e instanceof ke||(e=$e(e)),!e)return new Qe;if(e instanceof Qe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Qe(a,s,l,e.opacity)}function Qe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function et(e){return(e=(e||0)%360)<0?e+360:e}function tt(e){return Math.max(0,Math.min(1,e||0))}function nt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ce(ke,$e,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fe,formatHex:Fe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:He,toString:He}),Ce(We,(function(e,t,n,r){return 1===arguments.length?Ve(e):new We(e,t,n,null==r?1:r)}),Ee(ke,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Te:Math.pow(Te,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(Ge(this.r),Ge(this.g),Ge(this.b),Ke(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:Be,formatHex:Be,formatHex8:function(){return`#${Je(this.r)}${Je(this.g)}${Je(this.b)}${Je(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ye,toString:Ye})),Ce(Qe,(function(e,t,n,r){return 1===arguments.length?Xe(e):new Qe(e,t,n,null==r?1:r)}),Ee(ke,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new Qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Te:Math.pow(Te,e),new Qe(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,i=2*n-r;return new We(nt(e>=240?e-240:e+120,i,r),nt(e,i,r),nt(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Qe(et(this.h),tt(this.s),tt(this.l),Ke(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=Ke(this.opacity);return`${1===e?"hsl(":"hsla("}${et(this.h)}, ${100*tt(this.s)}%, ${100*tt(this.l)}%${1===e?")":`, ${e})`}`}}));const rt=Math.PI/180,it=180/Math.PI,ot=.96422,at=1,st=.82521,lt=4/29,ut=6/29,ct=3*ut*ut,dt=ut*ut*ut;function pt(e){if(e instanceof ht)return new ht(e.l,e.a,e.b,e.opacity);if(e instanceof bt)return xt(e);e instanceof We||(e=Ve(e));var t,n,r=yt(e.r),i=yt(e.g),o=yt(e.b),a=ft((.2225045*r+.7168786*i+.0606169*o)/at);return r===i&&i===o?t=n=a:(t=ft((.4360747*r+.3850649*i+.1430804*o)/ot),n=ft((.0139322*r+.0971045*i+.7141733*o)/st)),new ht(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ht(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ft(e){return e>dt?Math.pow(e,1/3):e/ct+lt}function mt(e){return e>ut?e*e*e:ct*(e-lt)}function gt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof bt)return new bt(e.h,e.c,e.l,e.opacity);if(e instanceof ht||(e=pt(e)),0===e.a&&0===e.b)return new bt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*it;return new bt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new bt(e,t,n,null==r?1:r)}function bt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function xt(e){if(isNaN(e.h))return new ht(e.l,0,0,e.opacity);var t=e.h*rt;return new ht(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function wt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Ce(ht,(function(e,t,n,r){return 1===arguments.length?pt(e):new ht(e,t,n,null==r?1:r)}),Ee(ke,{brighter(e){return new ht(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ht(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(gt(3.1338561*(t=ot*mt(t))-1.6168667*(e=at*mt(e))-.4906146*(n=st*mt(n))),gt(-.9787684*t+1.9161415*e+.033454*n),gt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ce(bt,vt,Ee(ke,{brighter(e){return new bt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new bt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xt(this).rgb()}})),function(e){1===e.length&&(e=function(e){return function(t,n){return wt(e(t),n)}}(e))}(wt);var St="$";function Ct(){}function Et(e,t){var n=new Ct;if(e instanceof Ct)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function kt(){}Ct.prototype=Et.prototype={constructor:Ct,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 Tt=Et.prototype;function Rt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Dt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mt(){}kt.prototype={constructor:kt,has:Tt.has,add:function(e){return this[St+(e+="")]=e,this},remove:Tt.remove,clear:Tt.clear,values:Tt.keys,size:Tt.size,empty:Tt.empty,each:Tt.each};var qt=.7,Pt=1/qt,Nt="\\s*([+-]?\\d+)\\s*",Lt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",It="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",At=/^#([0-9a-f]{3})$/,Ot=/^#([0-9a-f]{6})$/,zt=new RegExp("^rgb\\("+[Nt,Nt,Nt]+"\\)$"),jt=new RegExp("^rgb\\("+[It,It,It]+"\\)$"),Ft=new RegExp("^rgba\\("+[Nt,Nt,Nt,Lt]+"\\)$"),Ht=new RegExp("^rgba\\("+[It,It,It,Lt]+"\\)$"),$t=new RegExp("^hsl\\("+[Lt,It,It]+"\\)$"),_t=new RegExp("^hsla\\("+[Lt,It,It,Lt]+"\\)$"),Ut={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 Vt(e){var t;return e=(e+"").trim().toLowerCase(),(t=At.exec(e))?new Gt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Ot.exec(e))?Wt(parseInt(t[1],16)):(t=zt.exec(e))?new Gt(t[1],t[2],t[3],1):(t=jt.exec(e))?new Gt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ft.exec(e))?Bt(t[1],t[2],t[3],t[4]):(t=Ht.exec(e))?Bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$t.exec(e))?Zt(t[1],t[2]/100,t[3]/100,1):(t=_t.exec(e))?Zt(t[1],t[2]/100,t[3]/100,t[4]):Ut.hasOwnProperty(e)?Wt(Ut[e]):"transparent"===e?new Gt(NaN,NaN,NaN,0):null}function Wt(e){return new Gt(e>>16&255,e>>8&255,255&e,1)}function Bt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Gt(e,t,n,r)}function Yt(e){return e instanceof Mt||(e=Vt(e)),e?new Gt((e=e.rgb()).r,e.g,e.b,e.opacity):new Gt}function Kt(e,t,n,r){return 1===arguments.length?Yt(e):new Gt(e,t,n,null==r?1:r)}function Gt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Jt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Zt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xt(e,t,n,r)}function Xt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Qt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Rt(Mt,Vt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Rt(Gt,Kt,Dt(Mt,{brighter:function(e){return e=null==e?Pt:Math.pow(Pt,e),new Gt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?qt:Math.pow(qt,e),new Gt(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"#"+Jt(this.r)+Jt(this.g)+Jt(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+")")}})),Rt(Xt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Xt)return new Xt(e.h,e.s,e.l,e.opacity);if(e instanceof Mt||(e=Vt(e)),!e)return new Xt;if(e instanceof Xt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Xt(a,s,l,e.opacity)}(e):new Xt(e,t,n,null==r?1:r)}),Dt(Mt,{brighter:function(e){return e=null==e?Pt:Math.pow(Pt,e),new Xt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?qt:Math.pow(qt,e),new Xt(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,i=2*n-r;return new Gt(Qt(e>=240?e-240:e+120,i,r),Qt(e,i,r),Qt(e<120?e+240:e-120,i,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 en=Math.PI/180,tn=180/Math.PI,nn=.96422,rn=1,on=.82521,an=4/29,sn=6/29,ln=3*sn*sn,un=sn*sn*sn;function cn(e){if(e instanceof dn)return new dn(e.l,e.a,e.b,e.opacity);if(e instanceof gn){if(isNaN(e.h))return new dn(e.l,0,0,e.opacity);var t=e.h*en;return new dn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Gt||(e=Yt(e));var n,r,i=mn(e.r),o=mn(e.g),a=mn(e.b),s=pn((.2225045*i+.7168786*o+.0606169*a)/rn);return i===o&&o===a?n=r=s:(n=pn((.4360747*i+.3850649*o+.1430804*a)/nn),r=pn((.0139322*i+.0971045*o+.7141733*a)/on)),new dn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function dn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function pn(e){return e>un?Math.pow(e,1/3):e/ln+an}function hn(e){return e>sn?e*e*e:ln*(e-an)}function fn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Rt(dn,(function(e,t,n,r){return 1===arguments.length?cn(e):new dn(e,t,n,null==r?1:r)}),Dt(Mt,{brighter:function(e){return new dn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new dn(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 Gt(fn(3.1338561*(t=nn*hn(t))-1.6168667*(e=rn*hn(e))-.4906146*(n=on*hn(n))),fn(-.9787684*t+1.9161415*e+.033454*n),fn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Rt(gn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof gn)return new gn(e.h,e.c,e.l,e.opacity);if(e instanceof dn||(e=cn(e)),0===e.a&&0===e.b)return new gn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tn;return new gn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new gn(e,t,n,null==r?1:r)}),Dt(Mt,{brighter:function(e){return new gn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new gn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return cn(this).rgb()}}));var yn=-.14861,vn=1.78277,bn=-.29227,xn=-.90649,wn=1.97294,Sn=wn*xn,Cn=wn*vn,En=vn*bn-xn*yn;function kn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Tn)return new Tn(e.h,e.s,e.l,e.opacity);e instanceof Gt||(e=Yt(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(En*r+Sn*t-Cn*n)/(En+Sn-Cn),o=r-i,a=(wn*(n-i)-bn*o)/xn,s=Math.sqrt(a*a+o*o)/(wn*i*(1-i)),l=s?Math.atan2(a,o)*tn-120:NaN;return new Tn(l<0?l+360:l,s,i,e.opacity)}(e):new Tn(e,t,n,null==r?1:r)}function Tn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Rn(e){return function(){return e}}function Dn(e,t){return function(n){return e+n*t}}function Mn(e){return 1==(e=+e)?qn: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):Rn(isNaN(t)?n:t)}}function qn(e,t){var n=t-e;return n?Dn(e,n):Rn(isNaN(e)?t:e)}function Pn(e){return function t(n){function r(t,r){var i=e((t=kn(t)).h,(r=kn(r)).h),o=qn(t.s,r.s),a=qn(t.l,r.l),s=qn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function Nn(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)]}Rt(Tn,kn,Dt(Mt,{brighter:function(e){return e=null==e?Pt:Math.pow(Pt,e),new Tn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?qt:Math.pow(qt,e),new Tn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*en,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Gt(255*(t+n*(yn*r+vn*i)),255*(t+n*(bn*r+xn*i)),255*(t+n*(wn*r)),this.opacity)}})),function e(t){var n=Mn(t);function r(e,t){var r=n((e=Kt(e)).r,(t=Kt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=qn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),Pn((function(e,t){var n=t-e;return n?Dn(e,n>180||n<-180?n-360*Math.round(n/360):n):Rn(isNaN(e)?t:e)})),Pn(qn);var Ln,In=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function An(e){return new On(e)}function On(e){if(!(t=In.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 zn(e,t){var n=Nn(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}An.prototype=On.prototype,On.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 jn={"%":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 zn(100*e,t)},r:zn,s:function(e,t){var n=Nn(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Ln=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Nn(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Fn(e){return e}var Hn,$n=["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 i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):Fn,i=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):Fn,s=e.percent||"%";function l(e){var t=(e=An(e)).fill,n=e.align,l=e.sign,u=e.symbol,c=e.zero,d=e.width,p=e.comma,h=e.precision,f=e.trim,m=e.type;"n"===m?(p=!0,m="g"):jn[m]||(null==h&&(h=12),f=!0,m="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var g="$"===u?i[0]:"#"===u&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===u?i[1]:/[%p]/.test(m)?s:"",v=jn[m],b=/[defgprs%]/.test(m);function x(e){var i,s,u,x=g,w=y;if("c"===m)w=v(e)+w,e="";else{var S=(e=+e)<0;if(e=v(Math.abs(e),h),f&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(i>0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&(S=!1),x=(S?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===m?$n[8+Ln/3]:"")+w+(S&&"("===l?")":""),b)for(i=-1,s=e.length;++i<s;)if(48>(u=e.charCodeAt(i))||u>57){w=(46===u?o+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i);break}}p&&!c&&(e=r(e,1/0));var C=x.length+e.length+w.length,E=C<d?new Array(d-C+1).join(t):"";switch(p&&c&&(e=r(E+e,E.length?d-w.length:1/0),E=""),n){case"<":e=x+e+w+E;break;case"=":e=x+E+e+w;break;case"^":e=E.slice(0,C=E.length>>1)+x+e+w+E.slice(C);break;default:e=E+x+e+w}return a(e)}return h=null==h?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=An(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=Nn(Math.abs(e)))?e[1]:NaN}(t)/3))),i=Math.pow(10,-r),o=$n[8+r/3];return function(e){return n(i*e)+o}}}}!function(e){Hn=_n(e),Hn.format,Hn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Un=new Date,Vn=new Date;function Wn(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Wn((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&&(i.count=function(t,r){return Un.setTime(+t),Vn.setTime(+r),e(Un),e(Vn),Math.floor(n(Un,Vn))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Bn=Wn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Bn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Wn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Bn:null},Bn.range;var Yn=1e3,Kn=6e4,Gn=36e5,Jn=864e5,Zn=6048e5;Wn((function(e){e.setTime(Math.floor(e/Yn)*Yn)}),(function(e,t){e.setTime(+e+t*Yn)}),(function(e,t){return(t-e)/Yn}),(function(e){return e.getUTCSeconds()})).range,Wn((function(e){e.setTime(Math.floor(e/Kn)*Kn)}),(function(e,t){e.setTime(+e+t*Kn)}),(function(e,t){return(t-e)/Kn}),(function(e){return e.getMinutes()})).range,Wn((function(e){var t=e.getTimezoneOffset()*Kn%Gn;t<0&&(t+=Gn),e.setTime(Math.floor((+e-t)/Gn)*Gn+t)}),(function(e,t){e.setTime(+e+t*Gn)}),(function(e,t){return(t-e)/Gn}),(function(e){return e.getHours()})).range;var Xn=Wn((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())*Kn)/Jn}),(function(e){return e.getDate()-1}));function Qn(e){return Wn((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())*Kn)/Zn}))}Xn.range;var er=Qn(0),tr=Qn(1),nr=Qn(2),rr=Qn(3),ir=Qn(4),or=Qn(5),ar=Qn(6);er.range,tr.range,nr.range,rr.range,ir.range,or.range,ar.range,Wn((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 sr=Wn((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()}));sr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wn((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},sr.range,Wn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Kn)}),(function(e,t){return(t-e)/Kn}),(function(e){return e.getUTCMinutes()})).range,Wn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Gn)}),(function(e,t){return(t-e)/Gn}),(function(e){return e.getUTCHours()})).range;var lr=Wn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getUTCDate()-1}));function ur(e){return Wn((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)/Zn}))}lr.range;var cr=ur(0),dr=ur(1),pr=ur(2),hr=ur(3),fr=ur(4),mr=ur(5),gr=ur(6);cr.range,dr.range,pr.range,hr.range,fr.range,mr.range,gr.range,Wn((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 yr=Wn((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 vr(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 br(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 xr(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}yr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wn((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},yr.range;var wr,Sr,Cr,Er={"-":"",_:" ",0:"0"},kr=/^\s*\d+/,Tr=/^%/,Rr=/[\\^$*+?|[\]().{}]/g;function Dr(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Mr(e){return e.replace(Rr,"\\$&")}function qr(e){return new RegExp("^(?:"+e.map(Mr).join("|")+")","i")}function Pr(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Nr(e,t,n){var r=kr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Lr(e,t,n){var r=kr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ir(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ar(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=kr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Fr(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 Hr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function $r(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _r(e,t,n){var r=kr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Vr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Br(e,t,n){var r=kr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Yr(e,t,n){var r=kr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Kr(e,t,n){var r=Tr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Gr(e,t,n){var r=kr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Jr(e,t,n){var r=kr.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Zr(e,t){return Dr(e.getDate(),t,2)}function Xr(e,t){return Dr(e.getHours(),t,2)}function Qr(e,t){return Dr(e.getHours()%12||12,t,2)}function ei(e,t){return Dr(1+Xn.count(sr(e),e),t,3)}function ti(e,t){return Dr(e.getMilliseconds(),t,3)}function ni(e,t){return ti(e,t)+"000"}function ri(e,t){return Dr(e.getMonth()+1,t,2)}function ii(e,t){return Dr(e.getMinutes(),t,2)}function oi(e,t){return Dr(e.getSeconds(),t,2)}function ai(e){var t=e.getDay();return 0===t?7:t}function si(e,t){return Dr(er.count(sr(e),e),t,2)}function li(e,t){var n=e.getDay();return e=n>=4||0===n?ir(e):ir.ceil(e),Dr(ir.count(sr(e),e)+(4===sr(e).getDay()),t,2)}function ui(e){return e.getDay()}function ci(e,t){return Dr(tr.count(sr(e),e),t,2)}function di(e,t){return Dr(e.getFullYear()%100,t,2)}function pi(e,t){return Dr(e.getFullYear()%1e4,t,4)}function hi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Dr(t/60|0,"0",2)+Dr(t%60,"0",2)}function fi(e,t){return Dr(e.getUTCDate(),t,2)}function mi(e,t){return Dr(e.getUTCHours(),t,2)}function gi(e,t){return Dr(e.getUTCHours()%12||12,t,2)}function yi(e,t){return Dr(1+lr.count(yr(e),e),t,3)}function vi(e,t){return Dr(e.getUTCMilliseconds(),t,3)}function bi(e,t){return vi(e,t)+"000"}function xi(e,t){return Dr(e.getUTCMonth()+1,t,2)}function wi(e,t){return Dr(e.getUTCMinutes(),t,2)}function Si(e,t){return Dr(e.getUTCSeconds(),t,2)}function Ci(e){var t=e.getUTCDay();return 0===t?7:t}function Ei(e,t){return Dr(cr.count(yr(e),e),t,2)}function ki(e,t){var n=e.getUTCDay();return e=n>=4||0===n?fr(e):fr.ceil(e),Dr(fr.count(yr(e),e)+(4===yr(e).getUTCDay()),t,2)}function Ti(e){return e.getUTCDay()}function Ri(e,t){return Dr(dr.count(yr(e),e),t,2)}function Di(e,t){return Dr(e.getUTCFullYear()%100,t,2)}function Mi(e,t){return Dr(e.getUTCFullYear()%1e4,t,4)}function qi(){return"+0000"}function Pi(){return"%"}function Ni(e){return+e}function Li(e){return Math.floor(+e/1e3)}!function(e){wr=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=qr(i),c=Pr(i),d=qr(o),p=Pr(o),h=qr(a),f=Pr(a),m=qr(s),g=Pr(s),y=qr(l),v=Pr(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Zr,e:Zr,f:ni,H:Xr,I:Qr,j:ei,L:ti,m:ri,M:ii,p:function(e){return i[+(e.getHours()>=12)]},Q:Ni,s:Li,S:oi,u:ai,U:si,V:li,w:ui,W:ci,x:null,X:null,y:di,Y:pi,Z:hi,"%":Pi},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:fi,e:fi,f:bi,H:mi,I:gi,j:yi,L:vi,m:xi,M:wi,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Ni,s:Li,S:Si,u:Ci,U:Ei,V:ki,w:Ti,W:Ri,x:null,X:null,y:Di,Y:Mi,Z:qi,"%":Pi},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=f[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=y.exec(t.slice(n));return r?(e.m=v[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 E(e,t,n,r)},d:$r,e:$r,f:Yr,H:Ur,I:Ur,j:_r,L:Br,m:Hr,M:Vr,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:Gr,s:Jr,S:Wr,u:Lr,U:Ir,V:Ar,w:Nr,W:Or,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:jr,Y:zr,Z:Fr,"%":Kr};function S(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Er[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,i,o=xr(1900);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=br(xr(o.y))).getUTCDay(),r=i>4||0===i?dr.ceil(r):dr(r),r=lr.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(xr(o.y))).getDay(),r=i>4||0===i?tr.ceil(r):tr(r),r=Xn.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?br(xr(o.y)).getUTCDay():t(xr(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,br(o)):t(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in Er?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),{format:function(e){var t=S(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",vr);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,br);return t.toString=function(){return e},t}}}(e),wr.format,wr.parse,Sr=wr.utcFormat,Cr=wr.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 Ii="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Sr(Ii),+new Date("2000-01-01T00:00:00.000Z")||Cr(Ii);const Ai=ie.bind(null,!0),Oi={},{isArray:zi}=Array;function ji(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Fi(e){return void 0===e}function Hi(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function $i(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,i)=>{if(i===n.length)return;r=+t;const o=isNaN(r)?{}:[];e[r||t]=Fi(e[r||t])?o:e[t],e=e[r||t]})),e}function _i(e,t){let n=!0;if(ji(e)&&ji(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{_i(e[r],t[r])||(n=!1)})),n);if(zi(e)&&zi(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!_i(e[n],t[n]))return!1;return!0}return e===t}Oi.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?Ai({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;_i(o,a)||Hi(t,i)||(Fi(a)?r.push({op:"add",path:s,value:o}):ji(o)&&ji(a)?r=r.concat(Oi.generate(a,o,s)):zi(o)&&zi(a)?r=r.concat(function(e,t,n){let r=[];const i=e.slice();let o=-1;function a(e,t,n){if(e[n]&&Fi(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(_i(t,i))return r;if(!Fi(t[0])&&Fi(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=i.length-1;e>=0;e-=1)o=a(t,i[e].qInfo&&i[e].qInfo.qId,e),-1===o?(r.push({op:"remove",path:`${n}/${e}`}),i.splice(e,1)):r=r.concat(Oi.generate(i[e],t[o],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)o=a(i,t[e].qInfo&&t[e].qInfo.qId),-1===o?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),i.splice(e,0,t[e])):o!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${o}`}),i.splice(e,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:`${n}/${i}`,value:o}))})),Object.keys(e).forEach((i=>{Fi(t[i])&&!Hi(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},Oi.apply=function(e,t){t.forEach((t=>{let n=$i(e,t.path),r=t.path.split("/").splice(-1)[0],i=r&&isNaN(+r)?n[r]:n[+r]||n;const o=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(zi(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(zi(i)&&zi(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(ji(i)&&ji(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Hi(a,e)&&delete a[e]})),Ai(i,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 i=$i(e,t.from);zi(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(zi(n)?n.splice(+r,1):delete n[r]);var a}))},Oi.clone=function(e){return Ai({},e)},Oi.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},Oi.updateObject=function(e,t){Object.keys(e).length?Oi.apply(e,Oi.generate(e,t)):Ai(e,t)};const Ui=[[2,4,6],[2,4],[3]],Vi=[,[,,[[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 Wi(e,t,n){const r=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[r-1])),e.splice(0,0,o)}function Bi(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)Wi(e[r],t,n)}!function(){let e,t;for(Bi(Ui,1,10),e=0;e<Vi.length;e++)if(Vi[e])for(t=0;t<Vi[e].length;t++)Array.isArray(Vi[e][t])&&Bi(Vi[e][t])}();var Yi={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function Ki(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...u}=t,c=ie(!0,{},{...n,qHyperCube:{...u,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=Yi;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==i(c,e)&&o(c,e,null);else{const e=t[0],n=t[1].split("].")[1];i(c,e,[]).forEach((e=>{void 0!==i(e,n)&&o(e,n,null)}))}})),c}var Gi={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:i}){return({currentNodes:o,currentRect:a,previousRect:s})=>{const l=a.x-s.x,u=a.y-s.y,c=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=c,e.x2+=c):"text"===e.type&&(e.x+=c)})),"left"!==i&&"right"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==i&&"bottom"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=c:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+c)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=u,e.y2+=u+d)}))}}},bars:{trackBy:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=Ki(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Ki(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function Ji(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}var Zi={exports:{}};function Xi(){}function Qi(){}Qi.resetWarningCache=Xi;Zi.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){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,bigint: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:Qi,resetWarningCache:Xi};return n.PropTypes=n,n}();var eo=K(Zi.exports),to={black:"#000",white:"#fff"},no={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ro={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},io={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},oo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ao={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},so={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},lo={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 uo(){return uo=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},uo.apply(this,arguments)}function co(e){return co="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},co(e)}function po(e){return e&&"object"===co(e)&&e.constructor===Object}function ho(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?uo({},e):e;return po(e)&&po(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(po(t[i])&&i in e?r[i]=ho(e[i],t[i],n):r[i]=t[i])})),r}function fo(e){var t=function(e,t){if("object"!==co(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==co(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===co(t)?t:String(t)}function mo(e,t,n){return(t=fo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function go(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function yo(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 Math.min(Math.max(t,e),n)}function vo(e){if(e.type)return e;if("#"===e.charAt(0))return vo(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(go(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function bo(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 xo(e){var t="hsl"===(e=vo(e)).type?vo(function(e){var t=(e=vo(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*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])),bo({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 wo(e,t){return e=vo(e),t=yo(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,bo(e)}function So(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Co(e,t){if(null==e)return{};var n,r,i=So(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Eo=["xs","sm","md","lg","xl"];function ko(e,t,n){var r;return uo({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),uo({paddingLeft:t(2),paddingRight:t(2)},n,mo({},e.up("sm"),uo({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},mo(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),mo(r,e.up("sm"),{minHeight:64}),r)},n)}var To={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:to.white,default:lo[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ro={text:{primary:to.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:lo[800],default:"#303030"},action:{active:to.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Do(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=vo(e),t=yo(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 bo(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=vo(e),t=yo(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 bo(e)}(e.main,o)))}function Mo(e){var t=e.primary,n=void 0===t?{light:io[300],main:io[500],dark:io[700]}:t,r=e.secondary,i=void 0===r?{light:ro.A200,main:ro.A400,dark:ro.A700}:r,o=e.error,a=void 0===o?{light:no[300],main:no[500],dark:no[700]}:o,s=e.warning,l=void 0===s?{light:so[300],main:so[500],dark:so[700]}:s,u=e.info,c=void 0===u?{light:oo[300],main:oo[500],dark:oo[700]}:u,d=e.success,p=void 0===d?{light:ao[300],main:ao[500],dark:ao[700]}:d,h=e.type,f=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=Co(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=xo(e),r=xo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Ro.text.primary)>=g?Ro.text.primary:To.text.primary;return t}var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=uo({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(go(4,t));if("string"!=typeof e.main)throw new Error(go(5,JSON.stringify(e.main)));return Do(e,"light",n,v),Do(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},S={dark:Ro,light:To};return ho(uo({common:to,type:f,primary:w(n),secondary:w(i,"A400","A200","A700"),error:w(a),warning:w(l),info:w(c),success:w(p),grey:lo,contrastThreshold:g,getContrastText:x,augmentColor:w,tonalOffset:v},S[f]),b)}function qo(e){return Math.round(1e5*e)/1e5}function Po(e){return qo(e)}var No={textTransform:"uppercase"},Lo='"Roboto", "Helvetica", "Arial", sans-serif';function Io(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?Lo:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,u=n.fontWeightRegular,c=void 0===u?400:u,d=n.fontWeightMedium,p=void 0===d?500:d,h=n.fontWeightBold,f=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=Co(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=v||function(e){return"".concat(e/g*x,"rem")},S=function(e,t,n,r,o){return uo({fontFamily:i,fontWeight:e,fontSize:w(t),lineHeight:n},i===Lo?{letterSpacing:"".concat(qo(r/t),"em")}:{},o,y)},C={h1:S(l,96,1.167,-1.5),h2:S(l,60,1.2,-.5),h3:S(c,48,1.167,0),h4:S(c,34,1.235,.25),h5:S(c,24,1.334,0),h6:S(p,20,1.6,.15),subtitle1:S(c,16,1.75,.15),subtitle2:S(p,14,1.57,.1),body1:S(c,16,1.5,.15),body2:S(c,14,1.43,.15),button:S(p,14,1.75,.4,No),caption:S(c,12,1.66,.4),overline:S(c,12,2.66,1,No)};return ho(uo({htmlFontSize:g,pxToRem:w,round:Po,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:p,fontWeightBold:f},C),b,{clone:!1})}function Ao(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var Oo=["none",Ao(0,2,1,-1,0,1,1,0,0,1,3,0),Ao(0,3,1,-2,0,2,2,0,0,1,5,0),Ao(0,3,3,-2,0,3,4,0,0,1,8,0),Ao(0,2,4,-1,0,4,5,0,0,1,10,0),Ao(0,3,5,-1,0,5,8,0,0,1,14,0),Ao(0,3,5,-1,0,6,10,0,0,1,18,0),Ao(0,4,5,-2,0,7,10,1,0,2,16,1),Ao(0,5,5,-3,0,8,10,1,0,3,14,2),Ao(0,5,6,-3,0,9,12,1,0,3,16,2),Ao(0,6,6,-3,0,10,14,1,0,4,18,3),Ao(0,6,7,-4,0,11,15,1,0,4,20,3),Ao(0,7,8,-4,0,12,17,2,0,5,22,4),Ao(0,7,8,-4,0,13,19,2,0,5,24,4),Ao(0,7,9,-4,0,14,21,2,0,5,26,4),Ao(0,8,9,-5,0,15,22,2,0,6,28,5),Ao(0,8,10,-5,0,16,24,2,0,6,30,5),Ao(0,8,11,-5,0,17,26,2,0,6,32,5),Ao(0,9,11,-5,0,18,28,2,0,7,34,6),Ao(0,9,12,-6,0,19,29,2,0,7,36,6),Ao(0,10,13,-6,0,20,31,3,0,8,38,7),Ao(0,10,13,-6,0,21,33,3,0,8,40,7),Ao(0,10,14,-6,0,22,35,3,0,8,42,7),Ao(0,11,14,-7,0,23,36,3,0,9,44,8),Ao(0,11,15,-7,0,24,38,3,0,9,46,8)],zo={borderRadius:4};function jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fo(e,t){if(e){if("string"==typeof e)return jo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jo(e,t):void 0}}function Ho(e){return function(e){if(Array.isArray(e))return jo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Fo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||Fo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var Uo={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Vo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wo(e){return"".concat(Math.round(e),"ms")}var Bo={easing:Uo,duration:Vo,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Vo.standard:n,i=t.easing,o=void 0===i?Uo.easeInOut:i,a=t.delay,s=void 0===a?0:a;return Co(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Wo(r)," ").concat(o," ").concat("string"==typeof s?s:Wo(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Yo={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ko(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,u=void 0===l?{}:l,c=Co(e,["breakpoints","mixins","palette","spacing","typography"]),d=Mo(a),p=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=Co(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function u(e,t){var r=Eo.indexOf(t);return r===Eo.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Eo[r+1]]?n[Eo[r+1]]:t)-a/100).concat(i,")")}return uo({keys:Eo,values:n,up:l,down:function(e){var t=Eo.indexOf(e)+1,r=n[Eo[t]];return t===Eo.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},s)}(n),h=_o(s),f=ho({breakpoints:p,direction:"ltr",mixins:ko(p,h,i),overrides:{},palette:d,props:{},shadows:Oo,typography:Io(d,u),spacing:h,shape:zo,transitions:Bo,zIndex:Yo},c),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return f=g.reduce((function(e,t){return ho(e,t)}),f)}var Go="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Jo=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Zo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Jo.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Go]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}function Xo(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var Qo="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},ea="object"===("undefined"==typeof window?"undefined":Qo(window))&&"object"===("undefined"==typeof document?"undefined":Qo(document))&&9===document.nodeType;function ta(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,fo(r.key),r)}}function na(e,t,n){return t&&ta(e.prototype,t),n&&ta(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ra(e,t){return ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ra(e,t)}function ia(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ra(e,t)}function oa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var aa={}.constructor;function sa(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(sa);if(e.constructor!==aa)return e;var t={};for(var n in e)t[n]=sa(e[n]);return t}function la(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=sa(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var ua=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},ca=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=ua(e[n]," ");else t=ua(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function da(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function pa(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function ha(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=da(n),l=s.linebreak,u=s.space;if(e&&o++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var h=d[p];null!=h&&(r&&(r+=l),r+=pa(p+":"+u+ca(h)+";",o))}}else for(var f in a){var m=a[f];null!=m&&(r&&(r+=l),r+=pa(f+":"+u+ca(m)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=pa(g+":"+u+ca(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),pa(""+e+u+"{"+r,--o)+pa("}",o)):r}var fa=/([[\].#*$><+~=|^:(),"'`\s])/g,ma="undefined"!=typeof CSS&&CSS.escape,ga=function(e){return ma?ma(e):e.replace(fa,"\\$1")},ya=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),va=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(oa(oa(i)),s),i.selectorText="."+ga(i.id)),i}ia(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=ca(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?uo({},e,{allowEmpty:!0}):e;return ha(this.selectorText,this.style,n)},na(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(ya),ba={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new va(e,t,n)}},xa={indent:1,children:!0},wa=/@([\w-]+)/,Sa=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(wa);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Ba(uo({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=xa);var t=da(e).linebreak;if(null==e.indent&&(e.indent=xa.indent),null==e.children&&(e.children=xa.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Ca=/@container|@media|@supports\s+/,Ea={onCreateRule:function(e,t,n){return Ca.test(e)?new Sa(e,t,n):null}},ka={indent:1,children:!0},Ta=/@keyframes\s+([\w-]+)/,Ra=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Ta);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:ga(a(this,o)),this.rules=new Ba(uo({},n,{parent:this})),t)this.rules.add(s,t[s],uo({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ka);var t=da(e).linebreak;if(null==e.indent&&(e.indent=ka.indent),null==e.children&&(e.children=ka.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Da=/@keyframes\s+/,Ma=/\$([\w-]+)/g,qa=function(e,t){return"string"==typeof e?e.replace(Ma,(function(e,n){return n in t?t[n]:e})):e},Pa=function(e,t,n){var r=e[t],i=qa(r,n);i!==r&&(e[t]=i)},Na={onCreateRule:function(e,t,n){return"string"==typeof e&&Da.test(e)?new Ra(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Pa(e,"animation-name",n.keyframes),"animation"in e&&Pa(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return qa(e,r.keyframes);default:return e}}},La=function(e){function t(){return e.apply(this,arguments)||this}return ia(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?uo({},e,{allowEmpty:!0}):e;return ha(this.key,this.style,n)},t}(ya),Ia={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new La(e,t,n):null}},Aa=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=da(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=ha(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return ha(this.at,this.style,e)},e}(),Oa=/@font-face/,za={onCreateRule:function(e,t,n){return Oa.test(e)?new Aa(e,t,n):null}},ja=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return ha(this.key,this.style,e)},e}(),Fa={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new ja(e,t,n):null}},Ha=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),$a={"@charset":!0,"@import":!0,"@namespace":!0},_a={onCreateRule:function(e,t,n){return e in $a?new Ha(e,t,n):null}},Ua=[ba,Ea,Na,Ia,za,Fa,_a],Va={process:!0},Wa={force:!0,process:!0},Ba=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=uo({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+ga(this.classes[d]));var p=la(d,t,c);if(!p)return null;this.register(p);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=uo({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof va?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ra&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof va?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ra&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Va);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,Wa)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Wa)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=da(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),Ya=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=uo({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Ba(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Ka=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Ga=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=So(t,["attached"]),i=da(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},na(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Ja=new Ga,Za="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Xa="2f1acc6c3a606b082e5eef5e54414ffb";null==Za[Xa]&&(Za[Xa]=0);var Qa=Za[Xa]++,es=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+Qa+i+t:o+n.key+"-"+Qa+(i?"-"+i:"")+"-"+t}},ts=function(e){var t;return function(){return t||(t=e()),t}},ns=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},rs=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=ca(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},is=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},os=function(e,t){return e.selectorText=t,e.selectorText===t},as=ts((function(){return document.querySelector("head")}));function ss(e){var t=Ja.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=as(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var ls=ts((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),us=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},cs=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ds=function(){function e(e){this.getPropertyValue=ns,this.setProperty=rs,this.removeProperty=is,this.setSelector=os,this.hasInsertedRules=!1,this.cssRules=[],e&&Ja.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=ls();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ss(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else as().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=cs(n,t);if(!1===(i=us(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=cs(n,t),l=us(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Ya&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ps=0,hs=function(){function e(e){this.id=ps++,this.version="10.10.0",this.plugins=new Ka,this.options={id:{minify:!1},createGenerateId:es,Renderer:ea?ds:null,plugins:[]},this.generateId=es({minify:!1});for(var t=0;t<Ua.length;t++)this.plugins.use(Ua[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=uo({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Ja.index?0:Ja.index+1);var r=new Ya(e,uo({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Ja.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=uo({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=la(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),fs=function(e){return new hs(e)},ms="object"==typeof CSS&&null!=CSS&&"number"in CSS;function gs(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=gs(r);o&&(t||(t={}),t[n]=o)}}return t}
|
|
7
|
+
System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules","react","react-dom","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,i,o,a,s,l,c,u,d,p,h,f,m,g,y,v,b,x,w,S,C,E,k,T,R,D,M,q,P,N,L,I,A,O,z,j,F,H,$,_;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){i=e.getValue,o=e.setValue,a=e.selectionService,s=e.storage,l=e.cache,c=e.tooltipService,u=e.colorService,d=e.pluginService,p=e.themeService,h=e.debouncer,f=e.fontResolver},function(e){m=e.default,g=e,y=e.Children,v=e.isValidElement,b=e.cloneElement},function(e){x=e,w=e.default},function(e){S=e.useOptions,C=e.useElement,E=e.useSelections,k=e.useState,T=e.useLayout,R=e.useTranslator,D=e.useAction,M=e.useEffect,q=e.useModel,P=e.useApp,N=e.useStaleLayout,L=e.usePlugins,I=e.useConstraints,A=e.useTheme,O=e.useAppLayout,z=e.useEmbed,j=e.usePromise,F=e.useRect,H=e.onTakeSnapshot,$=e.useImperativeHandle},function(e){_=e.default}],execute:function(){var U={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 V={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function W(e){return V[e]||e}function B(e){return function(t,n,r){let i,o,a,s,l=[],c=!0;function u(){"function"==typeof i.enable&&(i.enable=i.enable.bind(o)()),i.enable&&(i.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(o));const n=W(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(o),a.on(e,t.events[e])})),l.push(t))})),i.gestures.forEach((t=>{const n=W(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,i=e,o={chart:t,mediator:n,settings:i},i.gestures=i.gestures||[],void 0===i.enable&&(i.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,o=null,i=null}}}}function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K=Object.prototype.hasOwnProperty,G=Object.prototype.toString,J=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,X=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===G.call(e)},Q=function(e){if(!e||"[object Object]"!==G.call(e))return!1;var t,n=K.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&K.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||K.call(e,t)},ee=function(e,t){J&&"__proto__"===t.name?J(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},te=function(e,t){if("__proto__"===t){if(!K.call(e,t))return;if(Z)return Z(e,t).value}return e[t]},ne=function e(){var t,n,r,i,o,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=te(s,n),s!==(i=te(t,n))&&(u&&i&&(Q(i)||(o=X(i)))?(o?(o=!1,a=r&&X(r)?r:[]):a=r&&Q(r)?r:{},ee(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&ee(s,{name:n,newValue:i}));return s},re=Y(ne);const ie="center",oe="bottom";var ae={NoDataExist:{label:"NoDataExist",alignment:ie,default:!0},OnlyNanData:{label:"OnlyNanData",alignment:ie,default:!0},OnlyNegativeOrZeroValues:{label:"OnlyNegativeOrZeroValues",alignment:ie,default:!1},LimitedData:{label:"LimitedData",alignment:oe,default:!1},OnlyNanColor:{label:"OnlyNanColor",alignment:oe,default:!1},NegativeOrZeroValues:{label:"NegativeOrZeroValues",alignment:oe,default:!1},DataRangeIncludingZero:{label:"DataRangeIncludingZero",alignment:oe,default:!1}};const se=[["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}]],le={};se.forEach((([e,{width:t,height:n}])=>{le[e]={width:t,height:n}}));const ce={getLayoutModes:()=>le,getLayoutMode(e,t){let n;for(n=0;n<se.length;++n)if(e>=se[n][1].width&&t>=se[n][1].height)return se[n][0];return"SPARK"}};function ue(e,t){return{layoutModes:ce.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 de=/^[A-Z][A-z0-9_]*$/i,pe={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),i=r[r.length-1];let o,a=e;for(o=0;o<r.length-1;++o)void 0===a[r[o]]&&(a[r[o]]=Number.isNaN(+r[o+1])?{}:[]),a=a[r[o]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(void 0===o[r[i]])return n;o=o[r[i]]}return o},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||de.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)};function he(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const fe=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),me=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),ge=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),ye={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>fe.test(e),isRtlChar:e=>me.test(e)||ge.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],ye.isLtrChar(r))return"ltr";if(ye.isRtlChar(r))return"rtl"}return"ltr"}},ve={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,i=e.resources.formatter,o=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=i("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=o(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?ve.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=ye.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=ye.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:ye.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=ye.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=ye.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,ve.getColorSymbol(e,t)]:[ve.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:o,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,i=!1){const o=ye.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=ye.detectTextDirection(e.value);let l;return l=i?r?[e.value,ve.getColorSymbol(t,n)]:[ve.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:o}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function be(e){const t=parseInt(e,10);if(!isNaN(t))return t}const xe=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function we(e,t){const n=e.styleService.label.value.getStyle();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=n.themeService.getStyles(),i=n.styleService.label.value.getStyle(),o=i.fill===r.label.value.color;return{position:e.position,justify:e.justify,fill:o&&!e.onBackground?xe(t):i.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:be(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function Se(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ce(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ee(){}var ke=.7,Te=1/ke,Re="\\s*([+-]?\\d+)\\s*",De="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qe=/^#([0-9a-f]{3,8})$/,Pe=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Ne=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Le=new RegExp(`^rgba\\(${Re},${Re},${Re},${De}\\)$`),Ie=new RegExp(`^rgba\\(${Me},${Me},${Me},${De}\\)$`),Ae=new RegExp(`^hsl\\(${De},${Me},${Me}\\)$`),Oe=new RegExp(`^hsla\\(${De},${Me},${Me},${De}\\)$`),ze={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 je(){return this.rgb().formatHex()}function Fe(){return this.rgb().formatRgb()}function He(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$e(t):3===n?new Ve(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_e(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_e(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=Pe.exec(e))?new Ve(t[1],t[2],t[3],1):(t=Ne.exec(e))?new Ve(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Le.exec(e))?_e(t[1],t[2],t[3],t[4]):(t=Ie.exec(e))?_e(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ae.exec(e))?Je(t[1],t[2]/100,t[3]/100,1):(t=Oe.exec(e))?Je(t[1],t[2]/100,t[3]/100,t[4]):ze.hasOwnProperty(e)?$e(ze[e]):"transparent"===e?new Ve(NaN,NaN,NaN,0):null}function $e(e){return new Ve(e>>16&255,e>>8&255,255&e,1)}function _e(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ve(e,t,n,r)}function Ue(e){return e instanceof Ee||(e=He(e)),e?new Ve((e=e.rgb()).r,e.g,e.b,e.opacity):new Ve}function Ve(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function We(){return`#${Ge(this.r)}${Ge(this.g)}${Ge(this.b)}`}function Be(){const e=Ye(this.opacity);return`${1===e?"rgb(":"rgba("}${Ke(this.r)}, ${Ke(this.g)}, ${Ke(this.b)}${1===e?")":`, ${e})`}`}function Ye(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ke(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ge(e){return((e=Ke(e))<16?"0":"")+e.toString(16)}function Je(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xe(e,t,n,r)}function Ze(e){if(e instanceof Xe)return new Xe(e.h,e.s,e.l,e.opacity);if(e instanceof Ee||(e=He(e)),!e)return new Xe;if(e instanceof Xe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Xe(a,s,l,e.opacity)}function Xe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Qe(e){return(e=(e||0)%360)<0?e+360:e}function et(e){return Math.max(0,Math.min(1,e||0))}function tt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Se(Ee,He,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:je,formatHex:je,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ze(this).formatHsl()},formatRgb:Fe,toString:Fe}),Se(Ve,(function(e,t,n,r){return 1===arguments.length?Ue(e):new Ve(e,t,n,null==r?1:r)}),Ce(Ee,{brighter(e){return e=null==e?Te:Math.pow(Te,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ke:Math.pow(ke,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ve(Ke(this.r),Ke(this.g),Ke(this.b),Ye(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:We,formatHex:We,formatHex8:function(){return`#${Ge(this.r)}${Ge(this.g)}${Ge(this.b)}${Ge(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Be,toString:Be})),Se(Xe,(function(e,t,n,r){return 1===arguments.length?Ze(e):new Xe(e,t,n,null==r?1:r)}),Ce(Ee,{brighter(e){return e=null==e?Te:Math.pow(Te,e),new Xe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ke:Math.pow(ke,e),new Xe(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,i=2*n-r;return new Ve(tt(e>=240?e-240:e+120,i,r),tt(e,i,r),tt(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Xe(Qe(this.h),et(this.s),et(this.l),Ye(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=Ye(this.opacity);return`${1===e?"hsl(":"hsla("}${Qe(this.h)}, ${100*et(this.s)}%, ${100*et(this.l)}%${1===e?")":`, ${e})`}`}}));const nt=Math.PI/180,rt=180/Math.PI,it=.96422,ot=1,at=.82521,st=4/29,lt=6/29,ct=3*lt*lt,ut=lt*lt*lt;function dt(e){if(e instanceof pt)return new pt(e.l,e.a,e.b,e.opacity);if(e instanceof vt)return bt(e);e instanceof Ve||(e=Ue(e));var t,n,r=gt(e.r),i=gt(e.g),o=gt(e.b),a=ht((.2225045*r+.7168786*i+.0606169*o)/ot);return r===i&&i===o?t=n=a:(t=ht((.4360747*r+.3850649*i+.1430804*o)/it),n=ht((.0139322*r+.0971045*i+.7141733*o)/at)),new pt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function pt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ht(e){return e>ut?Math.pow(e,1/3):e/ct+st}function ft(e){return e>lt?e*e*e:ct*(e-st)}function mt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function gt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof vt)return new vt(e.h,e.c,e.l,e.opacity);if(e instanceof pt||(e=dt(e)),0===e.a&&0===e.b)return new vt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new vt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new vt(e,t,n,null==r?1:r)}function vt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function bt(e){if(isNaN(e.h))return new pt(e.l,0,0,e.opacity);var t=e.h*nt;return new pt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function xt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Se(pt,(function(e,t,n,r){return 1===arguments.length?dt(e):new pt(e,t,n,null==r?1:r)}),Ce(Ee,{brighter(e){return new pt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new pt(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 Ve(mt(3.1338561*(t=it*ft(t))-1.6168667*(e=ot*ft(e))-.4906146*(n=at*ft(n))),mt(-.9787684*t+1.9161415*e+.033454*n),mt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Se(vt,yt,Ce(Ee,{brighter(e){return new vt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new vt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return bt(this).rgb()}})),function(e){1===e.length&&(e=function(e){return function(t,n){return xt(e(t),n)}}(e))}(xt);var wt="$";function St(){}function Ct(e,t){var n=new St;if(e instanceof St)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Et(){}St.prototype=Ct.prototype={constructor:St,has:function(e){return wt+e in this},get:function(e){return this[wt+e]},set:function(e,t){return this[wt+e]=t,this},remove:function(e){var t=wt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===wt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===wt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===wt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===wt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===wt&&++e;return e},empty:function(){for(var e in this)if(e[0]===wt)return!1;return!0},each:function(e){for(var t in this)t[0]===wt&&e(this[t],t.slice(1),this)}};var kt=Ct.prototype;function Tt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Rt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Dt(){}Et.prototype={constructor:Et,has:kt.has,add:function(e){return this[wt+(e+="")]=e,this},remove:kt.remove,clear:kt.clear,values:kt.keys,size:kt.size,empty:kt.empty,each:kt.each};var Mt=.7,qt=1/Mt,Pt="\\s*([+-]?\\d+)\\s*",Nt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Lt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",It=/^#([0-9a-f]{3})$/,At=/^#([0-9a-f]{6})$/,Ot=new RegExp("^rgb\\("+[Pt,Pt,Pt]+"\\)$"),zt=new RegExp("^rgb\\("+[Lt,Lt,Lt]+"\\)$"),jt=new RegExp("^rgba\\("+[Pt,Pt,Pt,Nt]+"\\)$"),Ft=new RegExp("^rgba\\("+[Lt,Lt,Lt,Nt]+"\\)$"),Ht=new RegExp("^hsl\\("+[Nt,Lt,Lt]+"\\)$"),$t=new RegExp("^hsla\\("+[Nt,Lt,Lt,Nt]+"\\)$"),_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 Ut(e){var t;return e=(e+"").trim().toLowerCase(),(t=It.exec(e))?new Kt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=At.exec(e))?Vt(parseInt(t[1],16)):(t=Ot.exec(e))?new Kt(t[1],t[2],t[3],1):(t=zt.exec(e))?new Kt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jt.exec(e))?Wt(t[1],t[2],t[3],t[4]):(t=Ft.exec(e))?Wt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ht.exec(e))?Jt(t[1],t[2]/100,t[3]/100,1):(t=$t.exec(e))?Jt(t[1],t[2]/100,t[3]/100,t[4]):_t.hasOwnProperty(e)?Vt(_t[e]):"transparent"===e?new Kt(NaN,NaN,NaN,0):null}function Vt(e){return new Kt(e>>16&255,e>>8&255,255&e,1)}function Wt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kt(e,t,n,r)}function Bt(e){return e instanceof Dt||(e=Ut(e)),e?new Kt((e=e.rgb()).r,e.g,e.b,e.opacity):new Kt}function Yt(e,t,n,r){return 1===arguments.length?Bt(e):new Kt(e,t,n,null==r?1:r)}function Kt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Gt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Jt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Zt(e,t,n,r)}function Zt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Xt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Tt(Dt,Ut,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Tt(Kt,Yt,Rt(Dt,{brighter:function(e){return e=null==e?qt:Math.pow(qt,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Mt:Math.pow(Mt,e),new Kt(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"#"+Gt(this.r)+Gt(this.g)+Gt(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+")")}})),Tt(Zt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Zt)return new Zt(e.h,e.s,e.l,e.opacity);if(e instanceof Dt||(e=Ut(e)),!e)return new Zt;if(e instanceof Zt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Zt(a,s,l,e.opacity)}(e):new Zt(e,t,n,null==r?1:r)}),Rt(Dt,{brighter:function(e){return e=null==e?qt:Math.pow(qt,e),new Zt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Mt:Math.pow(Mt,e),new Zt(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,i=2*n-r;return new Kt(Xt(e>=240?e-240:e+120,i,r),Xt(e,i,r),Xt(e<120?e+240:e-120,i,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 Qt=Math.PI/180,en=180/Math.PI,tn=.96422,nn=1,rn=.82521,on=4/29,an=6/29,sn=3*an*an,ln=an*an*an;function cn(e){if(e instanceof un)return new un(e.l,e.a,e.b,e.opacity);if(e instanceof mn){if(isNaN(e.h))return new un(e.l,0,0,e.opacity);var t=e.h*Qt;return new un(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Kt||(e=Bt(e));var n,r,i=fn(e.r),o=fn(e.g),a=fn(e.b),s=dn((.2225045*i+.7168786*o+.0606169*a)/nn);return i===o&&o===a?n=r=s:(n=dn((.4360747*i+.3850649*o+.1430804*a)/tn),r=dn((.0139322*i+.0971045*o+.7141733*a)/rn)),new un(116*s-16,500*(n-s),200*(s-r),e.opacity)}function un(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function dn(e){return e>ln?Math.pow(e,1/3):e/sn+on}function pn(e){return e>an?e*e*e:sn*(e-on)}function hn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function mn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Tt(un,(function(e,t,n,r){return 1===arguments.length?cn(e):new un(e,t,n,null==r?1:r)}),Rt(Dt,{brighter:function(e){return new un(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new un(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 Kt(hn(3.1338561*(t=tn*pn(t))-1.6168667*(e=nn*pn(e))-.4906146*(n=rn*pn(n))),hn(-.9787684*t+1.9161415*e+.033454*n),hn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Tt(mn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof mn)return new mn(e.h,e.c,e.l,e.opacity);if(e instanceof un||(e=cn(e)),0===e.a&&0===e.b)return new mn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*en;return new mn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new mn(e,t,n,null==r?1:r)}),Rt(Dt,{brighter:function(e){return new mn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new mn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return cn(this).rgb()}}));var gn=-.14861,yn=1.78277,vn=-.29227,bn=-.90649,xn=1.97294,wn=xn*bn,Sn=xn*yn,Cn=yn*vn-bn*gn;function En(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof kn)return new kn(e.h,e.s,e.l,e.opacity);e instanceof Kt||(e=Bt(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Cn*r+wn*t-Sn*n)/(Cn+wn-Sn),o=r-i,a=(xn*(n-i)-vn*o)/bn,s=Math.sqrt(a*a+o*o)/(xn*i*(1-i)),l=s?Math.atan2(a,o)*en-120:NaN;return new kn(l<0?l+360:l,s,i,e.opacity)}(e):new kn(e,t,n,null==r?1:r)}function kn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Tn(e){return function(){return e}}function Rn(e,t){return function(n){return e+n*t}}function Dn(e){return 1==(e=+e)?Mn: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):Tn(isNaN(t)?n:t)}}function Mn(e,t){var n=t-e;return n?Rn(e,n):Tn(isNaN(e)?t:e)}function qn(e){return function t(n){function r(t,r){var i=e((t=En(t)).h,(r=En(r)).h),o=Mn(t.s,r.s),a=Mn(t.l,r.l),s=Mn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function Pn(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)]}Tt(kn,En,Rt(Dt,{brighter:function(e){return e=null==e?qt:Math.pow(qt,e),new kn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Mt:Math.pow(Mt,e),new kn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Qt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Kt(255*(t+n*(gn*r+yn*i)),255*(t+n*(vn*r+bn*i)),255*(t+n*(xn*r)),this.opacity)}})),function e(t){var n=Dn(t);function r(e,t){var r=n((e=Yt(e)).r,(t=Yt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Mn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),qn((function(e,t){var n=t-e;return n?Rn(e,n>180||n<-180?n-360*Math.round(n/360):n):Tn(isNaN(e)?t:e)})),qn(Mn);var Nn,Ln=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function In(e){return new An(e)}function An(e){if(!(t=Ln.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 On(e,t){var n=Pn(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}In.prototype=An.prototype,An.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 zn={"%":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 On(100*e,t)},r:On,s:function(e,t){var n=Pn(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Nn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Pn(e,Math.max(0,t+o-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 Fn,Hn=["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 i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):jn,i=e.currency,o=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=In(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,p=e.comma,h=e.precision,f=e.trim,m=e.type;"n"===m?(p=!0,m="g"):zn[m]||(null==h&&(h=12),f=!0,m="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?i[0]:"#"===c&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===c?i[1]:/[%p]/.test(m)?s:"",v=zn[m],b=/[defgprs%]/.test(m);function x(e){var i,s,c,x=g,w=y;if("c"===m)w=v(e)+w,e="";else{var S=(e=+e)<0;if(e=v(Math.abs(e),h),f&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(i>0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&(S=!1),x=(S?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===m?Hn[8+Nn/3]:"")+w+(S&&"("===l?")":""),b)for(i=-1,s=e.length;++i<s;)if(48>(c=e.charCodeAt(i))||c>57){w=(46===c?o+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i);break}}p&&!u&&(e=r(e,1/0));var C=x.length+e.length+w.length,E=C<d?new Array(d-C+1).join(t):"";switch(p&&u&&(e=r(E+e,E.length?d-w.length:1/0),E=""),n){case"<":e=x+e+w+E;break;case"=":e=x+E+e+w;break;case"^":e=E.slice(0,C=E.length>>1)+x+e+w+E.slice(C);break;default:e=E+x+e+w}return a(e)}return h=null==h?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=In(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=Pn(Math.abs(e)))?e[1]:NaN}(t)/3))),i=Math.pow(10,-r),o=Hn[8+r/3];return function(e){return n(i*e)+o}}}}!function(e){Fn=$n(e),Fn.format,Fn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var _n=new Date,Un=new Date;function Vn(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Vn((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&&(i.count=function(t,r){return _n.setTime(+t),Un.setTime(+r),e(_n),e(Un),Math.floor(n(_n,Un))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Wn=Vn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Wn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Vn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Wn:null},Wn.range;var Bn=1e3,Yn=6e4,Kn=36e5,Gn=864e5,Jn=6048e5;Vn((function(e){e.setTime(Math.floor(e/Bn)*Bn)}),(function(e,t){e.setTime(+e+t*Bn)}),(function(e,t){return(t-e)/Bn}),(function(e){return e.getUTCSeconds()})).range,Vn((function(e){e.setTime(Math.floor(e/Yn)*Yn)}),(function(e,t){e.setTime(+e+t*Yn)}),(function(e,t){return(t-e)/Yn}),(function(e){return e.getMinutes()})).range,Vn((function(e){var t=e.getTimezoneOffset()*Yn%Kn;t<0&&(t+=Kn),e.setTime(Math.floor((+e-t)/Kn)*Kn+t)}),(function(e,t){e.setTime(+e+t*Kn)}),(function(e,t){return(t-e)/Kn}),(function(e){return e.getHours()})).range;var Zn=Vn((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())*Yn)/Gn}),(function(e){return e.getDate()-1}));function Xn(e){return Vn((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())*Yn)/Jn}))}Zn.range;var Qn=Xn(0),er=Xn(1),tr=Xn(2),nr=Xn(3),rr=Xn(4),ir=Xn(5),or=Xn(6);Qn.range,er.range,tr.range,nr.range,rr.range,ir.range,or.range,Vn((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 ar=Vn((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()}));ar.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Vn((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},ar.range,Vn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Yn)}),(function(e,t){return(t-e)/Yn}),(function(e){return e.getUTCMinutes()})).range,Vn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Kn)}),(function(e,t){return(t-e)/Kn}),(function(e){return e.getUTCHours()})).range;var sr=Vn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Gn}),(function(e){return e.getUTCDate()-1}));function lr(e){return Vn((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)/Jn}))}sr.range;var cr=lr(0),ur=lr(1),dr=lr(2),pr=lr(3),hr=lr(4),fr=lr(5),mr=lr(6);cr.range,ur.range,dr.range,pr.range,hr.range,fr.range,mr.range,Vn((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 gr=Vn((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 yr(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 vr(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 br(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}gr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Vn((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},gr.range;var xr,wr,Sr,Cr={"-":"",_:" ",0:"0"},Er=/^\s*\d+/,kr=/^%/,Tr=/[\\^$*+?|[\]().{}]/g;function Rr(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Dr(e){return e.replace(Tr,"\\$&")}function Mr(e){return new RegExp("^(?:"+e.map(Dr).join("|")+")","i")}function qr(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Pr(e,t,n){var r=Er.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Nr(e,t,n){var r=Er.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Lr(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ir(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ar(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=Er.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=Er.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 Fr(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Hr(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function $r(e,t,n){var r=Er.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function _r(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Vr(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=Er.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Br(e,t,n){var r=Er.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yr(e,t,n){var r=kr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Kr(e,t,n){var r=Er.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Gr(e,t,n){var r=Er.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Jr(e,t){return Rr(e.getDate(),t,2)}function Zr(e,t){return Rr(e.getHours(),t,2)}function Xr(e,t){return Rr(e.getHours()%12||12,t,2)}function Qr(e,t){return Rr(1+Zn.count(ar(e),e),t,3)}function ei(e,t){return Rr(e.getMilliseconds(),t,3)}function ti(e,t){return ei(e,t)+"000"}function ni(e,t){return Rr(e.getMonth()+1,t,2)}function ri(e,t){return Rr(e.getMinutes(),t,2)}function ii(e,t){return Rr(e.getSeconds(),t,2)}function oi(e){var t=e.getDay();return 0===t?7:t}function ai(e,t){return Rr(Qn.count(ar(e),e),t,2)}function si(e,t){var n=e.getDay();return e=n>=4||0===n?rr(e):rr.ceil(e),Rr(rr.count(ar(e),e)+(4===ar(e).getDay()),t,2)}function li(e){return e.getDay()}function ci(e,t){return Rr(er.count(ar(e),e),t,2)}function ui(e,t){return Rr(e.getFullYear()%100,t,2)}function di(e,t){return Rr(e.getFullYear()%1e4,t,4)}function pi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Rr(t/60|0,"0",2)+Rr(t%60,"0",2)}function hi(e,t){return Rr(e.getUTCDate(),t,2)}function fi(e,t){return Rr(e.getUTCHours(),t,2)}function mi(e,t){return Rr(e.getUTCHours()%12||12,t,2)}function gi(e,t){return Rr(1+sr.count(gr(e),e),t,3)}function yi(e,t){return Rr(e.getUTCMilliseconds(),t,3)}function vi(e,t){return yi(e,t)+"000"}function bi(e,t){return Rr(e.getUTCMonth()+1,t,2)}function xi(e,t){return Rr(e.getUTCMinutes(),t,2)}function wi(e,t){return Rr(e.getUTCSeconds(),t,2)}function Si(e){var t=e.getUTCDay();return 0===t?7:t}function Ci(e,t){return Rr(cr.count(gr(e),e),t,2)}function Ei(e,t){var n=e.getUTCDay();return e=n>=4||0===n?hr(e):hr.ceil(e),Rr(hr.count(gr(e),e)+(4===gr(e).getUTCDay()),t,2)}function ki(e){return e.getUTCDay()}function Ti(e,t){return Rr(ur.count(gr(e),e),t,2)}function Ri(e,t){return Rr(e.getUTCFullYear()%100,t,2)}function Di(e,t){return Rr(e.getUTCFullYear()%1e4,t,4)}function Mi(){return"+0000"}function qi(){return"%"}function Pi(e){return+e}function Ni(e){return Math.floor(+e/1e3)}!function(e){xr=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Mr(i),u=qr(i),d=Mr(o),p=qr(o),h=Mr(a),f=qr(a),m=Mr(s),g=qr(s),y=Mr(l),v=qr(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Jr,e:Jr,f:ti,H:Zr,I:Xr,j:Qr,L:ei,m:ni,M:ri,p:function(e){return i[+(e.getHours()>=12)]},Q:Pi,s:Ni,S:ii,u:oi,U:ai,V:si,w:li,W:ci,x:null,X:null,y:ui,Y:di,Z:pi,"%":qi},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:hi,e:hi,f:vi,H:fi,I:mi,j:gi,L:yi,m:bi,M:xi,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Pi,s:Ni,S:wi,u:Si,U:Ci,V:Ei,w:ki,W:Ti,x:null,X:null,y:Ri,Y:Di,Z:Mi,"%":qi},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=f[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=y.exec(t.slice(n));return r?(e.m=v[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 E(e,t,n,r)},d:Hr,e:Hr,f:Br,H:_r,I:_r,j:$r,L:Wr,m:Fr,M:Ur,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:Kr,s:Gr,S:Vr,u:Nr,U:Lr,V:Ir,w:Pr,W:Ar,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:zr,Y:Or,Z:jr,"%":Yr};function S(e,t){return function(n){var r,i,o,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!=(i=Cr[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,i,o=br(1900);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=vr(br(o.y))).getUTCDay(),r=i>4||0===i?ur.ceil(r):ur(r),r=sr.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(br(o.y))).getDay(),r=i>4||0===i?er.ceil(r):er(r),r=Zn.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?vr(br(o.y)).getUTCDay():t(br(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,vr(o)):t(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in Cr?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),{format:function(e){var t=S(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",yr);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,vr);return t.toString=function(){return e},t}}}(e),xr.format,xr.parse,wr=xr.utcFormat,Sr=xr.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 Li="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||wr(Li),+new Date("2000-01-01T00:00:00.000Z")||Sr(Li);const Ii=re.bind(null,!0),Ai={},{isArray:Oi}=Array;function zi(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ji(e){return void 0===e}function Fi(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Hi(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,i)=>{if(i===n.length)return;r=+t;const o=isNaN(r)?{}:[];e[r||t]=ji(e[r||t])?o:e[t],e=e[r||t]})),e}function $i(e,t){let n=!0;if(zi(e)&&zi(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{$i(e[r],t[r])||(n=!1)})),n);if(Oi(e)&&Oi(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!$i(e[n],t[n]))return!1;return!0}return e===t}Ai.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?Ii({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;$i(o,a)||Fi(t,i)||(ji(a)?r.push({op:"add",path:s,value:o}):zi(o)&&zi(a)?r=r.concat(Ai.generate(a,o,s)):Oi(o)&&Oi(a)?r=r.concat(function(e,t,n){let r=[];const i=e.slice();let o=-1;function a(e,t,n){if(e[n]&&ji(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($i(t,i))return r;if(!ji(t[0])&&ji(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=i.length-1;e>=0;e-=1)o=a(t,i[e].qInfo&&i[e].qInfo.qId,e),-1===o?(r.push({op:"remove",path:`${n}/${e}`}),i.splice(e,1)):r=r.concat(Ai.generate(i[e],t[o],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)o=a(i,t[e].qInfo&&t[e].qInfo.qId),-1===o?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),i.splice(e,0,t[e])):o!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${o}`}),i.splice(e,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:`${n}/${i}`,value:o}))})),Object.keys(e).forEach((i=>{ji(t[i])&&!Fi(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},Ai.apply=function(e,t){t.forEach((t=>{let n=Hi(e,t.path),r=t.path.split("/").splice(-1)[0],i=r&&isNaN(+r)?n[r]:n[+r]||n;const o=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(Oi(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Oi(i)&&Oi(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(zi(i)&&zi(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Fi(a,e)&&delete a[e]})),Ii(i,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 i=Hi(e,t.from);Oi(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(Oi(n)?n.splice(+r,1):delete n[r]);var a}))},Ai.clone=function(e){return Ii({},e)},Ai.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},Ai.updateObject=function(e,t){Object.keys(e).length?Ai.apply(e,Ai.generate(e,t)):Ii(e,t)};const _i=[[2,4,6],[2,4],[3]],Ui=[,[,,[[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 Vi(e,t,n){const r=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[r-1])),e.splice(0,0,o)}function Wi(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)Vi(e[r],t,n)}!function(){let e,t;for(Wi(_i,1,10),e=0;e<Ui.length;e++)if(Ui[e])for(t=0;t<Ui[e].length;t++)Array.isArray(Ui[e][t])&&Wi(Ui[e][t])}();var Bi={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function Yi(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...c}=t,u=re(!0,{},{...n,qHyperCube:{...c,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=Bi;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==i(u,e)&&o(u,e,null);else{const e=t[0],n=t[1].split("].")[1];i(u,e,[]).forEach((e=>{void 0!==i(e,n)&&o(e,n,null)}))}})),u}var Ki={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:i}){return({currentNodes:o,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==i&&"right"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==i&&"bottom"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=Yi(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Yi(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function Gi(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const Ji={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"},Zi={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},Xi={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"},Qi={d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"},eo={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"},to={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"},no=(e,t)=>{switch(e.qGrouping){case"N":default:return;case"H":return{path:Ji,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case"C":return{path:Zi,tooltip:"Tooltip.dimensions.cyclic",onClick:()=>{t.app.getDimension(e.qLibraryId).then((e=>e.stepCycle(1))).catch((()=>null))}}}},ro={single:"N",drillDown:"H",cyclic:"C"};function io(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.");let r=Ai.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 oo(e,t,n,r,i,o){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=re(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],o||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,i&&i({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),io(e,a,c)}))}const ao=(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 so({dir:e,dock:t,altList:n,model:r,translator:i,app:o,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives(){const e=ao(o,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?e.qDim.qGrouping===ro.single&&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 i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(e,o,i).then((t=>({id:e.qDef.cId,selected:!1,title:t}))))))));return e},changeTo(e,t){oo(r,e,t,"qDimensions",a)}}}function lo(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===ro.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:no(e,n),index:t,locked:!!e.qLocked,text:e.qGrouping===ro.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:(i=e,i.qGrouping===ro.single?i.qFallbackTitle||"":i.title||""),drillUp(e){n.drillUp(r,t,e)},id:e.cId};var i}function co({altList:e,app:t,dir:n,dock:r,model:i,onChange:o,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives(){const n=ao(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 i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t}))))))));return n},changeTo(e,t){oo(i,e,t,"qMeasures",o,a)}}}function uo(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function po(){return po=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},po.apply(this,arguments)}var ho={exports:{}};function fo(){}function mo(){}mo.resetWarningCache=fo;ho.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){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,bigint: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:mo,resetWarningCache:fo};return n.PropTypes=n,n}();var go=Y(ho.exports),yo={black:"#000",white:"#fff"},vo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},bo={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},xo={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},wo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},So={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Co={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Eo={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 ko(){return ko=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},ko.apply(this,arguments)}function To(e){return To="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},To(e)}function Ro(e){return e&&"object"===To(e)&&e.constructor===Object}function Do(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?ko({},e):e;return Ro(e)&&Ro(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(Ro(t[i])&&i in e?r[i]=Do(e[i],t[i],n):r[i]=t[i])})),r}function Mo(e){var t=function(e,t){if("object"!==To(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==To(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===To(t)?t:String(t)}function qo(e,t,n){return(t=Mo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Po(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function No(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 Math.min(Math.max(t,e),n)}function Lo(e){if(e.type)return e;if("#"===e.charAt(0))return Lo(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Po(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Io(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 Ao(e){var t="hsl"===(e=Lo(e)).type?Lo(function(e){var t=(e=Lo(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*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])),Io({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 Oo(e,t){return e=Lo(e),t=No(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Io(e)}function zo(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function jo(e,t){if(null==e)return{};var n,r,i=zo(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Fo=["xs","sm","md","lg","xl"];function Ho(e,t,n){var r;return ko({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),ko({paddingLeft:t(2),paddingRight:t(2)},n,qo({},e.up("sm"),ko({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},qo(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),qo(r,e.up("sm"),{minHeight:64}),r)},n)}var $o={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:yo.white,default:Eo[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_o={text:{primary:yo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Eo[800],default:"#303030"},action:{active:yo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Uo(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Lo(e),t=No(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 Io(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=Lo(e),t=No(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 Io(e)}(e.main,o)))}function Vo(e){var t=e.primary,n=void 0===t?{light:xo[300],main:xo[500],dark:xo[700]}:t,r=e.secondary,i=void 0===r?{light:bo.A200,main:bo.A400,dark:bo.A700}:r,o=e.error,a=void 0===o?{light:vo[300],main:vo[500],dark:vo[700]}:o,s=e.warning,l=void 0===s?{light:Co[300],main:Co[500],dark:Co[700]}:s,c=e.info,u=void 0===c?{light:wo[300],main:wo[500],dark:wo[700]}:c,d=e.success,p=void 0===d?{light:So[300],main:So[500],dark:So[700]}:d,h=e.type,f=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=jo(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Ao(e),r=Ao(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,_o.text.primary)>=g?_o.text.primary:$o.text.primary;return t}var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=ko({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Po(4,t));if("string"!=typeof e.main)throw new Error(Po(5,JSON.stringify(e.main)));return Uo(e,"light",n,v),Uo(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},S={dark:_o,light:$o};return Do(ko({common:yo,type:f,primary:w(n),secondary:w(i,"A400","A200","A700"),error:w(a),warning:w(l),info:w(u),success:w(p),grey:Eo,contrastThreshold:g,getContrastText:x,augmentColor:w,tonalOffset:v},S[f]),b)}function Wo(e){return Math.round(1e5*e)/1e5}function Bo(e){return Wo(e)}var Yo={textTransform:"uppercase"},Ko='"Roboto", "Helvetica", "Arial", sans-serif';function Go(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?Ko:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,p=void 0===d?500:d,h=n.fontWeightBold,f=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=jo(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=v||function(e){return"".concat(e/g*x,"rem")},S=function(e,t,n,r,o){return ko({fontFamily:i,fontWeight:e,fontSize:w(t),lineHeight:n},i===Ko?{letterSpacing:"".concat(Wo(r/t),"em")}:{},o,y)},C={h1:S(l,96,1.167,-1.5),h2:S(l,60,1.2,-.5),h3:S(u,48,1.167,0),h4:S(u,34,1.235,.25),h5:S(u,24,1.334,0),h6:S(p,20,1.6,.15),subtitle1:S(u,16,1.75,.15),subtitle2:S(p,14,1.57,.1),body1:S(u,16,1.5,.15),body2:S(u,14,1.43,.15),button:S(p,14,1.75,.4,Yo),caption:S(u,12,1.66,.4),overline:S(u,12,2.66,1,Yo)};return Do(ko({htmlFontSize:g,pxToRem:w,round:Bo,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:f},C),b,{clone:!1})}function Jo(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var Zo=["none",Jo(0,2,1,-1,0,1,1,0,0,1,3,0),Jo(0,3,1,-2,0,2,2,0,0,1,5,0),Jo(0,3,3,-2,0,3,4,0,0,1,8,0),Jo(0,2,4,-1,0,4,5,0,0,1,10,0),Jo(0,3,5,-1,0,5,8,0,0,1,14,0),Jo(0,3,5,-1,0,6,10,0,0,1,18,0),Jo(0,4,5,-2,0,7,10,1,0,2,16,1),Jo(0,5,5,-3,0,8,10,1,0,3,14,2),Jo(0,5,6,-3,0,9,12,1,0,3,16,2),Jo(0,6,6,-3,0,10,14,1,0,4,18,3),Jo(0,6,7,-4,0,11,15,1,0,4,20,3),Jo(0,7,8,-4,0,12,17,2,0,5,22,4),Jo(0,7,8,-4,0,13,19,2,0,5,24,4),Jo(0,7,9,-4,0,14,21,2,0,5,26,4),Jo(0,8,9,-5,0,15,22,2,0,6,28,5),Jo(0,8,10,-5,0,16,24,2,0,6,30,5),Jo(0,8,11,-5,0,17,26,2,0,6,32,5),Jo(0,9,11,-5,0,18,28,2,0,7,34,6),Jo(0,9,12,-6,0,19,29,2,0,7,36,6),Jo(0,10,13,-6,0,20,31,3,0,8,38,7),Jo(0,10,13,-6,0,21,33,3,0,8,40,7),Jo(0,10,14,-6,0,22,35,3,0,8,42,7),Jo(0,11,14,-7,0,23,36,3,0,9,44,8),Jo(0,11,15,-7,0,24,38,3,0,9,46,8)],Xo={borderRadius:4};function Qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ea(e,t){if(e){if("string"==typeof e)return Qo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qo(e,t):void 0}}function ta(e){return function(e){if(Array.isArray(e))return Qo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ea(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function na(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||ea(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ra(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var ia={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},oa={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function aa(e){return"".concat(Math.round(e),"ms")}var sa={easing:ia,duration:oa,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?oa.standard:n,i=t.easing,o=void 0===i?ia.easeInOut:i,a=t.delay,s=void 0===a?0:a;return jo(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:aa(r)," ").concat(o," ").concat("string"==typeof s?s:aa(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},la={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ca(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=jo(e,["breakpoints","mixins","palette","spacing","typography"]),d=Vo(a),p=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=jo(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function c(e,t){var r=Fo.indexOf(t);return r===Fo.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Fo[r+1]]?n[Fo[r+1]]:t)-a/100).concat(i,")")}return ko({keys:Fo,values:n,up:l,down:function(e){var t=Fo.indexOf(e)+1,r=n[Fo[t]];return t===Fo.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),h=ra(s),f=Do({breakpoints:p,direction:"ltr",mixins:Ho(p,h,i),overrides:{},palette:d,props:{},shadows:Zo,typography:Go(d,c),spacing:h,shape:Xo,transitions:sa,zIndex:la},u),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return f=g.reduce((function(e,t){return Do(e,t)}),f)}var ua="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",da=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function pa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==da.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[ua]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}function ha(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var fa="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},ma="object"===("undefined"==typeof window?"undefined":fa(window))&&"object"===("undefined"==typeof document?"undefined":fa(document))&&9===document.nodeType;function ga(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,Mo(r.key),r)}}function ya(e,t,n){return t&&ga(e.prototype,t),n&&ga(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function va(e,t){return va=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},va(e,t)}function ba(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,va(e,t)}function xa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var wa={}.constructor;function Sa(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Sa);if(e.constructor!==wa)return e;var t={};for(var n in e)t[n]=Sa(e[n]);return t}function Ca(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=Sa(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var Ea=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},ka=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Ea(e[n]," ");else t=Ea(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Ta(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Ra(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Da(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=Ta(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var h=d[p];null!=h&&(r&&(r+=l),r+=Ra(p+":"+c+ka(h)+";",o))}}else for(var f in a){var m=a[f];null!=m&&(r&&(r+=l),r+=Ra(f+":"+c+ka(m)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Ra(g+":"+c+ka(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Ra(""+e+c+"{"+r,--o)+Ra("}",o)):r}var Ma=/([[\].#*$><+~=|^:(),"'`\s])/g,qa="undefined"!=typeof CSS&&CSS.escape,Pa=function(e){return qa?qa(e):e.replace(Ma,"\\$1")},Na=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),La=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(xa(xa(i)),s),i.selectorText="."+Pa(i.id)),i}ba(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=ka(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ko({},e,{allowEmpty:!0}):e;return Da(this.selectorText,this.style,n)},ya(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Na),Ia={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new La(e,t,n)}},Aa={indent:1,children:!0},Oa=/@([\w-]+)/,za=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Oa);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new ss(ko({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Aa);var t=Ta(e).linebreak;if(null==e.indent&&(e.indent=Aa.indent),null==e.children&&(e.children=Aa.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),ja=/@container|@media|@supports\s+/,Fa={onCreateRule:function(e,t,n){return ja.test(e)?new za(e,t,n):null}},Ha={indent:1,children:!0},$a=/@keyframes\s+([\w-]+)/,_a=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match($a);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:Pa(a(this,o)),this.rules=new ss(ko({},n,{parent:this})),t)this.rules.add(s,t[s],ko({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Ha);var t=Ta(e).linebreak;if(null==e.indent&&(e.indent=Ha.indent),null==e.children&&(e.children=Ha.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Ua=/@keyframes\s+/,Va=/\$([\w-]+)/g,Wa=function(e,t){return"string"==typeof e?e.replace(Va,(function(e,n){return n in t?t[n]:e})):e},Ba=function(e,t,n){var r=e[t],i=Wa(r,n);i!==r&&(e[t]=i)},Ya={onCreateRule:function(e,t,n){return"string"==typeof e&&Ua.test(e)?new _a(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Ba(e,"animation-name",n.keyframes),"animation"in e&&Ba(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return Wa(e,r.keyframes);default:return e}}},Ka=function(e){function t(){return e.apply(this,arguments)||this}return ba(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ko({},e,{allowEmpty:!0}):e;return Da(this.key,this.style,n)},t}(Na),Ga={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Ka(e,t,n):null}},Ja=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Ta(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Da(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Da(this.at,this.style,e)},e}(),Za=/@font-face/,Xa={onCreateRule:function(e,t,n){return Za.test(e)?new Ja(e,t,n):null}},Qa=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Da(this.key,this.style,e)},e}(),es={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Qa(e,t,n):null}},ts=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ns={"@charset":!0,"@import":!0,"@namespace":!0},rs={onCreateRule:function(e,t,n){return e in ns?new ts(e,t,n):null}},is=[Ia,Fa,Ya,Ga,Xa,es,rs],os={process:!0},as={force:!0,process:!0},ss=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=ko({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Pa(this.classes[d]));var p=Ca(d,t,u);if(!p)return null;this.register(p);var h=void 0===u.index?this.index.length:u.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=ko({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof La?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof _a&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof La?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof _a&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=os);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,as)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,as)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=Ta(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),ls=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=ko({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ss(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),cs=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),us=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=zo(t,["attached"]),i=Ta(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},ya(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ds=new us,ps="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),hs="2f1acc6c3a606b082e5eef5e54414ffb";null==ps[hs]&&(ps[hs]=0);var fs=ps[hs]++,ms=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+fs+i+t:o+n.key+"-"+fs+(i?"-"+i:"")+"-"+t}},gs=function(e){var t;return function(){return t||(t=e()),t}},ys=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},vs=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=ka(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},bs=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},xs=function(e,t){return e.selectorText=t,e.selectorText===t},ws=gs((function(){return document.querySelector("head")}));function Ss(e){var t=ds.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=ws(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var Cs=gs((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Es=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},ks=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ts=function(){function e(e){this.getPropertyValue=ys,this.setProperty=vs,this.removeProperty=bs,this.setSelector=xs,this.hasInsertedRules=!1,this.cssRules=[],e&&ds.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Cs();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Ss(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else ws().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=ks(n,t);if(!1===(i=Es(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=ks(n,t),l=Es(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof ls&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Rs=0,Ds=function(){function e(e){this.id=Rs++,this.version="10.10.0",this.plugins=new cs,this.options={id:{minify:!1},createGenerateId:ms,Renderer:ma?Ts:null,plugins:[]},this.generateId=ms({minify:!1});for(var t=0;t<is.length;t++)this.plugins.use(is[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=ko({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===ds.index?0:ds.index+1);var r=new ls(e,ko({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ds.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=ko({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=Ca(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Ms=function(e){return new Ds(e)},qs="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ps(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Ps(r);o&&(t||(t={}),t[n]=o)}}return t}
|
|
8
8
|
/**
|
|
9
9
|
* A better abstraction over CSS.
|
|
10
10
|
*
|
|
11
11
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
12
12
|
* @website https://github.com/cssinjs/jss
|
|
13
13
|
* @license MIT
|
|
14
|
-
*/fs();var ys=Date.now(),vs="fnValues"+ys,bs="fnStyle"+ ++ys,xs=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=la(e,{},n);return r[bs]=t,r},onProcessStyle:function(e,t){if(vs in t||bs in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[vs]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[bs];o&&(i.style=o(e)||{});var a=i[vs];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},ws="@global",Ss="@global ",Cs=function(){function e(e,t,n){for(var r in this.type="global",this.at=ws,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Ba(uo({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Es=function(){function e(e,t,n){this.type="global",this.at=ws,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Ss.length);this.rule=n.jss.createRule(r,t,uo({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ks=/\s*,\s*/g;function Ts(e,t){for(var n=e.split(ks),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Rs(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===ws)return new Cs(e,t,n);if("@"===e[0]&&e.substr(0,Ss.length)===Ss)return new Es(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[ws]:null;if(i){for(var o in i)t.addRule(o,i[o],uo({},n,{selector:Ts(o,e.selector)}));delete r[ws]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,ws.length)===ws){var o=Ts(i.substr(ws.length),e.selector);t.addRule(o,r[i],uo({},n,{selector:o})),delete r[i]}}(e,t))}}}var Ds=/\s*,\s*/g,Ms=/&/g,qs=/\$([\w-]+)/g;function Ps(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Ds),r=e.split(Ds),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Ms,a):a+" "+l}return i}function n(e,t,n){if(n)return uo({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=uo({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(l,u,a),d){var h=t(c,l.selector);s||(s=e(u,o)),h=h.replace(qs,s);var f=l.key+"-"+c;"replaceRule"in u?u.replaceRule(f,r[c],uo({},a,{selector:h})):u.addRule(f,r[c],uo({},a,{selector:h}))}else p&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var Ns=/[A-Z]/g,Ls=/^ms-/,Is={};function As(e){return"-"+e.toLowerCase()}function Os(e){if(Is.hasOwnProperty(e))return Is[e];var t=e.replace(Ns,As);return Is[e]=Ls.test(t)?"-"+t:t}function zs(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Os(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(zs):t.fallbacks=zs(e.fallbacks)),t}var js=ms&&CSS?CSS.px:"px",Fs=ms&&CSS?CSS.ms:"ms",Hs=ms&&CSS?CSS.percent:"%";function $s(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var _s=$s({"animation-delay":Fs,"animation-duration":Fs,"background-position":js,"background-position-x":js,"background-position-y":js,"background-size":js,border:js,"border-bottom":js,"border-bottom-left-radius":js,"border-bottom-right-radius":js,"border-bottom-width":js,"border-left":js,"border-left-width":js,"border-radius":js,"border-right":js,"border-right-width":js,"border-top":js,"border-top-left-radius":js,"border-top-right-radius":js,"border-top-width":js,"border-width":js,"border-block":js,"border-block-end":js,"border-block-end-width":js,"border-block-start":js,"border-block-start-width":js,"border-block-width":js,"border-inline":js,"border-inline-end":js,"border-inline-end-width":js,"border-inline-start":js,"border-inline-start-width":js,"border-inline-width":js,"border-start-start-radius":js,"border-start-end-radius":js,"border-end-start-radius":js,"border-end-end-radius":js,margin:js,"margin-bottom":js,"margin-left":js,"margin-right":js,"margin-top":js,"margin-block":js,"margin-block-end":js,"margin-block-start":js,"margin-inline":js,"margin-inline-end":js,"margin-inline-start":js,padding:js,"padding-bottom":js,"padding-left":js,"padding-right":js,"padding-top":js,"padding-block":js,"padding-block-end":js,"padding-block-start":js,"padding-inline":js,"padding-inline-end":js,"padding-inline-start":js,"mask-position-x":js,"mask-position-y":js,"mask-size":js,height:js,width:js,"min-height":js,"max-height":js,"min-width":js,"max-width":js,bottom:js,left:js,top:js,right:js,inset:js,"inset-block":js,"inset-block-end":js,"inset-block-start":js,"inset-inline":js,"inset-inline-end":js,"inset-inline-start":js,"box-shadow":js,"text-shadow":js,"column-gap":js,"column-rule":js,"column-rule-width":js,"column-width":js,"font-size":js,"font-size-delta":js,"letter-spacing":js,"text-decoration-thickness":js,"text-indent":js,"text-stroke":js,"text-stroke-width":js,"word-spacing":js,motion:js,"motion-offset":js,outline:js,"outline-offset":js,"outline-width":js,perspective:js,"perspective-origin-x":Hs,"perspective-origin-y":Hs,"transform-origin":Hs,"transform-origin-x":Hs,"transform-origin-y":Hs,"transform-origin-z":Hs,"transition-delay":Fs,"transition-duration":Fs,"vertical-align":js,"flex-basis":js,"shape-margin":js,size:js,gap:js,grid:js,"grid-gap":js,"row-gap":js,"grid-row-gap":js,"grid-column-gap":js,"grid-template-rows":js,"grid-template-columns":js,"grid-auto-rows":js,"grid-auto-columns":js,"box-shadow-x":js,"box-shadow-y":js,"box-shadow-blur":js,"box-shadow-spread":js,"font-line-height":js,"text-shadow-x":js,"text-shadow-y":js,"text-shadow-blur":js});function Us(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Us(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=Us(i,t[i],n);else for(var o in t)t[o]=Us(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||_s[e];return!a||0===t&&a===js?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Vs(e){void 0===e&&(e={});var t=$s(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Us(r,e[r],t);return e},onChangeValue:function(e,n){return Us(n,e,t)}}}var Ws="",Bs="",Ys="",Ks="",Gs=ea&&"ontouchstart"in document.documentElement;if(ea){var Js={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Zs=document.createElement("p").style;for(var Xs in Js)if(Xs+"Transform"in Zs){Ws=Xs,Bs=Js[Xs];break}"Webkit"===Ws&&"msHyphens"in Zs&&(Ws="ms",Bs=Js.ms,Ks="edge"),"Webkit"===Ws&&"-apple-trailing-word"in Zs&&(Ys="apple")}var Qs={js:Ws,css:Bs,vendor:Ys,browser:Ks,isTouch:Gs};var el={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Qs.js?"-webkit-"+e:Qs.css+e)}},tl={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Qs.js?Qs.css+"print-"+e:e)}},nl=/[-\s]+(.)?/g;function rl(e,t){return t?t.toUpperCase():""}function il(e){return e.replace(nl,rl)}function ol(e){return il("-"+e)}var al,sl={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Qs.js){var n="mask-image";if(il(n)in t)return e;if(Qs.js+ol(n)in t)return Qs.css+e}return e}},ll={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Qs.vendor||Qs.isTouch?e:Qs.css+e)}},ul={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Qs.css+e)}},cl={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Qs.css+e)}},dl={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Qs.js||"ms"===Qs.js&&"edge"!==Qs.browser?Qs.css+e:e)}},pl={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Qs.js||"ms"===Qs.js||"apple"===Qs.vendor?Qs.css+e:e)}},hl={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Qs.js?"WebkitColumn"+ol(e)in t&&Qs.css+"column-"+e:"Moz"===Qs.js&&("page"+ol(e)in t&&"page-"+e))}},fl={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Qs.js)return e;var n=e.replace("-inline","");return Qs.js+ol(n)in t&&Qs.css+n}},ml={supportedProperty:function(e,t){return il(e)in t&&e}},gl={supportedProperty:function(e,t){var n=ol(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Qs.js+n in t?Qs.css+e:"Webkit"!==Qs.js&&"Webkit"+n in t&&"-webkit-"+e}},yl={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Qs.js?""+Qs.css+e:e)}},vl={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Qs.js?Qs.css+"scroll-chaining":e)}},bl={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},xl={supportedProperty:function(e,t){var n=bl[e];return!!n&&(Qs.js+ol(n)in t&&Qs.css+n)}},wl={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Sl=Object.keys(wl),Cl=function(e){return Qs.css+e},El={supportedProperty:function(e,t,n){var r=n.multiple;if(Sl.indexOf(e)>-1){var i=wl[e];if(!Array.isArray(i))return Qs.js+ol(i)in t&&Qs.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Qs.js+ol(i[0])in t))return!1;return i.map(Cl)}return!1}},kl=[el,tl,sl,ll,ul,cl,dl,pl,hl,fl,ml,gl,yl,vl,xl,El],Tl=kl.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Rl=kl.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Ho(t.noPrefill)),e}),[]),Dl={};if(ea){al=document.createElement("p");var Ml=window.getComputedStyle(document.documentElement,"");for(var ql in Ml)isNaN(ql)||(Dl[Ml[ql]]=Ml[ql]);Rl.forEach((function(e){return delete Dl[e]}))}function Pl(e,t){if(void 0===t&&(t={}),!al)return e;if(null!=Dl[e])return Dl[e];"transition"!==e&&"transform"!==e||(t[e]=e in al.style);for(var n=0;n<Tl.length&&(Dl[e]=Tl[n](e,al.style,t),!Dl[e]);n++);try{al.style[e]=""}catch(e){return!1}return Dl[e]}var Nl,Ll={},Il={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Al=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ol(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Pl(t):", "+Pl(n);return r||(t||n)}function zl(e,t){var n=t;if(!Nl||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Ll[r])return Ll[r];try{Nl.style[e]=n}catch(e){return Ll[r]=!1,!1}if(Il[e])n=n.replace(Al,Ol);else if(""===Nl.style[e]&&("-ms-flex"===(n=Qs.css+n)&&(Nl.style[e]="-ms-flexbox"),Nl.style[e]=n,""===Nl.style[e]))return Ll[r]=!1,!1;return Nl.style[e]="",Ll[r]=n,Ll[r]}function jl(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=Pl(n);o&&o!==n&&(i=!0);var a=!1,s=zl(o,ca(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Qs.js?e:"@"+Qs.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return zl(t,ca(e))||e}}}function Fl(){return{plugins:[xs(),Rs(),Ps(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=zs(e[t]);return e}return zs(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Os(t);return t===r?e:(n.prop(r,e),null)}},Vs(),"undefined"==typeof window?null:jl(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}})]};var e}function Hl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=uo({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}ea&&(Nl=document.createElement("p"));var $l={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},_l=$l,Ul=m.createContext(null);function Vl(){return m.useContext(Ul)}var Wl,Bl=fs(Fl()),Yl={disableGeneration:!1,generateClassName:Zo(),jss:Bl,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Kl=m.createContext(Yl);function Gl(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,o=void 0!==i&&i,a=Co(e,["children","injectFirst","disableGeneration"]),s=uo({},m.useContext(Kl),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Wl){var l=document.head;Wl=document.createComment("mui-inject-first"),l.insertBefore(Wl,l.firstChild)}s.jss=fs({plugins:Fl().plugins,insertionPoint:Wl})}return m.createElement(Kl.Provider,{value:s},t)}var Jl=-1e9;var Zl={};function Xl(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=_l.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},_l.set(i.sheetsManager,o,r,s));var l=uo({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=i.sheetsRegistry;if(0===s.refs){var c;i.sheetsCache&&(c=_l.get(i.sheetsCache,o,r));var d=o.create(r,a);c||((c=i.jss.createStyleSheet(d,uo({link:!1},l))).attach(),i.sheetsCache&&_l.set(i.sheetsCache,o,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=gs(d)}if(s.dynamicStyles){var p=i.jss.createStyleSheet(s.dynamicStyles,uo({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Hl({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Ql(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=void 0===o?Zl:o,s=Co(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=uo({},i);return Object.keys(o).forEach((function(e){a[e]=ho(a[e],o[e])})),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:Jl+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Vl()||a,r=uo({},m.useContext(Kl),s),o=m.useRef(),u=m.useRef();!function(e,t){var n,r=m.useRef([]),i=m.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),m.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Xl(i,e),u.current=!1,o.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=_l.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(_l.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,l]),m.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),u.current=!0}));var c=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=Hl({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return c}}function eu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=eu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function tu(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=eu(e))&&(r&&(r+=" "),r+=t);return r}var nu={exports:{}},ru={},iu="function"==typeof Symbol&&Symbol.for,ou=iu?Symbol.for("react.element"):60103,au=iu?Symbol.for("react.portal"):60106,su=iu?Symbol.for("react.fragment"):60107,lu=iu?Symbol.for("react.strict_mode"):60108,uu=iu?Symbol.for("react.profiler"):60114,cu=iu?Symbol.for("react.provider"):60109,du=iu?Symbol.for("react.context"):60110,pu=iu?Symbol.for("react.async_mode"):60111,hu=iu?Symbol.for("react.concurrent_mode"):60111,fu=iu?Symbol.for("react.forward_ref"):60112,mu=iu?Symbol.for("react.suspense"):60113,gu=iu?Symbol.for("react.suspense_list"):60120,yu=iu?Symbol.for("react.memo"):60115,vu=iu?Symbol.for("react.lazy"):60116,bu=iu?Symbol.for("react.block"):60121,xu=iu?Symbol.for("react.fundamental"):60117,wu=iu?Symbol.for("react.responder"):60118,Su=iu?Symbol.for("react.scope"):60119;function Cu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ou:switch(e=e.type){case pu:case hu:case su:case uu:case lu:case mu:return e;default:switch(e=e&&e.$$typeof){case du:case fu:case vu:case yu:case cu:return e;default:return t}}case au:return t}}}function Eu(e){return Cu(e)===hu}ru.AsyncMode=pu,ru.ConcurrentMode=hu,ru.ContextConsumer=du,ru.ContextProvider=cu,ru.Element=ou,ru.ForwardRef=fu,ru.Fragment=su,ru.Lazy=vu,ru.Memo=yu,ru.Portal=au,ru.Profiler=uu,ru.StrictMode=lu,ru.Suspense=mu,ru.isAsyncMode=function(e){return Eu(e)||Cu(e)===pu},ru.isConcurrentMode=Eu,ru.isContextConsumer=function(e){return Cu(e)===du},ru.isContextProvider=function(e){return Cu(e)===cu},ru.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ou},ru.isForwardRef=function(e){return Cu(e)===fu},ru.isFragment=function(e){return Cu(e)===su},ru.isLazy=function(e){return Cu(e)===vu},ru.isMemo=function(e){return Cu(e)===yu},ru.isPortal=function(e){return Cu(e)===au},ru.isProfiler=function(e){return Cu(e)===uu},ru.isStrictMode=function(e){return Cu(e)===lu},ru.isSuspense=function(e){return Cu(e)===mu},ru.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===su||e===hu||e===uu||e===lu||e===mu||e===gu||"object"==typeof e&&null!==e&&(e.$$typeof===vu||e.$$typeof===yu||e.$$typeof===cu||e.$$typeof===du||e.$$typeof===fu||e.$$typeof===xu||e.$$typeof===wu||e.$$typeof===Su||e.$$typeof===bu)},ru.typeOf=Cu,nu.exports=ru;var ku=nu.exports,Tu={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ru={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Du={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Mu={};function qu(e){return ku.isMemo(e)?Du:Mu[e.$$typeof]||Tu}Mu[ku.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mu[ku.Memo]=Du;var Pu=Object.defineProperty,Nu=Object.getOwnPropertyNames,Lu=Object.getOwnPropertySymbols,Iu=Object.getOwnPropertyDescriptor,Au=Object.getPrototypeOf,Ou=Object.prototype;var zu=function e(t,n,r){if("string"!=typeof n){if(Ou){var i=Au(n);i&&i!==Ou&&e(t,i,r)}var o=Nu(n);Lu&&(o=o.concat(Lu(n)));for(var a=qu(t),s=qu(n),l=0;l<o.length;++l){var u=o[l];if(!(Ru[u]||r&&r[u]||s&&s[u]||a&&a[u])){var c=Iu(n,u);try{Pu(t,u,c)}catch(e){}}}}return t},ju=K(zu);function Fu(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=Co(r,["name"]),a=i,s="function"==typeof t?function(e){return{root:function(n){return t(uo({theme:e},n))}}}:{root:t},l=Ql(s,uo({Component:e,name:i||e.displayName,classNamePrefix:a},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=m.forwardRef((function(t,r){var i,o,a,s=t.children,u=t.className,c=t.clone,d=t.component,p=Co(t,["children","className","clone","component"]),h=tu(l(t).root,u),f=p;if(n&&(i=f,o=n,a={},Object.keys(i).forEach((function(e){-1===o.indexOf(e)&&(a[e]=i[e])})),f=a),c)return m.cloneElement(s,uo({className:tu(s.props.className,h)},f));if("function"==typeof s)return s(uo({className:h},f));var g=d||e;return m.createElement(g,uo({ref:r,className:h},f),s)}));return ju(u,e),u}}function Hu(e){var t=e.children,n=e.theme,r=Vl(),i=m.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):uo({},e,t)}(r,n);return null!=e&&(e[Go]=null!==r),e}),[n,r]);return m.createElement(Ul.Provider,{value:i},t)}var $u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,i=t.withTheme,o=void 0!==i&&i,a=t.name,s=Co(t,["defaultTheme","withTheme","name"]),l=a,u=Ql(e,uo({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=m.forwardRef((function(e,t){e.classes;var i,s=e.innerRef,l=Co(e,["classes","innerRef"]),c=u(uo({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=Vl()||r,a&&(d=Xo({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),m.createElement(n,uo({ref:s||t,classes:c},d))}));return ju(c,n),c}},_u=Ko(),Uu=function(e){var t=Fu(e);return function(e,n){return t(e,uo({defaultTheme:_u},n))}};function Vu(e,t){return $u(e,uo({defaultTheme:_u},t))}function Wu(e){if("string"!=typeof e)throw new Error(go(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Bu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function Yu(e){return e&&e.ownerDocument||document}function Ku(e){return Yu(e).defaultView||window}function Gu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ju="undefined"!=typeof window?g.useLayoutEffect:g.useEffect;function Zu(e){var t=g.useRef(e);return Ju((function(){t.current=e})),g.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Xu(e,t){return g.useMemo((function(){return null==e&&null==t?null:function(n){Gu(e,n),Gu(t,n)}}),[e,t])}var Qu=!0,ec=!1,tc=null,nc={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function rc(e){e.metaKey||e.altKey||e.ctrlKey||(Qu=!0)}function ic(){Qu=!1}function oc(){"hidden"===this.visibilityState&&ec&&(Qu=!0)}function ac(e){var t,n,r,i=e.target;try{return i.matches(":focus-visible")}catch(e){}return Qu||(n=(t=i).type,!("INPUT"!==(r=t.tagName)||!nc[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function sc(){ec=!0,window.clearTimeout(tc),tc=window.setTimeout((function(){ec=!1}),100)}function lc(){return{isFocusVisible:ac,onBlurVisible:sc,ref:g.useCallback((function(e){var t,n=x.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",rc,!0),t.addEventListener("mousedown",ic,!0),t.addEventListener("pointerdown",ic,!0),t.addEventListener("touchstart",ic,!0),t.addEventListener("visibilitychange",oc,!0))}),[])}}var uc=!1,cc=m.createContext(null),dc="unmounted",pc="exited",hc="entering",fc="entered",mc="exiting",gc=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=pc,r.appearStatus=hc):i=fc:i=t.unmountOnExit||t.mountOnEnter?dc:pc,r.state={status:i},r.nextCallback=null,r}ia(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===dc?{status:pc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==hc&&n!==fc&&(t=hc):n!==hc&&n!==fc||(t=mc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===hc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:w.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===pc&&this.setState({status:dc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[w.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||uc?this.safeSetState({status:fc},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:hc},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:fc},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:w.findDOMNode(this);t&&!uc?(this.props.onExit(r),this.safeSetState({status:mc},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:pc},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:pc},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:w.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===dc)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=So(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(cc.Provider,{value:null},"function"==typeof n?n(e,r):m.cloneElement(m.Children.only(n),r))},t}(m.Component);function yc(){}gc.contextType=cc,gc.propTypes={},gc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yc,onEntering:yc,onEntered:yc,onExit:yc,onExiting:yc,onExited:yc},gc.UNMOUNTED=dc,gc.EXITED=pc,gc.ENTERING=hc,gc.ENTERED=fc,gc.EXITING=mc;var vc=gc;function bc(e,t){var n=Object.create(null);return e&&y.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&v(e)?t(e):e}(e)})),n}function xc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function wc(e,t,n){var r=bc(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(v(a)){var s=o in t,l=o in r,u=t[o],c=v(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&v(u)&&(i[o]=b(a,{onExited:n.bind(null,a),in:u.props.in,exit:xc(a,"exit",e),enter:xc(a,"enter",e)})):i[o]=b(a,{in:!1}):i[o]=b(a,{onExited:n.bind(null,a),in:!0,exit:xc(a,"exit",e),enter:xc(a,"enter",e)})}})),i}var Sc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Cc=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(oa(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}ia(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,bc(n.children,(function(e){return b(e,{onExited:r.bind(null,e),in:!0,appear:xc(e,"appear",n),enter:xc(e,"enter",n),exit:xc(e,"exit",n)})}))):wc(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=bc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=uo({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=So(e,["component","childFactory"]),i=this.state.contextValue,o=Sc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?m.createElement(cc.Provider,{value:i},o):m.createElement(cc.Provider,{value:i},m.createElement(t,r,o))},t}(m.Component);Cc.propTypes={},Cc.defaultProps={component:"div",childFactory:function(e){return e}};var Ec=Cc;function kc(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var Tc=g.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,u=void 0===l?1:l,c=e.variant,d=void 0===c?"elevation":c,p=Co(e,["classes","className","component","square","elevation","variant"]);return g.createElement(o,uo({className:tu(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(u)],!s&&n.rounded),ref:t},p))})),Rc=Vu((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),uo({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Tc),Dc="undefined"==typeof window?g.useEffect:g.useLayoutEffect;function Mc(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,u=void 0===l?function(){}:l,c=e.timeout,d=g.useState(!1),p=d[0],h=d[1],f=tu(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},y=tu(t.child,p&&t.childLeaving,r&&t.childPulsate),v=Zu(u);return Dc((function(){if(!s){h(!0);var e=setTimeout(v,c);return function(){clearTimeout(e)}}}),[v,s,c]),g.createElement("span",{className:f,style:m},g.createElement("span",{className:y}))}var qc=g.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=Co(e,["center","classes","className"]),s=g.useState([]),l=s[0],u=s[1],c=g.useRef(0),d=g.useRef(null);g.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=g.useRef(!1),h=g.useRef(null),f=g.useRef(null),m=g.useRef(null);g.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var y=g.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;u((function(e){return[].concat(Ho(e),[g.createElement(Mc,{key:c.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),c.current+=1,d.current=a}),[i]),v=g.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var c,d,g,v=u?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;c=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(g=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(g+=1);else{var C=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,E=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;g=Math.sqrt(Math.pow(C,2)+Math.pow(E,2))}e.touches?null===f.current&&(f.current=function(){y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})},h.current=setTimeout((function(){f.current&&(f.current(),f.current=null)}),80)):y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})}}),[r,y]),b=g.useCallback((function(){v({},{pulsate:!0})}),[v]),x=g.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&f.current)return e.persist(),f.current(),f.current=null,void(h.current=setTimeout((function(){x(e,t)})));f.current=null,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return g.useImperativeHandle(t,(function(){return{pulsate:b,start:v,stop:x}}),[b,v,x]),g.createElement("span",uo({className:tu(i.root,o),ref:m},a),g.createElement(Ec,{component:null,exit:!0},l))})),Pc=Vu((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(g.memo(qc)),Nc=g.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,u=e.component,c=void 0===u?"button":u,d=e.disabled,p=void 0!==d&&d,h=e.disableRipple,f=void 0!==h&&h,m=e.disableTouchRipple,y=void 0!==m&&m,v=e.focusRipple,b=void 0!==v&&v,w=e.focusVisibleClassName,S=e.onBlur,C=e.onClick,E=e.onFocus,k=e.onFocusVisible,T=e.onKeyDown,R=e.onKeyUp,D=e.onMouseDown,M=e.onMouseLeave,q=e.onMouseUp,P=e.onTouchEnd,N=e.onTouchMove,L=e.onTouchStart,I=e.onDragLeave,A=e.tabIndex,O=void 0===A?0:A,z=e.TouchRippleProps,j=e.type,F=void 0===j?"button":j,H=Co(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),$=g.useRef(null);var _=g.useRef(null),U=g.useState(!1),V=U[0],W=U[1];p&&V&&W(!1);var B=lc(),Y=B.isFocusVisible,K=B.onBlurVisible,G=B.ref;function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return Zu((function(r){return t&&t(r),!n&&_.current&&_.current[e](r),!0}))}g.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),$.current.focus()}}}),[]),g.useEffect((function(){V&&b&&!f&&_.current.pulsate()}),[f,b,V]);var Z=J("start",D),X=J("stop",I),Q=J("stop",q),ee=J("stop",(function(e){V&&e.preventDefault(),M&&M(e)})),te=J("start",L),ne=J("stop",P),re=J("stop",N),ie=J("stop",(function(e){V&&(K(e),W(!1)),S&&S(e)}),!1),oe=Zu((function(e){$.current||($.current=e.currentTarget),Y(e)&&(W(!0),k&&k(e)),E&&E(e)})),ae=function(){var e=x.findDOMNode($.current);return c&&"button"!==c&&!("A"===e.tagName&&e.href)},se=g.useRef(!1),le=Zu((function(e){b&&!se.current&&V&&_.current&&" "===e.key&&(se.current=!0,e.persist(),_.current.stop(e,(function(){_.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),C&&C(e))})),ue=Zu((function(e){b&&" "===e.key&&_.current&&V&&!e.defaultPrevented&&(se.current=!1,e.persist(),_.current.stop(e,(function(){_.current.pulsate(e)}))),R&&R(e),C&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&C(e)})),ce=c;"button"===ce&&H.href&&(ce="a");var de={};"button"===ce?(de.type=F,de.disabled=p):("a"===ce&&H.href||(de.role="button"),de["aria-disabled"]=p);var pe=Xu(r,t),he=Xu(G,$),fe=Xu(pe,he),me=g.useState(!1),ge=me[0],ye=me[1];g.useEffect((function(){ye(!0)}),[]);var ve=ge&&!f&&!p;return g.createElement(ce,uo({className:tu(s.root,l,V&&[s.focusVisible,w],p&&s.disabled),onBlur:ie,onClick:C,onFocus:oe,onKeyDown:le,onKeyUp:ue,onMouseDown:Z,onMouseLeave:ee,onMouseUp:Q,onDragLeave:X,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:p?-1:O},de,H),a,ve?g.createElement(Pc,uo({ref:_,center:o},z)):null)})),Lc=Vu({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Nc),Ic={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Ac=g.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,p=void 0!==d&&d,h=e.noWrap,f=void 0!==h&&h,m=e.paragraph,y=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,w=void 0===x?Ic:x,S=Co(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(y?"p":w[b]||Ic[b])||"span";return g.createElement(C,uo({className:tu(i.root,o,"inherit"!==b&&i[b],"initial"!==s&&i["color".concat(Wu(s))],f&&i.noWrap,p&&i.gutterBottom,y&&i.paragraph,"inherit"!==r&&i["align".concat(Wu(r))],"initial"!==c&&i["display".concat(Wu(c))]),ref:t},S))})),Oc=Vu((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Ac),zc=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,u=e.disabled,c=void 0!==u&&u,d=e.disableElevation,p=void 0!==d&&d,h=e.disableFocusRipple,f=void 0!==h&&h,m=e.endIcon,y=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,w=void 0===x?"medium":x,S=e.startIcon,C=e.type,E=void 0===C?"button":C,k=e.variant,T=void 0===k?"text":k,R=Co(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),D=S&&g.createElement("span",{className:tu(r.startIcon,r["iconSize".concat(Wu(w))])},S),M=m&&g.createElement("span",{className:tu(r.endIcon,r["iconSize".concat(Wu(w))])},m);return g.createElement(Lc,uo({className:tu(r.root,r[T],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(Wu(a))],"medium"!==w&&[r["".concat(T,"Size").concat(Wu(w))],r["size".concat(Wu(w))]],p&&r.disableElevation,c&&r.disabled,b&&r.fullWidth),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:tu(r.focusVisible,y),ref:t,type:E},R),g.createElement("span",{className:r.label},D,n,M))})),jc=Vu((function(e){return{root:uo({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:wo(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:wo(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:wo(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(wo(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:wo(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(wo(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:wo(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(zc);var Fc="undefined"!=typeof window?g.useLayoutEffect:g.useEffect,Hc=g.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=g.useState(null),l=s[0],u=s[1],c=Xu(g.isValidElement(n)?n.ref:null,t);return Fc((function(){o||u(function(e){return e="function"==typeof e?e():e,x.findDOMNode(e)}(r)||document.body)}),[r,o]),Fc((function(){if(l&&!o)return Gu(t,l),function(){Gu(t,null)}}),[t,l,o]),Fc((function(){a&&(l||o)&&a()}),[a,l,o]),o?g.isValidElement(n)?g.cloneElement(n,{ref:c}):n:l?x.createPortal(n,l):l})),$c=Hc;function _c(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Uc(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Vc(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Ho(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&_c(e,r)}))}function Wc(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Bc(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=Yu(e);return t.body===e?Ku(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(Uc(o)+a,"px"),n=Yu(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(Uc(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Yc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return na(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&_c(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Vc(t,e.mountNode,e.modalRef,r,!0);var i=Wc(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Wc(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Bc(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Wc(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&_c(e.modalRef,!0),Vc(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&_c(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Kc(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,u=e.isEnabled,c=e.open,d=g.useRef(),p=g.useRef(null),h=g.useRef(null),f=g.useRef(),m=g.useRef(null),y=g.useCallback((function(e){m.current=x.findDOMNode(e)}),[]),v=Xu(t.ref,y),b=g.useRef();return g.useEffect((function(){b.current=c}),[c]),!b.current&&c&&"undefined"!=typeof window&&(f.current=l().activeElement),g.useEffect((function(){if(c){var e=Yu(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&u()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&u()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(f.current&&f.current.focus&&f.current.focus(),f.current=null)}}}),[r,o,s,u,c]),g.createElement(g.Fragment,null,g.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),g.cloneElement(t,{ref:v}),g.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var Gc={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Jc=g.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=Co(e,["invisible","open"]);return i?g.createElement("div",uo({"aria-hidden":!0,ref:t},o,{style:uo({},Gc.root,r?Gc.invisible:{},o.style)})):null}));var Zc=new Yc,Xc=g.forwardRef((function(e,t){var n=Vl(),r=Xo({name:"MuiModal",props:uo({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?Jc:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,h=r.disableBackdropClick,f=void 0!==h&&h,m=r.disableEnforceFocus,y=void 0!==m&&m,v=r.disableEscapeKeyDown,b=void 0!==v&&v,w=r.disablePortal,S=void 0!==w&&w,C=r.disableRestoreFocus,E=void 0!==C&&C,k=r.disableScrollLock,T=void 0!==k&&k,R=r.hideBackdrop,D=void 0!==R&&R,M=r.keepMounted,q=void 0!==M&&M,P=r.manager,N=void 0===P?Zc:P,L=r.onBackdropClick,I=r.onClose,A=r.onEscapeKeyDown,O=r.onRendered,z=r.open,j=Co(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=g.useState(!0),H=F[0],$=F[1],_=g.useRef({}),U=g.useRef(null),V=g.useRef(null),W=Xu(V,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return Yu(U.current)},K=function(){return _.current.modalRef=V.current,_.current.mountNode=U.current,_.current},G=function(){N.mount(K(),{disableScrollLock:T}),V.current.scrollTop=0},J=Zu((function(){var e=function(e){return e="function"==typeof e?e():e,x.findDOMNode(e)}(c)||Y().body;N.add(K(),e),V.current&&G()})),Z=g.useCallback((function(){return N.isTopModal(K())}),[N]),X=Zu((function(e){U.current=e,e&&(O&&O(),z&&Z()?G():_c(V.current,!0))})),Q=g.useCallback((function(){N.remove(K())}),[N]);if(g.useEffect((function(){return function(){Q()}}),[Q]),g.useEffect((function(){z?J():B&&u||Q()}),[z,Q,B,u,J]),!q&&!z&&(!B||H))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Yo}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),B&&(te.onEnter=Bu((function(){$(!1)}),s.props.onEnter),te.onExited=Bu((function(){$(!0),u&&Q()}),s.props.onExited)),g.createElement($c,{ref:X,container:c,disablePortal:S},g.createElement("div",uo({ref:W,onKeyDown:function(e){"Escape"===e.key&&Z()&&(A&&A(e),b||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},j,{style:uo({},ee.root,!z&&H?ee.hidden:{},j.style)}),D?null:g.createElement(o,uo({open:z,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!f&&I&&I(e,"backdropClick"))}},a)),g.createElement(Kc,{disableEnforceFocus:y,disableAutoFocus:p,disableRestoreFocus:E,getDoc:Y,isEnabled:Z,open:z},g.cloneElement(s,te))))})),Qc=Xc;function ed(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var td={entering:{opacity:1,transform:ed(1)},entered:{opacity:1,transform:"none"}},nd=g.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,u=e.onExit,c=e.onExited,d=e.onExiting,p=e.style,h=e.timeout,f=void 0===h?"auto":h,m=e.TransitionComponent,y=void 0===m?vc:m,v=Co(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=g.useRef(),x=g.useRef(),w=Vl()||_u,S=w.unstable_strictMode&&!i,C=g.useRef(null),E=Xu(n.ref,t),k=Xu(S?C:void 0,E),T=function(e){return function(t,n){if(e){var r=$o(S?[C.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},R=T(l),D=T((function(e,t){!function(e){e.scrollTop}(e);var n,r=kc({style:p,timeout:f},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===f?(n=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=i,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:o}),w.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),M=T(s),q=T(d),P=T((function(e){var t,n=kc({style:p,timeout:f},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===f?(t=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:i}),w.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=ed(.75),u&&u(e)})),N=T(c);return g.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),g.createElement(y,uo({appear:!0,in:o,nodeRef:S?C:void 0,onEnter:D,onEntered:M,onEntering:R,onExit:P,onExited:N,onExiting:q,addEndListener:function(e,t){var n=S?e:t;"auto"===f&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===f?null:f},v),(function(e,t){return g.cloneElement(n,uo({style:uo({opacity:0,transform:ed(.75),visibility:"exited"!==e||o?void 0:"hidden"},td[e],p,n.props.style),ref:k},t))}))}));nd.muiSupportAuto=!0;var rd=nd,id=g.createContext({}),od=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,p=Co(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=g.useMemo((function(){return{dense:l}}),[l]);return g.createElement(id.Provider,{value:h},g.createElement(a,uo({className:tu(r.root,i,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},p),d,n))})),ad=Vu({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(od),sd="undefined"==typeof window?g.useEffect:g.useLayoutEffect,ld=g.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,u=e.classes,c=e.className,d=e.component,p=e.ContainerComponent,h=void 0===p?"li":p,f=e.ContainerProps,m=(f=void 0===f?{}:f).className,y=Co(f,["className"]),v=e.dense,b=void 0!==v&&v,w=e.disabled,S=void 0!==w&&w,C=e.disableGutters,E=void 0!==C&&C,k=e.divider,T=void 0!==k&&k,R=e.focusVisibleClassName,D=e.selected,M=void 0!==D&&D,q=Co(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),P=g.useContext(id),N={dense:b||P.dense||!1,alignItems:r},L=g.useRef(null);sd((function(){o&&L.current&&L.current.focus()}),[o]);var I,A,O=g.Children.toArray(l),z=O.length&&(I=O[O.length-1],A=["ListItemSecondaryAction"],g.isValidElement(I)&&-1!==A.indexOf(I.type.muiName)),j=Xu(g.useCallback((function(e){L.current=x.findDOMNode(e)}),[]),t),F=uo({className:tu(u.root,c,N.dense&&u.dense,!E&&u.gutters,T&&u.divider,S&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,z&&u.secondaryAction,M&&u.selected),disabled:S},q),H=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=tu(u.focusVisible,R),H=Lc),z?(H=F.component||d?H:"div","li"===h&&("li"===H?H="div":"li"===F.component&&(F.component="div")),g.createElement(id.Provider,{value:N},g.createElement(h,uo({className:tu(u.container,m),ref:j},y),g.createElement(H,F,O),O.pop()))):g.createElement(id.Provider,{value:N},g.createElement(H,uo({ref:j},F),O))})),ud=Vu((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(ld),cd=g.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Co(e,["classes","className"]),o=g.useContext(id);return g.createElement("div",uo({className:tu(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),dd=Vu((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(cd),pd=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,h=Co(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=g.useContext(id).dense,m=null!=u?u:n;null==m||m.type===Oc||a||(m=g.createElement(Oc,uo({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},c),m));var y=d;return null==y||y.type===Oc||a||(y=g.createElement(Oc,uo({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),y)),g.createElement("div",uo({className:tu(r.root,i,f&&r.dense,l&&r.inset,m&&y&&r.multiline),ref:t},h),m,y)})),hd=Vu({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(pd);function fd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function md(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function gd(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function yd(e){return"function"==typeof e?e():e}var vd=g.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,u=e.children,c=e.classes,d=e.className,p=e.container,h=e.elevation,f=void 0===h?8:h,m=e.getContentAnchorEl,y=e.marginThreshold,v=void 0===y?16:y,b=e.onEnter,w=e.onEntered,S=e.onEntering,C=e.onExit,E=e.onExited,k=e.onExiting,T=e.open,R=e.PaperProps,D=void 0===R?{}:R,M=e.transformOrigin,q=void 0===M?{vertical:"top",horizontal:"left"}:M,P=e.TransitionComponent,N=void 0===P?rd:P,L=e.transitionDuration,I=void 0===L?"auto":L,A=e.TransitionProps,O=void 0===A?{}:A,z=Co(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),j=g.useRef(),F=g.useCallback((function(e){if("anchorPosition"===l)return a;var t=yd(r),n=(t&&1===t.nodeType?t:Yu(j.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+fd(n,i),left:n.left+md(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),H=g.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),$=g.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:fd(e,q.vertical)+t,horizontal:md(e,q.horizontal)}}),[q.horizontal,q.vertical]),_=g.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},i=$(n,t);if("none"===l)return{top:null,left:null,transformOrigin:gd(i)};var o=F(t),a=o.top-i.vertical,s=o.left-i.horizontal,u=a+n.height,c=s+n.width,d=Ku(yd(r)),p=d.innerHeight-v,h=d.innerWidth-v;if(a<v){var f=a-v;a-=f,i.vertical+=f}else if(u>p){var m=u-p;a-=m,i.vertical+=m}if(s<v){var g=s-v;s-=g,i.horizontal+=g}else if(c>h){var y=c-h;s-=y,i.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:gd(i)}}),[r,l,F,H,$,v]),U=g.useCallback((function(){var e=j.current;if(e){var t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[_]),V=g.useCallback((function(e){j.current=x.findDOMNode(e)}),[]);g.useEffect((function(){T&&U()})),g.useImperativeHandle(n,(function(){return T?{updatePosition:function(){U()}}:null}),[T,U]),g.useEffect((function(){if(T){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){U()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[T,U]);var W=I;"auto"!==I||N.muiSupportAuto||(W=void 0);var B=p||(r?Yu(yd(r)).body:void 0);return g.createElement(Qc,uo({container:B,open:T,ref:t,BackdropProps:{invisible:!0},className:tu(c.root,d)},z),g.createElement(N,uo({appear:!0,in:T,onEnter:b,onEntered:w,onExit:C,onExited:E,onExiting:k,timeout:W},O,{onEntering:Bu((function(e,t){S&&S(e,t),U()}),O.onEntering)}),g.createElement(Rc,uo({elevation:f,ref:V},D,{className:tu(c.paper,D.className)}),u)))})),bd=Vu({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(vd);function xd(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function wd({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:xd(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return m.createElement("i",{style:i},m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},m.createElement("path",{d:e})))}const Sd={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"},Cd={d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"},Ed={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"},kd={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"},Td={N:void 0,H:{path:{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"},tooltip:"Tooltip.dimensions.drilldown"},C:{path:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},tooltip:"Tooltip.dimensions.cyclicGroup"}},Rd={single:"N",drillDown:"H",cyclicGroup:"C"};function Dd(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.");let r=Oi.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 Md(e,t,n,r,i,o){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)),u=ie(!0,{},a),c=u.qHyperCubeDef[r][s],d=u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=c.qAttributeDimensions,c.qAttributeDimensions=[],o||(d.qAttributeExpressions=c.qAttributeExpressions,c.qAttributeExpressions=[]),u.qHyperCubeDef[r][s]=d,u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=c,i&&i({oldItem:c,newItem:d,oldProperties:a,newProperties:u,model:e}),Dd(e,a,u)}))}const qd=(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 Pd({dir:e,dock:t,altList:n,model:r,translator:i,app:o,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives(){const e=qd(o,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?e.qDim.qGrouping===Rd.single&&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 i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(e,o,i).then((t=>({id:e.qDef.cId,selected:!1,title:t}))))))));return e},changeTo(e,t){Md(r,e,t,"qDimensions",a)}}}function Nd(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Rd.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:Td[e.qGrouping],index:t,locked:!!e.qLocked,text:e.qGrouping===Rd.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:(i=e,i.qGrouping===Rd.single?i.qFallbackTitle||"":i.title||""),drillUp(e){n.drillUp(r,t,e)},id:e.cId};var i}function Ld({altList:e,app:t,dir:n,dock:r,model:i,onChange:o,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives(){const n=qd(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 i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t}))))))));return n},changeTo(e,t){Md(i,e,t,"qMeasures",o,a)}}}function Id(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}const Ad={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"}}},Od={menuItem:"alternative-menu-item",titleButton:"title-button",activeTitleButton:"active-title-button"},zd=Uu(ud)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),jd=Uu((({children:e,...t})=>m.createElement(jc,Y({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}})));function Fd(e){const t=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Od.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function n({title:e,selected:n,onClick:r}){const i=ve.detectTextDirection(e);return m.createElement(zd,{role:"menuitem",button:!0,onClick:r,className:Od.menuItem,onKeyDown:t},m.createElement(dd,{style:{minWidth:32}},m.createElement(wd,{d:n?Cd.d:""})),m.createElement(hd,{primaryTypographyProps:{dir:i}},e))}function r({alignTo:e,changeTo:t,current:r,dir:i,dock:o,list:a,onClose:s,show:l,instruction:u}){const c=a.map((e=>m.createElement(n,{key:e.id,title:e.title,onClick:()=>t(e.id)})));return m.createElement(bd,Y({anchorEl:e,open:l,onClose:s},Ad[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),m.createElement(ad,{dense:!0,dir:i,"aria-label":u,component:"nav"},m.createElement(n,{title:r,selected:!0,onClick:s}),c))}n.propTypes={title:eo.string.isRequired,selected:eo.bool,onClick:eo.func.isRequired},n.defaultProps={selected:!1},r.propTypes={alignTo:eo.any,changeTo:eo.func.isRequired,current:eo.string.isRequired,dir:eo.string.isRequired,dock:eo.string.isRequired,list:eo.array,onClose:eo.func.isRequired,show:eo.bool.isRequired,instruction:eo.string.isRequired},r.defaultProps={list:[],alignTo:null};class i extends m.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=m.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&n&&e.getAlternatives().then((e=>{this.setState({hasValidAlternatives:0!==e.length})}))}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(e)}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${Od.titleButton}`);t&&t.classList.add(Od.activeTitleButton)}this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e});document.querySelector(`.${Od.menuItem}`).focus()}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${Od.titleButton}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${Od.activeTitleButton}`);e&&(e.classList.remove(Od.activeTitleButton),setTimeout((()=>{e.focus()}),50))}}render(){const{titleData:e,popover:t,translator:n,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:u}=this.props,c={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},d=e.breadcrumbs.length,p=i||this.state.inSelection,h=e.breadcrumbs.map(((t,n)=>m.createElement(jd,{style:{display:"flex",alignItems:"center",color:p&&"rgba(89, 89, 89, 0.8)",pointerEvents:p?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>p?void 0:e.drillUp(d-n),title:t},m.createElement("span",{style:c},t),m.createElement(wd,Y({},kd,{size:"small",style:{margin:"0 8px"}}))))),f=u?this.state.hasValidAlternatives:l,g=t&&!this.state.open?this.openPopover:this.closePopover,y=!t||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(v.background="rgba(0,0,0,0.08)");a&&(v.padding=a),s&&(v.minWidth=s);const b=ve.detectTextDirection(e.text),x=m.createElement(jd,{"aria-label":n.get(`Accessibility.${t&&f?"Alternative":"Normal"}.Instructions`,[e.text]),style:v,onClick:y?void 0:g,title:e.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${Od.titleButton} ${e.id}`,"data-id":e.id},e.locked&&m.createElement(wd,Y({},Sd,{size:"small",title:n.get("Tooltip.selections.locked")})),m.createElement("span",{style:c,dir:b},e.text),t&&f&&m.createElement(wd,Y({},Ed,{size:"small",style:{margin:"0 8px"}})));return m.createElement(m.Fragment,null,e.icon&&m.createElement(wd,Y({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip),style:{margin:"0 4px 0 0"}})),h,m.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:f?"auto":"none",height:"100%"}},x),t&&f&&m.createElement(r,{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:n.get("Accessibility.Popover.Instructions")}))}}function o(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function a(e){return!e.isDimension&&he.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return i.propTypes={disabled:eo.bool.isRequired,padding:eo.string,minWidth:eo.string,titleData:eo.shape({breadcrumbs:eo.arrayOf(eo.string).isRequired,icon:eo.shape({path:eo.string.isRequired,tooltip:eo.string.isRequired}),index:eo.number.isRequired,locked:eo.bool.isRequired,text:eo.string.isRequired,popoverText:eo.string.isRequired,drillUp:eo.func,id:eo.string.isRequired}).isRequired,popover:eo.shape({dir:eo.string.isRequired,dock:eo.string.isRequired,changeTo:eo.func.isRequired,getAlternatives:eo.func.isRequired}),translator:eo.shape({get:eo.func.isRequired}).isRequired,selections:eo.shape({isActive:eo.func,addListener:eo.func,removeListener:eo.func}),style:eo.shape({fontSize:eo.string,color:eo.string,fontFamily:eo.string}).isRequired,isDimension:eo.bool.isRequired,hasAlternative:eo.bool.isRequired,supportConditional:eo.bool.isRequired},i.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:r,hyperCubeDef:s,isDimension:l,minWidth:u,model:c,onChangeToAlternative:d,padding:p,rtl:h,selections:f,skipAttributeExpressions:g,translator:y,supportConditional:v=!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),S=s&&s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef,C=S&&S[l?"qDimensions":"qMeasures"]||[],E=n||r[l?"qDimensionInfo":"qMeasureInfo"],k=l?Pd:Ld,T=l?Nd:Id,R=c&&c.colorSupport&&c.modifiers&&k({altList:C,app:e,dir:h?"rtl":"ltr",dock:o(b),model:c,onChange:d,skipAttributeExpressions:g,translator:y}),D=(M=this.settings.settings).isDimension&&he.getValue(M,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||a(this.settings.settings);var M;const q=E.map(((e,n)=>{const r="number"==typeof e.explicitColumn?e.explicitColumn:n,o=T(e,r,c),a=n===E.length-1;return m.createElement(m.Fragment,{key:e.cId},m.createElement(i,{popover:R,titleData:o,model:c,translator:y,selections:f,disabled:t(),style:this.style,isDimension:l,padding:p,minWidth:u,hasAlternative:D,supportConditional:v}),!a&&m.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return m.createElement("div",{style:w,dir:x},q)}}}const Hd=function(){return Ko.apply(void 0,arguments)}({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 $d=Zo({productionPrefix:"qb616",disableGlobal:!0,seed:""});function _d(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){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!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={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",w.render(function(e,t){return m.createElement(Gl,{generateClassName:t},m.createElement(Hu,{theme:Hd},e))}(e,$d),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&w.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(w.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function Ud(){return function(e){e.renderer("react",_d()),e.component("data-title",Fd(e.renderer("svg")())),e.component("disclaimer",function(){class e extends m.Component{render(){const{label:e,spanStyle:t}=this.props;return m.createElement(m.Fragment,null,m.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:eo.string.isRequired,spanStyle:eo.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r},style:i={}}=this.settings,o="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",a=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:r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(i,r,this.rect),s="center"===r?t:`* ${t}`,l="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return m.createElement("div",{style:a,dir:o},m.createElement(m.Fragment,null,m.createElement(e,{label:s,spanStyle:l})))}}}())}}function Vd(e){return vt(e).l<70}function Wd(e,t){const n=vt(e).l/100,r=vt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Bd(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var Yd={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 i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(Wd(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,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=Bd({r:s,a:e},n),o=Bd({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:Vd(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Kd(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 Gd(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(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*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:Kd(s)}}var Jd={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,u=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),c=Gd({size:t.size,fill:t.fill,angle:l+Math.PI,...u});c.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(c)}}var i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Zd(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",B(e))};e.interaction("hammer",B(Hammer))}(t)),e.use(Ud()),e.component("pie-dividers",Yd),e.component("negative-indicators",Jd),e}var Xd={};function Qd(){Qd.init.call(this)}Xd.isObject=function(e){return"object"==typeof e&&null!==e},Xd.isNumber=function(e){return"number"==typeof e},Xd.isUndefined=function(e){return void 0===e},Xd.isFunction=function(e){return"function"==typeof e};var ep=Qd;Qd.EventEmitter=Qd,Qd.prototype._events=void 0,Qd.prototype._maxListeners=void 0,Qd.defaultMaxListeners=10,Qd.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Qd.prototype.setMaxListeners=function(e){if(!Xd.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Qd.prototype.emit=function(e){var t,n,r,i,o,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],Xd.isUndefined(n))return!1;if(Xd.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,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(Xd.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},Qd.prototype.addListener=function(e,t){var n;if(!Xd.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Xd.isFunction(t.listener)?t.listener:t),this._events[e]?Xd.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Xd.isObject(this._events[e])&&!this._events[e].warned)&&((n=Xd.isUndefined(this._maxListeners)?Qd.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Xd.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),Xd.isFunction(console.trace)&&console.trace()));return this},Qd.prototype.on=Qd.prototype.addListener,Qd.prototype.once=function(e,t){if(!Xd.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},Qd.prototype.removeListener=function(e,t){var n,r,i,o;if(!Xd.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||Xd.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Xd.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;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},Qd.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],Xd.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},Qd.prototype.listeners=function(e){return this._events&&this._events[e]?Xd.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Qd.listenerCount=function(e,t){return e._events&&e._events[t]?Xd.isFunction(e._events[t])?1:e._events[t].length:0};var tp=K(ep);const np=e=>(Object.keys(tp.prototype).forEach((t=>{e[t]=tp.prototype[t]})),tp.init(e),e);function rp({picasso:e}){var t;const n=S(),r=C(),i=E(),[o,u]=k(),c=function(){const e={};return np(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),d=T(),p=R(),h=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[f,m]=k(!1);return c.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[0])||void 0===o||!o.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:d,isInSelections:h,isLassoActionActive:f,setIsLassoActionActive:m,translator:p}),D((()=>(o&&(o.interactions.lasso.active=()=>f),{...c.lasso})),[o,f,h,p.language()]),M((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),o=t.chart({element:r,data:[],settings:{}}),p=a({chart:o,actions:c,selections:i,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const h=s({legendScrollOffset:0,rotation:0});h.intercept("rotation",(e=>(h.get("rotation")+e)%(2*Math.PI))),h.onChanged("rotation",(()=>{o.update({partialData:!0})}));const f=l();return c.on("selections-start",(()=>{o.brush("selection").start()})),u({picasso:t,chart:o,selectionService:p,viewState:h,viewCache:f,interactions:c}),()=>{p.destroy(),o.destroy(),c.removeAllListeners(),delete c.select,h.intercept("rotation",void 0),h.onChanged("rotation",void 0)}}),[]),o}const ip={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 op(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const ap={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={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,u=o[t]*(n>l?1:n/l),c=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(u,n),width:Math.min(c,l)},r()):(e={height:u,width:c},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function sp(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,u;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var c;if(i=e.session.options||(null===(c=e.enigmaModel)||void 0===c?void 0:c.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return u=void 0!==i.secure?i.secure:i.isSecure,o=u?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await ap.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function lp(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,u=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!u)return[];const[c]=u,d=c.size||"small",p=c.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===c.cId){h=e;break}const f=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&f[h]&&(m=f[h]),"media"===p&&null!==(a=c.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return sp(c,d,s);if("url"===p)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&op(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await ap.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await ap.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,c,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(op(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await ap.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const up={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(lp(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},cp={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await up.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>up.checkIfPromisesExist({customTooltipModel:e})};const dp=(e,t)=>{var n,r,i;const o=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===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:ip.CHART.CHART_PARENT_TYPE,qId:ip.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},pp=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:ip.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const hp={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=ip.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:ip.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await hp.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=ip.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=ip.CHART.STATE,a=dp(t,o),s=await e.createSessionObject(a),l=pp(t);if(s.id!==ip.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const u=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=u,u;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var u,c,d,p;const e=n.length>0&&void 0!==(null===(u=n[0].data)||void 0===u?void 0:u.value)?[null===(c=n[0].data)||void 0===c?void 0:c.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,f;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(f=e.source)&&void 0!==f&&f.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(ip.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(p=s.miniChartToken.model)||void 0===p?void 0:p.genericType})}}catch(t){await hp.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(hp.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(ip.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=ip.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function fp(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function mp(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=ip.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function gp(e){const t=mp();return e.filter((e=>t[e.id]))}const yp={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 i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const u=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!u||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[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(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[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===u.value&&r.label===u.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=yp.getAttrExprData(a);o.length||n.length?cp.handlePromises({customTooltipModel:i,nodes:yp.getDataNodes(s,o.length>0?o: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!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&hp.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>cp.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[ip.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[ip.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[ip.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(gp(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[ip.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[ip.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=fp(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===gp(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=fp(e)||[];[...i,t].forEach((e=>{const t=gp(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=mp(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[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:ve.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=ve.detectTextDirection(e.src),r=[],i={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"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function vp(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case ip.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case ip.CUSTOM.TITLE:case ip.CUSTOM.DESCRIPTION:case ip.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const bp={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>vp(t,e,r,n)}}};const xp={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[ip.CUSTOM.TITLE]:!0,[ip.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=yp.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===ip.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===ip.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>be.getMeasure(e,t))),e,i)}};function wp({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(xp.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function Sp(e){const t=ip.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function Cp(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var Ep={attrExpr:{migrateProperties(e){var t,n;const r=ie(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=Cp(r);return o=function(e,t){return t.concat(e.map((e=>Sp(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=Sp(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(Cp(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){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:kp}=ip;function Tp({flags:e,layout:t,app:n,model:r,picasso:o,chart:a,translator:s,localeInfo:l,embed:u,options:c}){const d={properties:void 0},p=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:yp,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:o,chart:a,translator:s,localeInfo:l,embed:u}),h="rtl"===c.direction,f=()=>{var e;const n=!(null===(e=d.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{d.properties=e},isEnabled:()=>f(),hideBasic:()=>f()&&i(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=wp({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===kp.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===kp.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>yp.checkIfPromisesExist({customTooltipModel:p}),createImageRow:({value:e,h:t})=>yp.getImageRow(e,{h:t,rtl:h}),addImages:({nodes:r})=>{const i=yp.getDataNodes(a,r),{attrExps:o}=yp.getAttrExprData(t);return cp.handlePromises({customTooltipModel:p,nodes:i,attrExps:o,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(f()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&u&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>hp.createContainer({layout:t,ctx:{h:e,rtl:h}}),createLimitationRow:()=>yp.getFooterRow(s.get("properties.tooltip.notselectedmessage"),h),show:({nodes:e,properties:t})=>hp.show({app:n,properties:t,selectedNodes:e,customTooltipModel:p,rtl:h}),hasAlternateState:()=>{var e;return!(null===(e=p.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>hp.hide({app:n,customTooltipModel:p}),destroy:()=>hp.destroyVisualization({customTooltipModel:p})}}}function Rp(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function Dp({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:d}=o.getStyles();return u({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:d},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:i,create:o,util:a})=>{const[u]=n,{title:c,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];c&&h.push(o.text({value:c,style:{bold:!0}})),d&&h.push(o.text({value:d}));const f=s.hideBasic();if(f&&!p.length&&(c||d)||h.push(o.text({value:u.data.label,style:{bold:!0}})),!f){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=u.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=u.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(u.desc.share)}))}p&&h.push(...p.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=u.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},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 Mp({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const qp=.8,Pp=.55,Np=.3,Lp={CORNER_RADIUS:0,INNER_RADIUS:Pp,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},Ip=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=qp,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:Pp;e.donut.showAsDonut&&(o=qp-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:qp,Ap=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:Pp;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=qp-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},Op=({layout:e},t)=>{var n,r,i,o,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],u=l&&l.field?l.field:void 0,c="qDimensionInfo/0"===u,d=u?t.ds.field(u).raw():null,p=d&&(d.label||d.title||d.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:f}=t.chart,m=he.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>f(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:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:u?{field:u,label:p,value:e=>c?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?bp.getNode(e,{dimensionCount:m}):void 0,radius:h?g(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:Ap({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?Lp.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:Lp.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(i=y.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:Lp.STROKE.COLOR,outerRadius:Ip({layout:e},t,y),cornerRadius:null!==(o=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==o?o:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function zp({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:Pp,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=qp-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function jp(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 Fp({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}}}const Hp=()=>({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}}}),$p=()=>({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}}});function _p(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function Up(e){return e.node.data.num.label}function Vp(e){return e.node.data.radius.label}function Wp(e,t,n){if(e.dataPoint.auto)return n?Up:_p;if("share"===e.dataPoint.labelMode)return _p;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Vp:Up}return null}function Bp({data:e}){return e?e.label:""}function Yp(e){const t=parseInt(e,10);if(!isNaN(t))return t}const Kp=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Gp(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:Pp)>Np}function Jp({node:e,data:t}){return ie({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Zp(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:Yp(r.fontSize),fontFamily:r.fontFamily,label:Bp,linkData:({node:e,data:t})=>ie({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(Wp(e,t,!1)){const r=function(e,t,n){return{label:Wp(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&Gp(e)?"inside":"into",onBackground:e.donut.showAsDonut&&Gp(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=Se(ie(t,r),n.theme);o.linkData=Jp,i.push(o)}return{key:"pie-labels",type:"labels",renderer:Ji(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Xp({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=Wp(e,t,!0),i=Kp(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,u=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",renderer:Ji(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:Yp(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:Bp,linkData:({data:e})=>e},{fontSize:Yp(s.fontSize),fontFamily:s.fontFamily,fill:u&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Zp(e,n,t))}const Qp=(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)),i=(r||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 i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},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 eh(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}function th(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=eh(e,t),o=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*qp;return(o-r)**2+(a-i)**2<=s**2}const nh=(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 i=eh(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),rh=(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()}}}),ih=(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 oh(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&th(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 ah=(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()&&th(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}}}),sh=(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}}}),lh=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[ah(e,{}),nh(e,t,{}),...n]:[Qp(e,{}),ih(e,{}),ah(e,{}),rh(e,{}),sh(e,{}),nh(e,t,{}),...n]});function uh(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[lh(t,r,o.gestures),oh(t),o.native]}function ch({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 dh({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,i=t.styleService.axis.title.getStyle();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:i.fontFamily,fontSize:i.fontSize,color:i.color}}}function ph({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 i=he.getValue(e,"qHyperCube.qSize.qcy");if(he.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<i)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 o=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":o.length!==r.length&&"NegativeOrZeroValues"}(e,t),{fontFamily:i}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:i}=t,{rtl:o}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:se[e].alignment},settings:{label:i.get(`Object.Disclaimer.${e}`),rtl:o},style:r}}(r,t,n,{fontFamily:i})}function hh({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return ie(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&ie(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),o={scales:i};let a=[];const s=ph({layout:e},r,t);if(s&&"center"===s.layout.dock)return{components:[s]};const l=t.constraints.select||t.constraints.active,u=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return i.fillRange&&u.components[0]&&("right"===u.components[0].layout.dock||"left"===u.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[Op({layout:e,settings:o},r),zp({layout:e},r),jp(r),Fp({layout:e},r),dh({layout:e},r,t),...u.components,Mp({settings:o,scaleKey:"fill",legend:u.components[0]||{},onEdited:r.onSelect}),$p(),Hp(),Xp({layout:{components:e.components,dataPoint:ie({},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:uh(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:ch({settings:o},r),strategy:de(0,r)}}function fh({instance:e,services:t,picasso:n,flags:i}){const o=S(),a=q(),s=P(),l=R(),u=A(),c=N(),d=E(),p=I(),{qLocaleInfo:f}=O(),[m]=j((()=>{if(!t)return Promise.resolve();Ep.attrExpr.updateProperties(a,c);return Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:u,legendProps:c.legend,layout:c,localeInfo:f,hc:c.qHyperCube,colorProps:{...c.color,useBaseColors:e(c)}})}),a&&!c.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])}),[t]);M((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(c)}),[c]),M((()=>{if(!e||!m)return;const{chart:g,viewState:y,interactions:v,viewCache:b}=e,{colorService:x,pluginService:w,themeService:S,tooltipService:C,styleService:E}=t,k=o.viewState||{};c.snapshotData||(y.preventSet("legendScrollOffset",k.legendScrollOffset||0),y.preventSet("rotation",k.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))}(c,y),C.expando.set("properties",m[1]);const T=n.data("q")({key:"qHyperCube",data:c.qHyperCube,config:{localeInfo:f}}),R=[{type:"q",key:"qHyperCube",data:c.qHyperCube,config:{localeInfo:f}},...x.getData()],D={slice:{arc:"qMeasureInfo/0"}};c.qHyperCube.qMeasureInfo.length>1&&(D.slice.outerRadius="qMeasureInfo/1");const M=function(e,t){if(t.slice.outerRadius)return 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;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(n.data("q")({data:c.qHyperCube,config:{localeInfo:f}}),D),q=d?()=>{const e=g.brush("selection");r.selections(e,{},c).forEach((e=>{d.select(e)}))}:()=>{},P=c.snapshotData&&!o.freeResize?{width:(c.snapshotData.content.size||c.snapshotData.object.size).w,height:(c.snapshotData.content.size||c.snapshotData.object.size).h}:void 0,N=t=>e.selectionService.getIsSelectionLocked(t),L=()=>hh({layout:c,context:{rtl:"rtl"===o.direction,theme:u,translator:l,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:T,model:a,app:s,chart:g,onSelect:q,isLocked:N,interactions:v,constraints:p,translator:l,viewState:y,dataRowCount:M,encodings:D,colorService:x,pluginService:w,themeService:S,styleService:E,tooltipService:C,debouncer:h,properties:m[1],logicalSize:P,flags:i,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!Gi.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:y,options:o,layout:c,viewCache:b,chart:g})}});e.generateSettings=L;const I=L();g.update({data:R,settings:I}),b.set("chartWidth",g.element.clientWidth),b.set("chartHeight",g.element.clientHeight),b.set("hasZeroLine",I.components.filter((e=>"zeroLine"===e.key)).length>0),Gi.cacheProperties({viewCache:b,layout:c}),o.effect&&c.effectProperties?o.effect.update(c,g,{encodings:D}):c.effectPath||g.brush("highlight").end()}),[e,m,o.direction,o.effectProperties,p,u.name(),l.language()])}const mh="legend-cat";function gh({instance:e,services:t}){const n=C(),r=N();H((i=>{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}}(i,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:fe(t,mh),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:i,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),$((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:fe(e.chart,"legend-cat")})})),[e])}const yh={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},vh={getDimensions:e=>yh.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>yh.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>yh.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>yh.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=yh.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=yh.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 bh={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>vh.getNumMeasures(e)>=1},showLegend:e=>{const t=yh.getValue(e,"color.auto"),n=yh.getValue(e,"color.expressionIsColor"),r=yh.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!yh.getValue(e,"color.auto")&&"byDimension"===yh.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===yh.getValue(e,"color.useDimColVal")&&yh.setValue(e,"color.useDimColVal",!1),!yh.getValue(e,"color.auto")&&"byDimension"===yh.getValue(e,"color.mode")&&"libraryItem"===yh.getValue(e,"color.byDimDef.type"))},xh=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=bh;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)&&!yh.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=yh.getValue(e,"color.auto");return yh.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===yh.getValue(e,"color.mode")&&!0===yh.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>yh.getValue(e,"legend.show")&&i(e)}}};function wh(e){return new xh(e)}const Sh={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}}}}}}},Ch=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},Eh={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}}}}},kh=(e,t,n,r)=>{const i=f({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{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}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:Ch("axis.title",i,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:Ch("label.name",i,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:Ch("label.value",i,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:Ch("legend.title",i,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:Ch("legend.label",i,r)}}}:void 0}}},Th=wh("hard");const Rh=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(o(e,"color.mode","byDimension"),o(e,"color.byDimDef.activeDimensionIndex",0),o(e,"color.persistent",!1))},Dh=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},Mh=e=>{var t;const{flags:n,translator:r}=e||{},i=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,a=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),s={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:Rh},colorMode:{options:Dh}}}}},l={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||o(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,i){i.dimensionTitle=!e}}}}}}},u={uses:"settings",items:{simpleStyling:null!=n&&n.isEnabled("PIECHART_SIMPLE_STYLING")?Sh:void 0,simpleLabels:l,general:{items:{showDisclaimer:null!=n&&n.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!=n&&n.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_PIECHART")?kh(a,n,r,i):Eh,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:Th.color.colorMode.options},persistentColors:{show:Th.color.persistentColors.show}}},simpleColors:s,legend:{show:Th.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:Th.legend.showTitle.show},dock:{show:Th.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return u},qh={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)}}}}}}},Ph={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}}}}},Nh={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function Lh(e){return{type:"items",component:"accordion",items:{data:qh,sorting:Ph,addons:Nh,settings:Mh(e)}}}const Ih=wh("explore"),Ah=Lh();var Oh={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:Ah.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:Ah.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:Ih.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&Ih.color.useDimColVal.show(e))}}}}}}};const zh="slices";function jh(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function Fh(e){return e.data.num.label}function Hh(e){return e.data.radius.label}function $h(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?Fh:jh;if("share"===e.dataPoint.labelMode)return jh;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Hh:Fh;return Fh}(n,r)(e,t)}function _h(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 Uh{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.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(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,u=n.element.getBoundingClientRect(),c=(i+o)/2,d=u.left-r.left+l.x*(s.x+a*Math.sin(c)),p=u.top-r.top+l.y*(s.y-a*Math.cos(c)),h=Math.cos(c)>0?"top":"bottom",f=Math.sin(c)>0?"right":"left";return{title:_h(n),label:$h(n,this.chart.formatter,e,t),orientation:`${h}${f}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=ie(!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=ie(e.options,{effect:null}),n?t.getProperties().then((e=>ie(e,{effectPath:null,effectProperties:null,dataPoint:ie(!0,{},e.originalModelSettings.dataPoint),legend:ie(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class Vh extends Uh{init(e,t,n,r){return e.options=ie(!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(zh).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class Wh extends Uh{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(zh).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,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(zh).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===zh)).map(((n,r)=>{const i=$h(n,this.chart.formatter,e,t);return{text:`${_h(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=ie(!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 Bh="/effects/highlight-value",Yh="/effects/maxmin";var Kh={isCompatible:({effectPath:e})=>e===Yh||e===Bh,create:e=>e.effectPath===Yh?new Vh(e):e.effectPath===Bh?new Wh(e):null};function Gh(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(o=o.object)||void 0===o?void 0:o.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function Jh(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 Zh(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function Xh({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){Zh(e),Jh(t),yp.addCallbackCustomTooltip(t)},move(e,t){Zh(e),Jh(t),yp.moveCallbackCustomTooltip(t,e)},remove(e,t){yp.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){Zh(e),Jh(r),yp.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){Jh(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 Qh=e=>e.qMax<=0,ef=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(Qh));function tf(e){return{definition:Lh(e),softDefinition:Oh,support:{snapshot:ef,export:ef,exportData:!0,sharing:ef,viewData:!0,effects:!0},effects:Kh,extendMetrics:Gh,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=_.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Xh(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>_.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function nf(e){return{properties:{version:"1.26.9",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:Lp.STROKE.COLOR},cornerRadius:Lp.CORNER_RADIUS,innerRadius:Lp.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:[Xh(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=_.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Xh(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>_.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(U).forEach((t=>{e.add(U[t])}))}}(e.translator);const n=Zd();return{qae:nf(e),ext:tf(e),component(){const e=rp({picasso:n}),r=function({flags:e,picasso:t,instance:n}){const r=q(),i=P(),o=R(),a=C(),[s,l]=k(),u=N(),h=L(),f=I(),m=S(),g=A(),{qLocaleInfo:y}=O(),v=z();return M((()=>{if(!n)return;a.style.overflow="hidden";const s=c({picasso:n.picasso,model:r,app:i,translator:o,config:{auto:!1,key:"fill"}}),b=d({picassoInstance:n.picasso,plugins:h,pluginArgs:Rp(u)}),x=Tp({flags:e,layout:u,app:i,model:r,picasso:t,chart:n.chart,translator:o,localeInfo:y,embed:v,options:m}),w=p({theme:g,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),S=Dp({app:i,chart:n.chart,translator:o,layout:u,constraints:f,options:m,themeService:w,colorService:s,custom:x}),C=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),i=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(o=i("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=i("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:u,themeService:w,flags:e});l({colorService:s,pluginService:b,themeService:w,tooltipService:S,styleService:C})}),[r,i,n,u,o.language(),f,m.direction,g.name()]),s}({flags:t,picasso:n,instance:e});fh({instance:e,services:r,picasso:n,flags:t}),function({instance:e}){const t=N(),n=S(),r=F();M((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:i,generateSettings:o}=e;i.update({settings:o()}),r.set("chartWidth",i.element.clientWidth),r.set("chartHeight",i.element.clientHeight),n.effect&&n.effect.update(t,i)}),[r.width,r.height])}({instance:e}),gh({instance:e,services:r})}}}))}}}));
|
|
14
|
+
*/Ms();var Ns=Date.now(),Ls="fnValues"+Ns,Is="fnStyle"+ ++Ns,As=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Ca(e,{},n);return r[Is]=t,r},onProcessStyle:function(e,t){if(Ls in t||Is in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[Ls]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Is];o&&(i.style=o(e)||{});var a=i[Ls];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},Os="@global",zs="@global ",js=function(){function e(e,t,n){for(var r in this.type="global",this.at=Os,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new ss(ko({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Fs=function(){function e(e,t,n){this.type="global",this.at=Os,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(zs.length);this.rule=n.jss.createRule(r,t,ko({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Hs=/\s*,\s*/g;function $s(e,t){for(var n=e.split(Hs),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function _s(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Os)return new js(e,t,n);if("@"===e[0]&&e.substr(0,zs.length)===zs)return new Fs(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[Os]:null;if(i){for(var o in i)t.addRule(o,i[o],ko({},n,{selector:$s(o,e.selector)}));delete r[Os]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,Os.length)===Os){var o=$s(i.substr(Os.length),e.selector);t.addRule(o,r[i],ko({},n,{selector:o})),delete r[i]}}(e,t))}}}var Us=/\s*,\s*/g,Vs=/&/g,Ws=/\$([\w-]+)/g;function Bs(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Us),r=e.split(Us),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Vs,a):a+" "+l}return i}function n(e,t,n){if(n)return ko({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=ko({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(l,c,a),d){var h=t(u,l.selector);s||(s=e(c,o)),h=h.replace(Ws,s);var f=l.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],ko({},a,{selector:h})):c.addRule(f,r[u],ko({},a,{selector:h}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var Ys=/[A-Z]/g,Ks=/^ms-/,Gs={};function Js(e){return"-"+e.toLowerCase()}function Zs(e){if(Gs.hasOwnProperty(e))return Gs[e];var t=e.replace(Ys,Js);return Gs[e]=Ks.test(t)?"-"+t:t}function Xs(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Zs(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Xs):t.fallbacks=Xs(e.fallbacks)),t}var Qs=qs&&CSS?CSS.px:"px",el=qs&&CSS?CSS.ms:"ms",tl=qs&&CSS?CSS.percent:"%";function nl(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var rl=nl({"animation-delay":el,"animation-duration":el,"background-position":Qs,"background-position-x":Qs,"background-position-y":Qs,"background-size":Qs,border:Qs,"border-bottom":Qs,"border-bottom-left-radius":Qs,"border-bottom-right-radius":Qs,"border-bottom-width":Qs,"border-left":Qs,"border-left-width":Qs,"border-radius":Qs,"border-right":Qs,"border-right-width":Qs,"border-top":Qs,"border-top-left-radius":Qs,"border-top-right-radius":Qs,"border-top-width":Qs,"border-width":Qs,"border-block":Qs,"border-block-end":Qs,"border-block-end-width":Qs,"border-block-start":Qs,"border-block-start-width":Qs,"border-block-width":Qs,"border-inline":Qs,"border-inline-end":Qs,"border-inline-end-width":Qs,"border-inline-start":Qs,"border-inline-start-width":Qs,"border-inline-width":Qs,"border-start-start-radius":Qs,"border-start-end-radius":Qs,"border-end-start-radius":Qs,"border-end-end-radius":Qs,margin:Qs,"margin-bottom":Qs,"margin-left":Qs,"margin-right":Qs,"margin-top":Qs,"margin-block":Qs,"margin-block-end":Qs,"margin-block-start":Qs,"margin-inline":Qs,"margin-inline-end":Qs,"margin-inline-start":Qs,padding:Qs,"padding-bottom":Qs,"padding-left":Qs,"padding-right":Qs,"padding-top":Qs,"padding-block":Qs,"padding-block-end":Qs,"padding-block-start":Qs,"padding-inline":Qs,"padding-inline-end":Qs,"padding-inline-start":Qs,"mask-position-x":Qs,"mask-position-y":Qs,"mask-size":Qs,height:Qs,width:Qs,"min-height":Qs,"max-height":Qs,"min-width":Qs,"max-width":Qs,bottom:Qs,left:Qs,top:Qs,right:Qs,inset:Qs,"inset-block":Qs,"inset-block-end":Qs,"inset-block-start":Qs,"inset-inline":Qs,"inset-inline-end":Qs,"inset-inline-start":Qs,"box-shadow":Qs,"text-shadow":Qs,"column-gap":Qs,"column-rule":Qs,"column-rule-width":Qs,"column-width":Qs,"font-size":Qs,"font-size-delta":Qs,"letter-spacing":Qs,"text-decoration-thickness":Qs,"text-indent":Qs,"text-stroke":Qs,"text-stroke-width":Qs,"word-spacing":Qs,motion:Qs,"motion-offset":Qs,outline:Qs,"outline-offset":Qs,"outline-width":Qs,perspective:Qs,"perspective-origin-x":tl,"perspective-origin-y":tl,"transform-origin":tl,"transform-origin-x":tl,"transform-origin-y":tl,"transform-origin-z":tl,"transition-delay":el,"transition-duration":el,"vertical-align":Qs,"flex-basis":Qs,"shape-margin":Qs,size:Qs,gap:Qs,grid:Qs,"grid-gap":Qs,"row-gap":Qs,"grid-row-gap":Qs,"grid-column-gap":Qs,"grid-template-rows":Qs,"grid-template-columns":Qs,"grid-auto-rows":Qs,"grid-auto-columns":Qs,"box-shadow-x":Qs,"box-shadow-y":Qs,"box-shadow-blur":Qs,"box-shadow-spread":Qs,"font-line-height":Qs,"text-shadow-x":Qs,"text-shadow-y":Qs,"text-shadow-blur":Qs});function il(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=il(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=il(i,t[i],n);else for(var o in t)t[o]=il(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||rl[e];return!a||0===t&&a===Qs?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ol(e){void 0===e&&(e={});var t=nl(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=il(r,e[r],t);return e},onChangeValue:function(e,n){return il(n,e,t)}}}var al="",sl="",ll="",cl="",ul=ma&&"ontouchstart"in document.documentElement;if(ma){var dl={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},pl=document.createElement("p").style;for(var hl in dl)if(hl+"Transform"in pl){al=hl,sl=dl[hl];break}"Webkit"===al&&"msHyphens"in pl&&(al="ms",sl=dl.ms,cl="edge"),"Webkit"===al&&"-apple-trailing-word"in pl&&(ll="apple")}var fl={js:al,css:sl,vendor:ll,browser:cl,isTouch:ul};var ml={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===fl.js?"-webkit-"+e:fl.css+e)}},gl={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===fl.js?fl.css+"print-"+e:e)}},yl=/[-\s]+(.)?/g;function vl(e,t){return t?t.toUpperCase():""}function bl(e){return e.replace(yl,vl)}function xl(e){return bl("-"+e)}var wl,Sl={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===fl.js){var n="mask-image";if(bl(n)in t)return e;if(fl.js+xl(n)in t)return fl.css+e}return e}},Cl={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==fl.vendor||fl.isTouch?e:fl.css+e)}},El={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:fl.css+e)}},kl={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:fl.css+e)}},Tl={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===fl.js||"ms"===fl.js&&"edge"!==fl.browser?fl.css+e:e)}},Rl={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===fl.js||"ms"===fl.js||"apple"===fl.vendor?fl.css+e:e)}},Dl={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===fl.js?"WebkitColumn"+xl(e)in t&&fl.css+"column-"+e:"Moz"===fl.js&&("page"+xl(e)in t&&"page-"+e))}},Ml={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===fl.js)return e;var n=e.replace("-inline","");return fl.js+xl(n)in t&&fl.css+n}},ql={supportedProperty:function(e,t){return bl(e)in t&&e}},Pl={supportedProperty:function(e,t){var n=xl(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:fl.js+n in t?fl.css+e:"Webkit"!==fl.js&&"Webkit"+n in t&&"-webkit-"+e}},Nl={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===fl.js?""+fl.css+e:e)}},Ll={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===fl.js?fl.css+"scroll-chaining":e)}},Il={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Al={supportedProperty:function(e,t){var n=Il[e];return!!n&&(fl.js+xl(n)in t&&fl.css+n)}},Ol={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},zl=Object.keys(Ol),jl=function(e){return fl.css+e},Fl={supportedProperty:function(e,t,n){var r=n.multiple;if(zl.indexOf(e)>-1){var i=Ol[e];if(!Array.isArray(i))return fl.js+xl(i)in t&&fl.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(fl.js+xl(i[0])in t))return!1;return i.map(jl)}return!1}},Hl=[ml,gl,Sl,Cl,El,kl,Tl,Rl,Dl,Ml,ql,Pl,Nl,Ll,Al,Fl],$l=Hl.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),_l=Hl.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,ta(t.noPrefill)),e}),[]),Ul={};if(ma){wl=document.createElement("p");var Vl=window.getComputedStyle(document.documentElement,"");for(var Wl in Vl)isNaN(Wl)||(Ul[Vl[Wl]]=Vl[Wl]);_l.forEach((function(e){return delete Ul[e]}))}function Bl(e,t){if(void 0===t&&(t={}),!wl)return e;if(null!=Ul[e])return Ul[e];"transition"!==e&&"transform"!==e||(t[e]=e in wl.style);for(var n=0;n<$l.length&&(Ul[e]=$l[n](e,wl.style,t),!Ul[e]);n++);try{wl.style[e]=""}catch(e){return!1}return Ul[e]}var Yl,Kl={},Gl={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Jl=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Zl(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Bl(t):", "+Bl(n);return r||(t||n)}function Xl(e,t){var n=t;if(!Yl||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Kl[r])return Kl[r];try{Yl.style[e]=n}catch(e){return Kl[r]=!1,!1}if(Gl[e])n=n.replace(Jl,Zl);else if(""===Yl.style[e]&&("-ms-flex"===(n=fl.css+n)&&(Yl.style[e]="-ms-flexbox"),Yl.style[e]=n,""===Yl.style[e]))return Kl[r]=!1,!1;return Yl.style[e]="",Kl[r]=n,Kl[r]}function Ql(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=Bl(n);o&&o!==n&&(i=!0);var a=!1,s=Xl(o,ka(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===fl.js?e:"@"+fl.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Xl(t,ka(e))||e}}}function ec(){return{plugins:[As(),_s(),Bs(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Xs(e[t]);return e}return Xs(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Zs(t);return t===r?e:(n.prop(r,e),null)}},ol(),"undefined"==typeof window?null:Ql(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}})]};var e}function tc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=ko({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}ma&&(Yl=document.createElement("p"));var nc={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},rc=nc,ic=m.createContext(null);function oc(){return m.useContext(ic)}var ac,sc=Ms(ec()),lc={disableGeneration:!1,generateClassName:pa(),jss:sc,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},cc=m.createContext(lc);function uc(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,o=void 0!==i&&i,a=jo(e,["children","injectFirst","disableGeneration"]),s=ko({},m.useContext(cc),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!ac){var l=document.head;ac=document.createComment("mui-inject-first"),l.insertBefore(ac,l.firstChild)}s.jss=Ms({plugins:ec().plugins,insertionPoint:ac})}return m.createElement(cc.Provider,{value:s},t)}var dc=-1e9;var pc={};function hc(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=rc.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},rc.set(i.sheetsManager,o,r,s));var l=ko({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=i.sheetsRegistry;if(0===s.refs){var u;i.sheetsCache&&(u=rc.get(i.sheetsCache,o,r));var d=o.create(r,a);u||((u=i.jss.createStyleSheet(d,ko({link:!1},l))).attach(),i.sheetsCache&&rc.set(i.sheetsCache,o,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Ps(d)}if(s.dynamicStyles){var p=i.jss.createStyleSheet(s.dynamicStyles,ko({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=tc({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function fc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=void 0===o?pc:o,s=jo(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=ko({},i);return Object.keys(o).forEach((function(e){a[e]=Do(a[e],o[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:dc+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=oc()||a,r=ko({},m.useContext(cc),s),o=m.useRef(),c=m.useRef();!function(e,t){var n,r=m.useRef([]),i=m.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),m.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return hc(i,e),c.current=!1,o.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=rc.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(rc.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,l]),m.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=tc({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return u}}function mc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=mc(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function gc(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=mc(e))&&(r&&(r+=" "),r+=t);return r}var yc={exports:{}},vc={},bc="function"==typeof Symbol&&Symbol.for,xc=bc?Symbol.for("react.element"):60103,wc=bc?Symbol.for("react.portal"):60106,Sc=bc?Symbol.for("react.fragment"):60107,Cc=bc?Symbol.for("react.strict_mode"):60108,Ec=bc?Symbol.for("react.profiler"):60114,kc=bc?Symbol.for("react.provider"):60109,Tc=bc?Symbol.for("react.context"):60110,Rc=bc?Symbol.for("react.async_mode"):60111,Dc=bc?Symbol.for("react.concurrent_mode"):60111,Mc=bc?Symbol.for("react.forward_ref"):60112,qc=bc?Symbol.for("react.suspense"):60113,Pc=bc?Symbol.for("react.suspense_list"):60120,Nc=bc?Symbol.for("react.memo"):60115,Lc=bc?Symbol.for("react.lazy"):60116,Ic=bc?Symbol.for("react.block"):60121,Ac=bc?Symbol.for("react.fundamental"):60117,Oc=bc?Symbol.for("react.responder"):60118,zc=bc?Symbol.for("react.scope"):60119;function jc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case xc:switch(e=e.type){case Rc:case Dc:case Sc:case Ec:case Cc:case qc:return e;default:switch(e=e&&e.$$typeof){case Tc:case Mc:case Lc:case Nc:case kc:return e;default:return t}}case wc:return t}}}function Fc(e){return jc(e)===Dc}vc.AsyncMode=Rc,vc.ConcurrentMode=Dc,vc.ContextConsumer=Tc,vc.ContextProvider=kc,vc.Element=xc,vc.ForwardRef=Mc,vc.Fragment=Sc,vc.Lazy=Lc,vc.Memo=Nc,vc.Portal=wc,vc.Profiler=Ec,vc.StrictMode=Cc,vc.Suspense=qc,vc.isAsyncMode=function(e){return Fc(e)||jc(e)===Rc},vc.isConcurrentMode=Fc,vc.isContextConsumer=function(e){return jc(e)===Tc},vc.isContextProvider=function(e){return jc(e)===kc},vc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===xc},vc.isForwardRef=function(e){return jc(e)===Mc},vc.isFragment=function(e){return jc(e)===Sc},vc.isLazy=function(e){return jc(e)===Lc},vc.isMemo=function(e){return jc(e)===Nc},vc.isPortal=function(e){return jc(e)===wc},vc.isProfiler=function(e){return jc(e)===Ec},vc.isStrictMode=function(e){return jc(e)===Cc},vc.isSuspense=function(e){return jc(e)===qc},vc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Sc||e===Dc||e===Ec||e===Cc||e===qc||e===Pc||"object"==typeof e&&null!==e&&(e.$$typeof===Lc||e.$$typeof===Nc||e.$$typeof===kc||e.$$typeof===Tc||e.$$typeof===Mc||e.$$typeof===Ac||e.$$typeof===Oc||e.$$typeof===zc||e.$$typeof===Ic)},vc.typeOf=jc,yc.exports=vc;var Hc=yc.exports,$c={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_c={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Uc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vc={};function Wc(e){return Hc.isMemo(e)?Uc:Vc[e.$$typeof]||$c}Vc[Hc.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vc[Hc.Memo]=Uc;var Bc=Object.defineProperty,Yc=Object.getOwnPropertyNames,Kc=Object.getOwnPropertySymbols,Gc=Object.getOwnPropertyDescriptor,Jc=Object.getPrototypeOf,Zc=Object.prototype;var Xc=function e(t,n,r){if("string"!=typeof n){if(Zc){var i=Jc(n);i&&i!==Zc&&e(t,i,r)}var o=Yc(n);Kc&&(o=o.concat(Kc(n)));for(var a=Wc(t),s=Wc(n),l=0;l<o.length;++l){var c=o[l];if(!(_c[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Gc(n,c);try{Bc(t,c,u)}catch(e){}}}}return t},Qc=Y(Xc);function eu(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=jo(r,["name"]),a=i,s="function"==typeof t?function(e){return{root:function(n){return t(ko({theme:e},n))}}}:{root:t},l=fc(s,ko({Component:e,name:i||e.displayName,classNamePrefix:a},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=m.forwardRef((function(t,r){var i,o,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=jo(t,["children","className","clone","component"]),h=gc(l(t).root,c),f=p;if(n&&(i=f,o=n,a={},Object.keys(i).forEach((function(e){-1===o.indexOf(e)&&(a[e]=i[e])})),f=a),u)return m.cloneElement(s,ko({className:gc(s.props.className,h)},f));if("function"==typeof s)return s(ko({className:h},f));var g=d||e;return m.createElement(g,ko({ref:r,className:h},f),s)}));return Qc(c,e),c}}function tu(e){var t=e.children,n=e.theme,r=oc(),i=m.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):ko({},e,t)}(r,n);return null!=e&&(e[ua]=null!==r),e}),[n,r]);return m.createElement(ic.Provider,{value:i},t)}var nu=ca(),ru=function(e){var t=eu(e);return function(e,n){return t(e,ko({defaultTheme:nu},n))}};function iu(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,i=t.withTheme,o=void 0!==i&&i,a=t.name,s=jo(t,["defaultTheme","withTheme","name"]),l=a,c=fc(e,ko({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=m.forwardRef((function(e,t){e.classes;var i,s=e.innerRef,l=jo(e,["classes","innerRef"]),u=c(ko({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=oc()||r,a&&(d=ha({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),m.createElement(n,ko({ref:s||t,classes:u},d))}));return Qc(u,n),u}}(e,ko({defaultTheme:nu},t))}function ou(e){if("string"!=typeof e)throw new Error(Po(7));return e.charAt(0).toUpperCase()+e.slice(1)}function au(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function su(e){return e&&e.ownerDocument||document}function lu(e){return su(e).defaultView||window}function cu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var uu="undefined"!=typeof window?g.useLayoutEffect:g.useEffect;function du(e){var t=g.useRef(e);return uu((function(){t.current=e})),g.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function pu(e,t){return g.useMemo((function(){return null==e&&null==t?null:function(n){cu(e,n),cu(t,n)}}),[e,t])}var hu=!0,fu=!1,mu=null,gu={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function yu(e){e.metaKey||e.altKey||e.ctrlKey||(hu=!0)}function vu(){hu=!1}function bu(){"hidden"===this.visibilityState&&fu&&(hu=!0)}function xu(e){var t,n,r,i=e.target;try{return i.matches(":focus-visible")}catch(e){}return hu||(n=(t=i).type,!("INPUT"!==(r=t.tagName)||!gu[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function wu(){fu=!0,window.clearTimeout(mu),mu=window.setTimeout((function(){fu=!1}),100)}function Su(){return{isFocusVisible:xu,onBlurVisible:wu,ref:g.useCallback((function(e){var t,n=x.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",yu,!0),t.addEventListener("mousedown",vu,!0),t.addEventListener("pointerdown",vu,!0),t.addEventListener("touchstart",vu,!0),t.addEventListener("visibilitychange",bu,!0))}),[])}}var Cu=!1,Eu=m.createContext(null),ku="unmounted",Tu="exited",Ru="entering",Du="entered",Mu="exiting",qu=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Tu,r.appearStatus=Ru):i=Du:i=t.unmountOnExit||t.mountOnEnter?ku:Tu,r.state={status:i},r.nextCallback=null,r}ba(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ku?{status:Tu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ru&&n!==Du&&(t=Ru):n!==Ru&&n!==Du||(t=Mu)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ru){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:w.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tu&&this.setState({status:ku})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[w.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Cu?this.safeSetState({status:Du},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Ru},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Du},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:w.findDOMNode(this);t&&!Cu?(this.props.onExit(r),this.safeSetState({status:Mu},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Tu},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Tu},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:w.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ku)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=zo(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(Eu.Provider,{value:null},"function"==typeof n?n(e,r):m.cloneElement(m.Children.only(n),r))},t}(m.Component);function Pu(){}qu.contextType=Eu,qu.propTypes={},qu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pu,onEntering:Pu,onEntered:Pu,onExit:Pu,onExiting:Pu,onExited:Pu},qu.UNMOUNTED=ku,qu.EXITED=Tu,qu.ENTERING=Ru,qu.ENTERED=Du,qu.EXITING=Mu;var Nu=qu;function Lu(e,t){var n=Object.create(null);return e&&y.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&v(e)?t(e):e}(e)})),n}function Iu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Au(e,t,n){var r=Lu(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(v(a)){var s=o in t,l=o in r,c=t[o],u=v(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&v(c)&&(i[o]=b(a,{onExited:n.bind(null,a),in:c.props.in,exit:Iu(a,"exit",e),enter:Iu(a,"enter",e)})):i[o]=b(a,{in:!1}):i[o]=b(a,{onExited:n.bind(null,a),in:!0,exit:Iu(a,"exit",e),enter:Iu(a,"enter",e)})}})),i}var Ou=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},zu=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(xa(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}ba(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,Lu(n.children,(function(e){return b(e,{onExited:r.bind(null,e),in:!0,appear:Iu(e,"appear",n),enter:Iu(e,"enter",n),exit:Iu(e,"exit",n)})}))):Au(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=Lu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ko({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=zo(e,["component","childFactory"]),i=this.state.contextValue,o=Ou(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?m.createElement(Eu.Provider,{value:i},o):m.createElement(Eu.Provider,{value:i},m.createElement(t,r,o))},t}(m.Component);zu.propTypes={},zu.defaultProps={component:"div",childFactory:function(e){return e}};var ju=zu;function Fu(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var Hu=g.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,p=jo(e,["classes","className","component","square","elevation","variant"]);return g.createElement(o,ko({className:gc(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),$u=iu((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),ko({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Hu),_u="undefined"==typeof window?g.useEffect:g.useLayoutEffect;function Uu(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=g.useState(!1),p=d[0],h=d[1],f=gc(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},y=gc(t.child,p&&t.childLeaving,r&&t.childPulsate),v=du(c);return _u((function(){if(!s){h(!0);var e=setTimeout(v,u);return function(){clearTimeout(e)}}}),[v,s,u]),g.createElement("span",{className:f,style:m},g.createElement("span",{className:y}))}var Vu=g.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=jo(e,["center","classes","className"]),s=g.useState([]),l=s[0],c=s[1],u=g.useRef(0),d=g.useRef(null);g.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=g.useRef(!1),h=g.useRef(null),f=g.useRef(null),m=g.useRef(null);g.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var y=g.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(ta(e),[g.createElement(Uu,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),v=g.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var u,d,g,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;u=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(g=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(g+=1);else{var C=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,E=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;g=Math.sqrt(Math.pow(C,2)+Math.pow(E,2))}e.touches?null===f.current&&(f.current=function(){y({pulsate:o,rippleX:u,rippleY:d,rippleSize:g,cb:n})},h.current=setTimeout((function(){f.current&&(f.current(),f.current=null)}),80)):y({pulsate:o,rippleX:u,rippleY:d,rippleSize:g,cb:n})}}),[r,y]),b=g.useCallback((function(){v({},{pulsate:!0})}),[v]),x=g.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&f.current)return e.persist(),f.current(),f.current=null,void(h.current=setTimeout((function(){x(e,t)})));f.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return g.useImperativeHandle(t,(function(){return{pulsate:b,start:v,stop:x}}),[b,v,x]),g.createElement("span",ko({className:gc(i.root,o),ref:m},a),g.createElement(ju,{component:null,exit:!0},l))})),Wu=iu((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(g.memo(Vu)),Bu=g.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,p=void 0!==d&&d,h=e.disableRipple,f=void 0!==h&&h,m=e.disableTouchRipple,y=void 0!==m&&m,v=e.focusRipple,b=void 0!==v&&v,w=e.focusVisibleClassName,S=e.onBlur,C=e.onClick,E=e.onFocus,k=e.onFocusVisible,T=e.onKeyDown,R=e.onKeyUp,D=e.onMouseDown,M=e.onMouseLeave,q=e.onMouseUp,P=e.onTouchEnd,N=e.onTouchMove,L=e.onTouchStart,I=e.onDragLeave,A=e.tabIndex,O=void 0===A?0:A,z=e.TouchRippleProps,j=e.type,F=void 0===j?"button":j,H=jo(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),$=g.useRef(null);var _=g.useRef(null),U=g.useState(!1),V=U[0],W=U[1];p&&V&&W(!1);var B=Su(),Y=B.isFocusVisible,K=B.onBlurVisible,G=B.ref;function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return du((function(r){return t&&t(r),!n&&_.current&&_.current[e](r),!0}))}g.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),$.current.focus()}}}),[]),g.useEffect((function(){V&&b&&!f&&_.current.pulsate()}),[f,b,V]);var Z=J("start",D),X=J("stop",I),Q=J("stop",q),ee=J("stop",(function(e){V&&e.preventDefault(),M&&M(e)})),te=J("start",L),ne=J("stop",P),re=J("stop",N),ie=J("stop",(function(e){V&&(K(e),W(!1)),S&&S(e)}),!1),oe=du((function(e){$.current||($.current=e.currentTarget),Y(e)&&(W(!0),k&&k(e)),E&&E(e)})),ae=function(){var e=x.findDOMNode($.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=g.useRef(!1),le=du((function(e){b&&!se.current&&V&&_.current&&" "===e.key&&(se.current=!0,e.persist(),_.current.stop(e,(function(){_.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),C&&C(e))})),ce=du((function(e){b&&" "===e.key&&_.current&&V&&!e.defaultPrevented&&(se.current=!1,e.persist(),_.current.stop(e,(function(){_.current.pulsate(e)}))),R&&R(e),C&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&C(e)})),ue=u;"button"===ue&&H.href&&(ue="a");var de={};"button"===ue?(de.type=F,de.disabled=p):("a"===ue&&H.href||(de.role="button"),de["aria-disabled"]=p);var pe=pu(r,t),he=pu(G,$),fe=pu(pe,he),me=g.useState(!1),ge=me[0],ye=me[1];g.useEffect((function(){ye(!0)}),[]);var ve=ge&&!f&&!p;return g.createElement(ue,ko({className:gc(s.root,l,V&&[s.focusVisible,w],p&&s.disabled),onBlur:ie,onClick:C,onFocus:oe,onKeyDown:le,onKeyUp:ce,onMouseDown:Z,onMouseLeave:ee,onMouseUp:Q,onDragLeave:X,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:p?-1:O},de,H),a,ve?g.createElement(Wu,ko({ref:_,center:o},z)):null)})),Yu=iu({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Bu),Ku={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Gu=g.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,h=e.noWrap,f=void 0!==h&&h,m=e.paragraph,y=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,w=void 0===x?Ku:x,S=jo(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(y?"p":w[b]||Ku[b])||"span";return g.createElement(C,ko({className:gc(i.root,o,"inherit"!==b&&i[b],"initial"!==s&&i["color".concat(ou(s))],f&&i.noWrap,p&&i.gutterBottom,y&&i.paragraph,"inherit"!==r&&i["align".concat(ou(r))],"initial"!==u&&i["display".concat(ou(u))]),ref:t},S))})),Ju=iu((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Gu),Zu=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,h=e.disableFocusRipple,f=void 0!==h&&h,m=e.endIcon,y=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,w=void 0===x?"medium":x,S=e.startIcon,C=e.type,E=void 0===C?"button":C,k=e.variant,T=void 0===k?"text":k,R=jo(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),D=S&&g.createElement("span",{className:gc(r.startIcon,r["iconSize".concat(ou(w))])},S),M=m&&g.createElement("span",{className:gc(r.endIcon,r["iconSize".concat(ou(w))])},m);return g.createElement(Yu,ko({className:gc(r.root,r[T],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(ou(a))],"medium"!==w&&[r["".concat(T,"Size").concat(ou(w))],r["size".concat(ou(w))]],p&&r.disableElevation,u&&r.disabled,b&&r.fullWidth),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:gc(r.focusVisible,y),ref:t,type:E},R),g.createElement("span",{className:r.label},D,n,M))})),Xu=iu((function(e){return{root:ko({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Oo(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Oo(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Oo(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Oo(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Oo(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Oo(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Oo(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(Zu);var Qu="undefined"!=typeof window?g.useLayoutEffect:g.useEffect,ed=g.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=g.useState(null),l=s[0],c=s[1],u=pu(g.isValidElement(n)?n.ref:null,t);return Qu((function(){o||c(function(e){return e="function"==typeof e?e():e,x.findDOMNode(e)}(r)||document.body)}),[r,o]),Qu((function(){if(l&&!o)return cu(t,l),function(){cu(t,null)}}),[t,l,o]),Qu((function(){a&&(l||o)&&a()}),[a,l,o]),o?g.isValidElement(n)?g.cloneElement(n,{ref:u}):n:l?x.createPortal(n,l):l})),td=ed;function nd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rd(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function id(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(ta(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&nd(e,r)}))}function od(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function ad(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=su(e);return t.body===e?lu(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(rd(o)+a,"px"),n=su(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(rd(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var sd=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return ya(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&nd(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);id(t,e.mountNode,e.modalRef,r,!0);var i=od(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=od(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=ad(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=od(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&nd(e.modalRef,!0),id(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&nd(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function ld(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=g.useRef(),p=g.useRef(null),h=g.useRef(null),f=g.useRef(),m=g.useRef(null),y=g.useCallback((function(e){m.current=x.findDOMNode(e)}),[]),v=pu(t.ref,y),b=g.useRef();return g.useEffect((function(){b.current=u}),[u]),!b.current&&u&&"undefined"!=typeof window&&(f.current=l().activeElement),g.useEffect((function(){if(u){var e=su(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(f.current&&f.current.focus&&f.current.focus(),f.current=null)}}}),[r,o,s,c,u]),g.createElement(g.Fragment,null,g.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),g.cloneElement(t,{ref:v}),g.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var cd={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},ud=g.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=jo(e,["invisible","open"]);return i?g.createElement("div",ko({"aria-hidden":!0,ref:t},o,{style:ko({},cd.root,r?cd.invisible:{},o.style)})):null}));var dd=new sd,pd=g.forwardRef((function(e,t){var n=oc(),r=ha({name:"MuiModal",props:ko({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?ud:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,h=r.disableBackdropClick,f=void 0!==h&&h,m=r.disableEnforceFocus,y=void 0!==m&&m,v=r.disableEscapeKeyDown,b=void 0!==v&&v,w=r.disablePortal,S=void 0!==w&&w,C=r.disableRestoreFocus,E=void 0!==C&&C,k=r.disableScrollLock,T=void 0!==k&&k,R=r.hideBackdrop,D=void 0!==R&&R,M=r.keepMounted,q=void 0!==M&&M,P=r.manager,N=void 0===P?dd:P,L=r.onBackdropClick,I=r.onClose,A=r.onEscapeKeyDown,O=r.onRendered,z=r.open,j=jo(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=g.useState(!0),H=F[0],$=F[1],_=g.useRef({}),U=g.useRef(null),V=g.useRef(null),W=pu(V,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return su(U.current)},K=function(){return _.current.modalRef=V.current,_.current.mountNode=U.current,_.current},G=function(){N.mount(K(),{disableScrollLock:T}),V.current.scrollTop=0},J=du((function(){var e=function(e){return e="function"==typeof e?e():e,x.findDOMNode(e)}(u)||Y().body;N.add(K(),e),V.current&&G()})),Z=g.useCallback((function(){return N.isTopModal(K())}),[N]),X=du((function(e){U.current=e,e&&(O&&O(),z&&Z()?G():nd(V.current,!0))})),Q=g.useCallback((function(){N.remove(K())}),[N]);if(g.useEffect((function(){return function(){Q()}}),[Q]),g.useEffect((function(){z?J():B&&c||Q()}),[z,Q,B,c,J]),!q&&!z&&(!B||H))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:la}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),B&&(te.onEnter=au((function(){$(!1)}),s.props.onEnter),te.onExited=au((function(){$(!0),c&&Q()}),s.props.onExited)),g.createElement(td,{ref:X,container:u,disablePortal:S},g.createElement("div",ko({ref:W,onKeyDown:function(e){"Escape"===e.key&&Z()&&(A&&A(e),b||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},j,{style:ko({},ee.root,!z&&H?ee.hidden:{},j.style)}),D?null:g.createElement(o,ko({open:z,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!f&&I&&I(e,"backdropClick"))}},a)),g.createElement(ld,{disableEnforceFocus:y,disableAutoFocus:p,disableRestoreFocus:E,getDoc:Y,isEnabled:Z,open:z},g.cloneElement(s,te))))})),hd=pd;function fd(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var md={entering:{opacity:1,transform:fd(1)},entered:{opacity:1,transform:"none"}},gd=g.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,p=e.style,h=e.timeout,f=void 0===h?"auto":h,m=e.TransitionComponent,y=void 0===m?Nu:m,v=jo(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=g.useRef(),x=g.useRef(),w=oc()||nu,S=w.unstable_strictMode&&!i,C=g.useRef(null),E=pu(n.ref,t),k=pu(S?C:void 0,E),T=function(e){return function(t,n){if(e){var r=na(S?[C.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},R=T(l),D=T((function(e,t){!function(e){e.scrollTop}(e);var n,r=Fu({style:p,timeout:f},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===f?(n=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=i,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:o}),w.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),M=T(s),q=T(d),P=T((function(e){var t,n=Fu({style:p,timeout:f},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===f?(t=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:i}),w.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=fd(.75),c&&c(e)})),N=T(u);return g.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),g.createElement(y,ko({appear:!0,in:o,nodeRef:S?C:void 0,onEnter:D,onEntered:M,onEntering:R,onExit:P,onExited:N,onExiting:q,addEndListener:function(e,t){var n=S?e:t;"auto"===f&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===f?null:f},v),(function(e,t){return g.cloneElement(n,ko({style:ko({opacity:0,transform:fd(.75),visibility:"exited"!==e||o?void 0:"hidden"},md[e],p,n.props.style),ref:k},t))}))}));gd.muiSupportAuto=!0;var yd=g.createContext({}),vd=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,p=jo(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=g.useMemo((function(){return{dense:l}}),[l]);return g.createElement(yd.Provider,{value:h},g.createElement(a,ko({className:gc(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),bd=iu({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(vd),xd="undefined"==typeof window?g.useEffect:g.useLayoutEffect,wd=g.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=e.ContainerComponent,h=void 0===p?"li":p,f=e.ContainerProps,m=(f=void 0===f?{}:f).className,y=jo(f,["className"]),v=e.dense,b=void 0!==v&&v,w=e.disabled,S=void 0!==w&&w,C=e.disableGutters,E=void 0!==C&&C,k=e.divider,T=void 0!==k&&k,R=e.focusVisibleClassName,D=e.selected,M=void 0!==D&&D,q=jo(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),P=g.useContext(yd),N={dense:b||P.dense||!1,alignItems:r},L=g.useRef(null);xd((function(){o&&L.current&&L.current.focus()}),[o]);var I,A,O=g.Children.toArray(l),z=O.length&&(I=O[O.length-1],A=["ListItemSecondaryAction"],g.isValidElement(I)&&-1!==A.indexOf(I.type.muiName)),j=pu(g.useCallback((function(e){L.current=x.findDOMNode(e)}),[]),t),F=ko({className:gc(c.root,u,N.dense&&c.dense,!E&&c.gutters,T&&c.divider,S&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,M&&c.selected),disabled:S},q),H=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=gc(c.focusVisible,R),H=Yu),z?(H=F.component||d?H:"div","li"===h&&("li"===H?H="div":"li"===F.component&&(F.component="div")),g.createElement(yd.Provider,{value:N},g.createElement(h,ko({className:gc(c.container,m),ref:j},y),g.createElement(H,F,O),O.pop()))):g.createElement(yd.Provider,{value:N},g.createElement(H,ko({ref:j},F),O))})),Sd=iu((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(wd),Cd=g.forwardRef((function(e,t){var n=e.classes,r=e.className,i=jo(e,["classes","className"]),o=g.useContext(yd);return g.createElement("div",ko({className:gc(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),Ed=iu((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Cd),kd=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,h=jo(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=g.useContext(yd).dense,m=null!=c?c:n;null==m||m.type===Ju||a||(m=g.createElement(Ju,ko({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var y=d;return null==y||y.type===Ju||a||(y=g.createElement(Ju,ko({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),y)),g.createElement("div",ko({className:gc(r.root,i,f&&r.dense,l&&r.inset,m&&y&&r.multiline),ref:t},h),m,y)})),Td=iu({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(kd);function Rd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Dd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Md(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function qd(e){return"function"==typeof e?e():e}var Pd=g.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,p=e.container,h=e.elevation,f=void 0===h?8:h,m=e.getContentAnchorEl,y=e.marginThreshold,v=void 0===y?16:y,b=e.onEnter,w=e.onEntered,S=e.onEntering,C=e.onExit,E=e.onExited,k=e.onExiting,T=e.open,R=e.PaperProps,D=void 0===R?{}:R,M=e.transformOrigin,q=void 0===M?{vertical:"top",horizontal:"left"}:M,P=e.TransitionComponent,N=void 0===P?gd:P,L=e.transitionDuration,I=void 0===L?"auto":L,A=e.TransitionProps,O=void 0===A?{}:A,z=jo(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),j=g.useRef(),F=g.useCallback((function(e){if("anchorPosition"===l)return a;var t=qd(r),n=(t&&1===t.nodeType?t:su(j.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+Rd(n,i),left:n.left+Dd(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),H=g.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),$=g.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Rd(e,q.vertical)+t,horizontal:Dd(e,q.horizontal)}}),[q.horizontal,q.vertical]),_=g.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},i=$(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Md(i)};var o=F(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=lu(qd(r)),p=d.innerHeight-v,h=d.innerWidth-v;if(a<v){var f=a-v;a-=f,i.vertical+=f}else if(c>p){var m=c-p;a-=m,i.vertical+=m}if(s<v){var g=s-v;s-=g,i.horizontal+=g}else if(u>h){var y=u-h;s-=y,i.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Md(i)}}),[r,l,F,H,$,v]),U=g.useCallback((function(){var e=j.current;if(e){var t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[_]),V=g.useCallback((function(e){j.current=x.findDOMNode(e)}),[]);g.useEffect((function(){T&&U()})),g.useImperativeHandle(n,(function(){return T?{updatePosition:function(){U()}}:null}),[T,U]),g.useEffect((function(){if(T){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){U()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[T,U]);var W=I;"auto"!==I||N.muiSupportAuto||(W=void 0);var B=p||(r?su(qd(r)).body:void 0);return g.createElement(hd,ko({container:B,open:T,ref:t,BackdropProps:{invisible:!0},className:gc(u.root,d)},z),g.createElement(N,ko({appear:!0,in:T,onEnter:b,onEntered:w,onExit:C,onExited:E,onExiting:k,timeout:W},O,{onEntering:au((function(e,t){S&&S(e,t),U()}),O.onEntering)}),g.createElement($u,ko({elevation:f,ref:V},D,{className:gc(u.paper,D.className)}),c)))})),Nd=iu({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Pd);function Ld(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Id({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:Ld(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return m.createElement("i",{style:i},m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},m.createElement("path",{d:e})))}const Ad=ru(Sd)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Od={menuItem:"alternative-menu-item",titleButton:"title-button",activeTitleButton:"active-title-button"},zd=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Od.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function jd({title:e,selected:t,onClick:n}){const r=ye.detectTextDirection(e);return m.createElement(Ad,{role:"menuitem",button:!0,onClick:n,className:Od.menuItem,onKeyDown:zd},m.createElement(Ed,{style:{minWidth:32}},m.createElement(Id,{d:t?Qi.d:""})),m.createElement(Td,{primaryTypographyProps:{dir:r}},e))}jd.propTypes={title:go.string.isRequired,selected:go.bool,onClick:go.func.isRequired},jd.defaultProps={selected:!1};const Fd={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"}}};function Hd({alignTo:e,changeTo:t,current:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map((e=>m.createElement(jd,{key:e.id,title:e.title,onClick:()=>t(e.id)})));return m.createElement(Nd,po({anchorEl:e,open:s,onClose:a},Fd[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),m.createElement(bd,{dense:!0,dir:r,"aria-label":l,component:"nav"},m.createElement(jd,{title:n,selected:!0,onClick:a}),c))}Hd.propTypes={alignTo:go.any,changeTo:go.func.isRequired,current:go.string.isRequired,dir:go.string.isRequired,dock:go.string.isRequired,list:go.array,onClose:go.func.isRequired,show:go.bool.isRequired,instruction:go.string.isRequired},Hd.defaultProps={list:[],alignTo:null};const $d="alternative-menu-item",_d="title-button",Ud="active-title-button",Vd=ru((({children:e,...t})=>m.createElement(Xu,po({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Wd=ru(Xu)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class Bd extends m.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=m.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&n&&e.getAlternatives().then((e=>{this.setState({hasValidAlternatives:0!==e.length})}))}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(e)}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${_d}`);t&&t.classList.add(Ud)}this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e});document.querySelector(`.${$d}`).focus()}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${_d}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${Ud}`);e&&(e.classList.remove(Ud),setTimeout((()=>{e.focus()}),50))}}render(){const{titleData:e,popover:t,translator:n,disabled:r,isDimension:i,padding:o,minWidth:a,hasAlternative:s,supportConditional:l}=this.props,c={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},u=e.breadcrumbs.length,d=r||this.state.inSelection,p=e.breadcrumbs.map(((t,n)=>m.createElement(Vd,{style:{display:"flex",alignItems:"center",color:d&&"rgba(89, 89, 89, 0.8)",pointerEvents:d?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>d?void 0:e.drillUp(u-n),title:t},m.createElement("span",{style:c},t),m.createElement(Id,po({},to,{size:"small",style:{margin:"0 8px"}}))))),h=l?this.state.hasValidAlternatives:s,f=t&&!this.state.open?this.openPopover:this.closePopover,g=!t||r||this.state.inSelection,y={display:"flex",alignItems:"center",width:"100%",color:g&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&g&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(y.background="rgba(0,0,0,0.08)");o&&(y.padding=o),a&&(y.minWidth=a);const v=ye.detectTextDirection(e.text),b=m.createElement(Vd,{"aria-label":n.get(`Accessibility.${t&&h?"Alternative":"Normal"}.Instructions`,[e.text]),style:y,onClick:g?void 0:f,title:e.text,tabIndex:g?-1:0,onFocus:g?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:g?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${_d} ${e.id}`,"data-id":e.id},e.locked&&m.createElement(Id,po({},Xi,{size:"small",title:n.get("Tooltip.selections.locked")})),m.createElement("span",{style:c,dir:v},e.text),t&&h&&m.createElement(Id,po({},eo,{size:"small",style:{margin:"0 8px"}})));return m.createElement(m.Fragment,null,e.icon&&e.icon.onClick&&m.createElement(Wd,{variant:"outlined",onClick:e.icon.onClick,disabled:!e.icon.onClick},m.createElement(Id,po({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip)}))),e.icon&&!e.icon.onClick&&m.createElement(Id,po({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,m.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},b),t&&h&&m.createElement(Hd,{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:n.get("Accessibility.Popover.Instructions")}))}}function Yd(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function Kd(e){function t(e){return!e.isDimension&&pe.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:p,skipAttributeExpressions:h,translator:f,supportConditional:g=!1},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!d?"ltr":"rtl",b=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}(y,this.rect),x=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,w=x&&x[a?"qDimensions":"qMeasures"]||[],S=r||i[a?"qDimensionInfo":"qMeasureInfo"],C=a?so:co,E=a?lo:uo,k=l&&l.colorSupport&&l.modifiers&&C({altList:w,app:e,dir:d?"rtl":"ltr",dock:Yd(y),model:l,onChange:c,skipAttributeExpressions:h,translator:f}),T=(R=this.settings.settings).isDimension&&pe.getValue(R,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings);var R;const D=S.map(((e,t)=>{const r="number"==typeof e.explicitColumn?e.explicitColumn:t,i=E(e,r,l),o=t===S.length-1;return m.createElement(m.Fragment,{key:e.cId},m.createElement(Bd,{popover:k,titleData:i,model:l,translator:f,selections:p,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:T,supportConditional:g}),!o&&m.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return m.createElement("div",{style:b,dir:v},D)}}}Bd.propTypes={disabled:go.bool.isRequired,padding:go.string,minWidth:go.string,titleData:go.shape({breadcrumbs:go.arrayOf(go.string).isRequired,icon:go.shape({path:go.shape({d:go.string.isRequired}),tooltip:go.string.isRequired,onClick:go.func}),index:go.number.isRequired,locked:go.bool.isRequired,text:go.string.isRequired,popoverText:go.string.isRequired,drillUp:go.func,id:go.string.isRequired}).isRequired,popover:go.shape({dir:go.string.isRequired,dock:go.string.isRequired,changeTo:go.func.isRequired,getAlternatives:go.func.isRequired}),translator:go.shape({get:go.func.isRequired}).isRequired,selections:go.shape({isActive:go.func,addListener:go.func,removeListener:go.func}),style:go.shape({fontSize:go.string,color:go.string,fontFamily:go.string}).isRequired,isDimension:go.bool.isRequired,hasAlternative:go.bool.isRequired,supportConditional:go.bool.isRequired},Bd.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const Gd=function(){return ca.apply(void 0,arguments)}({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 Jd=pa({productionPrefix:"q22d7",disableGlobal:!0,seed:""});function Zd(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){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!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={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",w.render(function(e,t){return m.createElement(uc,{generateClassName:t},m.createElement(tu,{theme:Gd},e))}(e,Jd),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&w.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(w.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function Xd(){return function(e){e.renderer("react",Zd()),e.component("data-title",Kd(e.renderer("svg")())),e.component("disclaimer",function(){class e extends m.Component{render(){const{label:e,spanStyle:t}=this.props;return m.createElement(m.Fragment,null,m.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:go.string.isRequired,spanStyle:go.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r},style:i={}}=this.settings,o="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",a=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:r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(i,r,this.rect),s="center"===r?t:`* ${t}`,l="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return m.createElement("div",{style:a,dir:o},m.createElement(m.Fragment,null,m.createElement(e,{label:s,spanStyle:l})))}}}())}}function Qd(e){return yt(e).l<70}function ep(e,t){const n=yt(e).l/100,r=yt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function tp(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var np={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 i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(ep(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,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=tp({r:s,a:e},n),o=tp({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:Qd(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function rp(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 ip(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(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*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:rp(s)}}var op={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=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),u=ip({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 i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function ap(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",B(e))};e.interaction("hammer",B(Hammer))}(t)),e.use(Xd()),e.component("pie-dividers",np),e.component("negative-indicators",op),e}var sp={};function lp(){lp.init.call(this)}sp.isObject=function(e){return"object"==typeof e&&null!==e},sp.isNumber=function(e){return"number"==typeof e},sp.isUndefined=function(e){return void 0===e},sp.isFunction=function(e){return"function"==typeof e};var cp=lp;lp.EventEmitter=lp,lp.prototype._events=void 0,lp.prototype._maxListeners=void 0,lp.defaultMaxListeners=10,lp.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},lp.prototype.setMaxListeners=function(e){if(!sp.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},lp.prototype.emit=function(e){var t,n,r,i,o,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],sp.isUndefined(n))return!1;if(sp.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,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(sp.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},lp.prototype.addListener=function(e,t){var n;if(!sp.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,sp.isFunction(t.listener)?t.listener:t),this._events[e]?sp.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,sp.isObject(this._events[e])&&!this._events[e].warned)&&((n=sp.isUndefined(this._maxListeners)?lp.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,sp.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),sp.isFunction(console.trace)&&console.trace()));return this},lp.prototype.on=lp.prototype.addListener,lp.prototype.once=function(e,t){if(!sp.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},lp.prototype.removeListener=function(e,t){var n,r,i,o;if(!sp.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||sp.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(sp.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;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},lp.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],sp.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},lp.prototype.listeners=function(e){return this._events&&this._events[e]?sp.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},lp.listenerCount=function(e,t){return e._events&&e._events[t]?sp.isFunction(e._events[t])?1:e._events[t].length:0};var up=Y(cp);const dp=e=>(Object.keys(up.prototype).forEach((t=>{e[t]=up.prototype[t]})),up.init(e),e);function pp({picasso:e}){var t;const n=S(),r=C(),i=E(),[o,c]=k(),u=function(){const e={};return dp(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),d=T(),p=R(),h=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[f,m]=k(!1);return u.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[0])||void 0===o||!o.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:d,isInSelections:h,isLassoActionActive:f,setIsLassoActionActive:m,translator:p}),D((()=>(o&&(o.interactions.lasso.active=()=>f),{...u.lasso})),[o,f,h,p.language()]),M((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),o=t.chart({element:r,data:[],settings:{}}),p=a({chart:o,actions:u,selections:i,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const h=s({legendScrollOffset:0,rotation:0});h.intercept("rotation",(e=>(h.get("rotation")+e)%(2*Math.PI))),h.onChanged("rotation",(()=>{o.update({partialData:!0})}));const f=l();return u.on("selections-start",(()=>{o.brush("selection").start()})),c({picasso:t,chart:o,selectionService:p,viewState:h,viewCache:f,interactions:u}),()=>{p.destroy(),o.destroy(),u.removeAllListeners(),delete u.select,h.intercept("rotation",void 0),h.onChanged("rotation",void 0)}}),[]),o}const hp={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 fp(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const mp={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={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=o[t]*(n>l?1:n/l),u=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(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=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function gp(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await mp.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function yp(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",p=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const f=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&f[h]&&(m=f[h]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return gp(u,d,s);if("url"===p)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&fp(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await mp.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await mp.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(fp(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await mp.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const vp={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(yp(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},bp={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await vp.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>vp.checkIfPromisesExist({customTooltipModel:e})};const xp=(e,t)=>{var n,r,i;const o=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===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:hp.CHART.CHART_PARENT_TYPE,qId:hp.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},wp=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:hp.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const Sp={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=hp.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:hp.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await Sp.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=hp.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=hp.CHART.STATE,a=xp(t,o),s=await e.createSessionObject(a),l=wp(t);if(s.id!==hp.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,p;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,f;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(f=e.source)&&void 0!==f&&f.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(hp.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(p=s.miniChartToken.model)||void 0===p?void 0:p.genericType})}}catch(t){await Sp.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(Sp.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(hp.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=hp.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function Cp(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Ep(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=hp.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function kp(e){const t=Ep();return e.filter((e=>t[e.id]))}const Tp={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 i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[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(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[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:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=Tp.getAttrExprData(a);o.length||n.length?bp.handlePromises({customTooltipModel:i,nodes:Tp.getDataNodes(s,o.length>0?o: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!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&Sp.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>bp.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[hp.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[hp.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[hp.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(kp(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[hp.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[hp.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Cp(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===kp(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=Cp(e)||[];[...i,t].forEach((e=>{const t=kp(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=Ep(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[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:ye.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=ye.detectTextDirection(e.src),r=[],i={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"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function Rp(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case hp.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case hp.CUSTOM.TITLE:case hp.CUSTOM.DESCRIPTION:case hp.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const Dp={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Rp(t,e,r,n)}}};const Mp={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[hp.CUSTOM.TITLE]:!0,[hp.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=Tp.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===hp.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===hp.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>ve.getMeasure(e,t))),e,i)}};function qp({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(Mp.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function Pp(e){const t=hp.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function Np(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var Lp={attrExpr:{migrateProperties(e){var t,n;const r=re(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=Np(r);return o=function(e,t){return t.concat(e.map((e=>Pp(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=Pp(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(Np(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){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:Ip}=hp;function Ap({flags:e,layout:t,app:n,model:r,picasso:o,chart:a,translator:s,localeInfo:l,embed:c,options:u}){const d={properties:void 0},p=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:Tp,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:o,chart:a,translator:s,localeInfo:l,embed:c}),h="rtl"===u.direction,f=()=>{var e;const n=!(null===(e=d.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{d.properties=e},isEnabled:()=>f(),hideBasic:()=>f()&&i(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=qp({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Ip.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Ip.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>Tp.checkIfPromisesExist({customTooltipModel:p}),createImageRow:({value:e,h:t})=>Tp.getImageRow(e,{h:t,rtl:h}),addImages:({nodes:r})=>{const i=Tp.getDataNodes(a,r),{attrExps:o}=Tp.getAttrExprData(t);return bp.handlePromises({customTooltipModel:p,nodes:i,attrExps:o,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(f()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&c&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>Sp.createContainer({layout:t,ctx:{h:e,rtl:h}}),createLimitationRow:()=>Tp.getFooterRow(s.get("properties.tooltip.notselectedmessage"),h),show:({nodes:e,properties:t})=>Sp.show({app:n,properties:t,selectedNodes:e,customTooltipModel:p,rtl:h}),hasAlternateState:()=>{var e;return!(null===(e=p.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>Sp.hide({app:n,customTooltipModel:p}),destroy:()=>Sp.destroyVisualization({customTooltipModel:p})}}}function Op(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function zp({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,u="rtl"===i.direction,{fontFamily:d}=o.getStyles();return c({chart:e,translator:t,config:{rtl:u,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:d},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:i,create:o,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];u&&h.push(o.text({value:u,style:{bold:!0}})),d&&h.push(o.text({value:d}));const f=s.hideBasic();if(f&&!p.length&&(u||d)||h.push(o.text({value:c.data.label,style:{bold:!0}})),!f){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(c.desc.share)}))}p&&h.push(...p.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},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 jp({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const Fp=.8,Hp=.55,$p=.3,_p={CORNER_RADIUS:0,INNER_RADIUS:Hp,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},Up=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=Fp,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:Hp;e.donut.showAsDonut&&(o=Fp-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:Fp,Vp=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:Hp;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=Fp-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},Wp=({layout:e},t)=>{var n,r,i,o,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,p=d&&(d.label||d.title||d.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:f}=t.chart,m=pe.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>f(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:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:p,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?Dp.getNode(e,{dimensionCount:m}):void 0,radius:h?g(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:Vp({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?_p.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:_p.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(i=y.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:_p.STROKE.COLOR,outerRadius:Up({layout:e},t,y),cornerRadius:null!==(o=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==o?o:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function Bp({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:Hp,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=Fp-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function Yp(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 Kp({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}}}const Gp=()=>({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}}}),Jp=()=>({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}}});function Zp(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function Xp(e){return e.node.data.num.label}function Qp(e){return e.node.data.radius.label}function eh(e,t,n){if(e.dataPoint.auto)return n?Xp:Zp;if("share"===e.dataPoint.labelMode)return Zp;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Qp:Xp}return null}function th({data:e}){return e?e.label:""}function nh(e){const t=parseInt(e,10);if(!isNaN(t))return t}const rh=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function ih(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:Hp)>$p}function oh({node:e,data:t}){return re({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function ah(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:nh(r.fontSize),fontFamily:r.fontFamily,label:th,linkData:({node:e,data:t})=>re({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(eh(e,t,!1)){const r=function(e,t,n){return{label:eh(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&ih(e)?"inside":"into",onBackground:e.donut.showAsDonut&&ih(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=we(re(t,r),n.theme);o.linkData=oh,i.push(o)}return{key:"pie-labels",type:"labels",renderer:Gi(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function sh({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=eh(e,t,!0),i=rh(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,c=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",renderer:Gi(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:nh(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:th,linkData:({data:e})=>e},{fontSize:nh(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):ah(e,n,t))}const lh=(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)),i=(r||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 i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},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 ch(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}function uh(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=ch(e,t),o=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*Fp;return(o-r)**2+(a-i)**2<=s**2}const dh=(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 i=ch(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),ph=(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()}}}),hh=(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 fh(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&uh(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 mh=(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()&&uh(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}}}),gh=(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}}}),yh=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[mh(e,{}),dh(e,t,{}),...n]:[lh(e,{}),hh(e,{}),mh(e,{}),ph(e,{}),gh(e,{}),dh(e,t,{}),...n]});function vh(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[yh(t,r,o.gestures),fh(t),o.native]}function bh({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 xh({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,i=t.styleService.axis.title.getStyle();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:i.fontFamily,fontSize:i.fontSize,color:i.color}}}function wh({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 i=pe.getValue(e,"qHyperCube.qSize.qcy");if(pe.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<i)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 o=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":o.length!==r.length&&"NegativeOrZeroValues"}(e,t),{fontFamily:i}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:i}=t,{rtl:o}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:ae[e].alignment},settings:{label:i.get(`Object.Disclaimer.${e}`),rtl:o},style:r}}(r,t,n,{fontFamily:i})}function Sh({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return re(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&re(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),o={scales:i};let a=[];const s=wh({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",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return i.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[Wp({layout:e,settings:o},r),Bp({layout:e},r),Yp(r),Kp({layout:e},r),xh({layout:e},r,t),...c.components,jp({settings:o,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),Jp(),Gp(),sh({layout:{components:e.components,dataPoint:re({},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:vh(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:bh({settings:o},r),strategy:ue(0,r)}}function Ch({instance:e,services:t,picasso:n,flags:i}){const o=S(),a=q(),s=P(),l=R(),c=A(),u=N(),d=E(),p=I(),{qLocaleInfo:f}=O(),[m]=j((()=>{if(!t)return Promise.resolve();Lp.attrExpr.updateProperties(a,u);return Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:f,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}})}),a&&!u.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])}),[t]);M((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(u)}),[u]),M((()=>{if(!e||!m)return;const{chart:g,viewState:y,interactions:v,viewCache:b}=e,{colorService:x,pluginService:w,themeService:S,tooltipService:C,styleService:E}=t,k=o.viewState||{};u.snapshotData||(y.preventSet("legendScrollOffset",k.legendScrollOffset||0),y.preventSet("rotation",k.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))}(u,y),C.expando.set("properties",m[1]);const T=n.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}}),R=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}},...x.getData()],D={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(D.slice.outerRadius="qMeasureInfo/1");const M=function(e,t){if(t.slice.outerRadius)return 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;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(n.data("q")({data:u.qHyperCube,config:{localeInfo:f}}),D),q=d?()=>{const e=g.brush("selection");r.selections(e,{},u).forEach((e=>{d.select(e)}))}:()=>{},P=u.snapshotData&&!o.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,N=t=>e.selectionService.getIsSelectionLocked(t),L=()=>Sh({layout:u,context:{rtl:"rtl"===o.direction,theme:c,translator:l,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:T,model:a,app:s,chart:g,onSelect:q,isLocked:N,interactions:v,constraints:p,translator:l,viewState:y,dataRowCount:M,encodings:D,colorService:x,pluginService:w,themeService:S,styleService:E,tooltipService:C,debouncer:h,properties:m[1],logicalSize:P,flags:i,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!Ki.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:y,options:o,layout:u,viewCache:b,chart:g})}});e.generateSettings=L;const I=L();g.update({data:R,settings:I}),b.set("chartWidth",g.element.clientWidth),b.set("chartHeight",g.element.clientHeight),b.set("hasZeroLine",I.components.filter((e=>"zeroLine"===e.key)).length>0),Ki.cacheProperties({viewCache:b,layout:u}),o.effect&&u.effectProperties?o.effect.update(u,g,{encodings:D}):u.effectPath||g.brush("highlight").end()}),[e,m,o.direction,o.effectProperties,p,c.name(),l.language()])}const Eh="legend-cat";function kh({instance:e,services:t}){const n=C(),r=N();H((i=>{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}}(i,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:he(t,Eh),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:i,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),$((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:he(e.chart,"legend-cat")})})),[e])}const Th={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},Rh={getDimensions:e=>Th.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>Th.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>Th.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>Th.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=Th.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=Th.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 Dh={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>Rh.getNumMeasures(e)>=1},showLegend:e=>{const t=Th.getValue(e,"color.auto"),n=Th.getValue(e,"color.expressionIsColor"),r=Th.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!Th.getValue(e,"color.auto")&&"byDimension"===Th.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===Th.getValue(e,"color.useDimColVal")&&Th.setValue(e,"color.useDimColVal",!1),!Th.getValue(e,"color.auto")&&"byDimension"===Th.getValue(e,"color.mode")&&"libraryItem"===Th.getValue(e,"color.byDimDef.type"))},Mh=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=Dh;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)&&!Th.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=Th.getValue(e,"color.auto");return Th.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===Th.getValue(e,"color.mode")&&!0===Th.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>Th.getValue(e,"legend.show")&&i(e)}}};function qh(e){return new Mh(e)}const Ph={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}}}}}}},Nh=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},Lh={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}}}}},Ih=(e,t,n,r)=>{const i=f({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{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}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:Nh("axis.title",i,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:Nh("label.name",i,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:Nh("label.value",i,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:Nh("legend.title",i,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:Nh("legend.label",i,r)}}}:void 0}}},Ah=qh("hard");const Oh=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(o(e,"color.mode","byDimension"),o(e,"color.byDimDef.activeDimensionIndex",0),o(e,"color.persistent",!1))},zh=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},jh=e=>{var t;const{flags:n,translator:r}=e||{},i=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,a=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),s={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:Oh},colorMode:{options:zh}}}}},l={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||o(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,i){i.dimensionTitle=!e}}}}}}},c={uses:"settings",items:{simpleStyling:null!=n&&n.isEnabled("PIECHART_SIMPLE_STYLING")?Ph:void 0,simpleLabels:l,general:{items:{showDisclaimer:null!=n&&n.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!=n&&n.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_PIECHART")?Ih(a,n,r,i):Lh,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:Ah.color.colorMode.options},persistentColors:{show:Ah.color.persistentColors.show}}},simpleColors:s,legend:{show:Ah.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:Ah.legend.showTitle.show},dock:{show:Ah.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return c},Fh={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)}}}}}}},Hh={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}}}}},$h={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function _h(e){return{type:"items",component:"accordion",items:{data:Fh,sorting:Hh,addons:$h,settings:jh(e)}}}const Uh=qh("explore"),Vh=_h();var Wh={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:Vh.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:Vh.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:Uh.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&Uh.color.useDimColVal.show(e))}}}}}}};const Bh="slices";function Yh(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function Kh(e){return e.data.num.label}function Gh(e){return e.data.radius.label}function Jh(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?Kh:Yh;if("share"===e.dataPoint.labelMode)return Yh;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Gh:Kh;return Kh}(n,r)(e,t)}function Zh(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 Xh{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.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(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(i+o)/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)),h=Math.cos(u)>0?"top":"bottom",f=Math.sin(u)>0?"right":"left";return{title:Zh(n),label:Jh(n,this.chart.formatter,e,t),orientation:`${h}${f}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=re(!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=re(e.options,{effect:null}),n?t.getProperties().then((e=>re(e,{effectPath:null,effectProperties:null,dataPoint:re(!0,{},e.originalModelSettings.dataPoint),legend:re(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class Qh extends Xh{init(e,t,n,r){return e.options=re(!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(Bh).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class ef extends Xh{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(Bh).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,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(Bh).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===Bh)).map(((n,r)=>{const i=Jh(n,this.chart.formatter,e,t);return{text:`${Zh(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=re(!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 tf="/effects/highlight-value",nf="/effects/maxmin";var rf={isCompatible:({effectPath:e})=>e===nf||e===tf,create:e=>e.effectPath===nf?new Qh(e):e.effectPath===tf?new ef(e):null};function of(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(o=o.object)||void 0===o?void 0:o.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function af(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 sf(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function lf({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){sf(e),af(t),Tp.addCallbackCustomTooltip(t)},move(e,t){sf(e),af(t),Tp.moveCallbackCustomTooltip(t,e)},remove(e,t){Tp.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){sf(e),af(r),Tp.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){af(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 cf=e=>e.qMax<=0,uf=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(cf));function df(e){return{definition:_h(e),softDefinition:Wh,support:{snapshot:uf,export:uf,exportData:!0,sharing:uf,viewData:!0,effects:!0},effects:rf,extendMetrics:of,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=_.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:lf(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>_.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function pf(e){return{properties:{version:"1.26.11",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:_p.STROKE.COLOR},cornerRadius:_p.CORNER_RADIUS,innerRadius:_p.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:[lf(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=_.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:lf(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>_.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(U).forEach((t=>{e.add(U[t])}))}}(e.translator);const n=ap();return{qae:pf(e),ext:df(e),component(){const e=pp({picasso:n}),r=function({flags:e,picasso:t,instance:n}){const r=q(),i=P(),o=R(),a=C(),[s,l]=k(),c=N(),h=L(),f=I(),m=S(),g=A(),{qLocaleInfo:y}=O(),v=z();return M((()=>{if(!n)return;a.style.overflow="hidden";const s=u({picasso:n.picasso,model:r,app:i,translator:o,config:{auto:!1,key:"fill"}}),b=d({picassoInstance:n.picasso,plugins:h,pluginArgs:Op(c)}),x=Ap({flags:e,layout:c,app:i,model:r,picasso:t,chart:n.chart,translator:o,localeInfo:y,embed:v,options:m}),w=p({theme:g,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),S=zp({app:i,chart:n.chart,translator:o,layout:c,constraints:f,options:m,themeService:w,colorService:s,custom:x}),C=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),i=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(o=i("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=i("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:c,themeService:w,flags:e});l({colorService:s,pluginService:b,themeService:w,tooltipService:S,styleService:C})}),[r,i,n,c,o.language(),f,m.direction,g.name()]),s}({flags:t,picasso:n,instance:e});Ch({instance:e,services:r,picasso:n,flags:t}),function({instance:e}){const t=N(),n=S(),r=F();M((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:i,generateSettings:o}=e;i.update({settings:o()}),r.set("chartWidth",i.element.clientWidth),r.set("chartHeight",i.element.clientHeight),n.effect&&n.effect.update(t,i)}),[r.width,r.height])}({instance:e}),kh({instance:e,services:r})}}}))}}}));
|