@nebula.js/sn-pie-chart 1.22.1 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +5 -5
- package/dist/sn-pie-chart.js +11 -16
- package/dist/sn-pie-chart.systemjs.js +5 -5
- package/package.json +1 -1
- package/sn-pie-chart-ext/dist/sn-pie-chart.js +11 -16
- package/sn-pie-chart-ext/sn-pie-chart.qext +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pie-chart v1.
|
|
2
|
+
* @nebula.js/sn-pie-chart v1.24.0
|
|
3
3
|
* Copyright (c) 2023 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["hammerjs","picasso.js","picasso-plugin-q","react","react-dom","@nebula.js/stardust","qlik-chart-modules","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,w,E,C,k,S,T,R,N,P,D,M,L,I,A,O,q,z,F,W;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.default,i=e.Children,a=e.isValidElement,s=e.cloneElement},function(e){l=e.default},function(e){c=e.useOptions,u=e.useElement,d=e.useSelections,p=e.useState,f=e.useLayout,h=e.useTranslator,m=e.useAction,g=e.useEffect,v=e.useModel,y=e.useApp,b=e.useStaleLayout,x=e.usePlugins,w=e.useConstraints,E=e.useTheme,C=e.useAppLayout,k=e.useEmbed,S=e.usePromise,T=e.useRect,R=e.onTakeSnapshot,N=e.useImperativeHandle},function(e){P=e.selectionService,D=e.storage,M=e.cache,L=e.getValue,I=e.tooltipService,A=e.colorService,O=e.pluginService,q=e.themeService,z=e.debouncer,F=e.setValue},function(e){W=e.default}],execute:function(){var H={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};var B={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function $(e){return B[e]||e}function j(e){return function(t,n,r){var o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((function(t){t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));var n=$(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),(a=a||new e.Manager(r)).add(new e[n](t.options)),Object.keys(t.events).forEach((function(e){t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((function(t){var n=$(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((function(e){return""!==e}))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((function(e){return""!==e}))))})))}function d(){l.forEach((function(e){Object.keys(e.events).forEach((function(t){a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set:function(e){!function(e){s=e.key,i={chart:t,mediator:n,settings:o=e},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off:function(){c=!1,d()},on:function(){c=!0,0===l.length&&u()},destroy:function(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var U=Object.prototype.hasOwnProperty,_=Object.prototype.toString,Y=Object.defineProperty,K=Object.getOwnPropertyDescriptor,X=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===_.call(e)},G=function(e){if(!e||"[object Object]"!==_.call(e))return!1;var t,n=U.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&U.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||U.call(e,t)},Z=function(e,t){Y&&"__proto__"===t.name?Y(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},J=function(e,t){if("__proto__"===t){if(!U.call(e,t))return;if(K)return K(e,t).value}return e[t]},Q=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=J(s,n),s!==(o=J(t,n))&&(u&&o&&(G(o)||(i=X(o)))?(i?(i=!1,a=r&&X(r)?r:[]):a=r&&G(r)?r:{},Z(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Z(s,{name:n,newValue:o}));return s};const ee="center",te="bottom";var ne={NoDataExist:{label:"NoDataExist",alignment:ee,default:!0},OnlyNanData:{label:"OnlyNanData",alignment:ee,default:!0},OnlyNegativeOrZeroValues:{label:"OnlyNegativeOrZeroValues",alignment:ee,default:!1},LimitedData:{label:"LimitedData",alignment:te,default:!1},OnlyNanColor:{label:"OnlyNanColor",alignment:te,default:!1},NegativeOrZeroValues:{label:"NegativeOrZeroValues",alignment:te,default:!1},DataRangeIncludingZero:{label:"DataRangeIncludingZero",alignment:te,default:!1}};const re=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],oe={};re.forEach((([e,{width:t,height:n}])=>{oe[e]={width:t,height:n}}));const ie={getLayoutModes:()=>oe,getLayoutMode(e,t){let n;for(n=0;n<re.length;++n)if(e>=re[n][1].width&&t>=re[n][1].height)return re[n][0];return"SPARK"}};function ae(e,t){return{layoutModes:ie.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const se=(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i};function le(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const ce=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),ue=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),de=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),pe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>ce.test(e),isRtlChar:e=>ue.test(e)||de.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],pe.isLtrChar(r))return"ltr";if(pe.isRtlChar(r))return"rtl"}return"ltr"}},fe={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=""+n.coloring.label),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=""+e}}return a.fill=void 0===r._fillColor?fe.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:""+e(t.source.key).field(t.source.field).title(),value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=pe.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=pe.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:pe.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=pe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=pe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,fe.getColorSymbol(e,t)]:[fe.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=pe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=pe.detectTextDirection(e.value);let l;return l=o?r?[e.value,fe.getColorSymbol(t,n)]:[fe.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function he(e){const t=parseInt(e,10);if(!isNaN(t))return t}const me=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function ge(e,t){const n=e.themeService.getStyles();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=n.themeService.getStyles();return{position:e.position,justify:e.justify,fill:e.onBackground?r.label.value.color:me(t),overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:he(n.label.value.fontSize),fontFamily:n.label.value.fontFamily,label:e.label}}function ve(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ye(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function be(){}var xe=.7,we=1/xe,Ee="\\s*([+-]?\\d+)\\s*",Ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Se=/^#([0-9a-f]{3,8})$/,Te=new RegExp(`^rgb\\(${Ee},${Ee},${Ee}\\)$`),Re=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),Ne=new RegExp(`^rgba\\(${Ee},${Ee},${Ee},${Ce}\\)$`),Pe=new RegExp(`^rgba\\(${ke},${ke},${ke},${Ce}\\)$`),De=new RegExp(`^hsl\\(${Ce},${ke},${ke}\\)$`),Me=new RegExp(`^hsla\\(${Ce},${ke},${ke},${Ce}\\)$`),Le={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ie(){return this.rgb().formatHex()}function Ae(){return this.rgb().formatRgb()}function Oe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Se.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?qe(t):3===n?new We(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ze(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Te.exec(e))?new We(t[1],t[2],t[3],1):(t=Re.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ne.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=Pe.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=De.exec(e))?Ue(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Ue(t[1],t[2]/100,t[3]/100,t[4]):Le.hasOwnProperty(e)?qe(Le[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function qe(e){return new We(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,n,r){return r<=0&&(e=t=n=NaN),new We(e,t,n,r)}function Fe(e){return e instanceof be||(e=Oe(e)),e?new We((e=e.rgb()).r,e.g,e.b,e.opacity):new We}function We(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function He(){return`#${Ve(this.r)}${Ve(this.g)}${Ve(this.b)}`}function Be(){const e=$e(this.opacity);return`${1===e?"rgb(":"rgba("}${je(this.r)}, ${je(this.g)}, ${je(this.b)}${1===e?")":`, ${e})`}`}function $e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function je(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ve(e){return((e=je(e))<16?"0":"")+e.toString(16)}function Ue(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ye(e,t,n,r)}function _e(e){if(e instanceof Ye)return new Ye(e.h,e.s,e.l,e.opacity);if(e instanceof be||(e=Oe(e)),!e)return new Ye;if(e instanceof Ye)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ye(a,s,l,e.opacity)}function Ye(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ke(e){return(e=(e||0)%360)<0?e+360:e}function Xe(e){return Math.max(0,Math.min(1,e||0))}function Ge(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ve(be,Oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ie,formatHex:Ie,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _e(this).formatHsl()},formatRgb:Ae,toString:Ae}),ve(We,(function(e,t,n,r){return 1===arguments.length?Fe(e):new We(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return e=null==e?we:Math.pow(we,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?xe:Math.pow(xe,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(je(this.r),je(this.g),je(this.b),$e(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:He,formatHex:He,formatHex8:function(){return`#${Ve(this.r)}${Ve(this.g)}${Ve(this.b)}${Ve(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Be,toString:Be})),ve(Ye,(function(e,t,n,r){return 1===arguments.length?_e(e):new Ye(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return e=null==e?we:Math.pow(we,e),new Ye(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xe:Math.pow(xe,e),new Ye(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new We(Ge(e>=240?e-240:e+120,o,r),Ge(e,o,r),Ge(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ye(Ke(this.h),Xe(this.s),Xe(this.l),$e(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=$e(this.opacity);return`${1===e?"hsl(":"hsla("}${Ke(this.h)}, ${100*Xe(this.s)}%, ${100*Xe(this.l)}%${1===e?")":`, ${e})`}`}}));const Ze=Math.PI/180,Je=180/Math.PI,Qe=.96422,et=.82521,tt=4/29,nt=6/29,rt=3*nt*nt;function ot(e){if(e instanceof it)return new it(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof We||(e=Fe(e));var t,n,r=ct(e.r),o=ct(e.g),i=ct(e.b),a=at((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=at((.4360747*r+.3850649*o+.1430804*i)/Qe),n=at((.0139322*r+.0971045*o+.7141733*i)/et)),new it(116*a-16,500*(t-a),200*(a-n),e.opacity)}function it(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function at(e){return e>.008856451679035631?Math.pow(e,1/3):e/rt+tt}function st(e){return e>nt?e*e*e:rt*(e-tt)}function lt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ut(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof it||(e=ot(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Je;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function dt(e,t,n,r){return 1===arguments.length?ut(e):new pt(e,t,n,null==r?1:r)}function pt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ft(e){if(isNaN(e.h))return new it(e.l,0,0,e.opacity);var t=e.h*Ze;return new it(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ve(it,(function(e,t,n,r){return 1===arguments.length?ot(e):new it(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return new it(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new it(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new We(lt(3.1338561*(t=Qe*st(t))-1.6168667*(e=1*st(e))-.4906146*(n=et*st(n))),lt(-.9787684*t+1.9161415*e+.033454*n),lt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ve(pt,dt,ye(be,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var ht=-.14861,mt=1.78277,gt=-.29227,vt=-.90649,yt=1.97294,bt=yt*vt,xt=yt*mt,wt=mt*gt-vt*ht;function Et(e){if(e instanceof Ct)return new Ct(e.h,e.s,e.l,e.opacity);e instanceof We||(e=Fe(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(wt*r+bt*t-xt*n)/-5.9615122912,i=r-o,a=(yt*(n-o)-gt*i)/vt,s=Math.sqrt(a*a+i*i)/(yt*o*(1-o)),l=s?Math.atan2(a,i)*Je-120:NaN;return new Ct(l<0?l+360:l,s,o,e.opacity)}function Ct(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function kt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}ve(Ct,(function(e,t,n,r){return 1===arguments.length?Et(e):new Ct(e,t,n,null==r?1:r)}),ye(be,{brighter(e){return e=null==e?we:Math.pow(we,e),new Ct(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xe:Math.pow(xe,e),new Ct(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Ze,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new We(255*(t+n*(ht*r+mt*o)),255*(t+n*(gt*r+vt*o)),255*(t+n*(yt*r)),this.opacity)}})),function(e){1===e.length&&(e=function(e){return function(t,n){return kt(e(t),n)}}(e))}(kt);var St="$";function Tt(){}function Rt(e,t){var n=new Tt;if(e instanceof Tt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Nt(){}Tt.prototype=Rt.prototype={constructor:Tt,has:function(e){return St+e in this},get:function(e){return this[St+e]},set:function(e,t){return this[St+e]=t,this},remove:function(e){var t=St+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===St&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===St&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===St&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===St&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===St&&++e;return e},empty:function(){for(var e in this)if(e[0]===St)return!1;return!0},each:function(e){for(var t in this)t[0]===St&&e(this[t],t.slice(1),this)}};var Pt=Rt.prototype;function Dt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Lt(){}Nt.prototype={constructor:Nt,has:Pt.has,add:function(e){return this[St+(e+="")]=e,this},remove:Pt.remove,clear:Pt.clear,values:Pt.keys,size:Pt.size,empty:Pt.empty,each:Pt.each};var It=.7,At=1/It,Ot="\\s*([+-]?\\d+)\\s*",qt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",zt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ft=/^#([0-9a-f]{3})$/,Wt=/^#([0-9a-f]{6})$/,Ht=new RegExp("^rgb\\("+[Ot,Ot,Ot]+"\\)$"),Bt=new RegExp("^rgb\\("+[zt,zt,zt]+"\\)$"),$t=new RegExp("^rgba\\("+[Ot,Ot,Ot,qt]+"\\)$"),jt=new RegExp("^rgba\\("+[zt,zt,zt,qt]+"\\)$"),Vt=new RegExp("^hsl\\("+[qt,zt,zt]+"\\)$"),Ut=new RegExp("^hsla\\("+[qt,zt,zt,qt]+"\\)$"),_t={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Yt(e){var t;return e=(e+"").trim().toLowerCase(),(t=Ft.exec(e))?new Jt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Wt.exec(e))?Kt(parseInt(t[1],16)):(t=Ht.exec(e))?new Jt(t[1],t[2],t[3],1):(t=Bt.exec(e))?new Jt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$t.exec(e))?Xt(t[1],t[2],t[3],t[4]):(t=jt.exec(e))?Xt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Vt.exec(e))?en(t[1],t[2]/100,t[3]/100,1):(t=Ut.exec(e))?en(t[1],t[2]/100,t[3]/100,t[4]):_t.hasOwnProperty(e)?Kt(_t[e]):"transparent"===e?new Jt(NaN,NaN,NaN,0):null}function Kt(e){return new Jt(e>>16&255,e>>8&255,255&e,1)}function Xt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jt(e,t,n,r)}function Gt(e){return e instanceof Lt||(e=Yt(e)),e?new Jt((e=e.rgb()).r,e.g,e.b,e.opacity):new Jt}function Zt(e,t,n,r){return 1===arguments.length?Gt(e):new Jt(e,t,n,null==r?1:r)}function Jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Qt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function en(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new nn(e,t,n,r)}function tn(e){if(e instanceof nn)return new nn(e.h,e.s,e.l,e.opacity);if(e instanceof Lt||(e=Yt(e)),!e)return new nn;if(e instanceof nn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new nn(a,s,l,e.opacity)}function nn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function rn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Dt(Lt,Yt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Dt(Jt,Zt,Mt(Lt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?It:Math.pow(It,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Qt(this.r)+Qt(this.g)+Qt(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Dt(nn,(function(e,t,n,r){return 1===arguments.length?tn(e):new nn(e,t,n,null==r?1:r)}),Mt(Lt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new nn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?It:Math.pow(It,e),new nn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Jt(rn(e>=240?e-240:e+120,o,r),rn(e,o,r),rn(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var on=Math.PI/180,an=180/Math.PI,sn=.96422,ln=.82521,cn=4/29,un=6/29,dn=3*un*un;function pn(e){if(e instanceof fn)return new fn(e.l,e.a,e.b,e.opacity);if(e instanceof bn){if(isNaN(e.h))return new fn(e.l,0,0,e.opacity);var t=e.h*on;return new fn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Jt||(e=Gt(e));var n,r,o=vn(e.r),i=vn(e.g),a=vn(e.b),s=hn((.2225045*o+.7168786*i+.0606169*a)/1);return o===i&&i===a?n=r=s:(n=hn((.4360747*o+.3850649*i+.1430804*a)/sn),r=hn((.0139322*o+.0971045*i+.7141733*a)/ln)),new fn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function fn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function hn(e){return e>.008856451679035631?Math.pow(e,1/3):e/dn+cn}function mn(e){return e>un?e*e*e:dn*(e-cn)}function gn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yn(e){if(e instanceof bn)return new bn(e.h,e.c,e.l,e.opacity);if(e instanceof fn||(e=pn(e)),0===e.a&&0===e.b)return new bn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*an;return new bn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function bn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Dt(fn,(function(e,t,n,r){return 1===arguments.length?pn(e):new fn(e,t,n,null==r?1:r)}),Mt(Lt,{brighter:function(e){return new fn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new fn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Jt(gn(3.1338561*(t=sn*mn(t))-1.6168667*(e=1*mn(e))-.4906146*(n=ln*mn(n))),gn(-.9787684*t+1.9161415*e+.033454*n),gn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Dt(bn,(function(e,t,n,r){return 1===arguments.length?yn(e):new bn(e,t,n,null==r?1:r)}),Mt(Lt,{brighter:function(e){return new bn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new bn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return pn(this).rgb()}}));var xn=-.14861,wn=1.78277,En=-.29227,Cn=-.90649,kn=1.97294,Sn=kn*Cn,Tn=kn*wn,Rn=wn*En-Cn*xn;function Nn(e){if(e instanceof Dn)return new Dn(e.h,e.s,e.l,e.opacity);e instanceof Jt||(e=Gt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Rn*r+Sn*t-Tn*n)/(Rn+Sn-Tn),i=r-o,a=(kn*(n-o)-En*i)/Cn,s=Math.sqrt(a*a+i*i)/(kn*o*(1-o)),l=s?Math.atan2(a,i)*an-120:NaN;return new Dn(l<0?l+360:l,s,o,e.opacity)}function Pn(e,t,n,r){return 1===arguments.length?Nn(e):new Dn(e,t,n,null==r?1:r)}function Dn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mn(e){return function(){return e}}function Ln(e,t){return function(n){return e+n*t}}function In(e){return 1==(e=+e)?An:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Mn(isNaN(t)?n:t)}}function An(e,t){var n=t-e;return n?Ln(e,n):Mn(isNaN(e)?t:e)}function On(e){return function t(n){function r(t,r){var o=e((t=Pn(t)).h,(r=Pn(r)).h),i=An(t.s,r.s),a=An(t.l,r.l),s=An(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function qn(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}Dt(Dn,Pn,Mt(Lt,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new Dn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?It:Math.pow(It,e),new Dn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*on,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new Jt(255*(t+n*(xn*r+wn*o)),255*(t+n*(En*r+Cn*o)),255*(t+n*(kn*r)),this.opacity)}})),function e(t){var n=In(t);function r(e,t){var r=n((e=Zt(e)).r,(t=Zt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=An(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),On((function(e,t){var n=t-e;return n?Ln(e,n>180||n<-180?n-360*Math.round(n/360):n):Mn(isNaN(e)?t:e)})),On(An);var zn,Fn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Wn(e){return new Hn(e)}function Hn(e){if(!(t=Fn.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function Bn(e,t){var n=qn(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Wn.prototype=Hn.prototype,Hn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var $n={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Bn(100*e,t)},r:Bn,s:function(e,t){var n=qn(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(zn=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+qn(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function jn(e){return e}var Vn,Un=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _n(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}):jn,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):jn,s=e.percent||"%";function l(e){var t=(e=Wn(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,p=e.comma,f=e.precision,h=e.trim,m=e.type;"n"===m?(p=!0,m="g"):$n[m]||(null==f&&(f=12),h=!0,m="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?o[0]:"#"===c&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",v="$"===c?o[1]:/[%p]/.test(m)?s:"",y=$n[m],b=/[defgprs%]/.test(m);function x(e){var o,s,c,x=g,w=v;if("c"===m)w=y(e)+w,e="";else{var E=(e=+e)<0;if(e=y(Math.abs(e),f),h&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(o>0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),E&&0==+e&&(E=!1),x=(E?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===m?Un[8+zn/3]:"")+w+(E&&"("===l?")":""),b)for(o=-1,s=e.length;++o<s;)if(48>(c=e.charCodeAt(o))||c>57){w=(46===c?i+e.slice(o+1):e.slice(o))+w,e=e.slice(0,o);break}}p&&!u&&(e=r(e,1/0));var C=x.length+e.length+w.length,k=C<d?new Array(d-C+1).join(t):"";switch(p&&u&&(e=r(k+e,k.length?d-w.length:1/0),k=""),n){case"<":e=x+e+w+k;break;case"=":e=x+k+e+w;break;case"^":e=k.slice(0,C=k.length>>1)+x+e+w+k.slice(C);break;default:e=k+x+e+w}return a(e)}return f=null==f?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Wn(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=qn(Math.abs(e)))?e[1]:NaN}(t)/3))),o=Math.pow(10,-r),i=Un[8+r/3];return function(e){return n(o*e)+i}}}}!function(e){(Vn=_n(e)).format,Vn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Yn=new Date,Kn=new Date;function Xn(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return Xn((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Yn.setTime(+t),Kn.setTime(+r),e(Yn),e(Kn),Math.floor(n(Yn,Kn))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Gn=Xn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Gn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Xn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Gn:null},Gn.range;var Zn=1e3,Jn=6e4,Qn=36e5,er=864e5,tr=6048e5;Xn((function(e){e.setTime(Math.floor(e/Zn)*Zn)}),(function(e,t){e.setTime(+e+t*Zn)}),(function(e,t){return(t-e)/Zn}),(function(e){return e.getUTCSeconds()})).range,Xn((function(e){e.setTime(Math.floor(e/Jn)*Jn)}),(function(e,t){e.setTime(+e+t*Jn)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getMinutes()})).range,Xn((function(e){var t=e.getTimezoneOffset()*Jn%Qn;t<0&&(t+=Qn),e.setTime(Math.floor((+e-t)/Qn)*Qn+t)}),(function(e,t){e.setTime(+e+t*Qn)}),(function(e,t){return(t-e)/Qn}),(function(e){return e.getHours()})).range;var nr=Xn((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jn)/er}),(function(e){return e.getDate()-1}));function rr(e){return Xn((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jn)/tr}))}nr.range;var or=rr(0),ir=rr(1),ar=rr(2),sr=rr(3),lr=rr(4),cr=rr(5),ur=rr(6);or.range,ir.range,ar.range,sr.range,lr.range,cr.range,ur.range,Xn((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var dr=Xn((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));dr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xn((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},dr.range,Xn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Jn)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getUTCMinutes()})).range,Xn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Qn)}),(function(e,t){return(t-e)/Qn}),(function(e){return e.getUTCHours()})).range;var pr=Xn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/er}),(function(e){return e.getUTCDate()-1}));function fr(e){return Xn((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/tr}))}pr.range;var hr=fr(0),mr=fr(1),gr=fr(2),vr=fr(3),yr=fr(4),br=fr(5),xr=fr(6);hr.range,mr.range,gr.range,vr.range,yr.range,br.range,xr.range,Xn((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})).range;var wr=Xn((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function Er(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Cr(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function kr(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}wr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xn((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},wr.range;var Sr,Tr,Rr,Nr={"-":"",_:" ",0:"0"},Pr=/^\s*\d+/,Dr=/^%/,Mr=/[\\^$*+?|[\]().{}]/g;function Lr(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Ir(e){return e.replace(Mr,"\\$&")}function Ar(e){return new RegExp("^(?:"+e.map(Ir).join("|")+")","i")}function Or(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function qr(e,t,n){var r=Pr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=Pr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Fr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Hr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Br(e,t,n){var r=Pr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $r(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function jr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Vr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ur(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _r(e,t,n){var r=Pr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Yr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Kr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Xr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Gr(e,t,n){var r=Pr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Zr(e,t,n){var r=Pr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Jr(e,t,n){var r=Dr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Qr(e,t,n){var r=Pr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function eo(e,t,n){var r=Pr.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function to(e,t){return Lr(e.getDate(),t,2)}function no(e,t){return Lr(e.getHours(),t,2)}function ro(e,t){return Lr(e.getHours()%12||12,t,2)}function oo(e,t){return Lr(1+nr.count(dr(e),e),t,3)}function io(e,t){return Lr(e.getMilliseconds(),t,3)}function ao(e,t){return io(e,t)+"000"}function so(e,t){return Lr(e.getMonth()+1,t,2)}function lo(e,t){return Lr(e.getMinutes(),t,2)}function co(e,t){return Lr(e.getSeconds(),t,2)}function uo(e){var t=e.getDay();return 0===t?7:t}function po(e,t){return Lr(or.count(dr(e),e),t,2)}function fo(e,t){var n=e.getDay();return e=n>=4||0===n?lr(e):lr.ceil(e),Lr(lr.count(dr(e),e)+(4===dr(e).getDay()),t,2)}function ho(e){return e.getDay()}function mo(e,t){return Lr(ir.count(dr(e),e),t,2)}function go(e,t){return Lr(e.getFullYear()%100,t,2)}function vo(e,t){return Lr(e.getFullYear()%1e4,t,4)}function yo(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Lr(t/60|0,"0",2)+Lr(t%60,"0",2)}function bo(e,t){return Lr(e.getUTCDate(),t,2)}function xo(e,t){return Lr(e.getUTCHours(),t,2)}function wo(e,t){return Lr(e.getUTCHours()%12||12,t,2)}function Eo(e,t){return Lr(1+pr.count(wr(e),e),t,3)}function Co(e,t){return Lr(e.getUTCMilliseconds(),t,3)}function ko(e,t){return Co(e,t)+"000"}function So(e,t){return Lr(e.getUTCMonth()+1,t,2)}function To(e,t){return Lr(e.getUTCMinutes(),t,2)}function Ro(e,t){return Lr(e.getUTCSeconds(),t,2)}function No(e){var t=e.getUTCDay();return 0===t?7:t}function Po(e,t){return Lr(hr.count(wr(e),e),t,2)}function Do(e,t){var n=e.getUTCDay();return e=n>=4||0===n?yr(e):yr.ceil(e),Lr(yr.count(wr(e),e)+(4===wr(e).getUTCDay()),t,2)}function Mo(e){return e.getUTCDay()}function Lo(e,t){return Lr(mr.count(wr(e),e),t,2)}function Io(e,t){return Lr(e.getUTCFullYear()%100,t,2)}function Ao(e,t){return Lr(e.getUTCFullYear()%1e4,t,4)}function Oo(){return"+0000"}function qo(){return"%"}function zo(e){return+e}function Fo(e){return Math.floor(+e/1e3)}!function(e){(Sr=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Ar(o),u=Or(o),d=Ar(i),p=Or(i),f=Ar(a),h=Or(a),m=Ar(s),g=Or(s),v=Ar(l),y=Or(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:to,e:to,f:ao,H:no,I:ro,j:oo,L:io,m:so,M:lo,p:function(e){return o[+(e.getHours()>=12)]},Q:zo,s:Fo,S:co,u:uo,U:po,V:fo,w:ho,W:mo,x:null,X:null,y:go,Y:vo,Z:yo,"%":qo},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:bo,e:bo,f:ko,H:xo,I:wo,j:Eo,L:Co,m:So,M:To,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:zo,s:Fo,S:Ro,u:No,U:Po,V:Do,w:Mo,W:Lo,x:null,X:null,y:Io,Y:Ao,Z:Oo,"%":qo},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:Ur,e:Ur,f:Zr,H:Yr,I:Yr,j:_r,L:Gr,m:Vr,M:Kr,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Qr,s:eo,S:Xr,u:zr,U:Fr,V:Wr,w:qr,W:Hr,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:$r,Y:Br,Z:jr,"%":Jr};function E(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=Nr[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=kr(1900);if(k(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Cr(kr(i.y))).getUTCDay(),r=o>4||0===o?mr.ceil(r):mr(r),r=pr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(kr(i.y))).getDay(),r=o>4||0===o?ir.ceil(r):ir(r),r=nr.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Cr(kr(i.y)).getUTCDay():t(kr(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Cr(i)):t(i)}}function k(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Nr?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=E(n,b),b.X=E(r,b),b.c=E(t,b),x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",Er);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,Cr);return t.toString=function(){return e},t}}}(e)).format,Sr.parse,Tr=Sr.utcFormat,Rr=Sr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Wo="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Tr(Wo),+new Date("2000-01-01T00:00:00.000Z")||Rr(Wo);const Ho=Q.bind(null,!0),Bo={},{isArray:$o}=Array;function jo(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Vo(e){return void 0===e}function Uo(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function _o(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=Vo(e[r||t])?i:e[t],e=e[r||t]})),e}function Yo(e,t){let n=!0;if(jo(e)&&jo(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Yo(e[r],t[r])||(n=!1)})),n);if($o(e)&&$o(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Yo(e[n],t[n]))return!1;return!0}return e===t}Bo.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Ho({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;Yo(i,a)||Uo(t,o)||(Vo(a)?r.push({op:"add",path:s,value:i}):jo(i)&&jo(a)?r=r.concat(Bo.generate(a,i,s)):$o(i)&&$o(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Vo(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Yo(t,o))return r;if(!Vo(t[0])&&Vo(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(Bo.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{Vo(t[o])&&!Uo(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},Bo.apply=function(e,t){t.forEach((t=>{let n=_o(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if($o(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if($o(o)&&$o(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(jo(o)&&jo(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Uo(a,e)&&delete a[e]})),Ho(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=_o(e,t.from);$o(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&($o(n)?n.splice(+r,1):delete n[r]);var a}))},Bo.clone=function(e){return Ho({},e)},Bo.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Bo.updateObject=function(e,t){Object.keys(e).length?Bo.apply(e,Bo.generate(e,t)):Ho(e,t)};const Ko=[[2,4,6],[2,4],[3]],Xo=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function Go(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function Zo(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Go(e[r],t,n)}!function(){let e,t;for(Zo(Ko,1,10),e=0;e<Xo.length;e++)if(Xo[e])for(t=0;t<Xo[e].length;t++)Array.isArray(Xo[e][t])&&Zo(Xo[e][t])}();var Jo={exports:{}};function Qo(){}function ei(){}ei.resetWarningCache=Qo;Jo.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ei,resetWarningCache:Qo};return n.PropTypes=n,n}();var ti={black:"#000",white:"#fff"},ni="#e57373",ri="#f44336",oi="#d32f2f",ii="#ff4081",ai="#f50057",si="#c51162",li="#7986cb",ci="#3f51b5",ui="#303f9f",di={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function pi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>n?n:e}function fi(e){if(e.type)return e;if("#"===e.charAt(0))return fi(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb(".concat(n.map((function(e){return parseInt(e,16)})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(["Material-UI: unsupported `".concat(e,"` color."),"We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."].join("\n"));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function hi(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function mi(e){var t="hsl"===(e=fi(e)).type?fi(function(e){var t=(e=fi(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),hi({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return mi(e)>.5?yi(e,t):bi(e,t)}function vi(e,t){return e=fi(e),t=pi(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,hi(e)}function yi(e,t){if(e=fi(e),t=pi(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return hi(e)}function bi(e,t){if(e=fi(e),t=pi(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return hi(e)}function xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(){return(wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ei(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ci(e,t){if(null==e)return{};var n,r,o=Ei(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ki(e){return(ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Si(e){return(Si="function"==typeof Symbol&&"symbol"===ki(Symbol.iterator)?function(e){return ki(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ki(e)})(e)}function Ti(e){return e&&"object"===Si(e)&&!Array.isArray(e)}function Ri(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?wi({},e):e;return Ti(e)&&Ti(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Ti(t[o])&&o in e?r[o]=Ri(e[o],t[o],n):r[o]=t[o])})),r}(Jo.exports.element,function(){return null}).isRequired=(Jo.exports.element.isRequired,function(){return null});var Ni={exports:{}},Pi={};
|
|
7
|
+
System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules","react","react-dom","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,w,E,C,k,S,T,R,N,M,P,D,L,I,O,A,q,z,F,W,H;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.getValue,i=e.setValue,a=e.selectionService,s=e.storage,l=e.cache,c=e.tooltipService,u=e.colorService,d=e.pluginService,p=e.themeService,f=e.debouncer,h=e.fontResolver},function(e){m=e.default,g=e.Children,v=e.isValidElement,y=e.cloneElement},function(e){b=e.default},function(e){x=e.useOptions,w=e.useElement,E=e.useSelections,C=e.useState,k=e.useLayout,S=e.useTranslator,T=e.useAction,R=e.useEffect,N=e.useModel,M=e.useApp,P=e.useStaleLayout,D=e.usePlugins,L=e.useConstraints,I=e.useTheme,O=e.useAppLayout,A=e.useEmbed,q=e.usePromise,z=e.useRect,F=e.onTakeSnapshot,W=e.useImperativeHandle},function(e){H=e.default}],execute:function(){var $={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const B={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function j(e){return B[e]||e}function V(e){return function(t,n,r){let o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=j(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((t=>{const n=j(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,o=e,i={chart:t,mediator:n,settings:o},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function U(){return(U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _=Object.prototype.hasOwnProperty,Y=Object.prototype.toString,K=Object.defineProperty,X=Object.getOwnPropertyDescriptor,G=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Y.call(e)},Z=function(e){if(!e||"[object Object]"!==Y.call(e))return!1;var t,n=_.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&_.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||_.call(e,t)},J=function(e,t){K&&"__proto__"===t.name?K(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Q=function(e,t){if("__proto__"===t){if(!_.call(e,t))return;if(X)return X(e,t).value}return e[t]},ee=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=Q(s,n),s!==(o=Q(t,n))&&(u&&o&&(Z(o)||(i=G(o)))?(i?(i=!1,a=r&&G(r)?r:[]):a=r&&Z(r)?r:{},J(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&J(s,{name:n,newValue:o}));return s};const te="center",ne="bottom";var re={NoDataExist:{label:"NoDataExist",alignment:te,default:!0},OnlyNanData:{label:"OnlyNanData",alignment:te,default:!0},OnlyNegativeOrZeroValues:{label:"OnlyNegativeOrZeroValues",alignment:te,default:!1},LimitedData:{label:"LimitedData",alignment:ne,default:!1},OnlyNanColor:{label:"OnlyNanColor",alignment:ne,default:!1},NegativeOrZeroValues:{label:"NegativeOrZeroValues",alignment:ne,default:!1},DataRangeIncludingZero:{label:"DataRangeIncludingZero",alignment:ne,default:!1}};const oe=[["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}]],ie={};oe.forEach((([e,{width:t,height:n}])=>{ie[e]={width:t,height:n}}));const ae={getLayoutModes:()=>ie,getLayoutMode(e,t){let n;for(n=0;n<oe.length;++n)if(e>=oe[n][1].width&&t>=oe[n][1].height)return oe[n][0];return"SPARK"}};function se(e,t){return{layoutModes:ae.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 le=(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i};function ce(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const ue=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),de=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),pe=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),fe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>ue.test(e),isRtlChar:e=>de.test(e)||pe.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],fe.isLtrChar(r))return"ltr";if(fe.isRtlChar(r))return"rtl"}return"ltr"}},he={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=""+n.coloring.label),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=""+e}}return a.fill=void 0===r._fillColor?he.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=fe.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=fe.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:fe.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=fe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=fe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,he.getColorSymbol(e,t)]:[he.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=fe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=fe.detectTextDirection(e.value);let l;return l=o?r?[e.value,he.getColorSymbol(t,n)]:[he.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function me(e){const t=parseInt(e,10);if(!isNaN(t))return t}const ge=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function ve(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(),o=n.styleService.label.value.getStyle(),i=o.fill===r.label.value.color;return{position:e.position,justify:e.justify,fill:i&&!e.onBackground?ge(t):o.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:me(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function ye(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function be(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xe(){}var we=.7,Ee=1/we,Ce="\\s*([+-]?\\d+)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Te=/^#([0-9a-f]{3,8})$/,Re=new RegExp(`^rgb\\(${Ce},${Ce},${Ce}\\)$`),Ne=new RegExp(`^rgb\\(${Se},${Se},${Se}\\)$`),Me=new RegExp(`^rgba\\(${Ce},${Ce},${Ce},${ke}\\)$`),Pe=new RegExp(`^rgba\\(${Se},${Se},${Se},${ke}\\)$`),De=new RegExp(`^hsl\\(${ke},${Se},${Se}\\)$`),Le=new RegExp(`^hsla\\(${ke},${Se},${Se},${ke}\\)$`),Ie={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 Oe(){return this.rgb().formatHex()}function Ae(){return this.rgb().formatRgb()}function qe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Te.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ze(t):3===n?new He(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Fe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Fe(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=Re.exec(e))?new He(t[1],t[2],t[3],1):(t=Ne.exec(e))?new He(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Me.exec(e))?Fe(t[1],t[2],t[3],t[4]):(t=Pe.exec(e))?Fe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=De.exec(e))?_e(t[1],t[2]/100,t[3]/100,1):(t=Le.exec(e))?_e(t[1],t[2]/100,t[3]/100,t[4]):Ie.hasOwnProperty(e)?ze(Ie[e]):"transparent"===e?new He(NaN,NaN,NaN,0):null}function ze(e){return new He(e>>16&255,e>>8&255,255&e,1)}function Fe(e,t,n,r){return r<=0&&(e=t=n=NaN),new He(e,t,n,r)}function We(e){return e instanceof xe||(e=qe(e)),e?new He((e=e.rgb()).r,e.g,e.b,e.opacity):new He}function He(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $e(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}`}function Be(){const e=je(this.opacity);return`${1===e?"rgb(":"rgba("}${Ve(this.r)}, ${Ve(this.g)}, ${Ve(this.b)}${1===e?")":`, ${e})`}`}function je(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ve(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ue(e){return((e=Ve(e))<16?"0":"")+e.toString(16)}function _e(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ke(e,t,n,r)}function Ye(e){if(e instanceof Ke)return new Ke(e.h,e.s,e.l,e.opacity);if(e instanceof xe||(e=qe(e)),!e)return new Ke;if(e instanceof Ke)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ke(a,s,l,e.opacity)}function Ke(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Xe(e){return(e=(e||0)%360)<0?e+360:e}function Ge(e){return Math.max(0,Math.min(1,e||0))}function Ze(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ye(xe,qe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Oe,formatHex:Oe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ye(this).formatHsl()},formatRgb:Ae,toString:Ae}),ye(He,(function(e,t,n,r){return 1===arguments.length?We(e):new He(e,t,n,null==r?1:r)}),be(xe,{brighter(e){return e=null==e?Ee:Math.pow(Ee,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?we:Math.pow(we,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(Ve(this.r),Ve(this.g),Ve(this.b),je(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:$e,formatHex:$e,formatHex8:function(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}${Ue(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Be,toString:Be})),ye(Ke,(function(e,t,n,r){return 1===arguments.length?Ye(e):new Ke(e,t,n,null==r?1:r)}),be(xe,{brighter(e){return e=null==e?Ee:Math.pow(Ee,e),new Ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?we:Math.pow(we,e),new Ke(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new He(Ze(e>=240?e-240:e+120,o,r),Ze(e,o,r),Ze(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ke(Xe(this.h),Ge(this.s),Ge(this.l),je(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=je(this.opacity);return`${1===e?"hsl(":"hsla("}${Xe(this.h)}, ${100*Ge(this.s)}%, ${100*Ge(this.l)}%${1===e?")":`, ${e})`}`}}));const Je=Math.PI/180,Qe=180/Math.PI,et=.96422,tt=.82521,nt=4/29,rt=6/29,ot=3*rt*rt;function it(e){if(e instanceof at)return new at(e.l,e.a,e.b,e.opacity);if(e instanceof ft)return ht(e);e instanceof He||(e=We(e));var t,n,r=ut(e.r),o=ut(e.g),i=ut(e.b),a=st((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=st((.4360747*r+.3850649*o+.1430804*i)/et),n=st((.0139322*r+.0971045*o+.7141733*i)/tt)),new at(116*a-16,500*(t-a),200*(a-n),e.opacity)}function at(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function st(e){return e>.008856451679035631?Math.pow(e,1/3):e/ot+nt}function lt(e){return e>rt?e*e*e:ot*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ut(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function dt(e){if(e instanceof ft)return new ft(e.h,e.c,e.l,e.opacity);if(e instanceof at||(e=it(e)),0===e.a&&0===e.b)return new ft(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Qe;return new ft(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function pt(e,t,n,r){return 1===arguments.length?dt(e):new ft(e,t,n,null==r?1:r)}function ft(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ht(e){if(isNaN(e.h))return new at(e.l,0,0,e.opacity);var t=e.h*Je;return new at(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ye(at,(function(e,t,n,r){return 1===arguments.length?it(e):new at(e,t,n,null==r?1:r)}),be(xe,{brighter(e){return new at(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new at(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 He(ct(3.1338561*(t=et*lt(t))-1.6168667*(e=1*lt(e))-.4906146*(n=tt*lt(n))),ct(-.9787684*t+1.9161415*e+.033454*n),ct(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ye(ft,pt,be(xe,{brighter(e){return new ft(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ft(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ht(this).rgb()}}));var mt=-.14861,gt=1.78277,vt=-.29227,yt=-.90649,bt=1.97294,xt=bt*yt,wt=bt*gt,Et=gt*vt-yt*mt;function Ct(e){if(e instanceof kt)return new kt(e.h,e.s,e.l,e.opacity);e instanceof He||(e=We(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Et*r+xt*t-wt*n)/-5.9615122912,i=r-o,a=(bt*(n-o)-vt*i)/yt,s=Math.sqrt(a*a+i*i)/(bt*o*(1-o)),l=s?Math.atan2(a,i)*Qe-120:NaN;return new kt(l<0?l+360:l,s,o,e.opacity)}function kt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function St(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}ye(kt,(function(e,t,n,r){return 1===arguments.length?Ct(e):new kt(e,t,n,null==r?1:r)}),be(xe,{brighter(e){return e=null==e?Ee:Math.pow(Ee,e),new kt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?we:Math.pow(we,e),new kt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Je,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new He(255*(t+n*(mt*r+gt*o)),255*(t+n*(vt*r+yt*o)),255*(t+n*(bt*r)),this.opacity)}})),function(e){1===e.length&&(e=function(e){return function(t,n){return St(e(t),n)}}(e))}(St);var Tt="$";function Rt(){}function Nt(e,t){var n=new Rt;if(e instanceof Rt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Mt(){}Rt.prototype=Nt.prototype={constructor:Rt,has:function(e){return Tt+e in this},get:function(e){return this[Tt+e]},set:function(e,t){return this[Tt+e]=t,this},remove:function(e){var t=Tt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Tt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Tt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Tt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Tt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Tt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Tt)return!1;return!0},each:function(e){for(var t in this)t[0]===Tt&&e(this[t],t.slice(1),this)}};var Pt=Nt.prototype;function Dt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Lt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function It(){}Mt.prototype={constructor:Mt,has:Pt.has,add:function(e){return this[Tt+(e+="")]=e,this},remove:Pt.remove,clear:Pt.clear,values:Pt.keys,size:Pt.size,empty:Pt.empty,each:Pt.each};var Ot=.7,At=1/Ot,qt="\\s*([+-]?\\d+)\\s*",zt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ft="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wt=/^#([0-9a-f]{3})$/,Ht=/^#([0-9a-f]{6})$/,$t=new RegExp("^rgb\\("+[qt,qt,qt]+"\\)$"),Bt=new RegExp("^rgb\\("+[Ft,Ft,Ft]+"\\)$"),jt=new RegExp("^rgba\\("+[qt,qt,qt,zt]+"\\)$"),Vt=new RegExp("^rgba\\("+[Ft,Ft,Ft,zt]+"\\)$"),Ut=new RegExp("^hsl\\("+[zt,Ft,Ft]+"\\)$"),_t=new RegExp("^hsla\\("+[zt,Ft,Ft,zt]+"\\)$"),Yt={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 Kt(e){var t;return e=(e+"").trim().toLowerCase(),(t=Wt.exec(e))?new Qt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Ht.exec(e))?Xt(parseInt(t[1],16)):(t=$t.exec(e))?new Qt(t[1],t[2],t[3],1):(t=Bt.exec(e))?new Qt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jt.exec(e))?Gt(t[1],t[2],t[3],t[4]):(t=Vt.exec(e))?Gt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ut.exec(e))?tn(t[1],t[2]/100,t[3]/100,1):(t=_t.exec(e))?tn(t[1],t[2]/100,t[3]/100,t[4]):Yt.hasOwnProperty(e)?Xt(Yt[e]):"transparent"===e?new Qt(NaN,NaN,NaN,0):null}function Xt(e){return new Qt(e>>16&255,e>>8&255,255&e,1)}function Gt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qt(e,t,n,r)}function Zt(e){return e instanceof It||(e=Kt(e)),e?new Qt((e=e.rgb()).r,e.g,e.b,e.opacity):new Qt}function Jt(e,t,n,r){return 1===arguments.length?Zt(e):new Qt(e,t,n,null==r?1:r)}function Qt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function en(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function tn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rn(e,t,n,r)}function nn(e){if(e instanceof rn)return new rn(e.h,e.s,e.l,e.opacity);if(e instanceof It||(e=Kt(e)),!e)return new rn;if(e instanceof rn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new rn(a,s,l,e.opacity)}function rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function on(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Dt(It,Kt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Dt(Qt,Jt,Lt(It,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Ot:Math.pow(Ot,e),new Qt(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"#"+en(this.r)+en(this.g)+en(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Dt(rn,(function(e,t,n,r){return 1===arguments.length?nn(e):new rn(e,t,n,null==r?1:r)}),Lt(It,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new rn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Ot:Math.pow(Ot,e),new rn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Qt(on(e>=240?e-240:e+120,o,r),on(e,o,r),on(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var an=Math.PI/180,sn=180/Math.PI,ln=.96422,cn=.82521,un=4/29,dn=6/29,pn=3*dn*dn;function fn(e){if(e instanceof hn)return new hn(e.l,e.a,e.b,e.opacity);if(e instanceof xn){if(isNaN(e.h))return new hn(e.l,0,0,e.opacity);var t=e.h*an;return new hn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Qt||(e=Zt(e));var n,r,o=yn(e.r),i=yn(e.g),a=yn(e.b),s=mn((.2225045*o+.7168786*i+.0606169*a)/1);return o===i&&i===a?n=r=s:(n=mn((.4360747*o+.3850649*i+.1430804*a)/ln),r=mn((.0139322*o+.0971045*i+.7141733*a)/cn)),new hn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function hn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function mn(e){return e>.008856451679035631?Math.pow(e,1/3):e/pn+un}function gn(e){return e>dn?e*e*e:pn*(e-un)}function vn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function bn(e){if(e instanceof xn)return new xn(e.h,e.c,e.l,e.opacity);if(e instanceof hn||(e=fn(e)),0===e.a&&0===e.b)return new xn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*sn;return new xn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function xn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Dt(hn,(function(e,t,n,r){return 1===arguments.length?fn(e):new hn(e,t,n,null==r?1:r)}),Lt(It,{brighter:function(e){return new hn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new hn(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 Qt(vn(3.1338561*(t=ln*gn(t))-1.6168667*(e=1*gn(e))-.4906146*(n=cn*gn(n))),vn(-.9787684*t+1.9161415*e+.033454*n),vn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Dt(xn,(function(e,t,n,r){return 1===arguments.length?bn(e):new xn(e,t,n,null==r?1:r)}),Lt(It,{brighter:function(e){return new xn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new xn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return fn(this).rgb()}}));var wn=-.14861,En=1.78277,Cn=-.29227,kn=-.90649,Sn=1.97294,Tn=Sn*kn,Rn=Sn*En,Nn=En*Cn-kn*wn;function Mn(e){if(e instanceof Dn)return new Dn(e.h,e.s,e.l,e.opacity);e instanceof Qt||(e=Zt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Nn*r+Tn*t-Rn*n)/(Nn+Tn-Rn),i=r-o,a=(Sn*(n-o)-Cn*i)/kn,s=Math.sqrt(a*a+i*i)/(Sn*o*(1-o)),l=s?Math.atan2(a,i)*sn-120:NaN;return new Dn(l<0?l+360:l,s,o,e.opacity)}function Pn(e,t,n,r){return 1===arguments.length?Mn(e):new Dn(e,t,n,null==r?1:r)}function Dn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ln(e){return function(){return e}}function In(e,t){return function(n){return e+n*t}}function On(e){return 1==(e=+e)?An:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ln(isNaN(t)?n:t)}}function An(e,t){var n=t-e;return n?In(e,n):Ln(isNaN(e)?t:e)}function qn(e){return function t(n){function r(t,r){var o=e((t=Pn(t)).h,(r=Pn(r)).h),i=An(t.s,r.s),a=An(t.l,r.l),s=An(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function zn(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}Dt(Dn,Pn,Lt(It,{brighter:function(e){return e=null==e?At:Math.pow(At,e),new Dn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Ot:Math.pow(Ot,e),new Dn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*an,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new Qt(255*(t+n*(wn*r+En*o)),255*(t+n*(Cn*r+kn*o)),255*(t+n*(Sn*r)),this.opacity)}})),function e(t){var n=On(t);function r(e,t){var r=n((e=Jt(e)).r,(t=Jt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=An(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),qn((function(e,t){var n=t-e;return n?In(e,n>180||n<-180?n-360*Math.round(n/360):n):Ln(isNaN(e)?t:e)})),qn(An);var Fn,Wn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hn(e){return new $n(e)}function $n(e){if(!(t=Wn.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function Bn(e,t){var n=zn(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Hn.prototype=$n.prototype,$n.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 Bn(100*e,t)},r:Bn,s:function(e,t){var n=zn(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Fn=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+zn(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Vn(e){return e}var Un,_n=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yn(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}):Vn,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):Vn,s=e.percent||"%";function l(e){var t=(e=Hn(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,p=e.comma,f=e.precision,h=e.trim,m=e.type;"n"===m?(p=!0,m="g"):jn[m]||(null==f&&(f=12),h=!0,m="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?o[0]:"#"===c&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",v="$"===c?o[1]:/[%p]/.test(m)?s:"",y=jn[m],b=/[defgprs%]/.test(m);function x(e){var o,s,c,x=g,w=v;if("c"===m)w=y(e)+w,e="";else{var E=(e=+e)<0;if(e=y(Math.abs(e),f),h&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(o>0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),E&&0==+e&&(E=!1),x=(E?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===m?_n[8+Fn/3]:"")+w+(E&&"("===l?")":""),b)for(o=-1,s=e.length;++o<s;)if(48>(c=e.charCodeAt(o))||c>57){w=(46===c?i+e.slice(o+1):e.slice(o))+w,e=e.slice(0,o);break}}p&&!u&&(e=r(e,1/0));var C=x.length+e.length+w.length,k=C<d?new Array(d-C+1).join(t):"";switch(p&&u&&(e=r(k+e,k.length?d-w.length:1/0),k=""),n){case"<":e=x+e+w+k;break;case"=":e=x+k+e+w;break;case"^":e=k.slice(0,C=k.length>>1)+x+e+w+k.slice(C);break;default:e=k+x+e+w}return a(e)}return f=null==f?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Hn(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=zn(Math.abs(e)))?e[1]:NaN}(t)/3))),o=Math.pow(10,-r),i=_n[8+r/3];return function(e){return n(o*e)+i}}}}!function(e){(Un=Yn(e)).format,Un.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Kn=new Date,Xn=new Date;function Gn(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return Gn((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Kn.setTime(+t),Xn.setTime(+r),e(Kn),e(Xn),Math.floor(n(Kn,Xn))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Zn=Gn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Zn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Gn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Zn:null},Zn.range;var Jn=1e3,Qn=6e4,er=36e5,tr=864e5,nr=6048e5;Gn((function(e){e.setTime(Math.floor(e/Jn)*Jn)}),(function(e,t){e.setTime(+e+t*Jn)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getUTCSeconds()})).range,Gn((function(e){e.setTime(Math.floor(e/Qn)*Qn)}),(function(e,t){e.setTime(+e+t*Qn)}),(function(e,t){return(t-e)/Qn}),(function(e){return e.getMinutes()})).range,Gn((function(e){var t=e.getTimezoneOffset()*Qn%er;t<0&&(t+=er),e.setTime(Math.floor((+e-t)/er)*er+t)}),(function(e,t){e.setTime(+e+t*er)}),(function(e,t){return(t-e)/er}),(function(e){return e.getHours()})).range;var rr=Gn((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())*Qn)/tr}),(function(e){return e.getDate()-1}));function or(e){return Gn((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())*Qn)/nr}))}rr.range;var ir=or(0),ar=or(1),sr=or(2),lr=or(3),cr=or(4),ur=or(5),dr=or(6);ir.range,ar.range,sr.range,lr.range,cr.range,ur.range,dr.range,Gn((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 pr=Gn((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()}));pr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Gn((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},pr.range,Gn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Qn)}),(function(e,t){return(t-e)/Qn}),(function(e){return e.getUTCMinutes()})).range,Gn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*er)}),(function(e,t){return(t-e)/er}),(function(e){return e.getUTCHours()})).range;var fr=Gn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/tr}),(function(e){return e.getUTCDate()-1}));function hr(e){return Gn((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)/nr}))}fr.range;var mr=hr(0),gr=hr(1),vr=hr(2),yr=hr(3),br=hr(4),xr=hr(5),wr=hr(6);mr.range,gr.range,vr.range,yr.range,br.range,xr.range,wr.range,Gn((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 Er=Gn((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 Cr(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 kr(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 Sr(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}Er.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Gn((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},Er.range;var Tr,Rr,Nr,Mr={"-":"",_:" ",0:"0"},Pr=/^\s*\d+/,Dr=/^%/,Lr=/[\\^$*+?|[\]().{}]/g;function Ir(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Or(e){return e.replace(Lr,"\\$&")}function Ar(e){return new RegExp("^(?:"+e.map(Or).join("|")+")","i")}function qr(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function zr(e,t,n){var r=Pr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Fr(e,t,n){var r=Pr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Hr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $r(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Br(e,t,n){var r=Pr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Vr(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 Ur(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _r(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Yr(e,t,n){var r=Pr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Kr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Xr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Gr(e,t,n){var r=Pr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Zr(e,t,n){var r=Pr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Jr(e,t,n){var r=Pr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Qr(e,t,n){var r=Dr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function eo(e,t,n){var r=Pr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function to(e,t,n){var r=Pr.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function no(e,t){return Ir(e.getDate(),t,2)}function ro(e,t){return Ir(e.getHours(),t,2)}function oo(e,t){return Ir(e.getHours()%12||12,t,2)}function io(e,t){return Ir(1+rr.count(pr(e),e),t,3)}function ao(e,t){return Ir(e.getMilliseconds(),t,3)}function so(e,t){return ao(e,t)+"000"}function lo(e,t){return Ir(e.getMonth()+1,t,2)}function co(e,t){return Ir(e.getMinutes(),t,2)}function uo(e,t){return Ir(e.getSeconds(),t,2)}function po(e){var t=e.getDay();return 0===t?7:t}function fo(e,t){return Ir(ir.count(pr(e),e),t,2)}function ho(e,t){var n=e.getDay();return e=n>=4||0===n?cr(e):cr.ceil(e),Ir(cr.count(pr(e),e)+(4===pr(e).getDay()),t,2)}function mo(e){return e.getDay()}function go(e,t){return Ir(ar.count(pr(e),e),t,2)}function vo(e,t){return Ir(e.getFullYear()%100,t,2)}function yo(e,t){return Ir(e.getFullYear()%1e4,t,4)}function bo(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ir(t/60|0,"0",2)+Ir(t%60,"0",2)}function xo(e,t){return Ir(e.getUTCDate(),t,2)}function wo(e,t){return Ir(e.getUTCHours(),t,2)}function Eo(e,t){return Ir(e.getUTCHours()%12||12,t,2)}function Co(e,t){return Ir(1+fr.count(Er(e),e),t,3)}function ko(e,t){return Ir(e.getUTCMilliseconds(),t,3)}function So(e,t){return ko(e,t)+"000"}function To(e,t){return Ir(e.getUTCMonth()+1,t,2)}function Ro(e,t){return Ir(e.getUTCMinutes(),t,2)}function No(e,t){return Ir(e.getUTCSeconds(),t,2)}function Mo(e){var t=e.getUTCDay();return 0===t?7:t}function Po(e,t){return Ir(mr.count(Er(e),e),t,2)}function Do(e,t){var n=e.getUTCDay();return e=n>=4||0===n?br(e):br.ceil(e),Ir(br.count(Er(e),e)+(4===Er(e).getUTCDay()),t,2)}function Lo(e){return e.getUTCDay()}function Io(e,t){return Ir(gr.count(Er(e),e),t,2)}function Oo(e,t){return Ir(e.getUTCFullYear()%100,t,2)}function Ao(e,t){return Ir(e.getUTCFullYear()%1e4,t,4)}function qo(){return"+0000"}function zo(){return"%"}function Fo(e){return+e}function Wo(e){return Math.floor(+e/1e3)}!function(e){(Tr=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Ar(o),u=qr(o),d=Ar(i),p=qr(i),f=Ar(a),h=qr(a),m=Ar(s),g=qr(s),v=Ar(l),y=qr(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:no,e:no,f:so,H:ro,I:oo,j:io,L:ao,m:lo,M:co,p:function(e){return o[+(e.getHours()>=12)]},Q:Fo,s:Wo,S:uo,u:po,U:fo,V:ho,w:mo,W:go,x:null,X:null,y:vo,Y:yo,Z:bo,"%":zo},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:xo,e:xo,f:So,H:wo,I:Eo,j:Co,L:ko,m:To,M:Ro,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Fo,s:Wo,S:No,u:Mo,U:Po,V:Do,w:Lo,W:Io,x:null,X:null,y:Oo,Y:Ao,Z:qo,"%":zo},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:_r,e:_r,f:Jr,H:Kr,I:Kr,j:Yr,L:Zr,m:Ur,M:Xr,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:eo,s:to,S:Gr,u:Fr,U:Wr,V:Hr,w:zr,W:$r,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:jr,Y:Br,Z:Vr,"%":Qr};function E(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=Mr[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=Sr(1900);if(k(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=kr(Sr(i.y))).getUTCDay(),r=o>4||0===o?gr.ceil(r):gr(r),r=fr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(Sr(i.y))).getDay(),r=o>4||0===o?ar.ceil(r):ar(r),r=rr.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?kr(Sr(i.y)).getUTCDay():t(Sr(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,kr(i)):t(i)}}function k(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Mr?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=E(n,b),b.X=E(r,b),b.c=E(t,b),x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",Cr);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,kr);return t.toString=function(){return e},t}}}(e)).format,Tr.parse,Rr=Tr.utcFormat,Nr=Tr.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 Ho="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Rr(Ho),+new Date("2000-01-01T00:00:00.000Z")||Nr(Ho);const $o=ee.bind(null,!0),Bo={},{isArray:jo}=Array;function Vo(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Uo(e){return void 0===e}function _o(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Yo(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=Uo(e[r||t])?i:e[t],e=e[r||t]})),e}function Ko(e,t){let n=!0;if(Vo(e)&&Vo(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Ko(e[r],t[r])||(n=!1)})),n);if(jo(e)&&jo(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Ko(e[n],t[n]))return!1;return!0}return e===t}Bo.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?$o({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;Ko(i,a)||_o(t,o)||(Uo(a)?r.push({op:"add",path:s,value:i}):Vo(i)&&Vo(a)?r=r.concat(Bo.generate(a,i,s)):jo(i)&&jo(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Uo(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(Ko(t,o))return r;if(!Uo(t[0])&&Uo(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(Bo.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{Uo(t[o])&&!_o(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},Bo.apply=function(e,t){t.forEach((t=>{let n=Yo(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(jo(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(jo(o)&&jo(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Vo(o)&&Vo(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!_o(a,e)&&delete a[e]})),$o(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=Yo(e,t.from);jo(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(jo(n)?n.splice(+r,1):delete n[r]);var a}))},Bo.clone=function(e){return $o({},e)},Bo.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Bo.updateObject=function(e,t){Object.keys(e).length?Bo.apply(e,Bo.generate(e,t)):$o(e,t)};const Xo=[[2,4,6],[2,4],[3]],Go=[,[,,[[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 Zo(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function Jo(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Zo(e[r],t,n)}!function(){let e,t;for(Jo(Xo,1,10),e=0;e<Go.length;e++)if(Go[e])for(t=0;t<Go[e].length;t++)Array.isArray(Go[e][t])&&Jo(Go[e][t])}();var Qo={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[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function ei(e){const{qHyperCube:t,...n}=e,{qDataPages:r,qStackedDataPages:a,qTreeDataPages:s,...l}=t,c=ee(!0,{},{...n,qHyperCube:{...l,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:u}=Qo;return u.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(c,e)&&i(c,e,null);else{const e=t[0],n=t[1].split("].")[1];o(c,e,[]).forEach((e=>{void 0!==o(e,n)&&i(e,n,null)}))}})),c}var ti={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return o=>{if(e||t||n){var i;if("line"===o.type)return null!==(i=o.tickValue)&&void 0!==i?i:"axis";if("text"===o.type)return`${o.tickValue} ${o.text}`;if("container"===o.type){const e=o.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${o.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===o.type&&void 0===o.tickValue)return"axis";const e=o.transform&&o.transform.match(/rotate/gi)?"rotated":"horizontal";return`${o.data.group?o.data.group.value+" ":""}${o.data.value} ${o.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:o}){return({currentNodes:i,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"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||i.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"!==o&&"bottom"!==o||i.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?i.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?i.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):i.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,o=t.y-n.y;0===r&&0===o||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-=o):e.transform=`translate(${-r}, ${-o})`}))}))}},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,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=r):(e.x-=r,e.y-=o)}))},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,o=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-=o,e.y2-=o):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:o/e.major.size,n="y"===e.minor.p?o/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,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.cx-=r,e.cy-=o}))}},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,o=t.y-n.y,i=t.width-n.width,a=t.height-n.height;let s=-r,l=-o;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":i<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":o>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=ei(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=ei(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}},ni={exports:{}};function ri(){}function oi(){}oi.resetWarningCache=ri;ni.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:oi,resetWarningCache:ri};return n.PropTypes=n,n}();var ii={black:"#000",white:"#fff"},ai="#e57373",si="#f44336",li="#d32f2f",ci="#ff4081",ui="#f50057",di="#c51162",pi="#7986cb",fi="#3f51b5",hi="#303f9f",mi={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 gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>n?n:e}function vi(e){if(e.type)return e;if("#"===e.charAt(0))return vi(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb(".concat(n.map((function(e){return parseInt(e,16)})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(["Material-UI: unsupported `".concat(e,"` color."),"We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."].join("\n"));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function yi(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 bi(e){var t="hsl"===(e=vi(e)).type?vi(function(e){var t=(e=vi(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),yi({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 xi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return bi(e)>.5?Ei(e,t):Ci(e,t)}function wi(e,t){return e=vi(e),t=gi(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,yi(e)}function Ei(e,t){if(e=vi(e),t=gi(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 yi(e)}function Ci(e,t){if(e=vi(e),t=gi(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 yi(e)}function ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Si(){return(Si=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ti(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ri(e,t){if(null==e)return{};var n,r,o=Ti(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ni(e){return(Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mi(e){return(Mi="function"==typeof Symbol&&"symbol"===Ni(Symbol.iterator)?function(e){return Ni(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Ni(e)})(e)}function Pi(e){return e&&"object"===Mi(e)&&!Array.isArray(e)}function Di(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Si({},e):e;return Pi(e)&&Pi(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Pi(t[o])&&o in e?r[o]=Di(e[o],t[o],n):r[o]=t[o])})),r}(ni.exports.element,function(){return null}).isRequired=(ni.exports.element.isRequired,function(){return null});var Li={exports:{}},Ii={};
|
|
8
8
|
/** @license React v16.11.0
|
|
9
9
|
* react-is.production.min.js
|
|
10
10
|
*
|
|
@@ -13,14 +13,14 @@ System.register(["hammerjs","picasso.js","picasso-plugin-q","react","react-dom",
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
Object.defineProperty(Pi,"__esModule",{value:!0});var Di="function"==typeof Symbol&&Symbol.for,Mi=Di?Symbol.for("react.element"):60103,Li=Di?Symbol.for("react.portal"):60106,Ii=Di?Symbol.for("react.fragment"):60107,Ai=Di?Symbol.for("react.strict_mode"):60108,Oi=Di?Symbol.for("react.profiler"):60114,qi=Di?Symbol.for("react.provider"):60109,zi=Di?Symbol.for("react.context"):60110,Fi=Di?Symbol.for("react.async_mode"):60111,Wi=Di?Symbol.for("react.concurrent_mode"):60111,Hi=Di?Symbol.for("react.forward_ref"):60112,Bi=Di?Symbol.for("react.suspense"):60113,$i=Di?Symbol.for("react.suspense_list"):60120,ji=Di?Symbol.for("react.memo"):60115,Vi=Di?Symbol.for("react.lazy"):60116,Ui=Di?Symbol.for("react.fundamental"):60117,_i=Di?Symbol.for("react.responder"):60118,Yi=Di?Symbol.for("react.scope"):60119;function Ki(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Mi:switch(e=e.type){case Fi:case Wi:case Ii:case Oi:case Ai:case Bi:return e;default:switch(e=e&&e.$$typeof){case zi:case Hi:case qi:return e;default:return t}}case Vi:case ji:case Li:return t}}}function Xi(e){return Ki(e)===Wi}Pi.typeOf=Ki,Pi.AsyncMode=Fi,Pi.ConcurrentMode=Wi,Pi.ContextConsumer=zi,Pi.ContextProvider=qi,Pi.Element=Mi,Pi.ForwardRef=Hi,Pi.Fragment=Ii,Pi.Lazy=Vi,Pi.Memo=ji,Pi.Portal=Li,Pi.Profiler=Oi,Pi.StrictMode=Ai,Pi.Suspense=Bi,Pi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ii||e===Wi||e===Oi||e===Ai||e===Bi||e===$i||"object"==typeof e&&null!==e&&(e.$$typeof===Vi||e.$$typeof===ji||e.$$typeof===qi||e.$$typeof===zi||e.$$typeof===Hi||e.$$typeof===Ui||e.$$typeof===_i||e.$$typeof===Yi)},Pi.isAsyncMode=function(e){return Xi(e)||Ki(e)===Fi},Pi.isConcurrentMode=Xi,Pi.isContextConsumer=function(e){return Ki(e)===zi},Pi.isContextProvider=function(e){return Ki(e)===qi},Pi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Mi},Pi.isForwardRef=function(e){return Ki(e)===Hi},Pi.isFragment=function(e){return Ki(e)===Ii},Pi.isLazy=function(e){return Ki(e)===Vi},Pi.isMemo=function(e){return Ki(e)===ji},Pi.isPortal=function(e){return Ki(e)===Li},Pi.isProfiler=function(e){return Ki(e)===Oi},Pi.isStrictMode=function(e){return Ki(e)===Ai},Pi.isSuspense=function(e){return Ki(e)===Bi},Ni.exports=Pi,"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Jo.exports.oneOfType([Jo.exports.func,Jo.exports.PropTypes.object]);var Gi=["xs","sm","md","lg","xl"];function Zi(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=Ci(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=Gi.indexOf(t)+1;return r===Gi.length?l(e):"@media (min-width:".concat(n[e]).concat(o,") and ")+"(max-width:".concat(n[Gi[r]]-a/100).concat(o,")")}return wi({keys:Gi,values:n,up:l,down:function(e){var t=Gi.indexOf(e)+1,r=n[Gi[t]];return t===Gi.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}function Ji(e,t,n){var r;return wi({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return wi({paddingLeft:t(2),paddingRight:t(2)},n,xi({},e.up("sm"),wi({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},xi(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),xi(r,e.up("sm"),{minHeight:64}),r)},n)}var Qi={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:ti.white,default:di[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.08)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.14)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"}},ea={text:{primary:ti.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:di[800],default:"#303030"},action:{active:ti.white,hover:"rgba(255, 255, 255, 0.1)",hoverOpacity:.1,selected:"rgba(255, 255, 255, 0.2)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)"}};function ta(e,t,n,r){e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=bi(e.main,r):"dark"===t&&(e.dark=yi(e.main,1.5*r)))}function na(e){var t=e.primary,n=void 0===t?{light:li,main:ci,dark:ui}:t,r=e.secondary,o=void 0===r?{light:ii,main:ai,dark:si}:r,i=e.error,a=void 0===i?{light:ni,main:ri,dark:oi}:i,s=e.type,l=void 0===s?"light":s,c=e.contrastThreshold,u=void 0===c?3:c,d=e.tonalOffset,p=void 0===d?.2:d,f=Ci(e,["primary","secondary","error","type","contrastThreshold","tonalOffset"]);function h(e){return function(e,t){var n=mi(e),r=mi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ea.text.primary)>=u?ea.text.primary:Qi.text.primary}function m(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;return!(e=wi({},e)).main&&e[t]&&(e.main=e[t]),ta(e,"light",n,p),ta(e,"dark",r,p),e.contrastText||(e.contrastText=h(e.main)),e}var g={dark:ea,light:Qi};return Ri(wi({common:ti,type:l,primary:m(n),secondary:m(o,"A400","A200","A700"),error:m(a),grey:di,contrastThreshold:u,getContrastText:h,augmentColor:m,tonalOffset:p},g[l]),f,{clone:!1})}function ra(e){return Math.round(1e5*e)/1e5}var oa={textTransform:"uppercase"},ia='"Roboto", "Helvetica", "Arial", sans-serif';function aa(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?ia:r,i=n.fontSize,a=void 0===i?14:i,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,f=n.fontWeightBold,h=void 0===f?700:f,m=n.htmlFontSize,g=void 0===m?16:m,v=n.allVariants,y=n.pxToRem,b=Ci(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=y||function(e){return"".concat(e/g*x,"rem")},E=function(e,t,n,r,i){return wi({fontFamily:o,fontWeight:e,fontSize:w(t),lineHeight:n},o===ia?{letterSpacing:"".concat(ra(r/t),"em")}:{},{},i,{},v)},C={h1:E(l,96,1,-1.5),h2:E(l,60,1,-.5),h3:E(u,48,1.04,0),h4:E(u,34,1.17,.25),h5:E(u,24,1.33,0),h6:E(p,20,1.6,.15),subtitle1:E(u,16,1.75,.15),subtitle2:E(p,14,1.57,.1),body1:E(u,16,1.5,.15),body2:E(u,14,1.43,.15),button:E(p,14,1.75,.4,oa),caption:E(u,12,1.66,.4),overline:E(u,12,2.66,1,oa)};return Ri(wi({htmlFontSize:g,pxToRem:w,round:ra,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:h},C),b,{clone:!1})}function sa(){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 la=["none",sa(0,2,1,-1,0,1,1,0,0,1,3,0),sa(0,3,1,-2,0,2,2,0,0,1,5,0),sa(0,3,3,-2,0,3,4,0,0,1,8,0),sa(0,2,4,-1,0,4,5,0,0,1,10,0),sa(0,3,5,-1,0,5,8,0,0,1,14,0),sa(0,3,5,-1,0,6,10,0,0,1,18,0),sa(0,4,5,-2,0,7,10,1,0,2,16,1),sa(0,5,5,-3,0,8,10,1,0,3,14,2),sa(0,5,6,-3,0,9,12,1,0,3,16,2),sa(0,6,6,-3,0,10,14,1,0,4,18,3),sa(0,6,7,-4,0,11,15,1,0,4,20,3),sa(0,7,8,-4,0,12,17,2,0,5,22,4),sa(0,7,8,-4,0,13,19,2,0,5,24,4),sa(0,7,9,-4,0,14,21,2,0,5,26,4),sa(0,8,9,-5,0,15,22,2,0,6,28,5),sa(0,8,10,-5,0,16,24,2,0,6,30,5),sa(0,8,11,-5,0,17,26,2,0,6,32,5),sa(0,9,11,-5,0,18,28,2,0,7,34,6),sa(0,9,12,-6,0,19,29,2,0,7,36,6),sa(0,10,13,-6,0,20,31,3,0,8,38,7),sa(0,10,13,-6,0,21,33,3,0,8,40,7),sa(0,10,14,-6,0,22,35,3,0,8,42,7),sa(0,11,14,-7,0,23,36,3,0,9,44,8),sa(0,11,15,-7,0,24,38,3,0,9,46,8)],ca={borderRadius:4};function ua(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;e="function"==typeof t?t:function(e){return t*e};var n=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 0===n.length?e(1):1===n.length?e(n[0]):n.map((function(t){var n=e(t);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n}var da={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)"},pa={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},fa=function(e){return"".concat(Math.round(e),"ms")},ha={easing:da,duration:pa,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?pa.standard:n,o=t.easing,i=void 0===o?da.easeInOut:o,a=t.delay,s=void 0===a?0:a;return Ci(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:fa(r)," ").concat(i," ").concat("string"==typeof s?s:fa(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))}},ma={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ga(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.shadows,l=e.spacing,c=e.typography,u=void 0===c?{}:c,d=Ci(e,["breakpoints","mixins","palette","shadows","spacing","typography"]),p=na(a),f=Zi(n),h=ua(l),m=wi({breakpoints:f,direction:"ltr",mixins:Ji(f,h,o),overrides:{},palette:p,props:{},shadows:s||la,typography:aa(p,u),spacing:h},Ri({shape:ca,transitions:ha,zIndex:ma},d));return m}var va="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ya=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ba(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0;return function(e,t){l+=1;var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==ya.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[va]&&""===a?"".concat(i,"-").concat(l):i}return"".concat(s).concat(o).concat(l)}}function xa(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var wa="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":wa(window))&&"object"===("undefined"==typeof document?"undefined":wa(document))&&9===document.nodeType;function Ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ka(e,t,n){return t&&Ca(e.prototype,t),n&&Ca(e,n),e}function Sa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Ta(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ra={}.constructor;function Na(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Na);if(e.constructor!==Ra)return e;var t={};for(var n in e)t[n]=Na(e[n]);return t}function Pa(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=Na(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var Da=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n};function Ma(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=Da(e[r]," ");else n=Da(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n}function La(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Ia(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;if(e&&i++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var l=a[s];for(var c in l){var u=l[c];null!=u&&(r&&(r+="\n"),r+=""+La(c+": "+Ma(u)+";",i))}}else for(var d in a){var p=a[d];null!=p&&(r&&(r+="\n"),r+=""+La(d+": "+Ma(p)+";",i))}for(var f in t){var h=t[f];null!=h&&"fallbacks"!==f&&(r&&(r+="\n"),r+=""+La(f+": "+Ma(h)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),La(e+" {"+r,--i)+La("}",i)):r}var Aa=/([[\].#*$><+~=|^:(),"'`\s])/g,Oa="undefined"!=typeof CSS&&CSS.escape,qa=function(e){return Oa?Oa(e):e.replace(Aa,"\\$1")},za=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}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 o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Fa=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Ta(Ta(o)),s),o.selectorText="."+qa(o.id)),o}Sa(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]=Ma(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?wi({},e,{allowEmpty:!0}):e;return Ia(this.selectorText,this.style,n)},ka(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}(za),Wa={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Fa(e,t,n)}},Ha={indent:1,children:!0},Ba=/@([\w-]+)/,$a=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(Ba);for(var o in this.at=r?r[1]:"unknown",this.options=n,this.rules=new us(wi({},n,{parent:this})),t)this.rules.add(o,t[o]);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.toString=function(e){if(void 0===e&&(e=Ha),null==e.indent&&(e.indent=Ha.indent),null==e.children&&(e.children=Ha.children),!1===e.children)return this.key+" {}";var t=this.rules.toString(e);return t?this.key+" {\n"+t+"\n}":""},e}(),ja=/@media|@supports\s+/,Va={onCreateRule:function(e,t,n){return ja.test(e)?new $a(e,t,n):null}},Ua={indent:1,children:!0},_a=/@keyframes\s+([\w-]+)/,Ya=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;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 o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:qa(a(this,i)),this.rules=new us(wi({},n,{parent:this})),t)this.rules.add(s,t[s],wi({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=Ua),null==e.indent&&(e.indent=Ua.indent),null==e.children&&(e.children=Ua.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),Ka=/@keyframes\s+/,Xa=/\$([\w-]+)/g,Ga=function(e,t){return"string"==typeof e?e.replace(Xa,(function(e,n){return n in t?t[n]:e})):e},Za=function(e,t,n){var r=e[t],o=Ga(r,n);o!==r&&(e[t]=o)},Ja={onCreateRule:function(e,t,n){return"string"==typeof e&&Ka.test(e)?new Ya(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Za(e,"animation-name",n.keyframes),"animation"in e&&Za(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 Ga(e,r.keyframes);default:return e}}},Qa=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Sa(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?wi({},e,{allowEmpty:!0}):e;return Ia(this.key,this.style,n)},t}(za),es={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Qa(e,t,n):null}},ts=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=Ia(this.key,this.style[n]),this.style[n+1]&&(t+="\n");return t}return Ia(this.key,this.style,e)},e}(),ns={onCreateRule:function(e,t,n){return"@font-face"===e?new ts(e,t,n):null}},rs=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Ia(this.key,this.style,e)},e}(),os={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new rs(e,t,n):null}},is=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,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}(),as={"@charset":!0,"@import":!0,"@namespace":!0},ss=[Wa,Va,Ja,es,ns,os,{onCreateRule:function(e,t,n){return e in as?new is(e,t,n):null}}],ls={process:!0},cs={force:!0,process:!0},us=function(){function e(e){this.map={},this.raw={},this.index=[],this.options=void 0,this.classes=void 0,this.keyframes=void 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,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=wi({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c},n);this.raw[e]=t,e in this.classes&&(u.selector="."+qa(this.classes[e]));var d=Pa(e,t,u);if(!d)return null;this.register(d);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,d),d},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.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 Fa?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ya&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Fa?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ya&&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.onUpdate(t,this.get(e),n);else for(var r=0;r<this.index.length;r++)this.onUpdate(t,this.index[r],n)},t.onUpdate=function(t,n,r){void 0===r&&(r=ls);var o=this.options,i=o.jss.plugins,a=o.sheet;if(n.rules instanceof e)n.rules.update(t,r);else{var s=n,l=s.style;if(i.onUpdate(t,n,a,r),r.process&&l&&l!==s.style){for(var c in i.onProcessStyle(s.style,s,a),s.style){var u=s.style[c];u!==l[c]&&s.prop(c,u,cs)}for(var d in l){var p=s.style[d],f=l[d];null==p&&p!==f&&s.prop(d,null,cs)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t},e}(),ds=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=wi({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new us(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 o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t=this.rules.get(e);return!!t&&(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.toString=function(e){return this.rules.toString(e)},e}(),ps=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}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 o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](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}(),fs=new(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=Ei(t,["attached"]),o="",i=0;i<this.registry.length;i++){var a=this.registry[i];null!=n&&a.attached!==n||(o&&(o+="\n"),o+=a.toString(r))}return o},ka(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),hs="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ms="2f1acc6c3a606b082e5eef5e54414ffb";null==hs[ms]&&(hs[ms]=0);var gs=hs[ms]++,vs=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+gs+o+t:i+n.key+"-"+gs+(o?"-"+o:"")+"-"+t}},ys=function(e){var t;return function(){return t||(t=e()),t}};function bs(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}}function xs(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ma(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(e){return!1}return!0}function ws(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}}function Es(e,t){return e.selectorText=t,e.selectorText===t}var Cs=ys((function(){return document.querySelector("head")}));function ks(e){var t=fs.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.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=Cs(),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(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Ss=ys((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ts=function(e,t,n){var r=e.cssRules.length;(void 0===n||n>r)&&(n=r);try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(e){return!1}return e.cssRules[n]},Rs=function(){function e(e){this.getPropertyValue=bs,this.setProperty=xs,this.removeProperty=ws,this.setSelector=Es,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,e&&fs.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||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 i=Ss();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ks(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Cs().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(){var e=this.element.parentNode;e&&e.removeChild(this.element)},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,o=n;return("conditional"!==e.type&&"keyframes"!==e.type||!1!==(o=Ts(n,r.toString({children:!1}),t)))&&(this.insertRules(r.rules,o),o)}if(e.renderable&&e.renderable.parentStyleSheet===this.element.sheet)return e.renderable;var i=e.toString();if(!i)return!1;var a=Ts(n,i,t);return!1!==a&&(this.hasInsertedRules=!0,e.renderable=a,a)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),!0)},t.indexOf=function(e){for(var t=this.element.sheet.cssRules,n=0;n<t.length;n++)if(e===t[n])return n;return-1},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ns=0,Ps=function(){function e(e){this.id=Ns++,this.version="10.0.0",this.plugins=new ps,this.options={id:{minify:!1},createGenerateId:vs,Renderer:Ea?Rs:null,plugins:[]},this.generateId=vs({minify:!1});for(var t=0;t<ss.length;t++)this.plugins.use(ss[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=wi({},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===fs.index?0:fs.index+1);var r=new ds(e,wi({},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(),fs.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=wi({},n,{jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=Pa(e,t,r);return o&&this.plugins.onProcessRule(o),o},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}();function Ds(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Ds(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
16
|
+
Object.defineProperty(Ii,"__esModule",{value:!0});var Oi="function"==typeof Symbol&&Symbol.for,Ai=Oi?Symbol.for("react.element"):60103,qi=Oi?Symbol.for("react.portal"):60106,zi=Oi?Symbol.for("react.fragment"):60107,Fi=Oi?Symbol.for("react.strict_mode"):60108,Wi=Oi?Symbol.for("react.profiler"):60114,Hi=Oi?Symbol.for("react.provider"):60109,$i=Oi?Symbol.for("react.context"):60110,Bi=Oi?Symbol.for("react.async_mode"):60111,ji=Oi?Symbol.for("react.concurrent_mode"):60111,Vi=Oi?Symbol.for("react.forward_ref"):60112,Ui=Oi?Symbol.for("react.suspense"):60113,_i=Oi?Symbol.for("react.suspense_list"):60120,Yi=Oi?Symbol.for("react.memo"):60115,Ki=Oi?Symbol.for("react.lazy"):60116,Xi=Oi?Symbol.for("react.fundamental"):60117,Gi=Oi?Symbol.for("react.responder"):60118,Zi=Oi?Symbol.for("react.scope"):60119;function Ji(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ai:switch(e=e.type){case Bi:case ji:case zi:case Wi:case Fi:case Ui:return e;default:switch(e=e&&e.$$typeof){case $i:case Vi:case Hi:return e;default:return t}}case Ki:case Yi:case qi:return t}}}function Qi(e){return Ji(e)===ji}Ii.typeOf=Ji,Ii.AsyncMode=Bi,Ii.ConcurrentMode=ji,Ii.ContextConsumer=$i,Ii.ContextProvider=Hi,Ii.Element=Ai,Ii.ForwardRef=Vi,Ii.Fragment=zi,Ii.Lazy=Ki,Ii.Memo=Yi,Ii.Portal=qi,Ii.Profiler=Wi,Ii.StrictMode=Fi,Ii.Suspense=Ui,Ii.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===zi||e===ji||e===Wi||e===Fi||e===Ui||e===_i||"object"==typeof e&&null!==e&&(e.$$typeof===Ki||e.$$typeof===Yi||e.$$typeof===Hi||e.$$typeof===$i||e.$$typeof===Vi||e.$$typeof===Xi||e.$$typeof===Gi||e.$$typeof===Zi)},Ii.isAsyncMode=function(e){return Qi(e)||Ji(e)===Bi},Ii.isConcurrentMode=Qi,Ii.isContextConsumer=function(e){return Ji(e)===$i},Ii.isContextProvider=function(e){return Ji(e)===Hi},Ii.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ai},Ii.isForwardRef=function(e){return Ji(e)===Vi},Ii.isFragment=function(e){return Ji(e)===zi},Ii.isLazy=function(e){return Ji(e)===Ki},Ii.isMemo=function(e){return Ji(e)===Yi},Ii.isPortal=function(e){return Ji(e)===qi},Ii.isProfiler=function(e){return Ji(e)===Wi},Ii.isStrictMode=function(e){return Ji(e)===Fi},Ii.isSuspense=function(e){return Ji(e)===Ui},Li.exports=Ii,"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ni.exports.oneOfType([ni.exports.func,ni.exports.PropTypes.object]);var ea=["xs","sm","md","lg","xl"];function ta(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=Ri(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=ea.indexOf(t)+1;return r===ea.length?l(e):"@media (min-width:".concat(n[e]).concat(o,") and ")+"(max-width:".concat(n[ea[r]]-a/100).concat(o,")")}return Si({keys:ea,values:n,up:l,down:function(e){var t=ea.indexOf(e)+1,r=n[ea[t]];return t===ea.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}function na(e,t,n){var r;return Si({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Si({paddingLeft:t(2),paddingRight:t(2)},n,ki({},e.up("sm"),Si({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},ki(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),ki(r,e.up("sm"),{minHeight:64}),r)},n)}var ra={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:ii.white,default:mi[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.08)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.14)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"}},oa={text:{primary:ii.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:mi[800],default:"#303030"},action:{active:ii.white,hover:"rgba(255, 255, 255, 0.1)",hoverOpacity:.1,selected:"rgba(255, 255, 255, 0.2)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)"}};function ia(e,t,n,r){e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ci(e.main,r):"dark"===t&&(e.dark=Ei(e.main,1.5*r)))}function aa(e){var t=e.primary,n=void 0===t?{light:pi,main:fi,dark:hi}:t,r=e.secondary,o=void 0===r?{light:ci,main:ui,dark:di}:r,i=e.error,a=void 0===i?{light:ai,main:si,dark:li}:i,s=e.type,l=void 0===s?"light":s,c=e.contrastThreshold,u=void 0===c?3:c,d=e.tonalOffset,p=void 0===d?.2:d,f=Ri(e,["primary","secondary","error","type","contrastThreshold","tonalOffset"]);function h(e){return function(e,t){var n=bi(e),r=bi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,oa.text.primary)>=u?oa.text.primary:ra.text.primary}function m(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;return!(e=Si({},e)).main&&e[t]&&(e.main=e[t]),ia(e,"light",n,p),ia(e,"dark",r,p),e.contrastText||(e.contrastText=h(e.main)),e}var g={dark:oa,light:ra};return Di(Si({common:ii,type:l,primary:m(n),secondary:m(o,"A400","A200","A700"),error:m(a),grey:mi,contrastThreshold:u,getContrastText:h,augmentColor:m,tonalOffset:p},g[l]),f,{clone:!1})}function sa(e){return Math.round(1e5*e)/1e5}var la={textTransform:"uppercase"},ca='"Roboto", "Helvetica", "Arial", sans-serif';function ua(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?ca:r,i=n.fontSize,a=void 0===i?14:i,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,f=n.fontWeightBold,h=void 0===f?700:f,m=n.htmlFontSize,g=void 0===m?16:m,v=n.allVariants,y=n.pxToRem,b=Ri(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=y||function(e){return"".concat(e/g*x,"rem")},E=function(e,t,n,r,i){return Si({fontFamily:o,fontWeight:e,fontSize:w(t),lineHeight:n},o===ca?{letterSpacing:"".concat(sa(r/t),"em")}:{},{},i,{},v)},C={h1:E(l,96,1,-1.5),h2:E(l,60,1,-.5),h3:E(u,48,1.04,0),h4:E(u,34,1.17,.25),h5:E(u,24,1.33,0),h6:E(p,20,1.6,.15),subtitle1:E(u,16,1.75,.15),subtitle2:E(p,14,1.57,.1),body1:E(u,16,1.5,.15),body2:E(u,14,1.43,.15),button:E(p,14,1.75,.4,la),caption:E(u,12,1.66,.4),overline:E(u,12,2.66,1,la)};return Di(Si({htmlFontSize:g,pxToRem:w,round:sa,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:h},C),b,{clone:!1})}function da(){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 pa=["none",da(0,2,1,-1,0,1,1,0,0,1,3,0),da(0,3,1,-2,0,2,2,0,0,1,5,0),da(0,3,3,-2,0,3,4,0,0,1,8,0),da(0,2,4,-1,0,4,5,0,0,1,10,0),da(0,3,5,-1,0,5,8,0,0,1,14,0),da(0,3,5,-1,0,6,10,0,0,1,18,0),da(0,4,5,-2,0,7,10,1,0,2,16,1),da(0,5,5,-3,0,8,10,1,0,3,14,2),da(0,5,6,-3,0,9,12,1,0,3,16,2),da(0,6,6,-3,0,10,14,1,0,4,18,3),da(0,6,7,-4,0,11,15,1,0,4,20,3),da(0,7,8,-4,0,12,17,2,0,5,22,4),da(0,7,8,-4,0,13,19,2,0,5,24,4),da(0,7,9,-4,0,14,21,2,0,5,26,4),da(0,8,9,-5,0,15,22,2,0,6,28,5),da(0,8,10,-5,0,16,24,2,0,6,30,5),da(0,8,11,-5,0,17,26,2,0,6,32,5),da(0,9,11,-5,0,18,28,2,0,7,34,6),da(0,9,12,-6,0,19,29,2,0,7,36,6),da(0,10,13,-6,0,20,31,3,0,8,38,7),da(0,10,13,-6,0,21,33,3,0,8,40,7),da(0,10,14,-6,0,22,35,3,0,8,42,7),da(0,11,14,-7,0,23,36,3,0,9,44,8),da(0,11,15,-7,0,24,38,3,0,9,46,8)],fa={borderRadius:4};function ha(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;e="function"==typeof t?t:function(e){return t*e};var n=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 0===n.length?e(1):1===n.length?e(n[0]):n.map((function(t){var n=e(t);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n}var ma={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)"},ga={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},va=function(e){return"".concat(Math.round(e),"ms")},ya={easing:ma,duration:ga,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?ga.standard:n,o=t.easing,i=void 0===o?ma.easeInOut:o,a=t.delay,s=void 0===a?0:a;return Ri(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:va(r)," ").concat(i," ").concat("string"==typeof s?s:va(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))}},ba={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.shadows,l=e.spacing,c=e.typography,u=void 0===c?{}:c,d=Ri(e,["breakpoints","mixins","palette","shadows","spacing","typography"]),p=aa(a),f=ta(n),h=ha(l),m=Si({breakpoints:f,direction:"ltr",mixins:na(f,h,o),overrides:{},palette:p,props:{},shadows:s||pa,typography:ua(p,u),spacing:h},Di({shape:fa,transitions:ya,zIndex:ba},d));return m}var wa="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Ea=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Ca(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0;return function(e,t){l+=1;var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ea.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[wa]&&""===a?"".concat(i,"-").concat(l):i}return"".concat(s).concat(o).concat(l)}}function ka(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var Sa="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},Ta="object"===("undefined"==typeof window?"undefined":Sa(window))&&"object"===("undefined"==typeof document?"undefined":Sa(document))&&9===document.nodeType;function Ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Na(e,t,n){return t&&Ra(e.prototype,t),n&&Ra(e,n),e}function Ma(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Pa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Da={}.constructor;function La(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(La);if(e.constructor!==Da)return e;var t={};for(var n in e)t[n]=La(e[n]);return t}function Ia(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=La(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var Oa=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n};function Aa(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=Oa(e[r]," ");else n=Oa(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n}function qa(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function za(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;if(e&&i++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var l=a[s];for(var c in l){var u=l[c];null!=u&&(r&&(r+="\n"),r+=""+qa(c+": "+Aa(u)+";",i))}}else for(var d in a){var p=a[d];null!=p&&(r&&(r+="\n"),r+=""+qa(d+": "+Aa(p)+";",i))}for(var f in t){var h=t[f];null!=h&&"fallbacks"!==f&&(r&&(r+="\n"),r+=""+qa(f+": "+Aa(h)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),qa(e+" {"+r,--i)+qa("}",i)):r}var Fa=/([[\].#*$><+~=|^:(),"'`\s])/g,Wa="undefined"!=typeof CSS&&CSS.escape,Ha=function(e){return Wa?Wa(e):e.replace(Fa,"\\$1")},$a=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}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 o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Ba=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Pa(Pa(o)),s),o.selectorText="."+Ha(o.id)),o}Ma(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]=Aa(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Si({},e,{allowEmpty:!0}):e;return za(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}($a),ja={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Ba(e,t,n)}},Va={indent:1,children:!0},Ua=/@([\w-]+)/,_a=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(Ua);for(var o in this.at=r?r[1]:"unknown",this.options=n,this.rules=new hs(Si({},n,{parent:this})),t)this.rules.add(o,t[o]);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.toString=function(e){if(void 0===e&&(e=Va),null==e.indent&&(e.indent=Va.indent),null==e.children&&(e.children=Va.children),!1===e.children)return this.key+" {}";var t=this.rules.toString(e);return t?this.key+" {\n"+t+"\n}":""},e}(),Ya=/@media|@supports\s+/,Ka={onCreateRule:function(e,t,n){return Ya.test(e)?new _a(e,t,n):null}},Xa={indent:1,children:!0},Ga=/@keyframes\s+([\w-]+)/,Za=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(Ga);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:Ha(a(this,i)),this.rules=new hs(Si({},n,{parent:this})),t)this.rules.add(s,t[s],Si({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=Xa),null==e.indent&&(e.indent=Xa.indent),null==e.children&&(e.children=Xa.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),Ja=/@keyframes\s+/,Qa=/\$([\w-]+)/g,es=function(e,t){return"string"==typeof e?e.replace(Qa,(function(e,n){return n in t?t[n]:e})):e},ts=function(e,t,n){var r=e[t],o=es(r,n);o!==r&&(e[t]=o)},ns={onCreateRule:function(e,t,n){return"string"==typeof e&&Ja.test(e)?new Za(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&ts(e,"animation-name",n.keyframes),"animation"in e&&ts(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 es(e,r.keyframes);default:return e}}},rs=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Ma(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Si({},e,{allowEmpty:!0}):e;return za(this.key,this.style,n)},t}($a),os={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new rs(e,t,n):null}},is=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=za(this.key,this.style[n]),this.style[n+1]&&(t+="\n");return t}return za(this.key,this.style,e)},e}(),as={onCreateRule:function(e,t,n){return"@font-face"===e?new is(e,t,n):null}},ss=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return za(this.key,this.style,e)},e}(),ls={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new ss(e,t,n):null}},cs=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,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}(),us={"@charset":!0,"@import":!0,"@namespace":!0},ds=[ja,Ka,ns,os,as,ls,{onCreateRule:function(e,t,n){return e in us?new cs(e,t,n):null}}],ps={process:!0},fs={force:!0,process:!0},hs=function(){function e(e){this.map={},this.raw={},this.index=[],this.options=void 0,this.classes=void 0,this.keyframes=void 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,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=Si({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c},n);this.raw[e]=t,e in this.classes&&(u.selector="."+Ha(this.classes[e]));var d=Ia(e,t,u);if(!d)return null;this.register(d);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,d),d},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.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 Ba?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Za&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ba?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Za&&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.onUpdate(t,this.get(e),n);else for(var r=0;r<this.index.length;r++)this.onUpdate(t,this.index[r],n)},t.onUpdate=function(t,n,r){void 0===r&&(r=ps);var o=this.options,i=o.jss.plugins,a=o.sheet;if(n.rules instanceof e)n.rules.update(t,r);else{var s=n,l=s.style;if(i.onUpdate(t,n,a,r),r.process&&l&&l!==s.style){for(var c in i.onProcessStyle(s.style,s,a),s.style){var u=s.style[c];u!==l[c]&&s.prop(c,u,fs)}for(var d in l){var p=s.style[d],f=l[d];null==p&&p!==f&&s.prop(d,null,fs)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t},e}(),ms=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Si({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new hs(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 o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t=this.rules.get(e);return!!t&&(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.toString=function(e){return this.rules.toString(e)},e}(),gs=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}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 o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](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}(),vs=new(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=Ti(t,["attached"]),o="",i=0;i<this.registry.length;i++){var a=this.registry[i];null!=n&&a.attached!==n||(o&&(o+="\n"),o+=a.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}()),ys="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),bs="2f1acc6c3a606b082e5eef5e54414ffb";null==ys[bs]&&(ys[bs]=0);var xs=ys[bs]++,ws=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+xs+o+t:i+n.key+"-"+xs+(o?"-"+o:"")+"-"+t}},Es=function(e){var t;return function(){return t||(t=e()),t}};function Cs(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}}function ks(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Aa(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(e){return!1}return!0}function Ss(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}}function Ts(e,t){return e.selectorText=t,e.selectorText===t}var Rs=Es((function(){return document.querySelector("head")}));function Ns(e){var t=vs.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.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=Rs(),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(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Ms=Es((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ps=function(e,t,n){var r=e.cssRules.length;(void 0===n||n>r)&&(n=r);try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(e){return!1}return e.cssRules[n]},Ds=function(){function e(e){this.getPropertyValue=Cs,this.setProperty=ks,this.removeProperty=Ss,this.setSelector=Ts,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,e&&vs.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||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 i=Ms();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Ns(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Rs().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(){var e=this.element.parentNode;e&&e.removeChild(this.element)},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,o=n;return("conditional"!==e.type&&"keyframes"!==e.type||!1!==(o=Ps(n,r.toString({children:!1}),t)))&&(this.insertRules(r.rules,o),o)}if(e.renderable&&e.renderable.parentStyleSheet===this.element.sheet)return e.renderable;var i=e.toString();if(!i)return!1;var a=Ps(n,i,t);return!1!==a&&(this.hasInsertedRules=!0,e.renderable=a,a)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),!0)},t.indexOf=function(e){for(var t=this.element.sheet.cssRules,n=0;n<t.length;n++)if(e===t[n])return n;return-1},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ls=0,Is=function(){function e(e){this.id=Ls++,this.version="10.0.0",this.plugins=new gs,this.options={id:{minify:!1},createGenerateId:ws,Renderer:Ta?Ds:null,plugins:[]},this.generateId=ws({minify:!1});for(var t=0;t<ds.length;t++)this.plugins.use(ds[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=Si({},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===vs.index?0:vs.index+1);var r=new ms(e,Si({},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(),vs.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=Si({},n,{jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=Ia(e,t,r);return o&&this.plugins.onProcessRule(o),o},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}();function Os(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Os(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
17
17
|
/**
|
|
18
18
|
* A better abstraction over CSS.
|
|
19
19
|
*
|
|
20
20
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
21
21
|
* @website https://github.com/cssinjs/jss
|
|
22
22
|
* @license MIT
|
|
23
|
-
*/var Ms="undefined"!=typeof CSS&&CSS&&"number"in CSS,Ls=function(e){return new Ps(e)};Ls();var Is=Date.now(),As="fnValues"+Is,Os="fnStyle"+ ++Is;var qs="@global",zs="@global ",Fs=function(){function e(e,t,n){for(var r in this.type="global",this.at=qs,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new us(wi({},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 this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Ws=function(){function e(e,t,n){this.type="global",this.at=qs,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(zs.length);this.rule=n.jss.createRule(r,t,wi({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Hs=/\s*,\s*/g;function Bs(e,t){for(var n=e.split(Hs),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function $s(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===qs)return new Fs(e,t,n);if("@"===e[0]&&e.substr(0,zs.length)===zs)return new Ws(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e){"style"===e.type&&(function(e){var t=e.options,n=e.style,r=n?n[qs]:null;if(r){for(var o in r)t.sheet.addRule(o,r[o],wi({},t,{selector:Bs(o,e.selector)}));delete n[qs]}}(e),function(e){var t=e.options,n=e.style;for(var r in n)if("@"===r[0]&&r.substr(0,qs.length)===qs){var o=Bs(r.substr(qs.length),e.selector);t.sheet.addRule(o,n[r],wi({},t,{selector:o})),delete n[r]}}(e))}}}var js=/\s*,\s*/g,Vs=/&/g,Us=/\$([\w-]+)/g;function _s(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(js),r=e.split(js),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Vs,a):a+" "+l}return o}function n(e,t,n){if(n)return wi({},n,{index:n.index+1});var r=e.options.nestingLevel;return r=void 0===r?1:r+1,wi({},e.options,{nestingLevel:r,index:t.indexOf(e)+1})}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,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 f=t(u,l.selector);s||(s=e(c,i)),f=f.replace(Us,s),c.addRule(f,r[u],wi({},a,{selector:f}))}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-/,Xs={};function Gs(e){return"-"+e.toLowerCase()}function Zs(e){if(Xs.hasOwnProperty(e))return Xs[e];var t=e.replace(Ys,Gs);return Xs[e]=Ks.test(t)?"-"+t:t}function Js(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(Js):t.fallbacks=Js(e.fallbacks)),t}var Qs=Ms&&CSS?CSS.px:"px",el=Ms&&CSS?CSS.ms:"ms",tl=Ms&&CSS?CSS.percent:"%";function nl(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];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,margin:Qs,"margin-bottom":Qs,"margin-left":Qs,"margin-right":Qs,"margin-top":Qs,padding:Qs,"padding-bottom":Qs,"padding-left":Qs,"padding-right":Qs,"padding-top":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,"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-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,grid:Qs,"grid-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 ol(e,t,n){if(!t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=ol(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=ol(o,t[o],n);else for(var i in t)t[i]=ol(e+"-"+i,t[i],n);else if("number"==typeof t)return n[e]?""+t+n[e]:rl[e]?"function"==typeof rl[e]?rl[e](t).toString():""+t+rl[e]:t.toString();return t}function il(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]=ol(r,e[r],t);return e},onChangeValue:function(e,n){return ol(n,e,t)}}}function al(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function sl(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||al(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var ll="",cl="",ul="",dl=Ea&&"ontouchstart"in document.documentElement;if(Ea){var pl={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},fl=document.createElement("p").style;for(var hl in pl)if(hl+"Transform"in fl){ll=hl,cl=pl[hl];break}"Webkit"===ll&&"msHyphens"in fl&&(ll="ms",cl=pl.ms,"edge"),"Webkit"===ll&&"-apple-trailing-word"in fl&&(ul="apple")}var ml=ll,gl=cl,vl=ul,yl=dl;var bl={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ml?"-webkit-"+e:gl+e)}},xl={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ml?gl+"print-"+e:e)}},wl=/[-\s]+(.)?/g;function El(e,t){return t?t.toUpperCase():""}function Cl(e){return e.replace(wl,El)}function kl(e){return Cl("-"+e)}var Sl,Tl={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ml){var n="mask-image";if(Cl(n)in t)return e;if(ml+kl(n)in t)return gl+e}return e}},Rl={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==vl||yl?e:gl+e)}},Nl={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:gl+e)}},Pl={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:gl+e)}},Dl={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ml||"ms"===ml?gl+e:e)}},Ml={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ml||"ms"===ml||"apple"===vl?gl+e:e)}},Ll={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ml?"WebkitColumn"+kl(e)in t&&gl+"column-"+e:"Moz"===ml&&("page"+kl(e)in t&&"page-"+e))}},Il={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ml)return e;var n=e.replace("-inline","");return ml+kl(n)in t&&gl+n}},Al={supportedProperty:function(e,t){return Cl(e)in t&&e}},Ol={supportedProperty:function(e,t){var n=kl(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ml+n in t?gl+e:"Webkit"!==ml&&"Webkit"+n in t&&"-webkit-"+e}},ql={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ml?""+gl+e:e)}},zl={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ml?gl+"scroll-chaining":e)}},Fl={"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"},Wl={supportedProperty:function(e,t){var n=Fl[e];return!!n&&(ml+kl(n)in t&&gl+n)}},Hl={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"},Bl=Object.keys(Hl),$l=function(e){return gl+e},jl=[bl,xl,Tl,Rl,Nl,Pl,Dl,Ml,Ll,Il,Al,Ol,ql,zl,Wl,{supportedProperty:function(e,t,n){var r=n.multiple;if(Bl.indexOf(e)>-1){var o=Hl[e];if(!Array.isArray(o))return ml+kl(o)in t&&gl+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(ml+kl(o[0])in t))return!1;return o.map($l)}return!1}}],Vl=jl.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ul=jl.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,sl(t.noPrefill)),e}),[]),_l={};if(Ea){Sl=document.createElement("p");var Yl=window.getComputedStyle(document.documentElement,"");for(var Kl in Yl)isNaN(Kl)||(_l[Yl[Kl]]=Yl[Kl]);Ul.forEach((function(e){return delete _l[e]}))}function Xl(e,t){if(void 0===t&&(t={}),!Sl)return e;if(null!=_l[e])return _l[e];"transition"!==e&&"transform"!==e||(t[e]=e in Sl.style);for(var n=0;n<Vl.length&&(_l[e]=Vl[n](e,Sl.style,t),!_l[e]);n++);try{Sl.style[e]=""}catch(e){return!1}return _l[e]}var Gl,Zl={},Jl={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ql=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ec(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Xl(t):", "+Xl(n);return r||(t||n)}function tc(e,t){var n=t;if(!Gl||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Zl[r])return Zl[r];try{Gl.style[e]=n}catch(e){return Zl[r]=!1,!1}if(Jl[e])n=n.replace(Ql,ec);else if(""===Gl.style[e]&&("-ms-flex"===(n=gl+n)&&(Gl.style[e]="-ms-flexbox"),Gl.style[e]=n,""===Gl.style[e]))return Zl[r]=!1,!1;return Gl.style[e]="",Zl[r]=n,Zl[r]}function nc(){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 o=!1,i=Xl(n);i&&i!==n&&(o=!0);var a=!1,s=tc(i,Ma(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===ml?e:"@"+gl+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return tc(t,Ma(e))||e}}}function rc(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Pa(e,{},n);return r[Os]=t,r},onProcessStyle:function(e,t){if(As in t||Os in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[As]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Os];i&&(o.style=i(e)||{});var a=o[As];if(a)for(var s in a)o.prop(s,a[s](e),r)}},$s(),_s(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Js(e[t]);return e}return Js(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)}},il(),"undefined"==typeof window?null:nc(),(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={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function oc(){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=wi({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Ea&&(Gl=document.createElement("p"));var ic=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},ac=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},sc=function(e,t,n){e.get(t).delete(n)},lc=o.createContext(null);function cc(){return o.useContext(lc)}var uc,dc=Ls(rc()),pc={disableGeneration:!1,generateClassName:ba(),jss:dc,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},fc=o.createContext(pc);function hc(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,a=void 0!==i&&i,s=Ci(e,["children","injectFirst","disableGeneration"]),l=wi({},o.useContext(fc),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!uc){var c=document.head;uc=document.createComment("mui-inject-first"),c.insertBefore(uc,c.firstChild)}l.jss=Ls({plugins:rc().plugins,insertionPoint:uc})}return o.createElement(fc.Provider,{value:l},t)}var mc=-1e9;function gc(){return mc+=1}var vc={};function yc(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=wi({},o);return Object.keys(i).forEach((function(e){a[e]=Ri(a[e],i[e])})),a},options:{}}}function bc(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=oc({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function xc(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=ac(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ic(o.sheetsManager,i,r,s));var l=wi({},i.options,{},o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=ac(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,wi({link:!1},l))).attach(),o.sheetsCache&&ic(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Ds(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,wi({link:!0},l));p.update(t).attach(),n.dynamicSheet=p,n.classes=oc({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function wc(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function Ec(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=ac(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(sc(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function Cc(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}function kc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,a=t.defaultTheme,s=void 0===a?vc:a,l=Ci(t,["name","classNamePrefix","Component","defaultTheme"]),c=yc(e),u=n||r||"makeStyles";return c.options={index:gc(),name:n,meta:u,classNamePrefix:u},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=cc()||s,r=wi({},o.useContext(fc),{},l),a=o.useRef(),u=o.useRef();return Cc((function(){var o={name:n,state:{},stylesCreator:c,stylesOptions:r,theme:t};return xc(o,e),u.current=!1,a.current=o,function(){Ec(o)}}),[t,c]),o.useEffect((function(){u.current&&wc(a.current,e),u.current=!0})),bc(a.current,e.classes,i)}}function Sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tc(e){var t,n,r="";if(e)if("object"==typeof e)if(e.push)for(t=0;t<e.length;t++)e[t]&&(n=Tc(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(n=Tc(t))&&(r&&(r+=" "),r+=n);else"boolean"==typeof e||e.call||(r&&(r+=" "),r+=e);return r}function Rc(){for(var e,t=0,n="";t<arguments.length;)(e=Tc(arguments[t++]))&&(n&&(n+=" "),n+=e);return n}var Nc=Ni.exports,Pc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Dc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Mc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Lc={};function Ic(e){return Nc.isMemo(e)?Mc:Lc[e.$$typeof]||Pc}Lc[Nc.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var Ac=Object.defineProperty,Oc=Object.getOwnPropertyNames,qc=Object.getOwnPropertySymbols,zc=Object.getOwnPropertyDescriptor,Fc=Object.getPrototypeOf,Wc=Object.prototype;var Hc=function e(t,n,r){if("string"!=typeof n){if(Wc){var o=Fc(n);o&&o!==Wc&&e(t,o,r)}var i=Oc(n);qc&&(i=i.concat(qc(n)));for(var a=Ic(t),s=Ic(n),l=0;l<i.length;++l){var c=i[l];if(!(Dc[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=zc(n,c);try{Ac(t,c,u)}catch(e){}}}return t}return t};function Bc(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function $c(e){var t=e.children,n=e.theme,r=cc(),i=o.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):wi({},e,{},t)}(r,n);return null!=e&&(e[va]=null!==r),e}),[n,r]);return o.createElement(lc.Provider,{value:i},t)}function jc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=function(e){var n=o.forwardRef((function(n,r){var i=n.innerRef,a=Ci(n,["innerRef"]),s=cc()||t;return o.createElement(e,wi({theme:s,ref:i||r},a))}));return Hc(n,e),n};return n}jc();var Vc=ga();function Uc(){return cc()||Vc}function _c(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,a=void 0!==i&&i,s=t.name,l=Ci(t,["defaultTheme","withTheme","name"]),c=s,u=kc(e,wi({defaultTheme:r,Component:n,name:s||n.displayName,classNamePrefix:c},l)),d=o.forwardRef((function(e,t){e.classes;var i,l=e.innerRef,c=Ci(e,["classes","innerRef"]),d=u(e),p=c;return("string"==typeof s||a)&&(i=cc()||r,s&&(p=xa({theme:i,name:s,props:c})),a&&!p.theme&&(p.theme=i)),o.createElement(n,wi({ref:l||t,classes:d},p))}));return d.defaultProps=n.defaultProps,Hc(d,n),d}}(e,wi({defaultTheme:Vc},t))}function Yc(e){return e.charAt(0).toUpperCase()+e.slice(1)}jc({defaultTheme:Vc});var Kc=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=e.square,l=void 0!==s&&s,c=e.elevation,u=void 0===c?1:c,d=Ci(e,["classes","className","component","square","elevation"]);return o.createElement(a,wi({className:Rc(n.root,n["elevation".concat(u)],r,!l&&n.rounded),ref:t},d))})),Xc=_c((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),wi({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius}},t)}),{name:"MuiPaper"})(Kc),Gc=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.position,l=void 0===s?"fixed":s,c=Ci(e,["classes","className","color","position"]);return o.createElement(Xc,wi({square:!0,component:"header",elevation:4,className:Rc(n.root,n["position".concat(Yc(l))],r,"inherit"!==a&&n["color".concat(Yc(a))],{fixed:"mui-fixed"}[l]),ref:t},c))}));_c((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static",transform:"translateZ(0)"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText}}}),{name:"MuiAppBar"})(Gc);var Zc=o.forwardRef((function(e,t){var n=e.alt,r=e.children,i=e.classes,a=e.className,s=e.component,l=void 0===s?"div":s,c=e.imgProps,u=e.sizes,d=e.src,p=e.srcSet,f=e.variant,h=void 0===f?"circle":f,m=Ci(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),g=null,v=d||p;return g=v?o.createElement("img",wi({alt:n,src:d,srcSet:p,sizes:u,className:i.img},c)):r,o.createElement(l,wi({className:Rc(i.root,i.system,i[h],a,!v&&i.colorDefault),ref:t},m),g)}));function Jc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}_c((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover"}}}),{name:"MuiAvatar"})(Zc);var Qc=!1,eu=o.createContext(null),tu="unmounted",nu="exited",ru="entering",ou="entered",iu="exiting",au=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=nu,r.appearStatus=ru):o=ou:o=t.unmountOnExit||t.mountOnEnter?tu:nu,r.state={status:o},r.nextCallback=null,r}Sa(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===tu?{status:nu}: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!==ou&&(t=ru):n!==ru&&n!==ou||(t=iu)}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){this.cancelNextCallback();var n=l.findDOMNode(this);t===ru?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===nu&&this.setState({status:tu})},n.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;!t&&!r||Qc?this.safeSetState({status:ou},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,o),this.safeSetState({status:ru},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:ou},(function(){n.props.onEntered(e,o)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!Qc?(this.props.onExit(e),this.safeSetState({status:iu},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:nu},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:nu},(function(){t.props.onExited(e)}))},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,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===tu)return null;var t=this.props,n=t.children,r=Ei(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return o.createElement(eu.Provider,{value:null},n(e,r));var i=o.Children.only(n);return o.createElement(eu.Provider,{value:null},o.cloneElement(i,r))},t}(o.Component);function su(){}au.contextType=eu,au.propTypes={},au.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:su,onEntering:su,onEntered:su,onExit:su,onExiting:su,onExited:su},au.UNMOUNTED=0,au.EXITED=1,au.ENTERING=2,au.ENTERED=3,au.EXITING=4;var lu=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},cu=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Jc(n.className,r):n.setAttribute("class",Jc(n.className&&n.className.baseVal||"",r)));var n,r}))},uu=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){t.removeClasses(e,"exit"),t.addClass(e,n?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=n?"appear":"enter";t.addClass(e,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=n?"appear":"enter";t.removeClasses(e,r),t.addClass(e,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),t.addClass(e,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){t.addClass(e,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){t.removeClasses(e,"exit"),t.addClass(e,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Sa(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"];"appear"===t&&"done"===n&&(r+=" "+this.getClassNames("enter").doneClassName),"active"===n&&e&&e.scrollTop,this.appliedClasses[t][n]=r,lu(e,r)},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&cu(e,r),o&&cu(e,o),i&&cu(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Ei(e,["classNames"]);return o.createElement(au,wi({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);function du(e,t){var n=Object.create(null);return e&&i.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),n}function pu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function fu(e,t,n){var r=du(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var l=o[i];if(a(l)){var c=i in t,u=i in r,d=t[i],p=a(d)&&!d.props.in;!u||c&&!p?u||!c||p?u&&c&&a(d)&&(o[i]=s(l,{onExited:n.bind(null,l),in:d.props.in,exit:pu(l,"exit",e),enter:pu(l,"enter",e)})):o[i]=s(l,{in:!1}):o[i]=s(l,{onExited:n.bind(null,l),in:!0,exit:pu(l,"exit",e),enter:pu(l,"enter",e)})}})),o}uu.defaultProps={classNames:""},uu.propTypes={};var hu,mu,gu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},vu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ta(Ta(r)));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Sa(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,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,du(n.children,(function(e){return s(e,{onExited:r.bind(null,e),in:!0,appear:pu(e,"appear",n),enter:pu(e,"enter",n),exit:pu(e,"exit",n)})}))):fu(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=du(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=wi({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ei(e,["component","childFactory"]),i=this.state.contextValue,a=gu(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(eu.Provider,{value:i},a):o.createElement(eu.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);vu.propTypes={},vu.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Sa(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,a=o.Children.toArray(i)[t];a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]&&this.props[e](l.findDOMNode(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Ei(e,["children","in"]),i=o.Children.toArray(t),a=i[0],s=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,o.createElement(vu,r,n?o.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(o.Component)).propTypes={};var yu="out-in",bu="in-out",xu=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},wu=((hu={})[yu]=function(e){var t=e.current,n=e.changeState;return o.cloneElement(t,{in:!1,onExited:xu(t,"onExited",(function(){n(ru,null)}))})},hu[bu]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,o.cloneElement(r,{in:!0,onEntered:xu(r,"onEntered",(function(){n(ru)}))})]},hu),Eu=((mu={})[yu]=function(e){var t=e.children,n=e.changeState;return o.cloneElement(t,{in:!0,onEntered:xu(t,"onEntered",(function(){n(ou,o.cloneElement(t,{in:!0}))}))})},mu[bu]=function(e){var t=e.current,n=e.children,r=e.changeState;return[o.cloneElement(t,{in:!1,onExited:xu(t,"onExited",(function(){r(ou,o.cloneElement(n,{in:!0}))}))}),o.cloneElement(n,{in:!0})]},mu),Cu=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:ou,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Sa(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===ru&&e.mode===bu?{status:ru}:!t.current||(n=t.current,r=e.children,n===r||o.isValidElement(n)&&o.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:o.cloneElement(e.children,{in:!0})}:{status:iu};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,a=i.status,s=i.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case ru:e=Eu[r](l);break;case iu:e=wu[r](l);break;case ou:e=s}return o.createElement(eu.Provider,{value:{isMounting:!this.appeared}},e)},t}(o.Component);Cu.propTypes={},Cu.defaultProps={mode:yu};var ku=function(e){return e.scrollTop};function Su(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function Tu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ru(e,t){return o.useMemo((function(){return null==e&&null==t?null:function(n){Tu(e,n),Tu(t,n)}}),[e,t])}var Nu={entering:{opacity:1},entered:{opacity:1}},Pu={enter:pa.enteringScreen,exit:pa.leavingScreen},Du=o.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,a=e.onExit,s=e.style,l=e.timeout,c=void 0===l?Pu:l,u=Ci(e,["children","in","onEnter","onExit","style","timeout"]),d=Uc(),p=Ru(n.ref,t);return o.createElement(au,wi({appear:!0,in:r,onEnter:function(e,t){ku(e);var n=Su({style:s,timeout:c},{mode:"enter"});e.style.webkitTransition=d.transitions.create("opacity",n),e.style.transition=d.transitions.create("opacity",n),i&&i(e,t)},onExit:function(e){var t=Su({style:s,timeout:c},{mode:"exit"});e.style.webkitTransition=d.transitions.create("opacity",t),e.style.transition=d.transitions.create("opacity",t),a&&a(e)},timeout:c},u),(function(e,t){return o.cloneElement(n,wi({style:wi({opacity:0,visibility:"exited"!==e||r?void 0:"hidden"},Nu[e],{},s,{},n.props.style),ref:p},t))}))})),Mu=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.invisible,s=void 0!==a&&a,l=e.open,c=e.transitionDuration,u=Ci(e,["children","classes","className","invisible","open","transitionDuration"]);return o.createElement(Du,wi({in:l,timeout:c},u),o.createElement("div",{className:Rc(r.root,i,s&&r.invisible),"aria-hidden":!0,ref:t},n))})),Lu=_c({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Mu),Iu=o.forwardRef((function(e,t){var n=e.anchorOrigin,r=void 0===n?{vertical:"top",horizontal:"right"}:n,i=e.badgeContent,a=e.children,s=e.classes,l=e.className,c=e.color,u=void 0===c?"default":c,d=e.component,p=void 0===d?"span":d,f=e.invisible,h=e.max,m=void 0===h?99:h,g=e.overlap,v=void 0===g?"rectangle":g,y=e.showZero,b=void 0!==y&&y,x=e.variant,w=void 0===x?"standard":x,E=Ci(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),C=f;null==f&&(0===i&&!b||null==i&&"dot"!==w)&&(C=!0);var k="";return"dot"!==w&&(k=i>m?"".concat(m,"+"):i),o.createElement(p,wi({className:Rc(s.root,l),ref:t},E),a,o.createElement("span",{className:Rc(s.badge,s["".concat(r.horizontal).concat(Yc(r.vertical),"}")],s["anchorOrigin".concat(Yc(r.vertical)).concat(Yc(r.horizontal)).concat(Yc(v))],"default"!==u&&s["color".concat(Yc(u))],C&&s.invisible,{dot:s.dot}[w])},k))}));_c((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,backgroundColor:e.palette.color,color:e.palette.textColor,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{height:6,minWidth:6,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(Iu);var Au=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.onChange,c=e.showLabels,u=void 0!==c&&c,d=e.value,p=Ci(e,["children","classes","className","component","onChange","showLabels","value"]);return o.createElement(s,wi({className:Rc(r.root,i),ref:t},p),o.Children.map(n,(function(e,t){if(!o.isValidElement(e))return null;var n=void 0===e.props.value?t:e.props.value;return o.cloneElement(e,{selected:n===d,showLabel:void 0!==e.props.showLabel?e.props.showLabel:u,value:n,onChange:l})})))}));_c((function(e){return{root:{display:"flex",justifyContent:"center",height:56,backgroundColor:e.palette.background.paper}}}),{name:"MuiBottomNavigation"})(Au);var Ou="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function qu(e){var t=o.useRef(e);return Ou((function(){t.current=e})),o.useCallback((function(e){return(0,t.current)(e)}),[])}var zu="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function Fu(e){var t=e.children,n=e.defer,r=void 0!==n&&n,i=e.fallback,a=void 0===i?null:i,s=o.useState(!1),l=s[0],c=s[1];return zu((function(){r||c(!0)}),[r]),o.useEffect((function(){r&&c(!0)}),[r]),o.createElement(o.Fragment,null,l?t:a)}var Wu=!0,Hu=!1,Bu=null,$u={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 ju(e){e.metaKey||e.altKey||e.ctrlKey||(Wu=!0)}function Vu(){Wu=!1}function Uu(){"hidden"===this.visibilityState&&Hu&&(Wu=!0)}function _u(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return Wu||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!$u[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function Yu(){Hu=!0,window.clearTimeout(Bu),Bu=window.setTimeout((function(){Hu=!1}),100)}function Ku(){return{isFocusVisible:_u,onBlurVisible:Yu,ref:o.useCallback((function(e){var t=l.findDOMNode(e);null!=t&&function(e){e.addEventListener("keydown",ju,!0),e.addEventListener("mousedown",Vu,!0),e.addEventListener("pointerdown",Vu,!0),e.addEventListener("touchstart",Vu,!0),e.addEventListener("visibilitychange",Uu,!0)}(t.ownerDocument)}),[])}}var Xu="undefined"==typeof window?o.useEffect:o.useLayoutEffect;function Gu(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,a=e.rippleY,s=e.rippleSize,l=e.in,c=e.onExited,u=void 0===c?function(){}:c,d=e.timeout,p=o.useState(!1),f=p[0],h=p[1],m=Rc(t.ripple,t.rippleVisible,r&&t.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+i},v=Rc(t.child,f&&t.childLeaving,r&&t.childPulsate),y=qu(u);return Xu((function(){if(!l){h(!0);var e=setTimeout(y,d);return function(){clearTimeout(e)}}}),[y,l,d]),o.createElement("span",{className:m,style:g},o.createElement("span",{className:v}))}var Zu=o.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,a=e.className,s=Ci(e,["center","classes","className"]),l=o.useState([]),c=l[0],u=l[1],d=o.useRef(0),p=o.useRef(null);o.useEffect((function(){p.current&&(p.current(),p.current=null)}),[c]);var f=o.useRef(!1),h=o.useRef(null),m=o.useRef(null),g=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var v=o.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,a=e.rippleSize,s=e.cb;u((function(e){return[].concat(sl(e),[o.createElement(Gu,{key:d.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a})])})),d.current+=1,p.current=s}),[i]),y=o.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,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,p,y=c?null:g.current,b=y?y.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.clientX?e.clientX:e.touches[0].clientX,w=e.clientY?e.clientY:e.touches[0].clientY;u=Math.round(x-b.left),d=Math.round(w-b.top)}if(s)(p=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(p+=1);else{var E=2*Math.max(Math.abs((y?y.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(E,2)+Math.pow(C,2))}e.touches?(m.current=function(){v({pulsate:i,rippleX:u,rippleY:d,rippleSize:p,cb:n})},h.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):v({pulsate:i,rippleX:u,rippleY:d,rippleSize:p,cb:n})}}),[r,v]),b=o.useCallback((function(){y({},{pulsate:!0})}),[y]),x=o.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(h.current=setTimeout((function(){x(e,t)})));m.current=null,u((function(e){return e.length>0?e.slice(1):e})),p.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:b,start:y,stop:x}}),[b,y,x]),o.createElement("span",wi({className:Rc(i.root,a),ref:g},s),o.createElement(vu,{component:null,exit:!0},c))}));var Ju,Qu=_c((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"})(((Ju=o.memo(Zu)).muiName="MuiTouchRipple",Ju)),ed=o.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,a=void 0!==i&&i,s=e.children,c=e.classes,u=e.className,d=e.component,p=void 0===d?"button":d,f=e.disabled,h=void 0!==f&&f,m=e.disableRipple,g=void 0!==m&&m,v=e.disableTouchRipple,y=void 0!==v&&v,b=e.focusRipple,x=void 0!==b&&b,w=e.focusVisibleClassName,E=e.onBlur,C=e.onClick,k=e.onFocus,S=e.onFocusVisible,T=e.onKeyDown,R=e.onKeyUp,N=e.onMouseDown,P=e.onMouseLeave,D=e.onMouseUp,M=e.onTouchEnd,L=e.onTouchMove,I=e.onTouchStart,A=e.onDragLeave,O=e.tabIndex,q=void 0===O?0:O,z=e.TouchRippleProps,F=e.type,W=void 0===F?"button":F,H=Ci(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"]),B=o.useRef(null);var $=o.useRef(null),j=o.useState(!1),V=j[0],U=j[1];h&&V&&U(!1);var _=Ku(),Y=_.isFocusVisible,K=_.onBlurVisible,X=_.ref;function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return qu((function(r){return t&&t(r),!n&&$.current&&$.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){U(!0),B.current.focus()}}}),[]),o.useEffect((function(){V&&x&&!g&&$.current.pulsate()}),[g,x,V]);var Z=G("start",N),J=G("stop",A),Q=G("stop",D),ee=G("stop",(function(e){V&&e.preventDefault(),P&&P(e)})),te=G("start",I),ne=G("stop",M),re=G("stop",L),oe=G("stop",(function(e){V&&(K(e),U(!1)),E&&E(e)}),!1),ie=qu((function(e){h||(B.current||(B.current=e.currentTarget),Y(e)&&(U(!0),S&&S(e)),k&&k(e))})),ae=o.useRef(!1),se=qu((function(e){x&&!ae.current&&V&&$.current&&" "===e.key&&(ae.current=!0,e.persist(),$.current.stop(e,(function(){$.current.start(e)}))),T&&T(e);var t=l.findDOMNode(B.current);e.target!==e.currentTarget||!p||"button"===p||" "!==e.key&&"Enter"!==e.key||"A"===t.tagName&&t.href||(e.preventDefault(),C&&C(e))})),le=qu((function(e){x&&" "===e.key&&$.current&&V&&(ae.current=!1,e.persist(),$.current.stop(e,(function(){$.current.pulsate(e)}))),R&&R(e)})),ce=p;"button"===ce&&H.href&&(ce="a");var ue={};"button"===ce?(ue.type=W,ue.disabled=h):("a"===ce&&H.href||(ue.role="button"),ue["aria-disabled"]=h);var de=Ru(r,t),pe=Ru(X,B),fe=Ru(de,pe);return o.createElement(ce,wi({className:Rc(c.root,u,V&&[c.focusVisible,w],h&&c.disabled),onBlur:oe,onClick:C,onFocus:ie,onKeyDown:se,onKeyUp:le,onMouseDown:Z,onMouseLeave:ee,onMouseUp:Q,onDragLeave:J,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:h?-1:q},ue,H),s,g||h?null:o.createElement(Fu,null,o.createElement(Qu,wi({ref:$,center:a},z))))})),td=_c({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"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(ed),nd=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.icon,a=e.label,s=e.onChange,l=e.onClick,c=e.selected,u=e.showLabel,d=e.value,p=Ci(e,["classes","className","icon","label","onChange","onClick","selected","showLabel","value"]);return o.createElement(td,wi({ref:t,className:Rc(n.root,r,c?n.selected:!u&&n.iconOnly),focusRipple:!0,onClick:function(e){s&&s(e,d),l&&l(e)}},p),o.createElement("span",{className:n.wrapper},i,o.createElement("span",{className:Rc(n.label,c?n.selected:!u&&n.iconOnly)},a)))}));function rd(e,t){return t?Ri(e,t,{clone:!1}):e}_c((function(e){return{root:{transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"6px 12px 8px",minWidth:80,maxWidth:168,color:e.palette.text.secondary,flex:"1","&$iconOnly":{paddingTop:16},"&$selected":{paddingTop:6,color:e.palette.primary.main}},selected:{},iconOnly:{},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},label:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s","&$iconOnly":{opacity:0,transitionDelay:"0s"},"&$selected":{fontSize:e.typography.pxToRem(14)}}}}),{name:"MuiBottomNavigationAction"})(nd);var od={xs:0,sm:600,md:960,lg:1280,xl:1920},id={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(od[e],"px)")}};function ad(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||id;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Si(t)){var o=e.theme.breakpoints||id;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function sd(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function ld(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=sd(e.theme,o)||{};return ad(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=sd(a,e)||e,i&&(t=i(t))),!1===r?t:xi({},r,t)}))};return a.propTypes={},a.filterProps=[t],a}function cd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?rd(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function ud(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var dd=cd(ld({prop:"border",themeKey:"borders",transform:ud}),ld({prop:"borderTop",themeKey:"borders",transform:ud}),ld({prop:"borderRight",themeKey:"borders",transform:ud}),ld({prop:"borderBottom",themeKey:"borders",transform:ud}),ld({prop:"borderLeft",themeKey:"borders",transform:ud}),ld({prop:"borderColor",themeKey:"palette"}),ld({prop:"borderRadius",themeKey:"shape"}));var pd=cd(ld({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),ld({prop:"display"}),ld({prop:"overflow"}),ld({prop:"textOverflow"}),ld({prop:"visibility"}),ld({prop:"whiteSpace"})),fd=cd(ld({prop:"flexBasis"}),ld({prop:"flexDirection"}),ld({prop:"flexWrap"}),ld({prop:"justifyContent"}),ld({prop:"alignItems"}),ld({prop:"alignContent"}),ld({prop:"order"}),ld({prop:"flex"}),ld({prop:"flexGrow"}),ld({prop:"flexShrink"}),ld({prop:"alignSelf"}),ld({prop:"justifyItems"}),ld({prop:"justifySelf"})),hd=cd(ld({prop:"color",themeKey:"palette"}),ld({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),md=cd(ld({prop:"position"}),ld({prop:"zIndex",themeKey:"zIndex"}),ld({prop:"top"}),ld({prop:"right"}),ld({prop:"bottom"}),ld({prop:"left"})),gd=ld({prop:"boxShadow",themeKey:"shadows"});function vd(e){return e<=1?"".concat(100*e,"%"):e}var yd=ld({prop:"width",transform:vd}),bd=ld({prop:"maxWidth",transform:vd}),xd=ld({prop:"minWidth",transform:vd}),wd=ld({prop:"height",transform:vd}),Ed=ld({prop:"maxHeight",transform:vd}),Cd=ld({prop:"minHeight",transform:vd});ld({prop:"size",cssProperty:"width",transform:vd}),ld({prop:"size",cssProperty:"height",transform:vd});var kd=cd(yd,bd,xd,wd,Ed,Cd);function Sd(e){if(Array.isArray(e))return e}function Td(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Rd(e,t){return Sd(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||Td()}var Nd={m:"margin",p:"padding"},Pd={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Md=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!Dd[e])return[e];e=Dd[e]}var t=Rd(e.split(""),2),n=t[0],r=t[1],o=Nd[n],i=Pd[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Ld=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Id(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function Ad(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(){}}(e.theme);return Object.keys(e).map((function(n){if(-1===Ld.indexOf(n))return null;var r=Id(Md(n),t),o=e[n];return ad(e,o,r)})).reduce(rd,{})}Ad.propTypes={},Ad.filterProps=Ld;var Od=cd(ld({prop:"fontFamily",themeKey:"typography"}),ld({prop:"fontSize",themeKey:"typography"}),ld({prop:"fontStyle",themeKey:"typography"}),ld({prop:"fontWeight",themeKey:"typography"}),ld({prop:"letterSpacing"}),ld({prop:"lineHeight"}),ld({prop:"textAlign"})),qd=function(e){var t=function(t){var n=e(t);return t.css?wi({},rd(n,e(wi({theme:t.theme},t.css))),{},function(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(t.css,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css"].concat(sl(e.filterProps)),t}(cd(dd,pd,fd,md,hd,gd,kd,Ad,Od));!function(e){var t=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,a=Ci(r,["name"]),s=i,l=kc("function"==typeof t?function(e){return{root:function(n){return t(wi({theme:e},n))}}}:{root:t},wi({Component:e,name:i||e.displayName,classNamePrefix:s},a));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=o.forwardRef((function(t,r){var i=t.children,a=t.className,s=t.clone,c=t.component,u=Ci(t,["children","className","clone","component"]),d=Rc(l(t).root,a),p=u;if(n&&(p=Bc(p,n)),s)return o.cloneElement(i,wi({className:Rc(i.props.className,d)},p));if("function"==typeof i)return i(wi({className:d},p));var f=c||e;return o.createElement(f,wi({ref:r,className:d},p),i)}));return Hc(c,e),c}}(e);return function(e,n){return t(e,wi({defaultTheme:Vc},n))}}("div")(qd,{name:"MuiBox"});var zd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Fd=o.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,a=e.className,s=e.color,l=void 0===s?"initial":s,c=e.component,u=e.display,d=void 0===u?"initial":u,p=e.gutterBottom,f=void 0!==p&&p,h=e.noWrap,m=void 0!==h&&h,g=e.paragraph,v=void 0!==g&&g,y=e.variant,b=void 0===y?"body1":y,x=e.variantMapping,w=void 0===x?zd:x,E=Ci(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=c||(v?"p":w[b]||zd[b])||"span";return o.createElement(C,wi({className:Rc(i.root,a,"inherit"!==b&&i[b],"initial"!==l&&i["color".concat(Yc(l))],m&&i.noWrap,f&&i.gutterBottom,v&&i.paragraph,"inherit"!==r&&i["align".concat(Yc(r))],"initial"!==d&&i["display".concat(Yc(d))]),ref:t},E))})),Wd=_c((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"})(Fd),Hd=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"inherit":a,l=e.component,c=void 0===l?"svg":l,u=e.fontSize,d=void 0===u?"default":u,p=e.htmlColor,f=e.titleAccess,h=e.viewBox,m=void 0===h?"0 0 24 24":h,g=Ci(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(c,wi({className:Rc(r.root,i,"inherit"!==s&&r["color".concat(Yc(s))],"default"!==d&&r["fontSize".concat(Yc(d))]),focusable:"false",viewBox:m,color:p,"aria-hidden":f?"false":"true",role:f?"img":"presentation",ref:t},g),n,f?o.createElement("title",null,f):null)}));Hd.muiName="SvgIcon";var Bd=_c((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(Hd);function $d(e,t){var n=o.memo(o.forwardRef((function(t,n){return o.createElement(Bd,wi({},t,{ref:n}),e)})));return n.muiName=Bd.muiName,n}var jd=$d(o.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var Vd=_c((function(e){return{root:{display:"flex"},icon:{width:24,height:16,backgroundColor:e.palette.grey[100],color:e.palette.grey[700],borderRadius:2,marginLeft:e.spacing(.5),marginRight:e.spacing(.5),cursor:"pointer","&:hover, &:focus":{backgroundColor:e.palette.grey[200]},"&:active":{boxShadow:e.shadows[0],backgroundColor:gi(e.palette.grey[200],.12)}}}}),{name:"PrivateBreadcrumbCollapsed"})((function(e){var t=e.classes,n=Ci(e,["classes"]);return o.createElement("li",wi({className:t.root},n),o.createElement(jd,{className:t.icon}))}));var Ud=_c({root:{display:"flex",userSelect:"none",marginLeft:8,marginRight:8}},{name:"PrivateBreadcrumbSeparator"})((function(e){var t=e.classes,n=e.className,r=Ci(e,["classes","className"]);return o.createElement("li",wi({"aria-hidden":!0,className:Rc(t.root,n)},r))}));var _d=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"nav":a,l=e.itemsAfterCollapse,c=void 0===l?1:l,u=e.itemsBeforeCollapse,d=void 0===u?1:u,p=e.maxItems,f=void 0===p?8:p,h=e.separator,m=void 0===h?"/":h,g=Ci(e,["children","classes","className","component","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),v=o.useState(!1),y=v[0],b=v[1],x=o.Children.toArray(n).filter((function(e){return o.isValidElement(e)})).map((function(e,t){return o.createElement("li",{className:r.li,key:"child-".concat(t)},e)}));return o.createElement(Wd,wi({ref:t,component:s,color:"textSecondary",className:Rc(r.root,i)},g),o.createElement("ol",{className:r.ol},function(e,t,n){return e.reduce((function(r,i,a){return a<e.length-1?r=r.concat(i,o.createElement(Ud,{key:"separator-".concat(a),className:t},n)):r.push(i),r}),[])}(y||f&&x.length<=f?x:function(e){return d+c>=e.length?e:[].concat(sl(e.slice(0,d)),[o.createElement(Vd,{key:"ellipsis",onClick:function(){b(!0)}})],sl(e.slice(e.length-c,e.length)))}(x),r.separator,m)))}));_c({root:{},ol:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0},li:{listStyle:"none"},separator:{}},{name:"MuiBreadcrumbs"})(_d);var Yd=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"button":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,f=void 0!==p&&p,h=e.endIcon,m=e.focusVisibleClassName,g=e.fullWidth,v=void 0!==g&&g,y=e.size,b=void 0===y?"medium":y,x=e.startIcon,w=e.type,E=void 0===w?"button":w,C=e.variant,k=void 0===C?"text":C,S=Ci(e,["children","classes","className","color","component","disabled","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),T=x&&o.createElement("span",{className:Rc(r.startIcon,r["iconSize".concat(Yc(b))])},x),R=h&&o.createElement("span",{className:Rc(r.endIcon,r["iconSize".concat(Yc(b))])},h);return o.createElement(td,wi({className:Rc(r.root,r[k],i,"inherit"===s?r.colorInherit:"default"!==s&&r["".concat(k).concat(Yc(s))],"medium"!==b&&[r["".concat(k,"Size").concat(Yc(b))],r["size".concat(Yc(b))]],d&&r.disabled,v&&r.fullWidth),component:c,disabled:d,focusRipple:!f,focusVisibleClassName:Rc(r.focusVisible,m),ref:t,type:E},S),o.createElement("span",{className:r.label},T,n,R))})),Kd=_c((function(e){return{root:wi({},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:vi(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:vi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:vi(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.disabled)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(vi(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:vi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(vi(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:vi(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}}},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"})(Yd),Xd=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"div":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,f=void 0!==p&&p,h=e.disableRipple,m=void 0!==h&&h,g=e.fullWidth,v=void 0!==g&&g,y=e.size,b=void 0===y?"medium":y,x=e.variant,w=void 0===x?"outlined":x,E=Ci(e,["children","classes","className","color","component","disabled","disableFocusRipple","disableRipple","fullWidth","size","variant"]),C=Rc(r.grouped,r["grouped".concat(Yc(w))],r["grouped".concat(Yc(w)).concat("default"!==s?Yc(s):"")],d&&r.disabled);return o.createElement(c,wi({role:"group",className:Rc(r.root,i,v&&r.fullWidth,{contained:r.contained}[w]),ref:t},E),o.Children.map(n,(function(e){return o.isValidElement(e)?o.cloneElement(e,{className:Rc(C,e.props.className),disabled:e.props.disabled||d,color:e.props.color||s,disableFocusRipple:f,disableRipple:m,fullWidth:v,size:e.props.size||b,variant:e.props.variant||w}):null})))}));_c((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},contained:{boxShadow:e.shadows[2]},fullWidth:{width:"100%"},grouped:{minWidth:40,"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedText:{"&:not(:last-child)":{borderRight:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:vi(e.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:vi(e.palette.secondary.main,.5)}},groupedOutlined:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:e.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:e.palette.secondary.main}},groupedContained:{boxShadow:"none","&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.primary.dark)}},groupedContainedSecondary:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.secondary.dark)}},disabled:{}}}),{name:"MuiButtonGroup"})(Xd);var Gd=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.raised,a=void 0!==i&&i,s=Ci(e,["classes","className","raised"]);return o.createElement(Xc,wi({className:Rc(n.root,r),elevation:a?8:1,ref:t},s))}));_c({root:{overflow:"hidden"}},{name:"MuiCard"})(Gd);var Zd=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.focusVisibleClassName,s=Ci(e,["children","classes","className","focusVisibleClassName"]);return o.createElement(td,wi({className:Rc(r.root,i),focusVisibleClassName:Rc(a,r.focusVisible),ref:t},s),n,o.createElement("span",{className:r.focusHighlight}))}));_c((function(e){return{root:{display:"block",textAlign:"inherit",width:"100%","&:hover $focusHighlight":{opacity:e.palette.action.hoverOpacity},"&$focusVisible $focusHighlight":{opacity:.12}},focusVisible:{},focusHighlight:{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}}}),{name:"MuiCardActionArea"})(Zd);var Jd=o.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,i=e.classes,a=e.className,s=Ci(e,["disableSpacing","classes","className"]);return o.createElement("div",wi({className:Rc(i.root,a,!r&&i.spacing),ref:t},s))}));_c({root:{display:"flex",alignItems:"center",padding:8},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiCardActions"})(Jd);var Qd=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=Ci(e,["classes","className","component"]);return o.createElement(a,wi({className:Rc(n.root,r),ref:t},s))}));_c({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(Qd);var ep=o.forwardRef((function(e,t){var n=e.action,r=e.avatar,i=e.classes,a=e.className,s=e.component,l=void 0===s?"div":s,c=e.disableTypography,u=void 0!==c&&c,d=e.subheader,p=e.subheaderTypographyProps,f=e.title,h=e.titleTypographyProps,m=Ci(e,["action","avatar","classes","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"]),g=f;null==g||g.type===Wd||u||(g=o.createElement(Wd,wi({variant:r?"body2":"h5",className:i.title,component:"span",display:"block"},h),g));var v=d;return null==v||v.type===Wd||u||(v=o.createElement(Wd,wi({variant:r?"body2":"body1",className:i.subheader,color:"textSecondary",component:"span",display:"block"},p),v)),o.createElement(l,wi({className:Rc(i.root,a),ref:t},m),r&&o.createElement("div",{className:i.avatar},r),o.createElement("div",{className:i.content},g,v),n&&o.createElement("div",{className:i.action},n))}));_c({root:{display:"flex",alignItems:"center",padding:16},avatar:{flex:"0 0 auto",marginRight:16},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-8,marginRight:-8},content:{flex:"1 1 auto"},title:{},subheader:{}},{name:"MuiCardHeader"})(ep);var tp=["video","audio","picture","iframe","img"],np=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.image,c=e.src,u=e.style,d=Ci(e,["children","classes","className","component","image","src","style"]),p=-1!==tp.indexOf(s),f=!p&&l?wi({backgroundImage:'url("'.concat(l,'")')},u):u;return o.createElement(s,wi({className:Rc(r.root,i,p&&r.media,-1!=="picture img".indexOf(s)&&r.img),ref:t,style:f,src:p?l||c:void 0},d),n)}));_c({root:{display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},media:{width:"100%"},img:{objectFit:"cover"}},{name:"MuiCardMedia"})(np);var rp=o.createContext();function op(){return o.useContext(rp)}function ip(){return o.useContext(rp)}var ap=o.forwardRef((function(e,t){var n=e.edge,r=void 0!==n&&n,i=e.children,a=e.classes,s=e.className,l=e.color,c=void 0===l?"default":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,f=void 0!==p&&p,h=e.size,m=void 0===h?"medium":h,g=Ci(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(td,wi({className:Rc(a.root,s,"default"!==c&&a["color".concat(Yc(c))],d&&a.disabled,{small:a["size".concat(Yc(m))]}[m],{start:a.edgeStart,end:a.edgeEnd}[r]),centerRipple:!0,focusRipple:!f,disabled:d,ref:t},g),o.createElement("span",{className:a.label},i))})),sp=_c((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:vi(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:vi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:vi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(ap),lp=o.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,i=e.checkedIcon,a=e.classes,s=e.className,l=e.defaultChecked,c=e.disabled,u=e.icon,d=e.id,p=e.inputProps,f=e.inputRef,h=e.name,m=e.onBlur,g=e.onChange,v=e.onFocus,y=e.readOnly,b=e.required,x=e.tabIndex,w=e.type,E=e.value,C=Ci(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),k=o.useRef(null!=r).current,S=o.useState(Boolean(l)),T=S[0],R=S[1],N=ip(),P=c;N&&void 0===P&&(P=N.disabled);var D=k?r:T,M="checkbox"===w||"radio"===w;return o.createElement(sp,wi({component:"span",className:Rc(a.root,s,D&&a.checked,P&&a.disabled),disabled:P,tabIndex:null,role:void 0,onFocus:function(e){v&&v(e),N&&N.onFocus&&N.onFocus(e)},onBlur:function(e){m&&m(e),N&&N.onBlur&&N.onBlur(e)},ref:t},C),o.createElement("input",wi({autoFocus:n,checked:r,defaultChecked:l,className:a.input,disabled:P,id:M&&d,name:h,onChange:function(e){var t=e.target.checked;k||R(t),g&&g(e,t)},readOnly:y,ref:f,required:b,tabIndex:x,type:w,value:E},p)),D?i:u)})),cp=_c({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(lp),up=$d(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),dp=$d(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),pp=$d(o.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"})),fp=o.createElement(dp,null),hp=o.createElement(up,null),mp=o.createElement(pp,null),gp=o.forwardRef((function(e,t){var n=e.checkedIcon,r=void 0===n?fp:n,i=e.classes,a=e.color,s=void 0===a?"secondary":a,l=e.icon,c=void 0===l?hp:l,u=e.indeterminate,d=void 0!==u&&u,p=e.indeterminateIcon,f=void 0===p?mp:p,h=e.inputProps,m=Ci(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps"]);return o.createElement(cp,wi({type:"checkbox",checkedIcon:d?f:r,classes:{root:Rc(i.root,i["color".concat(Yc(s))],d&&i.indeterminate),checked:i.checked,disabled:i.disabled},color:s,inputProps:wi({"data-indeterminate":d},h),icon:d?f:c,ref:t},m))}));_c((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:vi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:vi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(gp);var vp=$d(o.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})),yp=o.forwardRef((function(e,t){var n=e.avatar,r=e.classes,i=e.className,a=e.clickable,s=e.color,l=void 0===s?"default":s,c=e.component,u=e.deleteIcon,d=e.disabled,p=void 0!==d&&d,f=e.icon,h=e.label,m=e.onClick,g=e.onDelete,v=e.onKeyDown,y=e.onKeyUp,b=e.size,x=void 0===b?"medium":b,w=e.variant,E=void 0===w?"default":w,C=Ci(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),k=o.useRef(null),S=Ru(k,t),T=function(e){e.stopPropagation(),g&&g(e)},R=!(!1===a||!m)||a,N="small"===x,P=c||(R?td:"div"),D=P===td?{component:"div"}:{},M=null;if(g){var L=Rc("default"!==l&&("default"===E?r["deleteIconColor".concat(Yc(l))]:r["deleteIconOutlinedColor".concat(Yc(l))]),N&&r.deleteIconSmall);M=u&&o.isValidElement(u)?o.cloneElement(u,{className:Rc(u.props.className,r.deleteIcon,L),onClick:T}):o.createElement(vp,{className:Rc(r.deleteIcon,L),onClick:T})}var I=null;n&&o.isValidElement(n)&&(I=o.cloneElement(n,{className:Rc(r.avatar,n.props.className,N&&r.avatarSmall,"default"!==l&&r["avatarColor".concat(Yc(l))])}));var A=null;return f&&o.isValidElement(f)&&(A=o.cloneElement(f,{className:Rc(r.icon,f.props.className,N&&r.iconSmall,"default"!==l&&r["iconColor".concat(Yc(l))])})),o.createElement(P,wi({role:R||g?"button":void 0,className:Rc(r.root,i,"default"!==l&&[r["color".concat(Yc(l))],R&&r["clickableColor".concat(Yc(l))],g&&r["deletableColor".concat(Yc(l))]],"default"!==E&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[l]],p&&r.disabled,N&&r.sizeSmall,R&&r.clickable,g&&r.deletable),"aria-disabled":!!p||void 0,tabIndex:R||g?0:void 0,onClick:m,onKeyDown:function(e){v&&v(e),e.currentTarget===e.target&&-1!==[" ","Enter","Backspace","Delete","Escape"].indexOf(e.key)&&e.preventDefault()},onKeyUp:function(e){if(y&&y(e),e.currentTarget===e.target){var t=e.key;!g||"Backspace"!==t&&"Delete"!==t?"Escape"===t&&k.current&&k.current.blur():g(e)}},ref:S},D,C),I||A,o.createElement("span",{className:Rc(r.label,N&&r.labelSmall)},h),M)}));_c((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=vi(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:gi(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:gi(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:gi(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:gi(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:gi(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:gi(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:vi(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:vi(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:vi(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{display:"flex",alignItems:"center",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:vi(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:vi(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:vi(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:vi(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:vi(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(yp);var bp=44;function xp(e){var t,n,r;return t=e,n=0,r=1,e=(Math.min(Math.max(n,t),r)-n)/(r-n),e=(e-=1)*e*e+1}var wp=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.disableShrink,l=void 0!==s&&s,c=e.size,u=void 0===c?40:c,d=e.style,p=e.thickness,f=void 0===p?3.6:p,h=e.value,m=void 0===h?0:h,g=e.variant,v=void 0===g?"indeterminate":g,y=Ci(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),b={},x={},w={};if("determinate"===v||"static"===v){var E=2*Math.PI*((bp-f)/2);b.strokeDasharray=E.toFixed(3),w["aria-valuenow"]=Math.round(m),"static"===v?(b.strokeDashoffset="".concat(((100-m)/100*E).toFixed(3),"px"),x.transform="rotate(-90deg)"):(b.strokeDashoffset="".concat((function(e){return e*e}((100-m)/100)*E).toFixed(3),"px"),x.transform="rotate(".concat((270*xp(m/70)).toFixed(3),"deg)"))}return o.createElement("div",wi({className:Rc(n.root,r,"inherit"!==a&&n["color".concat(Yc(a))],{indeterminate:n.indeterminate,static:n.static}[v]),style:wi({width:u,height:u},x,{},d),ref:t,role:"progressbar"},w,y),o.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(bp," ").concat(bp)},o.createElement("circle",{className:Rc(n.circle,l&&n.circleDisableShrink,{indeterminate:n.circleIndeterminate,static:n.circleStatic}[v]),style:b,cx:bp,cy:bp,r:(bp-f)/2,fill:"none",strokeWidth:f})))}));function Ep(e){return e&&e.ownerDocument||document}function Cp(e){return e.substring(2).toLowerCase()}_c((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},"@keyframes circular-rotate":{"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(wp);var kp=o.forwardRef((function(e,t){var n=e.children,r=e.mouseEvent,i=void 0===r?"onClick":r,a=e.touchEvent,s=void 0===a?"onTouchEnd":a,c=e.onClickAway,u=o.useRef(!1),d=o.useRef(null),p=o.useRef(!1);o.useEffect((function(){return p.current=!0,function(){p.current=!1}}),[]);var f=Ru(d,t),h=o.useCallback((function(e){Tu(f,l.findDOMNode(e))}),[f]),m=Ru(n.ref,h),g=qu((function(e){if(!e.defaultPrevented&&p.current)if(u.current)u.current=!1;else if(d.current){var t=Ep(d.current);t.documentElement&&t.documentElement.contains(e.target)&&!d.current.contains(e.target)&&c(e)}})),v=o.useCallback((function(){u.current=!0}),[]);return o.useEffect((function(){if(!1!==s){var e=Cp(s);return document.addEventListener(e,g),document.addEventListener("touchmove",v),function(){document.removeEventListener(e,g),document.removeEventListener("touchmove",v)}}}),[g,v,s]),o.useEffect((function(){if(!1!==i){var e=Cp(i);return document.addEventListener(e,g),function(){document.removeEventListener(e,g)}}}),[g,i]),o.createElement(o.Fragment,null,o.cloneElement(n,{ref:m}))})),Sp=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.collapsedHeight,s=void 0===a?"0px":a,l=e.component,c=void 0===l?"div":l,u=e.in,d=e.onEnter,p=e.onEntered,f=e.onEntering,h=e.onExit,m=e.onExiting,g=e.style,v=e.timeout,y=void 0===v?pa.standard:v,b=Ci(e,["children","classes","className","collapsedHeight","component","in","onEnter","onEntered","onEntering","onExit","onExiting","style","timeout"]),x=Uc(),w=o.useRef(),E=o.useRef(null),C=o.useRef();o.useEffect((function(){return function(){clearTimeout(w.current)}}),[]);return o.createElement(au,wi({in:u,onEnter:function(e,t){e.style.height=s,d&&d(e,t)},onEntered:function(e,t){e.style.height="auto",p&&p(e,t)},onEntering:function(e,t){var n=E.current?E.current.clientHeight:0,r=Su({style:g,timeout:y},{mode:"enter"}).duration;if("auto"===y){var o=x.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),C.current=o}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),f&&f(e,t)},onExit:function(e){var t=E.current?E.current.clientHeight:0;e.style.height="".concat(t,"px"),h&&h(e)},onExiting:function(e){var t=E.current?E.current.clientHeight:0,n=Su({style:g,timeout:y},{mode:"exit"}).duration;if("auto"===y){var r=x.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),C.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=s,m&&m(e)},addEndListener:function(e,t){"auto"===y&&(w.current=setTimeout(t,C.current||0))},timeout:"auto"===y?null:y},b),(function(e,a){return o.createElement(c,wi({className:Rc(r.container,i,{entered:r.entered,exited:!u&&"0px"===s&&r.hidden}[e]),style:wi({minHeight:s},g),ref:t},a),o.createElement("div",{className:r.wrapper,ref:E},o.createElement("div",{className:r.wrapperInner},n)))}))}));Sp.muiSupportAuto=!0;var Tp=_c((function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(Sp),Rp=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=e.fixed,l=void 0!==s&&s,c=e.maxWidth,u=void 0===c?"lg":c,d=Ci(e,["classes","className","component","fixed","maxWidth"]);return o.createElement(a,wi({className:Rc(n.root,r,l&&n.fixed,!1!==u&&n["maxWidth".concat(Yc(String(u)))]),ref:t},d))}));_c((function(e){var t;return{root:(t={width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},xi(t,e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),xi(t,e.breakpoints.up("md"),{paddingLeft:e.spacing(4),paddingRight:e.spacing(4)}),t),fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:xi({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:xi({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:xi({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:xi({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:xi({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(Rp),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kc(e,wi({defaultTheme:Vc},t))}((function(e){return{"@global":{html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:"bolder"},body:wi({margin:0,color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white},"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"});var Np="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,Pp=o.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,a=void 0!==i&&i,s=e.onRendered,c=o.useState(null),u=c[0],d=c[1],p=Ru(n.ref,t);return Np((function(){a||d(function(e){return e="function"==typeof e?e():e,l.findDOMNode(e)}(r)||document.body)}),[r,a]),Np((function(){if(u&&!a)return Tu(t,u),function(){Tu(t,null)}}),[t,u,a]),Np((function(){s&&(u||a)&&s()}),[s,u,a]),a?(o.Children.only(n),o.cloneElement(n,{ref:p})):u?l.createPortal(n,u):u}));function Dp(){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),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function Mp(){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}function Lp(e){return Ep(e).defaultView||window}function Ip(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ap(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Op(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(sl(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&Ip(e,o)}))}function qp(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function zp(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){var a=function(e){var t=Ep(e);return t.body===e?Lp(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i),s=i.parentElement,l="HTML"===s.nodeName?s:i;if(r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden",a){var c=Mp();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(Ap(i)+c,"px"),n=Ep(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(Ap(e)+c,"px")}))}}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[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 Fp=function(){function e(){Sc(this,e),this.modals=[],this.containers=[]}return ka(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&&Ip(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);Op(t,e.mountNode,e.modalRef,r,!0);var o=qp(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=qp(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=zp(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=qp(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&&Ip(e.modalRef,!0),Op(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&Ip(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Wp(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,a=void 0!==i&&i,s=e.disableRestoreFocus,c=void 0!==s&&s,u=e.getDoc,d=e.isEnabled,p=e.open,f=o.useRef(),h=o.useRef(null),m=o.useRef(null),g=o.useRef(),v=o.useRef(null),y=o.useCallback((function(e){v.current=l.findDOMNode(e)}),[]),b=Ru(t.ref,y);return o.useMemo((function(){p&&"undefined"!=typeof window&&(g.current=u().activeElement)}),[p]),o.useEffect((function(){if(p){var e=Ep(v.current);r||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){a||!d()||f.current?f.current=!1:v.current&&!v.current.contains(e.activeElement)&&v.current.focus()},n=function(t){!a&&d()&&9===t.keyCode&&e.activeElement===v.current&&(f.current=!0,t.shiftKey?m.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),c||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[r,a,c,d,p]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),o.cloneElement(t,{ref:b}),o.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))}var Hp={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},Bp=o.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,a=Ci(e,["invisible","open"]);return i?o.createElement("div",wi({"aria-hidden":!0,ref:t},a,{style:wi({},Hp.root,{},r?Hp.invisible:{},{},a.style)})):null}));var $p=new Fp,jp=o.forwardRef((function(e,t){var n=cc(),r=xa({name:"MuiModal",props:wi({},e),theme:n}),i=r.BackdropComponent,a=void 0===i?Bp:i,s=r.BackdropProps,c=r.children,u=r.closeAfterTransition,d=void 0!==u&&u,p=r.container,f=r.disableAutoFocus,h=void 0!==f&&f,m=r.disableBackdropClick,g=void 0!==m&&m,v=r.disableEnforceFocus,y=void 0!==v&&v,b=r.disableEscapeKeyDown,x=void 0!==b&&b,w=r.disablePortal,E=void 0!==w&&w,C=r.disableRestoreFocus,k=void 0!==C&&C,S=r.disableScrollLock,T=void 0!==S&&S,R=r.hideBackdrop,N=void 0!==R&&R,P=r.keepMounted,D=void 0!==P&&P,M=r.manager,L=void 0===M?$p:M,I=r.onBackdropClick,A=r.onClose,O=r.onEscapeKeyDown,q=r.onRendered,z=r.open,F=Ci(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),W=o.useState(!0),H=W[0],B=W[1],$=o.useRef({}),j=o.useRef(null),V=o.useRef(null),U=Ru(V,t),_=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return Ep(j.current)},K=function(){return $.current.modalRef=V.current,$.current.mountNode=j.current,$.current},X=function(){L.mount(K(),{disableScrollLock:T}),V.current.scrollTop=0},G=qu((function(){var e=function(e){return e="function"==typeof e?e():e,l.findDOMNode(e)}(p)||Y().body;L.add(K(),e),V.current&&X()})),Z=o.useCallback((function(){return L.isTopModal(K())}),[L]),J=qu((function(e){j.current=e,e&&(q&&q(),z&&Z()?X():Ip(V.current,!0))})),Q=o.useCallback((function(){L.remove(K())}),[L]);if(o.useEffect((function(){return function(){Q()}}),[Q]),o.useEffect((function(){z?G():_&&d||Q()}),[z,Q,_,d,G]),!D&&!z&&(!_||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:ma}),te={};return void 0===c.props.tabIndex&&(te.tabIndex=c.props.tabIndex||"-1"),_&&(te.onEnter=Dp((function(){B(!1)}),c.props.onEnter),te.onExited=Dp((function(){B(!0),d&&Q()}),c.props.onExited)),o.createElement(Pp,{ref:J,container:p,disablePortal:E},o.createElement("div",wi({ref:U,onKeyDown:function(e){"Escape"===e.key&&Z()&&(e.stopPropagation(),O&&O(e),!x&&A&&A(e,"escapeKeyDown"))},role:"presentation"},F,{style:wi({},ee.root,{},!z&&H?ee.hidden:{},{},F.style)}),N?null:o.createElement(a,wi({open:z,onClick:function(e){e.target===e.currentTarget&&(I&&I(e),!g&&A&&A(e,"backdropClick"))}},s)),o.createElement(Wp,{disableEnforceFocus:y,disableAutoFocus:h,disableRestoreFocus:k,getDoc:Y,isEnabled:Z,open:z},o.cloneElement(c,te))))})),Vp={enter:pa.enteringScreen,exit:pa.leavingScreen},Up=o.forwardRef((function(e,t){var n=e.BackdropProps,r=e.children,i=e.classes,a=e.className,s=e.disableBackdropClick,l=void 0!==s&&s,c=e.disableEscapeKeyDown,u=void 0!==c&&c,d=e.fullScreen,p=void 0!==d&&d,f=e.fullWidth,h=void 0!==f&&f,m=e.maxWidth,g=void 0===m?"sm":m,v=e.onBackdropClick,y=e.onClose,b=e.onEnter,x=e.onEntered,w=e.onEntering,E=e.onEscapeKeyDown,C=e.onExit,k=e.onExited,S=e.onExiting,T=e.open,R=e.PaperComponent,N=void 0===R?Xc:R,P=e.PaperProps,D=void 0===P?{}:P,M=e.scroll,L=void 0===M?"paper":M,I=e.TransitionComponent,A=void 0===I?Du:I,O=e.transitionDuration,q=void 0===O?Vp:O,z=e.TransitionProps,F=e["aria-describedby"],W=e["aria-labelledby"],H=Ci(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),B=o.useRef();return o.createElement(jp,wi({className:Rc(i.root,a),BackdropComponent:Lu,BackdropProps:wi({transitionDuration:q},n),closeAfterTransition:!0,disableBackdropClick:l,disableEscapeKeyDown:u,onEscapeKeyDown:E,onClose:y,open:T,ref:t},H),o.createElement(A,wi({appear:!0,in:T,timeout:q,onEnter:b,onEntering:w,onEntered:x,onExit:C,onExiting:S,onExited:k,role:"none presentation"},z),o.createElement("div",{className:Rc(i.container,i["scroll".concat(Yc(L))]),onClick:function(e){e.target===e.currentTarget&&e.target===B.current&&(B.current=null,v&&v(e),!l&&y&&y(e,"backdropClick"))},onMouseDown:function(e){B.current=e.target}},o.createElement(N,wi({elevation:24,role:"dialog","aria-describedby":F,"aria-labelledby":W},D,{className:Rc(i.paper,i["paperScroll".concat(Yc(L))],i["paperWidth".concat(Yc(String(g)))],D.className,p&&i.paperFullScreen,h&&i.paperFullWidth)}),r))))}));_c((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":xi({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":xi({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":xi({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":xi({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":xi({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(Up);var _p=o.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,i=e.classes,a=e.className,s=Ci(e,["disableSpacing","classes","className"]);return o.createElement("div",wi({className:Rc(i.root,a,!r&&i.spacing),ref:t},s))}));_c({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiDialogActions"})(_p);var Yp=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.dividers,a=void 0!==i&&i,s=Ci(e,["classes","className","dividers"]);return o.createElement("div",wi({className:Rc(n.root,r,a&&n.dividers),ref:t},s))}));_c((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(Yp);var Kp=o.forwardRef((function(e,t){return o.createElement(Wd,wi({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));_c({root:{marginBottom:12}},{name:"MuiDialogContentText"})(Kp);var Xp=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.disableTypography,s=void 0!==a&&a,l=Ci(e,["children","classes","className","disableTypography"]);return o.createElement("div",wi({className:Rc(r.root,i),ref:t},l),s?n:o.createElement(Wd,{component:"h2",variant:"h6"},n))}));_c({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(Xp);var Gp=o.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,a=e.className,s=e.component,l=void 0===s?"hr":s,c=e.light,u=void 0!==c&&c,d=e.orientation,p=void 0===d?"horizontal":d,f=e.role,h=void 0===f?"hr"!==l?"separator":void 0:f,m=e.variant,g=void 0===m?"fullWidth":m,v=Ci(e,["absolute","classes","className","component","light","orientation","role","variant"]);return o.createElement(l,wi({className:Rc(i.root,a,"fullWidth"!==g&&i[g],r&&i.absolute,u&&i.light,{vertical:i.vertical}[p]),role:h,ref:t},v))}));function Zp(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,s=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}function Jp(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(-").concat(r.left-i,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(-").concat(r.top-a,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}_c((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:vi(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1}}}),{name:"MuiDivider"})(Gp);var Qp={enter:pa.enteringScreen,exit:pa.leavingScreen},ef=o.forwardRef((function(e,t){var n=e.children,r=e.direction,i=void 0===r?"down":r,a=e.in,s=e.onEnter,c=e.onEntering,u=e.onExit,d=e.onExited,p=e.style,f=e.timeout,h=void 0===f?Qp:f,m=Ci(e,["children","direction","in","onEnter","onEntering","onExit","onExited","style","timeout"]),g=Uc(),v=o.useRef(null),y=o.useCallback((function(e){v.current=l.findDOMNode(e)}),[]),b=Ru(n.ref,y),x=Ru(b,t),w=o.useCallback((function(){v.current&&Jp(i,v.current)}),[i]);return o.useEffect((function(){if(!a&&"down"!==i&&"right"!==i){var e=Zp((function(){v.current&&Jp(i,v.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[i,a]),o.useEffect((function(){a||w()}),[a,w]),o.createElement(au,wi({onEnter:function(e,t){var n=v.current;Jp(i,n),ku(n),s&&s(n,t)},onEntering:function(e,t){var n=v.current,r=Su({timeout:h,style:p},{mode:"enter"});n.style.webkitTransition=g.transitions.create("-webkit-transform",wi({},r,{easing:g.transitions.easing.easeOut})),n.style.transition=g.transitions.create("transform",wi({},r,{easing:g.transitions.easing.easeOut})),n.style.webkitTransform="none",n.style.transform="none",c&&c(n,t)},onExit:function(){var e=v.current,t=Su({timeout:h,style:p},{mode:"exit"});e.style.webkitTransition=g.transitions.create("-webkit-transform",wi({},t,{easing:g.transitions.easing.sharp})),e.style.transition=g.transitions.create("transform",wi({},t,{easing:g.transitions.easing.sharp})),Jp(i,e),u&&u(e)},onExited:function(){var e=v.current;e.style.webkitTransition="",e.style.transition="",d&&d(e)},appear:!0,in:a,timeout:h},m),(function(e,t){return o.cloneElement(n,wi({ref:x,style:wi({visibility:"exited"!==e||a?void 0:"hidden"},p,{},n.props.style)},t))}))})),tf={left:"right",right:"left",top:"down",bottom:"up"};function nf(e){return-1!==["left","right"].indexOf(e)}function rf(e,t){return"rtl"===e.direction&&nf(t)?tf[t]:t}var of={enter:pa.enteringScreen,exit:pa.leavingScreen},af=o.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,i=e.BackdropProps,a=e.children,s=e.classes,l=e.className,c=e.elevation,u=void 0===c?16:c,d=e.ModalProps,p=(d=void 0===d?{}:d).BackdropProps,f=Ci(d,["BackdropProps"]),h=e.onClose,m=e.open,g=void 0!==m&&m,v=e.PaperProps,y=e.SlideProps,b=e.transitionDuration,x=void 0===b?of:b,w=e.variant,E=void 0===w?"temporary":w,C=Ci(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","transitionDuration","variant"]),k=Uc(),S=o.useRef(!1);o.useEffect((function(){S.current=!0}),[]);var T=rf(k,r),R=o.createElement(Xc,wi({elevation:"temporary"===E?u:0,square:!0,className:Rc(s.paper,s["paperAnchor".concat(Yc(T))],"temporary"!==E&&s["paperAnchorDocked".concat(Yc(T))])},v),a);if("permanent"===E)return o.createElement("div",wi({className:Rc(s.root,s.docked,l),ref:t},C),R);var N=o.createElement(ef,wi({in:g,direction:tf[T],timeout:x,appear:S.current},y),R);return"persistent"===E?o.createElement("div",wi({className:Rc(s.root,s.docked,l),ref:t},C),N):o.createElement(jp,wi({BackdropProps:wi({},i,{},p,{transitionDuration:x}),BackdropComponent:Lu,className:Rc(s.root,s.modal,l),open:g,onClose:h,ref:t},C,f),N)})),sf=_c((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(af);var lf=o.createContext({}),cf=o.forwardRef((function(e,t){var n,r=e.children,i=e.classes,a=e.className,s=e.defaultExpanded,l=void 0!==s&&s,c=e.disabled,u=void 0!==c&&c,d=e.expanded,p=e.onChange,f=e.square,h=void 0!==f&&f,m=e.TransitionComponent,g=void 0===m?Tp:m,v=e.TransitionProps,y=Ci(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),b=o.useRef(null!=d).current,x=o.useState(l),w=x[0],E=x[1],C=b?d:w,k=o.useCallback((function(e){b||E(!C),p&&p(e,!C)}),[C,b,p]),S=o.Children.toArray(r),T=Sd(n=S)||al(n)||Td(),R=T[0],N=T.slice(1),P=o.useMemo((function(){return{expanded:C,disabled:u,toggle:k}}),[C,u,k]);return o.createElement(Xc,wi({className:Rc(i.root,a,C&&i.expanded,u&&i.disabled,!h&&i.rounded),ref:t,square:h},y),o.createElement(lf.Provider,{value:P},R),o.createElement(g,wi({in:C,timeout:"auto"},v),o.createElement("div",{"aria-labelledby":R.props.id,id:R.props["aria-controls"],role:"region"},N)))}));_c((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiExpansionPanel"})(cf);var uf=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disableSpacing,a=void 0!==i&&i,s=Ci(e,["classes","className","disableSpacing"]);return o.createElement("div",wi({className:Rc(n.root,r,!a&&n.spacing),ref:t},s))}));_c({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiExpansionPanelActions"})(uf);var df=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ci(e,["classes","className"]);return o.createElement("div",wi({className:Rc(n.root,r),ref:t},i))}));_c({root:{display:"flex",padding:"8px 24px 24px"}},{name:"MuiExpansionPanelDetails"})(df);var pf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.expandIcon,s=e.IconButtonProps,l=e.onBlur,c=e.onClick,u=e.onFocusVisible,d=Ci(e,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),p=o.useState(!1),f=p[0],h=p[1],m=o.useContext(lf),g=m.disabled,v=void 0!==g&&g,y=m.expanded,b=m.toggle;return o.createElement(td,wi({focusRipple:!1,disableRipple:!0,disabled:v,component:"div","aria-expanded":y,className:Rc(r.root,i,v&&r.disabled,y&&r.expanded,f&&r.focused),onFocusVisible:function(e){h(!0),u&&u(e)},onBlur:function(e){h(!1),l&&l(e)},onClick:function(e){b&&b(e),c&&c(e)},ref:t},d),o.createElement("div",{className:Rc(r.content,y&&r.expanded)},n),a&&o.createElement(sp,wi({className:Rc(r.expandIcon,y&&r.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},s),a))}));_c((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:"0 24px 0 24px","&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:e.palette.grey[300]},"&$disabled":{opacity:.38}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiExpansionPanelSummary"})(pf);var ff=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"button":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,f=void 0!==p&&p,h=e.focusVisibleClassName,m=e.size,g=void 0===m?"large":m,v=e.variant,y=void 0===v?"round":v,b=Ci(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return o.createElement(td,wi({className:Rc(r.root,i,"round"!==y&&r.extended,"large"!==g&&r["size".concat(Yc(g))],d&&r.disabled,{primary:r.primary,secondary:r.secondary,inherit:r.colorInherit}[s]),component:c,disabled:d,focusRipple:!f,focusVisibleClassName:Rc(r.focusVisible,h),ref:t},b),o.createElement("span",{className:r.label},n))}));function hf(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}function mf(e,t){return parseInt(e[t],10)||0}_c((function(e){return{root:wi({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&$focusVisible":{boxShadow:e.shadows[6]},"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(ff);var gf="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,vf={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},yf=o.forwardRef((function(e,t){var n=e.onChange,r=e.rows,i=e.rowsMax,a=e.style,s=e.value,l=Ci(e,["onChange","rows","rowsMax","style","value"]),c=o.useRef(null!=s).current,u=o.useRef(null),d=Ru(t,u),p=o.useRef(null),f=o.useState({}),h=f[0],m=f[1],g=o.useCallback((function(){var t=u.current,n=window.getComputedStyle(t),o=p.current;o.style.width=n.width,o.value=t.value||e.placeholder||"x";var a=n["box-sizing"],s=mf(n,"padding-bottom")+mf(n,"padding-top"),l=mf(n,"border-bottom-width")+mf(n,"border-top-width"),c=o.scrollHeight-s;o.value="x";var d=o.scrollHeight-s,f=c;null!=r&&(f=Math.max(Number(r)*d,f)),null!=i&&(f=Math.min(Number(i)*d,f));var h=(f=Math.max(f,d))+("border-box"===a?s+l:0),g=Math.abs(f-c)<=1;m((function(e){return h>0&&Math.abs((e.outerHeightStyle||0)-h)>1||e.overflow!==g?{overflow:g,outerHeightStyle:h}:e}))}),[r,i,e.placeholder]);o.useEffect((function(){var e=Zp((function(){g()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[g]),gf((function(){g()}));return o.createElement(o.Fragment,null,o.createElement("textarea",wi({value:s,onChange:function(e){c||g(),n&&n(e)},ref:d,rows:r||1,style:wi({height:h.outerHeightStyle,overflow:h.overflow?"hidden":null},a)},l)),o.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:wi({},vf,{},a)}))}));function bf(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function xf(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(bf(e.value)&&""!==e.value||t&&bf(e.defaultValue)&&""!==e.defaultValue)}var wf="undefined"==typeof window?o.useEffect:o.useLayoutEffect,Ef=o.forwardRef((function(e,t){var n=e["aria-describedby"],r=e.autoComplete,i=e.autoFocus,a=e.classes,s=e.className;e.color;var l=e.defaultValue,c=e.disabled,u=e.endAdornment;e.error;var d=e.fullWidth,p=void 0!==d&&d,f=e.id,h=e.inputComponent,m=void 0===h?"input":h,g=e.inputProps,v=void 0===g?{}:g,y=e.inputRef;e.margin;var b=e.multiline,x=void 0!==b&&b,w=e.name,E=e.onBlur,C=e.onChange,k=e.onClick,S=e.onFocus,T=e.onKeyDown,R=e.onKeyUp,N=e.placeholder,P=e.readOnly,D=e.renderSuffix,M=e.rows,L=e.rowsMax,I=e.select,A=void 0!==I&&I,O=e.startAdornment,q=e.type,z=void 0===q?"text":q,F=e.value,W=Ci(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","select","startAdornment","type","value"]),H=null!=v.value?v.value:F,B=o.useRef(null!=H).current,$=o.useRef(),j=o.useCallback((function(e){}),[]),V=Ru(v.ref,j),U=Ru(y,V),_=Ru($,U),Y=o.useState(!1),K=Y[0],X=Y[1],G=op(),Z=hf({props:e,muiFormControl:G,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Z.focused=G?G.focused:K,o.useEffect((function(){!G&&c&&K&&(X(!1),E&&E())}),[G,c,K,E]);var J=G&&G.onFilled,Q=G&&G.onEmpty,ee=o.useCallback((function(e){xf(e)?J&&J():Q&&Q()}),[J,Q]);wf((function(){B&&ee({value:H})}),[H,ee,B]);o.useEffect((function(){ee($.current)}),[]);var te=m,ne=wi({},v,{ref:_});"string"!=typeof te?ne=wi({inputRef:_,type:z},ne,{ref:null}):x?M&&!L?te="textarea":(ne=wi({rows:M,rowsMax:L},ne),te=yf):ne=wi({type:z},ne);return o.useEffect((function(){G&&G.setAdornedStart(Boolean(O))}),[G,O]),o.createElement("div",wi({className:Rc(a.root,a["color".concat(Yc(Z.color||"primary"))],s,Z.disabled&&a.disabled,Z.error&&a.error,p&&a.fullWidth,Z.focused&&a.focused,G&&a.formControl,x&&a.multiline,O&&a.adornedStart,u&&a.adornedEnd,{dense:a.marginDense}[Z.margin]),onClick:function(e){$.current&&e.currentTarget===e.target&&$.current.focus(),k&&k(e)},ref:t},W),O,o.createElement(rp.Provider,{value:null},o.createElement(te,wi({"aria-invalid":Z.error,"aria-describedby":n,autoComplete:r,autoFocus:i,defaultValue:l,disabled:Z.disabled,id:f,onAnimationStart:function(e){ee(-1!==e.animationName.indexOf("auto-fill-cancel")?$.current:{value:"x"})},name:w,placeholder:N,readOnly:P,required:Z.required,rows:M,value:H,onKeyDown:T,onKeyUp:R},ne,{className:Rc(a.input,v.className,Z.disabled&&a.disabled,x&&a.inputMultiline,A&&a.inputSelect,Z.hiddenLabel&&a.inputHiddenLabel,O&&a.inputAdornedStart,u&&a.inputAdornedEnd,{search:a.inputTypeSearch}[z],{dense:a.inputMarginDense}[Z.margin]),onBlur:function(e){E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):X(!1)},onChange:function(e){if(!B){var t=e.target||$.current;if(null==t)throw new TypeError("Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://material-ui.com/r/input-component-ref-interface for more info.");ee({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];v.onChange&&v.onChange.apply(v,[e].concat(r)),C&&C.apply(void 0,[e].concat(r))},onFocus:function(e){Z.disabled?e.stopPropagation():(S&&S(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):X(!0))}}))),u,D?D(wi({},Z,{startAdornment:O})):null)})),Cf=_c((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{root:{fontFamily:e.typography.fontFamily,color:e.palette.text.primary,fontSize:e.typography.pxToRem(16),lineHeight:"1.1875em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}},formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1875em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"$auto-fill-cancel","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"$auto-fill"}},"@keyframes auto-fill":{from:{}},"@keyframes auto-fill-cancel":{from:{}},inputMarginDense:{paddingTop:3},inputSelect:{paddingRight:24},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(Ef),kf=o.forwardRef((function(e,t){var n=e.disableUnderline,r=e.classes,i=e.fullWidth,a=void 0!==i&&i,s=e.inputComponent,l=void 0===s?"input":s,c=e.multiline,u=void 0!==c&&c,d=e.type,p=void 0===d?"text":d,f=Ci(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(Cf,wi({classes:wi({},r,{root:Rc(r.root,!n&&r.underline),underline:null}),fullWidth:a,inputComponent:l,multiline:u,ref:t,type:p},f))}));kf.muiName="Input";var Sf=_c((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===e.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===e.palette.type?"#fff":null,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputSelect:{paddingRight:24},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(kf);function Tf(e,t){return o.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var Rf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.disabled,c=void 0!==l&&l,u=e.error,d=void 0!==u&&u,p=e.fullWidth,f=void 0!==p&&p,h=e.hiddenLabel,m=void 0!==h&&h,g=e.margin,v=void 0===g?"none":g,y=e.color,b=void 0===y?"primary":y,x=e.required,w=void 0!==x&&x,E=e.variant,C=void 0===E?"standard":E,k=Ci(e,["children","classes","className","component","disabled","error","fullWidth","hiddenLabel","margin","color","required","variant"]),S=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){if(Tf(t,["Input","Select"])){var n=Tf(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),T=S[0],R=S[1],N=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){Tf(t,["Input","Select"])&&xf(t.props,!0)&&(e=!0)})),e})),P=N[0],D=N[1],M=o.useState(!1),L=M[0],I=M[1];c&&L&&I(!1);var A=o.useCallback((function(){D(!0)}),[]),O={adornedStart:T,setAdornedStart:R,color:b,disabled:c,error:d,filled:P,focused:L,hiddenLabel:m,margin:v,onBlur:function(){I(!1)},onEmpty:o.useCallback((function(){D(!1)}),[]),onFilled:A,onFocus:function(){I(!0)},registerEffect:undefined,required:w,variant:C};return o.createElement(rp.Provider,{value:O},o.createElement(s,wi({className:Rc(r.root,i,"none"!==v&&r["margin".concat(Yc(v))],f&&r.fullWidth),ref:t},k),n))})),Nf=_c({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(Rf),Pf=o.forwardRef((function(e,t){e.checked;var n=e.classes,r=e.className,i=e.control,a=e.disabled;e.inputRef;var s=e.label,l=e.labelPlacement,c=void 0===l?"end":l;e.name,e.onChange,e.value;var u=Ci(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),d=ip(),p=a;void 0===p&&void 0!==i.props.disabled&&(p=i.props.disabled),void 0===p&&d&&(p=d.disabled);var f={disabled:p};return["checked","name","onChange","value","inputRef"].forEach((function(t){void 0===i.props[t]&&void 0!==e[t]&&(f[t]=e[t])})),o.createElement("label",wi({className:Rc(n.root,r,"end"!==c&&n["labelPlacement".concat(Yc(c))],p&&n.disabled),ref:t},u),o.cloneElement(i,f),o.createElement(Wd,{component:"span",className:Rc(n.label,p&&n.disabled)},s))}));_c((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(Pf);var Df=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.row,a=void 0!==i&&i,s=Ci(e,["classes","className","row"]);return o.createElement("div",wi({className:Rc(n.root,r,a&&n.row),ref:t},s))})),Mf=_c({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(Df),Lf=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"p":i;e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant;var s=Ci(e,["classes","className","component","disabled","error","filled","focused","margin","required","variant"]),l=hf({props:e,muiFormControl:ip(),states:["variant","margin","disabled","error","filled","focused","required"]});return o.createElement(a,wi({className:Rc(n.root,("filled"===l.variant||"outlined"===l.variant)&&n.contained,r,l.disabled&&n.disabled,l.error&&n.error,l.filled&&n.filled,l.focused&&n.focused,l.required&&n.required,{dense:n.marginDense}[l.margin]),ref:t},s))})),If=_c((function(e){return{root:wi({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:8,lineHeight:"1em",minHeight:"1em",margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{margin:"8px 14px 0"},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(Lf),Af=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className;e.color;var a=e.component,s=void 0===a?"label":a;e.disabled,e.error,e.filled,e.focused,e.required;var l=Ci(e,["children","classes","className","color","component","disabled","error","filled","focused","required"]),c=hf({props:e,muiFormControl:ip(),states:["color","required","focused","disabled","error","filled"]});return o.createElement(s,wi({className:Rc(r.root,r["color".concat(Yc(c.color||"primary"))],i,c.disabled&&r.disabled,c.error&&r.error,c.filled&&r.filled,c.focused&&r.focused,c.required&&r.required),ref:t},l),n,c.required&&o.createElement("span",{className:Rc(r.asterisk,c.error&&r.error)}," ","*"))})),Of=_c((function(e){return{root:wi({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(Af),qf=[0,1,2,3,4,5,6,7,8,9,10],zf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Ff(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Wf=o.forwardRef((function(e,t){var n=e.alignContent,r=void 0===n?"stretch":n,i=e.alignItems,a=void 0===i?"stretch":i,s=e.classes,l=e.className,c=e.component,u=void 0===c?"div":c,d=e.container,p=void 0!==d&&d,f=e.direction,h=void 0===f?"row":f,m=e.item,g=void 0!==m&&m,v=e.justify,y=void 0===v?"flex-start":v,b=e.lg,x=void 0!==b&&b,w=e.md,E=void 0!==w&&w,C=e.sm,k=void 0!==C&&C,S=e.spacing,T=void 0===S?0:S,R=e.wrap,N=void 0===R?"wrap":R,P=e.xl,D=void 0!==P&&P,M=e.xs,L=void 0!==M&&M,I=e.zeroMinWidth,A=void 0!==I&&I,O=Ci(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),q=Rc(s.root,l,p&&[s.container,0!==T&&s["spacing-xs-".concat(String(T))]],g&&s.item,A&&s.zeroMinWidth,"row"!==h&&s["direction-xs-".concat(String(h))],"wrap"!==N&&s["wrap-xs-".concat(String(N))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==r&&s["align-content-xs-".concat(String(r))],"flex-start"!==y&&s["justify-xs-".concat(String(y))],!1!==L&&s["grid-xs-".concat(String(L))],!1!==k&&s["grid-sm-".concat(String(k))],!1!==E&&s["grid-md-".concat(String(E))],!1!==x&&s["grid-lg-".concat(String(x))],!1!==D&&s["grid-xl-".concat(String(D))]);return o.createElement(u,wi({className:q,ref:t},O))}));_c((function(e){return wi({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return qf.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(Ff(o,2)),width:"calc(100% + ".concat(Ff(o),")"),"& > $item":{padding:Ff(o,2)}})})),n}(e,"xs"),{},e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};zf.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?wi(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(Wf);var Hf=o.forwardRef((function(e,t){var n=e.cellHeight,r=void 0===n?180:n,i=e.children,a=e.classes,s=e.className,l=e.cols,c=void 0===l?2:l,u=e.component,d=void 0===u?"ul":u,p=e.spacing,f=void 0===p?4:p,h=e.style,m=Ci(e,["cellHeight","children","classes","className","cols","component","spacing","style"]);return o.createElement(d,wi({className:Rc(a.root,s),ref:t,style:wi({margin:-f/2},h)},m),o.Children.map(i,(function(e){if(!o.isValidElement(e))return null;var t=e.props.cols||1,n=e.props.rows||1;return o.cloneElement(e,{style:wi({width:"".concat(100/c*t,"%"),height:"auto"===r?"auto":r*n+f,padding:f/2},e.props.style)})})))}));_c({root:{display:"flex",flexWrap:"wrap",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"}},{name:"MuiGridList"})(Hf);var Bf=function(e,t){var n,r,o,i;e&&e.complete&&(e.width/e.height>e.parentElement.offsetWidth/e.parentElement.offsetHeight?((n=e.classList).remove.apply(n,sl(t.imgFullWidth.split(" "))),(r=e.classList).add.apply(r,sl(t.imgFullHeight.split(" ")))):((o=e.classList).remove.apply(o,sl(t.imgFullHeight.split(" "))),(i=e.classList).add.apply(i,sl(t.imgFullWidth.split(" ")))))};var $f=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className;e.cols;var a=e.component,s=void 0===a?"li":a;e.rows;var l=Ci(e,["children","classes","className","cols","component","rows"]),c=o.useRef(null);return o.useEffect((function(){!function(e,t){e&&(e.complete?Bf(e,t):e.addEventListener("load",(function(){Bf(e,t)})))}(c.current,r)})),o.useEffect((function(){var e=Zp((function(){Bf(c.current,r)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[r]),o.createElement(s,wi({className:Rc(r.root,i),ref:t},l),o.createElement("div",{className:r.tile},o.Children.map(n,(function(e){return o.isValidElement(e)?"img"===e.type||Tf(e,["Image"])?o.cloneElement(e,{ref:c}):e:null}))))}));_c({root:{boxSizing:"border-box",flexShrink:0},tile:{position:"relative",display:"block",height:"100%",overflow:"hidden"},imgFullHeight:{height:"100%",transform:"translateX(-50%)",position:"relative",left:"50%"},imgFullWidth:{width:"100%",position:"relative",transform:"translateY(-50%)",top:"50%"}},{name:"MuiGridListTile"})($f);var jf=o.forwardRef((function(e,t){var n=e.actionIcon,r=e.actionPosition,i=void 0===r?"right":r,a=e.classes,s=e.className,l=e.subtitle,c=e.title,u=e.titlePosition,d=void 0===u?"bottom":u,p=Ci(e,["actionIcon","actionPosition","classes","className","subtitle","title","titlePosition"]),f=n&&i;return o.createElement("div",wi({className:Rc(a.root,s,"top"===d?a.titlePositionTop:a.titlePositionBottom,l&&a.rootSubtitle),ref:t},p),o.createElement("div",{className:Rc(a.titleWrap,{left:a.titleWrapActionPosLeft,right:a.titleWrapActionPosRight}[f])},o.createElement("div",{className:a.title},c),l?o.createElement("div",{className:a.subtitle},l):null),n?o.createElement("div",{className:Rc(a.actionIcon,{left:a.actionIconActionPosLeft}[f])},n):null)}));function Vf(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}_c((function(e){return{root:{position:"absolute",left:0,right:0,height:48,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily},titlePositionBottom:{bottom:0},titlePositionTop:{top:0},rootSubtitle:{height:68},titleWrap:{flexGrow:1,marginLeft:16,marginRight:16,color:e.palette.common.white,overflow:"hidden"},titleWrapActionPosLeft:{marginLeft:0},titleWrapActionPosRight:{marginRight:0},title:{fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},subtitle:{fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},actionIcon:{},actionIconActionPosLeft:{order:-1}}}),{name:"MuiGridListTileBar"})(jf);var Uf={entering:{opacity:1,transform:Vf(1)},entered:{opacity:1,transform:"none"}},_f=o.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,a=e.onExit,s=e.style,l=e.timeout,c=void 0===l?"auto":l,u=Ci(e,["children","in","onEnter","onExit","style","timeout"]),d=o.useRef(),p=o.useRef(),f=Ru(n.ref,t),h=Uc();return o.useEffect((function(){return function(){clearTimeout(d.current)}}),[]),o.createElement(au,wi({appear:!0,in:r,onEnter:function(e,t){ku(e);var n,r=Su({style:s,timeout:c},{mode:"enter"}),o=r.duration,a=r.delay;"auto"===c?(n=h.transitions.getAutoHeightDuration(e.clientHeight),p.current=n):n=o,e.style.transition=[h.transitions.create("opacity",{duration:n,delay:a}),h.transitions.create("transform",{duration:.666*n,delay:a})].join(","),i&&i(e,t)},onExit:function(e){var t,n=Su({style:s,timeout:c},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===c?(t=h.transitions.getAutoHeightDuration(e.clientHeight),p.current=t):t=r,e.style.transition=[h.transitions.create("opacity",{duration:t,delay:o}),h.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Vf(.75),a&&a(e)},addEndListener:function(e,t){"auto"===c&&(d.current=setTimeout(t,p.current||0))},timeout:"auto"===c?null:c},u),(function(e,t){return o.cloneElement(n,wi({style:wi({opacity:0,transform:Vf(.75),visibility:"exited"!==e||r?void 0:"hidden"},Uf[e],{},s,{},n.props.style),ref:f},t))}))}));_f.muiSupportAuto=!0;var Yf=!1;function Kf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=cc(),r=xa({theme:n,name:"MuiUseMediaQuery",props:{}}),i="function"==typeof e?e(n):e;i=i.replace(/^@media( ?)/m,"");var a="undefined"!=typeof window&&void 0!==window.matchMedia,s=wi({},r,{},t),l=s.defaultMatches,c=void 0!==l&&l,u=s.noSsr,d=void 0!==u&&u,p=s.ssrMatchMedia,f=void 0===p?null:p,h=o.useState((function(){return(Yf||d)&&a?window.matchMedia(i).matches:f?f(i).matches:c})),m=h[0],g=h[1];return o.useEffect((function(){var e=!0;if(Yf=!0,a){var t=window.matchMedia(i),n=function(){e&&g(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[i,a]),m}var Xf=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?Gi.indexOf(e)<=Gi.indexOf(t):Gi.indexOf(e)<Gi.indexOf(t)},Gf=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?Gi.indexOf(t)<=Gi.indexOf(e):Gi.indexOf(t)<Gi.indexOf(e)},Zf="undefined"==typeof window?o.useEffect:o.useLayoutEffect;function Jf(e){var t=e.children,n=e.only,r=e.width,o=Uc(),i=!0;if(n)if(Array.isArray(n))for(var a=0;a<n.length;a+=1){if(r===n[a]){i=!1;break}}else n&&r===n&&(i=!1);if(i)for(var s=0;s<o.breakpoints.keys.length;s+=1){var l=o.breakpoints.keys[s],c=e["".concat(l,"Up")],u=e["".concat(l,"Down")];if(c&&Xf(l,r)||u&&Gf(l,r)){i=!1;break}}return i?t:null}Jf.propTypes={children:Jo.exports.node,className:Jo.exports.string,implementation:Jo.exports.oneOf(["js","css"]),initialWidth:Jo.exports.oneOf(["xs","sm","md","lg","xl"]),lgDown:Jo.exports.bool,lgUp:Jo.exports.bool,mdDown:Jo.exports.bool,mdUp:Jo.exports.bool,only:Jo.exports.oneOfType([Jo.exports.oneOf(["xs","sm","md","lg","xl"]),Jo.exports.arrayOf(Jo.exports.oneOf(["xs","sm","md","lg","xl"]))]),smDown:Jo.exports.bool,smUp:Jo.exports.bool,width:Jo.exports.string.isRequired,xlDown:Jo.exports.bool,xlUp:Jo.exports.bool,xsDown:Jo.exports.bool,xsUp:Jo.exports.bool},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,r=void 0!==n&&n,i=e.noSSR,a=void 0!==i&&i,s=e.initialWidth;function l(e){var n=Uc(),i=e.theme||n,l=xa({theme:i,name:"MuiWithWidth",props:wi({},e)}),c=l.initialWidth,u=l.width,d=Ci(l,["initialWidth","width"]),p=o.useState(!1),f=p[0],h=p[1];Zf((function(){h(!0)}),[]);var m=sl(i.breakpoints.keys).reverse().reduce((function(e,t){var n=Kf(i.breakpoints.up(t));return!e&&n?t:e}),null),g=wi({width:u||(f||a?m:void 0)||c||s},r?{theme:i}:{},{},d);return void 0===g.width?null:o.createElement(t,g)}return Hc(l,t),l}}()(Jf);_c((function(e){var t={display:"none"};return e.breakpoints.keys.reduce((function(n,r){return n["only".concat(Yc(r))]=xi({},e.breakpoints.only(r),t),n["".concat(r,"Up")]=xi({},e.breakpoints.up(r),t),n["".concat(r,"Down")]=xi({},e.breakpoints.down(r),t),n}),{})}),{name:"PrivateHiddenCss"})((function(e){var t=e.children,n=e.classes,r=e.className;e.lgDown,e.lgUp,e.mdDown,e.mdUp;var i=e.only;e.smDown,e.smUp,e.xlDown,e.xlUp,e.xsDown,e.xsUp,Ci(e,["children","classes","className","lgDown","lgUp","mdDown","mdUp","only","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);var a=Uc(),s=[];r&&s.push(r);for(var l=0;l<a.breakpoints.keys.length;l+=1){var c=a.breakpoints.keys[l],u=e["".concat(c,"Up")],d=e["".concat(c,"Down")];u&&s.push(n["".concat(c,"Up")]),d&&s.push(n["".concat(c,"Down")])}return i&&(Array.isArray(i)?i:[i]).forEach((function(e){s.push(n["only".concat(Yc(e))])})),o.createElement("div",{className:s.join(" ")},t)}));var Qf=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"inherit":i,s=e.component,l=void 0===s?"span":s,c=e.fontSize,u=void 0===c?"default":c,d=Ci(e,["classes","className","color","component","fontSize"]);return o.createElement(l,wi({className:Rc("material-icons",n.root,r,"inherit"!==a&&n["color".concat(Yc(a))],"default"!==u&&n["fontSize".concat(Yc(u))]),"aria-hidden":!0,ref:t},d))}));Qf.muiName="Icon",_c((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(Qf);var eh=o.forwardRef((function(e,t){var n=e.disableUnderline,r=e.classes,i=e.fullWidth,a=void 0!==i&&i,s=e.inputComponent,l=void 0===s?"input":s,c=e.multiline,u=void 0!==c&&c,d=e.type,p=void 0===d?"text":d,f=Ci(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(Cf,wi({classes:wi({},r,{root:Rc(r.root,!n&&r.underline),underline:null}),fullWidth:a,inputComponent:l,multiline:u,ref:t,type:p},f))}));eh.muiName="Input";var th=_c((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(eh),nh=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.disablePointerEvents,c=void 0!==l&&l,u=e.disableTypography,d=void 0!==u&&u,p=e.position,f=e.variant,h=Ci(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),m=op()||{},g=f;return f&&m.variant,m&&!g&&(g=m.variant),o.createElement(rp.Provider,{value:null},o.createElement(s,wi({className:Rc(r.root,i,c&&r.disablePointerEvents,m.hiddenLabel&&r.hiddenLabel,{filled:r.filled}[g],{start:r.positionStart,end:r.positionEnd}[p],{dense:r.marginDense}[m.margin]),ref:t},h),"string"!=typeof n||d?n:o.createElement(Wd,{color:"textSecondary"},n)))}));_c({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(nh);var rh=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disableAnimation,a=void 0!==i&&i;e.margin;var s=e.shrink;e.variant;var l=Ci(e,["classes","className","disableAnimation","margin","shrink","variant"]),c=ip(),u=s;void 0===u&&c&&(u=c.filled||c.focused||c.adornedStart);var d=hf({props:e,muiFormControl:c,states:["margin","variant"]});return o.createElement(Of,wi({"data-shrink":u,className:Rc(n.root,r,c&&n.formControl,!a&&n.animated,u&&n.shrink,{dense:n.marginDense}[d.margin],{filled:n.filled,outlined:n.outlined}[d.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},l))})),oh=_c((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(rh),ih=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.value,l=e.valueBuffer,c=e.variant,u=void 0===c?"indeterminate":c,d=Ci(e,["classes","className","color","value","valueBuffer","variant"]),p=Uc(),f={},h={bar1:{},bar2:{}};if(("determinate"===u||"buffer"===u)&&void 0!==s){f["aria-valuenow"]=Math.round(s);var m=s-100;"rtl"===p.direction&&(m=-m),h.bar1.transform="translateX(".concat(m,"%)")}if("buffer"===u&&void 0!==l){var g=(l||0)-100;"rtl"===p.direction&&(g=-g),h.bar2.transform="translateX(".concat(g,"%)")}return o.createElement("div",wi({className:Rc(n.root,n["color".concat(Yc(a))],r,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[u]),role:"progressbar"},f,{ref:t},d),"buffer"===u?o.createElement("div",{className:Rc(n.dashed,n["dashedColor".concat(Yc(a))])}):null,o.createElement("div",{className:Rc(n.bar,n["barColor".concat(Yc(a))],("indeterminate"===u||"query"===u)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[u]),style:h.bar1}),"determinate"===u?null:o.createElement("div",{className:Rc(n.bar,("indeterminate"===u||"query"===u)&&n.bar2Indeterminate,"buffer"===u?[n["color".concat(Yc(a))],n.bar2Buffer]:n["barColor".concat(Yc(a))]),style:h.bar2}))})),ah=_c((function(e){var t=function(t){return"light"===e.palette.type?bi(t,.62):yi(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0px -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0px -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite",animationDelay:"1.15s"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0px -23px"},"50%":{opacity:0,backgroundPosition:"0px -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(ih),sh=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.component,l=void 0===s?"a":s,c=e.onBlur,u=e.onFocus,d=e.TypographyClasses,p=e.underline,f=void 0===p?"hover":p,h=e.variant,m=void 0===h?"inherit":h,g=Ci(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),v=Ku(),y=v.isFocusVisible,b=v.onBlurVisible,x=v.ref,w=o.useState(!1),E=w[0],C=w[1],k=Ru(t,x);return o.createElement(Wd,wi({className:Rc(n.root,n["underline".concat(Yc(f))],r,E&&n.focusVisible,{button:n.button}[l]),classes:d,color:a,component:l,onBlur:function(e){E&&(b(),C(!1)),c&&c(e)},onFocus:function(e){y(e)&&C(!0),u&&u(e)},ref:k,variant:m},g))}));_c({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{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","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(sh);var lh=o.createContext({}),ch=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"ul":a,l=e.dense,c=void 0!==l&&l,u=e.disablePadding,d=void 0!==u&&u,p=e.subheader,f=Ci(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=o.useMemo((function(){return{dense:c}}),[c]);return o.createElement(lh.Provider,{value:h},o.createElement(s,wi({className:Rc(r.root,i,c&&r.dense,!d&&r.padding,p&&r.subheader),ref:t},f),p,n))})),uh=_c({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(ch),dh="undefined"==typeof window?o.useEffect:o.useLayoutEffect,ph=o.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,a=void 0!==i&&i,s=e.button,c=void 0!==s&&s,u=e.children,d=e.classes,p=e.className,f=e.component,h=e.ContainerComponent,m=void 0===h?"li":h,g=e.ContainerProps,v=(g=void 0===g?{}:g).className,y=Ci(g,["className"]),b=e.dense,x=e.disabled,w=void 0!==x&&x,E=e.disableGutters,C=void 0!==E&&E,k=e.divider,S=void 0!==k&&k,T=e.focusVisibleClassName,R=e.selected,N=void 0!==R&&R,P=Ci(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=o.useContext(lh),M={dense:b||D.dense||!1,alignItems:r},L=o.useRef(null);dh((function(){a&&L.current&&L.current.focus()}),[a]);var I=o.Children.toArray(u),A=I.length&&Tf(I[I.length-1],["ListItemSecondaryAction"]),O=Ru(o.useCallback((function(e){L.current=l.findDOMNode(e)}),[]),t),q=wi({className:Rc(d.root,p,M.dense&&d.dense,!C&&d.gutters,S&&d.divider,w&&d.disabled,c&&d.button,"center"!==r&&d.alignItemsFlexStart,A&&d.secondaryAction,N&&d.selected),disabled:w},P),z=f||"li";return c&&(q.component=f||"div",q.focusVisibleClassName=Rc(d.focusVisible,T),z=td),A?(z=q.component||f?z:"div","li"===m&&("li"===z?z="div":"li"===q.component&&(q.component="div")),o.createElement(lh.Provider,{value:M},o.createElement(m,wi({className:Rc(d.container,v),ref:O},y),o.createElement(z,q,I),I.pop()))):o.createElement(lh.Provider,{value:M},o.createElement(z,wi({ref:O},q),I))})),fh=_c((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"})(ph),hh=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ci(e,["classes","className"]),a=o.useContext(lh);return o.createElement("div",wi({className:Rc(n.root,r,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},i))}));_c({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(hh);var mh=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ci(e,["classes","className"]),a=o.useContext(lh);return o.createElement("div",wi({className:Rc(n.root,r,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},i))})),gh=_c((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(mh),vh=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ci(e,["classes","className"]);return o.createElement("div",wi({className:Rc(n.root,r),ref:t},i))}));vh.muiName="ListItemSecondaryAction",_c({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(vh);var yh=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.disableTypography,s=void 0!==a&&a,l=e.inset,c=void 0!==l&&l,u=e.primary,d=e.primaryTypographyProps,p=e.secondary,f=e.secondaryTypographyProps,h=Ci(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=o.useContext(lh).dense,g=null!=u?u:n;null==g||g.type===Wd||s||(g=o.createElement(Wd,wi({variant:m?"body2":"body1",className:r.primary,component:"span"},d),g));var v=p;return null==v||v.type===Wd||s||(v=o.createElement(Wd,wi({variant:"body2",className:r.secondary,color:"textSecondary"},f),v)),o.createElement("div",wi({className:Rc(r.root,i,m&&r.dense,c&&r.inset,g&&v&&r.multiline),ref:t},h),g,v)})),bh=_c({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(yh),xh=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"li":s,c=e.disableGutters,u=void 0!==c&&c,d=e.disableSticky,p=void 0!==d&&d,f=e.inset,h=void 0!==f&&f,m=Ci(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return o.createElement(l,wi({className:Rc(n.root,r,"default"!==a&&n["color".concat(Yc(a))],h&&n.inset,!p&&n.sticky,!u&&n.gutters),ref:t},m))}));function wh(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Eh(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ch(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function kh(e){return"function"==typeof e?e():e}_c((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(xh);var Sh=o.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,a=void 0===i?{vertical:"top",horizontal:"left"}:i,s=e.anchorPosition,c=e.anchorReference,u=void 0===c?"anchorEl":c,d=e.children,p=e.classes,f=e.className,h=e.container,m=e.elevation,g=void 0===m?8:m,v=e.getContentAnchorEl,y=e.marginThreshold,b=void 0===y?16:y,x=e.onEnter,w=e.onEntered,E=e.onEntering,C=e.onExit,k=e.onExited,S=e.onExiting,T=e.open,R=e.PaperProps,N=void 0===R?{}:R,P=e.transformOrigin,D=void 0===P?{vertical:"top",horizontal:"left"}:P,M=e.TransitionComponent,L=void 0===M?_f:M,I=e.transitionDuration,A=void 0===I?"auto":I,O=e.TransitionProps,q=void 0===O?{}:O,z=Ci(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"]),F=o.useRef(),W=o.useCallback((function(e){if("anchorPosition"===u)return s;var t=kh(r),n=(t instanceof Lp(t).Element?t:Ep(F.current).body).getBoundingClientRect(),o=0===e?a.vertical:"center";return{top:n.top+wh(n,o),left:n.left+Eh(n,a.horizontal)}}),[r,a.horizontal,a.vertical,s,u]),H=o.useCallback((function(e){var t=0;if(v&&"anchorEl"===u){var n=v(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}),[a.vertical,u,v]),B=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:wh(e,D.vertical)+t,horizontal:Eh(e,D.horizontal)}}),[D.horizontal,D.vertical]),$=o.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},o=B(n,t);if("none"===u)return{top:null,left:null,transformOrigin:Ch(o)};var i=W(t),a=i.top-o.vertical,s=i.left-o.horizontal,l=a+n.height,c=s+n.width,d=Lp(kh(r)),p=d.innerHeight-b,f=d.innerWidth-b;if(a<b){var h=a-b;a-=h,o.vertical+=h}else if(l>p){var m=l-p;a-=m,o.vertical+=m}if(s<b){var g=s-b;s-=g,o.horizontal+=g}else if(c>f){var v=c-f;s-=v,o.horizontal+=v}return{top:"".concat(a,"px"),left:"".concat(s,"px"),transformOrigin:Ch(o)}}),[r,u,W,H,B,b]),j=o.useCallback((function(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=o.useCallback((function(e){F.current=l.findDOMNode(e)}),[]),U=o.useMemo((function(){if(T)return Zp((function(){j(F.current)}))}),[T,j]);o.useImperativeHandle(n,(function(){return T?{updatePosition:U}:null}),[T,U]),o.useEffect((function(){if(U)return window.addEventListener("resize",U),function(){window.removeEventListener("resize",U),U.clear()}}),[U]);var _=A;"auto"!==A||L.muiSupportAuto||(_=void 0);var Y=h||(r?Ep(kh(r)).body:void 0);return o.createElement(jp,wi({container:Y,open:T,ref:t,BackdropProps:{invisible:!0},className:Rc(p.root,f)},z),o.createElement(L,wi({appear:!0,in:T,onEnter:x,onEntered:w,onExit:C,onExited:k,onExiting:S,timeout:_},q,{onEntering:Dp((function(e,t){E&&E(e,t),j(e)}),q.onEntering)}),o.createElement(Xc,wi({elevation:g,ref:V},N,{className:Rc(p.paper,N.className)}),d)))})),Th=_c({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Sh);function Rh(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Nh(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ph(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),void 0!==n&&(0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join(""))))}function Dh(e,t,n,r,o){for(var i=!1,a=r(e,t,!!t&&n);a;){if(a===e.firstChild){if(i)return!1;i=!0}if(a.hasAttribute("tabindex")&&!a.disabled&&"true"!==a.getAttribute("aria-disabled")&&Ph(a,o))return a.focus(),!0;a=r(e,a,n)}return!1}var Mh="undefined"==typeof window?o.useEffect:o.useLayoutEffect,Lh=o.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,i=void 0!==r&&r,a=e.autoFocusItem,s=void 0!==a&&a,c=e.children,u=e.className,d=e.onKeyDown,p=e.disableListWrap,f=void 0!==p&&p,h=e.variant,m=void 0===h?"selectedMenu":h,g=Ci(e,["actions","autoFocus","autoFocusItem","children","className","onKeyDown","disableListWrap","variant"]),v=o.useRef(null),y=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mh((function(){i&&v.current.focus()}),[i]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!v.current.style.width;if(e.clientHeight<v.current.clientHeight&&n){var r="".concat(Mp(),"px");v.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,v.current.style.width="calc(100% + ".concat(r,")")}return v.current}}}),[]);var b=Ru(o.useCallback((function(e){v.current=l.findDOMNode(e)}),[]),t),x=-1;o.Children.forEach(c,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===m&&e.props.selected||-1===x)&&(x=t))}));var w=o.Children.map(c,(function(e,t){if(t===x){var n={};if(s&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===m&&(n.tabIndex=0),null!==n)return o.cloneElement(e,n)}return e}));return o.createElement(uh,wi({role:"menu",ref:b,className:u,onKeyDown:function(e){var t=v.current,n=e.key,r=Ep(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Dh(t,r,f,Rh);else if("ArrowUp"===n)e.preventDefault(),Dh(t,r,f,Nh);else if("Home"===n)e.preventDefault(),Dh(t,null,f,Rh);else if("End"===n)e.preventDefault(),Dh(t,null,f,Nh);else if(1===n.length){var o=y.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&Ph(r,o);o.previousKeyMatched&&(s||Dh(t,r,!1,Rh,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:i?0:-1},g),w)})),Ih={vertical:"top",horizontal:"right"},Ah={vertical:"top",horizontal:"left"},Oh=o.forwardRef((function(e,t){var n=e.autoFocus,r=void 0===n||n,i=e.children,a=e.classes,s=e.disableAutoFocusItem,c=void 0!==s&&s,u=e.MenuListProps,d=void 0===u?{}:u,p=e.onClose,f=e.onEntering,h=e.open,m=e.PaperProps,g=void 0===m?{}:m,v=e.PopoverClasses,y=e.transitionDuration,b=void 0===y?"auto":y,x=e.variant,w=void 0===x?"selectedMenu":x,E=Ci(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),C=Uc(),k=r&&!c&&h,S=o.useRef(null),T=o.useRef(null),R=-1;o.Children.map(i,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("menu"!==w&&e.props.selected||-1===R)&&(R=t))}));var N=o.Children.map(i,(function(e,t){return t===R?o.cloneElement(e,{ref:function(t){T.current=l.findDOMNode(t),Tu(e.ref,t)}}):e}));return o.createElement(Th,wi({getContentAnchorEl:function(){return T.current},classes:v,onClose:p,onEntering:function(e,t){S.current&&S.current.adjustStyleForScrollbar(e,C),f&&f(e,t)},anchorOrigin:"rtl"===C.direction?Ih:Ah,transformOrigin:"rtl"===C.direction?Ih:Ah,PaperProps:wi({},g,{classes:wi({},g.classes,{root:a.paper})}),open:h,ref:t,transitionDuration:b},E),o.createElement(Lh,wi({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:S,autoFocus:r&&(-1===R||c),autoFocusItem:k,variant:w},d,{className:Rc(a.list,d.className)}),N))})),qh=_c({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Oh),zh=o.forwardRef((function(e,t){var n,r=e.classes,i=e.className,a=e.component,s=void 0===a?"li":a,l=e.disableGutters,c=void 0!==l&&l,u=e.role,d=void 0===u?"menuitem":u,p=e.selected,f=e.tabIndex,h=Ci(e,["classes","className","component","disableGutters","role","selected","tabIndex"]);return e.disabled||(n=void 0!==f?f:-1),o.createElement(fh,wi({button:!0,role:d,tabIndex:n,component:s,selected:p,disableGutters:c,classes:{dense:r.dense},className:Rc(r.root,i,p&&r.selected,!c&&r.gutters),ref:t},h))})),Fh=_c((function(e){return{root:wi({},e.typography.body1,xi({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:wi({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(zh),Wh=o.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,i=e.backButton,a=e.classes,s=e.className,l=e.LinearProgressProps,c=e.nextButton,u=e.position,d=void 0===u?"bottom":u,p=e.steps,f=e.variant,h=void 0===f?"dots":f,m=Ci(e,["activeStep","backButton","classes","className","LinearProgressProps","nextButton","position","steps","variant"]);return o.createElement(Xc,wi({square:!0,elevation:0,className:Rc(a.root,a["position".concat(Yc(d))],s),ref:t},m),i,"text"===h&&o.createElement(o.Fragment,null,r+1," / ",p),"dots"===h&&o.createElement("div",{className:a.dots},sl(new Array(p)).map((function(e,t){return o.createElement("div",{key:t,className:Rc(a.dot,t===r&&a.dotActive)})}))),"progress"===h&&o.createElement(ah,wi({className:a.progress,variant:"determinate",value:Math.ceil(r/(p-1)*100)},l)),c)}));_c((function(e){return{root:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:e.palette.background.default,padding:8},positionBottom:{position:"fixed",bottom:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionTop:{position:"fixed",top:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionStatic:{},dots:{display:"flex",flexDirection:"row"},dot:{backgroundColor:e.palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},dotActive:{backgroundColor:e.palette.primary.main},progress:{width:"50%"}}}),{name:"MuiMobileStepper"})(Wh);var Hh=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disabled,a=e.IconComponent,s=e.inputRef,l=e.variant,c=void 0===l?"standard":l,u=Ci(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return o.createElement(o.Fragment,null,o.createElement("select",wi({className:Rc(n.root,n.select,n[c],r,i&&n.disabled),disabled:i,ref:s||t},u)),e.multiple?null:o.createElement(a,{className:Rc(n.icon,n["icon".concat(Yc(c))])}))})),Bh=$d(o.createElement("path",{d:"M7 10l5 5 5-5z"})),$h=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper}},filled:{},outlined:{borderRadius:e.shape.borderRadius},selectMenu:{height:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",color:e.palette.action.active,pointerEvents:"none"},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7}}},jh=o.createElement(th,null),Vh=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.IconComponent,a=void 0===i?Bh:i,s=e.input,l=void 0===s?jh:s,c=e.inputProps;e.variant;var u=Ci(e,["children","classes","IconComponent","input","inputProps","variant"]),d=hf({props:e,muiFormControl:ip(),states:["variant"]});return o.cloneElement(l,wi({inputComponent:Hh,select:!0,inputProps:wi({children:n,classes:r,IconComponent:a,variant:d.variant,type:void 0},c,{},l?l.props.inputProps:{}),ref:t},u))}));Vh.muiName="Select",_c($h,{name:"MuiNativeSelect"})(Vh);var Uh=o.forwardRef((function(e,t){e.children;var n=e.classes,r=e.className,i=e.labelWidth,a=e.notched,s=e.style,l=Ci(e,["children","classes","className","labelWidth","notched","style"]),c="rtl"===Uc().direction?"right":"left",u=i>0?.75*i+8:0;return o.createElement("fieldset",wi({"aria-hidden":!0,style:wi(xi({},"padding".concat(Yc(c)),8+(a?0:u/2)),s),className:Rc(n.root,r),ref:t},l),o.createElement("legend",{className:n.legend,style:{width:a?u:.01}},o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),_h=_c((function(e){var t="rtl"===e.direction?"right":"left";return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:0,pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,transition:e.transitions.create(["padding-".concat(t),"border-color","border-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}}}),{name:"PrivateNotchedOutline"})(Uh),Yh=o.forwardRef((function(e,t){var n=e.classes,r=e.fullWidth,i=void 0!==r&&r,a=e.inputComponent,s=void 0===a?"input":a,l=e.labelWidth,c=void 0===l?0:l,u=e.multiline,d=void 0!==u&&u,p=e.notched,f=e.type,h=void 0===f?"text":f,m=Ci(e,["classes","fullWidth","inputComponent","labelWidth","multiline","notched","type"]);return o.createElement(Cf,wi({renderSuffix:function(e){return o.createElement(_h,{className:n.notchedOutline,labelWidth:c,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)})},classes:wi({},n,{root:Rc(n.root,n.underline),notchedOutline:null}),fullWidth:i,inputComponent:s,multiline:d,ref:t,type:h},m))}));Yh.muiName="Input";var Kh=_c((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===e.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===e.palette.type?"#fff":null,borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputSelect:{paddingRight:24},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(Yh),Xh="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Gh=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Xh&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();
|
|
23
|
+
*/var As="undefined"!=typeof CSS&&CSS&&"number"in CSS,qs=function(e){return new Is(e)};qs();var zs=Date.now(),Fs="fnValues"+zs,Ws="fnStyle"+ ++zs;var Hs="@global",$s="@global ",Bs=function(){function e(e,t,n){for(var r in this.type="global",this.at=Hs,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new hs(Si({},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 this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),js=function(){function e(e,t,n){this.type="global",this.at=Hs,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr($s.length);this.rule=n.jss.createRule(r,t,Si({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Vs=/\s*,\s*/g;function Us(e,t){for(var n=e.split(Vs),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function _s(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Hs)return new Bs(e,t,n);if("@"===e[0]&&e.substr(0,$s.length)===$s)return new js(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e){"style"===e.type&&(function(e){var t=e.options,n=e.style,r=n?n[Hs]:null;if(r){for(var o in r)t.sheet.addRule(o,r[o],Si({},t,{selector:Us(o,e.selector)}));delete n[Hs]}}(e),function(e){var t=e.options,n=e.style;for(var r in n)if("@"===r[0]&&r.substr(0,Hs.length)===Hs){var o=Us(r.substr(Hs.length),e.selector);t.sheet.addRule(o,n[r],Si({},t,{selector:o})),delete n[r]}}(e))}}}var Ys=/\s*,\s*/g,Ks=/&/g,Xs=/\$([\w-]+)/g;function Gs(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(Ys),r=e.split(Ys),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Ks,a):a+" "+l}return o}function n(e,t,n){if(n)return Si({},n,{index:n.index+1});var r=e.options.nestingLevel;return r=void 0===r?1:r+1,Si({},e.options,{nestingLevel:r,index:t.indexOf(e)+1})}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,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 f=t(u,l.selector);s||(s=e(c,i)),f=f.replace(Xs,s),c.addRule(f,r[u],Si({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var Zs=/[A-Z]/g,Js=/^ms-/,Qs={};function el(e){return"-"+e.toLowerCase()}function tl(e){if(Qs.hasOwnProperty(e))return Qs[e];var t=e.replace(Zs,el);return Qs[e]=Js.test(t)?"-"+t:t}function nl(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:tl(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(nl):t.fallbacks=nl(e.fallbacks)),t}var rl=As&&CSS?CSS.px:"px",ol=As&&CSS?CSS.ms:"ms",il=As&&CSS?CSS.percent:"%";function al(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var sl=al({"animation-delay":ol,"animation-duration":ol,"background-position":rl,"background-position-x":rl,"background-position-y":rl,"background-size":rl,border:rl,"border-bottom":rl,"border-bottom-left-radius":rl,"border-bottom-right-radius":rl,"border-bottom-width":rl,"border-left":rl,"border-left-width":rl,"border-radius":rl,"border-right":rl,"border-right-width":rl,"border-top":rl,"border-top-left-radius":rl,"border-top-right-radius":rl,"border-top-width":rl,"border-width":rl,margin:rl,"margin-bottom":rl,"margin-left":rl,"margin-right":rl,"margin-top":rl,padding:rl,"padding-bottom":rl,"padding-left":rl,"padding-right":rl,"padding-top":rl,"mask-position-x":rl,"mask-position-y":rl,"mask-size":rl,height:rl,width:rl,"min-height":rl,"max-height":rl,"min-width":rl,"max-width":rl,bottom:rl,left:rl,top:rl,right:rl,"box-shadow":rl,"text-shadow":rl,"column-gap":rl,"column-rule":rl,"column-rule-width":rl,"column-width":rl,"font-size":rl,"font-size-delta":rl,"letter-spacing":rl,"text-indent":rl,"text-stroke":rl,"text-stroke-width":rl,"word-spacing":rl,motion:rl,"motion-offset":rl,outline:rl,"outline-offset":rl,"outline-width":rl,perspective:rl,"perspective-origin-x":il,"perspective-origin-y":il,"transform-origin":il,"transform-origin-x":il,"transform-origin-y":il,"transform-origin-z":il,"transition-delay":ol,"transition-duration":ol,"vertical-align":rl,"flex-basis":rl,"shape-margin":rl,size:rl,grid:rl,"grid-gap":rl,"grid-row-gap":rl,"grid-column-gap":rl,"grid-template-rows":rl,"grid-template-columns":rl,"grid-auto-rows":rl,"grid-auto-columns":rl,"box-shadow-x":rl,"box-shadow-y":rl,"box-shadow-blur":rl,"box-shadow-spread":rl,"font-line-height":rl,"text-shadow-x":rl,"text-shadow-y":rl,"text-shadow-blur":rl});function ll(e,t,n){if(!t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=ll(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=ll(o,t[o],n);else for(var i in t)t[i]=ll(e+"-"+i,t[i],n);else if("number"==typeof t)return n[e]?""+t+n[e]:sl[e]?"function"==typeof sl[e]?sl[e](t).toString():""+t+sl[e]:t.toString();return t}function cl(e){void 0===e&&(e={});var t=al(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=ll(r,e[r],t);return e},onChangeValue:function(e,n){return ll(n,e,t)}}}function ul(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function dl(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||ul(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var pl="",fl="",hl="",ml=Ta&&"ontouchstart"in document.documentElement;if(Ta){var gl={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},vl=document.createElement("p").style;for(var yl in gl)if(yl+"Transform"in vl){pl=yl,fl=gl[yl];break}"Webkit"===pl&&"msHyphens"in vl&&(pl="ms",fl=gl.ms,"edge"),"Webkit"===pl&&"-apple-trailing-word"in vl&&(hl="apple")}var bl=pl,xl=fl,wl=hl,El=ml;var Cl={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===bl?"-webkit-"+e:xl+e)}},kl={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===bl?xl+"print-"+e:e)}},Sl=/[-\s]+(.)?/g;function Tl(e,t){return t?t.toUpperCase():""}function Rl(e){return e.replace(Sl,Tl)}function Nl(e){return Rl("-"+e)}var Ml,Pl={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===bl){var n="mask-image";if(Rl(n)in t)return e;if(bl+Nl(n)in t)return xl+e}return e}},Dl={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==wl||El?e:xl+e)}},Ll={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:xl+e)}},Il={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:xl+e)}},Ol={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===bl||"ms"===bl?xl+e:e)}},Al={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===bl||"ms"===bl||"apple"===wl?xl+e:e)}},ql={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===bl?"WebkitColumn"+Nl(e)in t&&xl+"column-"+e:"Moz"===bl&&("page"+Nl(e)in t&&"page-"+e))}},zl={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===bl)return e;var n=e.replace("-inline","");return bl+Nl(n)in t&&xl+n}},Fl={supportedProperty:function(e,t){return Rl(e)in t&&e}},Wl={supportedProperty:function(e,t){var n=Nl(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:bl+n in t?xl+e:"Webkit"!==bl&&"Webkit"+n in t&&"-webkit-"+e}},Hl={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===bl?""+xl+e:e)}},$l={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===bl?xl+"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"},jl={supportedProperty:function(e,t){var n=Bl[e];return!!n&&(bl+Nl(n)in t&&xl+n)}},Vl={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"},Ul=Object.keys(Vl),_l=function(e){return xl+e},Yl=[Cl,kl,Pl,Dl,Ll,Il,Ol,Al,ql,zl,Fl,Wl,Hl,$l,jl,{supportedProperty:function(e,t,n){var r=n.multiple;if(Ul.indexOf(e)>-1){var o=Vl[e];if(!Array.isArray(o))return bl+Nl(o)in t&&xl+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(bl+Nl(o[0])in t))return!1;return o.map(_l)}return!1}}],Kl=Yl.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Xl=Yl.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,dl(t.noPrefill)),e}),[]),Gl={};if(Ta){Ml=document.createElement("p");var Zl=window.getComputedStyle(document.documentElement,"");for(var Jl in Zl)isNaN(Jl)||(Gl[Zl[Jl]]=Zl[Jl]);Xl.forEach((function(e){return delete Gl[e]}))}function Ql(e,t){if(void 0===t&&(t={}),!Ml)return e;if(null!=Gl[e])return Gl[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ml.style);for(var n=0;n<Kl.length&&(Gl[e]=Kl[n](e,Ml.style,t),!Gl[e]);n++);try{Ml.style[e]=""}catch(e){return!1}return Gl[e]}var ec,tc={},nc={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},rc=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function oc(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Ql(t):", "+Ql(n);return r||(t||n)}function ic(e,t){var n=t;if(!ec||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=tc[r])return tc[r];try{ec.style[e]=n}catch(e){return tc[r]=!1,!1}if(nc[e])n=n.replace(rc,oc);else if(""===ec.style[e]&&("-ms-flex"===(n=xl+n)&&(ec.style[e]="-ms-flexbox"),ec.style[e]=n,""===ec.style[e]))return tc[r]=!1,!1;return ec.style[e]="",tc[r]=n,tc[r]}function ac(){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 o=!1,i=Ql(n);i&&i!==n&&(o=!0);var a=!1,s=ic(i,Aa(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===bl?e:"@"+xl+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ic(t,Aa(e))||e}}}function sc(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Ia(e,{},n);return r[Ws]=t,r},onProcessStyle:function(e,t){if(Fs in t||Ws in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[Fs]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Ws];i&&(o.style=i(e)||{});var a=o[Fs];if(a)for(var s in a)o.prop(s,a[s](e),r)}},_s(),Gs(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=nl(e[t]);return e}return nl(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=tl(t);return t===r?e:(n.prop(r,e),null)}},cl(),"undefined"==typeof window?null:ac(),(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={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function lc(){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=Si({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Ta&&(ec=document.createElement("p"));var cc=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},uc=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},dc=function(e,t,n){e.get(t).delete(n)},pc=m.createContext(null);function fc(){return m.useContext(pc)}var hc,mc=qs(sc()),gc={disableGeneration:!1,generateClassName:Ca(),jss:mc,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},vc=m.createContext(gc);function yc(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=Ri(e,["children","injectFirst","disableGeneration"]),s=Si({},m.useContext(vc),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!hc){var l=document.head;hc=document.createComment("mui-inject-first"),l.insertBefore(hc,l.firstChild)}s.jss=qs({plugins:sc().plugins,insertionPoint:hc})}return m.createElement(vc.Provider,{value:s},t)}var bc=-1e9;function xc(){return bc+=1}var wc={};function Ec(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Si({},o);return Object.keys(i).forEach((function(e){a[e]=Di(a[e],i[e])})),a},options:{}}}function Cc(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=lc({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function kc(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=uc(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},cc(o.sheetsManager,i,r,s));var l=Si({},i.options,{},o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=uc(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Si({link:!1},l))).attach(),o.sheetsCache&&cc(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Os(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Si({link:!0},l));p.update(t).attach(),n.dynamicSheet=p,n.classes=lc({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Sc(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function Tc(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=uc(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(dc(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function Rc(e,t){var n,r=m.useRef([]),o=m.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),m.useEffect((function(){return function(){n&&n()}}),[o])}function Nc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?wc:i,s=Ri(t,["name","classNamePrefix","Component","defaultTheme"]),l=Ec(e),c=n||r||"makeStyles";return l.options={index:xc(),name:n,meta:c,classNamePrefix:c},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=fc()||a,r=Si({},m.useContext(vc),{},s),i=m.useRef(),c=m.useRef();return Rc((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return kc(o,e),c.current=!1,i.current=o,function(){Tc(o)}}),[t,l]),m.useEffect((function(){c.current&&Sc(i.current,e),c.current=!0})),Cc(i.current,e.classes,o)}}function Mc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pc(e){var t,n,r="";if(e)if("object"==typeof e)if(e.push)for(t=0;t<e.length;t++)e[t]&&(n=Pc(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(n=Pc(t))&&(r&&(r+=" "),r+=n);else"boolean"==typeof e||e.call||(r&&(r+=" "),r+=e);return r}function Dc(){for(var e,t=0,n="";t<arguments.length;)(e=Pc(arguments[t++]))&&(n&&(n+=" "),n+=e);return n}var Lc=Li.exports,Ic={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Oc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ac={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qc={};function zc(e){return Lc.isMemo(e)?Ac:qc[e.$$typeof]||Ic}qc[Lc.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var Fc=Object.defineProperty,Wc=Object.getOwnPropertyNames,Hc=Object.getOwnPropertySymbols,$c=Object.getOwnPropertyDescriptor,Bc=Object.getPrototypeOf,jc=Object.prototype;var Vc=function e(t,n,r){if("string"!=typeof n){if(jc){var o=Bc(n);o&&o!==jc&&e(t,o,r)}var i=Wc(n);Hc&&(i=i.concat(Hc(n)));for(var a=zc(t),s=zc(n),l=0;l<i.length;++l){var c=i[l];if(!(Oc[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=$c(n,c);try{Fc(t,c,u)}catch(e){}}}return t}return t};function Uc(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function _c(e){var t=e.children,n=e.theme,r=fc(),o=m.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Si({},e,{},t)}(r,n);return null!=e&&(e[wa]=null!==r),e}),[n,r]);return m.createElement(pc.Provider,{value:o},t)}function Yc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=function(e){var n=m.forwardRef((function(n,r){var o=n.innerRef,i=Ri(n,["innerRef"]),a=fc()||t;return m.createElement(e,Si({theme:a,ref:o||r},i))}));return Vc(n,e),n};return n}Yc();var Kc=xa();function Xc(){return fc()||Kc}function Gc(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=Ri(t,["defaultTheme","withTheme","name"]),l=a,c=Nc(e,Si({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=m.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=Ri(e,["classes","innerRef"]),u=c(e),d=l;return("string"==typeof a||i)&&(o=fc()||r,a&&(d=ka({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),m.createElement(n,Si({ref:s||t,classes:u},d))}));return u.defaultProps=n.defaultProps,Vc(u,n),u}}(e,Si({defaultTheme:Kc},t))}function Zc(e){return e.charAt(0).toUpperCase()+e.slice(1)}Yc({defaultTheme:Kc});var Jc=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=Ri(e,["classes","className","component","square","elevation"]);return m.createElement(i,Si({className:Dc(n.root,n["elevation".concat(c)],r,!s&&n.rounded),ref:t},u))})),Qc=Gc((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Si({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius}},t)}),{name:"MuiPaper"})(Jc),eu=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.position,s=void 0===a?"fixed":a,l=Ri(e,["classes","className","color","position"]);return m.createElement(Qc,Si({square:!0,component:"header",elevation:4,className:Dc(n.root,n["position".concat(Zc(s))],r,"inherit"!==i&&n["color".concat(Zc(i))],{fixed:"mui-fixed"}[s]),ref:t},l))}));Gc((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static",transform:"translateZ(0)"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText}}}),{name:"MuiAppBar"})(eu);var tu=m.forwardRef((function(e,t){var n=e.alt,r=e.children,o=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.imgProps,c=e.sizes,u=e.src,d=e.srcSet,p=e.variant,f=void 0===p?"circle":p,h=Ri(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),g=null,v=u||d;return g=v?m.createElement("img",Si({alt:n,src:u,srcSet:d,sizes:c,className:o.img},l)):r,m.createElement(s,Si({className:Dc(o.root,o.system,o[f],i,!v&&o.colorDefault),ref:t},h),g)}));function nu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}Gc((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover"}}}),{name:"MuiAvatar"})(tu);var ru=!1,ou=m.createContext(null),iu="unmounted",au="exited",su="entering",lu="entered",cu="exiting",uu=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=au,r.appearStatus=su):o=lu:o=t.unmountOnExit||t.mountOnEnter?iu:au,r.state={status:o},r.nextCallback=null,r}Ma(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===iu?{status:au}: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!==su&&n!==lu&&(t=su):n!==su&&n!==lu||(t=cu)}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){this.cancelNextCallback();var n=b.findDOMNode(this);t===su?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===au&&this.setState({status:iu})},n.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;!t&&!r||ru?this.safeSetState({status:lu},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,o),this.safeSetState({status:su},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:lu},(function(){n.props.onEntered(e,o)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!ru?(this.props.onExit(e),this.safeSetState({status:cu},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:au},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:au},(function(){t.props.onExited(e)}))},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,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===iu)return null;var t=this.props,n=t.children,r=Ti(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return m.createElement(ou.Provider,{value:null},n(e,r));var o=m.Children.only(n);return m.createElement(ou.Provider,{value:null},m.cloneElement(o,r))},t}(m.Component);function du(){}uu.contextType=ou,uu.propTypes={},uu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:du,onEntering:du,onEntered:du,onExit:du,onExiting:du,onExited:du},uu.UNMOUNTED=0,uu.EXITED=1,uu.ENTERING=2,uu.ENTERED=3,uu.EXITING=4;var pu=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},fu=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=nu(n.className,r):n.setAttribute("class",nu(n.className&&n.className.baseVal||"",r)));var n,r}))},hu=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){t.removeClasses(e,"exit"),t.addClass(e,n?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=n?"appear":"enter";t.addClass(e,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=n?"appear":"enter";t.removeClasses(e,r),t.addClass(e,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),t.addClass(e,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){t.addClass(e,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){t.removeClasses(e,"exit"),t.addClass(e,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Ma(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"];"appear"===t&&"done"===n&&(r+=" "+this.getClassNames("enter").doneClassName),"active"===n&&e&&e.scrollTop,this.appliedClasses[t][n]=r,pu(e,r)},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&fu(e,r),o&&fu(e,o),i&&fu(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Ti(e,["classNames"]);return m.createElement(uu,Si({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(m.Component);function mu(e,t){var n=Object.create(null);return e&&g.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&v(e)?t(e):e}(e)})),n}function gu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function vu(e,t,n){var r=mu(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(v(a)){var s=i in t,l=i in r,c=t[i],u=v(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&v(c)&&(o[i]=y(a,{onExited:n.bind(null,a),in:c.props.in,exit:gu(a,"exit",e),enter:gu(a,"enter",e)})):o[i]=y(a,{in:!1}):o[i]=y(a,{onExited:n.bind(null,a),in:!0,exit:gu(a,"exit",e),enter:gu(a,"enter",e)})}})),o}hu.defaultProps={classNames:""},hu.propTypes={};var yu,bu,xu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},wu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Pa(Pa(r)));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ma(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,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,mu(n.children,(function(e){return y(e,{onExited:r.bind(null,e),in:!0,appear:gu(e,"appear",n),enter:gu(e,"enter",n),exit:gu(e,"exit",n)})}))):vu(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=mu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Si({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ti(e,["component","childFactory"]),o=this.state.contextValue,i=xu(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?m.createElement(ou.Provider,{value:o},i):m.createElement(ou.Provider,{value:o},m.createElement(t,r,i))},t}(m.Component);wu.propTypes={},wu.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Ma(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=m.Children.toArray(o)[t];i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]&&this.props[e](b.findDOMNode(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Ti(e,["children","in"]),o=m.Children.toArray(t),i=o[0],a=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,m.createElement(wu,r,n?m.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):m.cloneElement(a,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(m.Component)).propTypes={};var Eu="out-in",Cu="in-out",ku=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},Su=((yu={})[Eu]=function(e){var t=e.current,n=e.changeState;return m.cloneElement(t,{in:!1,onExited:ku(t,"onExited",(function(){n(su,null)}))})},yu[Cu]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,m.cloneElement(r,{in:!0,onEntered:ku(r,"onEntered",(function(){n(su)}))})]},yu),Tu=((bu={})[Eu]=function(e){var t=e.children,n=e.changeState;return m.cloneElement(t,{in:!0,onEntered:ku(t,"onEntered",(function(){n(lu,m.cloneElement(t,{in:!0}))}))})},bu[Cu]=function(e){var t=e.current,n=e.children,r=e.changeState;return[m.cloneElement(t,{in:!1,onExited:ku(t,"onExited",(function(){r(lu,m.cloneElement(n,{in:!0}))}))}),m.cloneElement(n,{in:!0})]},bu),Ru=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:lu,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Ma(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===su&&e.mode===Cu?{status:su}:!t.current||(n=t.current,r=e.children,n===r||m.isValidElement(n)&&m.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:m.cloneElement(e.children,{in:!0})}:{status:cu};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,s={children:n,current:a,changeState:this.changeState,status:i};switch(i){case su:e=Tu[r](s);break;case cu:e=Su[r](s);break;case lu:e=a}return m.createElement(ou.Provider,{value:{isMounting:!this.appeared}},e)},t}(m.Component);Ru.propTypes={},Ru.defaultProps={mode:Eu};var Nu=function(e){return e.scrollTop};function Mu(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function Pu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Du(e,t){return m.useMemo((function(){return null==e&&null==t?null:function(n){Pu(e,n),Pu(t,n)}}),[e,t])}var Lu={entering:{opacity:1},entered:{opacity:1}},Iu={enter:ga.enteringScreen,exit:ga.leavingScreen},Ou=m.forwardRef((function(e,t){var n=e.children,r=e.in,o=e.onEnter,i=e.onExit,a=e.style,s=e.timeout,l=void 0===s?Iu:s,c=Ri(e,["children","in","onEnter","onExit","style","timeout"]),u=Xc(),d=Du(n.ref,t);return m.createElement(uu,Si({appear:!0,in:r,onEnter:function(e,t){Nu(e);var n=Mu({style:a,timeout:l},{mode:"enter"});e.style.webkitTransition=u.transitions.create("opacity",n),e.style.transition=u.transitions.create("opacity",n),o&&o(e,t)},onExit:function(e){var t=Mu({style:a,timeout:l},{mode:"exit"});e.style.webkitTransition=u.transitions.create("opacity",t),e.style.transition=u.transitions.create("opacity",t),i&&i(e)},timeout:l},c),(function(e,t){return m.cloneElement(n,Si({style:Si({opacity:0,visibility:"exited"!==e||r?void 0:"hidden"},Lu[e],{},a,{},n.props.style),ref:d},t))}))})),Au=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.invisible,a=void 0!==i&&i,s=e.open,l=e.transitionDuration,c=Ri(e,["children","classes","className","invisible","open","transitionDuration"]);return m.createElement(Ou,Si({in:s,timeout:l},c),m.createElement("div",{className:Dc(r.root,o,a&&r.invisible),"aria-hidden":!0,ref:t},n))})),qu=Gc({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Au),zu=m.forwardRef((function(e,t){var n=e.anchorOrigin,r=void 0===n?{vertical:"top",horizontal:"right"}:n,o=e.badgeContent,i=e.children,a=e.classes,s=e.className,l=e.color,c=void 0===l?"default":l,u=e.component,d=void 0===u?"span":u,p=e.invisible,f=e.max,h=void 0===f?99:f,g=e.overlap,v=void 0===g?"rectangle":g,y=e.showZero,b=void 0!==y&&y,x=e.variant,w=void 0===x?"standard":x,E=Ri(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),C=p;null==p&&(0===o&&!b||null==o&&"dot"!==w)&&(C=!0);var k="";return"dot"!==w&&(k=o>h?"".concat(h,"+"):o),m.createElement(d,Si({className:Dc(a.root,s),ref:t},E),i,m.createElement("span",{className:Dc(a.badge,a["".concat(r.horizontal).concat(Zc(r.vertical),"}")],a["anchorOrigin".concat(Zc(r.vertical)).concat(Zc(r.horizontal)).concat(Zc(v))],"default"!==c&&a["color".concat(Zc(c))],C&&a.invisible,{dot:a.dot}[w])},k))}));Gc((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,backgroundColor:e.palette.color,color:e.palette.textColor,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{height:6,minWidth:6,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(zu);var Fu=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,s=e.onChange,l=e.showLabels,c=void 0!==l&&l,u=e.value,d=Ri(e,["children","classes","className","component","onChange","showLabels","value"]);return m.createElement(a,Si({className:Dc(r.root,o),ref:t},d),m.Children.map(n,(function(e,t){if(!m.isValidElement(e))return null;var n=void 0===e.props.value?t:e.props.value;return m.cloneElement(e,{selected:n===u,showLabel:void 0!==e.props.showLabel?e.props.showLabel:c,value:n,onChange:s})})))}));Gc((function(e){return{root:{display:"flex",justifyContent:"center",height:56,backgroundColor:e.palette.background.paper}}}),{name:"MuiBottomNavigation"})(Fu);var Wu="undefined"!=typeof window?m.useLayoutEffect:m.useEffect;function Hu(e){var t=m.useRef(e);return Wu((function(){t.current=e})),m.useCallback((function(e){return(0,t.current)(e)}),[])}var $u="undefined"!=typeof window?m.useLayoutEffect:m.useEffect;function Bu(e){var t=e.children,n=e.defer,r=void 0!==n&&n,o=e.fallback,i=void 0===o?null:o,a=m.useState(!1),s=a[0],l=a[1];return $u((function(){r||l(!0)}),[r]),m.useEffect((function(){r&&l(!0)}),[r]),m.createElement(m.Fragment,null,s?t:i)}var ju=!0,Vu=!1,Uu=null,_u={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||(ju=!0)}function Ku(){ju=!1}function Xu(){"hidden"===this.visibilityState&&Vu&&(ju=!0)}function Gu(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return ju||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!_u[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function Zu(){Vu=!0,window.clearTimeout(Uu),Uu=window.setTimeout((function(){Vu=!1}),100)}function Ju(){return{isFocusVisible:Gu,onBlurVisible:Zu,ref:m.useCallback((function(e){var t=b.findDOMNode(e);null!=t&&function(e){e.addEventListener("keydown",Yu,!0),e.addEventListener("mousedown",Ku,!0),e.addEventListener("pointerdown",Ku,!0),e.addEventListener("touchstart",Ku,!0),e.addEventListener("visibilitychange",Xu,!0)}(t.ownerDocument)}),[])}}var Qu="undefined"==typeof window?m.useEffect:m.useLayoutEffect;function ed(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=m.useState(!1),p=d[0],f=d[1],h=Dc(t.ripple,t.rippleVisible,r&&t.ripplePulsate),g={width:a,height:a,top:-a/2+i,left:-a/2+o},v=Dc(t.child,p&&t.childLeaving,r&&t.childPulsate),y=Hu(c);return Qu((function(){if(!s){f(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),m.createElement("span",{className:h,style:g},m.createElement("span",{className:v}))}var td=m.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=Ri(e,["center","classes","className"]),s=m.useState([]),l=s[0],c=s[1],u=m.useRef(0),d=m.useRef(null);m.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=m.useRef(!1),f=m.useRef(null),h=m.useRef(null),g=m.useRef(null);m.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var v=m.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(dl(e),[m.createElement(ed,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),y=m.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,o=t.pulsate,i=void 0!==o&&o,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,m,y=c?null:g.current,b=y?y.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.clientX?e.clientX:e.touches[0].clientX,w=e.clientY?e.clientY:e.touches[0].clientY;u=Math.round(x-b.left),d=Math.round(w-b.top)}if(s)(m=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(m+=1);else{var E=2*Math.max(Math.abs((y?y.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;m=Math.sqrt(Math.pow(E,2)+Math.pow(C,2))}e.touches?(h.current=function(){v({pulsate:i,rippleX:u,rippleY:d,rippleSize:m,cb:n})},f.current=setTimeout((function(){h.current&&(h.current(),h.current=null)}),80)):v({pulsate:i,rippleX:u,rippleY:d,rippleSize:m,cb:n})}}),[r,v]),b=m.useCallback((function(){y({},{pulsate:!0})}),[y]),x=m.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(f.current=setTimeout((function(){x(e,t)})));h.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return m.useImperativeHandle(t,(function(){return{pulsate:b,start:y,stop:x}}),[b,y,x]),m.createElement("span",Si({className:Dc(o.root,i),ref:g},a),m.createElement(wu,{component:null,exit:!0},l))}));var nd,rd=Gc((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"})(((nd=m.memo(td)).muiName="MuiTouchRipple",nd)),od=m.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,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,f=e.disableRipple,h=void 0!==f&&f,g=e.disableTouchRipple,v=void 0!==g&&g,y=e.focusRipple,x=void 0!==y&&y,w=e.focusVisibleClassName,E=e.onBlur,C=e.onClick,k=e.onFocus,S=e.onFocusVisible,T=e.onKeyDown,R=e.onKeyUp,N=e.onMouseDown,M=e.onMouseLeave,P=e.onMouseUp,D=e.onTouchEnd,L=e.onTouchMove,I=e.onTouchStart,O=e.onDragLeave,A=e.tabIndex,q=void 0===A?0:A,z=e.TouchRippleProps,F=e.type,W=void 0===F?"button":F,H=Ri(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"]),$=m.useRef(null);var B=m.useRef(null),j=m.useState(!1),V=j[0],U=j[1];p&&V&&U(!1);var _=Ju(),Y=_.isFocusVisible,K=_.onBlurVisible,X=_.ref;function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;return Hu((function(r){return t&&t(r),!n&&B.current&&B.current[e](r),!0}))}m.useImperativeHandle(n,(function(){return{focusVisible:function(){U(!0),$.current.focus()}}}),[]),m.useEffect((function(){V&&x&&!h&&B.current.pulsate()}),[h,x,V]);var Z=G("start",N),J=G("stop",O),Q=G("stop",P),ee=G("stop",(function(e){V&&e.preventDefault(),M&&M(e)})),te=G("start",I),ne=G("stop",D),re=G("stop",L),oe=G("stop",(function(e){V&&(K(e),U(!1)),E&&E(e)}),!1),ie=Hu((function(e){p||($.current||($.current=e.currentTarget),Y(e)&&(U(!0),S&&S(e)),k&&k(e))})),ae=m.useRef(!1),se=Hu((function(e){x&&!ae.current&&V&&B.current&&" "===e.key&&(ae.current=!0,e.persist(),B.current.stop(e,(function(){B.current.start(e)}))),T&&T(e);var t=b.findDOMNode($.current);e.target!==e.currentTarget||!u||"button"===u||" "!==e.key&&"Enter"!==e.key||"A"===t.tagName&&t.href||(e.preventDefault(),C&&C(e))})),le=Hu((function(e){x&&" "===e.key&&B.current&&V&&(ae.current=!1,e.persist(),B.current.stop(e,(function(){B.current.pulsate(e)}))),R&&R(e)})),ce=u;"button"===ce&&H.href&&(ce="a");var ue={};"button"===ce?(ue.type=W,ue.disabled=p):("a"===ce&&H.href||(ue.role="button"),ue["aria-disabled"]=p);var de=Du(r,t),pe=Du(X,$),fe=Du(de,pe);return m.createElement(ce,Si({className:Dc(s.root,l,V&&[s.focusVisible,w],p&&s.disabled),onBlur:oe,onClick:C,onFocus:ie,onKeyDown:se,onKeyUp:le,onMouseDown:Z,onMouseLeave:ee,onMouseUp:Q,onDragLeave:J,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:p?-1:q},ue,H),a,h||p?null:m.createElement(Bu,null,m.createElement(rd,Si({ref:B,center:i},z))))})),id=Gc({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"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(od),ad=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.icon,i=e.label,a=e.onChange,s=e.onClick,l=e.selected,c=e.showLabel,u=e.value,d=Ri(e,["classes","className","icon","label","onChange","onClick","selected","showLabel","value"]);return m.createElement(id,Si({ref:t,className:Dc(n.root,r,l?n.selected:!c&&n.iconOnly),focusRipple:!0,onClick:function(e){a&&a(e,u),s&&s(e)}},d),m.createElement("span",{className:n.wrapper},o,m.createElement("span",{className:Dc(n.label,l?n.selected:!c&&n.iconOnly)},i)))}));function sd(e,t){return t?Di(e,t,{clone:!1}):e}Gc((function(e){return{root:{transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"6px 12px 8px",minWidth:80,maxWidth:168,color:e.palette.text.secondary,flex:"1","&$iconOnly":{paddingTop:16},"&$selected":{paddingTop:6,color:e.palette.primary.main}},selected:{},iconOnly:{},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},label:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s","&$iconOnly":{opacity:0,transitionDelay:"0s"},"&$selected":{fontSize:e.typography.pxToRem(14)}}}}),{name:"MuiBottomNavigationAction"})(ad);var ld={xs:0,sm:600,md:960,lg:1280,xl:1920},cd={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(ld[e],"px)")}};function ud(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||cd;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Mi(t)){var o=e.theme.breakpoints||cd;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function dd(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function pd(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=dd(e.theme,o)||{};return ud(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=dd(a,e)||e,i&&(t=i(t))),!1===r?t:ki({},r,t)}))};return a.propTypes={},a.filterProps=[t],a}function fd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?sd(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function hd(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var md=fd(pd({prop:"border",themeKey:"borders",transform:hd}),pd({prop:"borderTop",themeKey:"borders",transform:hd}),pd({prop:"borderRight",themeKey:"borders",transform:hd}),pd({prop:"borderBottom",themeKey:"borders",transform:hd}),pd({prop:"borderLeft",themeKey:"borders",transform:hd}),pd({prop:"borderColor",themeKey:"palette"}),pd({prop:"borderRadius",themeKey:"shape"}));var gd=fd(pd({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),pd({prop:"display"}),pd({prop:"overflow"}),pd({prop:"textOverflow"}),pd({prop:"visibility"}),pd({prop:"whiteSpace"})),vd=fd(pd({prop:"flexBasis"}),pd({prop:"flexDirection"}),pd({prop:"flexWrap"}),pd({prop:"justifyContent"}),pd({prop:"alignItems"}),pd({prop:"alignContent"}),pd({prop:"order"}),pd({prop:"flex"}),pd({prop:"flexGrow"}),pd({prop:"flexShrink"}),pd({prop:"alignSelf"}),pd({prop:"justifyItems"}),pd({prop:"justifySelf"})),yd=fd(pd({prop:"color",themeKey:"palette"}),pd({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),bd=fd(pd({prop:"position"}),pd({prop:"zIndex",themeKey:"zIndex"}),pd({prop:"top"}),pd({prop:"right"}),pd({prop:"bottom"}),pd({prop:"left"})),xd=pd({prop:"boxShadow",themeKey:"shadows"});function wd(e){return e<=1?"".concat(100*e,"%"):e}var Ed=pd({prop:"width",transform:wd}),Cd=pd({prop:"maxWidth",transform:wd}),kd=pd({prop:"minWidth",transform:wd}),Sd=pd({prop:"height",transform:wd}),Td=pd({prop:"maxHeight",transform:wd}),Rd=pd({prop:"minHeight",transform:wd});pd({prop:"size",cssProperty:"width",transform:wd}),pd({prop:"size",cssProperty:"height",transform:wd});var Nd=fd(Ed,Cd,kd,Sd,Td,Rd);function Md(e){if(Array.isArray(e))return e}function Pd(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Dd(e,t){return Md(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||Pd()}var Ld={m:"margin",p:"padding"},Id={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Od={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ad=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!Od[e])return[e];e=Od[e]}var t=Dd(e.split(""),2),n=t[0],r=t[1],o=Ld[n],i=Id[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),qd=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function zd(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function Fd(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(){}}(e.theme);return Object.keys(e).map((function(n){if(-1===qd.indexOf(n))return null;var r=zd(Ad(n),t),o=e[n];return ud(e,o,r)})).reduce(sd,{})}Fd.propTypes={},Fd.filterProps=qd;var Wd=fd(pd({prop:"fontFamily",themeKey:"typography"}),pd({prop:"fontSize",themeKey:"typography"}),pd({prop:"fontStyle",themeKey:"typography"}),pd({prop:"fontWeight",themeKey:"typography"}),pd({prop:"letterSpacing"}),pd({prop:"lineHeight"}),pd({prop:"textAlign"})),Hd=function(e){var t=function(t){var n=e(t);return t.css?Si({},sd(n,e(Si({theme:t.theme},t.css))),{},function(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(t.css,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css"].concat(dl(e.filterProps)),t}(fd(md,gd,vd,bd,yd,xd,Nd,Fd,Wd));!function(e){var t=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=Ri(r,["name"]),a=o,s=Nc("function"==typeof t?function(e){return{root:function(n){return t(Si({theme:e},n))}}}:{root:t},Si({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=m.forwardRef((function(t,r){var o=t.children,i=t.className,a=t.clone,l=t.component,c=Ri(t,["children","className","clone","component"]),u=Dc(s(t).root,i),d=c;if(n&&(d=Uc(d,n)),a)return m.cloneElement(o,Si({className:Dc(o.props.className,u)},d));if("function"==typeof o)return o(Si({className:u},d));var p=l||e;return m.createElement(p,Si({ref:r,className:u},d),o)}));return Vc(l,e),l}}(e);return function(e,n){return t(e,Si({defaultTheme:Kc},n))}}("div")(Hd,{name:"MuiBox"});var $d={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Bd=m.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=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,f=e.noWrap,h=void 0!==f&&f,g=e.paragraph,v=void 0!==g&&g,y=e.variant,b=void 0===y?"body1":y,x=e.variantMapping,w=void 0===x?$d:x,E=Ri(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(v?"p":w[b]||$d[b])||"span";return m.createElement(C,Si({className:Dc(o.root,i,"inherit"!==b&&o[b],"initial"!==s&&o["color".concat(Zc(s))],h&&o.noWrap,p&&o.gutterBottom,v&&o.paragraph,"inherit"!==r&&o["align".concat(Zc(r))],"initial"!==u&&o["display".concat(Zc(u))]),ref:t},E))})),jd=Gc((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"})(Bd),Vd=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"inherit":i,s=e.component,l=void 0===s?"svg":s,c=e.fontSize,u=void 0===c?"default":c,d=e.htmlColor,p=e.titleAccess,f=e.viewBox,h=void 0===f?"0 0 24 24":f,g=Ri(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return m.createElement(l,Si({className:Dc(r.root,o,"inherit"!==a&&r["color".concat(Zc(a))],"default"!==u&&r["fontSize".concat(Zc(u))]),focusable:"false",viewBox:h,color:d,"aria-hidden":p?"false":"true",role:p?"img":"presentation",ref:t},g),n,p?m.createElement("title",null,p):null)}));Vd.muiName="SvgIcon";var Ud=Gc((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(Vd);function _d(e,t){var n=m.memo(m.forwardRef((function(t,n){return m.createElement(Ud,Si({},t,{ref:n}),e)})));return n.muiName=Ud.muiName,n}var Yd=_d(m.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var Kd=Gc((function(e){return{root:{display:"flex"},icon:{width:24,height:16,backgroundColor:e.palette.grey[100],color:e.palette.grey[700],borderRadius:2,marginLeft:e.spacing(.5),marginRight:e.spacing(.5),cursor:"pointer","&:hover, &:focus":{backgroundColor:e.palette.grey[200]},"&:active":{boxShadow:e.shadows[0],backgroundColor:xi(e.palette.grey[200],.12)}}}}),{name:"PrivateBreadcrumbCollapsed"})((function(e){var t=e.classes,n=Ri(e,["classes"]);return m.createElement("li",Si({className:t.root},n),m.createElement(Yd,{className:t.icon}))}));var Xd=Gc({root:{display:"flex",userSelect:"none",marginLeft:8,marginRight:8}},{name:"PrivateBreadcrumbSeparator"})((function(e){var t=e.classes,n=e.className,r=Ri(e,["classes","className"]);return m.createElement("li",Si({"aria-hidden":!0,className:Dc(t.root,n)},r))}));var Gd=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"nav":i,s=e.itemsAfterCollapse,l=void 0===s?1:s,c=e.itemsBeforeCollapse,u=void 0===c?1:c,d=e.maxItems,p=void 0===d?8:d,f=e.separator,h=void 0===f?"/":f,g=Ri(e,["children","classes","className","component","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),v=m.useState(!1),y=v[0],b=v[1],x=m.Children.toArray(n).filter((function(e){return m.isValidElement(e)})).map((function(e,t){return m.createElement("li",{className:r.li,key:"child-".concat(t)},e)}));return m.createElement(jd,Si({ref:t,component:a,color:"textSecondary",className:Dc(r.root,o)},g),m.createElement("ol",{className:r.ol},function(e,t,n){return e.reduce((function(r,o,i){return i<e.length-1?r=r.concat(o,m.createElement(Xd,{key:"separator-".concat(i),className:t},n)):r.push(o),r}),[])}(y||p&&x.length<=p?x:function(e){return u+l>=e.length?e:[].concat(dl(e.slice(0,u)),[m.createElement(Kd,{key:"ellipsis",onClick:function(){b(!0)}})],dl(e.slice(e.length-l,e.length)))}(x),r.separator,h)))}));Gc({root:{},ol:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0},li:{listStyle:"none"},separator:{}},{name:"MuiBreadcrumbs"})(Gd);var Zd=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableFocusRipple,p=void 0!==d&&d,f=e.endIcon,h=e.focusVisibleClassName,g=e.fullWidth,v=void 0!==g&&g,y=e.size,b=void 0===y?"medium":y,x=e.startIcon,w=e.type,E=void 0===w?"button":w,C=e.variant,k=void 0===C?"text":C,S=Ri(e,["children","classes","className","color","component","disabled","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),T=x&&m.createElement("span",{className:Dc(r.startIcon,r["iconSize".concat(Zc(b))])},x),R=f&&m.createElement("span",{className:Dc(r.endIcon,r["iconSize".concat(Zc(b))])},f);return m.createElement(id,Si({className:Dc(r.root,r[k],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(k).concat(Zc(a))],"medium"!==b&&[r["".concat(k,"Size").concat(Zc(b))],r["size".concat(Zc(b))]],u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:Dc(r.focusVisible,h),ref:t,type:E},S),m.createElement("span",{className:r.label},T,n,R))})),Jd=Gc((function(e){return{root:Si({},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:wi(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:wi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:wi(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.disabled)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(wi(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:wi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(wi(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:wi(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}}},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"})(Zd),Qd=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"div":s,c=e.disabled,u=void 0!==c&&c,d=e.disableFocusRipple,p=void 0!==d&&d,f=e.disableRipple,h=void 0!==f&&f,g=e.fullWidth,v=void 0!==g&&g,y=e.size,b=void 0===y?"medium":y,x=e.variant,w=void 0===x?"outlined":x,E=Ri(e,["children","classes","className","color","component","disabled","disableFocusRipple","disableRipple","fullWidth","size","variant"]),C=Dc(r.grouped,r["grouped".concat(Zc(w))],r["grouped".concat(Zc(w)).concat("default"!==a?Zc(a):"")],u&&r.disabled);return m.createElement(l,Si({role:"group",className:Dc(r.root,o,v&&r.fullWidth,{contained:r.contained}[w]),ref:t},E),m.Children.map(n,(function(e){return m.isValidElement(e)?m.cloneElement(e,{className:Dc(C,e.props.className),disabled:e.props.disabled||u,color:e.props.color||a,disableFocusRipple:p,disableRipple:h,fullWidth:v,size:e.props.size||b,variant:e.props.variant||w}):null})))}));Gc((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},contained:{boxShadow:e.shadows[2]},fullWidth:{width:"100%"},grouped:{minWidth:40,"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedText:{"&:not(:last-child)":{borderRight:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:wi(e.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:wi(e.palette.secondary.main,.5)}},groupedOutlined:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:e.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:e.palette.secondary.main}},groupedContained:{boxShadow:"none","&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.primary.dark)}},groupedContainedSecondary:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.secondary.dark)}},disabled:{}}}),{name:"MuiButtonGroup"})(Qd);var ep=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.raised,i=void 0!==o&&o,a=Ri(e,["classes","className","raised"]);return m.createElement(Qc,Si({className:Dc(n.root,r),elevation:i?8:1,ref:t},a))}));Gc({root:{overflow:"hidden"}},{name:"MuiCard"})(ep);var tp=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.focusVisibleClassName,a=Ri(e,["children","classes","className","focusVisibleClassName"]);return m.createElement(id,Si({className:Dc(r.root,o),focusVisibleClassName:Dc(i,r.focusVisible),ref:t},a),n,m.createElement("span",{className:r.focusHighlight}))}));Gc((function(e){return{root:{display:"block",textAlign:"inherit",width:"100%","&:hover $focusHighlight":{opacity:e.palette.action.hoverOpacity},"&$focusVisible $focusHighlight":{opacity:.12}},focusVisible:{},focusHighlight:{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}}}),{name:"MuiCardActionArea"})(tp);var np=m.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,o=e.classes,i=e.className,a=Ri(e,["disableSpacing","classes","className"]);return m.createElement("div",Si({className:Dc(o.root,i,!r&&o.spacing),ref:t},a))}));Gc({root:{display:"flex",alignItems:"center",padding:8},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiCardActions"})(np);var rp=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=Ri(e,["classes","className","component"]);return m.createElement(i,Si({className:Dc(n.root,r),ref:t},a))}));Gc({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(rp);var op=m.forwardRef((function(e,t){var n=e.action,r=e.avatar,o=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.disableTypography,c=void 0!==l&&l,u=e.subheader,d=e.subheaderTypographyProps,p=e.title,f=e.titleTypographyProps,h=Ri(e,["action","avatar","classes","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"]),g=p;null==g||g.type===jd||c||(g=m.createElement(jd,Si({variant:r?"body2":"h5",className:o.title,component:"span",display:"block"},f),g));var v=u;return null==v||v.type===jd||c||(v=m.createElement(jd,Si({variant:r?"body2":"body1",className:o.subheader,color:"textSecondary",component:"span",display:"block"},d),v)),m.createElement(s,Si({className:Dc(o.root,i),ref:t},h),r&&m.createElement("div",{className:o.avatar},r),m.createElement("div",{className:o.content},g,v),n&&m.createElement("div",{className:o.action},n))}));Gc({root:{display:"flex",alignItems:"center",padding:16},avatar:{flex:"0 0 auto",marginRight:16},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-8,marginRight:-8},content:{flex:"1 1 auto"},title:{},subheader:{}},{name:"MuiCardHeader"})(op);var ip=["video","audio","picture","iframe","img"],ap=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,s=e.image,l=e.src,c=e.style,u=Ri(e,["children","classes","className","component","image","src","style"]),d=-1!==ip.indexOf(a),p=!d&&s?Si({backgroundImage:'url("'.concat(s,'")')},c):c;return m.createElement(a,Si({className:Dc(r.root,o,d&&r.media,-1!=="picture img".indexOf(a)&&r.img),ref:t,style:p,src:d?s||l:void 0},u),n)}));Gc({root:{display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},media:{width:"100%"},img:{objectFit:"cover"}},{name:"MuiCardMedia"})(ap);var sp=m.createContext();function lp(){return m.useContext(sp)}function cp(){return m.useContext(sp)}var up=m.forwardRef((function(e,t){var n=e.edge,r=void 0!==n&&n,o=e.children,i=e.classes,a=e.className,s=e.color,l=void 0===s?"default":s,c=e.disabled,u=void 0!==c&&c,d=e.disableFocusRipple,p=void 0!==d&&d,f=e.size,h=void 0===f?"medium":f,g=Ri(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return m.createElement(id,Si({className:Dc(i.root,a,"default"!==l&&i["color".concat(Zc(l))],u&&i.disabled,{small:i["size".concat(Zc(h))]}[h],{start:i.edgeStart,end:i.edgeEnd}[r]),centerRipple:!0,focusRipple:!p,disabled:u,ref:t},g),m.createElement("span",{className:i.label},o))})),dp=Gc((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:wi(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:wi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:wi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(up),pp=m.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,o=e.checkedIcon,i=e.classes,a=e.className,s=e.defaultChecked,l=e.disabled,c=e.icon,u=e.id,d=e.inputProps,p=e.inputRef,f=e.name,h=e.onBlur,g=e.onChange,v=e.onFocus,y=e.readOnly,b=e.required,x=e.tabIndex,w=e.type,E=e.value,C=Ri(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),k=m.useRef(null!=r).current,S=m.useState(Boolean(s)),T=S[0],R=S[1],N=cp(),M=l;N&&void 0===M&&(M=N.disabled);var P=k?r:T,D="checkbox"===w||"radio"===w;return m.createElement(dp,Si({component:"span",className:Dc(i.root,a,P&&i.checked,M&&i.disabled),disabled:M,tabIndex:null,role:void 0,onFocus:function(e){v&&v(e),N&&N.onFocus&&N.onFocus(e)},onBlur:function(e){h&&h(e),N&&N.onBlur&&N.onBlur(e)},ref:t},C),m.createElement("input",Si({autoFocus:n,checked:r,defaultChecked:s,className:i.input,disabled:M,id:D&&u,name:f,onChange:function(e){var t=e.target.checked;k||R(t),g&&g(e,t)},readOnly:y,ref:p,required:b,tabIndex:x,type:w,value:E},d)),P?o:c)})),fp=Gc({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(pp),hp=_d(m.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),mp=_d(m.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),gp=_d(m.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"})),vp=m.createElement(mp,null),yp=m.createElement(hp,null),bp=m.createElement(gp,null),xp=m.forwardRef((function(e,t){var n=e.checkedIcon,r=void 0===n?vp:n,o=e.classes,i=e.color,a=void 0===i?"secondary":i,s=e.icon,l=void 0===s?yp:s,c=e.indeterminate,u=void 0!==c&&c,d=e.indeterminateIcon,p=void 0===d?bp:d,f=e.inputProps,h=Ri(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps"]);return m.createElement(fp,Si({type:"checkbox",checkedIcon:u?p:r,classes:{root:Dc(o.root,o["color".concat(Zc(a))],u&&o.indeterminate),checked:o.checked,disabled:o.disabled},color:a,inputProps:Si({"data-indeterminate":u},f),icon:u?p:l,ref:t},h))}));Gc((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:wi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:wi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(xp);var wp=_d(m.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})),Ep=m.forwardRef((function(e,t){var n=e.avatar,r=e.classes,o=e.className,i=e.clickable,a=e.color,s=void 0===a?"default":a,l=e.component,c=e.deleteIcon,u=e.disabled,d=void 0!==u&&u,p=e.icon,f=e.label,h=e.onClick,g=e.onDelete,v=e.onKeyDown,y=e.onKeyUp,b=e.size,x=void 0===b?"medium":b,w=e.variant,E=void 0===w?"default":w,C=Ri(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),k=m.useRef(null),S=Du(k,t),T=function(e){e.stopPropagation(),g&&g(e)},R=!(!1===i||!h)||i,N="small"===x,M=l||(R?id:"div"),P=M===id?{component:"div"}:{},D=null;if(g){var L=Dc("default"!==s&&("default"===E?r["deleteIconColor".concat(Zc(s))]:r["deleteIconOutlinedColor".concat(Zc(s))]),N&&r.deleteIconSmall);D=c&&m.isValidElement(c)?m.cloneElement(c,{className:Dc(c.props.className,r.deleteIcon,L),onClick:T}):m.createElement(wp,{className:Dc(r.deleteIcon,L),onClick:T})}var I=null;n&&m.isValidElement(n)&&(I=m.cloneElement(n,{className:Dc(r.avatar,n.props.className,N&&r.avatarSmall,"default"!==s&&r["avatarColor".concat(Zc(s))])}));var O=null;return p&&m.isValidElement(p)&&(O=m.cloneElement(p,{className:Dc(r.icon,p.props.className,N&&r.iconSmall,"default"!==s&&r["iconColor".concat(Zc(s))])})),m.createElement(M,Si({role:R||g?"button":void 0,className:Dc(r.root,o,"default"!==s&&[r["color".concat(Zc(s))],R&&r["clickableColor".concat(Zc(s))],g&&r["deletableColor".concat(Zc(s))]],"default"!==E&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[s]],d&&r.disabled,N&&r.sizeSmall,R&&r.clickable,g&&r.deletable),"aria-disabled":!!d||void 0,tabIndex:R||g?0:void 0,onClick:h,onKeyDown:function(e){v&&v(e),e.currentTarget===e.target&&-1!==[" ","Enter","Backspace","Delete","Escape"].indexOf(e.key)&&e.preventDefault()},onKeyUp:function(e){if(y&&y(e),e.currentTarget===e.target){var t=e.key;!g||"Backspace"!==t&&"Delete"!==t?"Escape"===t&&k.current&&k.current.blur():g(e)}},ref:S},P,C),I||O,m.createElement("span",{className:Dc(r.label,N&&r.labelSmall)},f),D)}));Gc((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=wi(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:xi(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:xi(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:xi(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:xi(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:xi(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:xi(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:wi(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:wi(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:wi(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{display:"flex",alignItems:"center",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:wi(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:wi(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:wi(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:wi(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:wi(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(Ep);var Cp=44;function kp(e){var t,n,r;return t=e,n=0,r=1,e=(Math.min(Math.max(n,t),r)-n)/(r-n),e=(e-=1)*e*e+1}var Sp=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.disableShrink,s=void 0!==a&&a,l=e.size,c=void 0===l?40:l,u=e.style,d=e.thickness,p=void 0===d?3.6:d,f=e.value,h=void 0===f?0:f,g=e.variant,v=void 0===g?"indeterminate":g,y=Ri(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),b={},x={},w={};if("determinate"===v||"static"===v){var E=2*Math.PI*((Cp-p)/2);b.strokeDasharray=E.toFixed(3),w["aria-valuenow"]=Math.round(h),"static"===v?(b.strokeDashoffset="".concat(((100-h)/100*E).toFixed(3),"px"),x.transform="rotate(-90deg)"):(b.strokeDashoffset="".concat((function(e){return e*e}((100-h)/100)*E).toFixed(3),"px"),x.transform="rotate(".concat((270*kp(h/70)).toFixed(3),"deg)"))}return m.createElement("div",Si({className:Dc(n.root,r,"inherit"!==i&&n["color".concat(Zc(i))],{indeterminate:n.indeterminate,static:n.static}[v]),style:Si({width:c,height:c},x,{},u),ref:t,role:"progressbar"},w,y),m.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(Cp," ").concat(Cp)},m.createElement("circle",{className:Dc(n.circle,s&&n.circleDisableShrink,{indeterminate:n.circleIndeterminate,static:n.circleStatic}[v]),style:b,cx:Cp,cy:Cp,r:(Cp-p)/2,fill:"none",strokeWidth:p})))}));function Tp(e){return e&&e.ownerDocument||document}function Rp(e){return e.substring(2).toLowerCase()}Gc((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},"@keyframes circular-rotate":{"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(Sp);var Np=m.forwardRef((function(e,t){var n=e.children,r=e.mouseEvent,o=void 0===r?"onClick":r,i=e.touchEvent,a=void 0===i?"onTouchEnd":i,s=e.onClickAway,l=m.useRef(!1),c=m.useRef(null),u=m.useRef(!1);m.useEffect((function(){return u.current=!0,function(){u.current=!1}}),[]);var d=Du(c,t),p=m.useCallback((function(e){Pu(d,b.findDOMNode(e))}),[d]),f=Du(n.ref,p),h=Hu((function(e){if(!e.defaultPrevented&&u.current)if(l.current)l.current=!1;else if(c.current){var t=Tp(c.current);t.documentElement&&t.documentElement.contains(e.target)&&!c.current.contains(e.target)&&s(e)}})),g=m.useCallback((function(){l.current=!0}),[]);return m.useEffect((function(){if(!1!==a){var e=Rp(a);return document.addEventListener(e,h),document.addEventListener("touchmove",g),function(){document.removeEventListener(e,h),document.removeEventListener("touchmove",g)}}}),[h,g,a]),m.useEffect((function(){if(!1!==o){var e=Rp(o);return document.addEventListener(e,h),function(){document.removeEventListener(e,h)}}}),[h,o]),m.createElement(m.Fragment,null,m.cloneElement(n,{ref:f}))})),Mp=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.collapsedHeight,a=void 0===i?"0px":i,s=e.component,l=void 0===s?"div":s,c=e.in,u=e.onEnter,d=e.onEntered,p=e.onEntering,f=e.onExit,h=e.onExiting,g=e.style,v=e.timeout,y=void 0===v?ga.standard:v,b=Ri(e,["children","classes","className","collapsedHeight","component","in","onEnter","onEntered","onEntering","onExit","onExiting","style","timeout"]),x=Xc(),w=m.useRef(),E=m.useRef(null),C=m.useRef();m.useEffect((function(){return function(){clearTimeout(w.current)}}),[]);return m.createElement(uu,Si({in:c,onEnter:function(e,t){e.style.height=a,u&&u(e,t)},onEntered:function(e,t){e.style.height="auto",d&&d(e,t)},onEntering:function(e,t){var n=E.current?E.current.clientHeight:0,r=Mu({style:g,timeout:y},{mode:"enter"}).duration;if("auto"===y){var o=x.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),C.current=o}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),p&&p(e,t)},onExit:function(e){var t=E.current?E.current.clientHeight:0;e.style.height="".concat(t,"px"),f&&f(e)},onExiting:function(e){var t=E.current?E.current.clientHeight:0,n=Mu({style:g,timeout:y},{mode:"exit"}).duration;if("auto"===y){var r=x.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),C.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=a,h&&h(e)},addEndListener:function(e,t){"auto"===y&&(w.current=setTimeout(t,C.current||0))},timeout:"auto"===y?null:y},b),(function(e,i){return m.createElement(l,Si({className:Dc(r.container,o,{entered:r.entered,exited:!c&&"0px"===a&&r.hidden}[e]),style:Si({minHeight:a},g),ref:t},i),m.createElement("div",{className:r.wrapper,ref:E},m.createElement("div",{className:r.wrapperInner},n)))}))}));Mp.muiSupportAuto=!0;var Pp=Gc((function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(Mp),Dp=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.fixed,s=void 0!==a&&a,l=e.maxWidth,c=void 0===l?"lg":l,u=Ri(e,["classes","className","component","fixed","maxWidth"]);return m.createElement(i,Si({className:Dc(n.root,r,s&&n.fixed,!1!==c&&n["maxWidth".concat(Zc(String(c)))]),ref:t},u))}));Gc((function(e){var t;return{root:(t={width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},ki(t,e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),ki(t,e.breakpoints.up("md"),{paddingLeft:e.spacing(4),paddingRight:e.spacing(4)}),t),fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:ki({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:ki({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:ki({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:ki({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:ki({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(Dp),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nc(e,Si({defaultTheme:Kc},t))}((function(e){return{"@global":{html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:"bolder"},body:Si({margin:0,color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white},"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"});var Lp="undefined"!=typeof window?m.useLayoutEffect:m.useEffect,Ip=m.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=m.useState(null),l=s[0],c=s[1],u=Du(n.ref,t);return Lp((function(){i||c(function(e){return e="function"==typeof e?e():e,b.findDOMNode(e)}(r)||document.body)}),[r,i]),Lp((function(){if(l&&!i)return Pu(t,l),function(){Pu(t,null)}}),[t,l,i]),Lp((function(){a&&(l||i)&&a()}),[a,l,i]),i?(m.Children.only(n),m.cloneElement(n,{ref:u})):l?b.createPortal(n,l):l}));function Op(){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),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function Ap(){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}function qp(e){return Tp(e).defaultView||window}function zp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Fp(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Wp(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(dl(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&zp(e,o)}))}function Hp(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function $p(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){var a=function(e){var t=Tp(e);return t.body===e?qp(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i),s=i.parentElement,l="HTML"===s.nodeName?s:i;if(r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden",a){var c=Ap();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(Fp(i)+c,"px"),n=Tp(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(Fp(e)+c,"px")}))}}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[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 Bp=function(){function e(){Mc(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&&zp(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);Wp(t,e.mountNode,e.modalRef,r,!0);var o=Hp(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Hp(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=$p(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Hp(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&&zp(e.modalRef,!0),Wp(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&zp(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function jp(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=m.useRef(),p=m.useRef(null),f=m.useRef(null),h=m.useRef(),g=m.useRef(null),v=m.useCallback((function(e){g.current=b.findDOMNode(e)}),[]),y=Du(t.ref,v);return m.useMemo((function(){u&&"undefined"!=typeof window&&(h.current=l().activeElement)}),[u]),m.useEffect((function(){if(u){var e=Tp(g.current);r||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){i||!c()||d.current?d.current=!1:g.current&&!g.current.contains(e.activeElement)&&g.current.focus()},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===g.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(h.current&&h.current.focus&&h.current.focus(),h.current=null)}}}),[r,i,s,c,u]),m.createElement(m.Fragment,null,m.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),m.cloneElement(t,{ref:y}),m.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var Vp={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},Up=m.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=Ri(e,["invisible","open"]);return o?m.createElement("div",Si({"aria-hidden":!0,ref:t},i,{style:Si({},Vp.root,{},r?Vp.invisible:{},{},i.style)})):null}));var _p=new Bp,Yp=m.forwardRef((function(e,t){var n=fc(),r=ka({name:"MuiModal",props:Si({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Up:o,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,f=r.disableBackdropClick,h=void 0!==f&&f,g=r.disableEnforceFocus,v=void 0!==g&&g,y=r.disableEscapeKeyDown,x=void 0!==y&&y,w=r.disablePortal,E=void 0!==w&&w,C=r.disableRestoreFocus,k=void 0!==C&&C,S=r.disableScrollLock,T=void 0!==S&&S,R=r.hideBackdrop,N=void 0!==R&&R,M=r.keepMounted,P=void 0!==M&&M,D=r.manager,L=void 0===D?_p:D,I=r.onBackdropClick,O=r.onClose,A=r.onEscapeKeyDown,q=r.onRendered,z=r.open,F=Ri(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),W=m.useState(!0),H=W[0],$=W[1],B=m.useRef({}),j=m.useRef(null),V=m.useRef(null),U=Du(V,t),_=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return Tp(j.current)},K=function(){return B.current.modalRef=V.current,B.current.mountNode=j.current,B.current},X=function(){L.mount(K(),{disableScrollLock:T}),V.current.scrollTop=0},G=Hu((function(){var e=function(e){return e="function"==typeof e?e():e,b.findDOMNode(e)}(u)||Y().body;L.add(K(),e),V.current&&X()})),Z=m.useCallback((function(){return L.isTopModal(K())}),[L]),J=Hu((function(e){j.current=e,e&&(q&&q(),z&&Z()?X():zp(V.current,!0))})),Q=m.useCallback((function(){L.remove(K())}),[L]);if(m.useEffect((function(){return function(){Q()}}),[Q]),m.useEffect((function(){z?G():_&&c||Q()}),[z,Q,_,c,G]),!P&&!z&&(!_||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:ba}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),_&&(te.onEnter=Op((function(){$(!1)}),s.props.onEnter),te.onExited=Op((function(){$(!0),c&&Q()}),s.props.onExited)),m.createElement(Ip,{ref:J,container:u,disablePortal:E},m.createElement("div",Si({ref:U,onKeyDown:function(e){"Escape"===e.key&&Z()&&(e.stopPropagation(),A&&A(e),!x&&O&&O(e,"escapeKeyDown"))},role:"presentation"},F,{style:Si({},ee.root,{},!z&&H?ee.hidden:{},{},F.style)}),N?null:m.createElement(i,Si({open:z,onClick:function(e){e.target===e.currentTarget&&(I&&I(e),!h&&O&&O(e,"backdropClick"))}},a)),m.createElement(jp,{disableEnforceFocus:v,disableAutoFocus:p,disableRestoreFocus:k,getDoc:Y,isEnabled:Z,open:z},m.cloneElement(s,te))))})),Kp={enter:ga.enteringScreen,exit:ga.leavingScreen},Xp=m.forwardRef((function(e,t){var n=e.BackdropProps,r=e.children,o=e.classes,i=e.className,a=e.disableBackdropClick,s=void 0!==a&&a,l=e.disableEscapeKeyDown,c=void 0!==l&&l,u=e.fullScreen,d=void 0!==u&&u,p=e.fullWidth,f=void 0!==p&&p,h=e.maxWidth,g=void 0===h?"sm":h,v=e.onBackdropClick,y=e.onClose,b=e.onEnter,x=e.onEntered,w=e.onEntering,E=e.onEscapeKeyDown,C=e.onExit,k=e.onExited,S=e.onExiting,T=e.open,R=e.PaperComponent,N=void 0===R?Qc:R,M=e.PaperProps,P=void 0===M?{}:M,D=e.scroll,L=void 0===D?"paper":D,I=e.TransitionComponent,O=void 0===I?Ou:I,A=e.transitionDuration,q=void 0===A?Kp:A,z=e.TransitionProps,F=e["aria-describedby"],W=e["aria-labelledby"],H=Ri(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),$=m.useRef();return m.createElement(Yp,Si({className:Dc(o.root,i),BackdropComponent:qu,BackdropProps:Si({transitionDuration:q},n),closeAfterTransition:!0,disableBackdropClick:s,disableEscapeKeyDown:c,onEscapeKeyDown:E,onClose:y,open:T,ref:t},H),m.createElement(O,Si({appear:!0,in:T,timeout:q,onEnter:b,onEntering:w,onEntered:x,onExit:C,onExiting:S,onExited:k,role:"none presentation"},z),m.createElement("div",{className:Dc(o.container,o["scroll".concat(Zc(L))]),onClick:function(e){e.target===e.currentTarget&&e.target===$.current&&($.current=null,v&&v(e),!s&&y&&y(e,"backdropClick"))},onMouseDown:function(e){$.current=e.target}},m.createElement(N,Si({elevation:24,role:"dialog","aria-describedby":F,"aria-labelledby":W},P,{className:Dc(o.paper,o["paperScroll".concat(Zc(L))],o["paperWidth".concat(Zc(String(g)))],P.className,d&&o.paperFullScreen,f&&o.paperFullWidth)}),r))))}));Gc((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":ki({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":ki({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":ki({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":ki({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":ki({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(Xp);var Gp=m.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,o=e.classes,i=e.className,a=Ri(e,["disableSpacing","classes","className"]);return m.createElement("div",Si({className:Dc(o.root,i,!r&&o.spacing),ref:t},a))}));Gc({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiDialogActions"})(Gp);var Zp=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.dividers,i=void 0!==o&&o,a=Ri(e,["classes","className","dividers"]);return m.createElement("div",Si({className:Dc(n.root,r,i&&n.dividers),ref:t},a))}));Gc((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(Zp);var Jp=m.forwardRef((function(e,t){return m.createElement(jd,Si({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));Gc({root:{marginBottom:12}},{name:"MuiDialogContentText"})(Jp);var Qp=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=Ri(e,["children","classes","className","disableTypography"]);return m.createElement("div",Si({className:Dc(r.root,o),ref:t},s),a?n:m.createElement(jd,{component:"h2",variant:"h6"},n))}));Gc({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(Qp);var ef=m.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.light,c=void 0!==l&&l,u=e.orientation,d=void 0===u?"horizontal":u,p=e.role,f=void 0===p?"hr"!==s?"separator":void 0:p,h=e.variant,g=void 0===h?"fullWidth":h,v=Ri(e,["absolute","classes","className","component","light","orientation","role","variant"]);return m.createElement(s,Si({className:Dc(o.root,i,"fullWidth"!==g&&o[g],r&&o.absolute,c&&o.light,{vertical:o.vertical}[d]),role:f,ref:t},v))}));function tf(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,s=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}function nf(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(-").concat(r.left-i,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(-").concat(r.top-a,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}Gc((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:wi(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1}}}),{name:"MuiDivider"})(ef);var rf={enter:ga.enteringScreen,exit:ga.leavingScreen},of=m.forwardRef((function(e,t){var n=e.children,r=e.direction,o=void 0===r?"down":r,i=e.in,a=e.onEnter,s=e.onEntering,l=e.onExit,c=e.onExited,u=e.style,d=e.timeout,p=void 0===d?rf:d,f=Ri(e,["children","direction","in","onEnter","onEntering","onExit","onExited","style","timeout"]),h=Xc(),g=m.useRef(null),v=m.useCallback((function(e){g.current=b.findDOMNode(e)}),[]),y=Du(n.ref,v),x=Du(y,t),w=m.useCallback((function(){g.current&&nf(o,g.current)}),[o]);return m.useEffect((function(){if(!i&&"down"!==o&&"right"!==o){var e=tf((function(){g.current&&nf(o,g.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[o,i]),m.useEffect((function(){i||w()}),[i,w]),m.createElement(uu,Si({onEnter:function(e,t){var n=g.current;nf(o,n),Nu(n),a&&a(n,t)},onEntering:function(e,t){var n=g.current,r=Mu({timeout:p,style:u},{mode:"enter"});n.style.webkitTransition=h.transitions.create("-webkit-transform",Si({},r,{easing:h.transitions.easing.easeOut})),n.style.transition=h.transitions.create("transform",Si({},r,{easing:h.transitions.easing.easeOut})),n.style.webkitTransform="none",n.style.transform="none",s&&s(n,t)},onExit:function(){var e=g.current,t=Mu({timeout:p,style:u},{mode:"exit"});e.style.webkitTransition=h.transitions.create("-webkit-transform",Si({},t,{easing:h.transitions.easing.sharp})),e.style.transition=h.transitions.create("transform",Si({},t,{easing:h.transitions.easing.sharp})),nf(o,e),l&&l(e)},onExited:function(){var e=g.current;e.style.webkitTransition="",e.style.transition="",c&&c(e)},appear:!0,in:i,timeout:p},f),(function(e,t){return m.cloneElement(n,Si({ref:x,style:Si({visibility:"exited"!==e||i?void 0:"hidden"},u,{},n.props.style)},t))}))})),af={left:"right",right:"left",top:"down",bottom:"up"};function sf(e){return-1!==["left","right"].indexOf(e)}function lf(e,t){return"rtl"===e.direction&&sf(t)?af[t]:t}var cf={enter:ga.enteringScreen,exit:ga.leavingScreen},uf=m.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,o=e.BackdropProps,i=e.children,a=e.classes,s=e.className,l=e.elevation,c=void 0===l?16:l,u=e.ModalProps,d=(u=void 0===u?{}:u).BackdropProps,p=Ri(u,["BackdropProps"]),f=e.onClose,h=e.open,g=void 0!==h&&h,v=e.PaperProps,y=e.SlideProps,b=e.transitionDuration,x=void 0===b?cf:b,w=e.variant,E=void 0===w?"temporary":w,C=Ri(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","transitionDuration","variant"]),k=Xc(),S=m.useRef(!1);m.useEffect((function(){S.current=!0}),[]);var T=lf(k,r),R=m.createElement(Qc,Si({elevation:"temporary"===E?c:0,square:!0,className:Dc(a.paper,a["paperAnchor".concat(Zc(T))],"temporary"!==E&&a["paperAnchorDocked".concat(Zc(T))])},v),i);if("permanent"===E)return m.createElement("div",Si({className:Dc(a.root,a.docked,s),ref:t},C),R);var N=m.createElement(of,Si({in:g,direction:af[T],timeout:x,appear:S.current},y),R);return"persistent"===E?m.createElement("div",Si({className:Dc(a.root,a.docked,s),ref:t},C),N):m.createElement(Yp,Si({BackdropProps:Si({},o,{},d,{transitionDuration:x}),BackdropComponent:qu,className:Dc(a.root,a.modal,s),open:g,onClose:f,ref:t},C,p),N)})),df=Gc((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(uf);var pf=m.createContext({}),ff=m.forwardRef((function(e,t){var n,r=e.children,o=e.classes,i=e.className,a=e.defaultExpanded,s=void 0!==a&&a,l=e.disabled,c=void 0!==l&&l,u=e.expanded,d=e.onChange,p=e.square,f=void 0!==p&&p,h=e.TransitionComponent,g=void 0===h?Pp:h,v=e.TransitionProps,y=Ri(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),b=m.useRef(null!=u).current,x=m.useState(s),w=x[0],E=x[1],C=b?u:w,k=m.useCallback((function(e){b||E(!C),d&&d(e,!C)}),[C,b,d]),S=m.Children.toArray(r),T=Md(n=S)||ul(n)||Pd(),R=T[0],N=T.slice(1),M=m.useMemo((function(){return{expanded:C,disabled:c,toggle:k}}),[C,c,k]);return m.createElement(Qc,Si({className:Dc(o.root,i,C&&o.expanded,c&&o.disabled,!f&&o.rounded),ref:t,square:f},y),m.createElement(pf.Provider,{value:M},R),m.createElement(g,Si({in:C,timeout:"auto"},v),m.createElement("div",{"aria-labelledby":R.props.id,id:R.props["aria-controls"],role:"region"},N)))}));Gc((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiExpansionPanel"})(ff);var hf=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disableSpacing,i=void 0!==o&&o,a=Ri(e,["classes","className","disableSpacing"]);return m.createElement("div",Si({className:Dc(n.root,r,!i&&n.spacing),ref:t},a))}));Gc({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiExpansionPanelActions"})(hf);var mf=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Ri(e,["classes","className"]);return m.createElement("div",Si({className:Dc(n.root,r),ref:t},o))}));Gc({root:{display:"flex",padding:"8px 24px 24px"}},{name:"MuiExpansionPanelDetails"})(mf);var gf=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.expandIcon,a=e.IconButtonProps,s=e.onBlur,l=e.onClick,c=e.onFocusVisible,u=Ri(e,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),d=m.useState(!1),p=d[0],f=d[1],h=m.useContext(pf),g=h.disabled,v=void 0!==g&&g,y=h.expanded,b=h.toggle;return m.createElement(id,Si({focusRipple:!1,disableRipple:!0,disabled:v,component:"div","aria-expanded":y,className:Dc(r.root,o,v&&r.disabled,y&&r.expanded,p&&r.focused),onFocusVisible:function(e){f(!0),c&&c(e)},onBlur:function(e){f(!1),s&&s(e)},onClick:function(e){b&&b(e),l&&l(e)},ref:t},u),m.createElement("div",{className:Dc(r.content,y&&r.expanded)},n),i&&m.createElement(dp,Si({className:Dc(r.expandIcon,y&&r.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},a),i))}));Gc((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:"0 24px 0 24px","&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:e.palette.grey[300]},"&$disabled":{opacity:.38}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiExpansionPanelSummary"})(gf);var vf=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableFocusRipple,p=void 0!==d&&d,f=e.focusVisibleClassName,h=e.size,g=void 0===h?"large":h,v=e.variant,y=void 0===v?"round":v,b=Ri(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return m.createElement(id,Si({className:Dc(r.root,o,"round"!==y&&r.extended,"large"!==g&&r["size".concat(Zc(g))],u&&r.disabled,{primary:r.primary,secondary:r.secondary,inherit:r.colorInherit}[a]),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:Dc(r.focusVisible,f),ref:t},b),m.createElement("span",{className:r.label},n))}));function yf(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}function bf(e,t){return parseInt(e[t],10)||0}Gc((function(e){return{root:Si({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&$focusVisible":{boxShadow:e.shadows[6]},"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(vf);var xf="undefined"!=typeof window?m.useLayoutEffect:m.useEffect,wf={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Ef=m.forwardRef((function(e,t){var n=e.onChange,r=e.rows,o=e.rowsMax,i=e.style,a=e.value,s=Ri(e,["onChange","rows","rowsMax","style","value"]),l=m.useRef(null!=a).current,c=m.useRef(null),u=Du(t,c),d=m.useRef(null),p=m.useState({}),f=p[0],h=p[1],g=m.useCallback((function(){var t=c.current,n=window.getComputedStyle(t),i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x";var a=n["box-sizing"],s=bf(n,"padding-bottom")+bf(n,"padding-top"),l=bf(n,"border-bottom-width")+bf(n,"border-top-width"),u=i.scrollHeight-s;i.value="x";var p=i.scrollHeight-s,f=u;null!=r&&(f=Math.max(Number(r)*p,f)),null!=o&&(f=Math.min(Number(o)*p,f));var m=(f=Math.max(f,p))+("border-box"===a?s+l:0),g=Math.abs(f-u)<=1;h((function(e){return m>0&&Math.abs((e.outerHeightStyle||0)-m)>1||e.overflow!==g?{overflow:g,outerHeightStyle:m}:e}))}),[r,o,e.placeholder]);m.useEffect((function(){var e=tf((function(){g()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[g]),xf((function(){g()}));return m.createElement(m.Fragment,null,m.createElement("textarea",Si({value:a,onChange:function(e){l||g(),n&&n(e)},ref:u,rows:r||1,style:Si({height:f.outerHeightStyle,overflow:f.overflow?"hidden":null},i)},s)),m.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Si({},wf,{},i)}))}));function Cf(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function kf(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Cf(e.value)&&""!==e.value||t&&Cf(e.defaultValue)&&""!==e.defaultValue)}var Sf="undefined"==typeof window?m.useEffect:m.useLayoutEffect,Tf=m.forwardRef((function(e,t){var n=e["aria-describedby"],r=e.autoComplete,o=e.autoFocus,i=e.classes,a=e.className;e.color;var s=e.defaultValue,l=e.disabled,c=e.endAdornment;e.error;var u=e.fullWidth,d=void 0!==u&&u,p=e.id,f=e.inputComponent,h=void 0===f?"input":f,g=e.inputProps,v=void 0===g?{}:g,y=e.inputRef;e.margin;var b=e.multiline,x=void 0!==b&&b,w=e.name,E=e.onBlur,C=e.onChange,k=e.onClick,S=e.onFocus,T=e.onKeyDown,R=e.onKeyUp,N=e.placeholder,M=e.readOnly,P=e.renderSuffix,D=e.rows,L=e.rowsMax,I=e.select,O=void 0!==I&&I,A=e.startAdornment,q=e.type,z=void 0===q?"text":q,F=e.value,W=Ri(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","select","startAdornment","type","value"]),H=null!=v.value?v.value:F,$=m.useRef(null!=H).current,B=m.useRef(),j=m.useCallback((function(e){}),[]),V=Du(v.ref,j),U=Du(y,V),_=Du(B,U),Y=m.useState(!1),K=Y[0],X=Y[1],G=lp(),Z=yf({props:e,muiFormControl:G,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Z.focused=G?G.focused:K,m.useEffect((function(){!G&&l&&K&&(X(!1),E&&E())}),[G,l,K,E]);var J=G&&G.onFilled,Q=G&&G.onEmpty,ee=m.useCallback((function(e){kf(e)?J&&J():Q&&Q()}),[J,Q]);Sf((function(){$&&ee({value:H})}),[H,ee,$]);m.useEffect((function(){ee(B.current)}),[]);var te=h,ne=Si({},v,{ref:_});"string"!=typeof te?ne=Si({inputRef:_,type:z},ne,{ref:null}):x?D&&!L?te="textarea":(ne=Si({rows:D,rowsMax:L},ne),te=Ef):ne=Si({type:z},ne);return m.useEffect((function(){G&&G.setAdornedStart(Boolean(A))}),[G,A]),m.createElement("div",Si({className:Dc(i.root,i["color".concat(Zc(Z.color||"primary"))],a,Z.disabled&&i.disabled,Z.error&&i.error,d&&i.fullWidth,Z.focused&&i.focused,G&&i.formControl,x&&i.multiline,A&&i.adornedStart,c&&i.adornedEnd,{dense:i.marginDense}[Z.margin]),onClick:function(e){B.current&&e.currentTarget===e.target&&B.current.focus(),k&&k(e)},ref:t},W),A,m.createElement(sp.Provider,{value:null},m.createElement(te,Si({"aria-invalid":Z.error,"aria-describedby":n,autoComplete:r,autoFocus:o,defaultValue:s,disabled:Z.disabled,id:p,onAnimationStart:function(e){ee(-1!==e.animationName.indexOf("auto-fill-cancel")?B.current:{value:"x"})},name:w,placeholder:N,readOnly:M,required:Z.required,rows:D,value:H,onKeyDown:T,onKeyUp:R},ne,{className:Dc(i.input,v.className,Z.disabled&&i.disabled,x&&i.inputMultiline,O&&i.inputSelect,Z.hiddenLabel&&i.inputHiddenLabel,A&&i.inputAdornedStart,c&&i.inputAdornedEnd,{search:i.inputTypeSearch}[z],{dense:i.inputMarginDense}[Z.margin]),onBlur:function(e){E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):X(!1)},onChange:function(e){if(!$){var t=e.target||B.current;if(null==t)throw new TypeError("Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://material-ui.com/r/input-component-ref-interface for more info.");ee({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];v.onChange&&v.onChange.apply(v,[e].concat(r)),C&&C.apply(void 0,[e].concat(r))},onFocus:function(e){Z.disabled?e.stopPropagation():(S&&S(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):X(!0))}}))),c,P?P(Si({},Z,{startAdornment:A})):null)})),Rf=Gc((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{root:{fontFamily:e.typography.fontFamily,color:e.palette.text.primary,fontSize:e.typography.pxToRem(16),lineHeight:"1.1875em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}},formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1875em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"$auto-fill-cancel","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"$auto-fill"}},"@keyframes auto-fill":{from:{}},"@keyframes auto-fill-cancel":{from:{}},inputMarginDense:{paddingTop:3},inputSelect:{paddingRight:24},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(Tf),Nf=m.forwardRef((function(e,t){var n=e.disableUnderline,r=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,s=void 0===a?"input":a,l=e.multiline,c=void 0!==l&&l,u=e.type,d=void 0===u?"text":u,p=Ri(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return m.createElement(Rf,Si({classes:Si({},r,{root:Dc(r.root,!n&&r.underline),underline:null}),fullWidth:i,inputComponent:s,multiline:c,ref:t,type:d},p))}));Nf.muiName="Input";var Mf=Gc((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===e.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===e.palette.type?"#fff":null,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputSelect:{paddingRight:24},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(Nf);function Pf(e,t){return m.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var Df=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,s=e.disabled,l=void 0!==s&&s,c=e.error,u=void 0!==c&&c,d=e.fullWidth,p=void 0!==d&&d,f=e.hiddenLabel,h=void 0!==f&&f,g=e.margin,v=void 0===g?"none":g,y=e.color,b=void 0===y?"primary":y,x=e.required,w=void 0!==x&&x,E=e.variant,C=void 0===E?"standard":E,k=Ri(e,["children","classes","className","component","disabled","error","fullWidth","hiddenLabel","margin","color","required","variant"]),S=m.useState((function(){var e=!1;return n&&m.Children.forEach(n,(function(t){if(Pf(t,["Input","Select"])){var n=Pf(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),T=S[0],R=S[1],N=m.useState((function(){var e=!1;return n&&m.Children.forEach(n,(function(t){Pf(t,["Input","Select"])&&kf(t.props,!0)&&(e=!0)})),e})),M=N[0],P=N[1],D=m.useState(!1),L=D[0],I=D[1];l&&L&&I(!1);var O=m.useCallback((function(){P(!0)}),[]),A={adornedStart:T,setAdornedStart:R,color:b,disabled:l,error:u,filled:M,focused:L,hiddenLabel:h,margin:v,onBlur:function(){I(!1)},onEmpty:m.useCallback((function(){P(!1)}),[]),onFilled:O,onFocus:function(){I(!0)},registerEffect:undefined,required:w,variant:C};return m.createElement(sp.Provider,{value:A},m.createElement(a,Si({className:Dc(r.root,o,"none"!==v&&r["margin".concat(Zc(v))],p&&r.fullWidth),ref:t},k),n))})),Lf=Gc({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(Df),If=m.forwardRef((function(e,t){e.checked;var n=e.classes,r=e.className,o=e.control,i=e.disabled;e.inputRef;var a=e.label,s=e.labelPlacement,l=void 0===s?"end":s;e.name,e.onChange,e.value;var c=Ri(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),u=cp(),d=i;void 0===d&&void 0!==o.props.disabled&&(d=o.props.disabled),void 0===d&&u&&(d=u.disabled);var p={disabled:d};return["checked","name","onChange","value","inputRef"].forEach((function(t){void 0===o.props[t]&&void 0!==e[t]&&(p[t]=e[t])})),m.createElement("label",Si({className:Dc(n.root,r,"end"!==l&&n["labelPlacement".concat(Zc(l))],d&&n.disabled),ref:t},c),m.cloneElement(o,p),m.createElement(jd,{component:"span",className:Dc(n.label,d&&n.disabled)},a))}));Gc((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(If);var Of=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.row,i=void 0!==o&&o,a=Ri(e,["classes","className","row"]);return m.createElement("div",Si({className:Dc(n.root,r,i&&n.row),ref:t},a))})),Af=Gc({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(Of),qf=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"p":o;e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant;var a=Ri(e,["classes","className","component","disabled","error","filled","focused","margin","required","variant"]),s=yf({props:e,muiFormControl:cp(),states:["variant","margin","disabled","error","filled","focused","required"]});return m.createElement(i,Si({className:Dc(n.root,("filled"===s.variant||"outlined"===s.variant)&&n.contained,r,s.disabled&&n.disabled,s.error&&n.error,s.filled&&n.filled,s.focused&&n.focused,s.required&&n.required,{dense:n.marginDense}[s.margin]),ref:t},a))})),zf=Gc((function(e){return{root:Si({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:8,lineHeight:"1em",minHeight:"1em",margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{margin:"8px 14px 0"},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(qf),Ff=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className;e.color;var i=e.component,a=void 0===i?"label":i;e.disabled,e.error,e.filled,e.focused,e.required;var s=Ri(e,["children","classes","className","color","component","disabled","error","filled","focused","required"]),l=yf({props:e,muiFormControl:cp(),states:["color","required","focused","disabled","error","filled"]});return m.createElement(a,Si({className:Dc(r.root,r["color".concat(Zc(l.color||"primary"))],o,l.disabled&&r.disabled,l.error&&r.error,l.filled&&r.filled,l.focused&&r.focused,l.required&&r.required),ref:t},s),n,l.required&&m.createElement("span",{className:Dc(r.asterisk,l.error&&r.error)}," ","*"))})),Wf=Gc((function(e){return{root:Si({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(Ff),Hf=[0,1,2,3,4,5,6,7,8,9,10],$f=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Bf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var jf=m.forwardRef((function(e,t){var n=e.alignContent,r=void 0===n?"stretch":n,o=e.alignItems,i=void 0===o?"stretch":o,a=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,u=e.container,d=void 0!==u&&u,p=e.direction,f=void 0===p?"row":p,h=e.item,g=void 0!==h&&h,v=e.justify,y=void 0===v?"flex-start":v,b=e.lg,x=void 0!==b&&b,w=e.md,E=void 0!==w&&w,C=e.sm,k=void 0!==C&&C,S=e.spacing,T=void 0===S?0:S,R=e.wrap,N=void 0===R?"wrap":R,M=e.xl,P=void 0!==M&&M,D=e.xs,L=void 0!==D&&D,I=e.zeroMinWidth,O=void 0!==I&&I,A=Ri(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),q=Dc(a.root,s,d&&[a.container,0!==T&&a["spacing-xs-".concat(String(T))]],g&&a.item,O&&a.zeroMinWidth,"row"!==f&&a["direction-xs-".concat(String(f))],"wrap"!==N&&a["wrap-xs-".concat(String(N))],"stretch"!==i&&a["align-items-xs-".concat(String(i))],"stretch"!==r&&a["align-content-xs-".concat(String(r))],"flex-start"!==y&&a["justify-xs-".concat(String(y))],!1!==L&&a["grid-xs-".concat(String(L))],!1!==k&&a["grid-sm-".concat(String(k))],!1!==E&&a["grid-md-".concat(String(E))],!1!==x&&a["grid-lg-".concat(String(x))],!1!==P&&a["grid-xl-".concat(String(P))]);return m.createElement(c,Si({className:q,ref:t},A))}));Gc((function(e){return Si({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return Hf.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(Bf(o,2)),width:"calc(100% + ".concat(Bf(o),")"),"& > $item":{padding:Bf(o,2)}})})),n}(e,"xs"),{},e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};$f.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Si(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(jf);var Vf=m.forwardRef((function(e,t){var n=e.cellHeight,r=void 0===n?180:n,o=e.children,i=e.classes,a=e.className,s=e.cols,l=void 0===s?2:s,c=e.component,u=void 0===c?"ul":c,d=e.spacing,p=void 0===d?4:d,f=e.style,h=Ri(e,["cellHeight","children","classes","className","cols","component","spacing","style"]);return m.createElement(u,Si({className:Dc(i.root,a),ref:t,style:Si({margin:-p/2},f)},h),m.Children.map(o,(function(e){if(!m.isValidElement(e))return null;var t=e.props.cols||1,n=e.props.rows||1;return m.cloneElement(e,{style:Si({width:"".concat(100/l*t,"%"),height:"auto"===r?"auto":r*n+p,padding:p/2},e.props.style)})})))}));Gc({root:{display:"flex",flexWrap:"wrap",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"}},{name:"MuiGridList"})(Vf);var Uf=function(e,t){var n,r,o,i;e&&e.complete&&(e.width/e.height>e.parentElement.offsetWidth/e.parentElement.offsetHeight?((n=e.classList).remove.apply(n,dl(t.imgFullWidth.split(" "))),(r=e.classList).add.apply(r,dl(t.imgFullHeight.split(" ")))):((o=e.classList).remove.apply(o,dl(t.imgFullHeight.split(" "))),(i=e.classList).add.apply(i,dl(t.imgFullWidth.split(" ")))))};var _f=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className;e.cols;var i=e.component,a=void 0===i?"li":i;e.rows;var s=Ri(e,["children","classes","className","cols","component","rows"]),l=m.useRef(null);return m.useEffect((function(){!function(e,t){e&&(e.complete?Uf(e,t):e.addEventListener("load",(function(){Uf(e,t)})))}(l.current,r)})),m.useEffect((function(){var e=tf((function(){Uf(l.current,r)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[r]),m.createElement(a,Si({className:Dc(r.root,o),ref:t},s),m.createElement("div",{className:r.tile},m.Children.map(n,(function(e){return m.isValidElement(e)?"img"===e.type||Pf(e,["Image"])?m.cloneElement(e,{ref:l}):e:null}))))}));Gc({root:{boxSizing:"border-box",flexShrink:0},tile:{position:"relative",display:"block",height:"100%",overflow:"hidden"},imgFullHeight:{height:"100%",transform:"translateX(-50%)",position:"relative",left:"50%"},imgFullWidth:{width:"100%",position:"relative",transform:"translateY(-50%)",top:"50%"}},{name:"MuiGridListTile"})(_f);var Yf=m.forwardRef((function(e,t){var n=e.actionIcon,r=e.actionPosition,o=void 0===r?"right":r,i=e.classes,a=e.className,s=e.subtitle,l=e.title,c=e.titlePosition,u=void 0===c?"bottom":c,d=Ri(e,["actionIcon","actionPosition","classes","className","subtitle","title","titlePosition"]),p=n&&o;return m.createElement("div",Si({className:Dc(i.root,a,"top"===u?i.titlePositionTop:i.titlePositionBottom,s&&i.rootSubtitle),ref:t},d),m.createElement("div",{className:Dc(i.titleWrap,{left:i.titleWrapActionPosLeft,right:i.titleWrapActionPosRight}[p])},m.createElement("div",{className:i.title},l),s?m.createElement("div",{className:i.subtitle},s):null),n?m.createElement("div",{className:Dc(i.actionIcon,{left:i.actionIconActionPosLeft}[p])},n):null)}));function Kf(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}Gc((function(e){return{root:{position:"absolute",left:0,right:0,height:48,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily},titlePositionBottom:{bottom:0},titlePositionTop:{top:0},rootSubtitle:{height:68},titleWrap:{flexGrow:1,marginLeft:16,marginRight:16,color:e.palette.common.white,overflow:"hidden"},titleWrapActionPosLeft:{marginLeft:0},titleWrapActionPosRight:{marginRight:0},title:{fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},subtitle:{fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},actionIcon:{},actionIconActionPosLeft:{order:-1}}}),{name:"MuiGridListTileBar"})(Yf);var Xf={entering:{opacity:1,transform:Kf(1)},entered:{opacity:1,transform:"none"}},Gf=m.forwardRef((function(e,t){var n=e.children,r=e.in,o=e.onEnter,i=e.onExit,a=e.style,s=e.timeout,l=void 0===s?"auto":s,c=Ri(e,["children","in","onEnter","onExit","style","timeout"]),u=m.useRef(),d=m.useRef(),p=Du(n.ref,t),f=Xc();return m.useEffect((function(){return function(){clearTimeout(u.current)}}),[]),m.createElement(uu,Si({appear:!0,in:r,onEnter:function(e,t){Nu(e);var n,r=Mu({style:a,timeout:l},{mode:"enter"}),i=r.duration,s=r.delay;"auto"===l?(n=f.transitions.getAutoHeightDuration(e.clientHeight),d.current=n):n=i,e.style.transition=[f.transitions.create("opacity",{duration:n,delay:s}),f.transitions.create("transform",{duration:.666*n,delay:s})].join(","),o&&o(e,t)},onExit:function(e){var t,n=Mu({style:a,timeout:l},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===l?(t=f.transitions.getAutoHeightDuration(e.clientHeight),d.current=t):t=r,e.style.transition=[f.transitions.create("opacity",{duration:t,delay:o}),f.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Kf(.75),i&&i(e)},addEndListener:function(e,t){"auto"===l&&(u.current=setTimeout(t,d.current||0))},timeout:"auto"===l?null:l},c),(function(e,t){return m.cloneElement(n,Si({style:Si({opacity:0,transform:Kf(.75),visibility:"exited"!==e||r?void 0:"hidden"},Xf[e],{},a,{},n.props.style),ref:p},t))}))}));Gf.muiSupportAuto=!0;var Zf=!1;function Jf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=fc(),r=ka({theme:n,name:"MuiUseMediaQuery",props:{}}),o="function"==typeof e?e(n):e;o=o.replace(/^@media( ?)/m,"");var i="undefined"!=typeof window&&void 0!==window.matchMedia,a=Si({},r,{},t),s=a.defaultMatches,l=void 0!==s&&s,c=a.noSsr,u=void 0!==c&&c,d=a.ssrMatchMedia,p=void 0===d?null:d,f=m.useState((function(){return(Zf||u)&&i?window.matchMedia(o).matches:p?p(o).matches:l})),h=f[0],g=f[1];return m.useEffect((function(){var e=!0;if(Zf=!0,i){var t=window.matchMedia(o),n=function(){e&&g(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[o,i]),h}var Qf=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?ea.indexOf(e)<=ea.indexOf(t):ea.indexOf(e)<ea.indexOf(t)},eh=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?ea.indexOf(t)<=ea.indexOf(e):ea.indexOf(t)<ea.indexOf(e)},th="undefined"==typeof window?m.useEffect:m.useLayoutEffect;function nh(e){var t=e.children,n=e.only,r=e.width,o=Xc(),i=!0;if(n)if(Array.isArray(n))for(var a=0;a<n.length;a+=1){if(r===n[a]){i=!1;break}}else n&&r===n&&(i=!1);if(i)for(var s=0;s<o.breakpoints.keys.length;s+=1){var l=o.breakpoints.keys[s],c=e["".concat(l,"Up")],u=e["".concat(l,"Down")];if(c&&Qf(l,r)||u&&eh(l,r)){i=!1;break}}return i?t:null}nh.propTypes={children:ni.exports.node,className:ni.exports.string,implementation:ni.exports.oneOf(["js","css"]),initialWidth:ni.exports.oneOf(["xs","sm","md","lg","xl"]),lgDown:ni.exports.bool,lgUp:ni.exports.bool,mdDown:ni.exports.bool,mdUp:ni.exports.bool,only:ni.exports.oneOfType([ni.exports.oneOf(["xs","sm","md","lg","xl"]),ni.exports.arrayOf(ni.exports.oneOf(["xs","sm","md","lg","xl"]))]),smDown:ni.exports.bool,smUp:ni.exports.bool,width:ni.exports.string.isRequired,xlDown:ni.exports.bool,xlUp:ni.exports.bool,xsDown:ni.exports.bool,xsUp:ni.exports.bool},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,r=void 0!==n&&n,o=e.noSSR,i=void 0!==o&&o,a=e.initialWidth;function s(e){var n=Xc(),o=e.theme||n,s=ka({theme:o,name:"MuiWithWidth",props:Si({},e)}),l=s.initialWidth,c=s.width,u=Ri(s,["initialWidth","width"]),d=m.useState(!1),p=d[0],f=d[1];th((function(){f(!0)}),[]);var h=dl(o.breakpoints.keys).reverse().reduce((function(e,t){var n=Jf(o.breakpoints.up(t));return!e&&n?t:e}),null),g=Si({width:c||(p||i?h:void 0)||l||a},r?{theme:o}:{},{},u);return void 0===g.width?null:m.createElement(t,g)}return Vc(s,t),s}}()(nh);Gc((function(e){var t={display:"none"};return e.breakpoints.keys.reduce((function(n,r){return n["only".concat(Zc(r))]=ki({},e.breakpoints.only(r),t),n["".concat(r,"Up")]=ki({},e.breakpoints.up(r),t),n["".concat(r,"Down")]=ki({},e.breakpoints.down(r),t),n}),{})}),{name:"PrivateHiddenCss"})((function(e){var t=e.children,n=e.classes,r=e.className;e.lgDown,e.lgUp,e.mdDown,e.mdUp;var o=e.only;e.smDown,e.smUp,e.xlDown,e.xlUp,e.xsDown,e.xsUp,Ri(e,["children","classes","className","lgDown","lgUp","mdDown","mdUp","only","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);var i=Xc(),a=[];r&&a.push(r);for(var s=0;s<i.breakpoints.keys.length;s+=1){var l=i.breakpoints.keys[s],c=e["".concat(l,"Up")],u=e["".concat(l,"Down")];c&&a.push(n["".concat(l,"Up")]),u&&a.push(n["".concat(l,"Down")])}return o&&(Array.isArray(o)?o:[o]).forEach((function(e){a.push(n["only".concat(Zc(e))])})),m.createElement("div",{className:a.join(" ")},t)}));var rh=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"inherit":o,a=e.component,s=void 0===a?"span":a,l=e.fontSize,c=void 0===l?"default":l,u=Ri(e,["classes","className","color","component","fontSize"]);return m.createElement(s,Si({className:Dc("material-icons",n.root,r,"inherit"!==i&&n["color".concat(Zc(i))],"default"!==c&&n["fontSize".concat(Zc(c))]),"aria-hidden":!0,ref:t},u))}));rh.muiName="Icon",Gc((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(rh);var oh=m.forwardRef((function(e,t){var n=e.disableUnderline,r=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,s=void 0===a?"input":a,l=e.multiline,c=void 0!==l&&l,u=e.type,d=void 0===u?"text":u,p=Ri(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return m.createElement(Rf,Si({classes:Si({},r,{root:Dc(r.root,!n&&r.underline),underline:null}),fullWidth:i,inputComponent:s,multiline:c,ref:t,type:d},p))}));oh.muiName="Input";var ih=Gc((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(oh),ah=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,s=e.disablePointerEvents,l=void 0!==s&&s,c=e.disableTypography,u=void 0!==c&&c,d=e.position,p=e.variant,f=Ri(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),h=lp()||{},g=p;return p&&h.variant,h&&!g&&(g=h.variant),m.createElement(sp.Provider,{value:null},m.createElement(a,Si({className:Dc(r.root,o,l&&r.disablePointerEvents,h.hiddenLabel&&r.hiddenLabel,{filled:r.filled}[g],{start:r.positionStart,end:r.positionEnd}[d],{dense:r.marginDense}[h.margin]),ref:t},f),"string"!=typeof n||u?n:m.createElement(jd,{color:"textSecondary"},n)))}));Gc({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(ah);var sh=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disableAnimation,i=void 0!==o&&o;e.margin;var a=e.shrink;e.variant;var s=Ri(e,["classes","className","disableAnimation","margin","shrink","variant"]),l=cp(),c=a;void 0===c&&l&&(c=l.filled||l.focused||l.adornedStart);var u=yf({props:e,muiFormControl:l,states:["margin","variant"]});return m.createElement(Wf,Si({"data-shrink":c,className:Dc(n.root,r,l&&n.formControl,!i&&n.animated,c&&n.shrink,{dense:n.marginDense}[u.margin],{filled:n.filled,outlined:n.outlined}[u.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},s))})),lh=Gc((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(sh),ch=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.value,s=e.valueBuffer,l=e.variant,c=void 0===l?"indeterminate":l,u=Ri(e,["classes","className","color","value","valueBuffer","variant"]),d=Xc(),p={},f={bar1:{},bar2:{}};if(("determinate"===c||"buffer"===c)&&void 0!==a){p["aria-valuenow"]=Math.round(a);var h=a-100;"rtl"===d.direction&&(h=-h),f.bar1.transform="translateX(".concat(h,"%)")}if("buffer"===c&&void 0!==s){var g=(s||0)-100;"rtl"===d.direction&&(g=-g),f.bar2.transform="translateX(".concat(g,"%)")}return m.createElement("div",Si({className:Dc(n.root,n["color".concat(Zc(i))],r,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[c]),role:"progressbar"},p,{ref:t},u),"buffer"===c?m.createElement("div",{className:Dc(n.dashed,n["dashedColor".concat(Zc(i))])}):null,m.createElement("div",{className:Dc(n.bar,n["barColor".concat(Zc(i))],("indeterminate"===c||"query"===c)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[c]),style:f.bar1}),"determinate"===c?null:m.createElement("div",{className:Dc(n.bar,("indeterminate"===c||"query"===c)&&n.bar2Indeterminate,"buffer"===c?[n["color".concat(Zc(i))],n.bar2Buffer]:n["barColor".concat(Zc(i))]),style:f.bar2}))})),uh=Gc((function(e){var t=function(t){return"light"===e.palette.type?Ci(t,.62):Ei(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0px -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0px -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite",animationDelay:"1.15s"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0px -23px"},"50%":{opacity:0,backgroundPosition:"0px -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(ch),dh=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.component,s=void 0===a?"a":a,l=e.onBlur,c=e.onFocus,u=e.TypographyClasses,d=e.underline,p=void 0===d?"hover":d,f=e.variant,h=void 0===f?"inherit":f,g=Ri(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),v=Ju(),y=v.isFocusVisible,b=v.onBlurVisible,x=v.ref,w=m.useState(!1),E=w[0],C=w[1],k=Du(t,x);return m.createElement(jd,Si({className:Dc(n.root,n["underline".concat(Zc(p))],r,E&&n.focusVisible,{button:n.button}[s]),classes:u,color:i,component:s,onBlur:function(e){E&&(b(),C(!1)),l&&l(e)},onFocus:function(e){y(e)&&C(!0),c&&c(e)},ref:k,variant:h},g))}));Gc({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{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","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(dh);var ph=m.createContext({}),fh=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,p=Ri(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=m.useMemo((function(){return{dense:l}}),[l]);return m.createElement(ph.Provider,{value:f},m.createElement(a,Si({className:Dc(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),hh=Gc({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(fh),mh="undefined"==typeof window?m.useEffect:m.useLayoutEffect,gh=m.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,h=e.ContainerProps,g=(h=void 0===h?{}:h).className,v=Ri(h,["className"]),y=e.dense,x=e.disabled,w=void 0!==x&&x,E=e.disableGutters,C=void 0!==E&&E,k=e.divider,S=void 0!==k&&k,T=e.focusVisibleClassName,R=e.selected,N=void 0!==R&&R,M=Ri(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),P=m.useContext(ph),D={dense:y||P.dense||!1,alignItems:r},L=m.useRef(null);mh((function(){i&&L.current&&L.current.focus()}),[i]);var I=m.Children.toArray(l),O=I.length&&Pf(I[I.length-1],["ListItemSecondaryAction"]),A=Du(m.useCallback((function(e){L.current=b.findDOMNode(e)}),[]),t),q=Si({className:Dc(c.root,u,D.dense&&c.dense,!C&&c.gutters,S&&c.divider,w&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,O&&c.secondaryAction,N&&c.selected),disabled:w},M),z=d||"li";return s&&(q.component=d||"div",q.focusVisibleClassName=Dc(c.focusVisible,T),z=id),O?(z=q.component||d?z:"div","li"===f&&("li"===z?z="div":"li"===q.component&&(q.component="div")),m.createElement(ph.Provider,{value:D},m.createElement(f,Si({className:Dc(c.container,g),ref:A},v),m.createElement(z,q,I),I.pop()))):m.createElement(ph.Provider,{value:D},m.createElement(z,Si({ref:A},q),I))})),vh=Gc((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"})(gh),yh=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Ri(e,["classes","className"]),i=m.useContext(ph);return m.createElement("div",Si({className:Dc(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))}));Gc({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(yh);var bh=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Ri(e,["classes","className"]),i=m.useContext(ph);return m.createElement("div",Si({className:Dc(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),xh=Gc((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(bh),wh=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Ri(e,["classes","className"]);return m.createElement("div",Si({className:Dc(n.root,r),ref:t},o))}));wh.muiName="ListItemSecondaryAction",Gc({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(wh);var Eh=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,f=Ri(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),h=m.useContext(ph).dense,g=null!=c?c:n;null==g||g.type===jd||a||(g=m.createElement(jd,Si({variant:h?"body2":"body1",className:r.primary,component:"span"},u),g));var v=d;return null==v||v.type===jd||a||(v=m.createElement(jd,Si({variant:"body2",className:r.secondary,color:"textSecondary"},p),v)),m.createElement("div",Si({className:Dc(r.root,o,h&&r.dense,l&&r.inset,g&&v&&r.multiline),ref:t},f),g,v)})),Ch=Gc({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Eh),kh=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"default":o,a=e.component,s=void 0===a?"li":a,l=e.disableGutters,c=void 0!==l&&l,u=e.disableSticky,d=void 0!==u&&u,p=e.inset,f=void 0!==p&&p,h=Ri(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return m.createElement(s,Si({className:Dc(n.root,r,"default"!==i&&n["color".concat(Zc(i))],f&&n.inset,!d&&n.sticky,!c&&n.gutters),ref:t},h))}));function Sh(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Th(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Rh(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Nh(e){return"function"==typeof e?e():e}Gc((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(kh);var Mh=m.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,p=e.container,f=e.elevation,h=void 0===f?8:f,g=e.getContentAnchorEl,v=e.marginThreshold,y=void 0===v?16:v,x=e.onEnter,w=e.onEntered,E=e.onEntering,C=e.onExit,k=e.onExited,S=e.onExiting,T=e.open,R=e.PaperProps,N=void 0===R?{}:R,M=e.transformOrigin,P=void 0===M?{vertical:"top",horizontal:"left"}:M,D=e.TransitionComponent,L=void 0===D?Gf:D,I=e.transitionDuration,O=void 0===I?"auto":I,A=e.TransitionProps,q=void 0===A?{}:A,z=Ri(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"]),F=m.useRef(),W=m.useCallback((function(e){if("anchorPosition"===l)return a;var t=Nh(r),n=(t instanceof qp(t).Element?t:Tp(F.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Sh(n,o),left:n.left+Th(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),H=m.useCallback((function(e){var t=0;if(g&&"anchorEl"===l){var n=g(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}),[i.vertical,l,g]),$=m.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Sh(e,P.vertical)+t,horizontal:Th(e,P.horizontal)}}),[P.horizontal,P.vertical]),B=m.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},o=$(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Rh(o)};var i=W(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=qp(Nh(r)),p=d.innerHeight-y,f=d.innerWidth-y;if(a<y){var h=a-y;a-=h,o.vertical+=h}else if(c>p){var m=c-p;a-=m,o.vertical+=m}if(s<y){var g=s-y;s-=g,o.horizontal+=g}else if(u>f){var v=u-f;s-=v,o.horizontal+=v}return{top:"".concat(a,"px"),left:"".concat(s,"px"),transformOrigin:Rh(o)}}),[r,l,W,H,$,y]),j=m.useCallback((function(e){var t=B(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[B]),V=m.useCallback((function(e){F.current=b.findDOMNode(e)}),[]),U=m.useMemo((function(){if(T)return tf((function(){j(F.current)}))}),[T,j]);m.useImperativeHandle(n,(function(){return T?{updatePosition:U}:null}),[T,U]),m.useEffect((function(){if(U)return window.addEventListener("resize",U),function(){window.removeEventListener("resize",U),U.clear()}}),[U]);var _=O;"auto"!==O||L.muiSupportAuto||(_=void 0);var Y=p||(r?Tp(Nh(r)).body:void 0);return m.createElement(Yp,Si({container:Y,open:T,ref:t,BackdropProps:{invisible:!0},className:Dc(u.root,d)},z),m.createElement(L,Si({appear:!0,in:T,onEnter:x,onEntered:w,onExit:C,onExited:k,onExiting:S,timeout:_},q,{onEntering:Op((function(e,t){E&&E(e,t),j(e)}),q.onEntering)}),m.createElement(Qc,Si({elevation:h,ref:V},N,{className:Dc(u.paper,N.className)}),c)))})),Ph=Gc({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Mh);function Dh(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Lh(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ih(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),void 0!==n&&(0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join(""))))}function Oh(e,t,n,r,o){for(var i=!1,a=r(e,t,!!t&&n);a;){if(a===e.firstChild){if(i)return!1;i=!0}if(a.hasAttribute("tabindex")&&!a.disabled&&"true"!==a.getAttribute("aria-disabled")&&Ih(a,o))return a.focus(),!0;a=r(e,a,n)}return!1}var Ah="undefined"==typeof window?m.useEffect:m.useLayoutEffect,qh=m.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,o=void 0!==r&&r,i=e.autoFocusItem,a=void 0!==i&&i,s=e.children,l=e.className,c=e.onKeyDown,u=e.disableListWrap,d=void 0!==u&&u,p=e.variant,f=void 0===p?"selectedMenu":p,h=Ri(e,["actions","autoFocus","autoFocusItem","children","className","onKeyDown","disableListWrap","variant"]),g=m.useRef(null),v=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ah((function(){o&&g.current.focus()}),[o]),m.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&n){var r="".concat(Ap(),"px");g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,g.current.style.width="calc(100% + ".concat(r,")")}return g.current}}}),[]);var y=Du(m.useCallback((function(e){g.current=b.findDOMNode(e)}),[]),t),x=-1;m.Children.forEach(s,(function(e,t){m.isValidElement(e)&&(e.props.disabled||("selectedMenu"===f&&e.props.selected||-1===x)&&(x=t))}));var w=m.Children.map(s,(function(e,t){if(t===x){var n={};if(a&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===f&&(n.tabIndex=0),null!==n)return m.cloneElement(e,n)}return e}));return m.createElement(hh,Si({role:"menu",ref:y,className:l,onKeyDown:function(e){var t=g.current,n=e.key,r=Tp(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Oh(t,r,d,Dh);else if("ArrowUp"===n)e.preventDefault(),Oh(t,r,d,Lh);else if("Home"===n)e.preventDefault(),Oh(t,null,d,Dh);else if("End"===n)e.preventDefault(),Oh(t,null,d,Lh);else if(1===n.length){var o=v.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&Ih(r,o);o.previousKeyMatched&&(s||Oh(t,r,!1,Dh,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},h),w)})),zh={vertical:"top",horizontal:"right"},Fh={vertical:"top",horizontal:"left"},Wh=m.forwardRef((function(e,t){var n=e.autoFocus,r=void 0===n||n,o=e.children,i=e.classes,a=e.disableAutoFocusItem,s=void 0!==a&&a,l=e.MenuListProps,c=void 0===l?{}:l,u=e.onClose,d=e.onEntering,p=e.open,f=e.PaperProps,h=void 0===f?{}:f,g=e.PopoverClasses,v=e.transitionDuration,y=void 0===v?"auto":v,x=e.variant,w=void 0===x?"selectedMenu":x,E=Ri(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),C=Xc(),k=r&&!s&&p,S=m.useRef(null),T=m.useRef(null),R=-1;m.Children.map(o,(function(e,t){m.isValidElement(e)&&(e.props.disabled||("menu"!==w&&e.props.selected||-1===R)&&(R=t))}));var N=m.Children.map(o,(function(e,t){return t===R?m.cloneElement(e,{ref:function(t){T.current=b.findDOMNode(t),Pu(e.ref,t)}}):e}));return m.createElement(Ph,Si({getContentAnchorEl:function(){return T.current},classes:g,onClose:u,onEntering:function(e,t){S.current&&S.current.adjustStyleForScrollbar(e,C),d&&d(e,t)},anchorOrigin:"rtl"===C.direction?zh:Fh,transformOrigin:"rtl"===C.direction?zh:Fh,PaperProps:Si({},h,{classes:Si({},h.classes,{root:i.paper})}),open:p,ref:t,transitionDuration:y},E),m.createElement(qh,Si({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:S,autoFocus:r&&(-1===R||s),autoFocusItem:k,variant:w},c,{className:Dc(i.list,c.className)}),N))})),Hh=Gc({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Wh),$h=m.forwardRef((function(e,t){var n,r=e.classes,o=e.className,i=e.component,a=void 0===i?"li":i,s=e.disableGutters,l=void 0!==s&&s,c=e.role,u=void 0===c?"menuitem":c,d=e.selected,p=e.tabIndex,f=Ri(e,["classes","className","component","disableGutters","role","selected","tabIndex"]);return e.disabled||(n=void 0!==p?p:-1),m.createElement(vh,Si({button:!0,role:u,tabIndex:n,component:a,selected:d,disableGutters:l,classes:{dense:r.dense},className:Dc(r.root,o,d&&r.selected,!l&&r.gutters),ref:t},f))})),Bh=Gc((function(e){return{root:Si({},e.typography.body1,ki({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Si({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})($h),jh=m.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,o=e.backButton,i=e.classes,a=e.className,s=e.LinearProgressProps,l=e.nextButton,c=e.position,u=void 0===c?"bottom":c,d=e.steps,p=e.variant,f=void 0===p?"dots":p,h=Ri(e,["activeStep","backButton","classes","className","LinearProgressProps","nextButton","position","steps","variant"]);return m.createElement(Qc,Si({square:!0,elevation:0,className:Dc(i.root,i["position".concat(Zc(u))],a),ref:t},h),o,"text"===f&&m.createElement(m.Fragment,null,r+1," / ",d),"dots"===f&&m.createElement("div",{className:i.dots},dl(new Array(d)).map((function(e,t){return m.createElement("div",{key:t,className:Dc(i.dot,t===r&&i.dotActive)})}))),"progress"===f&&m.createElement(uh,Si({className:i.progress,variant:"determinate",value:Math.ceil(r/(d-1)*100)},s)),l)}));Gc((function(e){return{root:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:e.palette.background.default,padding:8},positionBottom:{position:"fixed",bottom:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionTop:{position:"fixed",top:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionStatic:{},dots:{display:"flex",flexDirection:"row"},dot:{backgroundColor:e.palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},dotActive:{backgroundColor:e.palette.primary.main},progress:{width:"50%"}}}),{name:"MuiMobileStepper"})(jh);var Vh=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disabled,i=e.IconComponent,a=e.inputRef,s=e.variant,l=void 0===s?"standard":s,c=Ri(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return m.createElement(m.Fragment,null,m.createElement("select",Si({className:Dc(n.root,n.select,n[l],r,o&&n.disabled),disabled:o,ref:a||t},c)),e.multiple?null:m.createElement(i,{className:Dc(n.icon,n["icon".concat(Zc(l))])}))})),Uh=_d(m.createElement("path",{d:"M7 10l5 5 5-5z"})),_h=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper}},filled:{},outlined:{borderRadius:e.shape.borderRadius},selectMenu:{height:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",color:e.palette.action.active,pointerEvents:"none"},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7}}},Yh=m.createElement(ih,null),Kh=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.IconComponent,i=void 0===o?Uh:o,a=e.input,s=void 0===a?Yh:a,l=e.inputProps;e.variant;var c=Ri(e,["children","classes","IconComponent","input","inputProps","variant"]),u=yf({props:e,muiFormControl:cp(),states:["variant"]});return m.cloneElement(s,Si({inputComponent:Vh,select:!0,inputProps:Si({children:n,classes:r,IconComponent:i,variant:u.variant,type:void 0},l,{},s?s.props.inputProps:{}),ref:t},c))}));Kh.muiName="Select",Gc(_h,{name:"MuiNativeSelect"})(Kh);var Xh=m.forwardRef((function(e,t){e.children;var n=e.classes,r=e.className,o=e.labelWidth,i=e.notched,a=e.style,s=Ri(e,["children","classes","className","labelWidth","notched","style"]),l="rtl"===Xc().direction?"right":"left",c=o>0?.75*o+8:0;return m.createElement("fieldset",Si({"aria-hidden":!0,style:Si(ki({},"padding".concat(Zc(l)),8+(i?0:c/2)),a),className:Dc(n.root,r),ref:t},s),m.createElement("legend",{className:n.legend,style:{width:i?c:.01}},m.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),Gh=Gc((function(e){var t="rtl"===e.direction?"right":"left";return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:0,pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,transition:e.transitions.create(["padding-".concat(t),"border-color","border-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}}}),{name:"PrivateNotchedOutline"})(Xh),Zh=m.forwardRef((function(e,t){var n=e.classes,r=e.fullWidth,o=void 0!==r&&r,i=e.inputComponent,a=void 0===i?"input":i,s=e.labelWidth,l=void 0===s?0:s,c=e.multiline,u=void 0!==c&&c,d=e.notched,p=e.type,f=void 0===p?"text":p,h=Ri(e,["classes","fullWidth","inputComponent","labelWidth","multiline","notched","type"]);return m.createElement(Rf,Si({renderSuffix:function(e){return m.createElement(Gh,{className:n.notchedOutline,labelWidth:l,notched:void 0!==d?d:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Si({},n,{root:Dc(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:a,multiline:u,ref:t,type:f},h))}));Zh.muiName="Input";var Jh=Gc((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===e.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===e.palette.type?"#fff":null,borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputSelect:{paddingRight:24},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(Zh),Qh="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,em=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Qh&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();
|
|
24
24
|
/**!
|
|
25
25
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
26
26
|
* @version 1.16.0
|
|
@@ -44,4 +44,4 @@ Object.defineProperty(Pi,"__esModule",{value:!0});var Di="function"==typeof Symb
|
|
|
44
44
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
45
45
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
46
46
|
* SOFTWARE.
|
|
47
|
-
*/var Zh=Xh&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Gh))}};function Jh(e){return e&&"[object Function]"==={}.toString.call(e)}function Qh(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function em(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function tm(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Qh(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:tm(em(e))}function nm(e){return e&&e.referenceNode?e.referenceNode:e}var rm=Xh&&!(!window.MSInputMethodContext||!document.documentMode),om=Xh&&/MSIE 10/.test(navigator.userAgent);function im(e){return 11===e?rm:10===e?om:rm||om}function am(e){if(!e)return document.documentElement;for(var t=im(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Qh(n,"position")?am(n):n:e?e.ownerDocument.documentElement:document.documentElement}function sm(e){return null!==e.parentNode?sm(e.parentNode):e}function lm(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&am(a.firstElementChild)!==a?am(l):l;var c=sm(e);return c.host?lm(c.host,t):lm(e,sm(t).host)}function cm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function um(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=cm(t,"top"),o=cm(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function dm(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function pm(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],im(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function fm(e){var t=e.body,n=e.documentElement,r=im(10)&&getComputedStyle(n);return{height:pm("Height",t,n,r),width:pm("Width",t,n,r)}}var hm=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},mm=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),gm=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},vm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ym(e){return vm({},e,{right:e.left+e.width,bottom:e.top+e.height})}function bm(e){var t={};try{if(im(10)){t=e.getBoundingClientRect();var n=cm(e,"top"),r=cm(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?fm(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=Qh(e);l-=dm(u,"x"),c-=dm(u,"y"),o.width-=l,o.height-=c}return ym(o)}function xm(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=im(10),o="HTML"===t.nodeName,i=bm(e),a=bm(t),s=tm(e),l=Qh(t),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=ym({top:i.top-a.top-c,left:i.left-a.left-u,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop,10),f=parseFloat(l.marginLeft,10);d.top-=c-p,d.bottom-=c-p,d.left-=u-f,d.right-=u-f,d.marginTop=p,d.marginLeft=f}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=um(d,t)),d}function wm(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=xm(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:cm(n),s=t?0:cm(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return ym(l)}function Em(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Qh(e,"position"))return!0;var n=em(e);return!!n&&Em(n)}function Cm(e){if(!e||!e.parentElement||im())return document.documentElement;for(var t=e.parentElement;t&&"none"===Qh(t,"transform");)t=t.parentElement;return t||document.documentElement}function km(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?Cm(e):lm(e,nm(t));if("viewport"===r)i=wm(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=tm(em(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=xm(s,a,o);if("HTML"!==s.nodeName||Em(a))i=l;else{var c=fm(e.ownerDocument),u=c.height,d=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=d+l.left}}var p="number"==typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function Sm(e){return e.width*e.height}function Tm(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=km(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return vm({key:e},s[e],{area:Sm(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Rm(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?Cm(t):lm(t,nm(n));return xm(n,o,r)}function Nm(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Pm(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Dm(e,t,n){n=n.split("-")[0];var r=Nm(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[Pm(s)],o}function Mm(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Lm(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Mm(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Jh(n)&&(t.offsets.popper=ym(t.offsets.popper),t.offsets.reference=ym(t.offsets.reference),t=n(t,e))})),t}function Im(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Rm(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Tm(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Dm(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Lm(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Am(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Om(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function qm(){return this.state.isDestroyed=!0,Am(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Om("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function zm(e){var t=e.ownerDocument;return t?t.defaultView:window}function Fm(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||Fm(tm(i.parentNode),t,n,r),r.push(i)}function Wm(e,t,n,r){n.updateBound=r,zm(e).addEventListener("resize",n.updateBound,{passive:!0});var o=tm(e);return Fm(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Hm(){this.state.eventsEnabled||(this.state=Wm(this.reference,this.options,this.state,this.scheduleUpdate))}function Bm(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,zm(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function $m(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function jm(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&$m(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Vm=Xh&&/Firefox/i.test(navigator.userAgent);function Um(e,t,n){var r=Mm(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var _m=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ym=_m.slice(3);function Km(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ym.indexOf(e),r=Ym.slice(n+1).concat(Ym.slice(0,n));return t?r.reverse():r}var Xm="flip",Gm="clockwise",Zm="counterclockwise";function Jm(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Mm(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return ym(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){$m(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Qm={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:gm({},l,i[l]),end:gm({},l,i[l]+i[c]-a[c])};e.offsets.popper=vm({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],l=void 0;return l=$m(+n)?[+n,0]:Jm(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||am(e.instance.popper);e.instance.reference===n&&(n=am(n));var r=Om("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=km(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),gm({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),gm({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=vm({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Um(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",f=l?"bottom":"right",h=Nm(r)[c];s[f]-h<a[d]&&(e.offsets.popper[d]-=a[d]-(s[f]-h)),s[d]+h>a[f]&&(e.offsets.popper[d]+=s[d]+h-a[f]),e.offsets.popper=ym(e.offsets.popper);var m=s[d]+s[c]/2-h/2,g=Qh(e.instance.popper),v=parseFloat(g["margin"+u],10),y=parseFloat(g["border"+u+"Width"],10),b=m-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[c]-h,b),0),e.arrowElement=r,e.offsets.arrow=(gm(n={},d,Math.round(b)),gm(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Am(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=km(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Pm(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Xm:a=[r,o];break;case Gm:a=Km(r);break;case Zm:a=Km(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=Pm(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),h=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===r&&f||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&f||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&g),x=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&f||!y&&"start"===i&&g||!y&&"end"===i&&m),w=b||x;(p||v||w)&&(e.flipped=!0,(p||v)&&(r=a[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=vm({},e.offsets.popper,Dm(e.instance.popper,e.offsets.reference,e.placement)),e=Lm(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=Pm(t),e.offsets.popper=ym(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Um(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Mm(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=Mm(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=am(e.instance.popper),l=bm(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(o.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?i:a:s,f=t?i:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!Vm),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",f=Om("transform"),h=void 0,m=void 0;if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,h="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&f)c[f]="translate3d("+h+"px, "+m+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===p?-1:1;c[d]=m*g,c[p]=h*v,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=vm({},y,e.attributes),e.styles=vm({},c,e.styles),e.arrowStyles=vm({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return jm(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&jm(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=Rm(o,t,e,n.positionFixed),a=Tm(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),jm(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},eg=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};hm(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Zh(this.update.bind(this)),this.options=vm({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(vm({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=vm({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return vm({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Jh(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return mm(e,[{key:"update",value:function(){return Im.call(this)}},{key:"destroy",value:function(){return qm.call(this)}},{key:"enableEventListeners",value:function(){return Hm.call(this)}},{key:"disableEventListeners",value:function(){return Bm.call(this)}}]),e}();function tg(e){return"function"==typeof e?e():e}eg.Utils=("undefined"!=typeof window?window:global).PopperUtils,eg.placements=_m,eg.Defaults=Qm;var ng="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,rg={},og=o.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,i=e.container,a=e.disablePortal,s=void 0!==a&&a,l=e.keepMounted,c=void 0!==l&&l,u=e.modifiers,d=e.open,p=e.placement,f=void 0===p?"bottom":p,h=e.popperOptions,m=void 0===h?rg:h,g=e.popperRef,v=e.transition,y=void 0!==v&&v,b=Ci(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition"]),x=o.useRef(null),w=Ru(x,t),E=o.useRef(null),C=Ru(E,g),k=o.useRef(C);ng((function(){k.current=C}),[C]),o.useImperativeHandle(g,(function(){return E.current}),[]);var S=o.useState(!0),T=S[0],R=S[1],N=function(e){if("rtl"!==("undefined"!=typeof window&&document.body.getAttribute("dir")||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f),P=o.useState(N),D=P[0],M=P[1],L=o.useCallback((function(){if(x.current&&n&&d){E.current&&(E.current.destroy(),k.current(null));var e=function(e){M(e.placement)};tg(n);var t=new eg(tg(n),x.current,wi({placement:N},m,{modifiers:wi({},s?{}:{preventOverflow:{boundariesElement:"window"}},{},u,{},m.modifiers),onCreate:Dp(e,m.onCreate),onUpdate:Dp(e,m.onUpdate)}));k.current(t)}}),[n,s,u,d,N,m]),I=o.useCallback((function(e){Tu(w,e),L()}),[w,L]),A=function(){E.current&&(E.current.destroy(),k.current(null))};if(o.useEffect((function(){L()}),[L]),o.useEffect((function(){return function(){A()}}),[]),o.useEffect((function(){d||y||A()}),[d,y]),!c&&!d&&(!y||T))return null;var O={placement:D};return y&&(O.TransitionProps={in:d,onEnter:function(){R(!1)},onExited:function(){R(!0),A()}}),o.createElement(Pp,{disablePortal:s,container:i},o.createElement("div",wi({ref:I,role:"tooltip"},b,{style:wi({position:"fixed",top:0,left:0},b.style)}),"function"==typeof r?r(O):r))})),ig=$d(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),ag=$d(o.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),sg=o.createElement(ig,null);var lg=_c((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var t=e.checked,n=e.classes;return o.createElement("div",{className:Rc(n.root,t&&n.checked)},sg,o.createElement(ag,{className:n.layer}))})),cg=o.createContext(),ug=o.createElement(lg,{checked:!0}),dg=o.createElement(lg,null),pg=o.forwardRef((function(e,t){var n=e.checked,r=e.classes,i=e.color,a=void 0===i?"secondary":i,s=e.name,l=e.onChange,c=Ci(e,["checked","classes","color","name","onChange"]),u=o.useContext(cg),d=n,p=Dp(l,u&&u.onChange),f=s;return u&&(void 0===d&&(d=u.value===e.value),void 0===f&&(f=u.name)),o.createElement(cp,wi({color:a,type:"radio",icon:dg,checkedIcon:ug,classes:{root:Rc(r.root,r["color".concat(Yc(a))]),checked:r.checked,disabled:r.disabled},name:f,checked:d,onChange:p,ref:t},c))}));function fg(e,t){return"object"===Si(t)&&null!==t?e===t:String(e)===String(t)}_c((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:vi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:vi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(pg),o.forwardRef((function(e,t){var n=e.actions,r=e.children,i=e.name,a=e.value,s=e.onChange,l=Ci(e,["actions","children","name","value","onChange"]),c=o.useRef(null),u=o.useRef(null!=a).current,d=o.useState((function(){return u?null:e.defaultValue})),p=d[0],f=d[1];o.useImperativeHandle(n,(function(){return{focus:function(){var e=c.current.querySelector("input:not(:disabled):checked");e||(e=c.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var h={name:i,onChange:function(e){u||f(e.target.value),s&&s(e,e.target.value)},value:u?a:p},m=Ru(t,c);return o.createElement(Mf,wi({role:"radiogroup",ref:m},l),o.createElement(cg.Provider,{value:h},r))})),o.Component;var hg=o.forwardRef((function(e,t){var n=e.autoFocus,r=e.autoWidth,i=e.children,a=e.classes,s=e.className,l=e.defaultValue,c=e.disabled,u=e.displayEmpty,d=e.labelId,p=e.IconComponent,f=e.inputRef,h=e.MenuProps,m=void 0===h?{}:h,g=e.multiple,v=e.name,y=e.onBlur,b=e.onChange,x=e.onClose,w=e.onFocus,E=e.onOpen,C=e.open,k=e.readOnly,S=e.renderValue;e.required;var T=e.SelectDisplayProps,R=void 0===T?{}:T,N=e.tabIndex;e.type;var P=e.value,D=e.variant,M=void 0===D?"standard":D,L=Ci(e,["autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","labelId","IconComponent","inputRef","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),I=o.useRef(null!=P).current,A=o.useState(l),O=A[0],q=A[1],z=I?P:O,F=o.useRef(null),W=o.useState(null),H=W[0],B=W[1],$=o.useRef(null!=C).current,j=o.useState(),V=j[0],U=j[1],_=o.useState(!1),Y=_[0],K=_[1],X=Ru(t,f);o.useImperativeHandle(X,(function(){return{focus:function(){H.focus()},node:F.current,value:z}}),[H,z]),o.useEffect((function(){n&&H&&H.focus()}),[n,H]);var G,Z,J=function(e,t){e?E&&E(t):(H.focus(),x&&x(t)),$||(U(r?null:H.clientWidth),K(e))},Q=function(e){return function(t){var n;if(g||J(!1,t),g){n=Array.isArray(z)?sl(z):[];var r=z.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;I||q(n),b&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:v}}),b(t,e))}},ee=null!==H&&($?C:Y);delete L["aria-invalid"];var te=[],ne=!1;(xf({value:z})||u)&&(S?G=S(z):ne=!0);var re=o.Children.map(i,(function(e){if(!o.isValidElement(e))return null;var t;if(g){if(!Array.isArray(z))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(t=z.some((function(t){return fg(t,e.props.value)})))&&ne&&te.push(e.props.children)}else(t=fg(z,e.props.value))&&ne&&(Z=e.props.children);return o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:Q(e),role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ne&&(G=g?te.join(", "):Z);var oe,ie=V;!r&&$&&H&&(ie=H.clientWidth),oe=void 0!==N?N:c?null:0;var ae=R.id||(v?"mui-component-select-".concat(v):void 0);return o.createElement(o.Fragment,null,o.createElement("div",wi({className:Rc(a.root,a.select,a.selectMenu,a[M],s,c&&a.disabled),ref:B,tabIndex:oe,role:"button","aria-expanded":ee?"true":void 0,"aria-labelledby":"".concat(d||""," ").concat(ae||""),"aria-haspopup":"listbox",onKeyDown:function(e){if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onClick:c||k?null:function(e){J(!0,e)},onBlur:function(e){!ee&&y&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:v}}),y(e))},onFocus:w},R,{id:ae}),function(e){return null==e||"string"==typeof e&&!e.trim()}(G)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):G),o.createElement("input",wi({value:Array.isArray(z)?z.join(","):z,name:v,ref:F,type:"hidden",autoFocus:n},L)),o.createElement(p,{className:Rc(a.icon,a["icon".concat(Yc(M))],ee&&a.iconOpen)}),o.createElement(qh,wi({id:"menu-".concat(v||""),anchorEl:H,open:ee,onClose:function(e){J(!1,e)}},m,{MenuListProps:wi({"aria-labelledby":d,role:"listbox",disableListWrap:!0},m.MenuListProps),PaperProps:wi({},m.PaperProps,{style:wi({minWidth:ie},null!=m.PaperProps?m.PaperProps.style:null)})}),re))})),mg=$h,gg=o.createElement(th,null),vg=o.createElement(Sf,null),yg=o.forwardRef((function e(t,n){var r=t.autoWidth,i=void 0!==r&&r,a=t.children,s=t.classes,l=t.displayEmpty,c=void 0!==l&&l,u=t.IconComponent,d=void 0===u?Bh:u,p=t.id,f=t.input,h=t.inputProps,m=t.labelId,g=t.MenuProps,v=t.multiple,y=void 0!==v&&v,b=t.native,x=void 0!==b&&b,w=t.onClose,E=t.onOpen,C=t.open,k=t.renderValue,S=t.SelectDisplayProps,T=t.variant,R=void 0===T?"standard":T,N=t.labelWidth,P=void 0===N?0:N,D=Ci(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant","labelWidth"]),M=x?Hh:hg,L=hf({props:t,muiFormControl:ip(),states:["variant"]}).variant||R,I=f||{standard:gg,outlined:o.createElement(Kh,{labelWidth:P}),filled:vg}[L];return o.cloneElement(I,wi({inputComponent:M,select:!0,inputProps:wi({children:a,IconComponent:d,variant:L,type:void 0,multiple:y},x?{}:{autoWidth:i,displayEmpty:c,labelId:m,MenuProps:g,onClose:w,onOpen:E,open:C,renderValue:k,SelectDisplayProps:wi({id:p},S)},{},h,{classes:h?oc({baseClasses:s,newClasses:h.classes,Component:e}):s},f?f.props.inputProps:{}),ref:n},D))}));yg.muiName="Select";var bg=_c(mg,{name:"MuiSelect"})(yg);var xg=_c((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:wi({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,left:"calc(-50% + -4px)",transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,i=e.open,a=e.value,s=e.valueLabelDisplay;return"off"===s?t:o.cloneElement(t,{className:Rc(t.props.className,(i||"on"===s)&&n.open,n.thumb)},o.createElement("span",{className:Rc(n.offset,r)},o.createElement("span",{className:n.circle},o.createElement("span",{className:n.label},a))))}));function wg(e,t){return e-t}function Eg(e,t,n){return e<t?t:e>n?n:e}function Cg(e,t){return e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null).index}function kg(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Sg(e,t,n){return 100*(e-t)/(n-t)}function Tg(e,t){var n=Math.round(e/t)*t;return Number(n.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function Rg(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=sl(t);return i[o]=r,i}function Ng(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[data-index="'.concat(n,'"]')).focus(),r&&r(n)}var Pg={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},Dg=[],Mg=function(e){return e},Lg=o.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],i=e["aria-valuetext"],a=e.classes,s=e.className,l=e.color,c=void 0===l?"primary":l,u=e.component,d=void 0===u?"span":u,p=e.defaultValue,f=e.disabled,h=void 0!==f&&f,m=e.getAriaLabel,g=e.getAriaValueText,v=e.marks,y=void 0===v?Dg:v,b=e.max,x=void 0===b?100:b,w=e.min,E=void 0===w?0:w,C=e.name,k=e.onChange,S=e.onChangeCommitted,T=e.onMouseDown,R=e.orientation,N=void 0===R?"horizontal":R,P=e.step,D=void 0===P?1:P,M=e.ThumbComponent,L=void 0===M?"span":M,I=e.track,A=void 0===I?"normal":I,O=e.value,q=e.ValueLabelComponent,z=void 0===q?xg:q,F=e.valueLabelDisplay,W=void 0===F?"off":F,H=e.valueLabelFormat,B=void 0===H?Mg:H,$=Ci(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),j=Uc(),V=o.useRef(null!=O).current,U=o.useRef(),_=o.useState(-1),Y=_[0],K=_[1],X=o.useState(-1),G=X[0],Z=X[1],J=o.useState(p),Q=J[0],ee=J[1],te=V?O:Q,ne=Array.isArray(te),re=o.useRef(),oe=ne?sl(te).sort(wg):[te];oe=oe.map((function(e){return Eg(e,E,x)}));var ie=!0===y&&null!==D?sl(Array(Math.floor((x-E)/D)+1)).map((function(e,t){return{value:E+D*t}})):y;re.current={source:te};var ae=Ku(),se=ae.isFocusVisible,le=ae.onBlurVisible,ce=ae.ref,ue=o.useState(-1),de=ue[0],pe=ue[1],fe=o.useRef(),he=Ru(ce,fe),me=Ru(t,he),ge=qu((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));se(e)&&pe(t),Z(t)})),ve=qu((function(){-1!==de&&(pe(-1),le()),Z(-1)})),ye=qu((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Z(t)})),be=qu((function(){Z(-1)})),xe=qu((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=oe[n],o=(x-E)/10,i=ie.map((function(e){return e.value})),a=i.indexOf(r);switch(e.key){case"Home":t=E;break;case"End":t=x;break;case"PageUp":D&&(t=r+o);break;case"PageDown":D&&(t=r-o);break;case"ArrowRight":case"ArrowUp":t=D?r+D:i[a+1]||i[i.length-1];break;case"ArrowLeft":case"ArrowDown":t=D?r-D:i[a-1]||i[0];break;default:return}if(e.preventDefault(),D&&(t=Tg(t,D)),t=Eg(t,E,x),ne){var s=t;t=Rg({values:oe,source:te,newValue:t,index:n}).sort(wg),Ng({sliderRef:fe,activeIndex:t.indexOf(s)})}V||ee(t),pe(n),k&&k(e,t),S&&S(e,t)})),we=o.useRef(),Ee=N;"rtl"===j.direction&&"vertical"!==N&&(Ee+="-reverse");var Ce=o.useCallback((function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=e.values,s=e.source,l=fe.current.getBoundingClientRect(),c=l.width,u=l.height,d=l.bottom,p=l.left;if(t=0===Ee.indexOf("vertical")?(d-r.y)/u:(r.x-p)/c,-1!==Ee.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,E,x),D)n=Tg(n,D);else{var f=ie.map((function(e){return e.value}));n=f[Cg(f,n)]}n=Eg(n,E,x);var h=0;if(ne){var m=n;h=(n=Rg({values:a,source:s,newValue:n,index:h=i?we.current:Cg(a,n)}).sort(wg)).indexOf(m),we.current=h}return{newValue:n,activeIndex:h}}),[x,E,Ee,ne,D,ie]),ke=qu((function(e){var t=kg(e,U);if(t){var n=Ce({finger:t,move:!0,values:oe,source:te}),r=n.newValue,o=n.activeIndex;Ng({sliderRef:fe,activeIndex:o,setActive:K}),V||ee(r),k&&k(e,r)}})),Se=qu((function(e){var t=kg(e,U);if(t){var n=Ce({finger:t,values:oe,source:te}).newValue;K(-1),"touchend"===e.type&&Z(-1),S&&S(e,n),U.current=void 0,document.body.removeEventListener("mousemove",ke),document.body.removeEventListener("mouseup",Se),document.body.removeEventListener("mouseenter",Te),document.body.removeEventListener("touchmove",ke),document.body.removeEventListener("touchend",Se)}})),Te=qu((function(e){0===e.buttons&&Se(e)})),Re=qu((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(U.current=t.identifier);var n=kg(e,U),r=Ce({finger:n,values:oe,source:te}),o=r.newValue,i=r.activeIndex;Ng({sliderRef:fe,activeIndex:i,setActive:K}),V||ee(o),k&&k(e,o),document.body.addEventListener("touchmove",ke),document.body.addEventListener("touchend",Se)}));o.useEffect((function(){var e=fe.current;return e.addEventListener("touchstart",Re),function(){e.removeEventListener("touchstart",Re),document.body.removeEventListener("mousemove",ke),document.body.removeEventListener("mouseup",Se),document.body.removeEventListener("mouseenter",Te),document.body.removeEventListener("touchmove",ke),document.body.removeEventListener("touchend",Se)}}),[Te,Se,ke,Re]);var Ne=qu((function(e){T&&T(e),e.preventDefault();var t=kg(e,U),n=Ce({finger:t,values:oe,source:te}),r=n.newValue,o=n.activeIndex;Ng({sliderRef:fe,activeIndex:o,setActive:K}),V||ee(r),k&&k(e,r),document.body.addEventListener("mousemove",ke),document.body.addEventListener("mouseenter",Te),document.body.addEventListener("mouseup",Se)})),Pe=Sg(ne?oe[0]:E,E,x),De=Sg(oe[oe.length-1],E,x)-Pe,Me=wi({},Pg[Ee].offset(Pe),{},Pg[Ee].leap(De));return o.createElement(d,wi({ref:me,className:Rc(a.root,a["color".concat(Yc(c))],s,h&&a.disabled,ie.length>0&&ie.some((function(e){return e.label}))&&a.marked,!1===A&&a.trackFalse,{vertical:a.vertical}[N],{inverted:a.trackInverted}[A]),onMouseDown:Ne},$),o.createElement("span",{className:a.rail}),o.createElement("span",{className:a.track,style:Me}),o.createElement("input",{value:oe.join(","),name:C,type:"hidden"}),ie.map((function(e){var t,n=Sg(e.value,E,x),r=Pg[Ee].offset(n);if(!1===A)t=-1!==oe.indexOf(e.value);else{var i=ne?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0];t=i&&"normal"===A||!i&&"inverted"===A}return o.createElement(o.Fragment,{key:e.value},o.createElement("span",{style:r,className:Rc(a.mark,t&&a.markActive)}),o.createElement("span",{"aria-hidden":!0,style:r,className:Rc(a.markLabel,t&&a.markLabelActive)},e.label))})),oe.map((function(e,t){var s=Sg(e,E,x),l=Pg[Ee].offset(s);return o.createElement(z,{key:t,valueLabelFormat:B,valueLabelDisplay:W,className:a.valueLabel,value:"function"==typeof B?B(e,t):B,index:t,open:G===t||Y===t||"on"===W,disabled:h},o.createElement(L,{className:Rc(a.thumb,a["thumbColor".concat(Yc(c))],Y===t&&a.active,h&&a.disabled,de===t&&a.focusVisible),tabIndex:h?null:0,role:"slider",style:l,"data-index":t,"aria-label":m?m(t):n,"aria-labelledby":r,"aria-orientation":N,"aria-valuemax":x,"aria-valuemin":E,"aria-valuenow":e,"aria-valuetext":g?g(e,t):i,onKeyDown:xe,onFocus:ge,onBlur:ve,onMouseOver:ye,onMouseLeave:be}))})))}));_c((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"11px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 11px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?bi(e.palette.primary.main,.62):yi(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',left:-18,top:-18,right:-18,bottom:-18},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(vi(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(vi(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(vi(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(vi(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:wi({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:22,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:22,transform:"translateY(50%)"}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(Lg);var Ig=o.forwardRef((function(e,t){var n=e.action,r=e.classes,i=e.className,a=e.message,s=e.role,l=void 0===s?"alert":s,c=Ci(e,["action","classes","className","message","role"]);return o.createElement(Xc,wi({component:Wd,variant:"body2",variantMapping:{body1:"div",body2:"div"},role:l,square:!0,elevation:6,className:Rc(r.root,i),ref:t},c),o.createElement("div",{className:r.message},a),n?o.createElement("div",{className:r.action},n):null)})),Ag=_c((function(e){var t="light"===e.palette.type?.8:.98,n=gi(e.palette.background.default,t);return{root:xi({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(Ig),Og=o.forwardRef((function(e,t){var n=e.action,r=e.anchorOrigin,i=(r=void 0===r?{vertical:"bottom",horizontal:"center"}:r).vertical,a=r.horizontal,s=e.autoHideDuration,l=e.children,c=e.classes,u=e.className,d=e.ClickAwayListenerProps,p=e.ContentProps,f=e.disableWindowBlurListener,h=void 0!==f&&f,m=e.message,g=e.onClose,v=e.onEnter,y=e.onEntered,b=e.onEntering,x=e.onExit,w=e.onExited,E=e.onExiting,C=e.onMouseEnter,k=e.onMouseLeave,S=e.open,T=e.resumeHideDuration,R=e.TransitionComponent,N=void 0===R?_f:R,P=e.transitionDuration,D=void 0===P?{enter:pa.enteringScreen,exit:pa.leavingScreen}:P,M=e.TransitionProps,L=Ci(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),I=o.useRef(),A=o.useState(!0),O=A[0],q=A[1],z=o.useCallback((function(e){var t=null!=e?e:s;g&&null!=t&&(clearTimeout(I.current),I.current=setTimeout((function(){g&&null!=(null!=e?e:s)&&g(null,"timeout")}),t))}),[s,g]);o.useEffect((function(){return S&&z(),function(){clearTimeout(I.current)}}),[S,z]);var F=function(){clearTimeout(I.current)},W=o.useCallback((function(){if(null!=s){if(null!=T)return void z(T);z(.5*s)}}),[s,T,z]);return o.useEffect((function(){if(!h&&S)return window.addEventListener("focus",W),window.addEventListener("blur",F),function(){window.removeEventListener("focus",W),window.removeEventListener("blur",F)}}),[h,W,S]),!S&&O?null:o.createElement(kp,wi({onClickAway:function(e){g&&g(e,"clickaway")}},d),o.createElement("div",wi({className:Rc(c.root,c["anchorOrigin".concat(Yc(i)).concat(Yc(a))],u),onMouseEnter:function(e){C&&C(e),F()},onMouseLeave:function(e){k&&k(e),W()},ref:t},L),o.createElement(N,wi({appear:!0,in:S,onEnter:Dp((function(){q(!1)}),v),onEntered:y,onEntering:b,onExit:x,onExited:Dp((function(){q(!0)}),w),onExiting:E,timeout:D,direction:"top"===i?"down":"up"},M),l||o.createElement(Ag,wi({message:m,action:n},p)))))}));_c((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},i={top:24},a={bottom:24},s={right:24},l={left:24},c={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:wi({},t,xi({},e.breakpoints.up("sm"),wi({},i,{},c))),anchorOriginBottomCenter:wi({},n,xi({},e.breakpoints.up("sm"),wi({},a,{},c))),anchorOriginTopRight:wi({},t,{},r,xi({},e.breakpoints.up("sm"),wi({left:"auto"},i,{},s))),anchorOriginBottomRight:wi({},n,{},r,xi({},e.breakpoints.up("sm"),wi({left:"auto"},a,{},s))),anchorOriginTopLeft:wi({},t,{},o,xi({},e.breakpoints.up("sm"),wi({right:"auto"},i,{},l))),anchorOriginBottomLeft:wi({},n,{},o,xi({},e.breakpoints.up("sm"),wi({right:"auto"},a,{},l)))}}),{flip:!1,name:"MuiSnackbar"})(Og);var qg=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.alternativeLabel,a=e.children,s=e.classes,l=e.className,c=e.completed,u=void 0!==c&&c,d=e.connector,p=e.disabled,f=void 0!==p&&p,h=e.index,m=e.last,g=e.orientation,v=Ci(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","index","last","orientation"]);return o.createElement("div",wi({className:Rc(s.root,s[g],l,i&&s.alternativeLabel,u&&s.completed),ref:t},v),d&&i&&0!==h&&o.cloneElement(d,{orientation:g,alternativeLabel:i,index:h,active:r,completed:u,disabled:f}),o.Children.map(a,(function(e){return o.isValidElement(e)?o.cloneElement(e,wi({active:r,alternativeLabel:i,completed:u,disabled:f,last:m,icon:h+1,orientation:g},e.props)):null})))}));_c({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(qg);var zg=$d(o.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),Fg=$d(o.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),Wg=o.createElement("circle",{cx:"12",cy:"12",r:"12"}),Hg=o.forwardRef((function(e,t){var n=e.completed,r=void 0!==n&&n,i=e.icon,a=e.active,s=void 0!==a&&a,l=e.error,c=void 0!==l&&l,u=e.classes;return"number"==typeof i||"string"==typeof i?c?o.createElement(Fg,{className:Rc(u.root,u.error),ref:t}):r?o.createElement(zg,{className:Rc(u.root,u.completed),ref:t}):o.createElement(Bd,{className:Rc(u.root,s&&u.active),ref:t},Wg,o.createElement("text",{className:u.text,x:"12",y:"16",textAnchor:"middle"},i)):i})),Bg=_c((function(e){return{root:{display:"block",color:e.palette.text.disabled,"&$active":{color:e.palette.primary.main},"&$completed":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily},active:{},completed:{},error:{}}}),{name:"MuiStepIcon"})(Hg),$g=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.alternativeLabel,a=void 0!==i&&i,s=e.children,l=e.classes,c=e.className,u=e.completed,d=void 0!==u&&u,p=e.disabled,f=void 0!==p&&p,h=e.error,m=void 0!==h&&h,g=e.icon;e.last;var v=e.optional,y=e.orientation,b=void 0===y?"horizontal":y,x=e.StepIconComponent,w=e.StepIconProps,E=Ci(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),C=x;return g&&!C&&(C=Bg),o.createElement("span",wi({className:Rc(l.root,l[b],c,f&&l.disabled,a&&l.alternativeLabel,m&&l.error),ref:t},E),g||C?o.createElement("span",{className:Rc(l.iconContainer,a&&l.alternativeLabel)},o.createElement(C,wi({completed:d,active:r,error:m,icon:g},w))):null,o.createElement("span",{className:l.labelContainer},o.createElement(Wd,{variant:"body2",component:"span",className:Rc(l.label,a&&l.alternativeLabel,d&&l.completed,r&&l.active,m&&l.error),display:"block"},s),v))}));$g.muiName="StepLabel";var jg=_c((function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}}),{name:"MuiStepLabel"})($g),Vg=o.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,i=e.children,a=e.classes,s=e.className,l=e.completed,c=e.disabled,u=e.icon;e.last;var d=e.optional,p=e.orientation,f=Ci(e,["active","alternativeLabel","children","classes","className","completed","disabled","icon","last","optional","orientation"]),h={active:n,alternativeLabel:r,completed:l,disabled:c,icon:u,optional:d,orientation:p},m=Tf(i,["StepLabel"])?o.cloneElement(i,h):o.createElement(jg,h,i);return o.createElement(td,wi({disabled:c,TouchRippleProps:{className:a.touchRipple},className:Rc(a.root,a[p],s),ref:t},f),m)}));_c({root:{width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},horizontal:{},vertical:{justifyContent:"flex-start",padding:"8px",margin:"-8px"},touchRipple:{color:"rgba(0, 0, 0, 0.3)"}},{name:"MuiStepButton"})(Vg);var Ug=o.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,i=void 0!==r&&r,a=e.classes,s=e.className,l=e.completed,c=e.disabled;e.index;var u=e.orientation,d=void 0===u?"horizontal":u,p=Ci(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return o.createElement("div",wi({className:Rc(a.root,a[d],s,i&&a.alternativeLabel,n&&a.active,l&&a.completed,c&&a.disabled),ref:t},p),o.createElement("span",{className:Rc(a.line,"vertical"===d?a.lineVertical:a.lineHorizontal)}))})),_g=_c((function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}}),{name:"MuiStepConnector"})(Ug),Yg=o.forwardRef((function(e,t){var n=e.active;e.alternativeLabel;var r=e.children,i=e.classes,a=e.className;e.completed;var s=e.last;e.optional,e.orientation;var l=e.TransitionComponent,c=void 0===l?Tp:l,u=e.transitionDuration,d=void 0===u?"auto":u,p=e.TransitionProps,f=Ci(e,["active","alternativeLabel","children","classes","className","completed","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]),h=d;return"auto"!==d||c.muiSupportAuto||(h=void 0),o.createElement("div",wi({className:Rc(i.root,a,s&&i.last),ref:t},f),o.createElement(c,wi({in:n,className:i.transition,timeout:h,unmountOnExit:!0},p),r))}));_c((function(e){return{root:{marginTop:8,marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:"1px solid ".concat("light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600])},last:{borderLeft:"none"},transition:{}}}),{name:"MuiStepContent"})(Yg);var Kg=o.createElement(_g,null),Xg=o.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,i=e.alternativeLabel,a=void 0!==i&&i,s=e.children,l=e.classes,c=e.className,u=e.connector,d=void 0===u?Kg:u,p=e.nonLinear,f=void 0!==p&&p,h=e.orientation,m=void 0===h?"horizontal":h,g=Ci(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),v=o.isValidElement(d)?o.cloneElement(d,{orientation:m}):null,y=o.Children.toArray(s),b=y.map((function(e,t){var n={alternativeLabel:a,connector:d,last:t+1===y.length,orientation:m},i={index:t,active:!1,completed:!1,disabled:!1};return r===t?i.active=!0:!f&&r>t?i.completed=!0:!f&&r<t&&(i.disabled=!0),[!a&&v&&0!==t&&o.cloneElement(v,wi({key:t},i)),o.cloneElement(e,wi({},n,{},i,{},e.props))]}));return o.createElement(Xc,wi({square:!0,elevation:0,className:Rc(l.root,l[m],c,a&&l.alternativeLabel),ref:t},g),b)}));_c({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(Xg);var Gg=o.forwardRef((function(e,t){var n=e.anchor,r=e.classes,i=e.className,a=e.width,s=Ci(e,["anchor","classes","className","width"]);return o.createElement("div",wi({className:Rc(r.root,r["anchor".concat(Yc(n))],i),ref:t,style:xi({},nf(n)?"width":"height",a)},s))})),Zg=_c((function(e){return{root:{position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},anchorLeft:{right:"auto"},anchorRight:{left:"auto",right:0},anchorTop:{bottom:"auto",right:0},anchorBottom:{top:"auto",bottom:0,right:0}}}),{name:"PrivateSwipeArea"})(Gg),Jg=null;function Qg(e,t){return"right"===e?document.body.offsetWidth-t[0].pageX:t[0].pageX}function ev(e,t){return"bottom"===e?window.innerHeight-t[0].clientY:t[0].clientY}function tv(e,t){return e?t.clientWidth:t.clientHeight}function nv(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}var rv="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),ov={enter:pa.enteringScreen,exit:pa.leavingScreen},iv="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;o.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,i=e.disableBackdropTransition,a=void 0!==i&&i,s=e.disableDiscovery,c=void 0!==s&&s,u=e.disableSwipeToOpen,d=void 0===u?rv:u,p=e.hideBackdrop,f=e.hysteresis,h=void 0===f?.52:f,m=e.minFlingVelocity,g=void 0===m?450:m,v=e.ModalProps,y=(v=void 0===v?{}:v).BackdropProps,b=Ci(v,["BackdropProps"]),x=e.onClose,w=e.onOpen,E=e.open,C=e.PaperProps,k=void 0===C?{}:C,S=e.SwipeAreaProps,T=e.swipeAreaWidth,R=void 0===T?20:T,N=e.transitionDuration,P=void 0===N?ov:N,D=e.variant,M=void 0===D?"temporary":D,L=Ci(e,["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"]),I=Uc(),A=o.useState(!1),O=A[0],q=A[1],z=o.useRef({isSwiping:null}),F=o.useRef(),W=o.useRef(),H=o.useRef(),B=o.useRef(!1),$=o.useRef();iv((function(){$.current=null}),[E]);var j=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,o=void 0===n?null:n,i=t.changeTransition,s=void 0===i||i,l=rf(I,r),c=-1!==["right","bottom"].indexOf(l)?1:-1,u=nf(r),d=u?"translate(".concat(c*e,"px, 0)"):"translate(0, ".concat(c*e,"px)"),f=H.current.style;f.webkitTransform=d,f.transform=d;var h="";if(o&&(h=I.transitions.create("all",Su({timeout:P},{mode:o}))),s&&(f.webkitTransition=h,f.transition=h),!a&&!p){var m=W.current.style;m.opacity=1-e/tv(u,H.current),s&&(m.webkitTransition=h,m.transition=h)}}),[r,a,p,I,P]),V=qu((function(e){if(B.current)if(Jg=null,B.current=!1,q(!1),z.current.isSwiping){z.current.isSwiping=null;var t,n=rf(I,r),o=nf(r);t=o?Qg(n,e.changedTouches):ev(n,e.changedTouches);var i=o?z.current.startX:z.current.startY,a=tv(o,H.current),s=nv(t,i,E,a),l=s/a;Math.abs(z.current.velocity)>g&&($.current=1e3*Math.abs((a-s)/z.current.velocity)),E?z.current.velocity>g||l>h?x():j(0,{mode:"exit"}):z.current.velocity<-g||1-l>h?w():j(tv(o,H.current),{mode:"enter"})}else z.current.isSwiping=null})),U=qu((function(e){if(H.current&&B.current&&(null==Jg||Jg===z.current)){var t=rf(I,r),n=nf(r),o=Qg(t,e.touches),i=ev(t,e.touches);if(E&&H.current.contains(e.target)&&null==Jg){var a=function(e){var t=e.domTreeShapes,n=e.start,r=e.current,o=e.anchor,i={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},s={x:"clientWidth",y:"clientHeight"};return t.some((function(e){var t=r>=n;"top"!==o&&"left"!==o||(t=!t);var l="left"===o||"right"===o?"x":"y",c=e[i[l]],u=c>0,d=c+e[s[l]]<e[a[l]];return t&&d||!t&&u?e:null}))}({domTreeShapes:function(e,t){for(var n=[];e&&e!==t;){var r=window.getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")?n=[]:(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,H.current),start:n?z.current.startX:z.current.startY,current:n?o:i,anchor:r});if(a)return void(Jg=a);Jg=z.current}if(null==z.current.isSwiping){var s=Math.abs(o-z.current.startX),l=Math.abs(i-z.current.startY);s>l&&e.cancelable&&e.preventDefault();var u=n?s>l&&s>3:l>s&&l>3;if(!0===u||(n?l>3:s>3)){if(z.current.isSwiping=u,!u)return void V(e);z.current.startX=o,z.current.startY=i,c||E||(n?z.current.startX-=R:z.current.startY-=R)}}if(z.current.isSwiping){var d=tv(n,H.current),p=n?z.current.startX:z.current.startY;E&&!z.current.paperHit&&(p=Math.min(p,d));var f=nv(n?o:i,p,E,d);if(E)if(z.current.paperHit)0===f&&(z.current.startX=o,z.current.startY=i);else{if(!(n?o<d:i<d))return;z.current.paperHit=!0,z.current.startX=o,z.current.startY=i}null===z.current.lastTranslate&&(z.current.lastTranslate=f,z.current.lastTime=performance.now()+1);var h=(f-z.current.lastTranslate)/(performance.now()-z.current.lastTime)*1e3;z.current.velocity=.4*z.current.velocity+.6*h,z.current.lastTranslate=f,z.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),j(f)}}})),_=qu((function(e){if(!e.defaultPrevented&&!e.muiHandled&&(!E||W.current.contains(e.target)||H.current.contains(e.target))){var t=rf(I,r),n=nf(r),o=Qg(t,e.touches),i=ev(t,e.touches);if(!E){if(d||e.target!==F.current)return;if(n){if(o>R)return}else if(i>R)return}e.muiHandled=!0,Jg=null,z.current.startX=o,z.current.startY=i,q(!0),!E&&H.current&&j(tv(n,H.current)+(c?20:-R),{changeTransition:!1}),z.current.velocity=0,z.current.lastTime=null,z.current.lastTranslate=null,z.current.paperHit=!1,B.current=!0}}));o.useEffect((function(){if("temporary"===M)return document.body.addEventListener("touchstart",_),document.body.addEventListener("touchmove",U,{passive:!1}),document.body.addEventListener("touchend",V),function(){document.body.removeEventListener("touchstart",_),document.body.removeEventListener("touchmove",U,{passive:!1}),document.body.removeEventListener("touchend",V)}}),[M,_,U,V]),o.useEffect((function(){return function(){Jg===z.current&&(Jg=null)}}),[]),o.useEffect((function(){E||q(!1)}),[E]);var Y=o.useCallback((function(e){W.current=l.findDOMNode(e)}),[]),K=o.useCallback((function(e){H.current=l.findDOMNode(e)}),[]);return o.createElement(o.Fragment,null,o.createElement(sf,wi({open:!("temporary"!==M||!O)||E,variant:M,ModalProps:wi({BackdropProps:wi({},y,{ref:Y})},b),PaperProps:wi({},k,{style:wi({pointerEvents:"temporary"!==M||E?"":"none"},k.style),ref:K}),anchor:r,transitionDuration:$.current||P,onClose:x,ref:t},L)),!d&&"temporary"===M&&o.createElement(Fu,null,o.createElement(Zg,wi({anchor:r,ref:F,width:R},S))))}));var av=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"secondary":i,s=e.edge,l=void 0!==s&&s,c=e.size,u=void 0===c?"medium":c,d=Ci(e,["classes","className","color","edge","size"]),p=o.createElement("span",{className:n.thumb});return o.createElement("span",{className:Rc(n.root,r,{start:n.edgeStart,end:n.edgeEnd}[l],{small:n["size".concat(Yc(u))]}[u])},o.createElement(cp,wi({type:"checkbox",icon:p,checkedIcon:p,classes:{root:Rc(n.switchBase,n["color".concat(Yc(a))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},d)),o.createElement("span",{className:n.track}))}));_c((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle"},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(50%)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:vi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:vi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(av);var sv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disabled,a=void 0!==i&&i,s=e.disableFocusRipple,l=void 0!==s&&s,c=e.fullWidth,u=e.icon,d=e.indicator,p=e.label,f=e.onChange,h=e.onClick,m=e.selected,g=e.textColor,v=void 0===g?"inherit":g,y=e.value,b=e.wrapped,x=void 0!==b&&b,w=Ci(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","selected","textColor","value","wrapped"]);return o.createElement(td,wi({focusRipple:!l,className:Rc(n.root,n["textColor".concat(Yc(v))],r,a&&n.disabled,m&&n.selected,p&&u&&n.labelIcon,c&&n.fullWidth,x&&n.wrapped),ref:t,role:"tab","aria-selected":m,disabled:a,onClick:function(e){f&&f(e,y),h&&h(e)}},w),o.createElement("span",{className:n.wrapper},u,p),d)}));_c((function(e){var t;return{root:wi({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},xi(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),xi(t,"overflow","hidden"),xi(t,"whiteSpace","normal"),xi(t,"textAlign","center"),xi(t,e.breakpoints.up("sm"),{fontSize:e.typography.pxToRem(13),minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(sv);var lv=o.createContext(),cv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"table":i,s=e.padding,l=void 0===s?"default":s,c=e.size,u=void 0===c?"medium":c,d=e.stickyHeader,p=void 0!==d&&d,f=Ci(e,["classes","className","component","padding","size","stickyHeader"]),h=o.useMemo((function(){return{padding:l,size:u,stickyHeader:p}}),[l,u,p]);return o.createElement(lv.Provider,{value:h},o.createElement(a,wi({ref:t,className:Rc(n.root,r,p&&n.stickyHeader)},f)))}));_c((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":wi({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(cv);var uv=o.createContext(),dv={variant:"body"},pv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tbody":i,s=Ci(e,["classes","className","component"]);return o.createElement(uv.Provider,{value:dv},o.createElement(a,wi({className:Rc(n.root,r),ref:t},s)))}));_c({root:{display:"table-row-group"}},{name:"MuiTableBody"})(pv);var fv=o.forwardRef((function(e,t){var n,r=e.align,i=void 0===r?"inherit":r,a=e.classes,s=e.className,l=e.component,c=e.padding,u=e.scope,d=e.size,p=e.sortDirection,f=e.variant,h=Ci(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),m=o.useContext(lv),g=o.useContext(uv);n=l||(g&&"head"===g.variant?"th":"td");var v=u;!v&&g&&"head"===g.variant&&(v="col");var y=c||(m&&m.padding?m.padding:"default"),b=d||(m&&m.size?m.size:"medium"),x=f||g&&g.variant,w=null;return p&&(w="asc"===p?"ascending":"descending"),o.createElement(n,wi({ref:t,className:Rc(a.root,a[x],s,"inherit"!==i&&a["align".concat(Yc(i))],"default"!==y&&a["padding".concat(Yc(y))],"medium"!==b&&a["size".concat(Yc(b))],{head:m&&m.stickyHeader&&a.stickyHeader}[x]),"aria-sort":w,scope:v},h))})),hv=_c((function(e){return{root:wi({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?bi(vi(e.palette.divider,1),.88):yi(vi(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0px 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(fv),mv={variant:"footer"},gv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tfoot":i,s=Ci(e,["classes","className","component"]);return o.createElement(uv.Provider,{value:mv},o.createElement(a,wi({className:Rc(n.root,r),ref:t},s)))}));_c({root:{display:"table-footer-group"}},{name:"MuiTableFooter"})(gv);var vv={variant:"head"},yv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"thead":i,s=Ci(e,["classes","className","component"]);return o.createElement(uv.Provider,{value:vv},o.createElement(a,wi({className:Rc(n.root,r),ref:t},s)))}));_c({root:{display:"table-header-group"}},{name:"MuiTableHead"})(yv);var bv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=e.disableGutters,l=void 0!==s&&s,c=e.variant,u=void 0===c?"regular":c,d=Ci(e,["classes","className","component","disableGutters","variant"]);return o.createElement(a,wi({className:Rc(n.root,n[u],r,!l&&n.gutters),ref:t},d))})),xv=_c((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:xi({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(bv),wv=$d(o.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),Ev=$d(o.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),Cv=o.createElement(Ev,null),kv=o.createElement(wv,null),Sv=o.createElement(wv,null),Tv=o.createElement(Ev,null),Rv=o.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,i=e.nextIconButtonProps,a=e.onChangePage,s=e.page,l=e.rowsPerPage,c=Ci(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),u=Uc();return o.createElement("div",wi({ref:t},c),o.createElement(sp,wi({onClick:function(e){a(e,s-1)},disabled:0===s,color:"inherit"},n),"rtl"===u.direction?Cv:kv),o.createElement(sp,wi({onClick:function(e){a(e,s+1)},disabled:s>=Math.ceil(r/l)-1,color:"inherit"},i),"rtl"===u.direction?Sv:Tv))})),Nv=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(-1===n?r:n," of ").concat(r)},Pv=[10,25,50,100],Dv=o.forwardRef((function(e,t){var n,r=e.ActionsComponent,i=void 0===r?Rv:r,a=e.backIconButtonProps,s=e.classes,l=e.className,c=e.colSpan,u=e.component,d=void 0===u?hv:u,p=e.count,f=e.labelDisplayedRows,h=void 0===f?Nv:f,m=e.labelRowsPerPage,g=void 0===m?"Rows per page:":m,v=e.nextIconButtonProps,y=e.onChangePage,b=e.onChangeRowsPerPage,x=e.page,w=e.rowsPerPage,E=e.rowsPerPageOptions,C=void 0===E?Pv:E,k=e.SelectProps,S=void 0===k?{}:k,T=Ci(e,["ActionsComponent","backIconButtonProps","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);d!==hv&&"td"!==d||(n=c||1e3);var R=S.native?"option":Fh;return o.createElement(d,wi({className:Rc(s.root,l),colSpan:n,ref:t},T),o.createElement(xv,{className:s.toolbar},o.createElement("div",{className:s.spacer}),C.length>1&&o.createElement(Wd,{color:"inherit",variant:"body2",className:s.caption},g),C.length>1&&o.createElement(bg,wi({classes:{select:s.select,icon:s.selectIcon},input:o.createElement(Cf,{className:Rc(s.input,s.selectRoot)}),value:w,onChange:b},S),C.map((function(e){return o.createElement(R,{className:s.menuItem,key:e,value:e.value?e.value:e},e.label?e.label:e)}))),o.createElement(Wd,{color:"inherit",variant:"body2",className:s.caption},h({from:0===p?0:x*w+1,to:Math.min(p,(x+1)*w),count:p,page:x})),o.createElement(i,{className:s.actions,backIconButtonProps:a,count:p,nextIconButtonProps:v,onChangePage:y,page:x,rowsPerPage:w})))}));_c((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{top:1},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(Dv);var Mv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tr":i,s=e.hover,l=void 0!==s&&s,c=e.selected,u=void 0!==c&&c,d=Ci(e,["classes","className","component","hover","selected"]),p=o.useContext(uv);return o.createElement(a,wi({ref:t,className:Rc(n.root,r,p&&{head:n.head,footer:n.footer}[p.variant],l&&n.hover,u&&n.selected)},d))}));_c((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$selected":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.08)"},"&$hover:hover":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.07)":"rgba(255, 255, 255, 0.14)"}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(Mv);var Lv=$d(o.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),Iv=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.children,a=e.classes,s=e.className,l=e.direction,c=void 0===l?"desc":l,u=e.hideSortIcon,d=void 0!==u&&u,p=e.IconComponent,f=void 0===p?Lv:p,h=Ci(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return o.createElement(td,wi({className:Rc(a.root,s,r&&a.active),component:"span",disableRipple:!0,ref:t},h),i,d&&!r?null:o.createElement(f,{className:Rc(a.icon,a["iconDirection".concat(Yc(c))])}))}));_c((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:1}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(Iv);var Av,Ov=!("undefined"==typeof window||!window.document||!window.document.createElement);function qv(){if(Av)return Av;if(!Ov||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Av="reverse",e.scrollLeft>0?Av="default":(e.scrollLeft=1,0===e.scrollLeft&&(Av="negative")),document.body.removeChild(e),Av}function zv(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=qv();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n}return n}function Fv(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var Wv={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Hv(e){var t=e.onChange,n=Ci(e,["onChange"]),r=o.useRef(),i=o.useRef(null),a=function(){r.current=i.current.offsetHeight-i.current.clientHeight};return o.useEffect((function(){var e=Zp((function(){var e=r.current;a(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),o.useEffect((function(){a(),t(r.current)}),[t]),o.createElement("div",wi({style:Wv,ref:i},n))}var Bv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=e.orientation,s=Ci(e,["classes","className","color","orientation"]);return o.createElement("span",wi({className:Rc(n.root,n["color".concat(Yc(i))],r,{vertical:n.vertical}[a]),ref:t},s))})),$v=_c((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(Bv),jv=o.createElement(wv,{fontSize:"small"}),Vv=o.createElement(Ev,{fontSize:"small"}),Uv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.direction,a=e.orientation,s=e.visible,l=Ci(e,["classes","className","direction","orientation","visible"]),c=Rc(n.root,r,{vertical:n.vertical}[a]);return s?o.createElement(td,wi({component:"div",className:c,ref:t,role:null,tabIndex:null},l),"left"===i?jv:Vv):o.createElement("div",{className:c})})),_v=_c({root:{width:40,flexShrink:0},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}}},{name:"PrivateTabScrollButton"})(Uv),Yv=o.forwardRef((function(e,t){var n=e.action,r=e.centered,i=void 0!==r&&r,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"div":c,d=e.indicatorColor,p=void 0===d?"secondary":d,f=e.onChange,h=e.orientation,m=void 0===h?"horizontal":h,g=e.ScrollButtonComponent,v=void 0===g?_v:g,y=e.scrollButtons,b=void 0===y?"auto":y,x=e.TabIndicatorProps,w=void 0===x?{}:x,E=e.textColor,C=void 0===E?"inherit":E,k=e.value,S=e.variant,T=void 0===S?"standard":S,R=Ci(e,["action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","value","variant"]),N=Uc(),P="scrollable"===T,D="rtl"===N.direction,M="vertical"===m,L=M?"scrollTop":"scrollLeft",I=M?"top":"left",A=M?"bottom":"right",O=M?"clientHeight":"clientWidth",q=M?"height":"width",z=o.useState(!1),F=z[0],W=z[1],H=o.useState({}),B=H[0],$=H[1],j=o.useState({start:!1,end:!1}),V=j[0],U=j[1],_=o.useState({overflow:"hidden",marginBottom:null}),Y=_[0],K=_[1],X=new Map,G=o.useRef(null),Z=o.useRef(null),J=function(){var e,t,n=G.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:zv(n,N.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==k){var o=Z.current.children;if(o.length>0){var i=o[X.get(k)];t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Q=qu((function(){var e,t=J(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(M)o=r.top-n.top+n.scrollTop;else{var i=D?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(xi(e={},I,o),xi(e,q,r?r[q]:0),e);if(isNaN(B[I])||isNaN(B[q]))$(a);else{var s=Math.abs(B[I]-a[I]),l=Math.abs(B[q]-a[q]);(s>=1||l>=1)&&$(a)}})),ee=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?Fv:i,s=r.duration,l=void 0===s?300:s,c=null,u=t[e],d=!1,p=function(){d=!0},f=function r(i){if(d)o(new Error("Animation cancelled"));else{null===c&&(c=i);var s=Math.min(1,(i-c)/l);t[e]=a(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};u===n?o(new Error("Element already at target position")):requestAnimationFrame(f)}(L,G.current,e)},te=function(e){var t=G.current[L];M?t+=e:(t+=e*(D?-1:1),t*=D&&"reverse"===qv()?-1:1),ee(t)},ne=function(){te(-G.current[O])},re=function(){te(G.current[O])},oe=o.useCallback((function(e){K({overflow:null,marginBottom:-e})}),[]),ie=qu((function(){var e=J(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[I]<t[I]){var r=t[L]+(n[I]-t[I]);ee(r)}else if(n[A]>t[A]){var o=t[L]+(n[A]-t[A]);ee(o)}})),ae=qu((function(){if(P&&"off"!==b){var e,t,n=G.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(M)e=r>1,t=r<o-i-1;else{var l=zv(G.current,N.direction);e=D?l<a-s-1:l>1,t=D?l>1:l<a-s-1}e===V.start&&t===V.end||U({start:e,end:t})}}));o.useEffect((function(){var e=Zp((function(){Q(),ae()})),t=Lp(G.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[Q,ae]);var se=o.useCallback(Zp((function(){ae()})));o.useEffect((function(){return function(){se.clear()}}),[se]),o.useEffect((function(){W(!0)}),[]),o.useEffect((function(){Q(),ae()})),o.useEffect((function(){ie()}),[ie,B]),o.useImperativeHandle(n,(function(){return{updateIndicator:Q,updateScrollButtons:ae}}),[Q,ae]);var le=o.createElement($v,wi({className:s.indicator,orientation:m,color:p},w,{style:wi({},B,{},w.style)})),ce=0,ue=o.Children.map(a,(function(e){if(!o.isValidElement(e))return null;var t=void 0===e.props.value?ce:e.props.value;X.set(t,ce);var n=t===k;return ce+=1,o.cloneElement(e,{fullWidth:"fullWidth"===T,indicator:n&&!F&&le,selected:n,onChange:f,textColor:C,value:t})})),de=function(){var e={};e.scrollbarSizeListener=P?o.createElement(Hv,{className:s.scrollable,onChange:oe}):null;var t=V.start||V.end,n=P&&("auto"===b&&t||"desktop"===b||"on"===b);return e.scrollButtonStart=n?o.createElement(v,{orientation:m,direction:D?"right":"left",onClick:ne,visible:V.start,className:Rc(s.scrollButtons,"on"!==b&&s.scrollButtonsDesktop)}):null,e.scrollButtonEnd=n?o.createElement(v,{orientation:m,direction:D?"left":"right",onClick:re,visible:V.end,className:Rc(s.scrollButtons,"on"!==b&&s.scrollButtonsDesktop)}):null,e}();return o.createElement(u,wi({className:Rc(s.root,l,M&&s.vertical),ref:t},R),de.scrollButtonStart,de.scrollbarSizeListener,o.createElement("div",{className:Rc(s.scroller,P?s.scrollable:s.fixed),style:Y,ref:G,onScroll:se},o.createElement("div",{className:Rc(s.flexContainer,M&&s.flexContainerVertical,i&&!P&&s.centered),ref:Z,role:"tablist"},ue),F&&le),de.scrollButtonEnd)}));_c((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:xi({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(Yv);var Kv={standard:th,filled:Sf,outlined:Kh},Xv=o.forwardRef((function(e,t){var n=e.autoComplete,r=e.autoFocus,i=e.children,a=e.classes,s=e.className,c=e.color,u=void 0===c?"primary":c,d=e.defaultValue,p=e.error,f=e.FormHelperTextProps,h=e.fullWidth,m=e.helperText,g=e.hiddenLabel,v=e.id,y=e.InputLabelProps,b=e.inputProps,x=e.InputProps,w=e.inputRef,E=e.label,C=e.multiline,k=e.name,S=e.onBlur,T=e.onChange,R=e.onFocus,N=e.placeholder,P=e.required,D=void 0!==P&&P,M=e.rows,L=e.rowsMax,I=e.select,A=void 0!==I&&I,O=e.SelectProps,q=e.type,z=e.value,F=e.variant,W=void 0===F?"standard":F,H=Ci(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]),B=o.useState(0),$=B[0],j=B[1],V=o.useRef(null);o.useEffect((function(){if("outlined"===W){var e=l.findDOMNode(V.current);j(null!=e?e.offsetWidth:0)}}),[W,D,E]);var U={};"outlined"===W&&(y&&void 0!==y.shrink&&(U.notched=y.shrink),U.labelWidth=$),A&&(O&&O.native||(U.id=void 0),U["aria-describedby"]=void 0);var _=m&&v?"".concat(v,"-helper-text"):void 0,Y=E&&v?"".concat(v,"-label"):void 0,K=Kv[W],X=o.createElement(K,wi({"aria-describedby":_,autoComplete:n,autoFocus:r,defaultValue:d,fullWidth:h,multiline:C,name:k,rows:M,rowsMax:L,type:q,value:z,id:v,inputRef:w,onBlur:S,onChange:T,onFocus:R,placeholder:N,inputProps:b},U,x));return o.createElement(Nf,wi({className:Rc(a.root,s),error:p,fullWidth:h,hiddenLabel:g,ref:t,required:D,color:u,variant:W},H),E&&o.createElement(oh,wi({htmlFor:v,ref:V,id:Y},y),E),A?o.createElement(bg,wi({"aria-describedby":_,id:v,labelId:Y,value:z,input:X},O),i):X,m&&o.createElement(If,wi({id:_},f),m))}));function Gv(e){return Math.round(1e5*e)/1e5}_c({root:{}},{name:"MuiTextField"})(Xv);var Zv=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.disableFocusListener,a=void 0!==i&&i,s=e.disableHoverListener,c=void 0!==s&&s,u=e.disableTouchListener,d=void 0!==u&&u,p=e.enterDelay,f=void 0===p?0:p,h=e.enterTouchDelay,m=void 0===h?700:h,g=e.id,v=e.interactive,y=void 0!==v&&v,b=e.leaveDelay,x=void 0===b?0:b,w=e.leaveTouchDelay,E=void 0===w?1500:w,C=e.onClose,k=e.onOpen,S=e.open,T=e.placement,R=void 0===T?"bottom":T,N=e.PopperProps,P=e.title,D=e.TransitionComponent,M=void 0===D?_f:D,L=e.TransitionProps,I=Ci(e,["children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperProps","title","TransitionComponent","TransitionProps"]),A=Uc(),O=o.useState(!1),q=O[0],z=O[1],F=o.useState(0)[1],W=o.useState(),H=W[0],B=W[1],$=o.useRef(!1),j=o.useRef(null!=S).current,V=o.useRef(),U=o.useRef(),_=o.useRef(),Y=o.useRef(),K=o.useRef();o.useEffect((function(){V.current||(V.current="mui-tooltip-".concat(Math.round(1e5*Math.random()))),S&&F((function(e){return!e}))}),[S]),o.useEffect((function(){return function(){clearTimeout(U.current),clearTimeout(_.current),clearTimeout(Y.current),clearTimeout(K.current)}}),[]);var X=function(e){j||q||z(!0),k&&k(e)},G=function(e){var t=n.props;"mouseover"===e.type&&t.onMouseOver&&t.onMouseOver(e),$.current&&"touchstart"!==e.type||(H&&H.removeAttribute("title"),clearTimeout(_.current),clearTimeout(Y.current),f?(e.persist(),_.current=setTimeout((function(){X(e)}),f)):X(e))},Z=Ku(),J=Z.isFocusVisible,Q=Z.onBlurVisible,ee=Z.ref,te=o.useState(!1),ne=te[0],re=te[1],oe=function(e){j||z(!1),C&&C(e),clearTimeout(U.current),U.current=setTimeout((function(){$.current=!1}),A.transitions.duration.shortest)},ie=function(e){var t=n.props;"blur"===e.type&&(t.onBlur&&t.onBlur(e),ne&&(re(!1),Q())),"mouseleave"===e.type&&t.onMouseLeave&&t.onMouseLeave(e),clearTimeout(_.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),x)},ae=Ru(B,t),se=Ru(ee,ae),le=o.useCallback((function(e){Tu(se,l.findDOMNode(e))}),[se]),ce=Ru(n.ref,le),ue=j?S:q;""===P&&(ue=!1);var de=!ue&&!c,pe=wi({"aria-describedby":ue?g||V.current:null,title:de&&"string"==typeof P?P:null},I,{},n.props,{className:Rc(I.className,n.props.className)});d||(pe.onTouchStart=function(e){$.current=!0;var t=n.props;t.onTouchStart&&t.onTouchStart(e),clearTimeout(Y.current),clearTimeout(U.current),clearTimeout(K.current),e.persist(),K.current=setTimeout((function(){G(e)}),m)},pe.onTouchEnd=function(e){n.props.onTouchEnd&&n.props.onTouchEnd(e),clearTimeout(K.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),E)}),c||(pe.onMouseOver=G,pe.onMouseLeave=ie),a||(pe.onFocus=function(e){H||B(e.currentTarget),J(e)&&(re(!0),G(e));var t=n.props;t.onFocus&&t.onFocus(e)},pe.onBlur=ie);var fe=y?{onMouseOver:pe.onMouseOver,onMouseLeave:pe.onMouseLeave,onFocus:pe.onFocus,onBlur:pe.onBlur}:{};return o.createElement(o.Fragment,null,o.cloneElement(n,wi({ref:ce},pe)),o.createElement(og,wi({className:Rc(r.popper,y&&r.popperInteractive),placement:R,anchorEl:H,open:!!H&&ue,id:pe["aria-describedby"],transition:!0},fe,N),(function(e){var t=e.placement,n=e.TransitionProps;return o.createElement(M,wi({timeout:A.transitions.duration.shorter},n,L),o.createElement("div",{className:Rc(r.tooltip,r["tooltipPlacement".concat(Yc(t.split("-")[0]))],$.current&&r.touch)},P))})))}));_c((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none",flip:!1},popperInteractive:{pointerEvents:"auto"},tooltip:{backgroundColor:vi(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(Gv(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(Gv(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:xi({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:xi({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:xi({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:xi({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip"})(Zv);var Jv={entering:{transform:"none"},entered:{transform:"none"}},Qv={enter:pa.enteringScreen,exit:pa.leavingScreen};function ey(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function ty({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:ey(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return o.createElement("i",{style:i},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.createElement("path",{d:e})))}o.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,a=e.onExit,s=e.style,l=e.timeout,c=void 0===l?Qv:l,u=Ci(e,["children","in","onEnter","onExit","style","timeout"]),d=Uc(),p=Ru(n.ref,t);return o.createElement(au,wi({appear:!0,in:r,onEnter:function(e,t){ku(e);var n=Su({style:s,timeout:c},{mode:"enter"});e.style.webkitTransition=d.transitions.create("transform",n),e.style.transition=d.transitions.create("transform",n),i&&i(e,t)},onExit:function(e){var t=Su({style:s,timeout:c},{mode:"exit"});e.style.webkitTransition=d.transitions.create("transform",t),e.style.transition=d.transitions.create("transform",t),a&&a(e)},timeout:c},u),(function(e,t){return o.cloneElement(n,wi({style:wi({transform:"scale(0)",visibility:"exited"!==e||r?void 0:"hidden"},Jv[e],{},s,{},n.props.style),ref:p},t))}))}));const ny={d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"},ry={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},oy="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",iy={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},ay={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};function sy(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.",e.layout);let r=Bo.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function ly(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=Q(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),sy(e,a,c)}))}const cy=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))};function uy({dir:e,dock:t,altList:n,model:r,translator:o,app:i,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives:()=>cy(i,n).then((e=>Promise.all(n.filter((t=>!e.includes(t.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(e,i,o).then((t=>({id:e.qDef.cId,selected:!1,title:t})))))))),changeTo(e,t){ly(r,e,t,"qDimensions",a)}}}function dy(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(o=e,"H"===o.qGrouping?o.title||"":o.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)},id:e.cId};var o}function py({altList:e,app:t,dir:n,dock:r,model:o,onChange:i,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives:()=>cy(t,e).then((n=>Promise.all(e.filter((e=>!n.includes(e.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t})))))))),changeTo(e,t){ly(o,e,t,"qMeasures",i,a)}}}function fy(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}const hy={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}},my=({children:e,...t})=>o.createElement(Kd,V({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);function gy(e){function t({title:e,selected:t,onClick:n}){const r=pe.detectTextDirection(e);return o.createElement(fh,{role:"menuitem",button:!0,onClick:n,style:{textAlign:"start"}},o.createElement(gh,{style:{minWidth:32}},o.createElement(ty,{d:t?oy:""})),o.createElement(bh,{primaryTypographyProps:{dir:r}},e))}function n({alignTo:e,changeTo:n,current:r,dir:i,dock:a,list:s,onClose:l,show:c,instruction:u}){const d=s.map((e=>o.createElement(t,{key:e.id,title:e.title,onClick:()=>n(e.id)})));return o.createElement(Th,V({anchorEl:e,open:c,onClose:l},hy[a],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),o.createElement(uh,{dense:!0,dir:i,"aria-label":u,component:"nav"},o.createElement(t,{title:r,selected:!0,onClick:l}),d))}t.propTypes={title:Jo.exports.string.isRequired,selected:Jo.exports.bool,onClick:Jo.exports.func.isRequired},t.defaultProps={selected:!1},n.propTypes={alignTo:Jo.exports.any,changeTo:Jo.exports.func.isRequired,current:Jo.exports.string.isRequired,dir:Jo.exports.string.isRequired,dock:Jo.exports.string.isRequired,list:Jo.exports.array,onClose:Jo.exports.func.isRequired,show:Jo.exports.bool.isRequired,instruction:Jo.exports.string.isRequired},n.defaultProps={list:[],alignTo:null};class r extends o.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasValidAlternatives:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=o.createRef()}componentDidMount(){const{selections:e}=this.props;e&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),e.addListener("activated",this.onSelectionsActivated),e.addListener("deactivated",this.onSelectionsDeactivated),e.addListener("canceled",this.onSelectionsDeactivated))}componentDidUpdate(e,t){const{popover:n,supportConditional:r}=this.props;n&&r&&n.getAlternatives().then((e=>{t.hasValidAlternatives!==(0!==e.length)&&this.setState({hasValidAlternatives:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.id,e),this.closePopover()}openPopover(){this.state.closeTime&&Date.now()-this.state.closeTime<20||this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e})}))}closePopover(){this.setState({open:!1,closeTime:Date.now()})}render(){const{titleData:e,popover:t,translator:r,disabled:i,isDimension:a,padding:s,minWidth:l,hasAlternative:c,supportConditional:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},p=e.breadcrumbs.length,f=i||this.state.inSelection,h=e.breadcrumbs.map(((t,n)=>o.createElement(my,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:e.drillUp(p-n),title:t},o.createElement("span",{style:d},t),o.createElement(ty,V({},ay,{size:"small",style:{margin:"0 8px"}}))))),m=u?this.state.hasValidAlternatives:c,g=t&&!this.state.open?this.openPopover:this.closePopover,v=!t||i||this.state.inSelection,y={display:"flex",alignItems:"center",width:"100%",color:v&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!a&&v&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(y.background="rgba(0,0,0,0.08)");s&&(y.padding=s),l&&(y.minWidth=l);const b=pe.detectTextDirection(e.text),x=o.createElement(my,{"aria-label":r.get("Accessibility.Alternative.Instructions",[e.text]),style:y,onClick:v?void 0:g,title:e.text,tabIndex:v?-1:0,onFocus:v?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:v?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()}},e.locked&&o.createElement(ty,V({},ry,{size:"small",title:r.get("Tooltip.selections.locked")})),o.createElement("span",{style:d,dir:b},e.text),t&&m&&o.createElement(ty,V({},iy,{size:"small",style:{margin:"0 8px"}})));return o.createElement(o.Fragment,null,e.drilldown&&o.createElement(ty,V({},ny,{size:"small",title:r.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),h,o.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},x),t&&m&&o.createElement(n,{dock:t.dock,dir:t.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function i(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function a(e){return!e.isDimension&&se(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return r.propTypes={disabled:Jo.exports.bool.isRequired,padding:Jo.exports.string,minWidth:Jo.exports.string,titleData:Jo.exports.shape({breadcrumbs:Jo.exports.arrayOf(Jo.exports.string).isRequired,drilldown:Jo.exports.bool.isRequired,index:Jo.exports.number.isRequired,locked:Jo.exports.bool.isRequired,text:Jo.exports.string.isRequired,popoverText:Jo.exports.string.isRequired,drillUp:Jo.exports.func,id:Jo.exports.string.isRequired}).isRequired,popover:Jo.exports.shape({dir:Jo.exports.string.isRequired,dock:Jo.exports.string.isRequired,changeTo:Jo.exports.func.isRequired,getAlternatives:Jo.exports.func.isRequired}),translator:Jo.exports.shape({get:Jo.exports.func.isRequired}).isRequired,selections:Jo.exports.shape({isActive:Jo.exports.func,addListener:Jo.exports.func,removeListener:Jo.exports.func}),style:Jo.exports.shape({fontSize:Jo.exports.string,color:Jo.exports.string,fontFamily:Jo.exports.string}).isRequired,isDimension:Jo.exports.bool.isRequired,hasAlternative:Jo.exports.bool.isRequired,supportConditional:Jo.exports.bool.isRequired},r.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:t}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||a(this.settings.settings)?Math.max(28,t):Math.max(20,t)},render(){const{settings:{app:e,disabled:t,explicitItemInfos:n,hyperCube:s,hyperCubeDef:l,isDimension:c,minWidth:u,model:d,onChangeToAlternative:p,padding:f,rtl:h,selections:m,skipAttributeExpressions:g,translator:v,supportConditional:y=!1},layout:{dock:b}}=this.settings,x="top"!==b&&"bottom"!==b||!h?"ltr":"rtl",w=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(b,this.rect),E=l&&l.qLayoutExclude&&l.qLayoutExclude.qHyperCubeDef,C=E&&E[c?"qDimensions":"qMeasures"]||[],k=n||s[c?"qDimensionInfo":"qMeasureInfo"],S=c?uy:py,T=c?dy:fy,R=d&&d.colorSupport&&d.modifiers&&S({altList:C,app:e,dir:h?"rtl":"ltr",dock:i(b),model:d,onChange:p,skipAttributeExpressions:g,translator:v}),N=(P=this.settings.settings).isDimension&&se(P,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||a(this.settings.settings);var P;const D=k.map(((e,n)=>{const i="number"==typeof e.explicitColumn?e.explicitColumn:n,a=T(e,i,d),s=n===k.length-1;return o.createElement(o.Fragment,{key:e.cId},o.createElement(r,{popover:R,titleData:a,model:d,translator:v,selections:m,disabled:t(),style:this.style,isDimension:c,padding:f,minWidth:u,hasAlternative:N,supportConditional:y}),!s&&o.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return o.createElement("div",{style:w,dir:x},D)}}}const vy=ga({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const yy=ba({productionPrefix:"qbee6",disableGlobal:!0,seed:""});function by(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const a={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=Math.round(i.margin.left+i.x*t)+"px",r.style.top=Math.round(i.margin.top+i.y*n)+"px",r.style.width=Math.round(i.width)+"px",r.style.height=Math.round(i.height)+"px",r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",l.render(function(e,t){return o.createElement(hc,{generateClassName:t},o.createElement($c,{theme:vy},e))}(e,yy),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&l.unmountComponentAtNode(r),a),destroy(){r&&r.parentElement&&(l.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return a}}function xy(){return function(e){e.renderer("react",by()),e.component("data-title",gy(e.renderer("svg")())),e.component("disclaimer",function(){class e extends o.Component{render(){const{label:e,spanStyle:t}=this.props;return o.createElement(o.Fragment,null,o.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:Jo.exports.string.isRequired,spanStyle:Jo.exports.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r},style:i={}}=this.settings,a="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",s=function(e,t,n){const r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.fontFamily||'"Source Sans Pro", "Arial", "sans-serif"'};switch(t){case"left":r.width=n.height+"px",r.transform=`rotate(-90deg) translate(-${n.height}px, 0)`,r.transformOrigin="top left";break;case"right":r.width=n.height+"px",r.transform=`rotate(90deg) translate(0, -${n.width}px)`,r.transformOrigin="top left";break;case"center":r.width=n.width+"px",r.height=n.height+"px",r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:case"top":case"bottom":r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(i,r,this.rect),l="center"===r?t:"* "+t,c="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return o.createElement("div",{style:s,dir:a},o.createElement(o.Fragment,null,o.createElement(e,{label:l,spanStyle:c})))}}}())}}function wy(e){return dt(e).l<70}function Ey(e,t){const n=dt(e).l/100,r=dt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Cy(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var ky={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const o=[];let i=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=i.attrs.fill,a=t.attrs.fill;if(Ey(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,i.desc.slice.innerRadius),s=Math.min(s,i.desc.slice.outerRadius),s>r){const t=Cy({r:s,a:e},n),i=Cy({r:r,a:e},n);o.push({type:"line",x1:t.x,y1:t.y,x2:i.x,y2:i.y,strokeWidth:1,opacity:.4,stroke:wy(a)?"#ccc":"#333"})}}i=t}return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Sy(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function Ty(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),o=Math.sin(t),i=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:Sy(s)}}var Ry={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(o={r:t.offset,a:l},{x:(i=s).x+o.r*Math.sin(o.a),y:i.y-o.r*Math.cos(o.a)}),u=Ty({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var o,i;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Ny(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return function(t){t.interaction("hammer",j(e))};e.interaction("hammer",j(Hammer))}(t)),e.use(xy()),e.component("pie-dividers",ky),e.component("negative-indicators",Ry),e}var Py={};function Dy(){Dy.init.call(this)}Py.isObject=function(e){return"object"==typeof e&&null!==e},Py.isNumber=function(e){return"number"==typeof e},Py.isUndefined=function(e){return void 0===e},Py.isFunction=function(e){return"function"==typeof e};var My=Dy;Dy.EventEmitter=Dy,Dy.prototype._events=void 0,Dy.prototype._maxListeners=void 0,Dy.defaultMaxListeners=10,Dy.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Dy.prototype.setMaxListeners=function(e){if(!Py.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Dy.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Py.isUndefined(n))return!1;if(Py.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Py.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Dy.prototype.addListener=function(e,t){var n;if(!Py.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Py.isFunction(t.listener)?t.listener:t),this._events[e]?Py.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Py.isObject(this._events[e])&&!this._events[e].warned)&&((n=Py.isUndefined(this._maxListeners)?Dy.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Py.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Py.isFunction(console.trace)&&console.trace()));return this},Dy.prototype.on=Dy.prototype.addListener,Dy.prototype.once=function(e,t){if(!Py.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Dy.prototype.removeListener=function(e,t){var n,r,o,i;if(!Py.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Py.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Py.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Dy.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Py.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Dy.prototype.listeners=function(e){return this._events&&this._events[e]?Py.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Dy.listenerCount=function(e,t){return e._events&&e._events[t]?Py.isFunction(e._events[t])?1:e._events[t].length:0};function Ly(){const e={};var t;return t=e,Object.keys(My.prototype).forEach((e=>{t[e]=My.prototype[e]})),My.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}const Iy={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function Ay(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Oy={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function qy(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r,o,i;let a,s,l,c,u,d;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(r=n.session)&&void 0!==r&&r.sessionConfig||null!==(o=e.session)&&void 0!==o&&null!==(i=o.config)&&void 0!==i&&i.url)){var p;if(a=e.session.options||(null===(p=e.enigmaModel)||void 0===p?void 0:p.session.sessionConfig),!a){var f;a=null===(f=e.session)||void 0===f?void 0:f.config;const t=new URL(a.url);a.host=t.hostname,a.port=t.port,a.isSecure="wss:"===t.protocol}return d=void 0!==a.secure?a.secure:a.isSecure,s=d?"https://":"http://",l=a.host||"localhost",c=a.port?":"+a.port:"",u=a.prefix?a.prefix:"/","/"!==u[u.length-1]&&(u+="/"),s+l+c+u}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await Oy.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function zy(e,t,n,r){var o,i,a,s,l,c;const{app:u,flags:d}=t,p=null===(o=e.layout)||void 0===o||null===(i=o.tooltip)||void 0===i?void 0:i.imageComponents;if(!p)return[];const[f]=p,h=f.size||"small",m=f.type||"media";let g=-1;for(let e=0;e<n.length;e++)if(n[e].cId===f.cId){g=e;break}const v=(null===(a=r.data)||void 0===a||null===(s=a.customTooltipAttrExps)||void 0===s?void 0:s.value)||[];let y;if(-1!==g&&v[g]&&(y=v[g]),"media"===m&&null!==(l=f.ref)&&void 0!==l&&null!==(c=l.qStaticContentUrl)&&void 0!==c&&c.qUrl)return qy(f,h,u);if("url"===m)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Ay(a))try{const t="data:image/png;base64, "+await e.getImage(a),{height:n,width:o,imageError:s}=await Oy.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Oy.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(u,d,f,h,y);if(d.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===m&&y&&y.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Ay(a))try{const t=await e.getImage(a);if(t){const e="data:image/png;base64, "+t,{height:r,width:i,imageError:a}=await Oy.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(u,n[g],h,y)}return[]}const Fy={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(zy(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t,n;const r=null===(t=e.layout)||void 0===t||null===(n=t.tooltip)||void 0===n?void 0:n.imageComponents;return!!r&&r.length>0}},Wy={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await Fy.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>Fy.checkIfPromisesExist({customTooltipModel:e})};const Hy=(e,t)=>{var n,r,o;const i=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:Iy.CHART.CHART_PARENT_TYPE,qId:Iy.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},By=e=>{var t,n,r;const o=null===(t=e.tooltip)||void 0===t||null===(n=t.chart)||void 0===n||null===(r=n.object)||void 0===r?void 0:r.refId;return{qInfo:{qType:Iy.CHART.CHART_CHILD_TYPE},qExtendsId:o}};const $y={createContainer:({ctx:e,layout:t})=>{var n,r;if(!((null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r?void 0:r.length)<=0))return function(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.tooltip)||void 0===r||null===(o=r.chart)||void 0===o||null===(i=o.style)||void 0===i?void 0:i.size)&&void 0!==n?n:"medium",s=Iy.CHART.STYLE[a];return[{content:[e.h("div",{style:{display:"flex",width:s,height:s,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:Iy.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":s,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a,s,l;const c=o,u=null==t||null===(a=t.tooltip)||void 0===a||null===(s=a.chart)||void 0===s||null===(l=s.object)||void 0===l?void 0:l.refId;if(null!=c&&c.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&u&&!(t.qHyperCubeDef.qDimensions.length<=0)){await $y.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=Iy.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=Iy.CHART.STATE,a=Hy(t,i),s=await e.createSessionObject(a),l=By(t);if(s.id!==Iy.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(c.miniChartToken.alternateState&&c.miniChartToken.sessionObj&&a){var d,p,f,h;const e=n.length>0&&void 0!==(null===(d=n[0].data)||void 0===d?void 0:d.value)?[null===(p=n[0].data)||void 0===p?void 0:p.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var m,g;const e=null!==(m=n[0].data.selectionOuterDimension)&&void 0!==m?m:n[0].data.selectionDimension;if(null!=e&&null!==(g=e.source)&&void 0!==g&&g.field){var v;const t=null==e||null===(v=e.source)||void 0===v?void 0:v.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const s=document.getElementById(Iy.CHART.CONTAINER_ID),l={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};c.miniChartToken.vis=await o.embed.render({element:s,model:c.miniChartToken.model,options:l,id:null===(f=c.miniChartToken.model)||void 0===f?void 0:f.id,type:null===(h=c.miniChartToken.model)||void 0===h?void 0:h.genericType})}}catch(t){await $y.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&($y.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Iy.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=Iy.CHART.STATE;await e.removeSessionAlternateState(r),n.miniChartToken.alternateState=void 0}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t,n;const r=e;"function"==typeof(null===(t=r.miniChartToken)||void 0===t||null===(n=t.vis)||void 0===n?void 0:n.destroy)&&(r.miniChartToken.vis.destroy(),r.miniChartToken.vis=void 0)}};function jy(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Vy(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=Iy.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function Uy(e){const t=Vy();return e.filter((e=>t[e.id]))}const _y={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=_y.getAttrExprData(a);i.length||n.length?Wy.handlePromises({customTooltipModel:o,nodes:_y.getDataNodes(s,i.length>0?i:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&$y.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Wy.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i,a,s;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(a=i.qDimensionInfo)||void 0===a||null===(s=a[t])||void 0===s?void 0:s.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n,r;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(r=n.quarantine)||void 0===r?void 0:r[Iy.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[Iy.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[Iy.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Uy(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t,n;const r=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(n=t.quarantine)||void 0===n?void 0:n[Iy.CUSTOM.QUARANTINE])&&delete r.qLayoutExclude.quarantine[Iy.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=jy(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===Uy(o).length){var i,a;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(a=i.quarantine)||void 0===a?void 0:a.customTooltip)||[],n=[...o,...t],s=e;s.qHyperCubeDef?s.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:s.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const o=jy(e)||[];[...o,t].forEach((e=>{const t=Uy(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=Vy(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:pe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=pe.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function Yy(e,t,n,r){var o,i,a;const s=(null===(o=t.qHyperCube)||void 0===o||null===(i=o[n])||void 0===i||null===(a=i[r])||void 0===a?void 0:a.qAttrExprInfo)||[],l=[],c=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return c?(s.forEach(((e,t)=>{const o=c.qValues&&c.qValues[t]?c.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case Iy.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Iy.CUSTOM.TITLE:case Iy.CUSTOM.DESCRIPTION:case Iy.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);l.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),l):l}const Ky={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Yy(t,e,r,n)}}};const Xy={getCustomAttrExps(e,t,n){var r,o;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},a=(null===(r=t.data)||void 0===r||null===(o=r.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];if(Number.isNaN(a))return i;return function(e,t,n,r){const o={[Iy.CUSTOM.TITLE]:!0,[Iy.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=_y.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===Iy.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===Iy.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,a.map((t=>fe.getMeasure(e,t))),e,i)}};function Gy({nodes:e,layout:t,dataset:n}){return function(e,t,n){const r=[];return e.forEach((e=>{r.push(Xy.getCustomAttrExps(n,e,t))})),r}(e,t,n).reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function Zy(e){const t=Iy.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function Jy(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var Qy={attrExpr:{migrateProperties(e){var t,n,r,o;const i=Q(!0,{},e),a=(null===(t=i.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[];let s=Jy(i);return s=function(e,t){return t.concat(e.map((e=>Zy(e))))}(a,s),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(s,i),null===(o=i.tooltip)||void 0===o||delete o.data,i},getPatches(e){var t,n,r,o;const i=(null===(t=e.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[],a=(null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qDimensions.length)-1;return function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=Zy(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(Jy(e),i,a)},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,o,i,a,s;const l=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],c=(null===(o=t.tooltip)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.qHyperCube)||{},u=null===(a=t.qMeta)||void 0===a||null===(s=a.privileges)||void 0===s?void 0:s.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(c,l)&&e.getEffectiveProperties().then((t=>{if(u){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}};const{CUSTOM:eb}=Iy;function tb({flags:e,layout:t,app:n,model:r,picasso:o,chart:i,translator:a,localeInfo:s,embed:l,options:c}){var u,d,p;const f=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:_y,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:o,chart:i,translator:a,localeInfo:s,embed:l}),h="rtl"===c.direction,m=!(!t.tooltip||t.tooltip.auto),g=m&&L(t,"tooltip.hideBasic",!1),v=!!(m&&null!==(u=t.tooltip)&&void 0!==u&&null!==(d=u.chart)&&void 0!==d&&null!==(p=d.object)&&void 0!==p&&p.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));return{isEnabled:()=>m,hideBasic:()=>g,getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=Gy({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===eb.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===eb.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>_y.checkIfPromisesExist({customTooltipModel:f}),createImageRow:({value:e,h:t})=>_y.getImageRow(e,{h:t,rtl:h}),addImages:({nodes:r})=>{const o=_y.getDataNodes(i,r),a=_y.getAttrExprData(t);return Wy.handlePromises({customTooltipModel:f,nodes:o,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>v,hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>$y.createContainer({layout:t,ctx:{h:e,rtl:h}}),createLimitationRow:()=>_y.getFooterRow(a.get("properties.tooltip.notselectedmessage"),h),show:({nodes:e,properties:t})=>$y.show({app:n,properties:t,selectedNodes:e,customTooltipModel:f,rtl:h}),hasAlternateState:()=>{var e;return!(null===(e=f.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>$y.hide({app:n,customTooltipModel:f}),destroy:()=>$y.destroyVisualization({customTooltipModel:f})}}}function nb(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function rb({chart:e,translator:t,layout:n,constraints:r,options:o,themeService:i,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===o.direction,{fontFamily:u}=i.getStyles();return I({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:o,create:i,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},f=[];u&&f.push(i.text({value:u,style:{bold:!0}})),d&&f.push(i.text({value:d}));const h=s.hideBasic();if(h&&!p.length&&(u||d)||f.push(i.text({value:c.data.label,style:{bold:!0}})),!h){f.push(i.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}f.push(i.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:o("share")(c.desc.share)}))}p&&f.push(...p.map((e=>i.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),f.push(i.raw({value:s.chart.createLimitationRow()}))):f.push(i.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&f.push(...m.map((t=>i.raw({value:s.createImageRow({value:t,h:e})})))),f},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}function ob({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:o}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:e+"Range",direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const ib=.8,ab=.55,sb={CORNER_RADIUS:0,INNER_RADIUS:ab,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},lb=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,o;let i=ib,a=0;const s=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:ab;e.donut.showAsDonut&&(i=ib-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*i+a}}:ib,cb=({layout:e},t,n)=>{var r,o;if(!e.donut.showAsDonut)return 0;const i=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:ab;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=ib-i,n=i;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:i},ub=({layout:e},t)=>{var n,r,o,i,a,s;const l=t.colorService.getDatumProps(),c=l[Object.keys(l)[0]],u=c&&c.field?c.field:void 0,d="qDimensionInfo/0"===u,p=u?t.ds.field(u).raw():null,f=p&&(p.label||p.title||p.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:m}=t.chart,g=se(e,"qHyperCube.qDimensionInfo",[]).length;function v(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>m(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...l,num:v(t.encodings.slice.arc,"arc"),fillTooltip:u?{field:u,label:f,value:e=>d?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==g?Ky.getNode(e,{dimensionCount:g}):void 0,radius:h?v(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:cb({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?sb.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:sb.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(o=y.style)||void 0===o||null===(i=o.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:sb.STROKE.COLOR,outerRadius:lb({layout:e},t,y),cornerRadius:null!==(a=null==y||null===(s=y.style)||void 0===s?void 0:s.cornerRadius)&&void 0!==a?a:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function db({layout:e},t){var n,r;const o=(e.components||[]).filter((e=>"slices"===e.key))[0],i=null!==(n=null==o||null===(r=o.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:ab,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=ib-i,n=i;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function pb(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function fb({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}function hb(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function mb(e){return e.node.data.num.label}function gb(e){return e.node.data.radius.label}function vb(e,t,n){if(e.dataPoint.auto)return n?mb:hb;if("share"===e.dataPoint.labelMode)return hb;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?gb:mb}return null}function yb({data:e}){return e?e.label:""}function bb(e){const t=parseInt(e,10);if(!isNaN(t))return t}function xb(e){const t=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return!t||t.style.innerRadius>.3}function wb({node:e,data:t}){return Q({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Eb(e,t,n){const r=t.themeService.getStyles(),o=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",fill:r.label.name.color,padding:t.encodings.slice.outerRadius?4:2}],fontSize:bb(r.label.name.fontSize),fontFamily:r.label.name.fontFamily,label:yb,linkData:({node:e,data:t})=>Q({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(vb(e,t,!1)){const r=function(e,t,n){return{label:vb(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&xb(e)?"inside":"into",onBackground:e.donut.showAsDonut&&xb(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),i=ge(Q(t,r),n.theme);i.linkData=wb,o.push(i)}return{key:"pie-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:o}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Cb({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=vb(e,t,!0),o=(e=>t=>e.getContrastingColorTo(t.node.attrs.fill))(n.theme),i=t.themeService.getStyles();return{key:"pie-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fill:e.donut.showAsDonut?i.label.name.color:o,fontSize:bb(i.label.name.fontSize),fontFamily:i.label.name.fontFamily,label:yb,linkData:({data:e})=>e},{fill:e.donut.showAsDonut?i.label.value.color:o,fontSize:bb(i.label.value.fontSize),fontFamily:i.label.value.fontFamily,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Eb(e,n,t))}const kb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=(this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type))||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return r||this.chart.component("legendRangeBrush").emit("rangeClear"),r}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function Sb(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}function Tb(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:o}=Sb(e,t),i=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*ib;return(i-r)**2+(a-o)**2<=s**2}const Rb=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let o=Sb(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(o={cx:o.x,cy:o.y,r:5});const i=this.chart.shapesAt(o,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});i.length&&(this.chart.brushFromShapes(i,{components:[{key:i[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Nb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),Pb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function Db(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Tb(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const Mb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&Tb(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),Lb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),Ib=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[Mb(e,{}),Rb(e,t,{}),...n]:[kb(e,{}),Pb(e,{}),Mb(e,{}),Nb(e,{}),Lb(e,{}),Rb(e,t,{}),...n]});function Ab(e,t,n){const r=e.getIsSingleSelect(0),{constraints:o}=n;if(o.active&&o.passive)return[];const i=t.tooltipService.getInteractions();return[Ib(t,r,i.gestures),Db(t),i.native]}function Ob({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function qb({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,o=t.themeService.getStyles();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections},style:{fontFamily:o.axis.title.fontFamily,fontSize:o.axis.title.fontSize,color:o.axis.title.color}}}function zb({layout:e},t,n){const r=function(e,t){const n={field:"qDimensionInfo/0",props:{num:{field:t.encodings.slice.arc}}};t.encodings.slice.outerRadius&&(n.props.radius={field:t.encodings.slice.outerRadius});let r=t.ds.extract(n);if(0===r.length)return"NoDataExist";const o=se(e,"qHyperCube.qSize.qcy");if(se(e,"qHyperCube.qDataPages.0.qArea.qHeight")<o)return"LimitedData";if(r=t.encodings.slice.outerRadius?r.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):r.filter((e=>"NaN"!==e.num.value)),0===r.length)return"OnlyNanData";const i=r;return r=t.encodings.slice.outerRadius&&!e.donut.showAsDonut?r.filter((e=>e.num.value>0&&e.radius.value>0)):r.filter((e=>e.num.value>0)),0===r.length?"OnlyNegativeOrZeroValues":i.length!==r.length&&"NegativeOrZeroValues"}(e,t),{fontFamily:o}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:o}=t,{rtl:i}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:ne[e].alignment},settings:{label:o.get("Object.Disclaimer."+e),rtl:i},style:r}}(r,t,n,{fontFamily:o})}function Fb({layout:e,context:t,selectionService:n},r={}){const o=function({layout:e}={},t={}){const n={};return Q(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&Q(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),i={scales:o};let a=[];const s=zb({layout:e},r,t);if(s&&"center"===s.layout.dock)return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",rtl:t.rtl},{navigationDisabled:l});return o.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(o.fillRange.invert=!0),a=[ub({layout:e,settings:i},r),db({layout:e},r),pb(r),fb({layout:e},r),qb({layout:e},r,t),...c.components,ob({settings:i,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),{key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}},{key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}},Cb({layout:{components:e.components,dataPoint:Q({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),(!1!==e.showDisclaimer||!r.flags.isEnabled("SHOW_DISCLAIMER"))&&s],a=a.filter((e=>!1!==e)),{interactions:Ab(n,r,t),scales:o,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:Ob({settings:i},r),strategy:ae(0,r)}}function Wb({instance:e,services:t}){const n=u(),r=b();R((o=>{if(!(r.snapshotData&&r.snapshotData.content&&r.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(o,n),e&&t))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:le(t,"legend-cat"),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:o,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),N((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:le(e.chart,"legend-cat")})})),[e])}const Hb={setValue(e,t,n){if(!t)return;const r=t.split(".");let o=e;const i=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==o[r[a]]&&(o[r[a]]=Number.isNaN(+r[a+1])?{}:[]),o=o[r[a]];void 0!==n?o[i]=n:delete o[i]},getValue(e,t,n){const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(null==i[r[o]])return n;i=i[r[o]]}return i}},Bb={getDimensions:e=>Hb.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>Hb.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>Hb.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>Hb.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=Hb.getValue(e,t?t+".qHyperCube":"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=Hb.getValue(e,t?t+".qHyperCube":"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const $b={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>Bb.getNumMeasures(e)>=1},showLegend:e=>{const t=Hb.getValue(e,"color.auto"),n=Hb.getValue(e,"color.expressionIsColor"),r=Hb.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!Hb.getValue(e,"color.auto")&&"byDimension"===Hb.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===Hb.getValue(e,"color.useDimColVal")&&Hb.setValue(e,"color.useDimColVal",!1),!Hb.getValue(e,"color.auto")&&"byDimension"===Hb.getValue(e,"color.mode")&&"libraryItem"===Hb.getValue(e,"color.byDimDef.type"))},jb=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:o}=$b;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!Hb.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:o,showTitle:{show(e){const t=Hb.getValue(e,"color.auto");return Hb.getValue(e,"legend.show")&&o(e)&&(t||!function(e){return"byExpression"===Hb.getValue(e,"color.mode")&&!0===Hb.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>Hb.getValue(e,"legend.show")&&o(e)}}};function Vb(e){return new jb(e)}const Ub={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},_b={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"slices",ref:"components",defaultValues:{key:"slices",style:{strokeColor:{index:-1,color:"#FFFFFF"},strokeWidth:"none",cornerRadius:0,innerRadius:.55}},items:{slices:{components:"items",type:"items",uses:"styling.slice",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},cornerRadius:{component:"slider",min:0,max:40,step:.05,defaultValue:0,show:!0},innerRadius:{component:"slider",min:.05,max:.75,step:.01,defaultValue:.55,show:(e,t,n)=>n.layout.donut.showAsDonut}}}}},Yb=e=>({component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}}),Kb=Vb("hard");const Xb=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(F(e,"color.mode","byDimension"),F(e,"color.byDimDef.activeDimensionIndex",0),F(e,"color.persistent",!1))},Gb=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},Zb=e=>{const{flags:t,translator:n}=e||{},r=null==t?void 0:t.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),o={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?n.get("Simple.Color.Auto",n.get("properties.colorMode.byDimension")):n.get("Common.Custom")},change:Xb},colorMode:{options:Gb}}}}},i={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||F(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,o){o.dimensionTitle=!e}}}}}}};return{uses:"settings",items:{simpleStyling:null!=t&&t.isEnabled("PIECHART_SIMPLE_STYLING")?Ub:void 0,simpleLabels:i,general:{items:{showDisclaimer:null!=t&&t.isEnabled("SHOW_DISCLAIMER")?{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}:void 0}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:null!=t&&t.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_PIECHART")?Yb(r):_b,showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:Kb.color.colorMode.options},persistentColors:{show:Kb.color.persistentColors.show}}},simpleColors:o,legend:{show:Kb.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:Kb.legend.showTitle.show},dock:{show:Kb.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}}},Jb={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},Qb={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},ex={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function tx(e){return{type:"items",component:"accordion",items:{data:Jb,sorting:Qb,addons:ex,settings:Zb(e)}}}const nx=Vb("explore"),rx=tx();var ox={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:rx.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:rx.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:nx.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&nx.color.useDimColVal.show(e))}}}}}}};const ix="slices";function ax(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function sx(e){return e.data.num.label}function lx(e){return e.data.radius.label}function cx(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?sx:ax;if("share"===e.dataPoint.labelMode)return ax;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?lx:sx;return sx}(n,r)(e,t)}function ux(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=n.substr(0,t-3)+"..."),n}(e.data.label,20):"",t}class dx{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const o=e.find(".effectLayer");o.length>0&&o.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),o=n.map((n=>{const{start:o,end:i,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(o+i)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),p=c.top-r.top+l.y*(s.y-a*Math.cos(u)),f=Math.cos(u)>0?"top":"bottom",h=Math.sin(u)>0?"right":"left";return{title:ux(n),label:cx(n,this.chart.formatter,e,t),orientation:`${f}${h}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,o)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=Q(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=Q(e.options,{effect:null}),n?t.getProperties().then((e=>Q(e,{effectPath:null,effectProperties:null,dataPoint:Q(!0,{},e.originalModelSettings.dataPoint),legend:Q(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class px extends dx{init(e,t,n,r){return e.options=Q(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(ix).data.items,n=e.effectProperties.min,r=e.effectProperties.max,o=[];let i=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const o=e.num.value;n&&o<i[0]&&(i=[o,t]),r&&o>a[0]&&(a=[o,t])})),-1!==i[1]&&o.push(t[i[1]].value),-1!==a[1]&&o.push(t[a[1]].value),o.length&&this.chart.brush("highlight").setValues(o.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class fx extends dx{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(ix).data.items.map((e=>e.value)).indexOf(n.data.value);-1!==r&&(this.selectedIndex=r,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(ix).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===ix)).map(((n,r)=>{const o=cx(n,this.chart.formatter,e,t);return{text:`${ux(n)} (${o})`,value:r}}))}init(e,t,n,r){return e.options=Q(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const hx="/effects/highlight-value",mx="/effects/maxmin";var gx={isCompatible:({effectPath:e})=>e===mx||e===hx,create:e=>e.effectPath===mx?new px(e):e.effectPath===hx?new fx(e):null};function vx(e){const t={},{components:n,tooltip:r}=e,o=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(o&&o.style&&Object.keys(o.style).forEach((e=>{t["chart_style_"+e]=o.style[e]})),r){var i,a;t.chart_tooltip_custom=!r.auto;const e=null===(i=r.chart)||void 0===i||null===(a=i.object)||void 0===a?void 0:a.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function yx(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function bx(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function xx({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){bx(e),yx(t),_y.addCallbackCustomTooltip(t)},move(e,t){bx(e),yx(t),_y.moveCallbackCustomTooltip(t,e)},remove(e,t){_y.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){bx(e),yx(r),_y.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){yx(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const wx=e=>e.qMax<=0,Ex=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(wx));function Cx(e){return{definition:tx(e),softDefinition:ox,support:{snapshot:Ex,export:Ex,exportData:!0,sharing:Ex,viewData:!0,effects:!0},effects:gx,extendMetrics:vx,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:xx(e),defaultPropertyValues:a,hypercubePath:o});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function kx(e){return{properties:{version:"1.22.1",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:sb.STROKE.COLOR},cornerRadius:sb.CORNER_RADIUS,innerRadius:sb.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[xx(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const o=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:xx(e),hypercubePath:r});return o.qProperty.dataPoint&&!1===o.qProperty.dataPoint.show&&delete o.qProperty.dataPoint.show,o},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}e("default",(e=>{const{flags:t}=e;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(H).forEach((t=>{e.add(H[t])}))}}(e.translator);const n=Ny();return{qae:kx(e),ext:Cx(e),component(){const e=function({picasso:e}){var t;const n=c(),r=u(),o=d(),[i,a]=p(),s=Ly(),l=f(),v=h(),y=!(null===(t=l.qSelectionInfo)||void 0===t||!t.qInSelections),[b,x]=p(!1);return s.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:o}){var i,a,s;return{active:n,label:o.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(i=e.qHyperCube)||void 0===i||null===(a=i.qDimensionInfo)||void 0===a||null===(s=a[0])||void 0===s||!s.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:l,isInSelections:y,isLassoActionActive:b,setIsLassoActionActive:x,translator:v}),m((()=>(i&&(i.interactions.lasso.active=()=>b),{...s.lasso})),[i,b,y,v.language()]),g((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),i=t.chart({element:r,data:[],settings:{}}),c=P({chart:i,actions:s,selections:o,config:{selectionActions:!1}});c.setLayout(l),c.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const u=D({legendScrollOffset:0,rotation:0});u.intercept("rotation",(e=>(u.get("rotation")+e)%(2*Math.PI))),u.onChanged("rotation",(()=>{i.update({partialData:!0})}));const d=M();return s.on("selections-start",(()=>{i.brush("selection").start()})),a({picasso:t,chart:i,selectionService:c,viewState:u,viewCache:d,interactions:s}),()=>{c.destroy(),i.destroy(),s.removeAllListeners(),delete s.select,u.intercept("rotation",void 0),u.onChanged("rotation",void 0)}}),[]),i}({picasso:n}),o=function({flags:e,picasso:t,instance:n}){const r=v(),o=y(),i=h(),a=u(),[s,l]=p(),d=b(),f=x(),m=w(),S=c(),T=E(),{qLocaleInfo:R}=C(),N=k();return g((()=>{if(!n)return;a.style.overflow="hidden";const s=A({picasso:n.picasso,model:r,app:o,translator:i,config:{auto:!1,key:"fill"}}),c=O({picassoInstance:n.picasso,plugins:f,pluginArgs:nb(d)}),u=tb({flags:e,layout:d,app:o,model:r,picasso:t,chart:n.chart,translator:i,localeInfo:R,embed:N,options:S}),p=q({theme:T,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),h=rb({app:o,chart:n.chart,translator:i,layout:d,constraints:m,options:S,themeService:p,colorService:s,custom:u});l({colorService:s,pluginService:c,themeService:p,tooltipService:h})}),[r,o,n,d,i.language(),m,S.direction,T.name()]),s}({flags:t,picasso:n,instance:e});!function({instance:e,services:t,picasso:n,flags:o}){const i=c(),a=v(),s=y(),l=h(),u=E(),p=b(),f=d(),m=w(),{qLocaleInfo:x}=C(),[k]=S((()=>t?(Qy.attrExpr.updateProperties(a,p),Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:u,legendProps:p.legend,layout:p,localeInfo:x,hc:p.qHyperCube,colorProps:{...p.color,useBaseColors:e(p)}})}),a&&!p.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])):Promise.resolve()),[t]);g((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(p)}),[p]),g((()=>{if(!e||!k)return;const{chart:c,viewState:d,interactions:h,viewCache:g}=e,{colorService:v,pluginService:y,themeService:b,tooltipService:w}=t,E=i.viewState||{};p.snapshotData||(d.preventSet("legendScrollOffset",E.legendScrollOffset||0),d.preventSet("rotation",E.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(p,d),w.expando.set("properties",k[1]);const C=n.data("q")({key:"qHyperCube",data:p.qHyperCube,config:{localeInfo:x}}),S=[{type:"q",key:"qHyperCube",data:p.qHyperCube,config:{localeInfo:x}},...v.getData()],T={slice:{arc:"qMeasureInfo/0"}};p.qHyperCube.qMeasureInfo.length>1&&(T.slice.outerRadius="qMeasureInfo/1");const R=function(e,t){return t.slice.outerRadius?e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length:e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(n.data("q")({data:p.qHyperCube,config:{localeInfo:x}}),T),N=f?()=>{const e=c.brush("selection");r.selections(e,{},p).forEach((e=>{f.select(e)}))}:()=>{},P=p.snapshotData&&!i.freeResize?{width:(p.snapshotData.content.size||p.snapshotData.object.size).w,height:(p.snapshotData.content.size||p.snapshotData.object.size).h}:void 0,D=t=>e.selectionService.getIsSelectionLocked(t),M=()=>Fb({layout:p,context:{rtl:"rtl"===i.direction,theme:u,translator:l,constraints:m,model:a},selectionService:e.selectionService},{picasso:n,ds:C,model:a,app:s,chart:c,onSelect:N,isLocked:D,interactions:h,constraints:m,translator:l,viewState:d,dataRowCount:R,encodings:T,colorService:v,pluginService:y,themeService:b,tooltipService:w,debouncer:z,properties:k[1],logicalSize:P,flags:o,animations:{enabled:()=>function({viewState:e,options:t,constraints:n,viewCache:r,chart:o}){return!1!==t.chartAnimations&&!n.active&&r.get("chartWidth")===o.element.clientWidth&&r.get("chartHeight")===o.element.clientHeight&&r.get("hasZeroLine")===!!o.component("zeroLine")&&0===e.get("rotation")}({viewState:d,options:i,constraints:m,viewCache:g,chart:c})}});e.generateSettings=M;const L=M();c.update({data:S,settings:L}),g.set("chartWidth",c.element.clientWidth),g.set("chartHeight",c.element.clientHeight),g.set("hasZeroLine",L.components.filter((e=>"zeroLine"===e.key)).length>0),i.effect&&p.effectProperties?i.effect.update(p,c,{encodings:T}):p.effectPath||c.brush("highlight").end()}),[e,k,i.direction,i.effectProperties,m,u.name(),l.language()])}({instance:e,services:o,picasso:n,flags:t}),function({instance:e}){const t=b(),n=c(),r=T();g((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:o,generateSettings:i}=e;o.update({settings:i()}),r.set("chartWidth",o.element.clientWidth),r.set("chartHeight",o.element.clientHeight),n.effect&&n.effect.update(t,o)}),[r.width,r.height])}({instance:e}),Wb({instance:e,services:o})}}}))}}}));
|
|
47
|
+
*/var tm=Qh&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),em))}};function nm(e){return e&&"[object Function]"==={}.toString.call(e)}function rm(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function om(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function im(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=rm(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:im(om(e))}function am(e){return e&&e.referenceNode?e.referenceNode:e}var sm=Qh&&!(!window.MSInputMethodContext||!document.documentMode),lm=Qh&&/MSIE 10/.test(navigator.userAgent);function cm(e){return 11===e?sm:10===e?lm:sm||lm}function um(e){if(!e)return document.documentElement;for(var t=cm(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===rm(n,"position")?um(n):n:e?e.ownerDocument.documentElement:document.documentElement}function dm(e){return null!==e.parentNode?dm(e.parentNode):e}function pm(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&um(a.firstElementChild)!==a?um(l):l;var c=dm(e);return c.host?pm(c.host,t):pm(e,dm(t).host)}function fm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function hm(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=fm(t,"top"),o=fm(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function mm(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function gm(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],cm(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function vm(e){var t=e.body,n=e.documentElement,r=cm(10)&&getComputedStyle(n);return{height:gm("Height",t,n,r),width:gm("Width",t,n,r)}}var ym=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},bm=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),xm=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},wm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Em(e){return wm({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Cm(e){var t={};try{if(cm(10)){t=e.getBoundingClientRect();var n=fm(e,"top"),r=fm(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?vm(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=rm(e);l-=mm(u,"x"),c-=mm(u,"y"),o.width-=l,o.height-=c}return Em(o)}function km(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=cm(10),o="HTML"===t.nodeName,i=Cm(e),a=Cm(t),s=im(e),l=rm(t),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Em({top:i.top-a.top-c,left:i.left-a.left-u,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop,10),f=parseFloat(l.marginLeft,10);d.top-=c-p,d.bottom-=c-p,d.left-=u-f,d.right-=u-f,d.marginTop=p,d.marginLeft=f}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=hm(d,t)),d}function Sm(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=km(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:fm(n),s=t?0:fm(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return Em(l)}function Tm(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===rm(e,"position"))return!0;var n=om(e);return!!n&&Tm(n)}function Rm(e){if(!e||!e.parentElement||cm())return document.documentElement;for(var t=e.parentElement;t&&"none"===rm(t,"transform");)t=t.parentElement;return t||document.documentElement}function Nm(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?Rm(e):pm(e,am(t));if("viewport"===r)i=Sm(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=im(om(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=km(s,a,o);if("HTML"!==s.nodeName||Tm(a))i=l;else{var c=vm(e.ownerDocument),u=c.height,d=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=d+l.left}}var p="number"==typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function Mm(e){return e.width*e.height}function Pm(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Nm(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return wm({key:e},s[e],{area:Mm(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Dm(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?Rm(t):pm(t,am(n));return km(n,o,r)}function Lm(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Im(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Om(e,t,n){n=n.split("-")[0];var r=Lm(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[Im(s)],o}function Am(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function qm(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Am(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&nm(n)&&(t.offsets.popper=Em(t.offsets.popper),t.offsets.reference=Em(t.offsets.reference),t=n(t,e))})),t}function zm(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Dm(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Pm(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Om(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=qm(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Fm(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Wm(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function Hm(){return this.state.isDestroyed=!0,Fm(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Wm("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function $m(e){var t=e.ownerDocument;return t?t.defaultView:window}function Bm(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||Bm(im(i.parentNode),t,n,r),r.push(i)}function jm(e,t,n,r){n.updateBound=r,$m(e).addEventListener("resize",n.updateBound,{passive:!0});var o=im(e);return Bm(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Vm(){this.state.eventsEnabled||(this.state=jm(this.reference,this.options,this.state,this.scheduleUpdate))}function Um(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,$m(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function _m(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Ym(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&_m(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Km=Qh&&/Firefox/i.test(navigator.userAgent);function Xm(e,t,n){var r=Am(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var Gm=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Zm=Gm.slice(3);function Jm(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Zm.indexOf(e),r=Zm.slice(n+1).concat(Zm.slice(0,n));return t?r.reverse():r}var Qm="flip",eg="clockwise",tg="counterclockwise";function ng(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Am(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return Em(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){_m(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var rg={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:xm({},l,i[l]),end:xm({},l,i[l]+i[c]-a[c])};e.offsets.popper=wm({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],l=void 0;return l=_m(+n)?[+n,0]:ng(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||um(e.instance.popper);e.instance.reference===n&&(n=um(n));var r=Wm("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=Nm(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),xm({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),xm({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=wm({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Xm(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",f=l?"bottom":"right",h=Lm(r)[c];s[f]-h<a[d]&&(e.offsets.popper[d]-=a[d]-(s[f]-h)),s[d]+h>a[f]&&(e.offsets.popper[d]+=s[d]+h-a[f]),e.offsets.popper=Em(e.offsets.popper);var m=s[d]+s[c]/2-h/2,g=rm(e.instance.popper),v=parseFloat(g["margin"+u],10),y=parseFloat(g["border"+u+"Width"],10),b=m-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[c]-h,b),0),e.arrowElement=r,e.offsets.arrow=(xm(n={},d,Math.round(b)),xm(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Fm(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Nm(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Im(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Qm:a=[r,o];break;case eg:a=Jm(r);break;case tg:a=Jm(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=Im(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),h=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===r&&f||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&f||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&g),x=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&f||!y&&"start"===i&&g||!y&&"end"===i&&m),w=b||x;(p||v||w)&&(e.flipped=!0,(p||v)&&(r=a[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=wm({},e.offsets.popper,Om(e.instance.popper,e.offsets.reference,e.placement)),e=qm(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=Im(t),e.offsets.popper=Em(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Xm(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Am(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=Am(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=um(e.instance.popper),l=Cm(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(o.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?i:a:s,f=t?i:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!Km),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",f=Wm("transform"),h=void 0,m=void 0;if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,h="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&f)c[f]="translate3d("+h+"px, "+m+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===p?-1:1;c[d]=m*g,c[p]=h*v,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=wm({},y,e.attributes),e.styles=wm({},c,e.styles),e.arrowStyles=wm({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Ym(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Ym(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=Dm(o,t,e,n.positionFixed),a=Pm(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Ym(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},og=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ym(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=tm(this.update.bind(this)),this.options=wm({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(wm({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=wm({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return wm({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&nm(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return bm(e,[{key:"update",value:function(){return zm.call(this)}},{key:"destroy",value:function(){return Hm.call(this)}},{key:"enableEventListeners",value:function(){return Vm.call(this)}},{key:"disableEventListeners",value:function(){return Um.call(this)}}]),e}();function ig(e){return"function"==typeof e?e():e}og.Utils=("undefined"!=typeof window?window:global).PopperUtils,og.placements=Gm,og.Defaults=rg;var ag="undefined"!=typeof window?m.useLayoutEffect:m.useEffect,sg={},lg=m.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,o=e.container,i=e.disablePortal,a=void 0!==i&&i,s=e.keepMounted,l=void 0!==s&&s,c=e.modifiers,u=e.open,d=e.placement,p=void 0===d?"bottom":d,f=e.popperOptions,h=void 0===f?sg:f,g=e.popperRef,v=e.transition,y=void 0!==v&&v,b=Ri(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition"]),x=m.useRef(null),w=Du(x,t),E=m.useRef(null),C=Du(E,g),k=m.useRef(C);ag((function(){k.current=C}),[C]),m.useImperativeHandle(g,(function(){return E.current}),[]);var S=m.useState(!0),T=S[0],R=S[1],N=function(e){if("rtl"!==("undefined"!=typeof window&&document.body.getAttribute("dir")||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p),M=m.useState(N),P=M[0],D=M[1],L=m.useCallback((function(){if(x.current&&n&&u){E.current&&(E.current.destroy(),k.current(null));var e=function(e){D(e.placement)};ig(n);var t=new og(ig(n),x.current,Si({placement:N},h,{modifiers:Si({},a?{}:{preventOverflow:{boundariesElement:"window"}},{},c,{},h.modifiers),onCreate:Op(e,h.onCreate),onUpdate:Op(e,h.onUpdate)}));k.current(t)}}),[n,a,c,u,N,h]),I=m.useCallback((function(e){Pu(w,e),L()}),[w,L]),O=function(){E.current&&(E.current.destroy(),k.current(null))};if(m.useEffect((function(){L()}),[L]),m.useEffect((function(){return function(){O()}}),[]),m.useEffect((function(){u||y||O()}),[u,y]),!l&&!u&&(!y||T))return null;var A={placement:P};return y&&(A.TransitionProps={in:u,onEnter:function(){R(!1)},onExited:function(){R(!0),O()}}),m.createElement(Ip,{disablePortal:a,container:o},m.createElement("div",Si({ref:I,role:"tooltip"},b,{style:Si({position:"fixed",top:0,left:0},b.style)}),"function"==typeof r?r(A):r))})),cg=_d(m.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),ug=_d(m.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),dg=m.createElement(cg,null);var pg=Gc((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var t=e.checked,n=e.classes;return m.createElement("div",{className:Dc(n.root,t&&n.checked)},dg,m.createElement(ug,{className:n.layer}))})),fg=m.createContext(),hg=m.createElement(pg,{checked:!0}),mg=m.createElement(pg,null),gg=m.forwardRef((function(e,t){var n=e.checked,r=e.classes,o=e.color,i=void 0===o?"secondary":o,a=e.name,s=e.onChange,l=Ri(e,["checked","classes","color","name","onChange"]),c=m.useContext(fg),u=n,d=Op(s,c&&c.onChange),p=a;return c&&(void 0===u&&(u=c.value===e.value),void 0===p&&(p=c.name)),m.createElement(fp,Si({color:i,type:"radio",icon:mg,checkedIcon:hg,classes:{root:Dc(r.root,r["color".concat(Zc(i))]),checked:r.checked,disabled:r.disabled},name:p,checked:u,onChange:d,ref:t},l))}));function vg(e,t){return"object"===Mi(t)&&null!==t?e===t:String(e)===String(t)}Gc((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:wi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:wi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(gg),m.forwardRef((function(e,t){var n=e.actions,r=e.children,o=e.name,i=e.value,a=e.onChange,s=Ri(e,["actions","children","name","value","onChange"]),l=m.useRef(null),c=m.useRef(null!=i).current,u=m.useState((function(){return c?null:e.defaultValue})),d=u[0],p=u[1];m.useImperativeHandle(n,(function(){return{focus:function(){var e=l.current.querySelector("input:not(:disabled):checked");e||(e=l.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var f={name:o,onChange:function(e){c||p(e.target.value),a&&a(e,e.target.value)},value:c?i:d},h=Du(t,l);return m.createElement(Af,Si({role:"radiogroup",ref:h},s),m.createElement(fg.Provider,{value:f},r))})),m.Component;var yg=m.forwardRef((function(e,t){var n=e.autoFocus,r=e.autoWidth,o=e.children,i=e.classes,a=e.className,s=e.defaultValue,l=e.disabled,c=e.displayEmpty,u=e.labelId,d=e.IconComponent,p=e.inputRef,f=e.MenuProps,h=void 0===f?{}:f,g=e.multiple,v=e.name,y=e.onBlur,b=e.onChange,x=e.onClose,w=e.onFocus,E=e.onOpen,C=e.open,k=e.readOnly,S=e.renderValue;e.required;var T=e.SelectDisplayProps,R=void 0===T?{}:T,N=e.tabIndex;e.type;var M=e.value,P=e.variant,D=void 0===P?"standard":P,L=Ri(e,["autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","labelId","IconComponent","inputRef","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),I=m.useRef(null!=M).current,O=m.useState(s),A=O[0],q=O[1],z=I?M:A,F=m.useRef(null),W=m.useState(null),H=W[0],$=W[1],B=m.useRef(null!=C).current,j=m.useState(),V=j[0],U=j[1],_=m.useState(!1),Y=_[0],K=_[1],X=Du(t,p);m.useImperativeHandle(X,(function(){return{focus:function(){H.focus()},node:F.current,value:z}}),[H,z]),m.useEffect((function(){n&&H&&H.focus()}),[n,H]);var G,Z,J=function(e,t){e?E&&E(t):(H.focus(),x&&x(t)),B||(U(r?null:H.clientWidth),K(e))},Q=function(e){return function(t){var n;if(g||J(!1,t),g){n=Array.isArray(z)?dl(z):[];var r=z.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;I||q(n),b&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:v}}),b(t,e))}},ee=null!==H&&(B?C:Y);delete L["aria-invalid"];var te=[],ne=!1;(kf({value:z})||c)&&(S?G=S(z):ne=!0);var re=m.Children.map(o,(function(e){if(!m.isValidElement(e))return null;var t;if(g){if(!Array.isArray(z))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(t=z.some((function(t){return vg(t,e.props.value)})))&&ne&&te.push(e.props.children)}else(t=vg(z,e.props.value))&&ne&&(Z=e.props.children);return m.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:Q(e),role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ne&&(G=g?te.join(", "):Z);var oe,ie=V;!r&&B&&H&&(ie=H.clientWidth),oe=void 0!==N?N:l?null:0;var ae=R.id||(v?"mui-component-select-".concat(v):void 0);return m.createElement(m.Fragment,null,m.createElement("div",Si({className:Dc(i.root,i.select,i.selectMenu,i[D],a,l&&i.disabled),ref:$,tabIndex:oe,role:"button","aria-expanded":ee?"true":void 0,"aria-labelledby":"".concat(u||""," ").concat(ae||""),"aria-haspopup":"listbox",onKeyDown:function(e){if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onClick:l||k?null:function(e){J(!0,e)},onBlur:function(e){!ee&&y&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:v}}),y(e))},onFocus:w},R,{id:ae}),function(e){return null==e||"string"==typeof e&&!e.trim()}(G)?m.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):G),m.createElement("input",Si({value:Array.isArray(z)?z.join(","):z,name:v,ref:F,type:"hidden",autoFocus:n},L)),m.createElement(d,{className:Dc(i.icon,i["icon".concat(Zc(D))],ee&&i.iconOpen)}),m.createElement(Hh,Si({id:"menu-".concat(v||""),anchorEl:H,open:ee,onClose:function(e){J(!1,e)}},h,{MenuListProps:Si({"aria-labelledby":u,role:"listbox",disableListWrap:!0},h.MenuListProps),PaperProps:Si({},h.PaperProps,{style:Si({minWidth:ie},null!=h.PaperProps?h.PaperProps.style:null)})}),re))})),bg=_h,xg=m.createElement(ih,null),wg=m.createElement(Mf,null),Eg=m.forwardRef((function e(t,n){var r=t.autoWidth,o=void 0!==r&&r,i=t.children,a=t.classes,s=t.displayEmpty,l=void 0!==s&&s,c=t.IconComponent,u=void 0===c?Uh:c,d=t.id,p=t.input,f=t.inputProps,h=t.labelId,g=t.MenuProps,v=t.multiple,y=void 0!==v&&v,b=t.native,x=void 0!==b&&b,w=t.onClose,E=t.onOpen,C=t.open,k=t.renderValue,S=t.SelectDisplayProps,T=t.variant,R=void 0===T?"standard":T,N=t.labelWidth,M=void 0===N?0:N,P=Ri(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant","labelWidth"]),D=x?Vh:yg,L=yf({props:t,muiFormControl:cp(),states:["variant"]}).variant||R,I=p||{standard:xg,outlined:m.createElement(Jh,{labelWidth:M}),filled:wg}[L];return m.cloneElement(I,Si({inputComponent:D,select:!0,inputProps:Si({children:i,IconComponent:u,variant:L,type:void 0,multiple:y},x?{}:{autoWidth:o,displayEmpty:l,labelId:h,MenuProps:g,onClose:w,onOpen:E,open:C,renderValue:k,SelectDisplayProps:Si({id:d},S)},{},f,{classes:f?lc({baseClasses:a,newClasses:f.classes,Component:e}):a},p?p.props.inputProps:{}),ref:n},P))}));Eg.muiName="Select";var Cg=Gc(bg,{name:"MuiSelect"})(Eg);var kg=Gc((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Si({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,left:"calc(-50% + -4px)",transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,o=e.open,i=e.value,a=e.valueLabelDisplay;return"off"===a?t:m.cloneElement(t,{className:Dc(t.props.className,(o||"on"===a)&&n.open,n.thumb)},m.createElement("span",{className:Dc(n.offset,r)},m.createElement("span",{className:n.circle},m.createElement("span",{className:n.label},i))))}));function Sg(e,t){return e-t}function Tg(e,t,n){return e<t?t:e>n?n:e}function Rg(e,t){return e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null).index}function Ng(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Mg(e,t,n){return 100*(e-t)/(n-t)}function Pg(e,t){var n=Math.round(e/t)*t;return Number(n.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function Dg(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=dl(t);return i[o]=r,i}function Lg(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[data-index="'.concat(n,'"]')).focus(),r&&r(n)}var Ig={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},Og=[],Ag=function(e){return e},qg=m.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],o=e["aria-valuetext"],i=e.classes,a=e.className,s=e.color,l=void 0===s?"primary":s,c=e.component,u=void 0===c?"span":c,d=e.defaultValue,p=e.disabled,f=void 0!==p&&p,h=e.getAriaLabel,g=e.getAriaValueText,v=e.marks,y=void 0===v?Og:v,b=e.max,x=void 0===b?100:b,w=e.min,E=void 0===w?0:w,C=e.name,k=e.onChange,S=e.onChangeCommitted,T=e.onMouseDown,R=e.orientation,N=void 0===R?"horizontal":R,M=e.step,P=void 0===M?1:M,D=e.ThumbComponent,L=void 0===D?"span":D,I=e.track,O=void 0===I?"normal":I,A=e.value,q=e.ValueLabelComponent,z=void 0===q?kg:q,F=e.valueLabelDisplay,W=void 0===F?"off":F,H=e.valueLabelFormat,$=void 0===H?Ag:H,B=Ri(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),j=Xc(),V=m.useRef(null!=A).current,U=m.useRef(),_=m.useState(-1),Y=_[0],K=_[1],X=m.useState(-1),G=X[0],Z=X[1],J=m.useState(d),Q=J[0],ee=J[1],te=V?A:Q,ne=Array.isArray(te),re=m.useRef(),oe=ne?dl(te).sort(Sg):[te];oe=oe.map((function(e){return Tg(e,E,x)}));var ie=!0===y&&null!==P?dl(Array(Math.floor((x-E)/P)+1)).map((function(e,t){return{value:E+P*t}})):y;re.current={source:te};var ae=Ju(),se=ae.isFocusVisible,le=ae.onBlurVisible,ce=ae.ref,ue=m.useState(-1),de=ue[0],pe=ue[1],fe=m.useRef(),he=Du(ce,fe),me=Du(t,he),ge=Hu((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));se(e)&&pe(t),Z(t)})),ve=Hu((function(){-1!==de&&(pe(-1),le()),Z(-1)})),ye=Hu((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Z(t)})),be=Hu((function(){Z(-1)})),xe=Hu((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=oe[n],o=(x-E)/10,i=ie.map((function(e){return e.value})),a=i.indexOf(r);switch(e.key){case"Home":t=E;break;case"End":t=x;break;case"PageUp":P&&(t=r+o);break;case"PageDown":P&&(t=r-o);break;case"ArrowRight":case"ArrowUp":t=P?r+P:i[a+1]||i[i.length-1];break;case"ArrowLeft":case"ArrowDown":t=P?r-P:i[a-1]||i[0];break;default:return}if(e.preventDefault(),P&&(t=Pg(t,P)),t=Tg(t,E,x),ne){var s=t;t=Dg({values:oe,source:te,newValue:t,index:n}).sort(Sg),Lg({sliderRef:fe,activeIndex:t.indexOf(s)})}V||ee(t),pe(n),k&&k(e,t),S&&S(e,t)})),we=m.useRef(),Ee=N;"rtl"===j.direction&&"vertical"!==N&&(Ee+="-reverse");var Ce=m.useCallback((function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=e.values,s=e.source,l=fe.current.getBoundingClientRect(),c=l.width,u=l.height,d=l.bottom,p=l.left;if(t=0===Ee.indexOf("vertical")?(d-r.y)/u:(r.x-p)/c,-1!==Ee.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,E,x),P)n=Pg(n,P);else{var f=ie.map((function(e){return e.value}));n=f[Rg(f,n)]}n=Tg(n,E,x);var h=0;if(ne){var m=n;h=(n=Dg({values:a,source:s,newValue:n,index:h=i?we.current:Rg(a,n)}).sort(Sg)).indexOf(m),we.current=h}return{newValue:n,activeIndex:h}}),[x,E,Ee,ne,P,ie]),ke=Hu((function(e){var t=Ng(e,U);if(t){var n=Ce({finger:t,move:!0,values:oe,source:te}),r=n.newValue,o=n.activeIndex;Lg({sliderRef:fe,activeIndex:o,setActive:K}),V||ee(r),k&&k(e,r)}})),Se=Hu((function(e){var t=Ng(e,U);if(t){var n=Ce({finger:t,values:oe,source:te}).newValue;K(-1),"touchend"===e.type&&Z(-1),S&&S(e,n),U.current=void 0,document.body.removeEventListener("mousemove",ke),document.body.removeEventListener("mouseup",Se),document.body.removeEventListener("mouseenter",Te),document.body.removeEventListener("touchmove",ke),document.body.removeEventListener("touchend",Se)}})),Te=Hu((function(e){0===e.buttons&&Se(e)})),Re=Hu((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(U.current=t.identifier);var n=Ng(e,U),r=Ce({finger:n,values:oe,source:te}),o=r.newValue,i=r.activeIndex;Lg({sliderRef:fe,activeIndex:i,setActive:K}),V||ee(o),k&&k(e,o),document.body.addEventListener("touchmove",ke),document.body.addEventListener("touchend",Se)}));m.useEffect((function(){var e=fe.current;return e.addEventListener("touchstart",Re),function(){e.removeEventListener("touchstart",Re),document.body.removeEventListener("mousemove",ke),document.body.removeEventListener("mouseup",Se),document.body.removeEventListener("mouseenter",Te),document.body.removeEventListener("touchmove",ke),document.body.removeEventListener("touchend",Se)}}),[Te,Se,ke,Re]);var Ne=Hu((function(e){T&&T(e),e.preventDefault();var t=Ng(e,U),n=Ce({finger:t,values:oe,source:te}),r=n.newValue,o=n.activeIndex;Lg({sliderRef:fe,activeIndex:o,setActive:K}),V||ee(r),k&&k(e,r),document.body.addEventListener("mousemove",ke),document.body.addEventListener("mouseenter",Te),document.body.addEventListener("mouseup",Se)})),Me=Mg(ne?oe[0]:E,E,x),Pe=Mg(oe[oe.length-1],E,x)-Me,De=Si({},Ig[Ee].offset(Me),{},Ig[Ee].leap(Pe));return m.createElement(u,Si({ref:me,className:Dc(i.root,i["color".concat(Zc(l))],a,f&&i.disabled,ie.length>0&&ie.some((function(e){return e.label}))&&i.marked,!1===O&&i.trackFalse,{vertical:i.vertical}[N],{inverted:i.trackInverted}[O]),onMouseDown:Ne},B),m.createElement("span",{className:i.rail}),m.createElement("span",{className:i.track,style:De}),m.createElement("input",{value:oe.join(","),name:C,type:"hidden"}),ie.map((function(e){var t,n=Mg(e.value,E,x),r=Ig[Ee].offset(n);if(!1===O)t=-1!==oe.indexOf(e.value);else{var o=ne?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0];t=o&&"normal"===O||!o&&"inverted"===O}return m.createElement(m.Fragment,{key:e.value},m.createElement("span",{style:r,className:Dc(i.mark,t&&i.markActive)}),m.createElement("span",{"aria-hidden":!0,style:r,className:Dc(i.markLabel,t&&i.markLabelActive)},e.label))})),oe.map((function(e,t){var a=Mg(e,E,x),s=Ig[Ee].offset(a);return m.createElement(z,{key:t,valueLabelFormat:$,valueLabelDisplay:W,className:i.valueLabel,value:"function"==typeof $?$(e,t):$,index:t,open:G===t||Y===t||"on"===W,disabled:f},m.createElement(L,{className:Dc(i.thumb,i["thumbColor".concat(Zc(l))],Y===t&&i.active,f&&i.disabled,de===t&&i.focusVisible),tabIndex:f?null:0,role:"slider",style:s,"data-index":t,"aria-label":h?h(t):n,"aria-labelledby":r,"aria-orientation":N,"aria-valuemax":x,"aria-valuemin":E,"aria-valuenow":e,"aria-valuetext":g?g(e,t):o,onKeyDown:xe,onFocus:ge,onBlur:ve,onMouseOver:ye,onMouseLeave:be}))})))}));Gc((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"11px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 11px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?Ci(e.palette.primary.main,.62):Ei(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',left:-18,top:-18,right:-18,bottom:-18},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(wi(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(wi(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(wi(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(wi(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:Si({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:22,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:22,transform:"translateY(50%)"}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(qg);var zg=m.forwardRef((function(e,t){var n=e.action,r=e.classes,o=e.className,i=e.message,a=e.role,s=void 0===a?"alert":a,l=Ri(e,["action","classes","className","message","role"]);return m.createElement(Qc,Si({component:jd,variant:"body2",variantMapping:{body1:"div",body2:"div"},role:s,square:!0,elevation:6,className:Dc(r.root,o),ref:t},l),m.createElement("div",{className:r.message},i),n?m.createElement("div",{className:r.action},n):null)})),Fg=Gc((function(e){var t="light"===e.palette.type?.8:.98,n=xi(e.palette.background.default,t);return{root:ki({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(zg),Wg=m.forwardRef((function(e,t){var n=e.action,r=e.anchorOrigin,o=(r=void 0===r?{vertical:"bottom",horizontal:"center"}:r).vertical,i=r.horizontal,a=e.autoHideDuration,s=e.children,l=e.classes,c=e.className,u=e.ClickAwayListenerProps,d=e.ContentProps,p=e.disableWindowBlurListener,f=void 0!==p&&p,h=e.message,g=e.onClose,v=e.onEnter,y=e.onEntered,b=e.onEntering,x=e.onExit,w=e.onExited,E=e.onExiting,C=e.onMouseEnter,k=e.onMouseLeave,S=e.open,T=e.resumeHideDuration,R=e.TransitionComponent,N=void 0===R?Gf:R,M=e.transitionDuration,P=void 0===M?{enter:ga.enteringScreen,exit:ga.leavingScreen}:M,D=e.TransitionProps,L=Ri(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),I=m.useRef(),O=m.useState(!0),A=O[0],q=O[1],z=m.useCallback((function(e){var t=null!=e?e:a;g&&null!=t&&(clearTimeout(I.current),I.current=setTimeout((function(){g&&null!=(null!=e?e:a)&&g(null,"timeout")}),t))}),[a,g]);m.useEffect((function(){return S&&z(),function(){clearTimeout(I.current)}}),[S,z]);var F=function(){clearTimeout(I.current)},W=m.useCallback((function(){if(null!=a){if(null!=T)return void z(T);z(.5*a)}}),[a,T,z]);return m.useEffect((function(){if(!f&&S)return window.addEventListener("focus",W),window.addEventListener("blur",F),function(){window.removeEventListener("focus",W),window.removeEventListener("blur",F)}}),[f,W,S]),!S&&A?null:m.createElement(Np,Si({onClickAway:function(e){g&&g(e,"clickaway")}},u),m.createElement("div",Si({className:Dc(l.root,l["anchorOrigin".concat(Zc(o)).concat(Zc(i))],c),onMouseEnter:function(e){C&&C(e),F()},onMouseLeave:function(e){k&&k(e),W()},ref:t},L),m.createElement(N,Si({appear:!0,in:S,onEnter:Op((function(){q(!1)}),v),onEntered:y,onEntering:b,onExit:x,onExited:Op((function(){q(!0)}),w),onExiting:E,timeout:P,direction:"top"===o?"down":"up"},D),s||m.createElement(Fg,Si({message:h,action:n},d)))))}));Gc((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},i={top:24},a={bottom:24},s={right:24},l={left:24},c={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Si({},t,ki({},e.breakpoints.up("sm"),Si({},i,{},c))),anchorOriginBottomCenter:Si({},n,ki({},e.breakpoints.up("sm"),Si({},a,{},c))),anchorOriginTopRight:Si({},t,{},r,ki({},e.breakpoints.up("sm"),Si({left:"auto"},i,{},s))),anchorOriginBottomRight:Si({},n,{},r,ki({},e.breakpoints.up("sm"),Si({left:"auto"},a,{},s))),anchorOriginTopLeft:Si({},t,{},o,ki({},e.breakpoints.up("sm"),Si({right:"auto"},i,{},l))),anchorOriginBottomLeft:Si({},n,{},o,ki({},e.breakpoints.up("sm"),Si({right:"auto"},a,{},l)))}}),{flip:!1,name:"MuiSnackbar"})(Wg);var Hg=m.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.alternativeLabel,i=e.children,a=e.classes,s=e.className,l=e.completed,c=void 0!==l&&l,u=e.connector,d=e.disabled,p=void 0!==d&&d,f=e.index,h=e.last,g=e.orientation,v=Ri(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","index","last","orientation"]);return m.createElement("div",Si({className:Dc(a.root,a[g],s,o&&a.alternativeLabel,c&&a.completed),ref:t},v),u&&o&&0!==f&&m.cloneElement(u,{orientation:g,alternativeLabel:o,index:f,active:r,completed:c,disabled:p}),m.Children.map(i,(function(e){return m.isValidElement(e)?m.cloneElement(e,Si({active:r,alternativeLabel:o,completed:c,disabled:p,last:h,icon:f+1,orientation:g},e.props)):null})))}));Gc({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(Hg);var $g=_d(m.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),Bg=_d(m.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),jg=m.createElement("circle",{cx:"12",cy:"12",r:"12"}),Vg=m.forwardRef((function(e,t){var n=e.completed,r=void 0!==n&&n,o=e.icon,i=e.active,a=void 0!==i&&i,s=e.error,l=void 0!==s&&s,c=e.classes;return"number"==typeof o||"string"==typeof o?l?m.createElement(Bg,{className:Dc(c.root,c.error),ref:t}):r?m.createElement($g,{className:Dc(c.root,c.completed),ref:t}):m.createElement(Ud,{className:Dc(c.root,a&&c.active),ref:t},jg,m.createElement("text",{className:c.text,x:"12",y:"16",textAnchor:"middle"},o)):o})),Ug=Gc((function(e){return{root:{display:"block",color:e.palette.text.disabled,"&$active":{color:e.palette.primary.main},"&$completed":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily},active:{},completed:{},error:{}}}),{name:"MuiStepIcon"})(Vg),_g=m.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.alternativeLabel,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.completed,u=void 0!==c&&c,d=e.disabled,p=void 0!==d&&d,f=e.error,h=void 0!==f&&f,g=e.icon;e.last;var v=e.optional,y=e.orientation,b=void 0===y?"horizontal":y,x=e.StepIconComponent,w=e.StepIconProps,E=Ri(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),C=x;return g&&!C&&(C=Ug),m.createElement("span",Si({className:Dc(s.root,s[b],l,p&&s.disabled,i&&s.alternativeLabel,h&&s.error),ref:t},E),g||C?m.createElement("span",{className:Dc(s.iconContainer,i&&s.alternativeLabel)},m.createElement(C,Si({completed:u,active:r,error:h,icon:g},w))):null,m.createElement("span",{className:s.labelContainer},m.createElement(jd,{variant:"body2",component:"span",className:Dc(s.label,i&&s.alternativeLabel,u&&s.completed,r&&s.active,h&&s.error),display:"block"},a),v))}));_g.muiName="StepLabel";var Yg=Gc((function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}}),{name:"MuiStepLabel"})(_g),Kg=m.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,o=e.children,i=e.classes,a=e.className,s=e.completed,l=e.disabled,c=e.icon;e.last;var u=e.optional,d=e.orientation,p=Ri(e,["active","alternativeLabel","children","classes","className","completed","disabled","icon","last","optional","orientation"]),f={active:n,alternativeLabel:r,completed:s,disabled:l,icon:c,optional:u,orientation:d},h=Pf(o,["StepLabel"])?m.cloneElement(o,f):m.createElement(Yg,f,o);return m.createElement(id,Si({disabled:l,TouchRippleProps:{className:i.touchRipple},className:Dc(i.root,i[d],a),ref:t},p),h)}));Gc({root:{width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},horizontal:{},vertical:{justifyContent:"flex-start",padding:"8px",margin:"-8px"},touchRipple:{color:"rgba(0, 0, 0, 0.3)"}},{name:"MuiStepButton"})(Kg);var Xg=m.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,o=void 0!==r&&r,i=e.classes,a=e.className,s=e.completed,l=e.disabled;e.index;var c=e.orientation,u=void 0===c?"horizontal":c,d=Ri(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return m.createElement("div",Si({className:Dc(i.root,i[u],a,o&&i.alternativeLabel,n&&i.active,s&&i.completed,l&&i.disabled),ref:t},d),m.createElement("span",{className:Dc(i.line,"vertical"===u?i.lineVertical:i.lineHorizontal)}))})),Gg=Gc((function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}}),{name:"MuiStepConnector"})(Xg),Zg=m.forwardRef((function(e,t){var n=e.active;e.alternativeLabel;var r=e.children,o=e.classes,i=e.className;e.completed;var a=e.last;e.optional,e.orientation;var s=e.TransitionComponent,l=void 0===s?Pp:s,c=e.transitionDuration,u=void 0===c?"auto":c,d=e.TransitionProps,p=Ri(e,["active","alternativeLabel","children","classes","className","completed","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]),f=u;return"auto"!==u||l.muiSupportAuto||(f=void 0),m.createElement("div",Si({className:Dc(o.root,i,a&&o.last),ref:t},p),m.createElement(l,Si({in:n,className:o.transition,timeout:f,unmountOnExit:!0},d),r))}));Gc((function(e){return{root:{marginTop:8,marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:"1px solid ".concat("light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600])},last:{borderLeft:"none"},transition:{}}}),{name:"MuiStepContent"})(Zg);var Jg=m.createElement(Gg,null),Qg=m.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,o=e.alternativeLabel,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.connector,u=void 0===c?Jg:c,d=e.nonLinear,p=void 0!==d&&d,f=e.orientation,h=void 0===f?"horizontal":f,g=Ri(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),v=m.isValidElement(u)?m.cloneElement(u,{orientation:h}):null,y=m.Children.toArray(a),b=y.map((function(e,t){var n={alternativeLabel:i,connector:u,last:t+1===y.length,orientation:h},o={index:t,active:!1,completed:!1,disabled:!1};return r===t?o.active=!0:!p&&r>t?o.completed=!0:!p&&r<t&&(o.disabled=!0),[!i&&v&&0!==t&&m.cloneElement(v,Si({key:t},o)),m.cloneElement(e,Si({},n,{},o,{},e.props))]}));return m.createElement(Qc,Si({square:!0,elevation:0,className:Dc(s.root,s[h],l,i&&s.alternativeLabel),ref:t},g),b)}));Gc({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(Qg);var ev=m.forwardRef((function(e,t){var n=e.anchor,r=e.classes,o=e.className,i=e.width,a=Ri(e,["anchor","classes","className","width"]);return m.createElement("div",Si({className:Dc(r.root,r["anchor".concat(Zc(n))],o),ref:t,style:ki({},sf(n)?"width":"height",i)},a))})),tv=Gc((function(e){return{root:{position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},anchorLeft:{right:"auto"},anchorRight:{left:"auto",right:0},anchorTop:{bottom:"auto",right:0},anchorBottom:{top:"auto",bottom:0,right:0}}}),{name:"PrivateSwipeArea"})(ev),nv=null;function rv(e,t){return"right"===e?document.body.offsetWidth-t[0].pageX:t[0].pageX}function ov(e,t){return"bottom"===e?window.innerHeight-t[0].clientY:t[0].clientY}function iv(e,t){return e?t.clientWidth:t.clientHeight}function av(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}var sv="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),lv={enter:ga.enteringScreen,exit:ga.leavingScreen},cv="undefined"!=typeof window?m.useLayoutEffect:m.useEffect;m.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,o=e.disableBackdropTransition,i=void 0!==o&&o,a=e.disableDiscovery,s=void 0!==a&&a,l=e.disableSwipeToOpen,c=void 0===l?sv:l,u=e.hideBackdrop,d=e.hysteresis,p=void 0===d?.52:d,f=e.minFlingVelocity,h=void 0===f?450:f,g=e.ModalProps,v=(g=void 0===g?{}:g).BackdropProps,y=Ri(g,["BackdropProps"]),x=e.onClose,w=e.onOpen,E=e.open,C=e.PaperProps,k=void 0===C?{}:C,S=e.SwipeAreaProps,T=e.swipeAreaWidth,R=void 0===T?20:T,N=e.transitionDuration,M=void 0===N?lv:N,P=e.variant,D=void 0===P?"temporary":P,L=Ri(e,["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"]),I=Xc(),O=m.useState(!1),A=O[0],q=O[1],z=m.useRef({isSwiping:null}),F=m.useRef(),W=m.useRef(),H=m.useRef(),$=m.useRef(!1),B=m.useRef();cv((function(){B.current=null}),[E]);var j=m.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,o=void 0===n?null:n,a=t.changeTransition,s=void 0===a||a,l=lf(I,r),c=-1!==["right","bottom"].indexOf(l)?1:-1,d=sf(r),p=d?"translate(".concat(c*e,"px, 0)"):"translate(0, ".concat(c*e,"px)"),f=H.current.style;f.webkitTransform=p,f.transform=p;var h="";if(o&&(h=I.transitions.create("all",Mu({timeout:M},{mode:o}))),s&&(f.webkitTransition=h,f.transition=h),!i&&!u){var m=W.current.style;m.opacity=1-e/iv(d,H.current),s&&(m.webkitTransition=h,m.transition=h)}}),[r,i,u,I,M]),V=Hu((function(e){if($.current)if(nv=null,$.current=!1,q(!1),z.current.isSwiping){z.current.isSwiping=null;var t,n=lf(I,r),o=sf(r);t=o?rv(n,e.changedTouches):ov(n,e.changedTouches);var i=o?z.current.startX:z.current.startY,a=iv(o,H.current),s=av(t,i,E,a),l=s/a;Math.abs(z.current.velocity)>h&&(B.current=1e3*Math.abs((a-s)/z.current.velocity)),E?z.current.velocity>h||l>p?x():j(0,{mode:"exit"}):z.current.velocity<-h||1-l>p?w():j(iv(o,H.current),{mode:"enter"})}else z.current.isSwiping=null})),U=Hu((function(e){if(H.current&&$.current&&(null==nv||nv===z.current)){var t=lf(I,r),n=sf(r),o=rv(t,e.touches),i=ov(t,e.touches);if(E&&H.current.contains(e.target)&&null==nv){var a=function(e){var t=e.domTreeShapes,n=e.start,r=e.current,o=e.anchor,i={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},s={x:"clientWidth",y:"clientHeight"};return t.some((function(e){var t=r>=n;"top"!==o&&"left"!==o||(t=!t);var l="left"===o||"right"===o?"x":"y",c=e[i[l]],u=c>0,d=c+e[s[l]]<e[a[l]];return t&&d||!t&&u?e:null}))}({domTreeShapes:function(e,t){for(var n=[];e&&e!==t;){var r=window.getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")?n=[]:(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,H.current),start:n?z.current.startX:z.current.startY,current:n?o:i,anchor:r});if(a)return void(nv=a);nv=z.current}if(null==z.current.isSwiping){var l=Math.abs(o-z.current.startX),c=Math.abs(i-z.current.startY);l>c&&e.cancelable&&e.preventDefault();var u=n?l>c&&l>3:c>l&&c>3;if(!0===u||(n?c>3:l>3)){if(z.current.isSwiping=u,!u)return void V(e);z.current.startX=o,z.current.startY=i,s||E||(n?z.current.startX-=R:z.current.startY-=R)}}if(z.current.isSwiping){var d=iv(n,H.current),p=n?z.current.startX:z.current.startY;E&&!z.current.paperHit&&(p=Math.min(p,d));var f=av(n?o:i,p,E,d);if(E)if(z.current.paperHit)0===f&&(z.current.startX=o,z.current.startY=i);else{if(!(n?o<d:i<d))return;z.current.paperHit=!0,z.current.startX=o,z.current.startY=i}null===z.current.lastTranslate&&(z.current.lastTranslate=f,z.current.lastTime=performance.now()+1);var h=(f-z.current.lastTranslate)/(performance.now()-z.current.lastTime)*1e3;z.current.velocity=.4*z.current.velocity+.6*h,z.current.lastTranslate=f,z.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),j(f)}}})),_=Hu((function(e){if(!e.defaultPrevented&&!e.muiHandled&&(!E||W.current.contains(e.target)||H.current.contains(e.target))){var t=lf(I,r),n=sf(r),o=rv(t,e.touches),i=ov(t,e.touches);if(!E){if(c||e.target!==F.current)return;if(n){if(o>R)return}else if(i>R)return}e.muiHandled=!0,nv=null,z.current.startX=o,z.current.startY=i,q(!0),!E&&H.current&&j(iv(n,H.current)+(s?20:-R),{changeTransition:!1}),z.current.velocity=0,z.current.lastTime=null,z.current.lastTranslate=null,z.current.paperHit=!1,$.current=!0}}));m.useEffect((function(){if("temporary"===D)return document.body.addEventListener("touchstart",_),document.body.addEventListener("touchmove",U,{passive:!1}),document.body.addEventListener("touchend",V),function(){document.body.removeEventListener("touchstart",_),document.body.removeEventListener("touchmove",U,{passive:!1}),document.body.removeEventListener("touchend",V)}}),[D,_,U,V]),m.useEffect((function(){return function(){nv===z.current&&(nv=null)}}),[]),m.useEffect((function(){E||q(!1)}),[E]);var Y=m.useCallback((function(e){W.current=b.findDOMNode(e)}),[]),K=m.useCallback((function(e){H.current=b.findDOMNode(e)}),[]);return m.createElement(m.Fragment,null,m.createElement(df,Si({open:!("temporary"!==D||!A)||E,variant:D,ModalProps:Si({BackdropProps:Si({},v,{ref:Y})},y),PaperProps:Si({},k,{style:Si({pointerEvents:"temporary"!==D||E?"":"none"},k.style),ref:K}),anchor:r,transitionDuration:B.current||M,onClose:x,ref:t},L)),!c&&"temporary"===D&&m.createElement(Bu,null,m.createElement(tv,Si({anchor:r,ref:F,width:R},S))))}));var uv=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"secondary":o,a=e.edge,s=void 0!==a&&a,l=e.size,c=void 0===l?"medium":l,u=Ri(e,["classes","className","color","edge","size"]),d=m.createElement("span",{className:n.thumb});return m.createElement("span",{className:Dc(n.root,r,{start:n.edgeStart,end:n.edgeEnd}[s],{small:n["size".concat(Zc(c))]}[c])},m.createElement(fp,Si({type:"checkbox",icon:d,checkedIcon:d,classes:{root:Dc(n.switchBase,n["color".concat(Zc(i))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},u)),m.createElement("span",{className:n.track}))}));Gc((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle"},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(50%)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:wi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:wi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(uv);var dv=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disabled,i=void 0!==o&&o,a=e.disableFocusRipple,s=void 0!==a&&a,l=e.fullWidth,c=e.icon,u=e.indicator,d=e.label,p=e.onChange,f=e.onClick,h=e.selected,g=e.textColor,v=void 0===g?"inherit":g,y=e.value,b=e.wrapped,x=void 0!==b&&b,w=Ri(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","selected","textColor","value","wrapped"]);return m.createElement(id,Si({focusRipple:!s,className:Dc(n.root,n["textColor".concat(Zc(v))],r,i&&n.disabled,h&&n.selected,d&&c&&n.labelIcon,l&&n.fullWidth,x&&n.wrapped),ref:t,role:"tab","aria-selected":h,disabled:i,onClick:function(e){p&&p(e,y),f&&f(e)}},w),m.createElement("span",{className:n.wrapper},c,d),u)}));Gc((function(e){var t;return{root:Si({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},ki(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),ki(t,"overflow","hidden"),ki(t,"whiteSpace","normal"),ki(t,"textAlign","center"),ki(t,e.breakpoints.up("sm"),{fontSize:e.typography.pxToRem(13),minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(dv);var pv=m.createContext(),fv=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"table":o,a=e.padding,s=void 0===a?"default":a,l=e.size,c=void 0===l?"medium":l,u=e.stickyHeader,d=void 0!==u&&u,p=Ri(e,["classes","className","component","padding","size","stickyHeader"]),f=m.useMemo((function(){return{padding:s,size:c,stickyHeader:d}}),[s,c,d]);return m.createElement(pv.Provider,{value:f},m.createElement(i,Si({ref:t,className:Dc(n.root,r,d&&n.stickyHeader)},p)))}));Gc((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Si({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(fv);var hv=m.createContext(),mv={variant:"body"},gv=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tbody":o,a=Ri(e,["classes","className","component"]);return m.createElement(hv.Provider,{value:mv},m.createElement(i,Si({className:Dc(n.root,r),ref:t},a)))}));Gc({root:{display:"table-row-group"}},{name:"MuiTableBody"})(gv);var vv=m.forwardRef((function(e,t){var n,r=e.align,o=void 0===r?"inherit":r,i=e.classes,a=e.className,s=e.component,l=e.padding,c=e.scope,u=e.size,d=e.sortDirection,p=e.variant,f=Ri(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),h=m.useContext(pv),g=m.useContext(hv);n=s||(g&&"head"===g.variant?"th":"td");var v=c;!v&&g&&"head"===g.variant&&(v="col");var y=l||(h&&h.padding?h.padding:"default"),b=u||(h&&h.size?h.size:"medium"),x=p||g&&g.variant,w=null;return d&&(w="asc"===d?"ascending":"descending"),m.createElement(n,Si({ref:t,className:Dc(i.root,i[x],a,"inherit"!==o&&i["align".concat(Zc(o))],"default"!==y&&i["padding".concat(Zc(y))],"medium"!==b&&i["size".concat(Zc(b))],{head:h&&h.stickyHeader&&i.stickyHeader}[x]),"aria-sort":w,scope:v},f))})),yv=Gc((function(e){return{root:Si({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?Ci(wi(e.palette.divider,1),.88):Ei(wi(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0px 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(vv),bv={variant:"footer"},xv=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tfoot":o,a=Ri(e,["classes","className","component"]);return m.createElement(hv.Provider,{value:bv},m.createElement(i,Si({className:Dc(n.root,r),ref:t},a)))}));Gc({root:{display:"table-footer-group"}},{name:"MuiTableFooter"})(xv);var wv={variant:"head"},Ev=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"thead":o,a=Ri(e,["classes","className","component"]);return m.createElement(hv.Provider,{value:wv},m.createElement(i,Si({className:Dc(n.root,r),ref:t},a)))}));Gc({root:{display:"table-header-group"}},{name:"MuiTableHead"})(Ev);var Cv=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.disableGutters,s=void 0!==a&&a,l=e.variant,c=void 0===l?"regular":l,u=Ri(e,["classes","className","component","disableGutters","variant"]);return m.createElement(i,Si({className:Dc(n.root,n[c],r,!s&&n.gutters),ref:t},u))})),kv=Gc((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:ki({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(Cv),Sv=_d(m.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),Tv=_d(m.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),Rv=m.createElement(Tv,null),Nv=m.createElement(Sv,null),Mv=m.createElement(Sv,null),Pv=m.createElement(Tv,null),Dv=m.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,o=e.nextIconButtonProps,i=e.onChangePage,a=e.page,s=e.rowsPerPage,l=Ri(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),c=Xc();return m.createElement("div",Si({ref:t},l),m.createElement(dp,Si({onClick:function(e){i(e,a-1)},disabled:0===a,color:"inherit"},n),"rtl"===c.direction?Rv:Nv),m.createElement(dp,Si({onClick:function(e){i(e,a+1)},disabled:a>=Math.ceil(r/s)-1,color:"inherit"},o),"rtl"===c.direction?Mv:Pv))})),Lv=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(-1===n?r:n," of ").concat(r)},Iv=[10,25,50,100],Ov=m.forwardRef((function(e,t){var n,r=e.ActionsComponent,o=void 0===r?Dv:r,i=e.backIconButtonProps,a=e.classes,s=e.className,l=e.colSpan,c=e.component,u=void 0===c?yv:c,d=e.count,p=e.labelDisplayedRows,f=void 0===p?Lv:p,h=e.labelRowsPerPage,g=void 0===h?"Rows per page:":h,v=e.nextIconButtonProps,y=e.onChangePage,b=e.onChangeRowsPerPage,x=e.page,w=e.rowsPerPage,E=e.rowsPerPageOptions,C=void 0===E?Iv:E,k=e.SelectProps,S=void 0===k?{}:k,T=Ri(e,["ActionsComponent","backIconButtonProps","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);u!==yv&&"td"!==u||(n=l||1e3);var R=S.native?"option":Bh;return m.createElement(u,Si({className:Dc(a.root,s),colSpan:n,ref:t},T),m.createElement(kv,{className:a.toolbar},m.createElement("div",{className:a.spacer}),C.length>1&&m.createElement(jd,{color:"inherit",variant:"body2",className:a.caption},g),C.length>1&&m.createElement(Cg,Si({classes:{select:a.select,icon:a.selectIcon},input:m.createElement(Rf,{className:Dc(a.input,a.selectRoot)}),value:w,onChange:b},S),C.map((function(e){return m.createElement(R,{className:a.menuItem,key:e,value:e.value?e.value:e},e.label?e.label:e)}))),m.createElement(jd,{color:"inherit",variant:"body2",className:a.caption},f({from:0===d?0:x*w+1,to:Math.min(d,(x+1)*w),count:d,page:x})),m.createElement(o,{className:a.actions,backIconButtonProps:i,count:d,nextIconButtonProps:v,onChangePage:y,page:x,rowsPerPage:w})))}));Gc((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{top:1},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(Ov);var Av=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tr":o,a=e.hover,s=void 0!==a&&a,l=e.selected,c=void 0!==l&&l,u=Ri(e,["classes","className","component","hover","selected"]),d=m.useContext(hv);return m.createElement(i,Si({ref:t,className:Dc(n.root,r,d&&{head:n.head,footer:n.footer}[d.variant],s&&n.hover,c&&n.selected)},u))}));Gc((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$selected":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.08)"},"&$hover:hover":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.07)":"rgba(255, 255, 255, 0.14)"}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(Av);var qv=_d(m.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),zv=m.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.children,i=e.classes,a=e.className,s=e.direction,l=void 0===s?"desc":s,c=e.hideSortIcon,u=void 0!==c&&c,d=e.IconComponent,p=void 0===d?qv:d,f=Ri(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return m.createElement(id,Si({className:Dc(i.root,a,r&&i.active),component:"span",disableRipple:!0,ref:t},f),o,u&&!r?null:m.createElement(p,{className:Dc(i.icon,i["iconDirection".concat(Zc(l))])}))}));Gc((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:1}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(zv);var Fv,Wv=!("undefined"==typeof window||!window.document||!window.document.createElement);function Hv(){if(Fv)return Fv;if(!Wv||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Fv="reverse",e.scrollLeft>0?Fv="default":(e.scrollLeft=1,0===e.scrollLeft&&(Fv="negative")),document.body.removeChild(e),Fv}function $v(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=Hv();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n}return n}function Bv(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var jv={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Vv(e){var t=e.onChange,n=Ri(e,["onChange"]),r=m.useRef(),o=m.useRef(null),i=function(){r.current=o.current.offsetHeight-o.current.clientHeight};return m.useEffect((function(){var e=tf((function(){var e=r.current;i(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),m.useEffect((function(){i(),t(r.current)}),[t]),m.createElement("div",Si({style:jv,ref:o},n))}var Uv=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=e.orientation,a=Ri(e,["classes","className","color","orientation"]);return m.createElement("span",Si({className:Dc(n.root,n["color".concat(Zc(o))],r,{vertical:n.vertical}[i]),ref:t},a))})),_v=Gc((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(Uv),Yv=m.createElement(Sv,{fontSize:"small"}),Kv=m.createElement(Tv,{fontSize:"small"}),Xv=m.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.direction,i=e.orientation,a=e.visible,s=Ri(e,["classes","className","direction","orientation","visible"]),l=Dc(n.root,r,{vertical:n.vertical}[i]);return a?m.createElement(id,Si({component:"div",className:l,ref:t,role:null,tabIndex:null},s),"left"===o?Yv:Kv):m.createElement("div",{className:l})})),Gv=Gc({root:{width:40,flexShrink:0},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}}},{name:"PrivateTabScrollButton"})(Xv),Zv=m.forwardRef((function(e,t){var n=e.action,r=e.centered,o=void 0!==r&&r,i=e.children,a=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,u=e.indicatorColor,d=void 0===u?"secondary":u,p=e.onChange,f=e.orientation,h=void 0===f?"horizontal":f,g=e.ScrollButtonComponent,v=void 0===g?Gv:g,y=e.scrollButtons,b=void 0===y?"auto":y,x=e.TabIndicatorProps,w=void 0===x?{}:x,E=e.textColor,C=void 0===E?"inherit":E,k=e.value,S=e.variant,T=void 0===S?"standard":S,R=Ri(e,["action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","value","variant"]),N=Xc(),M="scrollable"===T,P="rtl"===N.direction,D="vertical"===h,L=D?"scrollTop":"scrollLeft",I=D?"top":"left",O=D?"bottom":"right",A=D?"clientHeight":"clientWidth",q=D?"height":"width",z=m.useState(!1),F=z[0],W=z[1],H=m.useState({}),$=H[0],B=H[1],j=m.useState({start:!1,end:!1}),V=j[0],U=j[1],_=m.useState({overflow:"hidden",marginBottom:null}),Y=_[0],K=_[1],X=new Map,G=m.useRef(null),Z=m.useRef(null),J=function(){var e,t,n=G.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:$v(n,N.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==k){var o=Z.current.children;if(o.length>0){var i=o[X.get(k)];t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Q=Hu((function(){var e,t=J(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(D)o=r.top-n.top+n.scrollTop;else{var i=P?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(ki(e={},I,o),ki(e,q,r?r[q]:0),e);if(isNaN($[I])||isNaN($[q]))B(a);else{var s=Math.abs($[I]-a[I]),l=Math.abs($[q]-a[q]);(s>=1||l>=1)&&B(a)}})),ee=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?Bv:i,s=r.duration,l=void 0===s?300:s,c=null,u=t[e],d=!1,p=function(){d=!0},f=function r(i){if(d)o(new Error("Animation cancelled"));else{null===c&&(c=i);var s=Math.min(1,(i-c)/l);t[e]=a(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};u===n?o(new Error("Element already at target position")):requestAnimationFrame(f)}(L,G.current,e)},te=function(e){var t=G.current[L];D?t+=e:(t+=e*(P?-1:1),t*=P&&"reverse"===Hv()?-1:1),ee(t)},ne=function(){te(-G.current[A])},re=function(){te(G.current[A])},oe=m.useCallback((function(e){K({overflow:null,marginBottom:-e})}),[]),ie=Hu((function(){var e=J(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[I]<t[I]){var r=t[L]+(n[I]-t[I]);ee(r)}else if(n[O]>t[O]){var o=t[L]+(n[O]-t[O]);ee(o)}})),ae=Hu((function(){if(M&&"off"!==b){var e,t,n=G.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(D)e=r>1,t=r<o-i-1;else{var l=$v(G.current,N.direction);e=P?l<a-s-1:l>1,t=P?l>1:l<a-s-1}e===V.start&&t===V.end||U({start:e,end:t})}}));m.useEffect((function(){var e=tf((function(){Q(),ae()})),t=qp(G.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[Q,ae]);var se=m.useCallback(tf((function(){ae()})));m.useEffect((function(){return function(){se.clear()}}),[se]),m.useEffect((function(){W(!0)}),[]),m.useEffect((function(){Q(),ae()})),m.useEffect((function(){ie()}),[ie,$]),m.useImperativeHandle(n,(function(){return{updateIndicator:Q,updateScrollButtons:ae}}),[Q,ae]);var le=m.createElement(_v,Si({className:a.indicator,orientation:h,color:d},w,{style:Si({},$,{},w.style)})),ce=0,ue=m.Children.map(i,(function(e){if(!m.isValidElement(e))return null;var t=void 0===e.props.value?ce:e.props.value;X.set(t,ce);var n=t===k;return ce+=1,m.cloneElement(e,{fullWidth:"fullWidth"===T,indicator:n&&!F&&le,selected:n,onChange:p,textColor:C,value:t})})),de=function(){var e={};e.scrollbarSizeListener=M?m.createElement(Vv,{className:a.scrollable,onChange:oe}):null;var t=V.start||V.end,n=M&&("auto"===b&&t||"desktop"===b||"on"===b);return e.scrollButtonStart=n?m.createElement(v,{orientation:h,direction:P?"right":"left",onClick:ne,visible:V.start,className:Dc(a.scrollButtons,"on"!==b&&a.scrollButtonsDesktop)}):null,e.scrollButtonEnd=n?m.createElement(v,{orientation:h,direction:P?"left":"right",onClick:re,visible:V.end,className:Dc(a.scrollButtons,"on"!==b&&a.scrollButtonsDesktop)}):null,e}();return m.createElement(c,Si({className:Dc(a.root,s,D&&a.vertical),ref:t},R),de.scrollButtonStart,de.scrollbarSizeListener,m.createElement("div",{className:Dc(a.scroller,M?a.scrollable:a.fixed),style:Y,ref:G,onScroll:se},m.createElement("div",{className:Dc(a.flexContainer,D&&a.flexContainerVertical,o&&!M&&a.centered),ref:Z,role:"tablist"},ue),F&&le),de.scrollButtonEnd)}));Gc((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:ki({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(Zv);var Jv={standard:ih,filled:Mf,outlined:Jh},Qv=m.forwardRef((function(e,t){var n=e.autoComplete,r=e.autoFocus,o=e.children,i=e.classes,a=e.className,s=e.color,l=void 0===s?"primary":s,c=e.defaultValue,u=e.error,d=e.FormHelperTextProps,p=e.fullWidth,f=e.helperText,h=e.hiddenLabel,g=e.id,v=e.InputLabelProps,y=e.inputProps,x=e.InputProps,w=e.inputRef,E=e.label,C=e.multiline,k=e.name,S=e.onBlur,T=e.onChange,R=e.onFocus,N=e.placeholder,M=e.required,P=void 0!==M&&M,D=e.rows,L=e.rowsMax,I=e.select,O=void 0!==I&&I,A=e.SelectProps,q=e.type,z=e.value,F=e.variant,W=void 0===F?"standard":F,H=Ri(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]),$=m.useState(0),B=$[0],j=$[1],V=m.useRef(null);m.useEffect((function(){if("outlined"===W){var e=b.findDOMNode(V.current);j(null!=e?e.offsetWidth:0)}}),[W,P,E]);var U={};"outlined"===W&&(v&&void 0!==v.shrink&&(U.notched=v.shrink),U.labelWidth=B),O&&(A&&A.native||(U.id=void 0),U["aria-describedby"]=void 0);var _=f&&g?"".concat(g,"-helper-text"):void 0,Y=E&&g?"".concat(g,"-label"):void 0,K=Jv[W],X=m.createElement(K,Si({"aria-describedby":_,autoComplete:n,autoFocus:r,defaultValue:c,fullWidth:p,multiline:C,name:k,rows:D,rowsMax:L,type:q,value:z,id:g,inputRef:w,onBlur:S,onChange:T,onFocus:R,placeholder:N,inputProps:y},U,x));return m.createElement(Lf,Si({className:Dc(i.root,a),error:u,fullWidth:p,hiddenLabel:h,ref:t,required:P,color:l,variant:W},H),E&&m.createElement(lh,Si({htmlFor:g,ref:V,id:Y},v),E),O?m.createElement(Cg,Si({"aria-describedby":_,id:g,labelId:Y,value:z,input:X},A),o):X,f&&m.createElement(zf,Si({id:_},d),f))}));function ey(e){return Math.round(1e5*e)/1e5}Gc({root:{}},{name:"MuiTextField"})(Qv);var ty=m.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.disableFocusListener,i=void 0!==o&&o,a=e.disableHoverListener,s=void 0!==a&&a,l=e.disableTouchListener,c=void 0!==l&&l,u=e.enterDelay,d=void 0===u?0:u,p=e.enterTouchDelay,f=void 0===p?700:p,h=e.id,g=e.interactive,v=void 0!==g&&g,y=e.leaveDelay,x=void 0===y?0:y,w=e.leaveTouchDelay,E=void 0===w?1500:w,C=e.onClose,k=e.onOpen,S=e.open,T=e.placement,R=void 0===T?"bottom":T,N=e.PopperProps,M=e.title,P=e.TransitionComponent,D=void 0===P?Gf:P,L=e.TransitionProps,I=Ri(e,["children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperProps","title","TransitionComponent","TransitionProps"]),O=Xc(),A=m.useState(!1),q=A[0],z=A[1],F=m.useState(0)[1],W=m.useState(),H=W[0],$=W[1],B=m.useRef(!1),j=m.useRef(null!=S).current,V=m.useRef(),U=m.useRef(),_=m.useRef(),Y=m.useRef(),K=m.useRef();m.useEffect((function(){V.current||(V.current="mui-tooltip-".concat(Math.round(1e5*Math.random()))),S&&F((function(e){return!e}))}),[S]),m.useEffect((function(){return function(){clearTimeout(U.current),clearTimeout(_.current),clearTimeout(Y.current),clearTimeout(K.current)}}),[]);var X=function(e){j||q||z(!0),k&&k(e)},G=function(e){var t=n.props;"mouseover"===e.type&&t.onMouseOver&&t.onMouseOver(e),B.current&&"touchstart"!==e.type||(H&&H.removeAttribute("title"),clearTimeout(_.current),clearTimeout(Y.current),d?(e.persist(),_.current=setTimeout((function(){X(e)}),d)):X(e))},Z=Ju(),J=Z.isFocusVisible,Q=Z.onBlurVisible,ee=Z.ref,te=m.useState(!1),ne=te[0],re=te[1],oe=function(e){j||z(!1),C&&C(e),clearTimeout(U.current),U.current=setTimeout((function(){B.current=!1}),O.transitions.duration.shortest)},ie=function(e){var t=n.props;"blur"===e.type&&(t.onBlur&&t.onBlur(e),ne&&(re(!1),Q())),"mouseleave"===e.type&&t.onMouseLeave&&t.onMouseLeave(e),clearTimeout(_.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),x)},ae=Du($,t),se=Du(ee,ae),le=m.useCallback((function(e){Pu(se,b.findDOMNode(e))}),[se]),ce=Du(n.ref,le),ue=j?S:q;""===M&&(ue=!1);var de=!ue&&!s,pe=Si({"aria-describedby":ue?h||V.current:null,title:de&&"string"==typeof M?M:null},I,{},n.props,{className:Dc(I.className,n.props.className)});c||(pe.onTouchStart=function(e){B.current=!0;var t=n.props;t.onTouchStart&&t.onTouchStart(e),clearTimeout(Y.current),clearTimeout(U.current),clearTimeout(K.current),e.persist(),K.current=setTimeout((function(){G(e)}),f)},pe.onTouchEnd=function(e){n.props.onTouchEnd&&n.props.onTouchEnd(e),clearTimeout(K.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),E)}),s||(pe.onMouseOver=G,pe.onMouseLeave=ie),i||(pe.onFocus=function(e){H||$(e.currentTarget),J(e)&&(re(!0),G(e));var t=n.props;t.onFocus&&t.onFocus(e)},pe.onBlur=ie);var fe=v?{onMouseOver:pe.onMouseOver,onMouseLeave:pe.onMouseLeave,onFocus:pe.onFocus,onBlur:pe.onBlur}:{};return m.createElement(m.Fragment,null,m.cloneElement(n,Si({ref:ce},pe)),m.createElement(lg,Si({className:Dc(r.popper,v&&r.popperInteractive),placement:R,anchorEl:H,open:!!H&&ue,id:pe["aria-describedby"],transition:!0},fe,N),(function(e){var t=e.placement,n=e.TransitionProps;return m.createElement(D,Si({timeout:O.transitions.duration.shorter},n,L),m.createElement("div",{className:Dc(r.tooltip,r["tooltipPlacement".concat(Zc(t.split("-")[0]))],B.current&&r.touch)},M))})))}));Gc((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none",flip:!1},popperInteractive:{pointerEvents:"auto"},tooltip:{backgroundColor:wi(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(ey(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(ey(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:ki({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:ki({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:ki({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:ki({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip"})(ty);var ny={entering:{transform:"none"},entered:{transform:"none"}},ry={enter:ga.enteringScreen,exit:ga.leavingScreen};function oy(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function iy({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:oy(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:o},m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},m.createElement("path",{d:e})))}m.forwardRef((function(e,t){var n=e.children,r=e.in,o=e.onEnter,i=e.onExit,a=e.style,s=e.timeout,l=void 0===s?ry:s,c=Ri(e,["children","in","onEnter","onExit","style","timeout"]),u=Xc(),d=Du(n.ref,t);return m.createElement(uu,Si({appear:!0,in:r,onEnter:function(e,t){Nu(e);var n=Mu({style:a,timeout:l},{mode:"enter"});e.style.webkitTransition=u.transitions.create("transform",n),e.style.transition=u.transitions.create("transform",n),o&&o(e,t)},onExit:function(e){var t=Mu({style:a,timeout:l},{mode:"exit"});e.style.webkitTransition=u.transitions.create("transform",t),e.style.transition=u.transitions.create("transform",t),i&&i(e)},timeout:l},c),(function(e,t){return m.cloneElement(n,Si({style:Si({transform:"scale(0)",visibility:"exited"!==e||r?void 0:"hidden"},ny[e],{},a,{},n.props.style),ref:d},t))}))}));const ay={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"},sy={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"},ly="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",cy={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"},uy={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};function dy(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.",e.layout);let r=Bo.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function py(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=ee(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),dy(e,a,c)}))}const fy=(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 hy({dir:e,dock:t,altList:n,model:r,translator:o,app:i,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives:()=>fy(i,n).then((e=>Promise.all(n.filter((t=>!e.includes(t.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(e,i,o).then((t=>({id:e.qDef.cId,selected:!1,title:t})))))))),changeTo(e,t){py(r,e,t,"qDimensions",a)}}}function my(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(o=e,"H"===o.qGrouping?o.title||"":o.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)},id:e.cId};var o}function gy({altList:e,app:t,dir:n,dock:r,model:o,onChange:i,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives:()=>fy(t,e).then((n=>Promise.all(e.filter((e=>!n.includes(e.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t})))))))),changeTo(e,t){py(o,e,t,"qMeasures",i,a)}}}function vy(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}const yy={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"}}},by=({children:e,...t})=>m.createElement(Jd,U({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);function xy(e){function t({title:e,selected:t,onClick:n}){const r=fe.detectTextDirection(e);return m.createElement(vh,{role:"menuitem",button:!0,onClick:n,style:{textAlign:"start"}},m.createElement(xh,{style:{minWidth:32}},m.createElement(iy,{d:t?ly:""})),m.createElement(Ch,{primaryTypographyProps:{dir:r}},e))}function n({alignTo:e,changeTo:n,current:r,dir:o,dock:i,list:a,onClose:s,show:l,instruction:c}){const u=a.map((e=>m.createElement(t,{key:e.id,title:e.title,onClick:()=>n(e.id)})));return m.createElement(Ph,U({anchorEl:e,open:l,onClose:s},yy[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),m.createElement(hh,{dense:!0,dir:o,"aria-label":c,component:"nav"},m.createElement(t,{title:r,selected:!0,onClick:s}),u))}t.propTypes={title:ni.exports.string.isRequired,selected:ni.exports.bool,onClick:ni.exports.func.isRequired},t.defaultProps={selected:!1},n.propTypes={alignTo:ni.exports.any,changeTo:ni.exports.func.isRequired,current:ni.exports.string.isRequired,dir:ni.exports.string.isRequired,dock:ni.exports.string.isRequired,list:ni.exports.array,onClose:ni.exports.func.isRequired,show:ni.exports.bool.isRequired,instruction:ni.exports.string.isRequired},n.defaultProps={list:[],alignTo:null};class r 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{selections:e}=this.props;e&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),e.addListener("activated",this.onSelectionsActivated),e.addListener("deactivated",this.onSelectionsDeactivated),e.addListener("canceled",this.onSelectionsDeactivated))}componentDidUpdate(e,t){const{popover:n,supportConditional:r}=this.props;n&&r&&n.getAlternatives().then((e=>{t.hasValidAlternatives!==(0!==e.length)&&this.setState({hasValidAlternatives:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.id,e),this.closePopover()}openPopover(){this.state.closeTime&&Date.now()-this.state.closeTime<20||this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e})}))}closePopover(){this.setState({open:!1,closeTime:Date.now()})}render(){const{titleData:e,popover:t,translator:r,disabled:o,isDimension:i,padding:a,minWidth:s,hasAlternative:l,supportConditional:c}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},d=e.breadcrumbs.length,p=o||this.state.inSelection,f=e.breadcrumbs.map(((t,n)=>m.createElement(by,{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:u},t),m.createElement(iy,U({},uy,{size:"small",style:{margin:"0 8px"}}))))),h=c?this.state.hasValidAlternatives:l,g=t&&!this.state.open?this.openPopover:this.closePopover,v=!t||o||this.state.inSelection,y={display:"flex",alignItems:"center",width:"100%",color:v&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&v&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(y.background="rgba(0,0,0,0.08)");a&&(y.padding=a),s&&(y.minWidth=s);const b=fe.detectTextDirection(e.text),x=m.createElement(by,{"aria-label":r.get("Accessibility.Alternative.Instructions",[e.text]),style:y,onClick:v?void 0:g,title:e.text,tabIndex:v?-1:0,onFocus:v?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:v?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()}},e.locked&&m.createElement(iy,U({},sy,{size:"small",title:r.get("Tooltip.selections.locked")})),m.createElement("span",{style:u,dir:b},e.text),t&&h&&m.createElement(iy,U({},cy,{size:"small",style:{margin:"0 8px"}})));return m.createElement(m.Fragment,null,e.drilldown&&m.createElement(iy,U({},ay,{size:"small",title:r.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),f,m.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},x),t&&h&&m.createElement(n,{dock:t.dock,dir:t.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function o(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function i(e){return!e.isDimension&&le(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return r.propTypes={disabled:ni.exports.bool.isRequired,padding:ni.exports.string,minWidth:ni.exports.string,titleData:ni.exports.shape({breadcrumbs:ni.exports.arrayOf(ni.exports.string).isRequired,drilldown:ni.exports.bool.isRequired,index:ni.exports.number.isRequired,locked:ni.exports.bool.isRequired,text:ni.exports.string.isRequired,popoverText:ni.exports.string.isRequired,drillUp:ni.exports.func,id:ni.exports.string.isRequired}).isRequired,popover:ni.exports.shape({dir:ni.exports.string.isRequired,dock:ni.exports.string.isRequired,changeTo:ni.exports.func.isRequired,getAlternatives:ni.exports.func.isRequired}),translator:ni.exports.shape({get:ni.exports.func.isRequired}).isRequired,selections:ni.exports.shape({isActive:ni.exports.func,addListener:ni.exports.func,removeListener:ni.exports.func}),style:ni.exports.shape({fontSize:ni.exports.string,color:ni.exports.string,fontFamily:ni.exports.string}).isRequired,isDimension:ni.exports.bool.isRequired,hasAlternative:ni.exports.bool.isRequired,supportConditional:ni.exports.bool.isRequired},r.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:t}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||i(this.settings.settings)?Math.max(28,t):Math.max(20,t)},render(){const{settings:{app:e,disabled:t,explicitItemInfos:n,hyperCube:a,hyperCubeDef:s,isDimension:l,minWidth:c,model:u,onChangeToAlternative:d,padding:p,rtl:f,selections:h,skipAttributeExpressions:g,translator:v,supportConditional:y=!1},layout:{dock:b}}=this.settings,x="top"!==b&&"bottom"!==b||!f?"ltr":"rtl",w=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(b,this.rect),E=s&&s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef,C=E&&E[l?"qDimensions":"qMeasures"]||[],k=n||a[l?"qDimensionInfo":"qMeasureInfo"],S=l?hy:gy,T=l?my:vy,R=u&&u.colorSupport&&u.modifiers&&S({altList:C,app:e,dir:f?"rtl":"ltr",dock:o(b),model:u,onChange:d,skipAttributeExpressions:g,translator:v}),N=(M=this.settings.settings).isDimension&&le(M,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||i(this.settings.settings);var M;const P=k.map(((e,n)=>{const o="number"==typeof e.explicitColumn?e.explicitColumn:n,i=T(e,o,u),a=n===k.length-1;return m.createElement(m.Fragment,{key:e.cId},m.createElement(r,{popover:R,titleData:i,model:u,translator:v,selections:h,disabled:t(),style:this.style,isDimension:l,padding:p,minWidth:c,hasAlternative:N,supportConditional:y}),!a&&m.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return m.createElement("div",{style:w,dir:x},P)}}}const wy=xa({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 Ey=Ca({productionPrefix:"qc353",disableGlobal:!0,seed:""});function Cy(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,o=e();const i={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=o.scaleRatio.x,n=o.scaleRatio.y;return r.style.left=Math.round(o.margin.left+o.x*t)+"px",r.style.top=Math.round(o.margin.top+o.y*n)+"px",r.style.width=Math.round(o.width)+"px",r.style.height=Math.round(o.height)+"px",r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",b.render(function(e,t){return m.createElement(yc,{generateClassName:t},m.createElement(_c,{theme:wy},e))}(e,Ey),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&b.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(b.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}function ky(){return function(e){e.renderer("react",Cy()),e.component("data-title",xy(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:ni.exports.string.isRequired,spanStyle:ni.exports.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r},style:o={}}=this.settings,i="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:case"top":case"bottom":r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(o,r,this.rect),s="center"===r?t:"* "+t,l="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return m.createElement("div",{style:a,dir:i},m.createElement(m.Fragment,null,m.createElement(e,{label:s,spanStyle:l})))}}}())}}function Sy(e){return pt(e).l<70}function Ty(e,t){const n=pt(e).l/100,r=pt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Ry(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var Ny={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const o=[];let i=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=i.attrs.fill,a=t.attrs.fill;if(Ty(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,i.desc.slice.innerRadius),s=Math.min(s,i.desc.slice.outerRadius),s>r){const t=Ry({r:s,a:e},n),i=Ry({r:r,a:e},n);o.push({type:"line",x1:t.x,y1:t.y,x2:i.x,y2:i.y,strokeWidth:1,opacity:.4,stroke:Sy(a)?"#ccc":"#333"})}}i=t}return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function My(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 Py(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),o=Math.sin(t),i=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:My(s)}}var Dy={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(o={r:t.offset,a:l},{x:(i=s).x+o.r*Math.sin(o.a),y:i.y-o.r*Math.cos(o.a)}),u=Py({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var o,i;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Ly(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",V(e))};e.interaction("hammer",V(Hammer))}(t)),e.use(ky()),e.component("pie-dividers",Ny),e.component("negative-indicators",Dy),e}var Iy={};function Oy(){Oy.init.call(this)}Iy.isObject=function(e){return"object"==typeof e&&null!==e},Iy.isNumber=function(e){return"number"==typeof e},Iy.isUndefined=function(e){return void 0===e},Iy.isFunction=function(e){return"function"==typeof e};var Ay=Oy;Oy.EventEmitter=Oy,Oy.prototype._events=void 0,Oy.prototype._maxListeners=void 0,Oy.defaultMaxListeners=10,Oy.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Oy.prototype.setMaxListeners=function(e){if(!Iy.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Oy.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Iy.isUndefined(n))return!1;if(Iy.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Iy.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Oy.prototype.addListener=function(e,t){var n;if(!Iy.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Iy.isFunction(t.listener)?t.listener:t),this._events[e]?Iy.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Iy.isObject(this._events[e])&&!this._events[e].warned)&&((n=Iy.isUndefined(this._maxListeners)?Oy.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Iy.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),Iy.isFunction(console.trace)&&console.trace()));return this},Oy.prototype.on=Oy.prototype.addListener,Oy.prototype.once=function(e,t){if(!Iy.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},Oy.prototype.removeListener=function(e,t){var n,r,o,i;if(!Iy.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Iy.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Iy.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Oy.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],Iy.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},Oy.prototype.listeners=function(e){return this._events&&this._events[e]?Iy.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Oy.listenerCount=function(e,t){return e._events&&e._events[t]?Iy.isFunction(e._events[t])?1:e._events[t].length:0};function qy(){const e={};var t;return t=e,Object.keys(Ay.prototype).forEach((e=>{t[e]=Ay.prototype[e]})),Ay.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}const zy={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 Fy(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Wy={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function Hy(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r,o,i;let a,s,l,c,u,d;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(r=n.session)&&void 0!==r&&r.sessionConfig||null!==(o=e.session)&&void 0!==o&&null!==(i=o.config)&&void 0!==i&&i.url)){var p;if(a=e.session.options||(null===(p=e.enigmaModel)||void 0===p?void 0:p.session.sessionConfig),!a){var f;a=null===(f=e.session)||void 0===f?void 0:f.config;const t=new URL(a.url);a.host=t.hostname,a.port=t.port,a.isSecure="wss:"===t.protocol}return d=void 0!==a.secure?a.secure:a.isSecure,s=d?"https://":"http://",l=a.host||"localhost",c=a.port?":"+a.port:"",u=a.prefix?a.prefix:"/","/"!==u[u.length-1]&&(u+="/"),s+l+c+u}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await Wy.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function $y(e,t,n,r){var o,i,a,s,l,c;const{app:u,flags:d}=t,p=null===(o=e.layout)||void 0===o||null===(i=o.tooltip)||void 0===i?void 0:i.imageComponents;if(!p)return[];const[f]=p,h=f.size||"small",m=f.type||"media";let g=-1;for(let e=0;e<n.length;e++)if(n[e].cId===f.cId){g=e;break}const v=(null===(a=r.data)||void 0===a||null===(s=a.customTooltipAttrExps)||void 0===s?void 0:s.value)||[];let y;if(-1!==g&&v[g]&&(y=v[g]),"media"===m&&null!==(l=f.ref)&&void 0!==l&&null!==(c=l.qStaticContentUrl)&&void 0!==c&&c.qUrl)return Hy(f,h,u);if("url"===m)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Fy(a))try{const t="data:image/png;base64, "+await e.getImage(a),{height:n,width:o,imageError:s}=await Wy.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Wy.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(u,d,f,h,y);if(d.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===m&&y&&y.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Fy(a))try{const t=await e.getImage(a);if(t){const e="data:image/png;base64, "+t,{height:r,width:i,imageError:a}=await Wy.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(u,n[g],h,y)}return[]}const By={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push($y(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t,n;const r=null===(t=e.layout)||void 0===t||null===(n=t.tooltip)||void 0===n?void 0:n.imageComponents;return!!r&&r.length>0}},jy={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await By.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>By.checkIfPromisesExist({customTooltipModel:e})};const Vy=(e,t)=>{var n,r,o;const i=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:zy.CHART.CHART_PARENT_TYPE,qId:zy.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Uy=e=>{var t,n,r;const o=null===(t=e.tooltip)||void 0===t||null===(n=t.chart)||void 0===n||null===(r=n.object)||void 0===r?void 0:r.refId;return{qInfo:{qType:zy.CHART.CHART_CHILD_TYPE},qExtendsId:o}};const _y={createContainer:({ctx:e,layout:t})=>{var n,r;if(!((null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r?void 0:r.length)<=0))return function(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.tooltip)||void 0===r||null===(o=r.chart)||void 0===o||null===(i=o.style)||void 0===i?void 0:i.size)&&void 0!==n?n:"medium",s=zy.CHART.STYLE[a];return[{content:[e.h("div",{style:{display:"flex",width:s,height:s,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:zy.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":s,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a,s,l;const c=o,u=null==t||null===(a=t.tooltip)||void 0===a||null===(s=a.chart)||void 0===s||null===(l=s.object)||void 0===l?void 0:l.refId;if(null!=c&&c.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&u&&!(t.qHyperCubeDef.qDimensions.length<=0)){await _y.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=zy.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=zy.CHART.STATE,a=Vy(t,i),s=await e.createSessionObject(a),l=Uy(t);if(s.id!==zy.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(c.miniChartToken.alternateState&&c.miniChartToken.sessionObj&&a){var d,p,f,h;const e=n.length>0&&void 0!==(null===(d=n[0].data)||void 0===d?void 0:d.value)?[null===(p=n[0].data)||void 0===p?void 0:p.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var m,g;const e=null!==(m=n[0].data.selectionOuterDimension)&&void 0!==m?m:n[0].data.selectionDimension;if(null!=e&&null!==(g=e.source)&&void 0!==g&&g.field){var v;const t=null==e||null===(v=e.source)||void 0===v?void 0:v.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const s=document.getElementById(zy.CHART.CONTAINER_ID),l={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};c.miniChartToken.vis=await o.embed.render({element:s,model:c.miniChartToken.model,options:l,id:null===(f=c.miniChartToken.model)||void 0===f?void 0:f.id,type:null===(h=c.miniChartToken.model)||void 0===h?void 0:h.genericType})}}catch(t){await _y.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(_y.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(zy.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=zy.CHART.STATE;await e.removeSessionAlternateState(r),n.miniChartToken.alternateState=void 0}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t,n;const r=e;"function"==typeof(null===(t=r.miniChartToken)||void 0===t||null===(n=t.vis)||void 0===n?void 0:n.destroy)&&(r.miniChartToken.vis.destroy(),r.miniChartToken.vis=void 0)}};function Yy(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Ky(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=zy.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function Xy(e){const t=Ky();return e.filter((e=>t[e.id]))}const Gy={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=Gy.getAttrExprData(a);i.length||n.length?jy.handlePromises({customTooltipModel:o,nodes:Gy.getDataNodes(s,i.length>0?i:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&_y.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>jy.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i,a,s;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(a=i.qDimensionInfo)||void 0===a||null===(s=a[t])||void 0===s?void 0:s.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n,r;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(r=n.quarantine)||void 0===r?void 0:r[zy.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[zy.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[zy.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Xy(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t,n;const r=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(n=t.quarantine)||void 0===n?void 0:n[zy.CUSTOM.QUARANTINE])&&delete r.qLayoutExclude.quarantine[zy.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Yy(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===Xy(o).length){var i,a;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(a=i.quarantine)||void 0===a?void 0:a.customTooltip)||[],n=[...o,...t],s=e;s.qHyperCubeDef?s.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:s.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const o=Yy(e)||[];[...o,t].forEach((e=>{const t=Xy(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=Ky(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:fe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=fe.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function Zy(e,t,n,r){var o,i,a;const s=(null===(o=t.qHyperCube)||void 0===o||null===(i=o[n])||void 0===i||null===(a=i[r])||void 0===a?void 0:a.qAttrExprInfo)||[],l=[],c=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return c?(s.forEach(((e,t)=>{const o=c.qValues&&c.qValues[t]?c.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case zy.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case zy.CUSTOM.TITLE:case zy.CUSTOM.DESCRIPTION:case zy.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);l.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),l):l}const Jy={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Zy(t,e,r,n)}}};const Qy={getCustomAttrExps(e,t,n){var r,o;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},a=(null===(r=t.data)||void 0===r||null===(o=r.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];if(Number.isNaN(a))return i;return function(e,t,n,r){const o={[zy.CUSTOM.TITLE]:!0,[zy.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=Gy.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===zy.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===zy.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,a.map((t=>he.getMeasure(e,t))),e,i)}};function eb({nodes:e,layout:t,dataset:n}){return function(e,t,n){const r=[];return e.forEach((e=>{r.push(Qy.getCustomAttrExps(n,e,t))})),r}(e,t,n).reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function tb(e){const t=zy.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function nb(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var rb={attrExpr:{migrateProperties(e){var t,n,r,o;const i=ee(!0,{},e),a=(null===(t=i.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[];let s=nb(i);return s=function(e,t){return t.concat(e.map((e=>tb(e))))}(a,s),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(s,i),null===(o=i.tooltip)||void 0===o||delete o.data,i},getPatches(e){var t,n,r,o;const i=(null===(t=e.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[],a=(null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qDimensions.length)-1;return function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=tb(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(nb(e),i,a)},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,o,i,a,s;const l=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],c=(null===(o=t.tooltip)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.qHyperCube)||{},u=null===(a=t.qMeta)||void 0===a||null===(s=a.privileges)||void 0===s?void 0:s.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(c,l)&&e.getEffectiveProperties().then((t=>{if(u){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}};const{CUSTOM:ob}=zy;function ib({flags:e,layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c,options:u}){var d,p,f;const h=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:Gy,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c}),m="rtl"===u.direction,g=!(!t.tooltip||t.tooltip.auto),v=g&&o(t,"tooltip.hideBasic",!1),y=!!(g&&null!==(d=t.tooltip)&&void 0!==d&&null!==(p=d.chart)&&void 0!==p&&null!==(f=p.object)&&void 0!==f&&f.refId&&c&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));return{isEnabled:()=>g,hideBasic:()=>v,getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=eb({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===ob.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===ob.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>Gy.checkIfPromisesExist({customTooltipModel:h}),createImageRow:({value:e,h:t})=>Gy.getImageRow(e,{h:t,rtl:m}),addImages:({nodes:r})=>{const o=Gy.getDataNodes(a,r),i=Gy.getAttrExprData(t);return jy.handlePromises({customTooltipModel:h,nodes:o,attrExps:i,opts:{flags:e,app:n}})},chart:{isEnabled:()=>y,hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>_y.createContainer({layout:t,ctx:{h:e,rtl:m}}),createLimitationRow:()=>Gy.getFooterRow(s.get("properties.tooltip.notselectedmessage"),m),show:({nodes:e,properties:t})=>_y.show({app:n,properties:t,selectedNodes:e,customTooltipModel:h,rtl:m}),hasAlternateState:()=>{var e;return!(null===(e=h.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>_y.hide({app:n,customTooltipModel:h}),destroy:()=>_y.destroyVisualization({customTooltipModel:h})}}}function ab(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function sb({chart:e,translator:t,layout:n,constraints:r,options:o,themeService:i,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,u="rtl"===o.direction,{fontFamily:d}=i.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:o,create:i,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},f=[];u&&f.push(i.text({value:u,style:{bold:!0}})),d&&f.push(i.text({value:d}));const h=s.hideBasic();if(h&&!p.length&&(u||d)||f.push(i.text({value:c.data.label,style:{bold:!0}})),!h){f.push(i.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}f.push(i.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:o("share")(c.desc.share)}))}p&&f.push(...p.map((e=>i.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),f.push(i.raw({value:s.chart.createLimitationRow()}))):f.push(i.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&f.push(...m.map((t=>i.raw({value:s.createImageRow({value:t,h:e})})))),f},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}function lb({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:o}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:e+"Range",direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const cb=.8,ub=.55,db={CORNER_RADIUS:0,INNER_RADIUS:ub,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},pb=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,o;let i=cb,a=0;const s=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:ub;e.donut.showAsDonut&&(i=cb-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*i+a}}:cb,fb=({layout:e},t,n)=>{var r,o;if(!e.donut.showAsDonut)return 0;const i=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:ub;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=cb-i,n=i;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:i},hb=({layout:e},t)=>{var n,r,o,i,a,s;const l=t.colorService.getDatumProps(),c=l[Object.keys(l)[0]],u=c&&c.field?c.field:void 0,d="qDimensionInfo/0"===u,p=u?t.ds.field(u).raw():null,f=p&&(p.label||p.title||p.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:m}=t.chart,g=le(e,"qHyperCube.qDimensionInfo",[]).length;function v(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>m(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...l,num:v(t.encodings.slice.arc,"arc"),fillTooltip:u?{field:u,label:f,value:e=>d?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==g?Jy.getNode(e,{dimensionCount:g}):void 0,radius:h?v(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:fb({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?db.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:db.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(o=y.style)||void 0===o||null===(i=o.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:db.STROKE.COLOR,outerRadius:pb({layout:e},t,y),cornerRadius:null!==(a=null==y||null===(s=y.style)||void 0===s?void 0:s.cornerRadius)&&void 0!==a?a:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function mb({layout:e},t){var n,r;const o=(e.components||[]).filter((e=>"slices"===e.key))[0],i=null!==(n=null==o||null===(r=o.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:ub,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=cb-i,n=i;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function gb(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 vb({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}function yb(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function bb(e){return e.node.data.num.label}function xb(e){return e.node.data.radius.label}function wb(e,t,n){if(e.dataPoint.auto)return n?bb:yb;if("share"===e.dataPoint.labelMode)return yb;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?xb:bb}return null}function Eb({data:e}){return e?e.label:""}function Cb(e){const t=parseInt(e,10);if(!isNaN(t))return t}function kb(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:ub)>.3}function Sb({node:e,data:t}){return ee({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Tb(e,t,n){const r=t.styleService.label.name.getStyle(),o=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:Cb(r.fontSize),fontFamily:r.fontFamily,label:Eb,linkData:({node:e,data:t})=>ee({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(wb(e,t,!1)){const r=function(e,t,n){return{label:wb(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&kb(e)?"inside":"into",onBackground:e.donut.showAsDonut&&kb(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),i=ve(ee(t,r),n.theme);i.linkData=Sb,o.push(i)}return{key:"pie-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:o}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Rb({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=wb(e,t,!0),o=(e=>t=>e.getContrastingColorTo(t.node.attrs.fill))(n.theme),i=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===i.label.name.color,c=s.fill===i.label.value.color;return{key:"pie-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:Cb(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?o:a.fill,label:Eb,linkData:({data:e})=>e},{fontSize:Cb(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?o:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Tb(e,n,t))}const Nb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=(this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type))||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return r||this.chart.component("legendRangeBrush").emit("rangeClear"),r}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function Mb(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}function Pb(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:o}=Mb(e,t),i=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*cb;return(i-r)**2+(a-o)**2<=s**2}const Db=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let o=Mb(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(o={cx:o.x,cy:o.y,r:5});const i=this.chart.shapesAt(o,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});i.length&&(this.chart.brushFromShapes(i,{components:[{key:i[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Lb=(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()}}}),Ib=(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 Ob(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Pb(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 Ab=(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()&&Pb(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}}}),qb=(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}}}),zb=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[Ab(e,{}),Db(e,t,{}),...n]:[Nb(e,{}),Ib(e,{}),Ab(e,{}),Lb(e,{}),qb(e,{}),Db(e,t,{}),...n]});function Fb(e,t,n){const r=e.getIsSingleSelect(0),{constraints:o}=n;if(o.active&&o.passive)return[];const i=t.tooltipService.getInteractions();return[zb(t,r,i.gestures),Ob(t),i.native]}function Wb({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 Hb({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,o=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:o.fontFamily,fontSize:o.fontSize,color:o.color}}}function $b({layout:e},t,n){const r=function(e,t){const n={field:"qDimensionInfo/0",props:{num:{field:t.encodings.slice.arc}}};t.encodings.slice.outerRadius&&(n.props.radius={field:t.encodings.slice.outerRadius});let r=t.ds.extract(n);if(0===r.length)return"NoDataExist";const o=le(e,"qHyperCube.qSize.qcy");if(le(e,"qHyperCube.qDataPages.0.qArea.qHeight")<o)return"LimitedData";if(r=t.encodings.slice.outerRadius?r.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):r.filter((e=>"NaN"!==e.num.value)),0===r.length)return"OnlyNanData";const i=r;return r=t.encodings.slice.outerRadius&&!e.donut.showAsDonut?r.filter((e=>e.num.value>0&&e.radius.value>0)):r.filter((e=>e.num.value>0)),0===r.length?"OnlyNegativeOrZeroValues":i.length!==r.length&&"NegativeOrZeroValues"}(e,t),{fontFamily:o}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:o}=t,{rtl:i}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:re[e].alignment},settings:{label:o.get("Object.Disclaimer."+e),rtl:i},style:r}}(r,t,n,{fontFamily:o})}function Bb({layout:e,context:t,selectionService:n},r={}){const o=function({layout:e}={},t={}){const n={};return ee(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&ee(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),i={scales:o};let a=[];const s=$b({layout:e},r,t);if(s&&"center"===s.layout.dock)return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",rtl:t.rtl},{navigationDisabled:l});return o.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(o.fillRange.invert=!0),a=[hb({layout:e,settings:i},r),mb({layout:e},r),gb(r),vb({layout:e},r),Hb({layout:e},r,t),...c.components,lb({settings:i,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),{key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}},{key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}},Rb({layout:{components:e.components,dataPoint:ee({},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:Fb(n,r,t),scales:o,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:Wb({settings:i},r),strategy:se(0,r)}}function jb({instance:e,services:t,picasso:n,flags:o}){const i=x(),a=N(),s=M(),l=S(),c=I(),u=P(),d=E(),p=L(),{qLocaleInfo:h}=O(),[m]=q((()=>{if(!t)return Promise.resolve();rb.attrExpr.updateProperties(a,u);return Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:h,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}})}),a&&!u.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])}),[t]);R((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(u)}),[u]),R((()=>{if(!e||!m)return;const{chart:g,viewState:v,interactions:y,viewCache:b}=e,{colorService:x,pluginService:w,themeService:E,tooltipService:C,styleService:k}=t,S=i.viewState||{};u.snapshotData||(v.preventSet("legendScrollOffset",S.legendScrollOffset||0),v.preventSet("rotation",S.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,v),C.expando.set("properties",m[1]);const T=n.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}}),R=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}},...x.getData()],N={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(N.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:h}}),N),P=d?()=>{const e=g.brush("selection");r.selections(e,{},u).forEach((e=>{d.select(e)}))}:()=>{},D=u.snapshotData&&!i.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,L=t=>e.selectionService.getIsSelectionLocked(t),I=()=>Bb({layout:u,context:{rtl:"rtl"===i.direction,theme:c,translator:l,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:T,model:a,app:s,chart:g,onSelect:P,isLocked:L,interactions:y,constraints:p,translator:l,viewState:v,dataRowCount:M,encodings:N,colorService:x,pluginService:w,themeService:E,styleService:k,tooltipService:C,debouncer:f,properties:m[1],logicalSize:D,flags:o,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:o}){return!1!==t.chartAnimations&&n.get("chartWidth")===o.element.clientWidth&&n.get("chartHeight")===o.element.clientHeight&&n.get("hasZeroLine")===!!o.component("zeroLine")&&0===e.get("rotation")&&!ti.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:v,options:i,layout:u,viewCache:b,chart:g})}});e.generateSettings=I;const O=I();g.update({data:R,settings:O}),b.set("chartWidth",g.element.clientWidth),b.set("chartHeight",g.element.clientHeight),b.set("hasZeroLine",O.components.filter((e=>"zeroLine"===e.key)).length>0),ti.cacheProperties({viewCache:b,layout:u}),i.effect&&u.effectProperties?i.effect.update(u,g,{encodings:N}):u.effectPath||g.brush("highlight").end()}),[e,m,i.direction,i.effectProperties,p,c.name(),l.language()])}function Vb({instance:e,services:t}){const n=w(),r=P();F((o=>{if(!(r.snapshotData&&r.snapshotData.content&&r.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(o,n),e&&t))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:ce(t,"legend-cat"),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:o,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),W((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:ce(e.chart,"legend-cat")})})),[e])}const Ub={setValue(e,t,n){if(!t)return;const r=t.split(".");let o=e;const i=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==o[r[a]]&&(o[r[a]]=Number.isNaN(+r[a+1])?{}:[]),o=o[r[a]];void 0!==n?o[i]=n:delete o[i]},getValue(e,t,n){const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(null==i[r[o]])return n;i=i[r[o]]}return i}},_b={getDimensions:e=>Ub.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>Ub.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>Ub.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>Ub.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=Ub.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=Ub.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 Yb={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>_b.getNumMeasures(e)>=1},showLegend:e=>{const t=Ub.getValue(e,"color.auto"),n=Ub.getValue(e,"color.expressionIsColor"),r=Ub.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!Ub.getValue(e,"color.auto")&&"byDimension"===Ub.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===Ub.getValue(e,"color.useDimColVal")&&Ub.setValue(e,"color.useDimColVal",!1),!Ub.getValue(e,"color.auto")&&"byDimension"===Ub.getValue(e,"color.mode")&&"libraryItem"===Ub.getValue(e,"color.byDimDef.type"))},Kb=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:o}=Yb;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)&&!Ub.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:o,showTitle:{show(e){const t=Ub.getValue(e,"color.auto");return Ub.getValue(e,"legend.show")&&o(e)&&(t||!function(e){return"byExpression"===Ub.getValue(e,"color.mode")&&!0===Ub.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>Ub.getValue(e,"legend.show")&&o(e)}}};function Xb(e){return new Kb(e)}const Gb={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}}}}}}},Zb=(e,t,n)=>{const r=e+".fontFamily",o=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:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:e+".color",defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},Jb={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}}}}},Qb=(e,t,n,r)=>{const o=h({theme:r,translator:n,config:{id:"pieChart",paths:["axis.title","label.name","label.value"]}});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:Zb("axis.title",o,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:Zb("label.name",o,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:Zb("label.value",o,r)}}}:void 0}}},ex=Xb("hard");const tx=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(i(e,"color.mode","byDimension"),i(e,"color.byDimDef.activeDimensionIndex",0),i(e,"color.persistent",!1))},nx=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},rx=e=>{var t;const{flags:n,translator:r}=e||{},o=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:tx},colorMode:{options:nx}}}}},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||i(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,o){o.dimensionTitle=!e}}}}}}};return{uses:"settings",items:{simpleStyling:null!=n&&n.isEnabled("PIECHART_SIMPLE_STYLING")?Gb: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")?Qb(a,n,r,o):Jb,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:ex.color.colorMode.options},persistentColors:{show:ex.color.persistentColors.show}}},simpleColors:s,legend:{show:ex.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:ex.legend.showTitle.show},dock:{show:ex.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}}},ox={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)}}}}}}},ix={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}}}}},ax={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function sx(e){return{type:"items",component:"accordion",items:{data:ox,sorting:ix,addons:ax,settings:rx(e)}}}const lx=Xb("explore"),cx=sx();var ux={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:cx.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:cx.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:lx.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&lx.color.useDimColVal.show(e))}}}}}}};const dx="slices";function px(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function fx(e){return e.data.num.label}function hx(e){return e.data.radius.label}function mx(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?fx:px;if("share"===e.dataPoint.labelMode)return px;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?hx:fx;return fx}(n,r)(e,t)}function gx(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 vx{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const o=e.find(".effectLayer");o.length>0&&o.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),o=n.map((n=>{const{start:o,end:i,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(o+i)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),p=c.top-r.top+l.y*(s.y-a*Math.cos(u)),f=Math.cos(u)>0?"top":"bottom",h=Math.sin(u)>0?"right":"left";return{title:gx(n),label:mx(n,this.chart.formatter,e,t),orientation:`${f}${h}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,o)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=ee(!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=ee(e.options,{effect:null}),n?t.getProperties().then((e=>ee(e,{effectPath:null,effectProperties:null,dataPoint:ee(!0,{},e.originalModelSettings.dataPoint),legend:ee(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class yx extends vx{init(e,t,n,r){return e.options=ee(!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(dx).data.items,n=e.effectProperties.min,r=e.effectProperties.max,o=[];let i=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const o=e.num.value;n&&o<i[0]&&(i=[o,t]),r&&o>a[0]&&(a=[o,t])})),-1!==i[1]&&o.push(t[i[1]].value),-1!==a[1]&&o.push(t[a[1]].value),o.length&&this.chart.brush("highlight").setValues(o.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class bx extends vx{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(dx).data.items.map((e=>e.value)).indexOf(n.data.value);-1!==r&&(this.selectedIndex=r,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(dx).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===dx)).map(((n,r)=>{const o=mx(n,this.chart.formatter,e,t);return{text:`${gx(n)} (${o})`,value:r}}))}init(e,t,n,r){return e.options=ee(!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 xx="/effects/highlight-value",wx="/effects/maxmin";var Ex={isCompatible:({effectPath:e})=>e===wx||e===xx,create:e=>e.effectPath===wx?new yx(e):e.effectPath===xx?new bx(e):null};function Cx(e){const t={},{components:n,tooltip:r}=e,o=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(o&&o.style&&Object.keys(o.style).forEach((e=>{t["chart_style_"+e]=o.style[e]})),r){var i,a;t.chart_tooltip_custom=!r.auto;const e=null===(i=r.chart)||void 0===i||null===(a=i.object)||void 0===a?void 0:a.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function kx(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 Sx(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function Tx({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){Sx(e),kx(t),Gy.addCallbackCustomTooltip(t)},move(e,t){Sx(e),kx(t),Gy.moveCallbackCustomTooltip(t,e)},remove(e,t){Gy.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){Sx(e),kx(r),Gy.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){kx(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 Rx=e=>e.qMax<=0,Nx=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(Rx));function Mx(e){return{definition:sx(e),softDefinition:ux,support:{snapshot:Nx,export:Nx,exportData:!0,sharing:Nx,viewData:!0,effects:!0},effects:Ex,extendMetrics:Cx,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=H.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Tx(e),defaultPropertyValues:a,hypercubePath:o});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>H.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function Px(e){return{properties:{version:"1.24.0",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:db.STROKE.COLOR},cornerRadius:db.CORNER_RADIUS,innerRadius:db.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:[Tx(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const o=H.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Tx(e),hypercubePath:r});return o.qProperty.dataPoint&&!1===o.qProperty.dataPoint.show&&delete o.qProperty.dataPoint.show,o},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>H.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($).forEach((t=>{e.add($[t])}))}}(e.translator);const n=Ly();return{qae:Px(e),ext:Mx(e),component(){const e=function({picasso:e}){var t;const n=x(),r=w(),o=E(),[i,c]=C(),u=qy(),d=k(),p=S(),f=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[h,m]=C(!1);return u.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:o}){var i,a,s;return{active:n,label:o.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(i=e.qHyperCube)||void 0===i||null===(a=i.qDimensionInfo)||void 0===a||null===(s=a[0])||void 0===s||!s.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:d,isInSelections:f,isLassoActionActive:h,setIsLassoActionActive:m,translator:p}),T((()=>(i&&(i.interactions.lasso.active=()=>h),{...u.lasso})),[i,h,f,p.language()]),R((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),i=t.chart({element:r,data:[],settings:{}}),p=a({chart:i,actions:u,selections:o,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const f=s({legendScrollOffset:0,rotation:0});f.intercept("rotation",(e=>(f.get("rotation")+e)%(2*Math.PI))),f.onChanged("rotation",(()=>{i.update({partialData:!0})}));const h=l();return u.on("selections-start",(()=>{i.brush("selection").start()})),c({picasso:t,chart:i,selectionService:p,viewState:f,viewCache:h,interactions:u}),()=>{p.destroy(),i.destroy(),u.removeAllListeners(),delete u.select,f.intercept("rotation",void 0),f.onChanged("rotation",void 0)}}),[]),i}({picasso:n}),r=function({flags:e,picasso:t,instance:n}){const r=N(),o=M(),i=S(),a=w(),[s,l]=C(),c=P(),f=D(),h=L(),m=x(),g=I(),{qLocaleInfo:v}=O(),y=A();return R((()=>{if(!n)return;a.style.overflow="hidden";const s=u({picasso:n.picasso,model:r,app:o,translator:i,config:{auto:!1,key:"fill"}}),b=d({picassoInstance:n.picasso,plugins:f,pluginArgs:ab(c)}),x=ib({flags:e,layout:c,app:o,model:r,picasso:t,chart:n.chart,translator:i,localeInfo:v,embed:y,options:m}),w=p({theme:g,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),E=sb({app:o,chart:n.chart,translator:i,layout:c,constraints:h,options:m,themeService:w,colorService:s,custom:x}),C=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),o=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,i,a,s,l,c,u,d,p,f,h;return{fontFamily:null!==(e=null===(t=o("axis"))||void 0===t||null===(n=t.axis)||void 0===n||null===(i=n.title)||void 0===i?void 0:i.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(a=null===(s=o("axis"))||void 0===s||null===(l=s.axis)||void 0===l||null===(c=l.title)||void 0===c?void 0:c.fontSize)&&void 0!==a?a:r.axis.title.fontSize,color:null!==(u=null===(d=o("axis"))||void 0===d||null===(p=d.axis)||void 0===p||null===(f=p.title)||void 0===f||null===(h=f.color)||void 0===h?void 0:h.color)&&void 0!==u?u:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,i,a,s,l,c,u,d,p,f,h;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(n=t.label)||void 0===n||null===(i=n.name)||void 0===i||null===(a=i.color)||void 0===a?void 0:a.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(s=null===(l=o("label"))||void 0===l||null===(c=l.label)||void 0===c||null===(u=c.name)||void 0===u?void 0:u.fontSize)&&void 0!==s?s:r.label.name.fontSize,fontFamily:null!==(d=null===(p=o("label"))||void 0===p||null===(f=p.label)||void 0===f||null===(h=f.name)||void 0===h?void 0:h.fontFamily)&&void 0!==d?d:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,i,a,s,l,c,u,d,p,f,h;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(n=t.label)||void 0===n||null===(i=n.value)||void 0===i||null===(a=i.color)||void 0===a?void 0:a.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(s=null===(l=o("label"))||void 0===l||null===(c=l.label)||void 0===c||null===(u=c.value)||void 0===u?void 0:u.fontSize)&&void 0!==s?s:r.label.value.fontSize,fontFamily:null!==(d=null===(p=o("label"))||void 0===p||null===(f=p.label)||void 0===f||null===(h=f.value)||void 0===h?void 0:h.fontFamily)&&void 0!==d?d:r.label.value.fontFamily}}}}}}({layout:c,themeService:w,flags:e});l({colorService:s,pluginService:b,themeService:w,tooltipService:E,styleService:C})}),[r,o,n,c,i.language(),h,m.direction,g.name()]),s}({flags:t,picasso:n,instance:e});jb({instance:e,services:r,picasso:n,flags:t}),function({instance:e}){const t=P(),n=x(),r=z();R((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:o,generateSettings:i}=e;o.update({settings:i()}),r.set("chartWidth",o.element.clientWidth),r.set("chartHeight",o.element.clientHeight),n.effect&&n.effect.update(t,o)}),[r.width,r.height])}({instance:e}),Vb({instance:e,services:r})}}}))}}}));
|