@nebula.js/sn-combo-chart 1.32.0 → 1.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-combo-chart v1.32.0
2
+ * @nebula.js/sn-combo-chart v1.32.2
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-combo-chart"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var n={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_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","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":"Выключить выбор лассо"}}};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},u=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,n=o.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&o.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||o.call(e,t)},d=function(e,t){s&&"__proto__"===t.name?s(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},f=function(e,t){if("__proto__"===t){if(!o.call(e,t))return;if(l)return l(e,t).value}return e[t]},h=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,h=arguments.length,p=!1;for("boolean"==typeof s&&(p=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<h;++l)if(null!=(t=arguments[l]))for(n in t)r=f(s,n),s!==(i=f(t,n))&&(p&&i&&(u(i)||(o=c(i)))?(o?(o=!1,a=r&&c(r)?r:[]):a=r&&u(r)?r:{},d(s,{name:n,newValue:e(p,a,i)})):void 0!==i&&d(s,{name:n,newValue:i}));return s},p=r(h);const m=[["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}]],g={};m.forEach((([e,{width:t,height:n}])=>{g[e]={width:t,height:n}}));const y={getLayoutModes:()=>g,getLayoutMode(e,t){let n;for(n=0;n<m.length;++n)if(e>=m[n][1].width&&t>=m[n][1].height)return m[n][0];return"SPARK"}};const v=["$date","$timestamp","$time"],b=["D","TS","T"],x={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>v.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&b.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(x.hasTimeTag(t)&&x.hasUnknownFormat(t)||x.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&x.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&x.canBeContinuousDimension(r[0])},maxNumberOfLines:12},S=/^[A-Z][A-z0-9_]*$/i,w={getChar(e){let t=e,n=-1;return t>9?(n=65+t-10,n>90&&(n+=6)):t=`${t}`.charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?this.getChar(t+1):String.fromCharCode(n)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}},M={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),i=r[r.length-1];let o,a=e;for(o=0;o<r.length-1;++o)void 0===a[r[o]]&&(a[r[o]]=Number.isNaN(+r[o+1])?{}:[]),a=a[r[o]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(void 0===o[r[i]])return n;o=o[r[i]]}return o},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||S.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>w.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},k=e=>M.getValue(e,"qHyperCube.qDimensionInfo",[]),E=e=>M.getValue(e,"qHyperCube.qMeasureInfo",[]),C=e=>M.getValue(e,"barGrouping.grouping"),O={continuous:(e,t=!1)=>!!x.canBeContinuous(e)&&(M.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!k(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===C(e)&&(k(e).length>1||E(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&k(e).length>1&&1===E(e).length},groupedByMeasure(e){return this.grouped(e)&&1===k(e).length&&E(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==C(e)&&"butterfly"!==C(e)||this.continuous(e))&&(k(e).length>1||E(e).length>1)},stackedByDimension(e){return this.stacked(e)&&k(e).length>1&&1===E(e).length},stackedByMeasure(e){return this.stacked(e)&&1===k(e).length&&E(e).length>1},simple:e=>0===k(e).length||1===k(e).length&&1===E(e).length,snapshot:e=>!!M.getValue(e,"snapshotData")};function N(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const T=e=>{throw e.isHandled=!0,e};const A={getDockValue:e=>"near"===e||"left"===e||"top"===e?0:1,getOppositeDock(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";case"near":default:return"far";case"far":return"near"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?A.getVerticalDock(t):n?A.getOppositeDock(A.getHorizontalDock(t)):A.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment:(e,t)=>"vertical"===e?"near"===t||"bottom"===t?1:0:"near"===t||"left"===t?0:1,getMeasureScaleInvert:(e,t)=>"vertical"===e||t,getDimensionScaleInvert:(e,t)=>"horizontal"===e&&t,getSize:(e,{width:t,height:n})=>"vertical"===e?t:n},R=166/26,q=12/11,D={stringWidthOverMWidth:e=>(12*Math.min(e,3)+Math.max(e-3,0)*R)/11,getCharacterRatios(e){if(!e)return{latin:0,cjk:0};let t=e.match(/[\u4E00-\u9FFF]/g),n=e.match(/[\u3040-\u309F]/g),r=e.match(/[\u30A0-\u30FF]/g);t=t?t.length:0,n=n?n.length:0,r=r?r.length:0;const i=t+n+r;return{latin:e.length-i,cjk:i}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let i;void 0===t?e.forEach((e=>{i=D.getCharacterRatios(e[n]),r.latin+=i.latin,r.cjk+=i.cjk})):e.forEach((e=>{i=D.getCharacterRatios(e[t][n]),r.latin+=i.latin,r.cjk+=i.cjk}));const o=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/o,r.cjkRatio=r.cjk/o,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const i=D.getTotalCharacterRatios(t,n,r),o=i.latinRatio*e,a=i.cjkRatio*e;return Math.ceil(D.stringWidthOverMWidth(o)+a*q)}},I=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),L=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),P=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),_={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>I.test(e),isRtlChar:e=>L.test(e)||P.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],_.isLtrChar(r))return"ltr";if(_.isRtlChar(r))return"rtl"}return"ltr"}},z={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,i=e.resources.formatter,o=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=i("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=o(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?z.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=_.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=_.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:_.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=_.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=_.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,z.getColorSymbol(e,t)]:[z.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:o,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,i=!1){const o=_.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=_.detectTextDirection(e.value);let l;return l=i?r?[e.value,z.getColorSymbol(t,n)]:[z.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:o}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function F(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function j(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function $(){}var B=.7,H=1/B,V="\\s*([+-]?\\d+)\\s*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",W="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Y=/^#([0-9a-f]{3,8})$/,G=new RegExp(`^rgb\\(${V},${V},${V}\\)$`),K=new RegExp(`^rgb\\(${W},${W},${W}\\)$`),X=new RegExp(`^rgba\\(${V},${V},${V},${U}\\)$`),J=new RegExp(`^rgba\\(${W},${W},${W},${U}\\)$`),Z=new RegExp(`^hsl\\(${U},${W},${W}\\)$`),Q=new RegExp(`^hsla\\(${U},${W},${W},${U}\\)$`),ee={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 te(){return this.rgb().formatHex()}function ne(){return this.rgb().formatRgb()}function re(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Y.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ie(t):3===n?new le(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?oe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?oe(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=G.exec(e))?new le(t[1],t[2],t[3],1):(t=K.exec(e))?new le(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=X.exec(e))?oe(t[1],t[2],t[3],t[4]):(t=J.exec(e))?oe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Z.exec(e))?pe(t[1],t[2]/100,t[3]/100,1):(t=Q.exec(e))?pe(t[1],t[2]/100,t[3]/100,t[4]):ee.hasOwnProperty(e)?ie(ee[e]):"transparent"===e?new le(NaN,NaN,NaN,0):null}function ie(e){return new le(e>>16&255,e>>8&255,255&e,1)}function oe(e,t,n,r){return r<=0&&(e=t=n=NaN),new le(e,t,n,r)}function ae(e){return e instanceof $||(e=re(e)),e?new le((e=e.rgb()).r,e.g,e.b,e.opacity):new le}function se(e,t,n,r){return 1===arguments.length?ae(e):new le(e,t,n,null==r?1:r)}function le(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ce(){return`#${he(this.r)}${he(this.g)}${he(this.b)}`}function ue(){const e=de(this.opacity);return`${1===e?"rgb(":"rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${1===e?")":`, ${e})`}`}function de(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function he(e){return((e=fe(e))<16?"0":"")+e.toString(16)}function pe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ge(e,t,n,r)}function me(e){if(e instanceof ge)return new ge(e.h,e.s,e.l,e.opacity);if(e instanceof $||(e=re(e)),!e)return new ge;if(e instanceof ge)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ge(a,s,l,e.opacity)}function ge(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ye(e){return(e=(e||0)%360)<0?e+360:e}function ve(e){return Math.max(0,Math.min(1,e||0))}function be(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}F($,re,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:te,formatHex:te,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return me(this).formatHsl()},formatRgb:ne,toString:ne}),F(le,se,j($,{brighter(e){return e=null==e?H:Math.pow(H,e),new le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?B:Math.pow(B,e),new le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new le(fe(this.r),fe(this.g),fe(this.b),de(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:ce,formatHex:ce,formatHex8:function(){return`#${he(this.r)}${he(this.g)}${he(this.b)}${he(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ue,toString:ue})),F(ge,(function(e,t,n,r){return 1===arguments.length?me(e):new ge(e,t,n,null==r?1:r)}),j($,{brighter(e){return e=null==e?H:Math.pow(H,e),new ge(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?B:Math.pow(B,e),new ge(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new le(be(e>=240?e-240:e+120,i,r),be(e,i,r),be(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ge(ye(this.h),ve(this.s),ve(this.l),de(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=de(this.opacity);return`${1===e?"hsl(":"hsla("}${ye(this.h)}, ${100*ve(this.s)}%, ${100*ve(this.l)}%${1===e?")":`, ${e})`}`}}));const xe=Math.PI/180,Se=180/Math.PI,we=.96422,Me=.82521,ke=4/29,Ee=6/29,Ce=3*Ee*Ee,Oe=Ee*Ee*Ee;function Ne(e){if(e instanceof Te)return new Te(e.l,e.a,e.b,e.opacity);if(e instanceof Le)return Pe(e);e instanceof le||(e=ae(e));var t,n,r=De(e.r),i=De(e.g),o=De(e.b),a=Ae((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Ae((.4360747*r+.3850649*i+.1430804*o)/we),n=Ae((.0139322*r+.0971045*i+.7141733*o)/Me)),new Te(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Te(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ae(e){return e>Oe?Math.pow(e,1/3):e/Ce+ke}function Re(e){return e>Ee?e*e*e:Ce*(e-ke)}function qe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function De(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ie(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Le)return new Le(e.h,e.c,e.l,e.opacity);if(e instanceof Te||(e=Ne(e)),0===e.a&&0===e.b)return new Le(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Se;return new Le(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Le(e,t,n,null==r?1:r)}function Le(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Pe(e){if(isNaN(e.h))return new Te(e.l,0,0,e.opacity);var t=e.h*xe;return new Te(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}F(Te,(function(e,t,n,r){return 1===arguments.length?Ne(e):new Te(e,t,n,null==r?1:r)}),j($,{brighter(e){return new Te(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Te(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 le(qe(3.1338561*(t=we*Re(t))-1.6168667*(e=1*Re(e))-.4906146*(n=Me*Re(n))),qe(-.9787684*t+1.9161415*e+.033454*n),qe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),F(Le,Ie,j($,{brighter(e){return new Le(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Le(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Pe(this).rgb()}}));var _e={isDark:function(e){return Ie(e).l<70}};function ze(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Fe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function je(e){return 1===e.length&&(e=function(e){return function(t,n){return Fe(e(t),n)}}(e)),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var $e=je(Fe).right,Be=Math.sqrt(50),He=Math.sqrt(10),Ve=Math.sqrt(2);function Ue(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Be?10:o>=He?5:o>=Ve?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Be?10:o>=He?5:o>=Ve?2:1)}function We(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Be?i*=10:o>=He?i*=5:o>=Ve&&(i*=2),t<e?-i:i}function Ye(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Ge="$";function Ke(){}function Xe(e,t){var n=new Ke;if(e instanceof Ke)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Je(){}Ke.prototype=Xe.prototype={constructor:Ke,has:function(e){return Ge+e in this},get:function(e){return this[Ge+e]},set:function(e,t){return this[Ge+e]=t,this},remove:function(e){var t=Ge+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Ge&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Ge&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Ge&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Ge&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Ge&&++e;return e},empty:function(){for(var e in this)if(e[0]===Ge)return!1;return!0},each:function(e){for(var t in this)t[0]===Ge&&e(this[t],t.slice(1),this)}};var Ze=Xe.prototype;Je.prototype={constructor:Je,has:Ze.has,add:function(e){return this[Ge+(e+="")]=e,this},remove:Ze.remove,clear:Ze.clear,values:Ze.keys,size:Ze.size,empty:Ze.empty,each:Ze.each};var Qe=Array.prototype,et=Qe.map,tt=Qe.slice;function nt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function rt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function it(){}var ot=.7,at=1/ot,st="\\s*([+-]?\\d+)\\s*",lt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ct="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ut=/^#([0-9a-f]{3,8})$/,dt=new RegExp("^rgb\\("+[st,st,st]+"\\)$"),ft=new RegExp("^rgb\\("+[ct,ct,ct]+"\\)$"),ht=new RegExp("^rgba\\("+[st,st,st,lt]+"\\)$"),pt=new RegExp("^rgba\\("+[ct,ct,ct,lt]+"\\)$"),mt=new RegExp("^hsl\\("+[lt,ct,ct]+"\\)$"),gt=new RegExp("^hsla\\("+[lt,ct,ct,lt]+"\\)$"),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 vt(){return this.rgb().formatHex()}function bt(){return this.rgb().formatRgb()}function xt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ut.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?St(t):3===n?new kt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?wt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?wt(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=dt.exec(e))?new kt(t[1],t[2],t[3],1):(t=ft.exec(e))?new kt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ht.exec(e))?wt(t[1],t[2],t[3],t[4]):(t=pt.exec(e))?wt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=mt.exec(e))?Nt(t[1],t[2]/100,t[3]/100,1):(t=gt.exec(e))?Nt(t[1],t[2]/100,t[3]/100,t[4]):yt.hasOwnProperty(e)?St(yt[e]):"transparent"===e?new kt(NaN,NaN,NaN,0):null}function St(e){return new kt(e>>16&255,e>>8&255,255&e,1)}function wt(e,t,n,r){return r<=0&&(e=t=n=NaN),new kt(e,t,n,r)}function Mt(e,t,n,r){return 1===arguments.length?function(e){return e instanceof it||(e=xt(e)),e?new kt((e=e.rgb()).r,e.g,e.b,e.opacity):new kt}(e):new kt(e,t,n,null==r?1:r)}function kt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Et(){return"#"+Ot(this.r)+Ot(this.g)+Ot(this.b)}function Ct(){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+")")}function Ot(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Nt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new At(e,t,n,r)}function Tt(e){if(e instanceof At)return new At(e.h,e.s,e.l,e.opacity);if(e instanceof it||(e=xt(e)),!e)return new At;if(e instanceof At)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new At(a,s,l,e.opacity)}function At(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Rt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function qt(e){return function(){return e}}function Dt(e){return 1==(e=+e)?It: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):qt(isNaN(t)?n:t)}}function It(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):qt(isNaN(e)?t:e)}nt(it,xt,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:vt,formatHex:vt,formatHsl:function(){return Tt(this).formatHsl()},formatRgb:bt,toString:bt}),nt(kt,Mt,rt(it,{brighter:function(e){return e=null==e?at:Math.pow(at,e),new kt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?ot:Math.pow(ot,e),new kt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:Et,formatHex:Et,formatRgb:Ct,toString:Ct})),nt(At,(function(e,t,n,r){return 1===arguments.length?Tt(e):new At(e,t,n,null==r?1:r)}),rt(it,{brighter:function(e){return e=null==e?at:Math.pow(at,e),new At(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ot:Math.pow(ot,e),new At(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new kt(Rt(e>=240?e-240:e+120,i,r),Rt(e,i,r),Rt(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Lt=function e(t){var n=Dt(t);function r(e,t){var r=n((e=Mt(e)).r,(t=Mt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=It(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Pt(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function _t(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Vt(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function zt(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ft(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function jt(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Vt(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var $t=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bt=new RegExp($t.source,"g");function Ht(e,t){var n,r,i,o=$t.lastIndex=Bt.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=$t.exec(e))&&(r=Bt.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Ft(n,r)})),o=Bt.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Vt(e,t){var n,r=typeof t;return null==t||"boolean"===r?qt(t):("number"===r?Ft:"string"===r?(n=xt(t))?(t=n,Lt):Ht:t instanceof xt?Lt:t instanceof Date?zt:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Pt:Array.isArray(t)?_t:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?jt:Ft)(e,t)}function Ut(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Wt(e){return+e}var Yt=[0,1];function Gt(e){return e}function Kt(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Xt(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Jt(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Kt(i,r),o=n(a,o)):(r=Kt(r,i),o=n(o,a)),function(e){return o(r(e))}}function Zt(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Kt(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=$e(e,t,1,r)-1;return o[n](i[n](t))}}function Qt(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function en(e,t){return function(){var e,t,n,r,i,o,a=Yt,s=Yt,l=Vt,c=Gt;function u(){return r=Math.min(a.length,s.length)>2?Zt:Jt,i=o=null,d}function d(t){return isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),Ft)))(n)))},d.domain=function(e){return arguments.length?(a=et.call(e,Wt),c===Gt||(c=Xt(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=tt.call(e),u()):s.slice()},d.rangeRound=function(e){return s=tt.call(e),l=Ut,u()},d.clamp=function(e){return arguments.length?(c=e?Xt(a):Gt,d):c!==Gt},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function tn(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)]}function nn(e){return(e=tn(Math.abs(e)))?e[1]:NaN}var rn,on=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function an(e){if(!(t=on.exec(e)))throw new Error("invalid format: "+e);var t;return new sn({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function sn(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ln(e,t){var n=tn(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}an.prototype=sn.prototype,sn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var cn={"%":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.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):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 ln(100*e,t)},r:ln,s:function(e,t){var n=tn(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(rn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+tn(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function un(e){return e}var dn,fn,hn,pn=Array.prototype.map,mn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gn(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?un:(t=pn.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=e.decimal+"",s=void 0===e.numerals?un:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(pn.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=an(e)).fill,n=e.align,d=e.sign,f=e.symbol,h=e.zero,p=e.width,m=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(m=!0,v="g"):cn[v]||(void 0===g&&(g=12),y=!0,v="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===f?o:/[%p]/.test(v)?l:"",S=cn[v],w=/[defgprs%]/.test(v);function M(e){var i,o,l,f=b,M=x;if("c"===v)M=S(e)+M,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:S(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==d&&(k=!1),f=(k?"("===d?d:c:"-"===d||"("===d?"":d)+f,M=("s"===v?mn[8+rn/3]:"")+M+(k&&"("===d?")":""),w)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){M=(46===l?a+e.slice(i+1):e.slice(i))+M,e=e.slice(0,i);break}}m&&!h&&(e=r(e,1/0));var E=f.length+e.length+M.length,C=E<p?new Array(p-E+1).join(t):"";switch(m&&h&&(e=r(C+e,C.length?p-M.length:1/0),C=""),n){case"<":e=f+e+M+C;break;case"=":e=f+C+e+M;break;case"^":e=C.slice(0,E=C.length>>1)+f+e+M+C.slice(E);break;default:e=C+f+e+M}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return e+""},M}return{format:d,formatPrefix:function(e,t){var n=d(((e=an(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(nn(t)/3))),i=Math.pow(10,-r),o=mn[8+r/3];return function(e){return n(i*e)+o}}}}function yn(e,t,n,r){var i,o=We(e,t,n);switch((r=an(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(nn(t)/3)))-nn(Math.abs(e)))}(o,a))||(r.precision=i),hn(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,nn(t)-nn(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-nn(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return fn(r)}function vn(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=Ue(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return yn(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=Ue(s,l,n))>0?r=Ue(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Ue(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function bn(){var e=en(Gt,Gt);return e.copy=function(){return Qt(e,bn())},Ye.apply(e,arguments),vn(e)}!function(e){dn=gn(e),fn=dn.format,hn=dn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var xn=new Date,Sn=new Date;function wn(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return wn((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return xn.setTime(+t),Sn.setTime(+r),e(xn),e(Sn),Math.floor(n(xn,Sn))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Mn=wn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Mn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?wn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Mn:null},Mn.range;var kn=6e4,En=36e5,Cn=864e5,On=6048e5,Nn=wn((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));Nn.range;var Tn=wn((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kn)/Cn}),(function(e){return e.getDate()-1}));function An(e){return wn((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kn)/On}))}Tn.range;var Rn=An(0),qn=An(1),Dn=An(2),In=An(3),Ln=An(4),Pn=An(5),_n=An(6);Rn.range,qn.range,Dn.range,In.range,Ln.range,Pn.range,_n.range;var zn=wn((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));zn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?wn((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},zn.range;var Fn=wn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*kn)}),(function(e,t){return(t-e)/kn}),(function(e){return e.getUTCMinutes()}));Fn.range;var jn=wn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*En)}),(function(e,t){return(t-e)/En}),(function(e){return e.getUTCHours()}));jn.range;var $n=wn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Cn}),(function(e){return e.getUTCDate()-1}));function Bn(e){return wn((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/On}))}$n.range;var Hn=Bn(0),Vn=Bn(1),Un=Bn(2),Wn=Bn(3),Yn=Bn(4),Gn=Bn(5),Kn=Bn(6);Hn.range,Vn.range,Un.range,Wn.range,Yn.range,Gn.range,Kn.range;var Xn=wn((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));Xn.range;var Jn=wn((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function Zn(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 Qn(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 er(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}Jn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?wn((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},Jn.range;var tr,nr,rr={"-":"",_:" ",0:"0"},ir=/^\s*\d+/,or=/^%/,ar=/[\\^$*+?|[\]().{}]/g;function sr(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function lr(e){return e.replace(ar,"\\$&")}function cr(e){return new RegExp("^(?:"+e.map(lr).join("|")+")","i")}function ur(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function dr(e,t,n){var r=ir.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function fr(e,t,n){var r=ir.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function hr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function pr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function mr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function gr(e,t,n){var r=ir.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function yr(e,t,n){var r=ir.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 br(e,t,n){var r=ir.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function xr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Sr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function wr(e,t,n){var r=ir.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Mr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function kr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Er(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Cr(e,t,n){var r=ir.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=ir.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nr(e,t,n){var r=or.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Tr(e,t,n){var r=ir.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ar(e,t,n){var r=ir.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Rr(e,t){return sr(e.getDate(),t,2)}function qr(e,t){return sr(e.getHours(),t,2)}function Dr(e,t){return sr(e.getHours()%12||12,t,2)}function Ir(e,t){return sr(1+Tn.count(zn(e),e),t,3)}function Lr(e,t){return sr(e.getMilliseconds(),t,3)}function Pr(e,t){return Lr(e,t)+"000"}function _r(e,t){return sr(e.getMonth()+1,t,2)}function zr(e,t){return sr(e.getMinutes(),t,2)}function Fr(e,t){return sr(e.getSeconds(),t,2)}function jr(e){var t=e.getDay();return 0===t?7:t}function $r(e,t){return sr(Rn.count(zn(e)-1,e),t,2)}function Br(e){var t=e.getDay();return t>=4||0===t?Ln(e):Ln.ceil(e)}function Hr(e,t){return e=Br(e),sr(Ln.count(zn(e),e)+(4===zn(e).getDay()),t,2)}function Vr(e){return e.getDay()}function Ur(e,t){return sr(qn.count(zn(e)-1,e),t,2)}function Wr(e,t){return sr(e.getFullYear()%100,t,2)}function Yr(e,t){return sr((e=Br(e)).getFullYear()%100,t,2)}function Gr(e,t){return sr(e.getFullYear()%1e4,t,4)}function Kr(e,t){var n=e.getDay();return sr((e=n>=4||0===n?Ln(e):Ln.ceil(e)).getFullYear()%1e4,t,4)}function Xr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+sr(t/60|0,"0",2)+sr(t%60,"0",2)}function Jr(e,t){return sr(e.getUTCDate(),t,2)}function Zr(e,t){return sr(e.getUTCHours(),t,2)}function Qr(e,t){return sr(e.getUTCHours()%12||12,t,2)}function ei(e,t){return sr(1+$n.count(Jn(e),e),t,3)}function ti(e,t){return sr(e.getUTCMilliseconds(),t,3)}function ni(e,t){return ti(e,t)+"000"}function ri(e,t){return sr(e.getUTCMonth()+1,t,2)}function ii(e,t){return sr(e.getUTCMinutes(),t,2)}function oi(e,t){return sr(e.getUTCSeconds(),t,2)}function ai(e){var t=e.getUTCDay();return 0===t?7:t}function si(e,t){return sr(Hn.count(Jn(e)-1,e),t,2)}function li(e){var t=e.getUTCDay();return t>=4||0===t?Yn(e):Yn.ceil(e)}function ci(e,t){return e=li(e),sr(Yn.count(Jn(e),e)+(4===Jn(e).getUTCDay()),t,2)}function ui(e){return e.getUTCDay()}function di(e,t){return sr(Vn.count(Jn(e)-1,e),t,2)}function fi(e,t){return sr(e.getUTCFullYear()%100,t,2)}function hi(e,t){return sr((e=li(e)).getUTCFullYear()%100,t,2)}function pi(e,t){return sr(e.getUTCFullYear()%1e4,t,4)}function mi(e,t){var n=e.getUTCDay();return sr((e=n>=4||0===n?Yn(e):Yn.ceil(e)).getUTCFullYear()%1e4,t,4)}function gi(){return"+0000"}function yi(){return"%"}function vi(e){return+e}function bi(e){return Math.floor(+e/1e3)}!function(e){tr=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=cr(i),u=ur(i),d=cr(o),f=ur(o),h=cr(a),p=ur(a),m=cr(s),g=ur(s),y=cr(l),v=ur(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Rr,e:Rr,f:Pr,g:Yr,G:Kr,H:qr,I:Dr,j:Ir,L:Lr,m:_r,M:zr,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:vi,s:bi,S:Fr,u:jr,U:$r,V:Hr,w:Vr,W:Ur,x:null,X:null,y:Wr,Y:Gr,Z:Xr,"%":yi},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Jr,e:Jr,f:ni,g:hi,G:mi,H:Zr,I:Qr,j:ei,L:ti,m:ri,M:ii,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:vi,s:bi,S:oi,u:ai,U:si,V:ci,w:ui,W:di,x:null,X:null,y:fi,Y:pi,Z:gi,"%":yi},S={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:Sr,e:Sr,f:Or,g:yr,G:gr,H:Mr,I:Mr,j:wr,L:Cr,m:xr,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:br,Q:Tr,s:Ar,S:Er,u:fr,U:hr,V:pr,w:dr,W:mr,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:yr,Y:gr,Z:vr,"%":Nr};function w(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=rr[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function M(e,t){return function(n){var r,i,o=er(1900,void 0,1);if(k(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Qn(er(o.y,0,1))).getUTCDay(),r=i>4||0===i?Vn.ceil(r):Vn(r),r=$n.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Zn(er(o.y,0,1))).getDay(),r=i>4||0===i?qn.ceil(r):qn(r),r=Tn.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Qn(er(o.y,0,1)).getUTCDay():Zn(er(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Qn(o)):Zn(o)}}function k(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=S[i in rr?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=M(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=M(e+="",!0);return t.toString=function(){return e},t}}}(e),tr.format,tr.parse,nr=tr.utcFormat,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 xi=1e3,Si=6e4,wi=36e5,Mi=864e5,ki=2592e6,Ei=31536e6;function Ci(e){return new Date(e)}function Oi(e){return e instanceof Date?+e:+new Date(+e)}function Ni(e,t,n,r,i,o,a,s,l){var c=en(Gt,Gt),u=c.invert,d=c.domain,f=l(".%L"),h=l(":%S"),p=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,xi],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,Si],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,wi],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Mi],[r,2,1728e5],[n,1,6048e5],[t,1,ki],[t,3,7776e6],[e,1,Ei]];function S(s){return(a(s)<s?f:o(s)<s?h:i(s)<s?p:r(s)<s?m:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function w(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=je((function(e){return e[2]})).right(x,o);a===x.length?(i=We(n/Ei,r/Ei,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(We(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(et.call(e,Oi)):d().map(Ci)},c.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=w(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?S:l(t)},c.nice=function(e,t){var n=d();return(e=w(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):c},c.copy=function(){return Qt(c,Ni(e,t,n,r,i,o,a,s,l))},c}function Ti(){return Ye.apply(Ni(Jn,Xn,Hn,$n,jn,Fn,Nn,Mn,nr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Ai={horizontal:{major:"width",minor:"height",start:"left",end:"right",shadow:{startOffset:"12px 0",endOffset:"-12px 0"}},vertical:{major:"height",minor:"width",start:"top",end:"bottom",shadow:{startOffset:"0 12px",endOffset:"0 -12px"}}},Ri=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var qi={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[i,o]=t(),a=Math.abs(i)<1e-15,s=Math.abs(o-1)<1e-15,l=(e=>{const t=Ai[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Ri(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Ri(t.shadow.endOffset)}}})(n),c="horizontal"===n&&r,u=[];return a||u.push(e("div",{style:{...l.base,...c?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||u.push(e("div",{style:{...l.base,...c?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),u}};function Di({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:i}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:i,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let Ii;function Li(){Ii=Ii||document.createElement("canvas").getContext("2d")}const Pi={measureTextWidth(e){Li();const{width:t}=Ii.measureText(e);return t},lineWrap(e,t,n,r){let i,o;Li();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,f=e?e.split(/\s+/):[],h=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(Ii.font=n),o=0;o<a.length;o++){for(d=a[o]||"",f=d.split(/\s+/),[h]=f,u="",i=1;i<f.length;i++)if(l=`${h} ${f[i]}`,c=Pi.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(h),h=f[i]):h=l,"number"==typeof r&&s.length>=r){u=f.slice(i+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(h):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${h} ${u}`}return s},wordWrap(e,t,n,r,i){if(Li(),!e||!e.length)return[];n&&(Ii.font=n);let o=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c&&(c.length<=1||Pi.measureTextWidth(c)<=t?o.push(c):(s=Pi.splitWord(c,t,void 0,r-o.length),s.length<=1?o.push(s[0]):(l=s.pop(),o=o.concat(s),a[u+1]?Pi.measureTextWidth(`${l} ${a[u+1]}`)>t&&o.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return o.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),o.length>r?(o=o.splice(0,r),o[o.length-1]=Pi.truncate(o[o.length-1],t,n,i).text):(c=o[o.length-1],c&&c.length>1&&Pi.measureTextWidth(c)>t&&(o[o.length-1]=Pi.truncate(c,t,n,i).text)),o},truncate(e,t,n,r="…"){Li();let i,o,a,s,l=e;const c=Pi.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Ii.font=n),e&&t){if(Pi.measureTextWidth(l)>t){for(i=Math.min(u,l.length);i>0;i--)if(o=l.substring(0,i-1),a=o.trim()+r,Pi.measureTextWidth(a)<=t){s=l.substring(i-1),l=a;break}i||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,n,r){let i;Li();let o,a=e,s="",l=[];if(Pi.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(i=Math.min(e.length,c);i>0&&(a=e.substring(0,i),o=e.substring(i-1,i)," "===o?a=e.substring(0,i-1):a+="-",s=e.substring(i),!(Pi.measureTextWidth(a)<=t));i--);return(!i&&!a||Pi.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Pi.measureTextWidth(s)>t?(s=Pi.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Li(),e&&t?(n&&(Ii.font=n),Pi.explodeWord(e,t,r,Math.max(1,Pi.measureTextWidth("i")))):[]),wrapText(e,t,n,r,i){let o;return Number.isNaN(t)?[e]:(o=r>1?Pi.lineWrap(e,t,n,r):[e],o=Pi.wordWrap(o,t,n,r,i),o)},getFontHeight:e=>(Li(),e&&(Ii.font=e),1.5*Pi.measureTextWidth("m")),tokenize(e,t,n,r,i,o,a=1){Li(),t&&(Ii.font=t);const s=Pi.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(o<s)return[];const f=o?Math.max(1,Math.floor(o/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{u+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{c.push(Number.isNaN(e)||e<=0?f-u:e)}))):c=[Number.isNaN(r)||r<=0?f:Math.min(f,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<f&&(d=d.concat(Pi.wrapText(e,i,t,c[n])))})):d=Pi.wrapText(e,i,t,c[0],n),d}},_i={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(p({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},zi=p.bind(null,!0),Fi={},{isArray:ji}=Array;function $i(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Bi(e){return void 0===e}function Hi(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Vi(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,i)=>{if(i===n.length)return;r=+t;const o=isNaN(r)?{}:[];e[r||t]=Bi(e[r||t])?o:e[t],e=e[r||t]})),e}function Ui(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function Wi(e,t,n){let r=!0;if($i(e)&&$i(t))return Ui(e,n)===Ui(t,n)&&(Object.keys(e).forEach((i=>{Wi(e[i],t[i],n)||(r=!1)})),r);if(ji(e)&&ji(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r+=1)if(!Wi(e[r],t[r],n))return!1;return!0}return e===t}Fi.compare=Wi,Fi.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?zi({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;Wi(o,a)||Hi(t,i)||(Bi(a)?r.push({op:"add",path:s,value:o}):$i(o)&&$i(a)?r=r.concat(Fi.generate(a,o,s)):ji(o)&&ji(a)?r=r.concat(function(e,t,n){let r=[];const i=e.slice();let o=-1;function a(e,t,n){if(e[n]&&Bi(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(Wi(t,i))return r;if(!Bi(t[0])&&Bi(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=i.length-1;e>=0;e-=1)o=a(t,i[e].qInfo&&i[e].qInfo.qId,e),-1===o?(r.push({op:"remove",path:`${n}/${e}`}),i.splice(e,1)):r=r.concat(Fi.generate(i[e],t[o],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)o=a(i,t[e].qInfo&&t[e].qInfo.qId),-1===o?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),i.splice(e,0,t[e])):o!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${o}`}),i.splice(e,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:`${n}/${i}`,value:o}))})),Object.keys(e).forEach((i=>{Bi(t[i])&&!Hi(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},Fi.apply=function(e,t){t.forEach((t=>{let n=Vi(e,t.path),r=t.path.split("/").splice(-1)[0],i=r&&isNaN(+r)?n[r]:n[+r]||n;const o=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(ji(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(ji(i)&&ji(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if($i(i)&&$i(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Hi(a,e)&&delete a[e]})),zi(i,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const i=Vi(e,t.from);ji(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(ji(n)?n.splice(+r,1):delete n[r]);var a}))},Fi.clone=function(e){return zi({},e)},Fi.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},Fi.updateObject=function(e,t){Object.keys(e).length?Fi.apply(e,Fi.generate(e,t)):zi(e,t)};const Yi=[[2,4,6],[2,4],[3]],Gi=[,[,,[[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 Ki(e,t,n){const r=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[r-1])),e.splice(0,0,o)}function Xi(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)Ki(e[r],t,n)}!function(){let e,t;for(Xi(Yi,1,10),e=0;e<Gi.length;e++)if(Gi[e])for(t=0;t<Gi[e].length;t++)Array.isArray(Gi[e][t])&&Xi(Gi[e][t])}();const Ji={isInside(e,t,n,r){if(!r)return!0;const i=e.position-e.radius,o=e.position+e.radius;return i>=t&&o<=n},getCenterDistance:(e,t)=>Math.abs(e.center-t.center),getGap(e,t){const n=e.position<t.position?e:t,r=e.position<t.position?t:e;return r.position-r.radius-(n.position+n.radius)},findSegmentPositionMeetMax(e,t){const n=Math.max(0,e.max-t);return e.center-n},findSegmentPositionMeetMin(e,t){const n=Math.max(0,t-e.min);return e.center+n},findSegmentPositionMeetMinThenMax(e,t,n){const r=Ji.findSegmentPositionMeetMin(e,t);return Ji.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=Ji.findSegmentPositionMeetMax(e,n);return Ji.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const i=e.length-1;let o,a,s=t;for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.position=Ji.findSegmentPositionMeetMaxThenMin(o,s,(o.center+a.center-r)/2),s=o.position+o.radius+r/2;a.position=Ji.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const i=e.length-1;let o,a,s;const l=Math.max(0,e[i].position+e[i].radius-n);if(0===l)return;let c,u=0;for(o=i;o>0&&(a=e[o],s=e[o-1],c=Math.max(0,Ji.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));o--);for(u<l&&(c=Math.max(0,s.position-s.radius-t),c-=Math.max(0,u+c-l),u+=c,s.move=c),u=0,o=0;o<=i;o++)a=e[o],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const i=e.length-1;if(!(i<0))if(0!==i)Ji.layoutPositionFromMin(e,t,n,r),Ji.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=Ji.findSegmentPositionMeetMaxThenMin(r,t,n)}}},Zi=(e,t,n,r=1)=>{const i=e.bandwidth();return n?"start"===t?i:"end"===t?i*(1-r):i*(2-r)/2:"start"===t?0:"end"===t?i*r:i*r/2},Qi=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,eo=e=>e.filter(Qi),to=(e,t)=>eo(M.getValue(e,t,[])),no=e=>Qi(e)&&(!1!==e.showValue||!1!==e.showLabel),ro=e=>e.filter(no),io=(e,t)=>ro(M.getValue(e,t,[])),oo=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,ao=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},so=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},lo=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+i},co=({value:e,qMin:t})=>"NaN"!==t&&e<t,uo=({value:e,qMax:t})=>"NaN"!==t&&e>t,fo={isRefLineVisible:Qi,getVisibleRefLines:eo,getRefLines:to,getMeasureRefLines:e=>to(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:to(e,"refLine.dimRefLines"),isRefLineLabelVisible:no,getVisibleRefLineLabels:ro,getRefLineLabels:io,getMeasureRefLineLabels:e=>io(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:io(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:i,invert:o=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=Zi(s,i,o,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=Zi(s,i,o,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:i})=>{const o=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-o*(s-i)}})({pxScale:s,value:n,innerValues:e,invert:o,minOrder:a})),(void 0===c?s(n):c)+l}return l=Zi(s,i,o),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:i}=r.meta,o={},a=M.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():M.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=M.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),f=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+f,r=t[d];o[r]||(o[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})():i?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],i=t+f,a=n[d];o[a]?(o[a].minOrder=Math.min(o[a].minOrder,i),o[a].maxOrder=Math.max(o[a].maxOrder,i),o[a].innerValues[o[a].innerValues.length]={id:r.qElemNumber,order:i}):o[a]={id:n.qElemNumber,qText:n.qText,minOrder:i,maxOrder:i,innerValues:[{id:r.qElemNumber,order:i}],dataNode:u[t]},0===t?0===i&&(o[a].isMinOrderOk=!0):a!==e&&(o[a].isMinOrderOk=!0,o[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+f,r=t[d];o[r]||(o[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})(),o},getInputValue:oo,extractInfoFromInputValue:ao,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=oo({refLineLayout:e,layoutService:n});return ao(r,t,"id")},isDiscreteMinOutOfBounds:so,isDiscreteMaxOutOfBounds:lo,isContinuousMinOutOfBounds:co,isContinuousMaxOutOfBounds:uo,isOutOfRange:({value:e,qMin:t,qMax:n})=>co({value:e,qMin:t})||uo({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&lo({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&so({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},ho=({label:e,labelStyle:t})=>[(null==e?void 0:e.fontStyle)||(null==t?void 0:t.fontStyle),(null==e?void 0:e.fontWeight)||(null==t?void 0:t.fontWeight),(null==e?void 0:e.fontSize)||(null==t?void 0:t.fontSize),(null==e?void 0:e.fontFamily)||(null==t?void 0:t.fontFamily)].filter((e=>!!e)).join(" ");function po(e){return e.showValue?`… ${e.valueString}`:"…"}function mo(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=ho({label:i,labelStyle:t});i.lines=Pi.tokenize(i.title,o,po(i),3,n),i.maxNumLines=i.lines.length}}function go({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=Pi.tokenize(e,t,n,r,i),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n${o[e]}`}return s}function yo({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=e.map((e=>go({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:i}))),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n\n${o[e]}`}return s}function vo(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const bo=3,xo=2;function So({inputValue:e,inputValueLabel:t,localeInfo:n}){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const r=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return t.replace(new RegExp(`[0-9e${r}]`,"g"),"").length>0||function(e){if(e.indexOf("e")>-1)return!1;const t=e.indexOf("-");return-1!==t&&(e.lastIndexOf("-")!==t||0!==t)}(t)}const wo=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(fo.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(fo.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return fo.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:fo.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},Mo={hasEngineFormat:So,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:i,rtl:o,isContinuous:a,isDimension:s}){const l=fo.getInvert({orientation:i,rtl:o,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let f,h;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");f=e.qMin,h=e.qMax}for(let i=0;i<e.length;i++){const o=e[i],{value:s,align:c,valueInfo:d}=o,p=wo({label:o,dataPages:u,qMin:f,qMax:h});o.scaledValue=1===p?l?-.1:1.1:-1===p?l?1.1:-.1:fo.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),o.center=o.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:i}){let o;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;o=So({inputValue:s,inputValueLabel:l,localeInfo:i})?l:t?t(a):a,r.valueString=`${_.lrm}(${o})${_.lrm}`,r.title=Mo.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;o=So({inputValue:a,inputValueLabel:s,localeInfo:i})?s:r,n.valueString=`${_.lrm}(${o})${_.lrm}`,n.title=Mo.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];o=n.valueText,n.valueString=`${_.lrm}(${o})${_.lrm}`,n.title=Mo.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title,r).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((n=>t(n,e).width)));return n},getMaxTextWidth(e){const t=e.map((e=>e.totalWidth));return Math.max(...t)},addLabelsNeighborInfo(e,t,n,r=0){const i=e.length-1;if(i<0)return;let o,a;if([o]=e,o.cMin=t,0!==i){for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.cMax=(o.center+a.center-r)/2,a.cMin=o.cMax+r;a.cMax=n}else o.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,i=e.filter((e=>e.maxNumLines===t)),o=Math.min(n,i.length);for(let e=i.length-1;e>=i.length-o;e--)i[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let i=3;do{const t=Mo.getTotalNumLines(e)-r;if(t<=0)return;Mo.reduceLabelsHavingMaxNumLines(e,i,t),i--}while(i>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const i=e[r];i.maxNumLines=Math.max(1,Math.min(i.maxNumLines,Math.floor((Math.max(0,i.cMax-i.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let i=0;i<e.length;i++){const o=e[i];o.width=Math.min(t,Mo.measureLabelMaxLineWidth(o,r)),o.height=o.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:i}=r,o=r[t],a=o/2;r.segment={center:i,range:o,min:i-a,max:i+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:i,gap:o,labelStyle:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:f,layoutService:h,isContinuous:p,isDimension:m}){const g=e.map((e=>e)),y=n;Mo.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:h,orientation:u,rtl:f,isContinuous:p,isDimension:m}),vo(e,"center"),Mo.addLabelsNeighborInfo(e,r,i,o),mo(e,a,s),Mo.reduceTotalMaxNumLines(g,l,i-(g.length-1)*o),"vertical"===u&&(Mo.reduceMaxNumLines(e,l,.05*o),function(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=ho({label:i,labelStyle:t});i.lines.length>i.maxNumLines&&(i.lines=Pi.tokenize(i.title,o,po(i),i.maxNumLines,n))}}(e,a,s)),Mo.addLabelsSize(e,s,l,d),Mo.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:i,lineHeight:o=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=i,{fontSize:d,fontFamily:f,fontStyle:h,fontWeight:p,textDecoration:m,background:g}=t;let y=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,i=t.map(((t,i)=>{const g={type:"text",text:t,title:go({title:e.title,font:a,ellipsis:po(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||f,fontStyle:e.fontStyle||h,fontWeight:e.fontWeight||p,textDecoration:e.textDecoration||m,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return g[l]=u,g[s]=e.segment.position,g.y+=(i-(r-1)/2)*o,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:i,lineHeight:o,background:a}){const{lines:s}=i,{borderRadius:l=bo,padding:c={}}=a,{top:u=xo,bottom:d=xo,left:f=xo,right:h=xo}=c,p=s.length,m={type:"rect",rx:l,ry:l,fill:i.background.fill,width:i.width+(f+h),height:i.height+(u+d),value:i.value,dock:r};return m[n]=e,m[t]=i.segment.position,m.x-=i.width/2+f,m.y-=p*o/2+u,m}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:o,background:g})),y=y.concat(i)})),y}};function ko(e,t,n){let r;const i=typeof t;if("string"===i||"object"===i)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function Eo(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{lineHeight:n,top:r,bottom:i,maxLabelWidth:o}=t;let a=1;return Mo.getMaxTextWidth(e)>o&&(mo(e,t,o),a=Math.max(...e.map((e=>e.lines.length)))),a*n+r+i}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:i}=t;return Math.min(i,Mo.getMaxTextWidth(e))+n+r}(t,n)}function Co(e,t){return t?e.domain():[0,1]}function Oo(e,t,n,r="value"){let i=e.filter((e=>e[r]>=t));i=i.filter((e=>e[r]<=n));const o=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:i,minOobs:o,maxOobs:a,numMinOobs:o.length,numMaxOobs:a.length}}function No(e){let t,n=0;for(let r=1;r<10;r++)t=e(r),n=Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height));return t=e("9+"),[n,Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height))]}function To(e,t){return e>9?t[1]:t[0]}function Ao({alignment:e,dockValue:t,oobs:n,style:r,rect:i,symbol:o,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:f,minorAxis:h,minorDimension:p,dock:m}=s,g=i[p],y=_i.createOob({oob:_i.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:i.width,rendHeight:i.height,flipXY:d,symbol:o});y.dock=m;const v=`c${f}`,b=`c${h}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:m};x[b]=g/2,x[v]=a;const S={type:"text",text:u>9?"9+":u,title:yo({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:m};return S[h]=g/2,S[f]=a,[y,x,S]}const Ro=e=>{const t=ho({labelStyle:e}),n=Pi.getFontHeight(t)*(e.lineHeightMultiplicator||1),r=e.gap||12,i=e.maxWidth||75,o=e.padding.top||0,a=e.padding.bottom||0,s=e.padding.left||0,l=e.padding.right||0;return{...e,font:t,lineHeight:n,gap:r,maxLabelWidth:i,top:o,bottom:a,left:s,right:l}},qo=e=>e.map((e=>({...e,value:"function"==typeof e.value?e.value():e.value,valueText:"function"==typeof e.valueText?e.valueText():e.valueText,valueInfo:"function"==typeof e.valueInfo?e.valueInfo():e.valueInfo})));var Do={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:i}=this.settings,o=!!r||n.meta.canBeContinuous,a=qo(this.settings.labels),s=ko(this.chart,this.settings.formatter,e);Mo.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:o,localeInfo:i});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:i})=>{if(n){const[r,i]=Co(t,n);return Oo(e,r,i)}if(r){const t=i.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return Oo(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:o,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:i,fontWeight:o}=n||{};return this.renderer.measureText({text:e,fontWeight:o||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:i||t.label.fontFamily})},u&&u.length){const e=Ro(t.label),{dock:n}=this.settings.layout;return Mo.measureLabelsWidth(u,this.measureText),d=Eo(n,u,e),d}const f=No(this.measureText),h=l?To(l,f):0,p=c?To(c,f):0;return d=Math.max(h,p),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:i,isContinuous:o,isDimension:a,localeInfo:s}=this.settings,l=!!o||r.meta.canBeContinuous,c=qo(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:f}=n.label,h=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),p=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,h,f),{orientation:m,majorDimension:g}=h,{majorSize:y}=p,v=Ro(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:w}=v,M=ko(this.chart,this.settings.formatter,e),k=y;Mo.addLabelTitles({labels:c,formatter:M,isContinuous:o,canBeContinuous:l,localeInfo:s}),Mo.calculateLabelPositions({labels:c,scale:e,size:k,layoutService:r,orientation:m,rtl:d,isContinuous:o,isDimension:a});const[E,C]=Co(e,o),{filteredLabels:O,lowerOobs:N,upperOobs:T,lowerCircleSize:A,upperCircleSize:R,lowerOobSpace:q,upperOobSpace:D}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:i,isContinuous:o,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:f}=Oo(e,t,n,c),h="scaledValue"!==c&&fo.getInvert({orientation:r,rtl:i,isContinuous:o}),p=function(e,t,n){return n?t:e}(d,u,h),m=function(e,t,n){return n?e:t}(d,u,h),g=p.length,y=m.length,v=No(l),b=To(g,v),x=To(y,v),S=function(e,t,n,r,i){return("vertical"===r?i.top:i.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),w=function(e,t,n,r,i){return("vertical"===r?i.bottom:i.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:f,lowerOobs:p,upperOobs:m,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:w}}({labels:c,minValue:E,maxValue:C,orientation:m,rtl:d,isContinuous:o,style:n,padding:f,measureText:this.measureText,prop:o?"value":"scaledValue"}),I=q,L=y-D;vo(N),vo(T);const P=Ao({alignment:0,dockValue:0,oobs:N,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+A/2,areaProps:h,radius:A/2,font:b}),_=Ao({alignment:1,dockValue:1,oobs:T,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+R/2),areaProps:h,radius:R/2,font:b});Mo.addLabelsInfo({labels:O,scale:e,majorSize:y,lowerLimit:I,upperLimit:L,labelStyle:v,lineHeight:x,gap:S,maxLabelWidth:w,majorDimension:g,orientation:m,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:o,isDimension:a}),Ji.layout(O.map((e=>e.segment)),I,L,n.label.gap);const z=O.filter((e=>Ji.isInside(e.segment,I,L,o)));return Mo.createLabels({labels:z,style:n.label,maxLabelWidth:w,areaProps:h,area:p,lineHeight:x,font:b,theme:i}).concat([...P,..._])}};function Io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Lo(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Po(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Lo(o,r,i,a,s,"next",e)}function s(e){Lo(o,r,i,a,s,"throw",e)}a(void 0)}))}}function _o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){_o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jo(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $o(){$o=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==n&&r.call(S,a)&&(b=S);var w=v.prototype=g.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=C(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(w,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},M(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;N(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function Bo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Uo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ho(e){return function(e){if(Array.isArray(e))return Io(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Uo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vo(e){return Vo="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},Vo(e)}function Uo(e,t){if(e){if("string"==typeof e)return Io(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(e,t):void 0}}var Wo=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Yo=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var Go=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function Ko(e){var t=e.theme,n=e.translator,r=e.defaultValue,i=e.flags,o=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?o.push.apply(o,Ho(new Set([r].concat(Ho(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):o.push(r),[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0}].concat(Ho(o.map((function(e){return Go(e)}))),[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0}],Ho(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Yo:Wo}(i).map((function(e){return Go(e)}))))}function Xo(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=e.flags,a=function(){return t.getStyle(r,i,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return Ko({theme:t,translator:n,defaultValue:a(),flags:o})}}}var Jo,Zo,Qo=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],ea=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function ta(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=function(){return t.getStyle(r,i,"fontSize")};return{getDefaultValue:function(){return o()},getOptions:function(){return function(e){var t=e.translator,n=e.defaultValue,r=[],i=e.theme.getStyle("","","fontSizes");return Array.isArray(i)&&i.length?r.push.apply(r,Ho(new Set([n].concat(Ho(i))))):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(Ho(r.map((function(e){return ea(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],Ho(Qo.map((function(e){return ea(e)}))))}({theme:t,translator:n,defaultValue:o()})}}}function na(e){var t=e.theme,n=e.translator,r=e.id,i=e.path;return{fontFamily:Xo({theme:t,translator:n,id:r,path:i,flags:e.flags}),fontSize:ta({theme:t,translator:n,id:r,path:i})}}function ra(e){return ia.apply(this,arguments)}function ia(){return(ia=Po($o().mark((function e(t){var n,r,i,o;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.app,r=t.items,n.evaluate){e.next=3;break}return e.abrupt("return",r);case 3:return e.next=5,Promise.all(r.filter((function(e){var t;return!(null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t||!t.qv)})).map((function(e){var t=e.qCalcCondition.qCond.qv;return n.evaluate(t).then((function(t){return"0"===t?e.qDef.cId:void 0})).catch((function(){return e.qDef.cId}))})));case 5:return i=e.sent,o=i.filter(Boolean),e.abrupt("return",r.filter((function(e){return!o.includes(e.qDef.cId)})));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oa(e){var t=e.app,n=e.translator,r=e.dimension,i={id:r.qDef.cId,text:n.get("Object.ErrorMessage.MissingDimension"),meta:{}},o=r.qLibraryId;if(o)return t.getDimension?t.getDimension(o).then((function(e){return e.getLayout()})).catch((function(){})).then((function(e){if(!e)return i;var t=e.qDim,n=t.qGrouping,o=t.qLabelExpression,a="C"===n,s="H"===n,l="N"===n;return{id:r.qDef.cId,text:o&&l?o:e.qDim.title,meta:{isCyclic:a,isDrillDown:s,isNormal:l}}})):i;var a=r.qDef,s=a.cId,l=a.qLabelExpression,c=a.qFieldLabels,u=a.qFieldDefs,d={isCyclic:!1,isDrillDown:!1,isNormal:!0};return l?t.evaluate?t.evaluate(l).then((function(e){return{id:s,text:e,meta:d}})):i:{id:s,text:c[0]||u[0],meta:d}}function aa(e){return sa.apply(this,arguments)}function sa(){return(sa=Po($o().mark((function e(t){var n,r,i,o,a,s,l,c;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.app,i=t.translator,o=t.properties,a=(null==o||null===(n=o.qHyperCubeDef)||void 0===n||null===(n=n.qLayoutExclude)||void 0===n?void 0:n.qHyperCubeDef)||{},s=a.qDimensions,(l=void 0===s?[]:s).length){e.next=4;break}return e.abrupt("return",Promise.resolve([]));case 4:return e.next=6,ra({app:r,items:l});case 6:return c=e.sent,e.abrupt("return",Promise.all(c.map((function(e){return oa({app:r,translator:i,dimension:e})}))));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function la(e){var t=e.app,n=e.translator,r=e.measure,i={id:r.qDef.cId,text:n.get("Object.ErrorMessage.MissingMeasure")},o=r.qLibraryId;if(o)return t.getMeasure?t.getMeasure(o).then((function(e){return e.getLayout()})).catch((function(){})).then((function(e){if(!e)return i;var t=e.qMeasure.qLabelExpression;return{id:r.qDef.cId,text:t||e.qMeasure.qLabel||e.qMeasure.qDef}})):i;var a=r.qDef,s=a.cId,l=a.qLabelExpression,c=a.qLabel,u=a.qDef;return l?t.evaluate?t.evaluate(l).then((function(e){return{id:s,text:e}})):i:{id:s,text:c||u}}function ca(e){return ua.apply(this,arguments)}function ua(){return(ua=Po($o().mark((function e(t){var n,r,i,o,a,s,l,c;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.app,i=t.translator,o=t.properties,a=(null==o||null===(n=o.qHyperCubeDef)||void 0===n||null===(n=n.qLayoutExclude)||void 0===n?void 0:n.qHyperCubeDef)||{},s=a.qMeasures,(l=void 0===s?[]:s).length){e.next=4;break}return e.abrupt("return",Promise.resolve([]));case 4:return e.next=6,ra({app:r,items:l});case 6:return c=e.sent,e.abrupt("return",Promise.all(c.map((function(e){return la({app:r,translator:i,measure:e})}))));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var da=function(){if(Zo)return Jo;Zo=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Jo=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Jo}(),fa=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(da);function ha(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.value%i.length]}))},valueAccessor:e.value}}function pa(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.row.value%i.length]}))},valueAccessor:e.value}}function ma(e,t,n,r,i){var o,a,s=i.byRow,l=i.byElemNo;if(r&&(t.input.persistent||e.hc.qDimensionInfo.length>1||void 0===n.activeDimensionIndex&&e.hc.qSize.qcy>((null===(a=(o=e.hc).qDataPages[0]||o.qStackedDataPages[0])||void 0===a?void 0:a.qArea.qHeight)||0)))return l(r,r.raw().qCardinal);if(r){var c=t.pic.extract({field:r.key(),trackBy:r.value}).length;return s(r,c)}return{}}function ga(e,t){var n=e.hc.qDimensionInfo,r=t.input.byDimDef||{activeDimensionIndex:n.length-1};if(r.activeDimensionIndex>=0){var i=n[r.activeDimensionIndex];r=i.coloring&&i.coloring.colorMapRef?{type:"libraryItem",key:i.coloring.colorMapRef,activeDimensionIndex:r.activeDimensionIndex}:{activeDimensionIndex:r.activeDimensionIndex}}return r}function ya(e,t){var n;return t.activeDimensionIndex>=0?n=e.pic.fields().filter((function(e){return"dimension"===e.type()}))[t.activeDimensionIndex]:"libraryItem"===t.type?!1===(n=t.key?e.pic.field((function(e){return e.raw().colorMapRef===t.key})):void 0)&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n}function va(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ba(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xa(){}var Sa=1/.7,wa="\\s*([+-]?\\d+)\\s*",Ma="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ka="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ea=/^#([0-9a-f]{3,8})$/,Ca=new RegExp(`^rgb\\(${wa},${wa},${wa}\\)$`),Oa=new RegExp(`^rgb\\(${ka},${ka},${ka}\\)$`),Na=new RegExp(`^rgba\\(${wa},${wa},${wa},${Ma}\\)$`),Ta=new RegExp(`^rgba\\(${ka},${ka},${ka},${Ma}\\)$`),Aa=new RegExp(`^hsl\\(${Ma},${ka},${ka}\\)$`),Ra=new RegExp(`^hsla\\(${Ma},${ka},${ka},${Ma}\\)$`),qa={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 Da(){return this.rgb().formatHex()}function Ia(){return this.rgb().formatRgb()}function La(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ea.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Pa(t):3===n?new ja(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_a(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_a(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=Ca.exec(e))?new ja(t[1],t[2],t[3],1):(t=Oa.exec(e))?new ja(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Na.exec(e))?_a(t[1],t[2],t[3],t[4]):(t=Ta.exec(e))?_a(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Aa.exec(e))?Wa(t[1],t[2]/100,t[3]/100,1):(t=Ra.exec(e))?Wa(t[1],t[2]/100,t[3]/100,t[4]):qa.hasOwnProperty(e)?Pa(qa[e]):"transparent"===e?new ja(NaN,NaN,NaN,0):null}function Pa(e){return new ja(e>>16&255,e>>8&255,255&e,1)}function _a(e,t,n,r){return r<=0&&(e=t=n=NaN),new ja(e,t,n,r)}function za(e){return e instanceof xa||(e=La(e)),e?new ja((e=e.rgb()).r,e.g,e.b,e.opacity):new ja}function Fa(e,t,n,r){return 1===arguments.length?za(e):new ja(e,t,n,null==r?1:r)}function ja(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $a(){return`#${Ua(this.r)}${Ua(this.g)}${Ua(this.b)}`}function Ba(){const e=Ha(this.opacity);return`${1===e?"rgb(":"rgba("}${Va(this.r)}, ${Va(this.g)}, ${Va(this.b)}${1===e?")":`, ${e})`}`}function Ha(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Va(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ua(e){return((e=Va(e))<16?"0":"")+e.toString(16)}function Wa(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ga(e,t,n,r)}function Ya(e){if(e instanceof Ga)return new Ga(e.h,e.s,e.l,e.opacity);if(e instanceof xa||(e=La(e)),!e)return new Ga;if(e instanceof Ga)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ga(a,s,l,e.opacity)}function Ga(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ka(e){return(e=(e||0)%360)<0?e+360:e}function Xa(e){return Math.max(0,Math.min(1,e||0))}function Ja(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}va(xa,La,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Da,formatHex:Da,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ya(this).formatHsl()},formatRgb:Ia,toString:Ia}),va(ja,Fa,ba(xa,{brighter(e){return e=null==e?Sa:Math.pow(Sa,e),new ja(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ja(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ja(Va(this.r),Va(this.g),Va(this.b),Ha(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:$a,formatHex:$a,formatHex8:function(){return`#${Ua(this.r)}${Ua(this.g)}${Ua(this.b)}${Ua(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ba,toString:Ba})),va(Ga,(function(e,t,n,r){return 1===arguments.length?Ya(e):new Ga(e,t,n,null==r?1:r)}),ba(xa,{brighter(e){return e=null==e?Sa:Math.pow(Sa,e),new Ga(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ga(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ja(Ja(e>=240?e-240:e+120,i,r),Ja(e,i,r),Ja(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ga(Ka(this.h),Xa(this.s),Xa(this.l),Ha(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=Ha(this.opacity);return`${1===e?"hsl(":"hsla("}${Ka(this.h)}, ${100*Xa(this.s)}%, ${100*Xa(this.l)}%${1===e?")":`, ${e})`}`}}));const Za=Math.PI/180,Qa=180/Math.PI,es=4/29,ts=6/29,ns=3*ts*ts;function rs(e){if(e instanceof is)return new is(e.l,e.a,e.b,e.opacity);if(e instanceof cs)return us(e);e instanceof ja||(e=za(e));var t,n,r=ls(e.r),i=ls(e.g),o=ls(e.b),a=os((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=os((.4360747*r+.3850649*i+.1430804*o)/.96422),n=os((.0139322*r+.0971045*i+.7141733*o)/.82521)),new is(116*a-16,500*(t-a),200*(a-n),e.opacity)}function is(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function os(e){return e>.008856451679035631?Math.pow(e,1/3):e/ns+es}function as(e){return e>ts?e*e*e:ns*(e-es)}function ss(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ls(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function cs(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function us(e){if(isNaN(e.h))return new is(e.l,0,0,e.opacity);var t=e.h*Za;return new is(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}va(is,(function(e,t,n,r){return 1===arguments.length?rs(e):new is(e,t,n,null==r?1:r)}),ba(xa,{brighter(e){return new is(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new is(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 ja(ss(3.1338561*(t=.96422*as(t))-1.6168667*(e=1*as(e))-.4906146*(n=.82521*as(n))),ss(-.9787684*t+1.9161415*e+.033454*n),ss(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),va(cs,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof cs)return new cs(e.h,e.c,e.l,e.opacity);if(e instanceof is||(e=rs(e)),0===e.a&&0===e.b)return new cs(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Qa;return new cs(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new cs(e,t,n,null==r?1:r)}),ba(xa,{brighter(e){return new cs(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new cs(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return us(this).rgb()}}));var ds=e=>()=>e;function fs(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ds(isNaN(e)?t:e)}var hs=function e(t){var n=function(e){return 1==(e=+e)?fs: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):ds(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Fa(e)).r,(t=Fa(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=fs(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),ps=/^class(-pyramid)?/,ms=function(e,t,n,r){var i=void 0!==n.min?n.min:r.min(),o=void 0!==n.max?n.max:r.max(),a=i,s=o,l=t.limits,c={},u="percent"===t.limitType?l.map((function(e){return i+(o-i)*e})):l,d=t.colors.map((function(t){return e.resolveUIColor(t)}));if(i=Math.min.apply(Math,[i].concat(Ho(u))),o=Math.max.apply(Math,[o].concat(Ho(u))),c.min=i,c.max=o,t.breakTypes&&-1===t.breakTypes.indexOf(!0))c.type="categorical",Object.assign(c,function(e){var t=e.min,n=e.max,r=e.limits,i=e.range,o=[],a=[];if(r.length)if(r[r.length-1]<t)a.push(t,n),o.push(i[i.length-1],i[i.length-1],i[i.length-1]);else if(r[0]>n)a.push(t,n),o.push(i[0],i[0],i[0]);else{if(r[0]>t)a.push(t),o.push(i[0]);else{a.push(t);for(var s=0;s<r.length;s++)if(t<r[s]){o.push(i[s]);break}}for(var l=0;l<r.length;l++)t<r[l]&&r[l]<n&&(a.push(r[l]),o.push(i[l]));if(r[r.length-1]<n)a.push(n),o.push(i[r.length]),o.push(i[r.length]);else{a.push(n);for(var c=0;c<r.length;c++)if(r[c]>n){o.push(i[c]),o.push(i[c]);break}}}else o.push(i[0]);return{min:t,max:n,range:o,domain:a}}({min:"percent"===t.limitType?i:a,max:"percent"===t.limitType?o:s,range:d,limits:"percent"===t.limitType?u:l}));else if(t.breakTypes){var f=t.breakTypes;c.type="continuous",c.domain=[i],c.range=[d[0]];for(var h=0;h<u.length;h+=1)if(f[h]){var p=d[h],m=d[h+1],g=hs(p,m)(.5);c.range.push(g),c.domain.push(u[h]),h<u.length-1&&f[h+1]&&(c.range.push(d[h+1]),c.domain.push((u[h]+u[h+1])/2))}else c.range.push(d[h]),c.range.push(d[h+1]),c.domain.push(u[h]),c.domain.push(u[h]+Math.min(1e-6,(o-i)/1e6));c.range.push(d[d.length-1]),c.domain.push(o)}else c.domain=u,c.range=d;return c};function gs(e,t,n,r,i){var o,a,s,l=0,c=[],u=(e-t)/(r+1);if(0===u)return 1;for(o=0;o<n.length;o+=1)a=.99*(n[o]-t),s=n[o]>e?Math.floor(e/u):n[o]<t?0:Math.floor(a/u),Number.isNaN(s)||(c[s]?c[s]+=1:c[s]=1);for(o=0;o<c.length;o+=1)c[o]&&(l+=1);return l<=r||l>=i?Math.max(l,r):gs(e,t,n,r+1,i)}var ys=function(e,t,n,r){var i,o,a=t.theme,s=t.hc,l=r.f,c={mode:"field",fieldType:"measure",field:l?l.key():void 0,reverse:n.input.reverseScheme||!1,type:"continuous",range:function(e){return e.resources.theme.palette("quant")}},u=[],d=!0;if(l){if(Number.isNaN(+l.min())||Number.isNaN(+l.max()))return{invalid:!0};(d=!("S"===(i=n.pic.raw()).qMode&&(i.qDataPages[0]&&i.qSize.qcy>i.qDataPages[0].qArea.qHeight||!i.qDataPages.length&&i.qSize.qcy>0)||"K"===i.qMode&&i.qStackedDataPages[0]&&i.qSize.qcy>i.qStackedDataPages[0].qArea.qHeight||"T"===i.qMode&&i.qSize.qcy>i.qTreeDataPages[0].qGroupSize))&&(u=n.pic.extract({field:0,props:{num:{field:l.key()},exclude:{fields:s.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return Math.min.apply(Math,Ho(e))<0}}}}).filter((function(e){return e.value>=0&&!e.exclude.value})).map((function(e){return e.num.value})).filter((function(e){return"number"==typeof e})))}if(!1===n.input.autoMinMax){if(c.min=n.input.measureMin,c.max=n.input.measureMax,c.max<c.min)return{invalid:!0}}else if(l&&!d)c.min=l.min(),c.max=l.max();else if(l){if(!u.length)return{invalid:!0};c.min=Math.min.apply(Math,Ho(u)),c.max=Math.max.apply(Math,Ho(u))}if(n.input.measureScheme&&(c.palettes={quant:n.input.measureScheme}),a){var f=a.getDataColorScales().filter((function(e){return e.key===n.input.measureScheme}))[0];c.type=f&&ps.test(f.type)?"categorical":"continuous","categorical"===c.type&&(o=f.colors.some((function(e){return Array.isArray(e)}))?Math.max.apply(Math,Ho(f.colors.map((function(e){return e?e.length:0})))):f.colors.length)}if("categorical"===c.type){for(var h=d?gs(c.max,c.min,u,1,o):o,p=(c.max-c.min)/h,m=[],g=0;g<h+1;g+=1)m.push(c.min+p*g);c.domain=m,c.range=function(e){for(var t=e.resources.theme.palette("quant",h),n=Math.max(1,Math.floor(t.length/h)),r=[],i=0;i<h;i+=1)r.push(t[i*n]);return[r[0]].concat(r,[r[r.length-1]])}}return c};function vs(e,t){var n;return t.activeMeasureIndex>=0?n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[t.activeMeasureIndex]:"libraryItem"===t.type?n=e.pic.field((function(e){return e.raw().colorMapRef===t.key&&void 0!==t.key})):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n||(n=e.pic.field((function(e){return void 0!==e.raw().matchMeasure})))&&(n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[n.raw().matchMeasure]),n}function bs(e){e.measureOverrides.every((function(e){return!e}))&&(e.measureOverrides=null)}function xs(e,t){for(var n=(null==t?void 0:t.domain)||[],r=(null==t?void 0:t.range)||[],i=[],o=0;o<e.length;++o){var a=e[o];if("constant"===(null==a?void 0:a.mode)){var s=n.indexOf(o);-1===s?(n.push(o),r.push(a.primary)):r[s]=a.primary,e[o]=null}else if(a){i.push(o);var l=n.indexOf(o);-1!==l&&(n.splice(l,1),r.splice(l,1))}}return{domain:n,range:r,exclude:i}}function Ss(e,t,n,r){var i,o=function(e,t,n,r){if(t.input&&!t.input.auto){if("byMeasure"===t.input.mode)return function(e,t,n){var r=t.theme,i=t.hc,o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).getCField,a=void 0===o?vs:o,s=n.input.byMeasureDef||{activeMeasureIndex:0},l=a(n,s),c=ys(0,{theme:r,hc:i},n,{f:l});if(c.invalid)return c;"expression"===s.type&&(s.activeMeasureIndex<0||void 0===s.activeMeasureIndex)&&(c.label=s.label,l&&"color.altLabel"===l.raw().labelExpRef&&(c.label=n.input.altLabel)),!c.label&&l&&(c.label=l.title());var u=s.activeMeasureIndex>=0?l:null;if(!u&&l&&void 0!==l.raw().matchMeasure&&l.raw().matchMeasure>-1&&(u=n.pic.fields().filter((function(e){return"measure"===e.type()}))[l.raw().matchMeasure]),n.input.useMeasureGradient&&"libraryItem"===s.type)if(u){var d=u.raw().coloring;d&&d.gradient&&fa(c,ms(e,d.gradient,c,u))}else c.auxiliary=s;return c}(e,n,t);if("byDimension"===t.input.mode)return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.getCDef,o=void 0===i?ga:i,a=r.getCByField,s=void 0===a?ya:a,l=r.getPersistence,c=void 0===l?ma:l,u=o(t,n),d=s(n,u),f=d?d.raw():{},h=n&&n.pic?n.pic.raw():{};if(f.qError||f.qSize&&0===f.qSize.qcy&&!h.qHasOtherValues)return{invalid:!0};var p={mode:"field",fieldType:"dimension",type:"categorical",field:d?d.key():void 0,isFieldLocked:f.qLocked};return("expression"===u.type||u.activeDimensionIndex<0)&&(p.label=u.label,"color.altLabel"===f.labelExpRef&&(p.label=n.input.altLabel)),!p.label&&d&&(p.label=d.title()),n.input.dimensionScheme&&(p.palettes={categorical:n.input.dimensionScheme}),n.input.useDimColVal&&"libraryItem"===u.type&&(p.auxiliary=u),fa(p,c(t,n,u,d,{byRow:pa,byElemNo:ha})),p}(e,n,t);if("byExpression"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.pic.field((function(e){return"colorByExpression"===e.raw().id}));if(!s||!s.raw().qFallbackTitle&&!n.input.colorExpression||!(Number.isFinite(s.raw().qMin)&&Number.isFinite(s.raw().qMax)||n.input.expressionIsColor))return{mode:"constant",type:"constant",primary:r.nil};if(n.input.expressionIsColor)return{mode:"field",fieldType:"expression",field:s?s.key():void 0,type:"color"};var l=ys(0,{hc:i,theme:o},n,{f:s});return l.invalid||(l.label=n.input.expressionLabel||a.get("Object.ChartTooltip.ColorExpression")),l}(0,n,t,r);if("byMultiple"===t.input.mode||"primary"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.input.useBaseColors;if(("byMultiple"===n.input.mode||"primary"===n.input.mode&&"measure"===n.input.useBaseColors)&&i.qMeasureInfo.length>1&&(s="measure"),"measure"===s){var l=[],c=[];"measure"===n.input.useBaseColors&&i.qMeasureInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){l.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?c.push(r.primary):c.push(i)}}));var u=n.input.dimensionScheme?{categorical:n.input.dimensionScheme}:void 0,d=o?o.getDataColorPalettes()[0]:void 0;return"measure"===n.input.useBaseColors&&d&&(u={categorical:d.key}),{mode:"measure",type:"categorical",palettes:u,label:a?a.get("Common.Measures"):void 0,explicit:l.length?{domain:l,range:c}:void 0}}if("dimension"===s){var f=[],h=[];return i.qDimensionInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){f.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?h.push(r.primary):h.push(i)}})),{mode:"dimension",type:"categorical",field:f.length?f[0]:void 0,explicit:f.length?{domain:f,range:h}:void 0}}var p=r.primary;if(void 0!==n.input.paletteColor)n.input.paletteColor&&(p=e.resolveUIColor(n.input.paletteColor));else{var m=n.input.singleColor;"number"!=typeof m||Number.isNaN(m)||(p=["#b0afae","#7b7a78","#545352","#4477aa","#7db8da","#b6d7ea","#46c646","#f93f17","#ffcf02","#276e27","#ffffff","#000000"][m])}return{mode:"constant",type:"constant",primary:p}}(e,n,t,r)}return{}}(e,t,n,r);return null!==(i=t.input)&&void 0!==i&&i.measureOverrides?(o.measureOverrides=t.input.measureOverrides.map((function(n,i){return function(e){var t,n=e.cm,r=e.defaults,i=e.index,o=e.input,a=e.pic;if(!o||!o.on)return null;var s=null!==(t=o.mode)&&void 0!==t?t:"primary";return"primary"===s?function(e,t,n){var r=n.primary;return void 0!==t.paletteColor&&t.paletteColor&&(r=e.resolveUIColor(t.paletteColor)),Fo(Fo({},n),{},{mode:"constant",type:"constant",primary:r})}(n,o,r):"byExpression"===s?function(e,t,n){var r="qMeasureInfo/".concat(e,"/"),i=t.field((function(e){return e.id().startsWith(r)&&"colorByMeasureExpression"===e.raw().id})),o=i;return Fo(Fo({},n),{},o?{mode:"field",fieldType:"expression",field:i?i.key():void 0,type:"color"}:{mode:"constant",type:"constant",primary:n.nil})}(i,a,r):null}({cm:e,input:n,defaults:r,index:i,pic:t.pic})})),function(e,t){var n,r,i,o=t.translator;if(bs(e),1===(null===(n=e.measureOverrides)||void 0===n?void 0:n.length))return e.measureOverrides[0];if("measure"===e.mode&&e.measureOverrides&&(e.explicit=xs(e.measureOverrides,e.explicit),bs(e)),null!==(r=e.measureOverrides)&&void 0!==r&&r.every((function(e){return"constant"===(null==e?void 0:e.mode)}))){var a={mode:"measure",type:"categorical",label:null==o?void 0:o.get("Common.Measures")};return a.explicit=xs(e.measureOverrides),a}return null!==(i=e.measureOverrides)&&void 0!==i&&i.every((function(e){return e}))?{invalid:!0,measureOverrides:e.measureOverrides}:e}(o,n)):o}var ws=function(e,t){var n=e.fieldType,r={};if(t)if("measure"===n){var i=t.coloring;i&&(r.measureGradient=i.gradient)}else if("dimension"===n){var o=t[0],a=t[1];o&&(r.legendDataPage=o),a&&(r.dimValsData=a.colorMap)}return r},Ms=function(e){throw e.isHandled=!0,e};function ks(e){return function(t){return"object"===Vo(t.datum[e])?t.datum[e].value:void 0}}function Es(e){return"object"===Vo(e.datum.isNull)?e.datum.isNull.value:-2===e.datum.value}function Cs(e){return-3===e.datum.value}var Os={COLOR:void 0,FONT_SIZE:"16px",FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"},Ns={COLOR:void 0,FONT_SIZE:void 0,FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"};function Ts(e){var t=e.theme,n=e.key,r=e.styleOverrides,i={title:{color:Os.COLOR,fontSize:Os.FONT_SIZE,fontFamily:Os.FONT_FAMILY},label:{color:Ns.COLOR,fontSize:Ns.FONT_SIZE,fontFamily:Ns.FONT_FAMILY}};if(!t&&!r)return i;var o=r||{},a=o.title,s=o.label,l=function(e){var t=e.theme,n=e.key;return function(e,r,i,o){return void 0!==e?e:t?t.getStyle(n,r,i):o}}({theme:t,key:n});return i.title.color=l(null==a?void 0:a.color,"legend.title","color",Os.COLOR),i.title.fontSize=l(null==a?void 0:a.fontSize,"legend.title","fontSize",Os.FONT_SIZE),i.title.fontFamily=l(null==a?void 0:a.fontFamily,"legend.title","fontFamily",Os.FONT_FAMILY),i.label.color=l(null==s?void 0:s.color,"legend.label","color",Ns.COLOR),i.label.fontSize=l(null==s?void 0:s.fontSize,"legend.label","fontSize",Ns.FONT_SIZE),i.label.fontFamily=l(null==s?void 0:s.fontFamily,"legend.label","fontFamily",Ns.FONT_FAMILY),i}var As=function(e,t,n){var r=e&&e.dock||void 0;if("auto"!==r)return r||"right";if(t){var i=t.element.getBoundingClientRect();if(i.height>i.width)return"bottom"}return n?"left":"right"},Rs=function(e,t,n){return!(n.invalid||"color"===n.type||"measure"===n.mode&&t.qMeasureInfo.length<=1||"dimension"===n.mode)&&("function"==typeof e.show?e.show():!1!==e.show)};function qs(e,t){var n=e.styleReference,r=e.styleOverrides,i=e.chart,o=e.rtl,a=t.legendProps,s=t.coloring,l=t.theme,c=t.hc,u=Ts({theme:l,key:n,styleOverrides:r});return{layout:{minimumLayoutMode:"MEDIUM",dock:As(a,i,o)},show:"function"==typeof a.show?function(){return Rs(a,c,s)}:Rs(a,c,s),renderer:"svg",mounted:function(e){e.childNodes[0].style.pointerEvents="none",e.style.overflow="hidden"},settings:{title:{show:!1!==a.showTitle,wordBreak:"break-word",maxLines:2,lineHeight:1.2,text:s.label||"",fill:u.title.color,fontSize:u.title.fontSize,fontFamily:u.title.fontFamily}}}}function Ds(e,t,n){var r=[],i=[],o=function(e,t,n){return"categorical"===t.coloring.type?function(e,t,n){var r=qs(e,t);if(!r.show)return!1;var i,o=e.key,a=e.styleReference,s=e.styleOverrides,l=e.viewState,c=e.rtl,u=e.settings,d=e.style,f=t.scaleKey,h=t.theme,p=t.scales,m=Ts({theme:h,key:a,styleOverrides:s}),g=r.layout.dock,y="left"===g||"right"===g?{maxLines:2,wordBreak:"break-word"}:{},v={up:"M13.6,11 L2.4,11 C2.28954305,11 2.2,10.9104569 2.2,10.8 C2.2,10.756726 2.21403557,10.7146192 2.24,10.68 L7.84,3.21333333 C7.90627417,3.12496777 8.03163444,3.10705916 8.12,3.17333333 C8.13516113,3.18470418 8.14862915,3.1981722 8.16,3.21333333 L13.76,10.68 C13.8262742,10.7683656 13.8083656,10.8937258 13.72,10.96 C13.6853808,10.9859644 13.643274,11 13.6,11 Z",down:"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",left:"M11,2.4 L11,13.6 C11,13.7104569 10.9104569,13.8 10.8,13.8 C10.756726,13.8 10.7146192,13.7859644 10.68,13.76 L3.21333333,8.16 C3.12496777,8.09372583 3.10705916,7.96836556 3.17333333,7.88 C3.18470418,7.86483887 3.1981722,7.85137085 3.21333333,7.84 L10.68,2.24 C10.7683656,2.17372583 10.8937258,2.19163444 10.96,2.28 C10.9859644,2.31461923 11,2.35672596 11,2.4 Z",right:"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"};"dimension"===t.coloring.fieldType&&(i=function(e){return e.datum.value>=0||-3===e.datum.value});var b="".concat(f,"Legend");return fa(!0,r,{type:"legend-cat",key:"".concat(o,"-cat"),scale:b in p?b:f,settings:{layout:{scrollOffset:function(){return l?l.get("legendScrollOffset"):void 0},size:-1!==["top","bottom"].indexOf(r.layout.dock)?2:1,direction:c?"rtl":"ltr",horizontal:20},item:{show:i,label:Fo({fill:m.label.color,fontSize:m.label.fontSize,fontFamily:m.label.fontFamily},y)},navigation:{disabled:n,button:{content:function(e,t){var n=t.direction;return e("i",{style:{"pointer-events":"none",fontSize:"12px",display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizelegibility",margin:"0px"}},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},[e("path",{d:v[n]})])])}}}},brush:{consume:[{context:"selection",data:["",o],style:{inactive:{opacity:.3}}}]}},{settings:u,style:d})}(e,t,n):"continuous"===t.coloring.type&&function(e,t){var n,r=e.key,i=e.styleReference,o=e.styleOverrides,a=e.rtl,s=e.settings,l=e.style,c=t.scaleKey,u=t.theme,d="".concat(c,"Range"),f=qs(e,t);if(!f.show)return!1;var h=Ts({theme:u,key:i,styleOverrides:o}),p=f.layout.dock,m="right"===p||"left"===p,g=null===(n=t.scales)||void 0===n?void 0:n[d];return m&&g&&(g.invert=!0),fa(!0,f,{type:"legend-seq",key:"".concat(r,"-seq"),settings:{fill:c,major:d,length:1,tick:{fill:h.label.color,fontSize:h.label.fontSize,fontFamily:h.label.fontFamily},title:{anchor:!a||"top"!==f.layout.dock&&"bottom"!==f.layout.dock?void 0:"right",padding:parseFloat(f.settings.title.fontSize)||16}}},{settings:s,style:l})}(e,t)}(e,t,n&&n.navigationDisabled);return r.push(o),o&&"legend-cat"===o.type&&(i.push(function(e){var t=e.key,n=e.requireFailure,r=e.recognizeWith,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:tap-".concat(t),type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"legendtap",interval:10,pointers:1,enable:function(e,n){var r;if(!n)return!0;if(null!=i&&null!==(r=i.interact)&&void 0!==r&&r.enabled&&!i.interact.enabled())return!1;if(!this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((function(e){return e.key==="".concat(t,"-cat")})))return!1;var o=n.srcEvent.target;return!!(o&&o.hasAttribute("data-action")&&o.hasAttribute("data-component-key"))||!(!o||!o.childNodes[0]||"BUTTON"!==o.childNodes[0].nodeName)}},events:{legendtap:function(e){e.preventDefault();var t=e.srcEvent.target;t&&t.hasAttribute("data-action")&&t.hasAttribute("data-component-key")&&this.chart.component(t.getAttribute("data-component-key")).emit(t.getAttribute("data-action"))}}}}(e,n)),i.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,n=e.key,r=e.requireFailure,i=e.recognizeWith,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:pan-".concat(n),type:"Pan",requireFailure:r,recognizeWith:i,options:{event:t,pointers:1,threshold:10,enable:function(e,r){var i;return this.started===t||!r||!(null!=o&&null!==(i=o.interact)&&void 0!==i&&i.enabled&&!o.interact.enabled())&&this.chart.componentsFromPoint({x:r.center.x,y:r.center.y}).some((function(e){return e.key==="".concat(n,"-cat")}))}},events:_o(_o(_o({},"".concat(t,"start"),(function(e){e.preventDefault(),this.started!==t&&(this.started=t,this.chart.component("".concat(n,"-cat")).emit("panstart",e))})),"".concat(t,"move"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panmove",e)})),"".concat(t,"end"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panend",e),this.started=!1}))}}(e,n))),{interactions:i,components:r}}function Is(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.auto,n=function(e){var t=Fo({hc:null,colorProps:null,layout:null,theme:null},e),n={},r={auto:function(){return{mode:"primary"}},getDimensionColorMap:function(){return Promise.reject()},getMeasure:function(){return Promise.reject()},getAttributeDimension:function(){return Promise.reject()}},i={auto:function(e){return e?(r.auto=e,i):r.auto},getDimensionColorMap:function(e){return e?(r.getDimensionColorMap=e,i):r.getDimensionColorMap},getAttributeDimension:function(e){return e?(r.getAttributeDimension=e,i):r.getAttributeDimension},getMeasure:function(e){return e?(r.getMeasure=e,i):r.getMeasure},set:function(e){var i;if(!e.colorProps)throw new Error('Missing "colorProps"');if(fa(t,e),(n={pic:t.picasso.data("q")({data:t.hc,config:{localeInfo:t.localeInfo}}),input:t.colorProps}).input.auto){var o=r.auto(e.layout);n.input=fa(!0,{},n.input,o,{auto:!1});var a=t.theme?t.theme.getDataColorPalettes():[];a[0]&&(n.input.dimensionScheme=a[0].key);var s=0;n.input.byDimDef&&+n.input.byDimDef.activeDimensionIndex>=0&&(s=+n.input.byDimDef.activeDimensionIndex),t.hc&&t.hc.qDimensionInfo[s]&&t.hc.qDimensionInfo[s].coloring&&t.hc.qDimensionInfo[s].coloring.colorMapRef&&n.input.byDimDef&&(n.input.byDimDef.type="libraryItem",n.input.byDimDef.key=t.hc.qDimensionInfo[s].coloring.colorMapRef)}null!==(i=n.input.measureOverrides)&&void 0!==i&&i.every((function(e){return!e||!e.on}))&&(n.input=fa(!1,{},n.input,{measureOverrides:null}))},palettes:function(){if(!n.palettes){var e=t.theme,r=[];(e&&e.getDataColorPickerPalettes()||[]).forEach((function(e){r.push({key:"ui",colors:e.colors})})),n.palettes=r}return n.palettes},getAuxiliaryData:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/qHyperCubeDef";if(!e.auxiliary&&!/qAttrDimInfo/.test(e.field))return Promise.resolve();var i=(e.auxiliary||{}).key;if("measure"===e.fieldType)return r.getMeasure(i,t).catch((function(){}));if("dimension"===e.fieldType){var o="".concat(n,"/").concat(e.field).replace("qDimensionInfo","qDimensions").replace("qAttrDimInfo","qAttributeDimensions");return Promise.all([/qAttrDimInfo/.test(e.field)?r.getAttributeDimension(o,t).catch((function(){})):Promise.resolve(),i?r.getDimensionColorMap(i,t).catch((function(){})):Promise.resolve()])}return Promise.resolve()},getAuxiliarySettings:function(e,r){var i=this;return e.auxiliary||/qAttrDimInfo/.test(e.field)?(this.palettes(),this.getAuxiliaryData(e,r).then((function(r){if(!r)return{};if("measure"===e.fieldType){if(r.coloring&&r.coloring.gradient){var o=n.pic.field(e.field);return ms(i,r.coloring.gradient,e,o)}return{}}if("dimension"===e.fieldType){var a={nil:e.nil,others:e.others},s=r[0],l=r[1]?r[1].colorMap:null;if(s){var c=t.picasso.data("q")({data:{qDimensionInfo:[n.pic.field(e.field).raw(),n.pic.field(e.field).raw()],qMeasureInfo:[],qDataPages:s,qInterColumnSortOrder:[0,1],qMode:"S"}});a.legendDataset=c}return l?function(e,t,n,r){var i=r.external,o=r.field,a=Fo({},e);fa(a,ha(o,o.raw().qCardinal));var s=i.theme?i.theme.getDataColorPalettes()[0]:null;return t.nul&&(a.nil=n.resolveUIColor(t.nul)),t.oth&&(a.others=n.resolveUIColor(t.oth)),t.usePal?(a.palettes={categorical:t.pal},s&&!t.pal&&(a.palettes.categorical=s.key,fa(a,ha(o)))):!1===t.autoFill&&t.single?a.range=[n.resolveUIColor(t.single)]:t.autoFill&&(s&&(a.palettes={categorical:s.key}),fa(a,ha(o))),t.colors&&t.colors.length&&(a.explicit=function(e,t,n){for(var r={},i=0;i<e.length;i+=1)r[e[i].value]=e[i].baseColor;var o=[];return{domain:function(e){var i=e.data,a=[];o=[];for(var s=0;s<i.items.length;s++){var l=i.items[s],c=(l.text||l).label;r[c]&&-1===a.indexOf(l.value)&&(a.push(l.value),o.push(t.resolveUIColor(r[c])))}return a.push(-3,-2),o.push(n.others),o.push(n.nil),a},range:function(){return o}}}(t.colors,n,a)),a}(a,l,i,{external:t,field:n.pic.field(e.field)}):a}return{}}))):Promise.resolve()},resolveUIColor:function(e){if(e.index<0||void 0===e.index)return e.color;if(void 0===n.uiPalette&&(n.uiPalette=this.palettes().filter((function(e){return"ui"===e.key}))[0]||!1),!n.uiPalette)return e.color;var t="none"===n.uiPalette.colors[0]?e.index:e.index-1;return void 0===n.uiPalette.colors[t]?e.color:n.uiPalette.colors[t]},settings:function(){if(this.palettes(),!n.settings){var e={primary:"steelblue",others:"#aaa",nil:"#ddd"},r=t.theme;r&&(e=Fo(Fo({},e),r.getDataColorSpecials())),n.settings=fa(e,Ss(this,n,t,e))}return n.settings}};return i}(e.resources).auto(t||function(){return{mode:"byDimension",persistent:!1,useDimColVal:!0,byDimDef:{activeDimensionIndex:0,type:"expression",label:""}}}).getDimensionColorMap((function(e,t){return function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.dimValsData?Promise.resolve({colorMap:n.snapshotData.content.chartData.dimValsData}):Promise.reject():r&&r.getObject?r.getObject("ColorMapModel_".concat(e)).then((function(e){return e.getLayout()})):Promise.reject()}(e,{layout:t.layout,app:t.app})})).getMeasure((function(e,t){return function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.measureGradient?Promise.resolve({coloring:{gradient:n.snapshotData.content.chartData.measureGradient}}):Promise.reject():r&&r.getMeasure?r.getMeasure(e).then((function(e){return e.getMeasure()})):Promise.reject()}(e,{layout:t.layout,app:t.app})})).getAttributeDimension((function(e,t){return function(e,t){var n=t.layout,r=t.model,i=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.legendDataPage?Promise.resolve(n.snapshotData.content.chartData.legendDataPage):Promise.reject():r&&r.session&&i?r.getHyperCubeData(e,[{qHeight:100,qLeft:0,qTop:0,qWidth:2}]).catch(Ms):Promise.reject()}(e,{layout:t.layout,model:t.model,app:t.app})}));return n.getSnapshotData=ws,n}({resources:e}),n={},r={},i=function(e){return r.settings||(e||console.warn("settings() called before auxiliarySettings()"),r.settings=t.settings()),r.settings},o={config:function(i){if(n=Fo({},i),r={},!n.key)throw new Error("Missing key");t.set(Fo(Fo({},e),n))},auto:function(e){return e?(t.auto(e),o):t.auto()},getAuxiliarySettings:function(e){return r.auxiliarySettings?Promise.resolve(r.auxiliarySettings):t.getAuxiliarySettings(i(!0),e).then((function(e){return r.auxiliarySettings=e||{},r.settings=Fo(Fo({},r.settings),r.auxiliarySettings),r.scales=void 0,r.color=void 0,r.auxiliarySettings}))},getAuxiliaryData:function(){return t.getAuxiliaryData(i())},getSnapshotData:function(e){var n=i();return t.getAuxiliaryData(n,e).then((function(e){return t.getSnapshotData(n,e)}))},resolveUIColor:function(e){return t.resolveUIColor(e)},settings:function(){var e=i();return{mode:e.mode,type:e.type,label:e.label,field:e.field,fieldType:e.fieldType,nil:e.nil,others:e.others,primary:e.primary}},settingsForMeasure:function(e){var t;return(null===(t=i().measureOverrides)||void 0===t?void 0:t[e])||this.settings()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return function(e,t){var n=t.isMeasureSelectionLocked;return"field"!==e.mode||("dimension"===e.fieldType?e.isFieldLocked:"measure"!==e.fieldType||n)}(i(),{isMeasureSelectionLocked:t})},palettes:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorProps,n=e.coloring,r=e.theme,i=[];if(n&&n.palettes&&r){var o=n.palettes.categorical||t.dimensionScheme,a=r.getDataColorPalettes().filter((function(e){return e.key===o}))[0]||r.getDataColorPalettes()[0];o&&a&&i.push({key:"categorical",colors:a.colors});var s=n.palettes.metric||t.measureScheme,l=r.getDataColorScales().filter((function(e){return e.key===s}))[0]||r.getDataColorScales()[0];if(l){var c=l.colors[0]?l.colors:[[]].concat(Ho(l.colors.slice(1)));c=Array.isArray(c[0])?c.map((function(e){return e.slice().reverse()})):c.slice().reverse(),i.push({key:"quant",colors:c})}}return i}({coloring:i(),colorProps:n.colorProps,theme:n.theme})},scales:function(){return r.scales=r.scales||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.hc,n=e.coloring,r=e.rtl,i=e.key,o=e.source,a=e.picasso,s={},l=i;if(n){var c={override:!0,domain:n.explicit&&"function"==typeof n.explicit.domain?n.explicit.domain:[].concat(Ho((n.explicit||{}).domain||[]),[-3,-2]),range:n.explicit&&"function"==typeof n.explicit.range?n.explicit.range:[].concat(Ho((n.explicit||{}).range||[]),[n.others,n.nil])};if("field"===n.mode){if("dimension"===n.fieldType){var u,d=function(e){var t=e.hc,n=e.source,r=e.coloring,i={data:{extract:[{source:"dummy",field:0,filter:function(){return i.expando=t.qDataPages[0]?t.qDataPages[0].qArea.qTop:0,!1}},{source:n,field:r.field,trackBy:r.valueAccessor,reduce:"first",props:{row:{reduce:function(){return i.expando++}},text:{value:function(e){return e.qText},reduce:"first"}}}]},expando:0};return i}({hc:t,source:o,coloring:n}).data;if(n.legendDataset){var f=0,h={};a.data("q")({data:t}).extract({field:n.field,trackBy:n.valueAccessor,reduce:function(e){var t=e[0];return h[t]=f++,e[0]}}),u={source:"attrDim",extract:{field:"qDimensionInfo/0",filter:function(e){return e.qElemNumber>=0},props:{row:{value:function(e){return h[e.qElemNumber]}}}}}}var p={data:d,range:n.range,domain:n.domain,explicit:c,type:"categorical-color",label:function(e){return e.datum.text&&e.datum.text.value?e.datum.text.value:e.datum.label}};s[l]=p,u&&(s["".concat(l,"Legend")]=Fo(Fo({},p),{},{data:u})),t&&t.qHasOtherValues&&u&&((u||p.data).amend=[{label:t.qDimensionInfo[0].othersLabel,source:{key:"qHyperCube",field:"qDimensionInfo/0"},row:{value:-3},value:-3}])}else if("measure"===n.fieldType){var m={data:{field:n.field},min:n.min,max:n.max};s[l]=fa({},m,{type:"categorical"===n.type?"threshold-color":"sequential-color",range:n.range,domain:n.domain,invert:n.reverse}),"sequential-color"===s[l].type&&(s["".concat(l,"Range")]=fa({},m,{invert:!!r}))}else if("color"!==n.type)throw new Error("UNUSED FIELD")}else if("dimension"===n.mode){var g={data:t.qDimensionInfo.map((function(e,t){return t})),label:function(e){return t.qDimensionInfo[e.datum.value].qFallbackTitle},explicit:c,type:"categorical-color"};s[l]=g}else if("measure"===n.mode){var y={data:t.qMeasureInfo.map((function(e,t){return t})).filter((function(e){var t;return!(null!==(t=n.explicit)&&void 0!==t&&null!==(t=t.exclude)&&void 0!==t&&t.includes(e))})),label:function(e){return t.qMeasureInfo[e.datum.value].qFallbackTitle},explicit:c,type:"categorical-color"};s[l]=y}}return s}({hc:n.hc,coloring:i(),key:n.key,source:n.source,picasso:e.picasso}),r.scales},color:function(){return r.color=r.color||function(e){var t=e.coloring,n=e.scales,r=e.key,i=ks(r),o=ks("".concat(r,"IsAnOther")),a=function(e,t){var r=e.fieldType,a=e.invalid,s=e.mode,l=e.nil,c=e.others,u=e.primary,d=e.type;return a?function(e){return Cs(e)||o(e)?c:l}:n[t]?function(e){return Cs(e)?c:Es(e)||-2===i(e)&&"dimension"===r||"NaN"===i(e)?l:o(e)?c:e.resources.scale(t)(i(e))||c}:"constant"===s?function(e){return Cs(e)||o(e)?c:Es(e)?l:u}:"color"===d?function(e){return Cs(e)||o(e)?c:Es(e)?l:i(e)||c}:null},s=a(t,r);if(t.measureOverrides){var l=ks("".concat(r,"MeasureIdx")),c=t.measureOverrides.map((function(e){return e&&a(e)}));return function(e){var t=l(e);return c[t]?c[t](e):s(e)}}return s}({coloring:i(),scales:this.scales(),key:n.key}),r.color},datumProps:function(e){return function(e){var t,n,r=e.hc,i=e.coloring,o=e.scales,a=e.key,s=e.addMeasureIx,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=a,u=i.nil;"field"===i.mode&&i.field?t=i.field:o[a]&&"field"===i.mode&&(t=o[a].data.field||i.field),t?(n={field:t,reduce:"first"},"color"===i.type&&(n.value=function(e){return"NaN"!==e.qNum?function(e){return"rgba(".concat([(16711680&e)>>16,(65280&e)>>8,255&e,((4278190080&e)>>>24)/255].join(","),")")}(e.qNum):e.qText&&La(e.qText)?e.qText:u})):"dimension"===i.mode?n=void 0!==i.field?i.field:r.qDimensionInfo.length-1:"measure"===i.mode&&(n=l);var d=_o({},c,n);return r.qDimensionInfo.length>1&&(d["".concat(c,"IsAnOther")]={fields:r.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return-1!==e.indexOf(-3)}}),s&&(d["".concat(c,"MeasureIdx")]=l),d}({coloring:this.settingsForMeasure(e),scales:this.scales(),key:n.key,hc:n.hc,addMeasureIx:i().measureOverrides},e)},data:function(){var e=i(),t={key:"dummy",data:[["field"],["a"]]};return e.legendDataset?[t,{type:"q",key:"attrDim",data:e.legendDataset.raw(),config:{localeInfo:n.localeInfo}}]:[t]},legend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,r=e.key,o=e.viewState,a=e.chart,s=e.rtl,l=e.styleReference,c=void 0===l?"object.legend":l,u=e.styleOverrides,d=e.settings,f=void 0===d?{}:d,h=e.style,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ds({eventName:t,key:r,rtl:s,viewState:o,chart:a,styleReference:c,styleOverrides:u,settings:f,style:void 0===h?{}:h},{legendProps:n.legendProps,scaleKey:n.key,coloring:i(),theme:n.theme,hc:n.hc,scales:this.scales()},p)}};return o}var Ls=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function Ps(e){var t=e.qHyperCube,n=t.qDimensionInfo,r=t.qMeasureInfo,i=n.some(Ls),o=r.some(Ls),a=e.color.useBaseColors;return"measure"===a&&!o||"dimension"===a&&!i?"off":a}var _s=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function zs(e){var t,n=e.qHyperCube.qDimensionInfo.some(_s),r=e.qHyperCube.qMeasureInfo.some(_s),i=n?"dimension":void 0;return{mode:"primary",useBaseColors:null!==(t=null!=i?i:r?"measure":void 0)&&void 0!==t?t:"off",paletteColor:null}}var Fs=function(){};function js(e){var t,n,r,i,o=e.picasso,a=e.model,s=e.app,l=e.translator,c=e.layoutService,u=void 0===c?void 0:c,d=e.createConfig,f=void 0===d?Fs:d,h=e.config,p=void 0===h?{}:h,m=e.custom,g=void 0===m?{}:m,y=p.localeInfo,v=p.key,b=p.theme,x=void 0===b?void 0:b,S=p.auto,w=void 0===S?void 0:S,M=p.definitionPath,k=null==u||null===(t=u.getLayout)||void 0===t?void 0:t.call(u),E={theme:x,key:v,localeInfo:y,layout:k,hc:null==u||null===(n=u.getHyperCube)||void 0===n?void 0:n.call(u),legendProps:null==u||null===(r=u.getLayoutValue)||void 0===r?void 0:r.call(u,"legend"),colorProps:Fo(Fo({},null==u||null===(i=u.getLayoutValue)||void 0===i?void 0:i.call(u,"color")),{},{useBaseColors:k?Ps(k):void 0})},C=Is({picasso:o,model:a,app:s,translator:l,auto:w});!1!==w&&C.auto((function(e){return w?w({layout:e,defaultAuto:zs}):zs(e)}));var O=!1,N={getColor:function(){return C.color()},getPaletteColor:function(e){var t=e.index,n=e.color;return C.resolveUIColor({index:t,color:n})},getData:function(){return C.data()},getDatumProps:function(e){return C.datumProps(e)},getSnapshotData:function(){return C.getSnapshotData(M)},getSettingsForMeasure:function(e){return C.settingsForMeasure(e)},getSettings:function(){return C.settings()},getLegend:function(e,t){return C.legend(e,t)},getScales:function(){return C.scales()},getPalettes:function(){return C.palettes()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return C.isSelectionLocked({isMeasureSelectionLocked:t})},isInitialized:function(){return O},custom:Fo({},g),initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).createConfig,t=(void 0===e?f:e)({getUseBaseColors:Ps}),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Fo(Fo(Fo({},e),t),{},{colorProps:Fo(Fo({},e.colorProps),t.colorProps||{})})}(E,t);return C.config(n),C.getAuxiliarySettings(M).then((function(){O=!0}))}};return N}var $s="center",Bs="bottom",Hs=[{key:"NoDataExist",alignment:$s,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:$s,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:$s,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:$s},{key:"DataRangeIncludingZero",alignment:Bs},{key:"LimitedData",alignment:Bs},{key:"NegativeOrZeroValues",alignment:Bs}].reduce((function(e,t){return e[t.key]=t,e}),{}),Vs=function(){return!1};function Us(e){var t,n=e.layout,r=e.config,i=void 0===r?{}:r,o={disclaimer:void 0,isSuppressing:!1,showDisclaimer:null!==(t=i.args)&&void 0!==t&&t.layoutService?i.args.layoutService.getLayoutValue("showDisclaimer"):null==n?void 0:n.showDisclaimer};return{initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).args;o.disclaimer=function(e){var t=e.args,n=e.disclaimers,r=[];return Object.keys(n).forEach((function(e){var i=Hs[e],o=n[e];o&&(o.condition||(null==i?void 0:i.condition)||Vs)(t)&&r.push({key:(null==i?void 0:i.translationKey)||(null==i?void 0:i.key)||e,alignment:o.alignment||(null==i?void 0:i.alignment)||Bs})})),r.find((function(e){return e.alignment===$s}))||r[0]}({args:Fo(Fo({layout:n},i.args),e),disclaimers:i.disclaimers||{}}),o.isSuppressing=!(!o.disclaimer||o.disclaimer.alignment!==$s)},getDisclaimer:function(){return o.isSuppressing?o.disclaimer:!1===o.showDisclaimer?void 0:o.disclaimer},getHasSuppressingDisclaimer:function(){return o.isSuppressing}}}function Ws(e){var t=e.chart,n=e.logicalSize;if(n)return n;var r=t?t.element.getBoundingClientRect():{};return{width:r.width,height:r.height}}var Ys=[{key:"FULL",size:{width:550,height:450}},{key:"MEDIUM",size:{width:400,height:220}},{key:"SMALL",size:{width:300,height:150}},{key:"XSMALL",size:{width:150,height:75}}];function Gs(e){var t=e.width,n=e.height,r=Ys.filter((function(e){return t>=e.size.width&&n>=e.size.height})).shift();return r?r.key:"SPARK"}var Ks={left:"right",right:"left",top:"bottom",bottom:"top",near:"far",far:"near"};function Xs(e){var t=e.orientation,n=e.dock,r=e.btt,i=e.rtl,o="horizontal"===t?function(e){return"bottom"===e||"near"===e?"bottom":"top"}(n):function(e,t){var n="left"===e||"near"===e?"left":"right";return t?Ks[n]:n}(n,i),a=function(e,t,n){return"vertical"===e?t?"bottom":"top":n?"right":"left"}(t,r,i);return{current:o,opposite:Ks[o],start:a,end:Ks[a]}}function Js(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=i.logicalSize,a=void 0!==o&&o,s=i.rtl,l=void 0!==s&&s,c={chart:{size:void 0,mode:void 0},x:{dock:void 0,opposite:void 0,size:void 0},y:{dock:void 0,opposite:void 0,size:void 0}},u={type:"x-y",config:Fo({},i),meta:c,update:function(e){c.chart.size={width:e.width,height:e.height},c.chart.mode=Gs(e);var t=Xs({orientation:"horizontal",dock:n.getLayoutValue("xAxis.dock"),btt:!1,rtl:l}),r=t.current,i=t.opposite;c.x.dock=r,c.x.opposite=i,c.x.size=e.width;var o=Xs({orientation:"vertical",dock:n.getLayoutValue("yAxis.dock"),btt:!0,rtl:l}),a=o.current,s=o.opposite;c.y.dock=a,c.y.opposite=s,c.y.size=e.height}};return u.update(Ws({chart:t,logicalSize:a})),u}var Zs="vertical",Qs="horizontal";function el(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o,s=i.logicalSize,l=void 0!==s&&s,c=i.rtl,u=void 0!==c&&c,d=a.fallback===Zs?Zs:Qs,f=!!a.invert,h=a.measureAxes||[{ref:"measureAxis",name:"minor"}],p={chart:{orientation:void 0,size:void 0,mode:void 0},major:{orientation:void 0,dock:void 0,opposite:void 0,size:void 0}},m={type:"major-minor",config:Fo({},i),meta:p,update:function(e){p.chart.orientation=n.getLayoutValue("orientation",d),p.chart.size={width:e.width,height:e.height},p.chart.mode=Gs(e),p.major.orientation=function(e){var t=e.chartOrientation,n=e.invert;return e.layoutService.meta.isContinuous?Qs:n?t===Zs?Qs:Zs:t}({layoutService:n,chartOrientation:p.chart.orientation,invert:f});var t=Xs({orientation:p.major.orientation,dock:n.getLayoutValue("dimensionAxis.dock"),btt:!1,rtl:u}),r=t.current,i=t.opposite;p.major.dock=r,p.major.opposite=i,p.major.size=p.major.orientation===Zs?e.height:e.width,h.forEach((function(t){var r={};r.orientation=p.major.orientation===Zs?Qs:Zs;var i=Xs({orientation:r.orientation,dock:n.getLayoutValue("".concat(t.ref,".dock")),btt:!0,rtl:u}),o=i.current,a=i.opposite,s=i.start,l=i.end;r.dock=o,r.opposite=a,r.start=s,r.end=l,r.size=r.orientation===Zs?e.height:e.width,p[t.name]=r}))}};return m.update(Ws({chart:t,logicalSize:l})),m}function tl(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o;return("x-y"===a.type?Js:el)({chart:t,layoutService:n,config:i,typeConfig:a})}function nl(e,t,n){if(void 0===e||void 0===t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(void 0===i[a])return n;i=i[a]}return i}var rl=["__proto__","constructor"];function il(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),i=r[r.length-1];if(!rl.some((function(e){return r.includes(e)}))){for(var o=e,a=0;a<r.length-1;++a){var s=r[a];void 0===o[s]&&(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}}}function ol(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}function al(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,o)}),n)}}function sl(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s;var c=Date.now()-o,u=function(){o=Date.now(),r=0,e.apply(t,n)};r||(c>=i?u():r=setTimeout(u,i-c))}}var ll={ERROR_CODES:[7005],DIMENSION:"qDimensionInfo",MEASURE:"qMeasureInfo"},cl=function(e,t){return e[t].reduce((function(e,t,n){var r;return r=t,ll.ERROR_CODES.some((function(e){var t;return e===(null===(t=r.qError)||void 0===t?void 0:t.qErrorCode)}))?e.filtered.push(n):e.reduced.push(t),e}),{reduced:[],filtered:[]})};function ul(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[]).map((function(e){var t,n=null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal;if(n)return n;var r=e.qStateCounts||{},i=r.qLocked,o=void 0===i?0:i,a=r.qOption,s=void 0===a?0:a,l=r.qSelected;return o+s+(void 0===l?0:l)}))}function dl(e){switch(e.qHyperCube.qMode){case"S":return function(e){var t=e.qHyperCube.qSize;return{refs:{dataPages:"qHyperCube.qDataPages"},size:{x:t.qcx,y:t.qcy,dimensions:ul(e)}}}(e);case"K":return function(e){var t=ul(e);return{refs:{dataPages:"qHyperCube.qStackedDataPages"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);case"T":return function(e){var t=ul(e);return{refs:{dataPages:"qHyperCube.qTreeDataPages"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);default:throw new Error("Mode not supported")}}function fl(e){var t=e.originalArray,n=e.newArray,r=e.matchKey;return Array.isArray(t)&&t.length?(n.forEach((function(e){var n=-1;t.some((function(t,i){return t[r]&&t[r]===e[r]&&(n=i),n})),n>-1?t[n]=e:t.push(e)})),t):n}function hl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pl(Object(n),!0).forEach((function(t){hl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gl=Object.prototype.hasOwnProperty,yl=Object.prototype.toString,vl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,xl=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===yl.call(e)},Sl=function(e){if(!e||"[object Object]"!==yl.call(e))return!1;var t,n=gl.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&gl.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||gl.call(e,t)},wl=function(e,t){vl&&"__proto__"===t.name?vl(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ml=function(e,t){if("__proto__"===t){if(!gl.call(e,t))return;if(bl)return bl(e,t).value}return e[t]},kl=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=Ml(s,n),s!==(i=Ml(t,n))&&(u&&i&&(Sl(i)||(o=xl(i)))?(o?(o=!1,a=r&&xl(r)?r:[]):a=r&&Sl(r)?r:{},wl(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&wl(s,{name:n,newValue:i}));return s};function El(e,t,n,r){if(!e)return-1;const i=n.cache,o=e.origin?e.origin():null;o&&(e=o);let a=i.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<i.wrappedFields.length;t++)if(l=i.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),s=i.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(r)&&r.some(((e,t)=>e!==t))){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function Cl(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function Ol(e){let{cache:t,f:n,mainCell:r,p:i,page:o,rowIdx:a,row:s,sourceKey:l,target:c,targetProp:u,columnOrder:d}=e,f=r;if(i.field&&i.field!==n){const e=El(i.field,o,{cache:t},d);if(-1===e)return;f=kl({qRow:a},e(s))}c[u]=Cl(i,f,{key:l})}function Nl(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let e=0;e<i.length;e++)if(void 0!==i[e].field){const a=t.raw(),s=t.key(),l="object"==typeof i[e].field?i[e].field:t.field(i[e].field),{props:c,main:u}=r.normalizeConfig(i[e],t),d=Object.keys(c),f=!!i[e].trackBy,h=typeof i[e].trackBy,p={},m=[],g=[];for(let t=0;t<a.qDataPages.length;t++){const o=El(l,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==o)for(let y=0;y<a.qDataPages[t].qMatrix.length;y++){const v=a.qDataPages[t].qArea.qTop+y,b=kl({qRow:v},o(a.qDataPages[t].qMatrix[y])),x=Cl(u,b,{key:s});if(!u.filter||u.filter(b)){for(let e=0;e<d.length;e++){const r=c[d[e]];let i=r.fields||[r];r.fields&&(x[d[e]]=[]);for(let o=0;o<i.length;o++)Ol({cache:n,f:l,mainCell:b,p:i[o],prop:d[e],page:a.qDataPages[t],rowIdx:v,row:a.qDataPages[t].qMatrix[y],sourceKey:s,target:r.fields?x[d[e]]:x,targetProp:r.fields?o:d[e],columnOrder:a.qColumnOrder});if(r.fields){const t=x[d[e]].map((e=>e.value)),n=x[d[e]].map((e=>e.label));x[d[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(x[d[e]].value)}}}f&&r.track({cfg:i[e],itemData:b,obj:x,target:m,tracker:p,trackType:h}),g.push(x)}}}const y=f?r.collect(m,{main:u,propsArr:d,props:c}):g;o=[...o,...y]}return o}function Tl(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Al(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ql)):void 0===t&&(t=Rl);for(var n,r,i,o,a,s=new Ll(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new Ll(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Il)}function Rl(e){return e.children}function ql(e){return Array.isArray(e)?e[1]:null}function Dl(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Il(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ll(e){this.data=e,this.depth=this.height=0,this.parent=null}function Pl(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}Ll.prototype=Al.prototype={constructor:Ll,count:function(){return this.eachAfter(Tl)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Al(this).eachBefore(Dl)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};var _l={depth:-1},zl={},Fl={};function jl(e){return e.id}function $l(e){return e.parentId}function Bl(e){let t=e.length;if(t<2)return"";for(;--t>1&&!Hl(e,t););return e.slice(0,t)}function Hl(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function Vl(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,i=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(i)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++){let n=Vl(r,i[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(i)){const t=new Array(i.length);r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++)t[e]=Vl(r,i[e]);return t}n[e]in i&&(i=i[n[e]])}return i}function Ul(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let i=0;i<e.length;i++)e[i].children&&e[i].children.length&&(r=[...r,...Ul(e[i].children,t-1,n)]);return r}function Wl(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const r=Math.max(0,Math.min(100,t-e));return e=>Ul(e.children,r-1,n)}return!1}const Yl=/^qDimensionInfo(?:\/(\d+))?/,Gl=/^\/?qMeasureInfo\/(\d+)/,Kl=/\/qAttrExprInfo\/(\d+)/,Xl=/\/qAttrDimInfo\/(\d+)/;function Jl(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function Zl(e,t){let{cube:n}=t;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),i=!1,o=-1,a=-1,s=-1,l=-1,c=-1,u=-1,d=r;const f=n.qEffectiveInterColumnSortOrder,h=Jl(n);return Yl.test(d)&&(i=!0,o=+Yl.exec(d)[1],d=r.replace(Yl,"")),Gl.test(d)&&("K"===n.qMode?c=+Gl.exec(d)[1]:f&&-1!==f.indexOf(-1)?(c=+Gl.exec(d)[1],u=0):u=+Gl.exec(d)[1],d=d.replace(Gl,"")),d&&(Xl.exec(d)?s=+Xl.exec(d)[1]:Kl.exec(d)&&(a=+Kl.exec(d)[1])),l=i?"S"===n.qMode?h[o]:f?f.indexOf(o):o:f&&-1!==f.indexOf(-1)?f.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:u,attrDimIdx:s,attrIdx:a}}function Ql(e,t){let n,r,i=Wl(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:i,attrFn:r,valueFn:n}}function ec(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function tc(e){let{propsArr:t,props:n,item:r,itemData:i,ret:o,sourceKey:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields||[s];let c,u;s.fields&&(c=[],u=[]);for(let n=0;n<l.length;n++){const d=l[n];let f,h,p,m,g,y;if("primitive"===d.type?(p=d.value,y=String(d.value)):("function"==typeof d.value&&(f=e=>d.value(e,r)),"function"==typeof d.label&&(h=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),f&&(p=g.map(f),f=null),h&&(y=g.map(h),h=null),p=d.reduce?d.reduce(p):p,y=d.reduceLabel?d.reduceLabel(y,p):String(p)):(p=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),y=p)):(p=i,y=i)),s.fields){const e=f?f(p):p;c.push(e),u.push(h&&null!=y?h(y):null!=y?y:String(e))}else{const n=f?f(p):p;o[t[e]]={value:n,label:h?h(y):null!=y?y:String(n)},d.field&&(o[t[e]].source={field:d.field.key(),key:a})}}c&&(o[t[e]]={value:"function"==typeof s.value?s.value(c,r):c,label:"function"==typeof s.label?s.label(u,r):u})}}const nc=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",i="K"===e.qMode?"qSubNodes":"qNodes",o=Vl(r,e);return o&&o[0]?(t.tree=Al(o[0],n.children||(e=>e[i])),t.tree):null};function rc(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map(((e,t)=>t))}(e),r=e.fields(),i=e.fields().filter((e=>"dimension"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),o=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),a={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r="__root",l=!1;for(let e=0;e<i.length;e++){var s;const t=n[i[e]],o="".concat(r,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);a[o]||(a[o]=ml({__id:o,__parent:r,qValues:[]},t),l=!0),r=o}if(l)for(let e=0;e<o.length;e++){const t=n[o[e]];a[r].qValues.push(t)}}const l=Object.keys(a).map((e=>a[e]));return function(){var e,t=jl,n=$l;function r(r){var i,o,a,s,l,c,u,d,f=Array.from(r),h=t,p=n,m=new Map;if(null!=e){const t=f.map(((t,n)=>function(e){let t=(e=`${e}`).length;return Hl(e,t-1)&&!Hl(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(Bl),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(Bl(e)),f.push(Fl));h=(e,n)=>t[n],p=(e,t)=>n[t]}for(a=0,i=f.length;a<i;++a)o=f[a],c=f[a]=new Ll(o),null!=(u=h(o,a,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?zl:c)),null!=(u=p(o,a,r))&&(u+="")&&(c.parent=u);for(a=0;a<i;++a)if(u=(c=f[a]).parent){if(!(l=m.get(u)))throw new Error("missing: "+u);if(l===zl)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(s)throw new Error("multiple roots");s=c}if(!s)throw new Error("no root");if(null!=e){for(;s.data===Fl&&1===s.children.length;)s=s.children[0],--i;for(let e=f.length-1;e>=0&&(c=f[e]).data===Fl;--e)c.data=null}if(s.parent=_l,s.eachBefore((function(e){e.depth=e.parent.depth+1,--i})).eachBefore(Il),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=Pl(e),r):t},r.parentId=function(e){return arguments.length?(n=Pl(e),r):n},r.path=function(t){return arguments.length?(e=Pl(t),r):e},r}().id((e=>e.__id)).parentId((e=>e.__parent))(l)}const ic=e=>{let{propsArr:t,props:n,cube:r,cache:i,itemDepthObject:o,f:a}=e;for(let e=0;e<t.length;e++){const i=n[t[e]],s=i.fields?i.fields:[i];for(let e=0;e<s.length;e++){const t=s[e];if(t.field!==a){const e=Ql(o,Zl(t.field,{cube:r}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function oc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=t.raw(),o=t.key(),a="S"===i.qMode?rc(t):nc(i,n,e);if(!a)return null;const s=a.height,l=[];for(let o=0;o<=s;o++){let a=null;if(o>0)if("S"===i.qMode){let e=Jl(i)[o-1];a=n.fields[e]}else{let e=i.qEffectiveInterColumnSortOrder[o-1];o>i.qEffectiveInterColumnSortOrder.length&&(e=i.qDimensionInfo.length),a=n.fields[e]}const{props:s,main:c}=r.normalizeConfig(ml(ml({},e),{},{field:a?a.key():void 0}),t),u=Object.keys(s);l[o]={propsArr:u,props:s,main:c};const d=a?Zl(a,{cube:i}):{fieldDepth:0};ic({propsArr:u,props:s,cube:i,cache:n,itemDepthObject:d,f:a})}const c=a.copy().descendants(),u=a.descendants();for(let e=0;e<u.length;e++){const t=l[u[e].depth].propsArr,n=l[u[e].depth].props,r=l[u[e].depth].main,i=c[e],a=i.data,s=ec(r,a,{key:o});tc({propsArr:t,props:n,item:i,itemData:a,ret:s,sourceKey:o}),u[e].data=s}return a}function ac(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let a=0;a<i.length;a++)if(void 0!==i[a].field){const s=t.raw(),l=t.key();if(!nc(s,n,e))continue;const c="object"==typeof i[a].field?i[a].field:t.field(i[a].field),{props:u,main:d}=r.normalizeConfig(i[a],t),f=Object.keys(u),h=Zl(c,{cube:s}),{nodeFn:p,attrFn:m,valueFn:g}=Ql({fieldDepth:0},h);ic({propsArr:f,props:u,cube:s,cache:n,itemDepthObject:h,f:c});const y=!!i[a].trackBy,v=typeof i[a].trackBy,b={},x=[],S=p(n.tree),w=[];for(let e=0;e<S.length;e++){const t=S[e],n=m?m(g(t)):g(t);if(d.filter&&!d.filter(n))continue;const o=ec(d,n,{key:l});tc({propsArr:f,props:u,item:t,itemData:n,ret:o,sourceKey:l}),y&&r.track({cfg:i[a],itemData:n,obj:o,target:x,tracker:b,trackType:v}),w.push(o)}const M=y?r.collect(x,{main:d,propsArr:f,props:u}):w;o=[...o,...M]}return o}var sc,lc,cc=(sc=function(e){
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-combo-chart"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var n={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_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","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":"Выключить выбор лассо"}}};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},u=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,n=o.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&o.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||o.call(e,t)},d=function(e,t){s&&"__proto__"===t.name?s(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},f=function(e,t){if("__proto__"===t){if(!o.call(e,t))return;if(l)return l(e,t).value}return e[t]},h=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,h=arguments.length,p=!1;for("boolean"==typeof s&&(p=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<h;++l)if(null!=(t=arguments[l]))for(n in t)r=f(s,n),s!==(i=f(t,n))&&(p&&i&&(u(i)||(o=c(i)))?(o?(o=!1,a=r&&c(r)?r:[]):a=r&&u(r)?r:{},d(s,{name:n,newValue:e(p,a,i)})):void 0!==i&&d(s,{name:n,newValue:i}));return s},p=r(h);const m=[["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}]],g={};m.forEach((([e,{width:t,height:n}])=>{g[e]={width:t,height:n}}));const y={getLayoutModes:()=>g,getLayoutMode(e,t){let n;for(n=0;n<m.length;++n)if(e>=m[n][1].width&&t>=m[n][1].height)return m[n][0];return"SPARK"}};const v=["$date","$timestamp","$time"],b=["D","TS","T"],x={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>v.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&b.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(x.hasTimeTag(t)&&x.hasUnknownFormat(t)||x.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&x.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&x.canBeContinuousDimension(r[0])},maxNumberOfLines:12},S=/^[A-Z][A-z0-9_]*$/i,w={getChar(e){let t=e,n=-1;return t>9?(n=65+t-10,n>90&&(n+=6)):t=`${t}`.charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?this.getChar(t+1):String.fromCharCode(n)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}},M={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),i=r[r.length-1];let o,a=e;for(o=0;o<r.length-1;++o)void 0===a[r[o]]&&(a[r[o]]=Number.isNaN(+r[o+1])?{}:[]),a=a[r[o]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(void 0===o[r[i]])return n;o=o[r[i]]}return o},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||S.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>w.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},k=e=>M.getValue(e,"qHyperCube.qDimensionInfo",[]),E=e=>M.getValue(e,"qHyperCube.qMeasureInfo",[]),C=e=>M.getValue(e,"barGrouping.grouping"),O={continuous:(e,t=!1)=>!!x.canBeContinuous(e)&&(M.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!k(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===C(e)&&(k(e).length>1||E(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&k(e).length>1&&1===E(e).length},groupedByMeasure(e){return this.grouped(e)&&1===k(e).length&&E(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==C(e)&&"butterfly"!==C(e)||this.continuous(e))&&(k(e).length>1||E(e).length>1)},stackedByDimension(e){return this.stacked(e)&&k(e).length>1&&1===E(e).length},stackedByMeasure(e){return this.stacked(e)&&1===k(e).length&&E(e).length>1},simple:e=>0===k(e).length||1===k(e).length&&1===E(e).length,snapshot:e=>!!M.getValue(e,"snapshotData")};function N(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const T=e=>{throw e.isHandled=!0,e};const A={getDockValue:e=>"near"===e||"left"===e||"top"===e?0:1,getOppositeDock(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";case"near":default:return"far";case"far":return"near"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?A.getVerticalDock(t):n?A.getOppositeDock(A.getHorizontalDock(t)):A.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment:(e,t)=>"vertical"===e?"near"===t||"bottom"===t?1:0:"near"===t||"left"===t?0:1,getMeasureScaleInvert:(e,t)=>"vertical"===e||t,getDimensionScaleInvert:(e,t)=>"horizontal"===e&&t,getSize:(e,{width:t,height:n})=>"vertical"===e?t:n},R=166/26,q=12/11,D={stringWidthOverMWidth:e=>(12*Math.min(e,3)+Math.max(e-3,0)*R)/11,getCharacterRatios(e){if(!e)return{latin:0,cjk:0};let t=e.match(/[\u4E00-\u9FFF]/g),n=e.match(/[\u3040-\u309F]/g),r=e.match(/[\u30A0-\u30FF]/g);t=t?t.length:0,n=n?n.length:0,r=r?r.length:0;const i=t+n+r;return{latin:e.length-i,cjk:i}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let i;void 0===t?e.forEach((e=>{i=D.getCharacterRatios(e[n]),r.latin+=i.latin,r.cjk+=i.cjk})):e.forEach((e=>{i=D.getCharacterRatios(e[t][n]),r.latin+=i.latin,r.cjk+=i.cjk}));const o=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/o,r.cjkRatio=r.cjk/o,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const i=D.getTotalCharacterRatios(t,n,r),o=i.latinRatio*e,a=i.cjkRatio*e;return Math.ceil(D.stringWidthOverMWidth(o)+a*q)}},I=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),L=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),P=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),_={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>I.test(e),isRtlChar:e=>L.test(e)||P.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],_.isLtrChar(r))return"ltr";if(_.isRtlChar(r))return"rtl"}return"ltr"}},z={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,i=e.resources.formatter,o=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=i("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=o(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?z.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=_.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},colspan:2},{}]},getDescriptionRow(e,t){const n=_.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},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:_.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=_.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=_.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,z.getColorSymbol(e,t)]:[z.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:o,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,i=!1){const o=_.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=_.detectTextDirection(e.value);let l;return l=i?r?[e.value,z.getColorSymbol(t,n)]:[z.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:o}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function F(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function j(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function $(){}var B=.7,H=1/B,V="\\s*([+-]?\\d+)\\s*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",W="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Y=/^#([0-9a-f]{3,8})$/,G=new RegExp(`^rgb\\(${V},${V},${V}\\)$`),K=new RegExp(`^rgb\\(${W},${W},${W}\\)$`),X=new RegExp(`^rgba\\(${V},${V},${V},${U}\\)$`),J=new RegExp(`^rgba\\(${W},${W},${W},${U}\\)$`),Z=new RegExp(`^hsl\\(${U},${W},${W}\\)$`),Q=new RegExp(`^hsla\\(${U},${W},${W},${U}\\)$`),ee={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 te(){return this.rgb().formatHex()}function ne(){return this.rgb().formatRgb()}function re(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Y.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ie(t):3===n?new le(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?oe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?oe(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=G.exec(e))?new le(t[1],t[2],t[3],1):(t=K.exec(e))?new le(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=X.exec(e))?oe(t[1],t[2],t[3],t[4]):(t=J.exec(e))?oe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Z.exec(e))?pe(t[1],t[2]/100,t[3]/100,1):(t=Q.exec(e))?pe(t[1],t[2]/100,t[3]/100,t[4]):ee.hasOwnProperty(e)?ie(ee[e]):"transparent"===e?new le(NaN,NaN,NaN,0):null}function ie(e){return new le(e>>16&255,e>>8&255,255&e,1)}function oe(e,t,n,r){return r<=0&&(e=t=n=NaN),new le(e,t,n,r)}function ae(e){return e instanceof $||(e=re(e)),e?new le((e=e.rgb()).r,e.g,e.b,e.opacity):new le}function se(e,t,n,r){return 1===arguments.length?ae(e):new le(e,t,n,null==r?1:r)}function le(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ce(){return`#${he(this.r)}${he(this.g)}${he(this.b)}`}function ue(){const e=de(this.opacity);return`${1===e?"rgb(":"rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${1===e?")":`, ${e})`}`}function de(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function he(e){return((e=fe(e))<16?"0":"")+e.toString(16)}function pe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ge(e,t,n,r)}function me(e){if(e instanceof ge)return new ge(e.h,e.s,e.l,e.opacity);if(e instanceof $||(e=re(e)),!e)return new ge;if(e instanceof ge)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ge(a,s,l,e.opacity)}function ge(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ye(e){return(e=(e||0)%360)<0?e+360:e}function ve(e){return Math.max(0,Math.min(1,e||0))}function be(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}F($,re,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:te,formatHex:te,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return me(this).formatHsl()},formatRgb:ne,toString:ne}),F(le,se,j($,{brighter(e){return e=null==e?H:Math.pow(H,e),new le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?B:Math.pow(B,e),new le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new le(fe(this.r),fe(this.g),fe(this.b),de(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:ce,formatHex:ce,formatHex8:function(){return`#${he(this.r)}${he(this.g)}${he(this.b)}${he(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ue,toString:ue})),F(ge,(function(e,t,n,r){return 1===arguments.length?me(e):new ge(e,t,n,null==r?1:r)}),j($,{brighter(e){return e=null==e?H:Math.pow(H,e),new ge(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?B:Math.pow(B,e),new ge(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new le(be(e>=240?e-240:e+120,i,r),be(e,i,r),be(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ge(ye(this.h),ve(this.s),ve(this.l),de(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=de(this.opacity);return`${1===e?"hsl(":"hsla("}${ye(this.h)}, ${100*ve(this.s)}%, ${100*ve(this.l)}%${1===e?")":`, ${e})`}`}}));const xe=Math.PI/180,Se=180/Math.PI,we=.96422,Me=.82521,ke=4/29,Ee=6/29,Ce=3*Ee*Ee,Oe=Ee*Ee*Ee;function Ne(e){if(e instanceof Te)return new Te(e.l,e.a,e.b,e.opacity);if(e instanceof Le)return Pe(e);e instanceof le||(e=ae(e));var t,n,r=De(e.r),i=De(e.g),o=De(e.b),a=Ae((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Ae((.4360747*r+.3850649*i+.1430804*o)/we),n=Ae((.0139322*r+.0971045*i+.7141733*o)/Me)),new Te(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Te(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ae(e){return e>Oe?Math.pow(e,1/3):e/Ce+ke}function Re(e){return e>Ee?e*e*e:Ce*(e-ke)}function qe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function De(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ie(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Le)return new Le(e.h,e.c,e.l,e.opacity);if(e instanceof Te||(e=Ne(e)),0===e.a&&0===e.b)return new Le(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Se;return new Le(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Le(e,t,n,null==r?1:r)}function Le(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Pe(e){if(isNaN(e.h))return new Te(e.l,0,0,e.opacity);var t=e.h*xe;return new Te(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}F(Te,(function(e,t,n,r){return 1===arguments.length?Ne(e):new Te(e,t,n,null==r?1:r)}),j($,{brighter(e){return new Te(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Te(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 le(qe(3.1338561*(t=we*Re(t))-1.6168667*(e=1*Re(e))-.4906146*(n=Me*Re(n))),qe(-.9787684*t+1.9161415*e+.033454*n),qe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),F(Le,Ie,j($,{brighter(e){return new Le(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Le(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Pe(this).rgb()}}));var _e={isDark:function(e){return Ie(e).l<70}};function ze(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Fe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function je(e){return 1===e.length&&(e=function(e){return function(t,n){return Fe(e(t),n)}}(e)),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var $e=je(Fe).right,Be=Math.sqrt(50),He=Math.sqrt(10),Ve=Math.sqrt(2);function Ue(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Be?10:o>=He?5:o>=Ve?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Be?10:o>=He?5:o>=Ve?2:1)}function We(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Be?i*=10:o>=He?i*=5:o>=Ve&&(i*=2),t<e?-i:i}function Ye(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Ge="$";function Ke(){}function Xe(e,t){var n=new Ke;if(e instanceof Ke)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Je(){}Ke.prototype=Xe.prototype={constructor:Ke,has:function(e){return Ge+e in this},get:function(e){return this[Ge+e]},set:function(e,t){return this[Ge+e]=t,this},remove:function(e){var t=Ge+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Ge&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Ge&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Ge&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Ge&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Ge&&++e;return e},empty:function(){for(var e in this)if(e[0]===Ge)return!1;return!0},each:function(e){for(var t in this)t[0]===Ge&&e(this[t],t.slice(1),this)}};var Ze=Xe.prototype;Je.prototype={constructor:Je,has:Ze.has,add:function(e){return this[Ge+(e+="")]=e,this},remove:Ze.remove,clear:Ze.clear,values:Ze.keys,size:Ze.size,empty:Ze.empty,each:Ze.each};var Qe=Array.prototype,et=Qe.map,tt=Qe.slice;function nt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function rt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function it(){}var ot=.7,at=1/ot,st="\\s*([+-]?\\d+)\\s*",lt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ct="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ut=/^#([0-9a-f]{3,8})$/,dt=new RegExp("^rgb\\("+[st,st,st]+"\\)$"),ft=new RegExp("^rgb\\("+[ct,ct,ct]+"\\)$"),ht=new RegExp("^rgba\\("+[st,st,st,lt]+"\\)$"),pt=new RegExp("^rgba\\("+[ct,ct,ct,lt]+"\\)$"),mt=new RegExp("^hsl\\("+[lt,ct,ct]+"\\)$"),gt=new RegExp("^hsla\\("+[lt,ct,ct,lt]+"\\)$"),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 vt(){return this.rgb().formatHex()}function bt(){return this.rgb().formatRgb()}function xt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ut.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?St(t):3===n?new kt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?wt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?wt(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=dt.exec(e))?new kt(t[1],t[2],t[3],1):(t=ft.exec(e))?new kt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ht.exec(e))?wt(t[1],t[2],t[3],t[4]):(t=pt.exec(e))?wt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=mt.exec(e))?Nt(t[1],t[2]/100,t[3]/100,1):(t=gt.exec(e))?Nt(t[1],t[2]/100,t[3]/100,t[4]):yt.hasOwnProperty(e)?St(yt[e]):"transparent"===e?new kt(NaN,NaN,NaN,0):null}function St(e){return new kt(e>>16&255,e>>8&255,255&e,1)}function wt(e,t,n,r){return r<=0&&(e=t=n=NaN),new kt(e,t,n,r)}function Mt(e,t,n,r){return 1===arguments.length?function(e){return e instanceof it||(e=xt(e)),e?new kt((e=e.rgb()).r,e.g,e.b,e.opacity):new kt}(e):new kt(e,t,n,null==r?1:r)}function kt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Et(){return"#"+Ot(this.r)+Ot(this.g)+Ot(this.b)}function Ct(){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+")")}function Ot(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Nt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new At(e,t,n,r)}function Tt(e){if(e instanceof At)return new At(e.h,e.s,e.l,e.opacity);if(e instanceof it||(e=xt(e)),!e)return new At;if(e instanceof At)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new At(a,s,l,e.opacity)}function At(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Rt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function qt(e){return function(){return e}}function Dt(e){return 1==(e=+e)?It: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):qt(isNaN(t)?n:t)}}function It(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):qt(isNaN(e)?t:e)}nt(it,xt,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:vt,formatHex:vt,formatHsl:function(){return Tt(this).formatHsl()},formatRgb:bt,toString:bt}),nt(kt,Mt,rt(it,{brighter:function(e){return e=null==e?at:Math.pow(at,e),new kt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?ot:Math.pow(ot,e),new kt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:Et,formatHex:Et,formatRgb:Ct,toString:Ct})),nt(At,(function(e,t,n,r){return 1===arguments.length?Tt(e):new At(e,t,n,null==r?1:r)}),rt(it,{brighter:function(e){return e=null==e?at:Math.pow(at,e),new At(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ot:Math.pow(ot,e),new At(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new kt(Rt(e>=240?e-240:e+120,i,r),Rt(e,i,r),Rt(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Lt=function e(t){var n=Dt(t);function r(e,t){var r=n((e=Mt(e)).r,(t=Mt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=It(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Pt(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function _t(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Vt(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function zt(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ft(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function jt(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Vt(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var $t=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bt=new RegExp($t.source,"g");function Ht(e,t){var n,r,i,o=$t.lastIndex=Bt.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=$t.exec(e))&&(r=Bt.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Ft(n,r)})),o=Bt.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Vt(e,t){var n,r=typeof t;return null==t||"boolean"===r?qt(t):("number"===r?Ft:"string"===r?(n=xt(t))?(t=n,Lt):Ht:t instanceof xt?Lt:t instanceof Date?zt:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Pt:Array.isArray(t)?_t:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?jt:Ft)(e,t)}function Ut(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Wt(e){return+e}var Yt=[0,1];function Gt(e){return e}function Kt(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Xt(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Jt(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Kt(i,r),o=n(a,o)):(r=Kt(r,i),o=n(o,a)),function(e){return o(r(e))}}function Zt(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Kt(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=$e(e,t,1,r)-1;return o[n](i[n](t))}}function Qt(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function en(e,t){return function(){var e,t,n,r,i,o,a=Yt,s=Yt,l=Vt,c=Gt;function u(){return r=Math.min(a.length,s.length)>2?Zt:Jt,i=o=null,d}function d(t){return isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),Ft)))(n)))},d.domain=function(e){return arguments.length?(a=et.call(e,Wt),c===Gt||(c=Xt(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=tt.call(e),u()):s.slice()},d.rangeRound=function(e){return s=tt.call(e),l=Ut,u()},d.clamp=function(e){return arguments.length?(c=e?Xt(a):Gt,d):c!==Gt},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function tn(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)]}function nn(e){return(e=tn(Math.abs(e)))?e[1]:NaN}var rn,on=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function an(e){if(!(t=on.exec(e)))throw new Error("invalid format: "+e);var t;return new sn({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function sn(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ln(e,t){var n=tn(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}an.prototype=sn.prototype,sn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var cn={"%":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.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):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 ln(100*e,t)},r:ln,s:function(e,t){var n=tn(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(rn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+tn(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function un(e){return e}var dn,fn,hn,pn=Array.prototype.map,mn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gn(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?un:(t=pn.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=e.decimal+"",s=void 0===e.numerals?un:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(pn.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=an(e)).fill,n=e.align,d=e.sign,f=e.symbol,h=e.zero,p=e.width,m=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(m=!0,v="g"):cn[v]||(void 0===g&&(g=12),y=!0,v="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===f?o:/[%p]/.test(v)?l:"",S=cn[v],w=/[defgprs%]/.test(v);function M(e){var i,o,l,f=b,M=x;if("c"===v)M=S(e)+M,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:S(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==d&&(k=!1),f=(k?"("===d?d:c:"-"===d||"("===d?"":d)+f,M=("s"===v?mn[8+rn/3]:"")+M+(k&&"("===d?")":""),w)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){M=(46===l?a+e.slice(i+1):e.slice(i))+M,e=e.slice(0,i);break}}m&&!h&&(e=r(e,1/0));var E=f.length+e.length+M.length,C=E<p?new Array(p-E+1).join(t):"";switch(m&&h&&(e=r(C+e,C.length?p-M.length:1/0),C=""),n){case"<":e=f+e+M+C;break;case"=":e=f+C+e+M;break;case"^":e=C.slice(0,E=C.length>>1)+f+e+M+C.slice(E);break;default:e=C+f+e+M}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return e+""},M}return{format:d,formatPrefix:function(e,t){var n=d(((e=an(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(nn(t)/3))),i=Math.pow(10,-r),o=mn[8+r/3];return function(e){return n(i*e)+o}}}}function yn(e,t,n,r){var i,o=We(e,t,n);switch((r=an(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(nn(t)/3)))-nn(Math.abs(e)))}(o,a))||(r.precision=i),hn(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,nn(t)-nn(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-nn(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return fn(r)}function vn(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=Ue(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return yn(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=Ue(s,l,n))>0?r=Ue(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Ue(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function bn(){var e=en(Gt,Gt);return e.copy=function(){return Qt(e,bn())},Ye.apply(e,arguments),vn(e)}!function(e){dn=gn(e),fn=dn.format,hn=dn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var xn=new Date,Sn=new Date;function wn(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return wn((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return xn.setTime(+t),Sn.setTime(+r),e(xn),e(Sn),Math.floor(n(xn,Sn))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Mn=wn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Mn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?wn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Mn:null},Mn.range;var kn=6e4,En=36e5,Cn=864e5,On=6048e5,Nn=wn((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));Nn.range;var Tn=wn((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kn)/Cn}),(function(e){return e.getDate()-1}));function An(e){return wn((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kn)/On}))}Tn.range;var Rn=An(0),qn=An(1),Dn=An(2),In=An(3),Ln=An(4),Pn=An(5),_n=An(6);Rn.range,qn.range,Dn.range,In.range,Ln.range,Pn.range,_n.range;var zn=wn((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));zn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?wn((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},zn.range;var Fn=wn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*kn)}),(function(e,t){return(t-e)/kn}),(function(e){return e.getUTCMinutes()}));Fn.range;var jn=wn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*En)}),(function(e,t){return(t-e)/En}),(function(e){return e.getUTCHours()}));jn.range;var $n=wn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Cn}),(function(e){return e.getUTCDate()-1}));function Bn(e){return wn((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/On}))}$n.range;var Hn=Bn(0),Vn=Bn(1),Un=Bn(2),Wn=Bn(3),Yn=Bn(4),Gn=Bn(5),Kn=Bn(6);Hn.range,Vn.range,Un.range,Wn.range,Yn.range,Gn.range,Kn.range;var Xn=wn((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));Xn.range;var Jn=wn((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function Zn(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 Qn(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 er(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}Jn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?wn((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},Jn.range;var tr,nr,rr={"-":"",_:" ",0:"0"},ir=/^\s*\d+/,or=/^%/,ar=/[\\^$*+?|[\]().{}]/g;function sr(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function lr(e){return e.replace(ar,"\\$&")}function cr(e){return new RegExp("^(?:"+e.map(lr).join("|")+")","i")}function ur(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function dr(e,t,n){var r=ir.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function fr(e,t,n){var r=ir.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function hr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function pr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function mr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function gr(e,t,n){var r=ir.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function yr(e,t,n){var r=ir.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 br(e,t,n){var r=ir.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function xr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Sr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function wr(e,t,n){var r=ir.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Mr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function kr(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Er(e,t,n){var r=ir.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Cr(e,t,n){var r=ir.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=ir.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nr(e,t,n){var r=or.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Tr(e,t,n){var r=ir.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ar(e,t,n){var r=ir.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Rr(e,t){return sr(e.getDate(),t,2)}function qr(e,t){return sr(e.getHours(),t,2)}function Dr(e,t){return sr(e.getHours()%12||12,t,2)}function Ir(e,t){return sr(1+Tn.count(zn(e),e),t,3)}function Lr(e,t){return sr(e.getMilliseconds(),t,3)}function Pr(e,t){return Lr(e,t)+"000"}function _r(e,t){return sr(e.getMonth()+1,t,2)}function zr(e,t){return sr(e.getMinutes(),t,2)}function Fr(e,t){return sr(e.getSeconds(),t,2)}function jr(e){var t=e.getDay();return 0===t?7:t}function $r(e,t){return sr(Rn.count(zn(e)-1,e),t,2)}function Br(e){var t=e.getDay();return t>=4||0===t?Ln(e):Ln.ceil(e)}function Hr(e,t){return e=Br(e),sr(Ln.count(zn(e),e)+(4===zn(e).getDay()),t,2)}function Vr(e){return e.getDay()}function Ur(e,t){return sr(qn.count(zn(e)-1,e),t,2)}function Wr(e,t){return sr(e.getFullYear()%100,t,2)}function Yr(e,t){return sr((e=Br(e)).getFullYear()%100,t,2)}function Gr(e,t){return sr(e.getFullYear()%1e4,t,4)}function Kr(e,t){var n=e.getDay();return sr((e=n>=4||0===n?Ln(e):Ln.ceil(e)).getFullYear()%1e4,t,4)}function Xr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+sr(t/60|0,"0",2)+sr(t%60,"0",2)}function Jr(e,t){return sr(e.getUTCDate(),t,2)}function Zr(e,t){return sr(e.getUTCHours(),t,2)}function Qr(e,t){return sr(e.getUTCHours()%12||12,t,2)}function ei(e,t){return sr(1+$n.count(Jn(e),e),t,3)}function ti(e,t){return sr(e.getUTCMilliseconds(),t,3)}function ni(e,t){return ti(e,t)+"000"}function ri(e,t){return sr(e.getUTCMonth()+1,t,2)}function ii(e,t){return sr(e.getUTCMinutes(),t,2)}function oi(e,t){return sr(e.getUTCSeconds(),t,2)}function ai(e){var t=e.getUTCDay();return 0===t?7:t}function si(e,t){return sr(Hn.count(Jn(e)-1,e),t,2)}function li(e){var t=e.getUTCDay();return t>=4||0===t?Yn(e):Yn.ceil(e)}function ci(e,t){return e=li(e),sr(Yn.count(Jn(e),e)+(4===Jn(e).getUTCDay()),t,2)}function ui(e){return e.getUTCDay()}function di(e,t){return sr(Vn.count(Jn(e)-1,e),t,2)}function fi(e,t){return sr(e.getUTCFullYear()%100,t,2)}function hi(e,t){return sr((e=li(e)).getUTCFullYear()%100,t,2)}function pi(e,t){return sr(e.getUTCFullYear()%1e4,t,4)}function mi(e,t){var n=e.getUTCDay();return sr((e=n>=4||0===n?Yn(e):Yn.ceil(e)).getUTCFullYear()%1e4,t,4)}function gi(){return"+0000"}function yi(){return"%"}function vi(e){return+e}function bi(e){return Math.floor(+e/1e3)}!function(e){tr=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=cr(i),u=ur(i),d=cr(o),f=ur(o),h=cr(a),p=ur(a),m=cr(s),g=ur(s),y=cr(l),v=ur(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Rr,e:Rr,f:Pr,g:Yr,G:Kr,H:qr,I:Dr,j:Ir,L:Lr,m:_r,M:zr,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:vi,s:bi,S:Fr,u:jr,U:$r,V:Hr,w:Vr,W:Ur,x:null,X:null,y:Wr,Y:Gr,Z:Xr,"%":yi},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Jr,e:Jr,f:ni,g:hi,G:mi,H:Zr,I:Qr,j:ei,L:ti,m:ri,M:ii,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:vi,s:bi,S:oi,u:ai,U:si,V:ci,w:ui,W:di,x:null,X:null,y:fi,Y:pi,Z:gi,"%":yi},S={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:Sr,e:Sr,f:Or,g:yr,G:gr,H:Mr,I:Mr,j:wr,L:Cr,m:xr,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:br,Q:Tr,s:Ar,S:Er,u:fr,U:hr,V:pr,w:dr,W:mr,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:yr,Y:gr,Z:vr,"%":Nr};function w(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=rr[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function M(e,t){return function(n){var r,i,o=er(1900,void 0,1);if(k(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Qn(er(o.y,0,1))).getUTCDay(),r=i>4||0===i?Vn.ceil(r):Vn(r),r=$n.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Zn(er(o.y,0,1))).getDay(),r=i>4||0===i?qn.ceil(r):qn(r),r=Tn.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Qn(er(o.y,0,1)).getUTCDay():Zn(er(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Qn(o)):Zn(o)}}function k(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=S[i in rr?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=M(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=M(e+="",!0);return t.toString=function(){return e},t}}}(e),tr.format,tr.parse,nr=tr.utcFormat,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 xi=1e3,Si=6e4,wi=36e5,Mi=864e5,ki=2592e6,Ei=31536e6;function Ci(e){return new Date(e)}function Oi(e){return e instanceof Date?+e:+new Date(+e)}function Ni(e,t,n,r,i,o,a,s,l){var c=en(Gt,Gt),u=c.invert,d=c.domain,f=l(".%L"),h=l(":%S"),p=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,xi],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,Si],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,wi],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Mi],[r,2,1728e5],[n,1,6048e5],[t,1,ki],[t,3,7776e6],[e,1,Ei]];function S(s){return(a(s)<s?f:o(s)<s?h:i(s)<s?p:r(s)<s?m:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function w(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=je((function(e){return e[2]})).right(x,o);a===x.length?(i=We(n/Ei,r/Ei,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(We(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(et.call(e,Oi)):d().map(Ci)},c.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=w(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?S:l(t)},c.nice=function(e,t){var n=d();return(e=w(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):c},c.copy=function(){return Qt(c,Ni(e,t,n,r,i,o,a,s,l))},c}function Ti(){return Ye.apply(Ni(Jn,Xn,Hn,$n,jn,Fn,Nn,Mn,nr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Ai={horizontal:{major:"width",minor:"height",start:"left",end:"right",shadow:{startOffset:"12px 0",endOffset:"-12px 0"}},vertical:{major:"height",minor:"width",start:"top",end:"bottom",shadow:{startOffset:"0 12px",endOffset:"0 -12px"}}},Ri=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var qi={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[i,o]=t(),a=Math.abs(i)<1e-15,s=Math.abs(o-1)<1e-15,l=(e=>{const t=Ai[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Ri(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Ri(t.shadow.endOffset)}}})(n),c="horizontal"===n&&r,u=[];return a||u.push(e("div",{style:{...l.base,...c?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||u.push(e("div",{style:{...l.base,...c?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),u}};function Di({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:i}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:i,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let Ii;function Li(){Ii=Ii||document.createElement("canvas").getContext("2d")}const Pi={measureTextWidth(e){Li();const{width:t}=Ii.measureText(e);return t},lineWrap(e,t,n,r){let i,o;Li();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,f=e?e.split(/\s+/):[],h=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(Ii.font=n),o=0;o<a.length;o++){for(d=a[o]||"",f=d.split(/\s+/),[h]=f,u="",i=1;i<f.length;i++)if(l=`${h} ${f[i]}`,c=Pi.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(h),h=f[i]):h=l,"number"==typeof r&&s.length>=r){u=f.slice(i+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(h):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${h} ${u}`}return s},wordWrap(e,t,n,r,i){if(Li(),!e||!e.length)return[];n&&(Ii.font=n);let o=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c&&(c.length<=1||Pi.measureTextWidth(c)<=t?o.push(c):(s=Pi.splitWord(c,t,void 0,r-o.length),s.length<=1?o.push(s[0]):(l=s.pop(),o=o.concat(s),a[u+1]?Pi.measureTextWidth(`${l} ${a[u+1]}`)>t&&o.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return o.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),o.length>r?(o=o.splice(0,r),o[o.length-1]=Pi.truncate(o[o.length-1],t,n,i).text):(c=o[o.length-1],c&&c.length>1&&Pi.measureTextWidth(c)>t&&(o[o.length-1]=Pi.truncate(c,t,n,i).text)),o},truncate(e,t,n,r="…"){Li();let i,o,a,s,l=e;const c=Pi.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Ii.font=n),e&&t){if(Pi.measureTextWidth(l)>t){for(i=Math.min(u,l.length);i>0;i--)if(o=l.substring(0,i-1),a=o.trim()+r,Pi.measureTextWidth(a)<=t){s=l.substring(i-1),l=a;break}i||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,n,r){let i;Li();let o,a=e,s="",l=[];if(Pi.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(i=Math.min(e.length,c);i>0&&(a=e.substring(0,i),o=e.substring(i-1,i)," "===o?a=e.substring(0,i-1):a+="-",s=e.substring(i),!(Pi.measureTextWidth(a)<=t));i--);return(!i&&!a||Pi.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Pi.measureTextWidth(s)>t?(s=Pi.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Li(),e&&t?(n&&(Ii.font=n),Pi.explodeWord(e,t,r,Math.max(1,Pi.measureTextWidth("i")))):[]),wrapText(e,t,n,r,i){let o;return Number.isNaN(t)?[e]:(o=r>1?Pi.lineWrap(e,t,n,r):[e],o=Pi.wordWrap(o,t,n,r,i),o)},getFontHeight:e=>(Li(),e&&(Ii.font=e),1.5*Pi.measureTextWidth("m")),tokenize(e,t,n,r,i,o,a=1){Li(),t&&(Ii.font=t);const s=Pi.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(o<s)return[];const f=o?Math.max(1,Math.floor(o/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{u+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{c.push(Number.isNaN(e)||e<=0?f-u:e)}))):c=[Number.isNaN(r)||r<=0?f:Math.min(f,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<f&&(d=d.concat(Pi.wrapText(e,i,t,c[n])))})):d=Pi.wrapText(e,i,t,c[0],n),d}},_i={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(p({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},zi=p.bind(null,!0),Fi={},{isArray:ji}=Array;function $i(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Bi(e){return void 0===e}function Hi(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Vi(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,i)=>{if(i===n.length)return;r=+t;const o=isNaN(r)?{}:[];e[r||t]=Bi(e[r||t])?o:e[t],e=e[r||t]})),e}function Ui(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function Wi(e,t,n){let r=!0;if($i(e)&&$i(t))return Ui(e,n)===Ui(t,n)&&(Object.keys(e).forEach((i=>{Wi(e[i],t[i],n)||(r=!1)})),r);if(ji(e)&&ji(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r+=1)if(!Wi(e[r],t[r],n))return!1;return!0}return e===t}Fi.compare=Wi,Fi.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?zi({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;Wi(o,a)||Hi(t,i)||(Bi(a)?r.push({op:"add",path:s,value:o}):$i(o)&&$i(a)?r=r.concat(Fi.generate(a,o,s)):ji(o)&&ji(a)?r=r.concat(function(e,t,n){let r=[];const i=e.slice();let o=-1;function a(e,t,n){if(e[n]&&Bi(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(Wi(t,i))return r;if(!Bi(t[0])&&Bi(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=i.length-1;e>=0;e-=1)o=a(t,i[e].qInfo&&i[e].qInfo.qId,e),-1===o?(r.push({op:"remove",path:`${n}/${e}`}),i.splice(e,1)):r=r.concat(Fi.generate(i[e],t[o],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)o=a(i,t[e].qInfo&&t[e].qInfo.qId),-1===o?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),i.splice(e,0,t[e])):o!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${o}`}),i.splice(e,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:`${n}/${i}`,value:o}))})),Object.keys(e).forEach((i=>{Bi(t[i])&&!Hi(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},Fi.apply=function(e,t){t.forEach((t=>{let n=Vi(e,t.path),r=t.path.split("/").splice(-1)[0],i=r&&isNaN(+r)?n[r]:n[+r]||n;const o=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(ji(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(ji(i)&&ji(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if($i(i)&&$i(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Hi(a,e)&&delete a[e]})),zi(i,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const i=Vi(e,t.from);ji(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(ji(n)?n.splice(+r,1):delete n[r]);var a}))},Fi.clone=function(e){return zi({},e)},Fi.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},Fi.updateObject=function(e,t){Object.keys(e).length?Fi.apply(e,Fi.generate(e,t)):zi(e,t)};const Yi=[[2,4,6],[2,4],[3]],Gi=[,[,,[[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 Ki(e,t,n){const r=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[r-1])),e.splice(0,0,o)}function Xi(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)Ki(e[r],t,n)}!function(){let e,t;for(Xi(Yi,1,10),e=0;e<Gi.length;e++)if(Gi[e])for(t=0;t<Gi[e].length;t++)Array.isArray(Gi[e][t])&&Xi(Gi[e][t])}();const Ji={isInside(e,t,n,r){if(!r)return!0;const i=e.position-e.radius,o=e.position+e.radius;return i>=t&&o<=n},getCenterDistance:(e,t)=>Math.abs(e.center-t.center),getGap(e,t){const n=e.position<t.position?e:t,r=e.position<t.position?t:e;return r.position-r.radius-(n.position+n.radius)},findSegmentPositionMeetMax(e,t){const n=Math.max(0,e.max-t);return e.center-n},findSegmentPositionMeetMin(e,t){const n=Math.max(0,t-e.min);return e.center+n},findSegmentPositionMeetMinThenMax(e,t,n){const r=Ji.findSegmentPositionMeetMin(e,t);return Ji.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=Ji.findSegmentPositionMeetMax(e,n);return Ji.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const i=e.length-1;let o,a,s=t;for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.position=Ji.findSegmentPositionMeetMaxThenMin(o,s,(o.center+a.center-r)/2),s=o.position+o.radius+r/2;a.position=Ji.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const i=e.length-1;let o,a,s;const l=Math.max(0,e[i].position+e[i].radius-n);if(0===l)return;let c,u=0;for(o=i;o>0&&(a=e[o],s=e[o-1],c=Math.max(0,Ji.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));o--);for(u<l&&(c=Math.max(0,s.position-s.radius-t),c-=Math.max(0,u+c-l),u+=c,s.move=c),u=0,o=0;o<=i;o++)a=e[o],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const i=e.length-1;if(!(i<0))if(0!==i)Ji.layoutPositionFromMin(e,t,n,r),Ji.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=Ji.findSegmentPositionMeetMaxThenMin(r,t,n)}}},Zi=(e,t,n,r=1)=>{const i=e.bandwidth();return n?"start"===t?i:"end"===t?i*(1-r):i*(2-r)/2:"start"===t?0:"end"===t?i*r:i*r/2},Qi=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,eo=e=>e.filter(Qi),to=(e,t)=>eo(M.getValue(e,t,[])),no=e=>Qi(e)&&(!1!==e.showValue||!1!==e.showLabel),ro=e=>e.filter(no),io=(e,t)=>ro(M.getValue(e,t,[])),oo=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,ao=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},so=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},lo=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+i},co=({value:e,qMin:t})=>"NaN"!==t&&e<t,uo=({value:e,qMax:t})=>"NaN"!==t&&e>t,fo={isRefLineVisible:Qi,getVisibleRefLines:eo,getRefLines:to,getMeasureRefLines:e=>to(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:to(e,"refLine.dimRefLines"),isRefLineLabelVisible:no,getVisibleRefLineLabels:ro,getRefLineLabels:io,getMeasureRefLineLabels:e=>io(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:io(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:i,invert:o=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=Zi(s,i,o,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=Zi(s,i,o,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:i})=>{const o=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-o*(s-i)}})({pxScale:s,value:n,innerValues:e,invert:o,minOrder:a})),(void 0===c?s(n):c)+l}return l=Zi(s,i,o),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:i}=r.meta,o={},a=M.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():M.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=M.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),f=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+f,r=t[d];o[r]||(o[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})():i?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],i=t+f,a=n[d];o[a]?(o[a].minOrder=Math.min(o[a].minOrder,i),o[a].maxOrder=Math.max(o[a].maxOrder,i),o[a].innerValues[o[a].innerValues.length]={id:r.qElemNumber,order:i}):o[a]={id:n.qElemNumber,qText:n.qText,minOrder:i,maxOrder:i,innerValues:[{id:r.qElemNumber,order:i}],dataNode:u[t]},0===t?0===i&&(o[a].isMinOrderOk=!0):a!==e&&(o[a].isMinOrderOk=!0,o[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+f,r=t[d];o[r]||(o[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})(),o},getInputValue:oo,extractInfoFromInputValue:ao,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=oo({refLineLayout:e,layoutService:n});return ao(r,t,"id")},isDiscreteMinOutOfBounds:so,isDiscreteMaxOutOfBounds:lo,isContinuousMinOutOfBounds:co,isContinuousMaxOutOfBounds:uo,isOutOfRange:({value:e,qMin:t,qMax:n})=>co({value:e,qMin:t})||uo({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&lo({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&so({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},ho=({label:e,labelStyle:t})=>[(null==e?void 0:e.fontStyle)||(null==t?void 0:t.fontStyle),(null==e?void 0:e.fontWeight)||(null==t?void 0:t.fontWeight),(null==e?void 0:e.fontSize)||(null==t?void 0:t.fontSize),(null==e?void 0:e.fontFamily)||(null==t?void 0:t.fontFamily)].filter((e=>!!e)).join(" ");function po(e){return e.showValue?`… ${e.valueString}`:"…"}function mo(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=ho({label:i,labelStyle:t});i.lines=Pi.tokenize(i.title,o,po(i),3,n),i.maxNumLines=i.lines.length}}function go({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=Pi.tokenize(e,t,n,r,i),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n${o[e]}`}return s}function yo({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=e.map((e=>go({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:i}))),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n\n${o[e]}`}return s}function vo(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const bo=3,xo=2;function So({inputValue:e,inputValueLabel:t,localeInfo:n}){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const r=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return t.replace(new RegExp(`[0-9e${r}]`,"g"),"").length>0||function(e){if(e.indexOf("e")>-1)return!1;const t=e.indexOf("-");return-1!==t&&(e.lastIndexOf("-")!==t||0!==t)}(t)}const wo=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(fo.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(fo.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return fo.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:fo.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},Mo={hasEngineFormat:So,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:i,rtl:o,isContinuous:a,isDimension:s}){const l=fo.getInvert({orientation:i,rtl:o,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let f,h;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");f=e.qMin,h=e.qMax}for(let i=0;i<e.length;i++){const o=e[i],{value:s,align:c,valueInfo:d}=o,p=wo({label:o,dataPages:u,qMin:f,qMax:h});o.scaledValue=1===p?l?-.1:1.1:-1===p?l?1.1:-.1:fo.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),o.center=o.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:i}){let o;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;o=So({inputValue:s,inputValueLabel:l,localeInfo:i})?l:t?t(a):a,r.valueString=`${_.lrm}(${o})${_.lrm}`,r.title=Mo.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;o=So({inputValue:a,inputValueLabel:s,localeInfo:i})?s:r,n.valueString=`${_.lrm}(${o})${_.lrm}`,n.title=Mo.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];o=n.valueText,n.valueString=`${_.lrm}(${o})${_.lrm}`,n.title=Mo.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title,r).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((n=>t(n,e).width)));return n},getMaxTextWidth(e){const t=e.map((e=>e.totalWidth));return Math.max(...t)},addLabelsNeighborInfo(e,t,n,r=0){const i=e.length-1;if(i<0)return;let o,a;if([o]=e,o.cMin=t,0!==i){for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.cMax=(o.center+a.center-r)/2,a.cMin=o.cMax+r;a.cMax=n}else o.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,i=e.filter((e=>e.maxNumLines===t)),o=Math.min(n,i.length);for(let e=i.length-1;e>=i.length-o;e--)i[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let i=3;do{const t=Mo.getTotalNumLines(e)-r;if(t<=0)return;Mo.reduceLabelsHavingMaxNumLines(e,i,t),i--}while(i>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const i=e[r];i.maxNumLines=Math.max(1,Math.min(i.maxNumLines,Math.floor((Math.max(0,i.cMax-i.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let i=0;i<e.length;i++){const o=e[i];o.width=Math.min(t,Mo.measureLabelMaxLineWidth(o,r)),o.height=o.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:i}=r,o=r[t],a=o/2;r.segment={center:i,range:o,min:i-a,max:i+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:i,gap:o,labelStyle:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:f,layoutService:h,isContinuous:p,isDimension:m}){const g=e.map((e=>e)),y=n;Mo.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:h,orientation:u,rtl:f,isContinuous:p,isDimension:m}),vo(e,"center"),Mo.addLabelsNeighborInfo(e,r,i,o),mo(e,a,s),Mo.reduceTotalMaxNumLines(g,l,i-(g.length-1)*o),"vertical"===u&&(Mo.reduceMaxNumLines(e,l,.05*o),function(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=ho({label:i,labelStyle:t});i.lines.length>i.maxNumLines&&(i.lines=Pi.tokenize(i.title,o,po(i),i.maxNumLines,n))}}(e,a,s)),Mo.addLabelsSize(e,s,l,d),Mo.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:i,lineHeight:o=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=i,{fontSize:d,fontFamily:f,fontStyle:h,fontWeight:p,textDecoration:m,background:g}=t;let y=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,i=t.map(((t,i)=>{const g={type:"text",text:t,title:go({title:e.title,font:a,ellipsis:po(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||f,fontStyle:e.fontStyle||h,fontWeight:e.fontWeight||p,textDecoration:e.textDecoration||m,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return g[l]=u,g[s]=e.segment.position,g.y+=(i-(r-1)/2)*o,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:i,lineHeight:o,background:a}){const{lines:s}=i,{borderRadius:l=bo,padding:c={}}=a,{top:u=xo,bottom:d=xo,left:f=xo,right:h=xo}=c,p=s.length,m={type:"rect",rx:l,ry:l,fill:i.background.fill,width:i.width+(f+h),height:i.height+(u+d),value:i.value,dock:r};return m[n]=e,m[t]=i.segment.position,m.x-=i.width/2+f,m.y-=p*o/2+u,m}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:o,background:g})),y=y.concat(i)})),y}};function ko(e,t,n){let r;const i=typeof t;if("string"===i||"object"===i)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function Eo(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{lineHeight:n,top:r,bottom:i,maxLabelWidth:o}=t;let a=1;return Mo.getMaxTextWidth(e)>o&&(mo(e,t,o),a=Math.max(...e.map((e=>e.lines.length)))),a*n+r+i}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:i}=t;return Math.min(i,Mo.getMaxTextWidth(e))+n+r}(t,n)}function Co(e,t){return t?e.domain():[0,1]}function Oo(e,t,n,r="value"){let i=e.filter((e=>e[r]>=t));i=i.filter((e=>e[r]<=n));const o=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:i,minOobs:o,maxOobs:a,numMinOobs:o.length,numMaxOobs:a.length}}function No(e){let t,n=0;for(let r=1;r<10;r++)t=e(r),n=Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height));return t=e("9+"),[n,Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height))]}function To(e,t){return e>9?t[1]:t[0]}function Ao({alignment:e,dockValue:t,oobs:n,style:r,rect:i,symbol:o,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:f,minorAxis:h,minorDimension:p,dock:m}=s,g=i[p],y=_i.createOob({oob:_i.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:i.width,rendHeight:i.height,flipXY:d,symbol:o});y.dock=m;const v=`c${f}`,b=`c${h}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:m};x[b]=g/2,x[v]=a;const S={type:"text",text:u>9?"9+":u,title:yo({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:m};return S[h]=g/2,S[f]=a,[y,x,S]}const Ro=e=>{const t=ho({labelStyle:e}),n=Pi.getFontHeight(t)*(e.lineHeightMultiplicator||1),r=e.gap||12,i=e.maxWidth||75,o=e.padding.top||0,a=e.padding.bottom||0,s=e.padding.left||0,l=e.padding.right||0;return{...e,font:t,lineHeight:n,gap:r,maxLabelWidth:i,top:o,bottom:a,left:s,right:l}},qo=e=>e.map((e=>({...e,value:"function"==typeof e.value?e.value():e.value,valueText:"function"==typeof e.valueText?e.valueText():e.valueText,valueInfo:"function"==typeof e.valueInfo?e.valueInfo():e.valueInfo})));var Do={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:i}=this.settings,o=!!r||n.meta.canBeContinuous,a=qo(this.settings.labels),s=ko(this.chart,this.settings.formatter,e);Mo.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:o,localeInfo:i});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:i})=>{if(n){const[r,i]=Co(t,n);return Oo(e,r,i)}if(r){const t=i.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return Oo(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:o,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:i,fontWeight:o}=n||{};return this.renderer.measureText({text:e,fontWeight:o||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:i||t.label.fontFamily})},u&&u.length){const e=Ro(t.label),{dock:n}=this.settings.layout;return Mo.measureLabelsWidth(u,this.measureText),d=Eo(n,u,e),d}const f=No(this.measureText),h=l?To(l,f):0,p=c?To(c,f):0;return d=Math.max(h,p),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:i,isContinuous:o,isDimension:a,localeInfo:s}=this.settings,l=!!o||r.meta.canBeContinuous,c=qo(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:f}=n.label,h=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),p=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,h,f),{orientation:m,majorDimension:g}=h,{majorSize:y}=p,v=Ro(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:w}=v,M=ko(this.chart,this.settings.formatter,e),k=y;Mo.addLabelTitles({labels:c,formatter:M,isContinuous:o,canBeContinuous:l,localeInfo:s}),Mo.calculateLabelPositions({labels:c,scale:e,size:k,layoutService:r,orientation:m,rtl:d,isContinuous:o,isDimension:a});const[E,C]=Co(e,o),{filteredLabels:O,lowerOobs:N,upperOobs:T,lowerCircleSize:A,upperCircleSize:R,lowerOobSpace:q,upperOobSpace:D}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:i,isContinuous:o,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:f}=Oo(e,t,n,c),h="scaledValue"!==c&&fo.getInvert({orientation:r,rtl:i,isContinuous:o}),p=function(e,t,n){return n?t:e}(d,u,h),m=function(e,t,n){return n?e:t}(d,u,h),g=p.length,y=m.length,v=No(l),b=To(g,v),x=To(y,v),S=function(e,t,n,r,i){return("vertical"===r?i.top:i.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),w=function(e,t,n,r,i){return("vertical"===r?i.bottom:i.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:f,lowerOobs:p,upperOobs:m,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:w}}({labels:c,minValue:E,maxValue:C,orientation:m,rtl:d,isContinuous:o,style:n,padding:f,measureText:this.measureText,prop:o?"value":"scaledValue"}),I=q,L=y-D;vo(N),vo(T);const P=Ao({alignment:0,dockValue:0,oobs:N,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+A/2,areaProps:h,radius:A/2,font:b}),_=Ao({alignment:1,dockValue:1,oobs:T,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+R/2),areaProps:h,radius:R/2,font:b});Mo.addLabelsInfo({labels:O,scale:e,majorSize:y,lowerLimit:I,upperLimit:L,labelStyle:v,lineHeight:x,gap:S,maxLabelWidth:w,majorDimension:g,orientation:m,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:o,isDimension:a}),Ji.layout(O.map((e=>e.segment)),I,L,n.label.gap);const z=O.filter((e=>Ji.isInside(e.segment,I,L,o)));return Mo.createLabels({labels:z,style:n.label,maxLabelWidth:w,areaProps:h,area:p,lineHeight:x,font:b,theme:i}).concat([...P,..._])}};function Io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Lo(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Po(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Lo(o,r,i,a,s,"next",e)}function s(e){Lo(o,r,i,a,s,"throw",e)}a(void 0)}))}}function _o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){_o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jo(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $o(){$o=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==n&&r.call(S,a)&&(b=S);var w=v.prototype=g.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=C(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(w,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},M(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;N(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function Bo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Uo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ho(e){return function(e){if(Array.isArray(e))return Io(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Uo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vo(e){return Vo="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},Vo(e)}function Uo(e,t){if(e){if("string"==typeof e)return Io(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(e,t):void 0}}var Wo=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Yo=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var Go=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function Ko(e){var t=e.theme,n=e.translator,r=e.defaultValue,i=e.flags,o=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?o.push.apply(o,Ho(new Set([r].concat(Ho(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):o.push(r),[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0}].concat(Ho(o.map((function(e){return Go(e)}))),[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0}],Ho(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Yo:Wo}(i).map((function(e){return Go(e)}))))}function Xo(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=e.flags,a=function(){return t.getStyle(r,i,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return Ko({theme:t,translator:n,defaultValue:a(),flags:o})}}}var Jo,Zo,Qo=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],ea=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function ta(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=function(){return t.getStyle(r,i,"fontSize")};return{getDefaultValue:function(){return o()},getOptions:function(){return function(e){var t=e.translator,n=e.defaultValue,r=[],i=e.theme.getStyle("","","fontSizes");return Array.isArray(i)&&i.length?r.push.apply(r,Ho(new Set([n].concat(Ho(i))))):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(Ho(r.map((function(e){return ea(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],Ho(Qo.map((function(e){return ea(e)}))))}({theme:t,translator:n,defaultValue:o()})}}}function na(e){var t=e.theme,n=e.translator,r=e.id,i=e.path;return{fontFamily:Xo({theme:t,translator:n,id:r,path:i,flags:e.flags}),fontSize:ta({theme:t,translator:n,id:r,path:i})}}function ra(e){return ia.apply(this,arguments)}function ia(){return(ia=Po($o().mark((function e(t){var n,r,i,o;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.app,r=t.items,n.evaluate){e.next=3;break}return e.abrupt("return",r);case 3:return e.next=5,Promise.all(r.filter((function(e){var t;return!(null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t||!t.qv)})).map((function(e){var t=e.qCalcCondition.qCond.qv;return n.evaluate(t).then((function(t){return"0"===t?e.qDef.cId:void 0})).catch((function(){return e.qDef.cId}))})));case 5:return i=e.sent,o=i.filter(Boolean),e.abrupt("return",r.filter((function(e){return!o.includes(e.qDef.cId)})));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oa(e){var t=e.app,n=e.translator,r=e.dimension,i={id:r.qDef.cId,text:n.get("Object.ErrorMessage.MissingDimension"),meta:{}},o=r.qLibraryId;if(o)return t.getDimension?t.getDimension(o).then((function(e){return e.getLayout()})).catch((function(){})).then((function(e){if(!e)return i;var t=e.qDim,n=t.qGrouping,o=t.qLabelExpression,a="C"===n,s="H"===n,l="N"===n;return{id:r.qDef.cId,text:o&&l?o:e.qDim.title,meta:{isCyclic:a,isDrillDown:s,isNormal:l}}})):i;var a=r.qDef,s=a.cId,l=a.qLabelExpression,c=a.qFieldLabels,u=a.qFieldDefs,d={isCyclic:!1,isDrillDown:!1,isNormal:!0};return l?t.evaluate?t.evaluate(l).then((function(e){return{id:s,text:e,meta:d}})):i:{id:s,text:c[0]||u[0],meta:d}}function aa(e){return sa.apply(this,arguments)}function sa(){return(sa=Po($o().mark((function e(t){var n,r,i,o,a,s,l,c;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.app,i=t.translator,o=t.properties,a=(null==o||null===(n=o.qHyperCubeDef)||void 0===n||null===(n=n.qLayoutExclude)||void 0===n?void 0:n.qHyperCubeDef)||{},s=a.qDimensions,(l=void 0===s?[]:s).length){e.next=4;break}return e.abrupt("return",Promise.resolve([]));case 4:return e.next=6,ra({app:r,items:l});case 6:return c=e.sent,e.abrupt("return",Promise.all(c.map((function(e){return oa({app:r,translator:i,dimension:e})}))));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function la(e){var t=e.app,n=e.translator,r=e.measure,i={id:r.qDef.cId,text:n.get("Object.ErrorMessage.MissingMeasure")},o=r.qLibraryId;if(o)return t.getMeasure?t.getMeasure(o).then((function(e){return e.getLayout()})).catch((function(){})).then((function(e){if(!e)return i;var t=e.qMeasure.qLabelExpression;return{id:r.qDef.cId,text:t||e.qMeasure.qLabel||e.qMeasure.qDef}})):i;var a=r.qDef,s=a.cId,l=a.qLabelExpression,c=a.qLabel,u=a.qDef;return l?t.evaluate?t.evaluate(l).then((function(e){return{id:s,text:e}})):i:{id:s,text:c||u}}function ca(e){return ua.apply(this,arguments)}function ua(){return(ua=Po($o().mark((function e(t){var n,r,i,o,a,s,l,c;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.app,i=t.translator,o=t.properties,a=(null==o||null===(n=o.qHyperCubeDef)||void 0===n||null===(n=n.qLayoutExclude)||void 0===n?void 0:n.qHyperCubeDef)||{},s=a.qMeasures,(l=void 0===s?[]:s).length){e.next=4;break}return e.abrupt("return",Promise.resolve([]));case 4:return e.next=6,ra({app:r,items:l});case 6:return c=e.sent,e.abrupt("return",Promise.all(c.map((function(e){return la({app:r,translator:i,measure:e})}))));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var da=function(){if(Zo)return Jo;Zo=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Jo=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Jo}(),fa=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(da);function ha(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.value%i.length]}))},valueAccessor:e.value}}function pa(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.row.value%i.length]}))},valueAccessor:e.value}}function ma(e,t,n,r,i){var o,a,s=i.byRow,l=i.byElemNo;if(r&&(t.input.persistent||e.hc.qDimensionInfo.length>1||void 0===n.activeDimensionIndex&&e.hc.qSize.qcy>((null===(a=(o=e.hc).qDataPages[0]||o.qStackedDataPages[0])||void 0===a?void 0:a.qArea.qHeight)||0)))return l(r,r.raw().qCardinal);if(r){var c=t.pic.extract({field:r.key(),trackBy:r.value}).length;return s(r,c)}return{}}function ga(e,t){var n=e.hc.qDimensionInfo,r=t.input.byDimDef||{activeDimensionIndex:n.length-1};if(r.activeDimensionIndex>=0){var i=n[r.activeDimensionIndex];r=i.coloring&&i.coloring.colorMapRef?{type:"libraryItem",key:i.coloring.colorMapRef,activeDimensionIndex:r.activeDimensionIndex}:{activeDimensionIndex:r.activeDimensionIndex}}return r}function ya(e,t){var n;return t.activeDimensionIndex>=0?n=e.pic.fields().filter((function(e){return"dimension"===e.type()}))[t.activeDimensionIndex]:"libraryItem"===t.type?!1===(n=t.key?e.pic.field((function(e){return e.raw().colorMapRef===t.key})):void 0)&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n}function va(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ba(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xa(){}var Sa=1/.7,wa="\\s*([+-]?\\d+)\\s*",Ma="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ka="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ea=/^#([0-9a-f]{3,8})$/,Ca=new RegExp(`^rgb\\(${wa},${wa},${wa}\\)$`),Oa=new RegExp(`^rgb\\(${ka},${ka},${ka}\\)$`),Na=new RegExp(`^rgba\\(${wa},${wa},${wa},${Ma}\\)$`),Ta=new RegExp(`^rgba\\(${ka},${ka},${ka},${Ma}\\)$`),Aa=new RegExp(`^hsl\\(${Ma},${ka},${ka}\\)$`),Ra=new RegExp(`^hsla\\(${Ma},${ka},${ka},${Ma}\\)$`),qa={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 Da(){return this.rgb().formatHex()}function Ia(){return this.rgb().formatRgb()}function La(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ea.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Pa(t):3===n?new ja(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_a(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_a(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=Ca.exec(e))?new ja(t[1],t[2],t[3],1):(t=Oa.exec(e))?new ja(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Na.exec(e))?_a(t[1],t[2],t[3],t[4]):(t=Ta.exec(e))?_a(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Aa.exec(e))?Wa(t[1],t[2]/100,t[3]/100,1):(t=Ra.exec(e))?Wa(t[1],t[2]/100,t[3]/100,t[4]):qa.hasOwnProperty(e)?Pa(qa[e]):"transparent"===e?new ja(NaN,NaN,NaN,0):null}function Pa(e){return new ja(e>>16&255,e>>8&255,255&e,1)}function _a(e,t,n,r){return r<=0&&(e=t=n=NaN),new ja(e,t,n,r)}function za(e){return e instanceof xa||(e=La(e)),e?new ja((e=e.rgb()).r,e.g,e.b,e.opacity):new ja}function Fa(e,t,n,r){return 1===arguments.length?za(e):new ja(e,t,n,null==r?1:r)}function ja(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $a(){return`#${Ua(this.r)}${Ua(this.g)}${Ua(this.b)}`}function Ba(){const e=Ha(this.opacity);return`${1===e?"rgb(":"rgba("}${Va(this.r)}, ${Va(this.g)}, ${Va(this.b)}${1===e?")":`, ${e})`}`}function Ha(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Va(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ua(e){return((e=Va(e))<16?"0":"")+e.toString(16)}function Wa(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ga(e,t,n,r)}function Ya(e){if(e instanceof Ga)return new Ga(e.h,e.s,e.l,e.opacity);if(e instanceof xa||(e=La(e)),!e)return new Ga;if(e instanceof Ga)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ga(a,s,l,e.opacity)}function Ga(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ka(e){return(e=(e||0)%360)<0?e+360:e}function Xa(e){return Math.max(0,Math.min(1,e||0))}function Ja(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}va(xa,La,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Da,formatHex:Da,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ya(this).formatHsl()},formatRgb:Ia,toString:Ia}),va(ja,Fa,ba(xa,{brighter(e){return e=null==e?Sa:Math.pow(Sa,e),new ja(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ja(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ja(Va(this.r),Va(this.g),Va(this.b),Ha(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:$a,formatHex:$a,formatHex8:function(){return`#${Ua(this.r)}${Ua(this.g)}${Ua(this.b)}${Ua(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ba,toString:Ba})),va(Ga,(function(e,t,n,r){return 1===arguments.length?Ya(e):new Ga(e,t,n,null==r?1:r)}),ba(xa,{brighter(e){return e=null==e?Sa:Math.pow(Sa,e),new Ga(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ga(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ja(Ja(e>=240?e-240:e+120,i,r),Ja(e,i,r),Ja(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ga(Ka(this.h),Xa(this.s),Xa(this.l),Ha(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=Ha(this.opacity);return`${1===e?"hsl(":"hsla("}${Ka(this.h)}, ${100*Xa(this.s)}%, ${100*Xa(this.l)}%${1===e?")":`, ${e})`}`}}));const Za=Math.PI/180,Qa=180/Math.PI,es=4/29,ts=6/29,ns=3*ts*ts;function rs(e){if(e instanceof is)return new is(e.l,e.a,e.b,e.opacity);if(e instanceof cs)return us(e);e instanceof ja||(e=za(e));var t,n,r=ls(e.r),i=ls(e.g),o=ls(e.b),a=os((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=os((.4360747*r+.3850649*i+.1430804*o)/.96422),n=os((.0139322*r+.0971045*i+.7141733*o)/.82521)),new is(116*a-16,500*(t-a),200*(a-n),e.opacity)}function is(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function os(e){return e>.008856451679035631?Math.pow(e,1/3):e/ns+es}function as(e){return e>ts?e*e*e:ns*(e-es)}function ss(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ls(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function cs(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function us(e){if(isNaN(e.h))return new is(e.l,0,0,e.opacity);var t=e.h*Za;return new is(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}va(is,(function(e,t,n,r){return 1===arguments.length?rs(e):new is(e,t,n,null==r?1:r)}),ba(xa,{brighter(e){return new is(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new is(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 ja(ss(3.1338561*(t=.96422*as(t))-1.6168667*(e=1*as(e))-.4906146*(n=.82521*as(n))),ss(-.9787684*t+1.9161415*e+.033454*n),ss(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),va(cs,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof cs)return new cs(e.h,e.c,e.l,e.opacity);if(e instanceof is||(e=rs(e)),0===e.a&&0===e.b)return new cs(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Qa;return new cs(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new cs(e,t,n,null==r?1:r)}),ba(xa,{brighter(e){return new cs(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new cs(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return us(this).rgb()}}));var ds=e=>()=>e;function fs(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ds(isNaN(e)?t:e)}var hs=function e(t){var n=function(e){return 1==(e=+e)?fs: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):ds(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Fa(e)).r,(t=Fa(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=fs(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),ps=/^class(-pyramid)?/,ms=function(e,t,n,r){var i=void 0!==n.min?n.min:r.min(),o=void 0!==n.max?n.max:r.max(),a=i,s=o,l=t.limits,c={},u="percent"===t.limitType?l.map((function(e){return i+(o-i)*e})):l,d=t.colors.map((function(t){return e.resolveUIColor(t)}));if(i=Math.min.apply(Math,[i].concat(Ho(u))),o=Math.max.apply(Math,[o].concat(Ho(u))),c.min=i,c.max=o,t.breakTypes&&-1===t.breakTypes.indexOf(!0))c.type="categorical",Object.assign(c,function(e){var t=e.min,n=e.max,r=e.limits,i=e.range,o=[],a=[];if(r.length)if(r[r.length-1]<t)a.push(t,n),o.push(i[i.length-1],i[i.length-1],i[i.length-1]);else if(r[0]>n)a.push(t,n),o.push(i[0],i[0],i[0]);else{if(r[0]>t)a.push(t),o.push(i[0]);else{a.push(t);for(var s=0;s<r.length;s++)if(t<r[s]){o.push(i[s]);break}}for(var l=0;l<r.length;l++)t<r[l]&&r[l]<n&&(a.push(r[l]),o.push(i[l]));if(r[r.length-1]<n)a.push(n),o.push(i[r.length]),o.push(i[r.length]);else{a.push(n);for(var c=0;c<r.length;c++)if(r[c]>n){o.push(i[c]),o.push(i[c]);break}}}else o.push(i[0]);return{min:t,max:n,range:o,domain:a}}({min:"percent"===t.limitType?i:a,max:"percent"===t.limitType?o:s,range:d,limits:"percent"===t.limitType?u:l}));else if(t.breakTypes){var f=t.breakTypes;c.type="continuous",c.domain=[i],c.range=[d[0]];for(var h=0;h<u.length;h+=1)if(f[h]){var p=d[h],m=d[h+1],g=hs(p,m)(.5);c.range.push(g),c.domain.push(u[h]),h<u.length-1&&f[h+1]&&(c.range.push(d[h+1]),c.domain.push((u[h]+u[h+1])/2))}else c.range.push(d[h]),c.range.push(d[h+1]),c.domain.push(u[h]),c.domain.push(u[h]+Math.min(1e-6,(o-i)/1e6));c.range.push(d[d.length-1]),c.domain.push(o)}else c.domain=u,c.range=d;return c};function gs(e,t,n,r,i){var o,a,s,l=0,c=[],u=(e-t)/(r+1);if(0===u)return 1;for(o=0;o<n.length;o+=1)a=.99*(n[o]-t),s=n[o]>e?Math.floor(e/u):n[o]<t?0:Math.floor(a/u),Number.isNaN(s)||(c[s]?c[s]+=1:c[s]=1);for(o=0;o<c.length;o+=1)c[o]&&(l+=1);return l<=r||l>=i?Math.max(l,r):gs(e,t,n,r+1,i)}var ys=function(e,t,n,r){var i,o,a=t.theme,s=t.hc,l=r.f,c={mode:"field",fieldType:"measure",field:l?l.key():void 0,reverse:n.input.reverseScheme||!1,type:"continuous",range:function(e){return e.resources.theme.palette("quant")}},u=[],d=!0;if(l){if(Number.isNaN(+l.min())||Number.isNaN(+l.max()))return{invalid:!0};(d=!("S"===(i=n.pic.raw()).qMode&&(i.qDataPages[0]&&i.qSize.qcy>i.qDataPages[0].qArea.qHeight||!i.qDataPages.length&&i.qSize.qcy>0)||"K"===i.qMode&&i.qStackedDataPages[0]&&i.qSize.qcy>i.qStackedDataPages[0].qArea.qHeight||"T"===i.qMode&&i.qSize.qcy>i.qTreeDataPages[0].qGroupSize))&&(u=n.pic.extract({field:0,props:{num:{field:l.key()},exclude:{fields:s.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return Math.min.apply(Math,Ho(e))<0}}}}).filter((function(e){return e.value>=0&&!e.exclude.value})).map((function(e){return e.num.value})).filter((function(e){return"number"==typeof e})))}if(!1===n.input.autoMinMax){if(c.min=n.input.measureMin,c.max=n.input.measureMax,c.max<c.min)return{invalid:!0}}else if(l&&!d)c.min=l.min(),c.max=l.max();else if(l){if(!u.length)return{invalid:!0};c.min=Math.min.apply(Math,Ho(u)),c.max=Math.max.apply(Math,Ho(u))}if(n.input.measureScheme&&(c.palettes={quant:n.input.measureScheme}),a){var f=a.getDataColorScales().filter((function(e){return e.key===n.input.measureScheme}))[0];c.type=f&&ps.test(f.type)?"categorical":"continuous","categorical"===c.type&&(o=f.colors.some((function(e){return Array.isArray(e)}))?Math.max.apply(Math,Ho(f.colors.map((function(e){return e?e.length:0})))):f.colors.length)}if("categorical"===c.type){for(var h=d?gs(c.max,c.min,u,1,o):o,p=(c.max-c.min)/h,m=[],g=0;g<h+1;g+=1)m.push(c.min+p*g);c.domain=m,c.range=function(e){for(var t=e.resources.theme.palette("quant",h),n=Math.max(1,Math.floor(t.length/h)),r=[],i=0;i<h;i+=1)r.push(t[i*n]);return[r[0]].concat(r,[r[r.length-1]])}}return c};function vs(e,t){var n;return t.activeMeasureIndex>=0?n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[t.activeMeasureIndex]:"libraryItem"===t.type?n=e.pic.field((function(e){return e.raw().colorMapRef===t.key&&void 0!==t.key})):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n||(n=e.pic.field((function(e){return void 0!==e.raw().matchMeasure})))&&(n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[n.raw().matchMeasure]),n}function bs(e){e.measureOverrides.every((function(e){return!e}))&&(e.measureOverrides=null)}function xs(e,t){for(var n=(null==t?void 0:t.domain)||[],r=(null==t?void 0:t.range)||[],i=[],o=0;o<e.length;++o){var a=e[o];if("constant"===(null==a?void 0:a.mode)){var s=n.indexOf(o);-1===s?(n.push(o),r.push(a.primary)):r[s]=a.primary,e[o]=null}else if(a){i.push(o);var l=n.indexOf(o);-1!==l&&(n.splice(l,1),r.splice(l,1))}}return{domain:n,range:r,exclude:i}}function Ss(e,t,n,r){var i,o=function(e,t,n,r){if(t.input&&!t.input.auto){if("byMeasure"===t.input.mode)return function(e,t,n){var r=t.theme,i=t.hc,o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).getCField,a=void 0===o?vs:o,s=n.input.byMeasureDef||{activeMeasureIndex:0},l=a(n,s),c=ys(0,{theme:r,hc:i},n,{f:l});if(c.invalid)return c;"expression"===s.type&&(s.activeMeasureIndex<0||void 0===s.activeMeasureIndex)&&(c.label=s.label,l&&"color.altLabel"===l.raw().labelExpRef&&(c.label=n.input.altLabel)),!c.label&&l&&(c.label=l.title());var u=s.activeMeasureIndex>=0?l:null;if(!u&&l&&void 0!==l.raw().matchMeasure&&l.raw().matchMeasure>-1&&(u=n.pic.fields().filter((function(e){return"measure"===e.type()}))[l.raw().matchMeasure]),n.input.useMeasureGradient&&"libraryItem"===s.type)if(u){var d=u.raw().coloring;d&&d.gradient&&fa(c,ms(e,d.gradient,c,u))}else c.auxiliary=s;return c}(e,n,t);if("byDimension"===t.input.mode)return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.getCDef,o=void 0===i?ga:i,a=r.getCByField,s=void 0===a?ya:a,l=r.getPersistence,c=void 0===l?ma:l,u=o(t,n),d=s(n,u),f=d?d.raw():{},h=n&&n.pic?n.pic.raw():{};if(f.qError||f.qSize&&0===f.qSize.qcy&&!h.qHasOtherValues)return{invalid:!0};var p={mode:"field",fieldType:"dimension",type:"categorical",field:d?d.key():void 0,isFieldLocked:f.qLocked};return("expression"===u.type||u.activeDimensionIndex<0)&&(p.label=u.label,"color.altLabel"===f.labelExpRef&&(p.label=n.input.altLabel)),!p.label&&d&&(p.label=d.title()),n.input.dimensionScheme&&(p.palettes={categorical:n.input.dimensionScheme}),n.input.useDimColVal&&"libraryItem"===u.type&&(p.auxiliary=u),fa(p,c(t,n,u,d,{byRow:pa,byElemNo:ha})),p}(e,n,t);if("byExpression"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.pic.field((function(e){return"colorByExpression"===e.raw().id}));if(!s||!s.raw().qFallbackTitle&&!n.input.colorExpression||!(Number.isFinite(s.raw().qMin)&&Number.isFinite(s.raw().qMax)||n.input.expressionIsColor))return{mode:"constant",type:"constant",primary:r.nil};if(n.input.expressionIsColor)return{mode:"field",fieldType:"expression",field:s?s.key():void 0,type:"color"};var l=ys(0,{hc:i,theme:o},n,{f:s});return l.invalid||(l.label=n.input.expressionLabel||a.get("Object.ChartTooltip.ColorExpression")),l}(0,n,t,r);if("byMultiple"===t.input.mode||"primary"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.input.useBaseColors;if(("byMultiple"===n.input.mode||"primary"===n.input.mode&&"measure"===n.input.useBaseColors)&&i.qMeasureInfo.length>1&&(s="measure"),"measure"===s){var l=[],c=[];"measure"===n.input.useBaseColors&&i.qMeasureInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){l.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?c.push(r.primary):c.push(i)}}));var u=n.input.dimensionScheme?{categorical:n.input.dimensionScheme}:void 0,d=o?o.getDataColorPalettes()[0]:void 0;return"measure"===n.input.useBaseColors&&d&&(u={categorical:d.key}),{mode:"measure",type:"categorical",palettes:u,label:a?a.get("Common.Measures"):void 0,explicit:l.length?{domain:l,range:c}:void 0}}if("dimension"===s){var f=[],h=[];return i.qDimensionInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){f.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?h.push(r.primary):h.push(i)}})),{mode:"dimension",type:"categorical",field:f.length?f[0]:void 0,explicit:f.length?{domain:f,range:h}:void 0}}var p=r.primary;if(void 0!==n.input.paletteColor)n.input.paletteColor&&(p=e.resolveUIColor(n.input.paletteColor));else{var m=n.input.singleColor;"number"!=typeof m||Number.isNaN(m)||(p=["#b0afae","#7b7a78","#545352","#4477aa","#7db8da","#b6d7ea","#46c646","#f93f17","#ffcf02","#276e27","#ffffff","#000000"][m])}return{mode:"constant",type:"constant",primary:p}}(e,n,t,r)}return{}}(e,t,n,r);return null!==(i=t.input)&&void 0!==i&&i.measureOverrides?(o.measureOverrides=t.input.measureOverrides.map((function(n,i){return function(e){var t,n=e.cm,r=e.defaults,i=e.index,o=e.input,a=e.pic;if(!o||!o.on)return null;var s=null!==(t=o.mode)&&void 0!==t?t:"primary";return"primary"===s?function(e,t,n){var r=n.primary;return void 0!==t.paletteColor&&t.paletteColor&&(r=e.resolveUIColor(t.paletteColor)),Fo(Fo({},n),{},{mode:"constant",type:"constant",primary:r})}(n,o,r):"byExpression"===s?function(e,t,n){var r="qMeasureInfo/".concat(e,"/"),i=t.field((function(e){return e.id().startsWith(r)&&"colorByMeasureExpression"===e.raw().id})),o=i;return Fo(Fo({},n),{},o?{mode:"field",fieldType:"expression",field:i?i.key():void 0,type:"color"}:{mode:"constant",type:"constant",primary:n.nil})}(i,a,r):null}({cm:e,input:n,defaults:r,index:i,pic:t.pic})})),function(e,t){var n,r,i,o=t.translator;if(bs(e),1===(null===(n=e.measureOverrides)||void 0===n?void 0:n.length))return e.measureOverrides[0];if("measure"===e.mode&&e.measureOverrides&&(e.explicit=xs(e.measureOverrides,e.explicit),bs(e)),null!==(r=e.measureOverrides)&&void 0!==r&&r.every((function(e){return"constant"===(null==e?void 0:e.mode)}))){var a={mode:"measure",type:"categorical",label:null==o?void 0:o.get("Common.Measures")};return a.explicit=xs(e.measureOverrides),a}return null!==(i=e.measureOverrides)&&void 0!==i&&i.every((function(e){return e}))?{invalid:!0,measureOverrides:e.measureOverrides}:e}(o,n)):o}var ws=function(e,t){var n=e.fieldType,r={};if(t)if("measure"===n){var i=t.coloring;i&&(r.measureGradient=i.gradient)}else if("dimension"===n){var o=t[0],a=t[1];o&&(r.legendDataPage=o),a&&(r.dimValsData=a.colorMap)}return r},Ms=function(e){throw e.isHandled=!0,e};function ks(e){return function(t){return"object"===Vo(t.datum[e])?t.datum[e].value:void 0}}function Es(e){return"object"===Vo(e.datum.isNull)?e.datum.isNull.value:-2===e.datum.value}function Cs(e){return-3===e.datum.value}var Os={COLOR:void 0,FONT_SIZE:"16px",FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"},Ns={COLOR:void 0,FONT_SIZE:void 0,FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"};function Ts(e){var t=e.theme,n=e.key,r=e.styleOverrides,i={title:{color:Os.COLOR,fontSize:Os.FONT_SIZE,fontFamily:Os.FONT_FAMILY},label:{color:Ns.COLOR,fontSize:Ns.FONT_SIZE,fontFamily:Ns.FONT_FAMILY}};if(!t&&!r)return i;var o=r||{},a=o.title,s=o.label,l=function(e){var t=e.theme,n=e.key;return function(e,r,i,o){return void 0!==e?e:t?t.getStyle(n,r,i):o}}({theme:t,key:n});return i.title.color=l(null==a?void 0:a.color,"legend.title","color",Os.COLOR),i.title.fontSize=l(null==a?void 0:a.fontSize,"legend.title","fontSize",Os.FONT_SIZE),i.title.fontFamily=l(null==a?void 0:a.fontFamily,"legend.title","fontFamily",Os.FONT_FAMILY),i.label.color=l(null==s?void 0:s.color,"legend.label","color",Ns.COLOR),i.label.fontSize=l(null==s?void 0:s.fontSize,"legend.label","fontSize",Ns.FONT_SIZE),i.label.fontFamily=l(null==s?void 0:s.fontFamily,"legend.label","fontFamily",Ns.FONT_FAMILY),i}var As=function(e,t,n){var r=e&&e.dock||void 0;if("auto"!==r)return r||"right";if(t){var i=t.element.getBoundingClientRect();if(i.height>i.width)return"bottom"}return n?"left":"right"},Rs=function(e,t,n){return!(n.invalid||"color"===n.type||"measure"===n.mode&&t.qMeasureInfo.length<=1||"dimension"===n.mode)&&("function"==typeof e.show?e.show():!1!==e.show)};function qs(e,t){var n=e.styleReference,r=e.styleOverrides,i=e.chart,o=e.rtl,a=t.legendProps,s=t.coloring,l=t.theme,c=t.hc,u=Ts({theme:l,key:n,styleOverrides:r});return{layout:{minimumLayoutMode:"MEDIUM",dock:As(a,i,o)},show:"function"==typeof a.show?function(){return Rs(a,c,s)}:Rs(a,c,s),renderer:"svg",mounted:function(e){e.childNodes[0].style.pointerEvents="none",e.style.overflow="hidden"},settings:{title:{show:!1!==a.showTitle,wordBreak:"break-word",maxLines:2,lineHeight:1.2,text:s.label||"",fill:u.title.color,fontSize:u.title.fontSize,fontFamily:u.title.fontFamily}}}}function Ds(e,t,n){var r=[],i=[],o=function(e,t,n){return"categorical"===t.coloring.type?function(e,t,n){var r=qs(e,t);if(!r.show)return!1;var i,o=e.key,a=e.styleReference,s=e.styleOverrides,l=e.viewState,c=e.rtl,u=e.settings,d=e.style,f=t.scaleKey,h=t.theme,p=t.scales,m=Ts({theme:h,key:a,styleOverrides:s}),g=r.layout.dock,y="left"===g||"right"===g?{maxLines:2,wordBreak:"break-word"}:{},v={up:"M13.6,11 L2.4,11 C2.28954305,11 2.2,10.9104569 2.2,10.8 C2.2,10.756726 2.21403557,10.7146192 2.24,10.68 L7.84,3.21333333 C7.90627417,3.12496777 8.03163444,3.10705916 8.12,3.17333333 C8.13516113,3.18470418 8.14862915,3.1981722 8.16,3.21333333 L13.76,10.68 C13.8262742,10.7683656 13.8083656,10.8937258 13.72,10.96 C13.6853808,10.9859644 13.643274,11 13.6,11 Z",down:"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",left:"M11,2.4 L11,13.6 C11,13.7104569 10.9104569,13.8 10.8,13.8 C10.756726,13.8 10.7146192,13.7859644 10.68,13.76 L3.21333333,8.16 C3.12496777,8.09372583 3.10705916,7.96836556 3.17333333,7.88 C3.18470418,7.86483887 3.1981722,7.85137085 3.21333333,7.84 L10.68,2.24 C10.7683656,2.17372583 10.8937258,2.19163444 10.96,2.28 C10.9859644,2.31461923 11,2.35672596 11,2.4 Z",right:"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"};"dimension"===t.coloring.fieldType&&(i=function(e){return e.datum.value>=0||-3===e.datum.value});var b="".concat(f,"Legend");return fa(!0,r,{type:"legend-cat",key:"".concat(o,"-cat"),scale:b in p?b:f,settings:{layout:{scrollOffset:function(){return l?l.get("legendScrollOffset"):void 0},size:-1!==["top","bottom"].indexOf(r.layout.dock)?2:1,direction:c?"rtl":"ltr",horizontal:20},item:{show:i,label:Fo({fill:m.label.color,fontSize:m.label.fontSize,fontFamily:m.label.fontFamily},y)},navigation:{disabled:n,button:{content:function(e,t){var n=t.direction;return e("i",{style:{"pointer-events":"none",fontSize:"12px",display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizelegibility",margin:"0px"}},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},[e("path",{d:v[n]})])])}}}},brush:{consume:[{context:"selection",data:["",o],style:{inactive:{opacity:.3}}}]}},{settings:u,style:d})}(e,t,n):"continuous"===t.coloring.type&&function(e,t){var n,r=e.key,i=e.styleReference,o=e.styleOverrides,a=e.rtl,s=e.settings,l=e.style,c=t.scaleKey,u=t.theme,d="".concat(c,"Range"),f=qs(e,t);if(!f.show)return!1;var h=Ts({theme:u,key:i,styleOverrides:o}),p=f.layout.dock,m="right"===p||"left"===p,g=null===(n=t.scales)||void 0===n?void 0:n[d];return m&&g&&(g.invert=!0),fa(!0,f,{type:"legend-seq",key:"".concat(r,"-seq"),settings:{fill:c,major:d,length:1,tick:{fill:h.label.color,fontSize:h.label.fontSize,fontFamily:h.label.fontFamily},title:{anchor:!a||"top"!==f.layout.dock&&"bottom"!==f.layout.dock?void 0:"right",padding:parseFloat(f.settings.title.fontSize)||16}}},{settings:s,style:l})}(e,t)}(e,t,n&&n.navigationDisabled);return r.push(o),o&&"legend-cat"===o.type&&(i.push(function(e){var t=e.key,n=e.requireFailure,r=e.recognizeWith,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:tap-".concat(t),type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"legendtap",interval:10,pointers:1,enable:function(e,n){var r;if(!n)return!0;if(null!=i&&null!==(r=i.interact)&&void 0!==r&&r.enabled&&!i.interact.enabled())return!1;if(!this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((function(e){return e.key==="".concat(t,"-cat")})))return!1;var o=n.srcEvent.target;return!!(o&&o.hasAttribute("data-action")&&o.hasAttribute("data-component-key"))||!(!o||!o.childNodes[0]||"BUTTON"!==o.childNodes[0].nodeName)}},events:{legendtap:function(e){e.preventDefault();var t=e.srcEvent.target;t&&t.hasAttribute("data-action")&&t.hasAttribute("data-component-key")&&this.chart.component(t.getAttribute("data-component-key")).emit(t.getAttribute("data-action"))}}}}(e,n)),i.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,n=e.key,r=e.requireFailure,i=e.recognizeWith,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:pan-".concat(n),type:"Pan",requireFailure:r,recognizeWith:i,options:{event:t,pointers:1,threshold:10,enable:function(e,r){var i;return this.started===t||!r||!(null!=o&&null!==(i=o.interact)&&void 0!==i&&i.enabled&&!o.interact.enabled())&&this.chart.componentsFromPoint({x:r.center.x,y:r.center.y}).some((function(e){return e.key==="".concat(n,"-cat")}))}},events:_o(_o(_o({},"".concat(t,"start"),(function(e){e.preventDefault(),this.started!==t&&(this.started=t,this.chart.component("".concat(n,"-cat")).emit("panstart",e))})),"".concat(t,"move"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panmove",e)})),"".concat(t,"end"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panend",e),this.started=!1}))}}(e,n))),{interactions:i,components:r}}function Is(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.auto,n=function(e){var t=Fo({hc:null,colorProps:null,layout:null,theme:null},e),n={},r={auto:function(){return{mode:"primary"}},getDimensionColorMap:function(){return Promise.reject()},getMeasure:function(){return Promise.reject()},getAttributeDimension:function(){return Promise.reject()}},i={auto:function(e){return e?(r.auto=e,i):r.auto},getDimensionColorMap:function(e){return e?(r.getDimensionColorMap=e,i):r.getDimensionColorMap},getAttributeDimension:function(e){return e?(r.getAttributeDimension=e,i):r.getAttributeDimension},getMeasure:function(e){return e?(r.getMeasure=e,i):r.getMeasure},set:function(e){var i;if(!e.colorProps)throw new Error('Missing "colorProps"');if(fa(t,e),(n={pic:t.picasso.data("q")({data:t.hc,config:{localeInfo:t.localeInfo}}),input:t.colorProps}).input.auto){var o=r.auto(e.layout);n.input=fa(!0,{},n.input,o,{auto:!1});var a=t.theme?t.theme.getDataColorPalettes():[];a[0]&&(n.input.dimensionScheme=a[0].key);var s=0;n.input.byDimDef&&+n.input.byDimDef.activeDimensionIndex>=0&&(s=+n.input.byDimDef.activeDimensionIndex),t.hc&&t.hc.qDimensionInfo[s]&&t.hc.qDimensionInfo[s].coloring&&t.hc.qDimensionInfo[s].coloring.colorMapRef&&n.input.byDimDef&&(n.input.byDimDef.type="libraryItem",n.input.byDimDef.key=t.hc.qDimensionInfo[s].coloring.colorMapRef)}null!==(i=n.input.measureOverrides)&&void 0!==i&&i.every((function(e){return!e||!e.on}))&&(n.input=fa(!1,{},n.input,{measureOverrides:null}))},palettes:function(){if(!n.palettes){var e=t.theme,r=[];(e&&e.getDataColorPickerPalettes()||[]).forEach((function(e){r.push({key:"ui",colors:e.colors})})),n.palettes=r}return n.palettes},getAuxiliaryData:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/qHyperCubeDef";if(!e.auxiliary&&!/qAttrDimInfo/.test(e.field))return Promise.resolve();var i=(e.auxiliary||{}).key;if("measure"===e.fieldType)return r.getMeasure(i,t).catch((function(){}));if("dimension"===e.fieldType){var o="".concat(n,"/").concat(e.field).replace("qDimensionInfo","qDimensions").replace("qAttrDimInfo","qAttributeDimensions");return Promise.all([/qAttrDimInfo/.test(e.field)?r.getAttributeDimension(o,t).catch((function(){})):Promise.resolve(),i?r.getDimensionColorMap(i,t).catch((function(){})):Promise.resolve()])}return Promise.resolve()},getAuxiliarySettings:function(e,r){var i=this;return e.auxiliary||/qAttrDimInfo/.test(e.field)?(this.palettes(),this.getAuxiliaryData(e,r).then((function(r){if(!r)return{};if("measure"===e.fieldType){if(r.coloring&&r.coloring.gradient){var o=n.pic.field(e.field);return ms(i,r.coloring.gradient,e,o)}return{}}if("dimension"===e.fieldType){var a={nil:e.nil,others:e.others},s=r[0],l=r[1]?r[1].colorMap:null;if(s){var c=t.picasso.data("q")({data:{qDimensionInfo:[n.pic.field(e.field).raw(),n.pic.field(e.field).raw()],qMeasureInfo:[],qDataPages:s,qInterColumnSortOrder:[0,1],qMode:"S"}});a.legendDataset=c}return l?function(e,t,n,r){var i=r.external,o=r.field,a=Fo({},e);fa(a,ha(o,o.raw().qCardinal));var s=i.theme?i.theme.getDataColorPalettes()[0]:null;return t.nul&&(a.nil=n.resolveUIColor(t.nul)),t.oth&&(a.others=n.resolveUIColor(t.oth)),t.usePal?(a.palettes={categorical:t.pal},s&&!t.pal&&(a.palettes.categorical=s.key,fa(a,ha(o)))):!1===t.autoFill&&t.single?a.range=[n.resolveUIColor(t.single)]:t.autoFill&&(s&&(a.palettes={categorical:s.key}),fa(a,ha(o))),t.colors&&t.colors.length&&(a.explicit=function(e,t,n){for(var r={},i=0;i<e.length;i+=1)r[e[i].value]=e[i].baseColor;var o=[];return{domain:function(e){var i=e.data,a=[];o=[];for(var s=0;s<i.items.length;s++){var l=i.items[s],c=(l.text||l).label;r[c]&&-1===a.indexOf(l.value)&&(a.push(l.value),o.push(t.resolveUIColor(r[c])))}return a.push(-3,-2),o.push(n.others),o.push(n.nil),a},range:function(){return o}}}(t.colors,n,a)),a}(a,l,i,{external:t,field:n.pic.field(e.field)}):a}return{}}))):Promise.resolve()},resolveUIColor:function(e){if(e.index<0||void 0===e.index)return e.color;if(void 0===n.uiPalette&&(n.uiPalette=this.palettes().filter((function(e){return"ui"===e.key}))[0]||!1),!n.uiPalette)return e.color;var t="none"===n.uiPalette.colors[0]?e.index:e.index-1;return void 0===n.uiPalette.colors[t]?e.color:n.uiPalette.colors[t]},settings:function(){if(this.palettes(),!n.settings){var e={primary:"steelblue",others:"#aaa",nil:"#ddd"},r=t.theme;r&&(e=Fo(Fo({},e),r.getDataColorSpecials())),n.settings=fa(e,Ss(this,n,t,e))}return n.settings}};return i}(e.resources).auto(t||function(){return{mode:"byDimension",persistent:!1,useDimColVal:!0,byDimDef:{activeDimensionIndex:0,type:"expression",label:""}}}).getDimensionColorMap((function(e,t){return function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.dimValsData?Promise.resolve({colorMap:n.snapshotData.content.chartData.dimValsData}):Promise.reject():r&&r.getObject?r.getObject("ColorMapModel_".concat(e)).then((function(e){return e.getLayout()})):Promise.reject()}(e,{layout:t.layout,app:t.app})})).getMeasure((function(e,t){return function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.measureGradient?Promise.resolve({coloring:{gradient:n.snapshotData.content.chartData.measureGradient}}):Promise.reject():r&&r.getMeasure?r.getMeasure(e).then((function(e){return e.getMeasure()})):Promise.reject()}(e,{layout:t.layout,app:t.app})})).getAttributeDimension((function(e,t){return function(e,t){var n=t.layout,r=t.model,i=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.legendDataPage?Promise.resolve(n.snapshotData.content.chartData.legendDataPage):Promise.reject():r&&r.session&&i?r.getHyperCubeData(e,[{qHeight:100,qLeft:0,qTop:0,qWidth:2}]).catch(Ms):Promise.reject()}(e,{layout:t.layout,model:t.model,app:t.app})}));return n.getSnapshotData=ws,n}({resources:e}),n={},r={},i=function(e){return r.settings||(e||console.warn("settings() called before auxiliarySettings()"),r.settings=t.settings()),r.settings},o={config:function(i){if(n=Fo({},i),r={},!n.key)throw new Error("Missing key");t.set(Fo(Fo({},e),n))},auto:function(e){return e?(t.auto(e),o):t.auto()},getAuxiliarySettings:function(e){return r.auxiliarySettings?Promise.resolve(r.auxiliarySettings):t.getAuxiliarySettings(i(!0),e).then((function(e){return r.auxiliarySettings=e||{},r.settings=Fo(Fo({},r.settings),r.auxiliarySettings),r.scales=void 0,r.color=void 0,r.auxiliarySettings}))},getAuxiliaryData:function(){return t.getAuxiliaryData(i())},getSnapshotData:function(e){var n=i();return t.getAuxiliaryData(n,e).then((function(e){return t.getSnapshotData(n,e)}))},resolveUIColor:function(e){return t.resolveUIColor(e)},settings:function(){var e=i();return{mode:e.mode,type:e.type,label:e.label,field:e.field,fieldType:e.fieldType,nil:e.nil,others:e.others,primary:e.primary}},settingsForMeasure:function(e){var t;return(null===(t=i().measureOverrides)||void 0===t?void 0:t[e])||this.settings()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return function(e,t){var n=t.isMeasureSelectionLocked;return"field"!==e.mode||("dimension"===e.fieldType?e.isFieldLocked:"measure"!==e.fieldType||n)}(i(),{isMeasureSelectionLocked:t})},palettes:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorProps,n=e.coloring,r=e.theme,i=[];if(n&&n.palettes&&r){var o=n.palettes.categorical||t.dimensionScheme,a=r.getDataColorPalettes().filter((function(e){return e.key===o}))[0]||r.getDataColorPalettes()[0];o&&a&&i.push({key:"categorical",colors:a.colors});var s=n.palettes.metric||t.measureScheme,l=r.getDataColorScales().filter((function(e){return e.key===s}))[0]||r.getDataColorScales()[0];if(l){var c=l.colors[0]?l.colors:[[]].concat(Ho(l.colors.slice(1)));c=Array.isArray(c[0])?c.map((function(e){return e.slice().reverse()})):c.slice().reverse(),i.push({key:"quant",colors:c})}}return i}({coloring:i(),colorProps:n.colorProps,theme:n.theme})},scales:function(){return r.scales=r.scales||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.hc,n=e.coloring,r=e.rtl,i=e.key,o=e.source,a=e.picasso,s={},l=i;if(n){var c={override:!0,domain:n.explicit&&"function"==typeof n.explicit.domain?n.explicit.domain:[].concat(Ho((n.explicit||{}).domain||[]),[-3,-2]),range:n.explicit&&"function"==typeof n.explicit.range?n.explicit.range:[].concat(Ho((n.explicit||{}).range||[]),[n.others,n.nil])};if("field"===n.mode){if("dimension"===n.fieldType){var u,d=function(e){var t=e.hc,n=e.source,r=e.coloring,i={data:{extract:[{source:"dummy",field:0,filter:function(){return i.expando=t.qDataPages[0]?t.qDataPages[0].qArea.qTop:0,!1}},{source:n,field:r.field,trackBy:r.valueAccessor,reduce:"first",props:{row:{reduce:function(){return i.expando++}},text:{value:function(e){return e.qText},reduce:"first"}}}]},expando:0};return i}({hc:t,source:o,coloring:n}).data;if(n.legendDataset){var f=0,h={};a.data("q")({data:t}).extract({field:n.field,trackBy:n.valueAccessor,reduce:function(e){var t=e[0];return h[t]=f++,e[0]}}),u={source:"attrDim",extract:{field:"qDimensionInfo/0",filter:function(e){return e.qElemNumber>=0},props:{row:{value:function(e){return h[e.qElemNumber]}}}}}}var p={data:d,range:n.range,domain:n.domain,explicit:c,type:"categorical-color",label:function(e){return e.datum.text&&e.datum.text.value?e.datum.text.value:e.datum.label}};s[l]=p,u&&(s["".concat(l,"Legend")]=Fo(Fo({},p),{},{data:u})),t&&t.qHasOtherValues&&u&&((u||p.data).amend=[{label:t.qDimensionInfo[0].othersLabel,source:{key:"qHyperCube",field:"qDimensionInfo/0"},row:{value:-3},value:-3}])}else if("measure"===n.fieldType){var m={data:{field:n.field},min:n.min,max:n.max};s[l]=fa({},m,{type:"categorical"===n.type?"threshold-color":"sequential-color",range:n.range,domain:n.domain,invert:n.reverse}),"sequential-color"===s[l].type&&(s["".concat(l,"Range")]=fa({},m,{invert:!!r}))}else if("color"!==n.type)throw new Error("UNUSED FIELD")}else if("dimension"===n.mode){var g={data:t.qDimensionInfo.map((function(e,t){return t})),label:function(e){return t.qDimensionInfo[e.datum.value].qFallbackTitle},explicit:c,type:"categorical-color"};s[l]=g}else if("measure"===n.mode){var y={data:t.qMeasureInfo.map((function(e,t){return t})).filter((function(e){var t;return!(null!==(t=n.explicit)&&void 0!==t&&null!==(t=t.exclude)&&void 0!==t&&t.includes(e))})),label:function(e){return t.qMeasureInfo[e.datum.value].qFallbackTitle},explicit:c,type:"categorical-color"};s[l]=y}}return s}({hc:n.hc,coloring:i(),key:n.key,source:n.source,picasso:e.picasso}),r.scales},color:function(){return r.color=r.color||function(e){var t=e.coloring,n=e.scales,r=e.key,i=ks(r),o=ks("".concat(r,"IsAnOther")),a=function(e,t){var r=e.fieldType,a=e.invalid,s=e.mode,l=e.nil,c=e.others,u=e.primary,d=e.type;return a?function(e){return Cs(e)||o(e)?c:l}:n[t]?function(e){return Cs(e)?c:Es(e)||-2===i(e)&&"dimension"===r||"NaN"===i(e)?l:o(e)?c:e.resources.scale(t)(i(e))||c}:"constant"===s?function(e){return Cs(e)||o(e)?c:Es(e)?l:u}:"color"===d?function(e){return Cs(e)||o(e)?c:Es(e)?l:i(e)||c}:null},s=a(t,r);if(t.measureOverrides){var l=ks("".concat(r,"MeasureIdx")),c=t.measureOverrides.map((function(e){return e&&a(e)}));return function(e){var t=l(e);return c[t]?c[t](e):s(e)}}return s}({coloring:i(),scales:this.scales(),key:n.key}),r.color},datumProps:function(e){return function(e){var t,n,r=e.hc,i=e.coloring,o=e.scales,a=e.key,s=e.addMeasureIx,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=a,u=i.nil;"field"===i.mode&&i.field?t=i.field:o[a]&&"field"===i.mode&&(t=o[a].data.field||i.field),t?(n={field:t,reduce:"first"},"color"===i.type&&(n.value=function(e){return"NaN"!==e.qNum?function(e){return"rgba(".concat([(16711680&e)>>16,(65280&e)>>8,255&e,((4278190080&e)>>>24)/255].join(","),")")}(e.qNum):e.qText&&La(e.qText)?e.qText:u})):"dimension"===i.mode?n=void 0!==i.field?i.field:r.qDimensionInfo.length-1:"measure"===i.mode&&(n=l);var d=_o({},c,n);return r.qDimensionInfo.length>1&&(d["".concat(c,"IsAnOther")]={fields:r.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return-1!==e.indexOf(-3)}}),s&&(d["".concat(c,"MeasureIdx")]=l),d}({coloring:this.settingsForMeasure(e),scales:this.scales(),key:n.key,hc:n.hc,addMeasureIx:i().measureOverrides},e)},data:function(){var e=i(),t={key:"dummy",data:[["field"],["a"]]};return e.legendDataset?[t,{type:"q",key:"attrDim",data:e.legendDataset.raw(),config:{localeInfo:n.localeInfo}}]:[t]},legend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,r=e.key,o=e.viewState,a=e.chart,s=e.rtl,l=e.styleReference,c=void 0===l?"object.legend":l,u=e.styleOverrides,d=e.settings,f=void 0===d?{}:d,h=e.style,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ds({eventName:t,key:r,rtl:s,viewState:o,chart:a,styleReference:c,styleOverrides:u,settings:f,style:void 0===h?{}:h},{legendProps:n.legendProps,scaleKey:n.key,coloring:i(),theme:n.theme,hc:n.hc,scales:this.scales()},p)}};return o}var Ls=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function Ps(e){var t=e.qHyperCube,n=t.qDimensionInfo,r=t.qMeasureInfo,i=n.some(Ls),o=r.some(Ls),a=e.color.useBaseColors;return"measure"===a&&!o||"dimension"===a&&!i?"off":a}var _s=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function zs(e){var t,n=e.qHyperCube.qDimensionInfo.some(_s),r=e.qHyperCube.qMeasureInfo.some(_s),i=n?"dimension":void 0;return{mode:"primary",useBaseColors:null!==(t=null!=i?i:r?"measure":void 0)&&void 0!==t?t:"off",paletteColor:null}}var Fs=function(){};function js(e){var t,n,r,i,o=e.picasso,a=e.model,s=e.app,l=e.translator,c=e.layoutService,u=void 0===c?void 0:c,d=e.createConfig,f=void 0===d?Fs:d,h=e.config,p=void 0===h?{}:h,m=e.custom,g=void 0===m?{}:m,y=p.localeInfo,v=p.key,b=p.theme,x=void 0===b?void 0:b,S=p.auto,w=void 0===S?void 0:S,M=p.definitionPath,k=null==u||null===(t=u.getLayout)||void 0===t?void 0:t.call(u),E={theme:x,key:v,localeInfo:y,layout:k,hc:null==u||null===(n=u.getHyperCube)||void 0===n?void 0:n.call(u),legendProps:null==u||null===(r=u.getLayoutValue)||void 0===r?void 0:r.call(u,"legend"),colorProps:Fo(Fo({},null==u||null===(i=u.getLayoutValue)||void 0===i?void 0:i.call(u,"color")),{},{useBaseColors:k?Ps(k):void 0})},C=Is({picasso:o,model:a,app:s,translator:l,auto:w});!1!==w&&C.auto((function(e){return w?w({layout:e,defaultAuto:zs}):zs(e)}));var O=!1,N={getColor:function(){return C.color()},getPaletteColor:function(e){var t=e.index,n=e.color;return C.resolveUIColor({index:t,color:n})},getData:function(){return C.data()},getDatumProps:function(e){return C.datumProps(e)},getSnapshotData:function(){return C.getSnapshotData(M)},getSettingsForMeasure:function(e){return C.settingsForMeasure(e)},getSettings:function(){return C.settings()},getLegend:function(e,t){return C.legend(e,t)},getScales:function(){return C.scales()},getPalettes:function(){return C.palettes()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return C.isSelectionLocked({isMeasureSelectionLocked:t})},isInitialized:function(){return O},custom:Fo({},g),initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).createConfig,t=(void 0===e?f:e)({getUseBaseColors:Ps}),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Fo(Fo(Fo({},e),t),{},{colorProps:Fo(Fo({},e.colorProps),t.colorProps||{})})}(E,t);return C.config(n),C.getAuxiliarySettings(M).then((function(){O=!0}))}};return N}var $s="center",Bs="bottom",Hs=[{key:"NoDataExist",alignment:$s,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:$s,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:$s,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:$s},{key:"DataRangeIncludingZero",alignment:Bs},{key:"LimitedData",alignment:Bs},{key:"NegativeOrZeroValues",alignment:Bs}].reduce((function(e,t){return e[t.key]=t,e}),{}),Vs=function(){return!1};function Us(e){var t,n=e.layout,r=e.config,i=void 0===r?{}:r,o={disclaimer:void 0,isSuppressing:!1,showDisclaimer:null!==(t=i.args)&&void 0!==t&&t.layoutService?i.args.layoutService.getLayoutValue("showDisclaimer"):null==n?void 0:n.showDisclaimer};return{initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).args;o.disclaimer=function(e){var t=e.args,n=e.disclaimers,r=[];return Object.keys(n).forEach((function(e){var i=Hs[e],o=n[e];o&&(o.condition||(null==i?void 0:i.condition)||Vs)(t)&&r.push({key:(null==i?void 0:i.translationKey)||(null==i?void 0:i.key)||e,alignment:o.alignment||(null==i?void 0:i.alignment)||Bs})})),r.find((function(e){return e.alignment===$s}))||r[0]}({args:Fo(Fo({layout:n},i.args),e),disclaimers:i.disclaimers||{}}),o.isSuppressing=!(!o.disclaimer||o.disclaimer.alignment!==$s)},getDisclaimer:function(){return o.isSuppressing?o.disclaimer:!1===o.showDisclaimer?void 0:o.disclaimer},getHasSuppressingDisclaimer:function(){return o.isSuppressing}}}function Ws(e){var t=e.chart,n=e.logicalSize;if(n)return n;var r=t?t.element.getBoundingClientRect():{};return{width:r.width,height:r.height}}var Ys=[{key:"FULL",size:{width:550,height:450}},{key:"MEDIUM",size:{width:400,height:220}},{key:"SMALL",size:{width:300,height:150}},{key:"XSMALL",size:{width:150,height:75}}];function Gs(e){var t=e.width,n=e.height,r=Ys.filter((function(e){return t>=e.size.width&&n>=e.size.height})).shift();return r?r.key:"SPARK"}var Ks={left:"right",right:"left",top:"bottom",bottom:"top",near:"far",far:"near"};function Xs(e){var t=e.orientation,n=e.dock,r=e.btt,i=e.rtl,o="horizontal"===t?function(e){return"bottom"===e||"near"===e?"bottom":"top"}(n):function(e,t){var n="left"===e||"near"===e?"left":"right";return t?Ks[n]:n}(n,i),a=function(e,t,n){return"vertical"===e?t?"bottom":"top":n?"right":"left"}(t,r,i);return{current:o,opposite:Ks[o],start:a,end:Ks[a]}}function Js(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=i.logicalSize,a=void 0!==o&&o,s=i.rtl,l=void 0!==s&&s,c={chart:{size:void 0,mode:void 0},x:{dock:void 0,opposite:void 0,size:void 0},y:{dock:void 0,opposite:void 0,size:void 0}},u={type:"x-y",config:Fo({},i),meta:c,update:function(e){c.chart.size={width:e.width,height:e.height},c.chart.mode=Gs(e);var t=Xs({orientation:"horizontal",dock:n.getLayoutValue("xAxis.dock"),btt:!1,rtl:l}),r=t.current,i=t.opposite;c.x.dock=r,c.x.opposite=i,c.x.size=e.width;var o=Xs({orientation:"vertical",dock:n.getLayoutValue("yAxis.dock"),btt:!0,rtl:l}),a=o.current,s=o.opposite;c.y.dock=a,c.y.opposite=s,c.y.size=e.height}};return u.update(Ws({chart:t,logicalSize:a})),u}var Zs="vertical",Qs="horizontal";function el(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o,s=i.logicalSize,l=void 0!==s&&s,c=i.rtl,u=void 0!==c&&c,d=a.fallback===Zs?Zs:Qs,f=!!a.invert,h=a.measureAxes||[{ref:"measureAxis",name:"minor"}],p={chart:{orientation:void 0,size:void 0,mode:void 0},major:{orientation:void 0,dock:void 0,opposite:void 0,size:void 0}},m={type:"major-minor",config:Fo({},i),meta:p,update:function(e){p.chart.orientation=n.getLayoutValue("orientation",d),p.chart.size={width:e.width,height:e.height},p.chart.mode=Gs(e),p.major.orientation=function(e){var t=e.chartOrientation,n=e.invert;return e.layoutService.meta.isContinuous?Qs:n?t===Zs?Qs:Zs:t}({layoutService:n,chartOrientation:p.chart.orientation,invert:f});var t=Xs({orientation:p.major.orientation,dock:n.getLayoutValue("dimensionAxis.dock"),btt:!1,rtl:u}),r=t.current,i=t.opposite;p.major.dock=r,p.major.opposite=i,p.major.size=p.major.orientation===Zs?e.height:e.width,h.forEach((function(t){var r={};r.orientation=p.major.orientation===Zs?Qs:Zs;var i=Xs({orientation:r.orientation,dock:n.getLayoutValue("".concat(t.ref,".dock")),btt:!0,rtl:u}),o=i.current,a=i.opposite,s=i.start,l=i.end;r.dock=o,r.opposite=a,r.start=s,r.end=l,r.size=r.orientation===Zs?e.height:e.width,p[t.name]=r}))}};return m.update(Ws({chart:t,logicalSize:l})),m}function tl(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o;return("x-y"===a.type?Js:el)({chart:t,layoutService:n,config:i,typeConfig:a})}function nl(e,t,n){if(void 0===e||void 0===t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(void 0===i[a])return n;i=i[a]}return i}var rl=["__proto__","constructor"];function il(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),i=r[r.length-1];if(!rl.some((function(e){return r.includes(e)}))){for(var o=e,a=0;a<r.length-1;++a){var s=r[a];void 0===o[s]&&(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}}}function ol(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}function al(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,o)}),n)}}function sl(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s;var c=Date.now()-o,u=function(){o=Date.now(),r=0,e.apply(t,n)};r||(c>=i?u():r=setTimeout(u,i-c))}}var ll={ERROR_CODES:[7005],DIMENSION:"qDimensionInfo",MEASURE:"qMeasureInfo"},cl=function(e,t){return e[t].reduce((function(e,t,n){var r;return r=t,ll.ERROR_CODES.some((function(e){var t;return e===(null===(t=r.qError)||void 0===t?void 0:t.qErrorCode)}))?e.filtered.push(n):e.reduced.push(t),e}),{reduced:[],filtered:[]})};function ul(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[]).map((function(e){var t,n=null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal;if(n)return n;var r=e.qStateCounts||{},i=r.qLocked,o=void 0===i?0:i,a=r.qOption,s=void 0===a?0:a,l=r.qSelected;return o+s+(void 0===l?0:l)}))}function dl(e){switch(e.qHyperCube.qMode){case"S":return function(e){var t=e.qHyperCube.qSize;return{refs:{dataPages:"qHyperCube.qDataPages"},size:{x:t.qcx,y:t.qcy,dimensions:ul(e)}}}(e);case"K":return function(e){var t=ul(e);return{refs:{dataPages:"qHyperCube.qStackedDataPages"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);case"T":return function(e){var t=ul(e);return{refs:{dataPages:"qHyperCube.qTreeDataPages"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);default:throw new Error("Mode not supported")}}function fl(e){var t=e.originalArray,n=e.newArray,r=e.matchKey;return Array.isArray(t)&&t.length?(n.forEach((function(e){var n=-1;t.some((function(t,i){return t[r]&&t[r]===e[r]&&(n=i),n})),n>-1?t[n]=e:t.push(e)})),t):n}function hl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pl(Object(n),!0).forEach((function(t){hl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gl=Object.prototype.hasOwnProperty,yl=Object.prototype.toString,vl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,xl=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===yl.call(e)},Sl=function(e){if(!e||"[object Object]"!==yl.call(e))return!1;var t,n=gl.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&gl.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||gl.call(e,t)},wl=function(e,t){vl&&"__proto__"===t.name?vl(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ml=function(e,t){if("__proto__"===t){if(!gl.call(e,t))return;if(bl)return bl(e,t).value}return e[t]},kl=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=Ml(s,n),s!==(i=Ml(t,n))&&(u&&i&&(Sl(i)||(o=xl(i)))?(o?(o=!1,a=r&&xl(r)?r:[]):a=r&&Sl(r)?r:{},wl(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&wl(s,{name:n,newValue:i}));return s};function El(e,t,n,r){if(!e)return-1;const i=n.cache,o=e.origin?e.origin():null;o&&(e=o);let a=i.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<i.wrappedFields.length;t++)if(l=i.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),s=i.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(r)&&r.some(((e,t)=>e!==t))){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function Cl(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function Ol(e){let{cache:t,f:n,mainCell:r,p:i,page:o,rowIdx:a,row:s,sourceKey:l,target:c,targetProp:u,columnOrder:d}=e,f=r;if(i.field&&i.field!==n){const e=El(i.field,o,{cache:t},d);if(-1===e)return;f=kl({qRow:a},e(s))}c[u]=Cl(i,f,{key:l})}function Nl(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let e=0;e<i.length;e++)if(void 0!==i[e].field){const a=t.raw(),s=t.key(),l="object"==typeof i[e].field?i[e].field:t.field(i[e].field),{props:c,main:u}=r.normalizeConfig(i[e],t),d=Object.keys(c),f=!!i[e].trackBy,h=typeof i[e].trackBy,p={},m=[],g=[];for(let t=0;t<a.qDataPages.length;t++){const o=El(l,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==o)for(let y=0;y<a.qDataPages[t].qMatrix.length;y++){const v=a.qDataPages[t].qArea.qTop+y,b=kl({qRow:v},o(a.qDataPages[t].qMatrix[y])),x=Cl(u,b,{key:s});if(!u.filter||u.filter(b)){for(let e=0;e<d.length;e++){const r=c[d[e]];let i=r.fields||[r];r.fields&&(x[d[e]]=[]);for(let o=0;o<i.length;o++)Ol({cache:n,f:l,mainCell:b,p:i[o],prop:d[e],page:a.qDataPages[t],rowIdx:v,row:a.qDataPages[t].qMatrix[y],sourceKey:s,target:r.fields?x[d[e]]:x,targetProp:r.fields?o:d[e],columnOrder:a.qColumnOrder});if(r.fields){const t=x[d[e]].map((e=>e.value)),n=x[d[e]].map((e=>e.label));x[d[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(x[d[e]].value)}}}f&&r.track({cfg:i[e],itemData:b,obj:x,target:m,tracker:p,trackType:h}),g.push(x)}}}const y=f?r.collect(m,{main:u,propsArr:d,props:c}):g;o=[...o,...y]}return o}function Tl(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Al(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ql)):void 0===t&&(t=Rl);for(var n,r,i,o,a,s=new Ll(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new Ll(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Il)}function Rl(e){return e.children}function ql(e){return Array.isArray(e)?e[1]:null}function Dl(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Il(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ll(e){this.data=e,this.depth=this.height=0,this.parent=null}function Pl(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}Ll.prototype=Al.prototype={constructor:Ll,count:function(){return this.eachAfter(Tl)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Al(this).eachBefore(Dl)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};var _l={depth:-1},zl={},Fl={};function jl(e){return e.id}function $l(e){return e.parentId}function Bl(e){let t=e.length;if(t<2)return"";for(;--t>1&&!Hl(e,t););return e.slice(0,t)}function Hl(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function Vl(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,i=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(i)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++){let n=Vl(r,i[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(i)){const t=new Array(i.length);r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++)t[e]=Vl(r,i[e]);return t}n[e]in i&&(i=i[n[e]])}return i}function Ul(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let i=0;i<e.length;i++)e[i].children&&e[i].children.length&&(r=[...r,...Ul(e[i].children,t-1,n)]);return r}function Wl(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const r=Math.max(0,Math.min(100,t-e));return e=>Ul(e.children,r-1,n)}return!1}const Yl=/^qDimensionInfo(?:\/(\d+))?/,Gl=/^\/?qMeasureInfo\/(\d+)/,Kl=/\/qAttrExprInfo\/(\d+)/,Xl=/\/qAttrDimInfo\/(\d+)/;function Jl(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function Zl(e,t){let{cube:n}=t;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),i=!1,o=-1,a=-1,s=-1,l=-1,c=-1,u=-1,d=r;const f=n.qEffectiveInterColumnSortOrder,h=Jl(n);return Yl.test(d)&&(i=!0,o=+Yl.exec(d)[1],d=r.replace(Yl,"")),Gl.test(d)&&("K"===n.qMode?c=+Gl.exec(d)[1]:f&&-1!==f.indexOf(-1)?(c=+Gl.exec(d)[1],u=0):u=+Gl.exec(d)[1],d=d.replace(Gl,"")),d&&(Xl.exec(d)?s=+Xl.exec(d)[1]:Kl.exec(d)&&(a=+Kl.exec(d)[1])),l=i?"S"===n.qMode?h[o]:f?f.indexOf(o):o:f&&-1!==f.indexOf(-1)?f.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:u,attrDimIdx:s,attrIdx:a}}function Ql(e,t){let n,r,i=Wl(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:i,attrFn:r,valueFn:n}}function ec(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function tc(e){let{propsArr:t,props:n,item:r,itemData:i,ret:o,sourceKey:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields||[s];let c,u;s.fields&&(c=[],u=[]);for(let n=0;n<l.length;n++){const d=l[n];let f,h,p,m,g,y;if("primitive"===d.type?(p=d.value,y=String(d.value)):("function"==typeof d.value&&(f=e=>d.value(e,r)),"function"==typeof d.label&&(h=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),f&&(p=g.map(f),f=null),h&&(y=g.map(h),h=null),p=d.reduce?d.reduce(p):p,y=d.reduceLabel?d.reduceLabel(y,p):String(p)):(p=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),y=p)):(p=i,y=i)),s.fields){const e=f?f(p):p;c.push(e),u.push(h&&null!=y?h(y):null!=y?y:String(e))}else{const n=f?f(p):p;o[t[e]]={value:n,label:h?h(y):null!=y?y:String(n)},d.field&&(o[t[e]].source={field:d.field.key(),key:a})}}c&&(o[t[e]]={value:"function"==typeof s.value?s.value(c,r):c,label:"function"==typeof s.label?s.label(u,r):u})}}const nc=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",i="K"===e.qMode?"qSubNodes":"qNodes",o=Vl(r,e);return o&&o[0]?(t.tree=Al(o[0],n.children||(e=>e[i])),t.tree):null};function rc(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map(((e,t)=>t))}(e),r=e.fields(),i=e.fields().filter((e=>"dimension"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),o=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),a={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r="__root",l=!1;for(let e=0;e<i.length;e++){var s;const t=n[i[e]],o="".concat(r,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);a[o]||(a[o]=ml({__id:o,__parent:r,qValues:[]},t),l=!0),r=o}if(l)for(let e=0;e<o.length;e++){const t=n[o[e]];a[r].qValues.push(t)}}const l=Object.keys(a).map((e=>a[e]));return function(){var e,t=jl,n=$l;function r(r){var i,o,a,s,l,c,u,d,f=Array.from(r),h=t,p=n,m=new Map;if(null!=e){const t=f.map(((t,n)=>function(e){let t=(e=`${e}`).length;return Hl(e,t-1)&&!Hl(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(Bl),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(Bl(e)),f.push(Fl));h=(e,n)=>t[n],p=(e,t)=>n[t]}for(a=0,i=f.length;a<i;++a)o=f[a],c=f[a]=new Ll(o),null!=(u=h(o,a,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?zl:c)),null!=(u=p(o,a,r))&&(u+="")&&(c.parent=u);for(a=0;a<i;++a)if(u=(c=f[a]).parent){if(!(l=m.get(u)))throw new Error("missing: "+u);if(l===zl)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(s)throw new Error("multiple roots");s=c}if(!s)throw new Error("no root");if(null!=e){for(;s.data===Fl&&1===s.children.length;)s=s.children[0],--i;for(let e=f.length-1;e>=0&&(c=f[e]).data===Fl;--e)c.data=null}if(s.parent=_l,s.eachBefore((function(e){e.depth=e.parent.depth+1,--i})).eachBefore(Il),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=Pl(e),r):t},r.parentId=function(e){return arguments.length?(n=Pl(e),r):n},r.path=function(t){return arguments.length?(e=Pl(t),r):e},r}().id((e=>e.__id)).parentId((e=>e.__parent))(l)}const ic=e=>{let{propsArr:t,props:n,cube:r,cache:i,itemDepthObject:o,f:a}=e;for(let e=0;e<t.length;e++){const i=n[t[e]],s=i.fields?i.fields:[i];for(let e=0;e<s.length;e++){const t=s[e];if(t.field!==a){const e=Ql(o,Zl(t.field,{cube:r}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function oc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=t.raw(),o=t.key(),a="S"===i.qMode?rc(t):nc(i,n,e);if(!a)return null;const s=a.height,l=[];for(let o=0;o<=s;o++){let a=null;if(o>0)if("S"===i.qMode){let e=Jl(i)[o-1];a=n.fields[e]}else{let e=i.qEffectiveInterColumnSortOrder[o-1];o>i.qEffectiveInterColumnSortOrder.length&&(e=i.qDimensionInfo.length),a=n.fields[e]}const{props:s,main:c}=r.normalizeConfig(ml(ml({},e),{},{field:a?a.key():void 0}),t),u=Object.keys(s);l[o]={propsArr:u,props:s,main:c};const d=a?Zl(a,{cube:i}):{fieldDepth:0};ic({propsArr:u,props:s,cube:i,cache:n,itemDepthObject:d,f:a})}const c=a.copy().descendants(),u=a.descendants();for(let e=0;e<u.length;e++){const t=l[u[e].depth].propsArr,n=l[u[e].depth].props,r=l[u[e].depth].main,i=c[e],a=i.data,s=ec(r,a,{key:o});tc({propsArr:t,props:n,item:i,itemData:a,ret:s,sourceKey:o}),u[e].data=s}return a}function ac(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let a=0;a<i.length;a++)if(void 0!==i[a].field){const s=t.raw(),l=t.key();if(!nc(s,n,e))continue;const c="object"==typeof i[a].field?i[a].field:t.field(i[a].field),{props:u,main:d}=r.normalizeConfig(i[a],t),f=Object.keys(u),h=Zl(c,{cube:s}),{nodeFn:p,attrFn:m,valueFn:g}=Ql({fieldDepth:0},h);ic({propsArr:f,props:u,cube:s,cache:n,itemDepthObject:h,f:c});const y=!!i[a].trackBy,v=typeof i[a].trackBy,b={},x=[],S=p(n.tree),w=[];for(let e=0;e<S.length;e++){const t=S[e],n=m?m(g(t)):g(t);if(d.filter&&!d.filter(n))continue;const o=ec(d,n,{key:l});tc({propsArr:f,props:u,item:t,itemData:n,ret:o,sourceKey:l}),y&&r.track({cfg:i[a],itemData:n,obj:o,target:x,tracker:b,trackType:v}),w.push(o)}const M=y?r.collect(x,{main:d,propsArr:f,props:u}):w;o=[...o,...M]}return o}var sc,lc,cc=(sc=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
9
  e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.length,h=e.search(/[0-9\-\+#]/),p=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=f-g,v=e.substring(y,y+1),b=y+("."===v||","===v?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(h,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",y=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-y+1)%l)&&b<f-l&&(m+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),p+(n?"-":"")+r+x}},sc(lc={exports:{}}),lc.exports);function uc(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const dc={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},fc=/%\)?$/,hc=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,pc=/^\(oct\)/i,mc=/^\(dec\)/i,gc=/^\(hex\)/i,yc=/^\(bin\)/i,vc=/^\(rom\)/i,bc=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,xc=/#|0/g;function Sc(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function wc(e,t,n){const r=uc(e);return n?r:new RegExp(r||"",t)}function Mc(e,t,n,r){let i,o,a,s,l,c,u,d,f,h=e.pattern;var p,m;r&&(e.abbreviate=!0),p=t,(m=n)&&(m=uc(m)),p&&(p=uc(p)),f=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),a=h.match(f),a=a?a[0]:"",s=a?h.substr(0,h.indexOf(a)):h,l=a?h.substring(h.indexOf(a)+a.length):"",a||(a=h?"#":"##########"),t&&t===n&&(i=a.split(n),o=i.pop(),a=i.join("")+n+o,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(a=a.replace(wc(c,"g"),t)),u=n,n=".",u&&(a=a.replace(wc(u,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=h.split(u);let y;g[1]&&(y=g[1].match(xc)),e.prefix=s||"",e.postfix=l||"",e.pattern=h,e.maxPrecision=y?y.length:2,e.percentage=fc.test(h),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(wc(t,null,!0),"|").concat(wc(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=u,e.t=t,e.d=n,e.temp=d}class kc{constructor(e,t,n,r,i){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=i||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return dc;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new kc(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],bc.test(e[0])&&(r.positive.isFunctional=!0),e[1]?bc.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?bc.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const i="U"===this.type;r.positive.isFunctional||Mc(r.positive,t,n,i),r.negative&&!r.negative.isFunctional&&Mc(r.negative,t,n,i),r.zero&&!r.zero.isFunctional&&Mc(r.zero,t,n,i)}formatValue(e){let t,n,r,i,o,a,s,l,c,u=this._prepared,d="",f="",h=e;if(isNaN(e))return"".concat(h);if(e=+e,!1===u.pattern)return e.toString();if(0===e&&u.zero)return u=u.zero,u.pattern;if(e<0&&u.negative?(u=u.negative,e=-e):u=u.positive,o=u.d,a=u.t,u.isFunctional)e=function(e,t,n){let r;return hc.test(t)?e=Sc(e,Number(/\d{2}/.exec(t)[0]),t,n):pc.test(t)?e=Sc(e,8,t,n):mc.test(t)?e=Sc(e,10,t,n):gc.test(t)?e=Sc(e,16,t,n):yc.test(t)?e=Sc(e,2,t,n):vc.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;i>0;)for(n=0;n<a.length;n++)if(a[n]<=i){r+=s[n],i-=a[n];break}for(n=0;n<o;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}(e,u.pattern,o);else{if(u.percentage&&(e*=100),u.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,i,o=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);o<=n&&s<t.length;)s++,o=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?i=r:(n<0&&r<0||!r)&&(o<0&&o-n<=u.maxPrecision?i=o:r<=n&&!(o>0&&-n<=u.maxPrecision)&&(i=r)),i&&(d=this.abbreviations[i],e/=10**i)}if(r=Math.abs(e),t=u.temp,l=u.numericPattern,c=l.split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,c||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=l.split(o)[0];if(n+=o,e=cc(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let i=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=i.length;s<n;s++)i+="0";i&&(e+=o+i)}else 0===t&&(i=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),f=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=cc(l,e)}e=e.replace(u.numericRegex,(e=>e===a?u.groupTemp:e===o?u.decTemp:"")),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return u.prefix+e+f+d+u.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function Ec(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:i=e=>e}=t;let o,a,s=Object.create(null),l=Object.create(null),c=0,u=0;return o=r?function(){return a=i(...arguments),o.has(a)?o.get(a):o.set(a,e(...arguments))}:t=>(a=i(t),o.has(a)?o.get(a):o.set(a,e(t))),o.set=(e,t)=>(c>=n&&(delete s[l[u]],delete l[u],c--,u++),s[e]=t,l[c]=e,c++,t),o.get=e=>s[e],o.has=e=>e in s,o.clear=()=>{s=Object.create(null),l=Object.create(null),c=0,u=0},o.size=()=>c,o}function Cc(e,t,n,r,i){const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new kc(...t)}(i,e,t,n,r),a=Ec(o.formatValue.bind(o),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),o.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),o.pattern=e,o.prepare()),o.pattern},s}const Oc="D",Nc="T",Tc="TS",Ac=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Rc=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],qc=["January","February","March","April","May","June","July","August","September","October","November","December"],Dc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ic(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function Lc(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class Pc{constructor(e,t,n){const r=e||{};r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:Ac,qDayNames:Rc,qLongMonthNames:qc,qMonthNames:Dc}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),t||(t={[Nc]:r.qTimeFmt||"hh:mm:ss",[Oc]:r.qDateFmt||"YYYY-MM-DD",[Tc]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new Pc(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=function(e,t){let n,r=function(e){const t=e,n=24*Lc(t),r=60*Lc(n),i=60*Lc(r),o=1e3*Lc(i);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(i),f:Math.round(o)}}(e),i=r.d,o=r.h,a=r.m,s=r.s,l=r.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let u="";return n&&(u=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:i,h:o,m:a,s:s,f:l,t:u}}(e,t));const i=(o=this,a=r,{"Y+|y+":{Y:"".concat(Number("".concat(a.year).slice(-2))),YY:Ic("".concat(a.year).slice(-2),2),YYY:Ic("".concat(a.year).slice(-3),3),def:e=>Ic("".concat(a.year),e.length)},"M+":{M:a.month+1,MM:Ic("".concat(a.month+1),2),MMM:o.locale_months_abbr[a.month],def:o.locale_months[a.month]},"W+|w+":{W:a.day,WW:Ic("".concat(a.day),2),WWW:o.locale_days_abbr[a.day],def:o.locale_days[a.day]},"D+|d+":{D:a.date,def:e=>Ic("".concat(a.date),e.length)},"h+|H+":{h:a.h,def:e=>Ic("".concat(a.h),e.length)},"m+":{m:a.m,def:e=>Ic("".concat(a.m),e.length)},"s+|S+":{s:a.s,def:e=>Ic("".concat(a.s),e.length)},"f+|F+":{def(e){let t="".concat(a.f),n=e.length-t.length;if(n>0)for(let e=0;e<n;e++)t+="0";else n<0&&(t=t.slice(0,e.length));return t}},"t{1,2}|T{1,2}":{def(e){let t=a.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var o,a;const s=[];for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&s.push(e);const l=new RegExp(s.join("|"),"g");return t.replace(l,(e=>{let t,n,r;for(n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in i[n])if(t===e||t.toLowerCase()===e){r=i[n][t],void 0===r&&(r=i[n][t.toLowerCase()]);break}return void 0===r&&(r=i[n].def),"function"==typeof r&&(r=r(e)),r}))}}function _c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Pc(...t)}function zc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=_c(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=Ec(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function i(e){return"IV"!==t?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function o(e){return e=i(e),r(e)}return o.format=function(e,t){return r.clear(),t=i(t),n.format(t,e)},o.locale=function(i){return n=_c(i,e,t),r=Ec(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},o.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},o}function Fc(){let e,{meta:t,id:n,key:r,localeInfo:i,fieldExtractor:o,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),u="dimension"===s?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return zc(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",i=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",o="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,i=e.qNumFormat.qDec||i,o=e.qNumFormat.qType||o,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===o)&&(n="#".concat(i,"##"),o="U"),Cc(n,r,i,o,t)}(t,i),f="dimension"===s?"first":(e,t)=>d(t),h={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=o(h)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:u,reduceLabel:f,formatter:()=>d,tags:()=>t.qTags};return h}function jc(e,t,n,r,i){return(t[e]||[]).map(((t,o)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(o),s={instance:Fc(kl({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},i))};return s.attrDims=jc("qAttrDimInfo",t,n,a,kl({},i,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=jc("qAttrExprInfo",t,n,a,kl({},i,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=jc("qMeasureInfo",t,n,a,kl({},i,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function $c(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const o=$c.util,a={cache:r,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,o),hierarchy:e=>a.hierarchy(e,s,r,o),_cache:()=>r};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(a.extractor=ac,a.hierarchy=oc,a.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(a.extractor=Nl,a.pages=i.qDataPages,a.hierarchy=oc):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,o);const l="S"===i.qMode?e=>e.qElemNumber:void 0,c="S"===i.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...jc("qDimensionInfo",i,e,"",kl({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...jc("qMeasureInfo",i,e,"",kl({},a,{value:c,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const u=e=>{e.forEach((e=>{r.allFields.push(e.instance),u(e.measures),u(e.attrDims),u(e.attrExps)}))};return u(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),i=Fc(ml({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,o),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(i)})),r.allFields.push(...r.virtualFields),s}const Bc=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],Hc=/\/qDimensionInfo(?:\/(\d+))?/,Vc=/\/qMeasureInfo\/(\d+)/,Uc=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,Wc=/\/qAttrExprInfo\/(\d+)/,Yc=/\/?qHyperCube/,Gc=/\/?qTreeData/,Kc=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),Xc=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function Jc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,i=t.primarySource,o=[],a={},s=e.isActive();let l=!1;return e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,i=-1,o="",a=e=>e;Yc.test(e)?(o="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=Kc):Gc.test(e)&&(o="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=Xc);let s=!0;if(Hc.test(e)&&(r=+Hc.exec(e)[1]),Vc.test(e)&&(i=+Vc.exec(e)[1]),Uc.test(e)){i=-1,r=0;const e=+Uc.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(Wc.test(e)){const e=i;if(t){i=0;const a=Vl(o,t);i+=(a.qMeasureInfo||[]).length,r>-1?(i=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),i),r=-1):(i=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),i),i=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),i)),i+=+Wc.exec(n)[1]}else r>-1?(r=-1,i=+Wc.exec(n)[1]):i+=+Wc.exec(n)[1]+1}return Bc.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:i,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,o=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===i||!i){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===o||s>=o)&&o>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-o})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==i&&(i||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,o.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s?[{method:"resetMadeSelections",params:[]}]:(a.rangeSelectHyperCubeValues&&o.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),a.selectHyperCubeContinuousRange&&o.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&o.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&o.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&o.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),o);var c}function Zc(e){$c.util=e.data("matrix").util,e.data("q",$c),e.formatter("q-number",Cc),e.formatter("q-time",zc)}function Qc(e){var t=nl(e.layout||{},e.path.split("/").join("."));if(!t)return!1;var n=t.qIsOneAndOnlyOne;return void 0!==n&&n}function eu(e){var t=e.brush,n=e.colorField,r=e.legendAlias,i=e.useLegendCube,o=void 0!==i&&i;!n||/qAttrDimInfo/.test(n)?(t.removeKeyAlias("attrDim/qDimensionInfo/0"),r&&t.removeKeyAlias(r),t.addKeyAlias("attrDim/qDimensionInfo/0","qHyperCube/".concat(n))):o&&t.addKeyAlias(r,"qHyperCube/".concat(n))}Zc.qBrushHelper=Jc,Zc.selections=Jc;var tu="Shift";var nu=function(e,t){return t[e]?nu(e+1,t):e},ru=function(e,t){var n=t.reduce((function(e,t){return e[t]=!0,e}),{});return e.reduce((function(e,t,r){var i=nu(r,n);return n[i]=!0,e[r]=i,e}),{})};function iu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layout,n=e.filtered,r=void 0===n?{}:n,i=(null==t?void 0:t.qHyperCube)||{},o=i.qDimensionInfo,a=void 0===o?[]:o,s=i.qMeasureInfo,l=void 0===s?[]:s;return{dimensions:ru(a,r.dimensions||[]),measures:ru(l,r.measures||[])}}function ou(e){var t=e.selection,n=e.fieldMap,r=t.method,i=t.params;if("selectHyperCubeValues"===r){var o=n.dimensions[i[1]];void 0!==o&&(i[1]=o)}return"selectHyperCubeContinuousRange"===r&&i[1].forEach((function(e){var t=n.dimensions[e.qDimIx];void 0!==t&&(e.qDimIx=t)})),t}var au=[],su=0,lu=function(e){var t=au.filter((function(e){var t;return null===(t=e.selections)||void 0===t?void 0:t.isActive()}));t.length&&("Enter"===e.key?t.forEach((function(e){return e.selections.confirm()})):"Escape"!==e.key&&"Esc"!==e.key||t.forEach((function(e){return e.selections.cancel()})))};function cu(e){var t=e.chart,n=e.document,r=e.selectionInfo,i=e.eventName,o=e.componentName,a=e.brushName,s=void 0===a?"selection":a,l=e.emit,c=void 0===l?"rangeClear":l,u=r.event===i,d=n.querySelector("[data-key='".concat(o,"-edge-0']"));if(u||!d)return!1;var f=t.component(o);return!!f&&(f.emit(c),"string"==typeof s&&t.brush(s).clear(),f)}var uu=["chart","document","selections","selectionInfo"],du=function(e){e.chart,e.document,e.selections,e.selectionInfo;var t=jo(e,uu);t.clearDiscrete(),t.clearContinuous(),t.clearMinor(),t.clearRange(),t.clearTap(),t.clearLegend()};function fu(e){var t,n=e.lasso;null!=n&&null!==(t=n.active)&&void 0!==t&&t.call(n)&&(null==n||n.action(!1))}function hu(e){var t,n=e.chart,r=e.selectionInfo,i=e.selectionActions,o=e.actions,a=void 0===o?{}:o,s=e.selections,l=e.selectionEvents;if(!1===i||!1===l)return function(){};var c=i.reset,u=void 0===c?fu:c,d=i.clear,f=!1!==d&&function(e){var t=e.clear,n=void 0===t?du:t,r=e.selections,i=e.selectionInfo,o=e.chart;return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cleared,t={selections:r,selectionInfo:i,chart:o,document:document,cleared:e};return n(Fo({clearDiscrete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"discreteRange":i,a=e.componentName,s=void 0===a?"discrete-range-brush":a,l=e.cleared;return cu({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,emit:"areaClear",brushName:e.brushName})}(Fo(Fo({},t),e))},clearContinuous:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"continuousRange":i,a=e.componentName,s=void 0===a?"continuous-range-brush":a,l=e.cleared;return cu({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,brushName:e.brushName})}(Fo(Fo({},t),e))},clearMinor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.componentName,o=void 0===i?"minor-range-brush":i,a=e.eventName,s=void 0===a?"minorRange":a,l=e.cleared,c=void 0!==l&&l,u=e.brushName,d=cu({selectionInfo:t,chart:n,document:r,eventName:c?void 0:s,componentName:o,brushName:void 0!==u&&u});if(d){var f=d.settings.settings,h=f.scale,p=f.brush,m=n.scale(h).data().fields.map((function(e){return e.id()})),g=n.brush(p),y=g.brushes().filter((function(e){return"range"===e.type&&m.some((function(t){return t===e.id}))}));g&&y.length&&y.forEach((function(e){g.removeRanges(e.brush.ranges().map((function(t){return{key:e.id,range:t}})))}))}}(Fo(Fo({},t),e))},clearRange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"xAxis":o,s=e.cleared;cu({selectionInfo:t,chart:n,document:r,eventName:void 0!==s&&s?void 0:a,componentName:"".concat(a,"-range-brush"),emit:"areaClear",brushName:!1})&&i.clear()}(Fo(Fo({},t),e))},clearTap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.chart,n=e.selectionInfo,r=e.selections,i=e.events,o=void 0===i?["tap"]:i,a=e.brushNames,s=void 0===a?[]:a;if(n&&o.includes(n.event)){var l=n.currentComponent;n.previousComponent!==l&&(r.clear(),s.forEach((function(e){return t.brush(e).end()})))}}(Fo(Fo({},t),e))},clearLegend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"legendRange":o,s=e.componentName,l=void 0===s?"legend-range-brush":s,c=e.cleared,u=void 0!==c&&c,d=e.brushName;cu({selectionInfo:t,chart:n,document:r,eventName:u?void 0:a,componentName:l,brushName:void 0!==d&&d})&&i.clear()}(Fo(Fo({},t),e))}},t))}}({clear:d,selections:s,selectionInfo:r,chart:n}),h=function(e){var t=e.chart,n=e.actions,r=e.reset,i=e.clear,o=!1,a={deactivated:function(e){var t=(n||{}).lasso;r({e:e,lasso:void 0!==t&&t})},canceled:function(e){var o=(n||{}).lasso;r({e:e,lasso:void 0!==o&&o}),i({e:e,chart:t,document:document})},cleared:function(e){o||(o=!0,i({e:e,chart:t,document:document,cleared:!0}),o=!1)}};return!1===r&&delete a.deactivated,!1===i&&delete a.cleared,!1===r&&!1===i&&delete a.canceled,a}({chart:n,clear:f,reset:u,actions:a}),p={};Object.entries(h).forEach((function(e){var t=Bo(e,2),n=t[0],r=t[1];p[n]=function(e,t){return t?function(n){return t({event:n,defaultFunc:e})}:e}(r,l[n])}));var m=function(e){var t=e.selectionEvents,n=e.selections,r=e.selectionInfo,i=e.clear,o=e.chart,a=e.document,s=t.start,l={selections:n,selectionInfo:r,chart:o,document:a},c=function(e){return Object.assign(r,e||{})},u=function(e){var t=e.event,n=e.components;return function(){return function(e){var t=e.selectionInfo,n=e.clear,r=e.event,i=e.components,o=void 0===i?[]:i;(0,e.setSelectionInfo)(Fo(Fo({},void 0===t?{}:t),{},{event:r,components:o.map((function(e){return e.key})).filter(Boolean)})),n()}({event:t,components:n,clear:i,selectionInfo:r,setSelectionInfo:c})}};return"function"==typeof s?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];s(Fo(Fo({defaultFunc:u({event:e,components:t}),setSelectionInfo:c,clear:i},l),{},{event:e,components:t}))}:function(e){u({event:e,components:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]})()}}({selectionEvents:l,selections:s,selectionInfo:r,clear:f,chart:n,document:document});return null==a||null===(t=a.select)||void 0===t||t.on("start",m),Object.entries(p).forEach((function(e){var t=Bo(e,2),n=t[0],r=t[1];null==s||s.on(n,r)})),function(){var e;null==a||null===(e=a.select)||void 0===e||e.removeListener("start",m),Object.entries(p).forEach((function(e){var t=Bo(e,2),n=t[0],r=t[1];null==s||s.removeListener(n,r)}))}}var pu=[{key:"qHyperCube/qDimensionInfo/0:numeric",includeMax:!1}];function mu(e){var t=e.chart,n=e.actions,r=e.selections,i=e.picassoQ,o=e.config,a=o.allowSimultaneous,s=void 0!==a&&a,l=o.majorScale,c=void 0===l?void 0:l,u=o.selectionActions,d=void 0===u?{}:u,f=d.clear,h=d.reset,p=o.selectionEvents,m=void 0===p?{deactivated:void 0,canceled:void 0,cleared:void 0,start:void 0}:p,g=o.brushEvents,y=void 0===g?{}:g,v=o.brushName,b=void 0===v?"selection":v,x=o.brushMaxListeners,S=void 0===x?20:x,w=o.brushRanges,M=void 0!==w&&w,k=o.interceptors,E=void 0===k?{}:k,C=o.selectionsFn,O=void 0===C?i.selections:C,N=t.brush(b);if("number"==typeof S&&N.setMaxListeners(S),M){var T=!0===M?pu:M;N.configure({ranges:T})}var A={canSelect:!0,getIsSelectionLocked:!1,isInnerDimensionLocked:!1,lockedDimensions:[],singleSelectIndex:0,selectionInfo:{colorField:void 0,components:[],event:void 0,currentComponent:void 0,previousComponent:void 0}},R=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.selections,r=t.brush,i=t.majorScale,o=t.actions,a=t.selectionsFn,s=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).path,l=void 0===s?"/qHyperCubeDef":s;if(!n)return{layout:function(){},filteredFields:function(){},allowSimultaneous:function(){},release:function(){}};var c=++su,u=null,d={dimensions:[],measures:[]},f=[],h={};n.on=n.on.bind(n),n.isActive=n.isActive.bind(n),n.addListener=n.addListener.bind(n),n.removeListener=n.removeListener.bind(n);var p=function(e){var t=e.brush,n=e.getConfig;return{interceptor:function(e){var r=t.brushes(),i=n(),o=i.allowSimultaneous,a=i.layout,s=void 0===a?{}:a;r.forEach((function(n){var r,i,a;("range"===n.type||null!==(r=e[0])&&void 0!==r&&r.key&&(null===(i=e[0])||void 0===i?void 0:i.key)!==n.id&&0!==o.indexOf(null===(a=e[0])||void 0===a?void 0:a.key))&&t.clear([])}));var l=e.filter((function(e){return-2!==e.value}));if(l.length>1){var c=function(e){var t=e.layout,n=void 0===t?{}:t,r=e.values,i=void 0===r?[]:r;if(null==i||!i.length)return[];var o=Array.from(new Set(i.map((function(e){return e.key})))),a=[];return o.forEach((function(e){var t=Qc({layout:n,path:e}),r=i.filter((function(t){return t.key===e})),o=t?[r.pop()]:r;a.push.apply(a,Ho(o))})),a.filter(Boolean)}({layout:s,values:l});return c}return l},rangeInterceptor:function(e){var r=t.brushes(),i=n().allowSimultaneous;return r.filter((function(e){return"value"===e.type})).length?(t.clear([]),e):(r.forEach((function(n){var r=n.id===e[0].key||i.includes(n.id)&&i.includes(e[0].key);"range"!==n.type||r||t.clear([])})),e)}}}({brush:r,getConfig:function(){return{layout:u,allowSimultaneous:f}}}),m=p.rangeInterceptor,g=p.interceptor;r.intercept("set-ranges",m),r.intercept("toggle-ranges",m),r.intercept("toggle-values",g),r.intercept("set-values",g),r.intercept("add-values",g),r.on("start",(function(){return n.begin(l)}));var y={activate:function(){},deactivated:function(){return r.end()},cleared:function(){return r.clear()},canceled:function(){return r.end()}};!function(e,t){Object.keys(t).forEach((function(n){e.on(n,t[n])}))}(n,y);var v=null==i||null===(e=i.max)||void 0===e?void 0:e.call(i);return null!=o&&o.select?(o.select.on("start",(function(){var e;r.start(),"function"==typeof o.select.getBrushOptions&&(h=(e=o.select).getBrushOptions.apply(e,arguments))})),o.select.on("end",(function(){var e=a(r,h,u),t=iu({layout:u,filtered:d});e.forEach((function(e){var r=ou({selection:e,fieldMap:t});(function(e,t,n){if(t&&void 0!==n&&"selectHyperCubeContinuousRange"===e.method){var r=e.params;if(r&&r[1]&&r[1][0]){var i=r[1][0],o=i.qDimIx,a=i.qRange;"undefined"!==o&&a&&!1===a.qMaxInclEq&&a.qMax>=n&&(a.qMaxInclEq=!0)}}})(r,o.select.brushSelectionIncludeMax,v),n.select(r)}))}))):r.on("update",(function(){var e=a(r,h,u),t=iu({layout:u,filtered:d});e.forEach((function(e){n.select(ou({selection:e,fieldMap:t}))}))})),0===au.length&&document.addEventListener("keyup",lu),au.push({key:c,selections:n}),{layout:function(e){u=e},filteredFields:function(e){d=e},allowSimultaneous:function(e){f=e},release:function(){u=null;var e=au.indexOf(au.filter((function(e){return e.key===c}))[0]);-1!==e&&au.splice(e,1),au.length||document.removeEventListener("keyup",lu),function(e,t){Object.keys(t).forEach((function(n){e.removeListener(n,t[n])}))}(n,y)}}}({brush:N,majorScale:c,actions:n,selections:r,picassoQ:i,selectionsFn:O});!function(e){var t=e.brush,n=e.interceptors,r=void 0===n?{}:n;Object.entries(r).forEach((function(e){var n=Bo(e,2),r=n[0],i=n[1];(Array.isArray(i)?i:[i]).forEach((function(e){t.intercept(r,e)}))}))}({brush:N,interceptors:E});var q=function(e){var t=e.chart,n=e.selectionActions,r=e.brush,i=e.actions,o=e.selectionInfo,a=e.selections,s=e.selectionEvents,l=function(e){var t=e.brush,n=e.chart,r=e.selectionInfo,i=e.brushEvents,o=void 0===i?{}:i,a=Object.entries(o).map((function(e){var i=Bo(e,2),o=i[0],a=i[1],s=function(){return a({chart:n,selectionInfo:r})};return t.on(o,s),[o,s]}));return function(){a.forEach((function(e){var n=Bo(e,2),r=n[0],i=n[1];t.removeListener(r,i)}))}}({brush:r,chart:t,selectionInfo:o,brushEvents:e.brushEvents}),c=hu({chart:t,selectionInfo:o,selectionActions:n,actions:i,selections:a,selectionEvents:s}),u=function(e){var t=e.actions;if(null==t||!t.lasso)return function(){};var n=!1,r=function(e){n||e.key!==tu||(t.lasso.action(!0),n=!0)},i=function(e){e.key===tu&&(t.lasso.action(!1),n=!1)};return document.addEventListener("keydown",r),document.addEventListener("keyup",i),function(){document.removeEventListener("keydown",r),document.removeEventListener("keyup",i)}}({actions:i});return function(){l(),c(),u()}}({chart:t,brush:N,actions:n,selections:r,selectionInfo:A.selectionInfo,selectionActions:{clear:f,reset:h},selectionEvents:m,brushEvents:y});if(s){var D=!0===s?Ho(Array(15)).map((function(e,t){return"qHyperCube/qMeasureInfo/".concat(t)})):s;R.allowSimultaneous(D)}return{unbindEvents:q,state:A,picassoSelections:R,brush:N}}var gu=["colorField","useLegendCube"];function yu(e){var t=e.chart,n=e.selections,r=e.actions,i=void 0!==r&&r,o=e.config,a=void 0===o?{}:o,s=mu({chart:t,actions:i,selections:n,picassoQ:Zc,config:a}),l=s.unbindEvents,c=s.state,u=s.picassoSelections,d=s.brush,f=a.custom,h=void 0===f?{}:f,p=a.legendAlias,m=void 0===p?void 0:p,g=a.setBrushAliases,y=void 0===g?eu:g;return{getIsDimensionLocked:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return c.lockedDimensions[e]},getIsSelectionLocked:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null!==(e=null==n||null===(t=n.isLocked)||void 0===t?void 0:t.call(n))&&void 0!==e?e:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(null==e||!e.length)return!1;var t=e.filter((function(e){return"object"===Vo(e.data)&&Array.isArray(e.data.fields)})).every((function(e){return e.data.fields.every((function(e){var t=e.raw();return!(!t.qLocked&&t.qCardinal)}))}));return t}(r)},getIsSingleSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.singleSelectIndex;return c.singleSelectDimensions[e]},getCanSelect:function(){return c.canSelect},getSelectionsObject:function(){return n},getSelectionInfo:function(){return c.selectionInfo},setLayout:function(e){var t=function(e){var t,n,r,i=e.selections,o=e.picassoSelections,a=e.layout,s={lockedDimensions:[],singleSelectDimensions:[]};null!=i&&null!==(t=i.isModal)&&void 0!==t&&t.call(i)&&i.confirm(),o.layout(a);var l=(null!==(n=null==a?void 0:a.qHyperCube)&&void 0!==n?n:{}).qDimensionInfo,c=void 0===l?[]:l;return s.lockedDimensions=c.map((function(e){return!!e.qLocked})),s.singleSelectDimensions=c.map((function(e,t){return Qc({layout:a,path:"qHyperCube/qDimensionInfo/".concat(t)})})),s.singleSelectIndex=function(e){var t,n=((null==e?void 0:e.qHyperCube)||{}).qDimensionInfo,r=void 0===n?[]:n;return null!==(t=r.map((function(e,t){var n;return!(e.qLocked||(null===(n=e.qCardinalities)||void 0===n?void 0:n.qHypercubeCardinal)<=1)&&t})).filter((function(e){return"number"==typeof e}))[0])&&void 0!==t?t:Math.max(r.length-1,0)}(a),s.canSelect=0===c.length||c.some((function(e){return!e.qLocked})),s.dimensionLocked=!(null===(r=c[0])||void 0===r||!r.qLocked),s}({selections:n,picassoSelections:u,layout:e});Object.assign(c,t)},setFilteredFields:function(e){u.filteredFields(e)},setBrushAliases:function(e){var t=e.colorField,n=e.useLegendCube,r=void 0!==n&&n,i=jo(e,gu),o=Fo({useLegendCube:r,colorField:t,brush:d,legendAlias:m},i);y(Fo(Fo({},o),{},{defaultFunc:function(){return eu(o)}}))},destroy:function(){l(),u.release()},custom:Fo({},h)}}var vu="'Source Sans Pro', 'Arial', 'sans-serif'",bu="#333333",xu="#595959",Su="#737373",wu="#cccccc",Mu="#e6e6e6";function ku(e){var t={};return[].concat(Ho(e),Ho([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",xu],["object","axis.label.name","fontFamily",vu],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",wu],["object","axis.line.minor","color",Mu],["object","axis.title","color"],["object","axis.title","fontFamily",vu],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Mu],["object","grid.line.major","color",wu],["object","grid.line.minor","color",Mu],["object","label.value","color",xu],["object","label.value","fontFamily",vu],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",xu],[!1,"label.value","lightColor",Mu],["object","outOfRange","color","#999"],["object","legend.title","color",bu],["object","legend.title","fontFamily",vu],["object","legend.title","fontSize","15px"],["object","legend.label","color",xu],["object","legend.label","fontFamily",vu],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",bu],["object","referenceLine.label.name","fontFamily",vu],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Mu],["object","referenceLine.outOfBounds","fontFamily",vu],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",Su,function(e){return"transparent"===e?Su:e}]])).reduce((function(e,n){var r="".concat(n[0],"-").concat(n[1],"-").concat(n[2],"}");return t[r]||(t[r]=!0,e.push(n)),e}),[]).sort((function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)}))}var Eu=function(e){return e};function Cu(e){var t=e.theme,n=e.id,r=e.transform,i=e.extend,o=e.matrix,a={},s=r.reduce((function(e,t){var n=Bo(t,2),r=n[0],i=n[1];return e[r]=i,e}),{});return o.forEach((function(e){var r=Bo(e,5),i=r[0],o=r[1],l=r[2],c=r[3],u=r[4],d=void 0===u?function(e){return e}:u,f=function(e){var t=e.theme,n=e.base,r=e.path,i=e.attribute,o=e.defaultValue,a=void 0===o?void 0:o;if(!t||!1===n)return a;var s=t.getStyle(n,r,i);return void 0===s?a:s}({theme:t,base:"object"===i&&n?"".concat("object",".").concat(n):i,path:o,attribute:l,defaultValue:c}),h=(s["".concat(o,".").concat(l)]||Eu)(d(f));il(a,[o,l].filter(Boolean).join("."),h)})),i.forEach((function(e){var t=Bo(e,2),n=t[0],r=t[1];il(a,n,r)})),a}var Ou={NOOP:function(){},FALSE:function(){return!1},ARRAY:function(){return[]},OBJECT:function(){return{}}},Nu="chart-modules-tooltip",Tu="#".concat(Nu);function Au(){if(!document.querySelector(Tu)){var e=document.createElement("div");e.id=Nu,e.setAttribute("data-qs-css",""),e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function Ru(e){return{show:!0,key:e.key,type:"tooltip",layout:{displayOrder:3},beforeMount:function(){Au()},beforeUpdate:function(){Au()},destroyed:function(){var e;null!=(e=document.querySelector(Tu))&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)},settings:{appendTo:function(){return document.querySelector(Tu)},direction:e.rtl?"rtl":"ltr",duration:e.duration},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'","empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}var qu="position",Du={bar:"rect",diamond:"path",point:"circle",square:"rect",triangle:"path","n-polygon":"path",slice:"path"},Iu=function(e){return e.data.value},Lu=function(e){var t,n=e.data;return null==n||null===(t=n.major)||void 0===t?void 0:t.value};var Pu=Number.MAX_VALUE;function _u(e){var t=e.nodes.reduce((function(e,t){var n=t.bounds;return e.xMin=Math.min(e.xMin,n.x,n.x+n.width),e.yMin=Math.min(e.yMin,n.y,n.y+n.height),e.xMax=Math.max(e.xMax,n.x,n.x+n.width),e.yMax=Math.max(e.yMax,n.y,n.y+n.height),e}),{xMin:Pu,xMax:-Pu,yMin:Pu,yMax:-Pu}),n=t.xMin,r=t.xMax,i=t.yMin;return{x:n,y:i,width:r-n,height:t.yMax-i}}function zu(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.nodes;if(!o.length)return[];var a=Bo(o,1)[0].key,s=n.main.collectibles;if(!s.length)return[];var l=n.main.triggers.find((function(e){return-1!==e.keys.indexOf(a)}))||{},c=l.collect,u=l.placement;if(!c||!c.from||!u)return[];var d={triggerer:a,position:i.get(qu)},f=(function(e){var t=e.chart,n=e.expando,r=e.nodes,i=e.collectConfig,o=e.collectibles,a=e.meta,s=i.from,l={chart:t,expando:n,nodes:r,collectConfig:i,collectibles:o,meta:a};switch("function"==typeof s?"custom":s){case"single":return function(e){var t=Bo(e.nodes,1)[0];return["container"===t.type&&t.children[0]||t]}(l);case"position":return function(e){var t=e.collectibles,n=e.meta;return e.chart.shapesAt(n.position.absolute,{components:t.map((function(e){return{key:e.key}}))})}(l);case"dimension":return function(e){var t=e.chart,n=e.collectConfig,r=e.collectibles,i=Bo(e.nodes,1)[0],o=n.filter,a="function"==typeof o?o:function(){return!0},s=n.by,l=void 0===s?Iu:s;return r.reduce((function(e,n){var r=n.major,o=void 0===r?Lu:r,a=Du[n.type]||n.type;return e.push.apply(e,Ho(t.findShapes(a).filter((function(e){return e.key===n.key&&e.data&&o({data:e.data})===l({data:i.data})})))),e}),[]).filter(a)}(l);case"radius":return function(e){var t=e.chart,n=e.collectConfig,r=e.collectibles,i=e.meta,o=Bo(e.nodes,1)[0].localBounds,a=n.distance,s=n.filter,l="function"==typeof s?s:function(){return!0},c=r.map((function(e){return e.key}));return t.shapesAt({cx:i.position.absolute.x,cy:i.position.absolute.y,r:a||Math.max(o.width,o.height)},{components:c.map((function(e){return{key:e}}))}).filter(l)}(l);case"custom":return function(e){var t=e.chart,n=e.expando,r=e.nodes,i=e.meta;return e.collectConfig.from({chart:t,expando:n,nodes:r,meta:i})}(l);default:return[]}}({chart:t,expando:r,nodes:o,collectConfig:c,collectibles:s,meta:d})||[]).map((function(e){return e.children.length?e.children[0]:e}));return f.length?function(e){var t=e.chart,n=e.config,r=e.expando,i=e.placementConfig,o=e.hovered,a=e.collected,s=e.meta,l=function(e){for(var t=e.chart,n=e.config,r=e.expando,i=e.placementConfig,o=e.hovered,a=e.collected,s=e.meta,l=Bo(o,1)[0],c=Array.isArray(i)?i:[i],u={bounds:l.bounds,key:l.key},d=_u({nodes:a}),f=0;f<c.length;f++){var h=c[f];if("function"==typeof h){var p=h({chart:t,expando:r,hovered:o,collected:Ho(a),meta:s,collectedBounds:d,combineBounds:_u});if(p)return p}if("trigger"===h)return u;if("collectible"===h){var m=n.main.placements.collectible;return{bounds:"function"==typeof m?m({collected:Ho(a)}):d,key:a[0].key}}}return u}({chart:t,config:n,expando:r,placementConfig:i,hovered:o,collected:a,meta:s}),c=l.bounds,u=l.key,d=Bo(a,1)[0].desc;return[{bounds:c,nodes:a,data:a.map((function(e){return e.data})),key:u,meta:s,desc:d}]}({chart:t,config:n,expando:r,placementConfig:u,hovered:o,collected:f,meta:d}):[]}var Fu=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),ju=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),$u=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Bu=function(e){return Fu.test(e)},Hu=function(e){return ju.test(e)||$u.test(e)};function Vu(e){for(var t=e?e.length:0,n=0;n<t;n++){var r=e[n];if(Bu(r))return"ltr";if(Hu(r))return"rtl"}return"ltr"}function Uu(e){var t=e.config,n=e.h,r=e.context,i={section:function(e){return function(e){return{type:"section",content:e.content}}({content:e.content})},text:function(e){var n=e.value,r=e.style,i=e.visibility;return function(e){var t=e.config,n=e.value,r=e.style,i=void 0===r?{}:r,o=i.bold,a=void 0!==o&&o,s=i.italic,l=e.visibility;return{type:"text",content:[{content:n,style:{"font-weight":a?"bold":"normal","font-style":void 0!==s&&s?"italic":"normal","text-align":t.rtl?"right":"left",direction:Vu(n)},colspan:2}],visibility:Fo(Fo({},{count:!0}),l)}}({config:t,value:n,style:r,visibility:i})},measure:function(e){var r=e.label,i=e.value,o=e.color,a=e.style,s=e.survive,l=e.visibility;return function(e){var t,n,r,i,o=e.h,a=e.label,s=e.value,l=e.color,c=e.style,u=e.survive,d=e.visibility,f=e.config.rtl,h=o("div",{style:{display:"inline-block",width:10,height:10,"background-color":l,margin:"0 8px"}});return{type:"measure",label:a,value:s,content:[{content:f?[":",a]:[a,":"],style:{"text-align":f?"right":"left","font-weight":null!=c&&null!==(t=c.label)&&void 0!==t&&t.bold?"bold":"normal","font-style":null!=c&&null!==(n=c.label)&&void 0!==n&&n.italic?"italic":"normal",direction:Vu(a)}},{content:l?f?[s,h]:[h,s]:s,style:{"text-align":f?"left":"right","vertical-align":"middle","font-weight":null!=c&&null!==(r=c.value)&&void 0!==r&&r.bold?"bold":"normal","font-style":null!=c&&null!==(i=c.value)&&void 0!==i&&i.italic?"italic":"normal",direction:Vu(s)}}],survive:Fo(Fo({},{color:!1,duplicate:!1}),u),visibility:Fo(Fo({},{count:!0}),d)}}({config:t,h:n,label:r,value:i,color:o,style:a,survive:s,visibility:l})},divider:function(){return function(e){var t=e.visibility;return{type:"divider",content:[{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}],visibility:Fo(Fo({},{count:!1}),t)}}({visibility:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).visibility})},row:function(e){return function(e){var t=e.visibility;return{type:"row",content:[{content:e.content,style:e.style,colspan:e.colspan}],visibility:Fo(Fo({},{count:!0}),t)}}({content:e.content,style:e.style,colspan:e.colspan,visibility:e.visibility})},raw:function(e){return function(e){var t=e.visibility;return{type:"raw",content:e.value,visibility:Fo(Fo({},{count:!0}),t)}}({value:e.value,visibility:e.visibility})},color:function(e){var i=e.nodes,o=e.property,a=e.filter,s=void 0===a||a,l=e.visibility,c=e.fillColor;return function(e){var t=e.config,n=e.h,r=e.context,i=e.nodes,o=e.property,a=e.filter,s=e.visibility,l=e.fillColor,c=t.rtl,u={type:"color",label:void 0,value:void 0,content:[],filter:a,visibility:Fo(Fo({},{count:!0}),s)},d=t.getColorSettings();if("color"===d.type||!d.fieldType)return u;var f=Bo(i,1)[0];if(u.value=function(e){var t=e.config,n=e.context,r=e.property,i=e.node,o=i.data[r];if(o){if(-3===i.data.value)return i.data.label;var a=n.resources.dataset(o.source.key).field(o.source.field).formatter(),s=o.value,l=o.label,c=t.getColorSettings();if(a&&"measure"===c.fieldType)return Number.isNaN(+s)?"-":a(o.value);var u=l||s;return void 0===u||Number.isNaN(u)||"NaN"===u?"-":u}}({config:t,context:r,property:o,node:f}),void 0===u.value)return u;u.label=function(e){var t=e.context,n=e.property,r=e.node,i=e.config.getColorSettings();if(i.label)return i.label;var o=r.data[n];if(o&&"color"!==i.type){var a=t.resources.dataset,s=o.source,l=s.key,c=s.field;return a(l).field(c).title()}}({config:t,context:r,property:o,node:f});var h=null!=l?l:function(e){var t=e.node.attrs;return(null==t?void 0:t.fill)||"#ddd"}({node:f}),p=n("div",{style:{display:"inline-block",width:10,height:10,"background-color":h,margin:"0 8px"}});return u.content.push({content:c?[":",u.label]:[u.label,":"],style:{"text-align":c?"right":"left",direction:Vu(u.label)}},{content:c?[u.value,p]:[p,u.value],style:{"text-align":c?"left":"right","vertical-align":"middle",direction:Vu(u.value)}}),u}({config:t,h:n,context:r,nodes:i,property:o,filter:s,visibility:l,fillColor:c})}};return i}function Wu(e){var t=e.chart,n=e.translator,r=e.config,i=e.expando,o=e.h,a=e.data,s=e.style,l=Bo(a,1)[0],c=function(e){var t=e.config,n=e.nodes.reduce((function(e,n){var r=t.main.getGroupByValue({data:n.data});return e[r]||(e[r]={sorting:Object.keys(e).length,items:[]}),e[r].items.push(n),e}),{});return Object.keys(n).map((function(e){return n[e]})).sort((function(e,t){return e.sorting-t.sorting})).map((function(e){return e.items}))}({config:r,nodes:l.node.nodes}),u=function(e){var t=e.chart,n=e.config,r=e.expando,i=e.h,o=e.context,a=e.groups,s=o.node.meta,l=o.resources,c=l.dataset,u=l.formatter,d=Uu({config:n,h:i,context:o}),f=function(e){var t=e.dataset;return{dataset:{title:function(e,n){return t(e).field(n).title()}}}}({dataset:c}),h=a.map((function(e){var t=d.section({content:Ho((n.main.section({expando:r,h:i,nodes:e,dataset:c,formatter:u,meta:s,create:d,util:f})||[]).filter((function(e){var t;return null===(t=e.content)||void 0===t?void 0:t.length}))).filter(Boolean)});return t.content=function(e){var t=e.config,n=e.content,r=n.find((function(e){return"color"===e.type&&e.filter})),i=r?n.filter((function(e){return"measure"!==e.type||e.survive.color||e.label!==r.label||e.value!==r.value})):n;return t.main.showDuplicateMeasures?i:i.reduce((function(e,t){var n=t.type,r=t.survive;if("measure"!==n||r.duplicate)return e.filtered.push(t),e;var i="".concat(t.label,"-").concat(t.value);return e.memory[i]||(e.memory[i]=!0,e.filtered.push(t)),e}),{memory:{},filtered:[]}).filtered}({config:n,content:t.content}),t}));return n.main.sections({chart:t,expando:r,h:i,nodes:o.node.nodes,dataset:c,formatter:u,meta:s,create:d,util:f,sections:h}),h.filter(Boolean)}({chart:t,config:r,expando:i,h:o,context:l,groups:c}),d=function(e){var t=e.translator,n=e.config,r=e.context,i=e.templates,o=n.main.layout,a=o.rows,s=o.grouping,l=o.single,c=function(e){var t=e.limit,n=e.grouping,r=e.single,i={count:0,overflow:0,index:{started:void 0,group:void 0}};return{process:function(e){var o=e.visibility,a=e.index;if(r&&0!==a)return n?(i.index.started!==a&&i.index.group!==a&&(i.overflow++,i.index.group=a),!1):(i.overflow++,!1);if(i.count>=t){if(!n)return i.overflow++,!1;if(i.index.started!==a)return i.index.group!==a&&(i.overflow++,i.index.group=a),!1}return o.count&&i.count++,n&&(i.index.started=a),!0},overflow:function(){return i.overflow}}}({limit:a,grouping:s,single:"function"==typeof l?l({meta:r.node.meta,sections:i}):l}),u=i.reduce((function(e,t,n){var r=t.type,o=t.content;"section"===r&&(void 0===o?[]:o).forEach((function(t){c.process({visibility:t.visibility,index:n})&&e.push(t.content)}));var a=n===i.length-1;return"divider"!==r||a||c.process({visibility:t.visibility,index:n})&&e.push(t.content),e}),[]).filter((function(e){return e.length})),d=c.overflow();return d&&u.push(function(e){var t=e.translator,n=e.config,r=e.count,i=t?t.get("Object.ChartTooltip.NMore",r):"+".concat(r," more"),o=Vu(i);return[{content:i,style:{"font-weight":"bold","text-align":n.rtl?"right":"left",direction:o},colspan:2}]}({translator:t,config:n,count:d})),u}({translator:n,config:r,context:l,templates:u});return d.length?function(e){var t=e.h,n=e.style;return e.rows.map((function(e){return t("tr",{},e.map((function(e){var r={style:Fo(Fo({},n.cell||{}),e.style||{}),class:e.class};return e.colspan&&(r.colspan=e.colspan),t("td",r,e.content)})))}))}({h:o,style:s,rows:d}):function(e){var t=e.h;return t("tr",{},t("td",{style:{fontStyle:"italic",opacity:.75}},"Empty"))}({h:o})}function Yu(e){var t=e.chart,n=e.translator,r=e.config,i=e.expando,o=e.internal;if(!r.main.key)return!1;var a=ol(),s=Ru({key:r.main.key,rtl:r.rtl,duration:r.duration}),l=r.main.events.tooltip,c=l.afterShow,u=l.afterHide,d=function(){var e=a.get("collected");return{expando:i,nodes:e.nodes,meta:e.meta}};return fa(!0,s,{settings:{filter:function(e){return zu({chart:t,config:r,expando:i,internal:o,nodes:e})},extract:function(e){return a.set("collected",e.node),e},content:function(e){var o=e.h,a=e.data,s=e.style;return Wu({chart:t,translator:n,config:r,expando:i,h:o,data:a,style:s})},placement:function(e){var t=e.nodes;return r.main.placement({meta:t[0].meta})},afterShow:function(){return c(d())},afterHide:function(){return u(d())}},style:{arrow:{color:r.style.background},content:r.style}})}function Gu(e){var t=e.config,n=t.legend.keys;if(!n.tooltip||!n.component)return!1;if("categorical"!==t.getColorSettings().type)return!1;var r=Ru({key:n.tooltip,rtl:t.rtl,duration:t.duration});return fa(!0,r,{settings:{filter:function(e){return e.filter((function(e){return e.data&&e.key===n.component}))},extract:function(e){return e},content:function(e){var t=e.h,n=e.data;return[t("tr",{},[t("td",{style:Fo(Fo({},e.style.cell||{}),{"font-weight":"bold","text-align":"left"}),colspan:2},n[0].node.data.label)])]},placement:"pointer"},style:{arrow:{color:t.style.background},content:t.style}})}function Ku(e){var t=e.config.main.triggers.reduce((function(e,t){return t.keys.forEach((function(n){var r=t.distance||0;e.distance[n]=r,e.distances.includes(r)||e.distances.push(r),e.key[n]=!0,e.keys[r]||(e.keys[r]=[]),e.keys[r].push(n)})),e}),{distance:{},distances:[],key:{},keys:{}});return function(e){return e.components.filter((function(e){return t.key[e.key]})).reduce((function(e,n){e.any=!0,e.components.push(n.key);var r=t.distance[n.key];return 0===r?e.position.push(n.key):(e.distances.includes(r)||(e.distances.push(r),e.distanceKeys[r]=[]),e.distanceKeys[r].push(n.key)),e}),{any:!1,components:[],position:[],distances:[],distanceKeys:{}})}}var Xu=function(){return!0};function Ju(e){var t=e.config.main.triggers.reduce((function(e,t){var n=t.filter;return t.keys.forEach((function(t){e[t]="function"==typeof n?n:Xu})),e}),{});return function(e){var n=t[e.key];return!n||n(e)}}function Zu(e){var t=e.chart,n=e.event,r=e.component,i={absolute:{x:0,y:0},relative:{x:0,y:0}},o=t.element.getBoundingClientRect(),a=o.left,s=o.top;i.absolute.x=(void 0===n.clientX?Math.floor(n.srcEvent.clientX):n.clientX)-a,i.absolute.y=(void 0===n.clientY?Math.floor(n.srcEvent.clientY):n.clientY)-s;var l=t.component(r);if(l){var c=l.rect.computedInner;i.relative.x=i.absolute.x-c.x,i.relative.y=i.absolute.y-c.y}return i}function Qu(e){var t=e.chart,n=e.filter,r=e.hits,i=e.position,o=[];if(r.position.length&&o.push.apply(o,Ho(t.shapesAt(i.absolute,{components:r.position.map((function(e){return{key:e}}))}).filter(n))),!o.length&&r.distances.length){var a=[];r.distances.forEach((function(e){a.push.apply(a,Ho(t.shapesAt({cx:i.absolute.x,cy:i.absolute.y,r:e},{components:r.distanceKeys[e].map((function(e){return{key:e}}))}).filter(n)))})),a.length&&o.push(function(e){var t=e.nodes,n=e.origin,r=t.find((function(e){return"path"===e.type}));if(r)return r;var i=function(e){var t=Math.abs(n.x-(e.localBounds.x+e.localBounds.width/2)),r=Math.abs(n.y-(e.localBounds.y+e.localBounds.height/2));return Math.sqrt(t*t+r*r)};return t.slice(1).reduce((function(e,t){var n=i(t);return n<e.distance&&(e.distance=n,e.node=t),e}),{node:t[0],distance:i(t[0])}).node}({nodes:a,origin:i.relative}))}return o}function ed(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.facade,a=n.delay.tap,s=Ku({config:n}),l=Ju({config:n}),c=n.main.triggers.reduce((function(e,t){return e.push.apply(e,Ho(t.keys)),e}),[]);return{key:"event:".concat("tooltipTap"),type:"Tap",options:{event:"tooltipTap",enable:function(e,r){return!r||!!n.enable({event:r})&&t.componentsFromPoint({x:r.center.x,y:r.center.y}).filter((function(e){return-1!==c.indexOf(e.key)})).length>0}},recognizeWith:"tap",events:_o({},"tooltipTap",(function(e){if(e.preventDefault(),"mouse"!==e.pointerType&&!n.main.suppress({event:e})){var c=t.component(n.main.key);if(c&&c.show){var u=t.componentsFromPoint({x:e.center.x,y:e.center.y}),d=s({components:u});if(d.any){var f=Bo(d.components,1)[0],h=Zu({chart:t,event:e,component:f});i.set(qu,h);var p=Qu({chart:t,filter:l,hits:d,position:h});if(p.length){var m=p[0].key;n.main.events.tooltip.beforeShow({expando:r,event:e,collectNodes:function(){return o.collectNodes({nodes:p})},meta:{triggerer:m,position:h}}).then((function(){c.emit("show",e,{nodes:p,delay:a})})).catch((function(){}))}else c.emit("hide")}else c.emit("hide")}}}))}}function td(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.facade,a=Ku({config:n}),s=Ju({config:n}),l=function(e){var t=e.config,n=e.expando,r=e.internal,i=e.facade,o=t.main.events.tooltip.beforeShow,a=t.delay.hover,s={ongoing:{},latest:void 0};return function(e){var t=e.event,l=e.tooltip,c=e.nodes,u=function(e){var t=e.nodes;return JSON.stringify(t.map((function(e){var t;return{key:e.key,bounds:e.bounds,value:null===(t=e.data)||void 0===t?void 0:t.value}})))}({nodes:c});if(!s.ongoing[u]){s.ongoing[u]=!0,s.latest=u;var d=c[0].key;o({expando:n,event:t,collectNodes:function(){return i.collectNodes({nodes:c})},meta:{triggerer:d,position:r.get(qu)}}).then((function(){u===s.latest&&l.emit("show",t,{nodes:c,delay:a})})).catch((function(){l.emit("show")})).finally((function(){delete s.ongoing[u],u===s.latest&&(s.latest=void 0)}))}}}({config:n,expando:r,internal:i,facade:o}),c=[n.main.key,n.legend.keys.tooltip].filter(Boolean),u=function(){c.forEach((function(e){var n=t.component(e);null!=n&&n.show&&n.emit("hide")}))};return{type:"native",events:{mousemove:function(e){if(n.enable({event:e})&&!n.main.suppress({event:e})){var r=t.componentsFromPoint({x:e.clientX,y:e.clientY}),o=t.component(n.main.key);if(o&&o.show){var c=a({components:r});if(c.any){var u=Bo(c.components,1)[0],d=Zu({chart:t,event:e,component:u});i.set(qu,d);var f=Qu({chart:t,filter:s,hits:c,position:d});if(!f.length)return void o.emit("hide");l({event:e,tooltip:o,nodes:f})}else o.emit("hide")}var h=n.legend;if(h.keys.tooltip&&h.keys.component){var p=t.component(h.keys.tooltip);p&&p.show&&(r.some((function(e){return e.key===h.keys.component}))?p.emit("show",e):p.emit("hide"))}}},mouseup:function(e){2===e.button&&u()},mouseleave:function(){n.main.events.interaction.mouseleave({expando:r}),u()},wheel:function(){u()}}}}function nd(e){var t=e.chart,n=e.translator,r=function(e){var t=e.config;return fa(!0,{},{rtl:!1,enable:Ou.FALSE,getColorSettings:Ou.OBJECT,style:{fontSize:void 0,fontFamily:void 0,color:void 0,background:void 0},delay:{hover:500,tap:0},duration:8e3,main:{key:void 0,suppress:Ou.FALSE,getGroupByValue:Ou.NOOP,collectibles:[],triggers:[],placement:function(){return{type:"bounds"}},placements:{collectible:"combine"},showDuplicateMeasures:!1,layout:{rows:7,grouping:!1,single:!1},section:Ou.ARRAY,sections:Ou.NOOP,events:{tooltip:{beforeShow:function(){return Promise.resolve()},afterShow:Ou.NOOP,afterHide:Ou.NOOP},interaction:{mouseleave:Ou.NOOP}}},legend:{keys:{tooltip:void 0,component:void 0}}},void 0===t?{}:t)}({config:e.config}),i=ol(),o=ol(),a={components:void 0,interactions:void 0};return{getComponents:function(){return a.components||(a.components=function(e){var t=e.config;return[Yu({chart:e.chart,translator:e.translator,config:t,expando:e.expando,internal:e.internal}),Gu({config:t})].filter(Boolean)}({chart:t,translator:n,config:r,expando:i,internal:o})),a.components},getInteractions:function(){return a.interactions||(a.interactions=function(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=function(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal;return{collectNodes:function(e){var o=e.nodes,a=Bo(zu({chart:t,config:n,expando:r,internal:i,nodes:o}),1)[0];return(void 0===a?{nodes:[]}:a).nodes}}}({chart:t,config:n,expando:r,internal:i});return{gestures:[ed({chart:t,config:n,expando:r,internal:i,facade:o})],native:td({chart:t,config:n,expando:r,internal:i,facade:o})}}({chart:t,config:r,expando:i,internal:o})),a.interactions},expando:i}}var rd={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qAttrExprInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function id(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=p(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=rd;return c.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==nl(l,e)&&il(l,e,null);else{const e=t[0],n=t[1].split("].")[1];nl(l,e,[]).forEach((e=>{void 0!==nl(e,n)&&il(e,n,null)}))}})),l}var od={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:i}){return({currentNodes:o,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==i&&"right"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==i&&"bottom"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=i;break;case"rect":e.x-=r,e.y-=i;break;case"path":e.transform=`translate(${-r}, ${-i})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=id(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=id(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:ad,extractInfoFromInputValue:sd,resolveValue:ld}=fo;var cd={resolveValue:ld,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=ad({refLineLayout:e,layoutService:n});return sd(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=ad({refLineLayout:e,layoutService:n});return sd(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:i}=n.meta,o=ad({refLineLayout:e,layoutService:n});return r[o]&&i?r[o].qText:o},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=ad({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:i}=t;return i[r]}};function ud({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:i,animationsEnabled:o,chart:a,scale:s,axis:l,rtl:c,key:u,mainComponentKey:d,path:f,minimumLayoutMode:h}){const p=e?t.dimensionRefLines:f?t.query.getRefLines(f):t.measureRefLines;if(!p.length)return!1;const m={key:u,type:"ref-line",layout:{minimumLayoutMode:h},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:o,trackBy:od.lines.trackBy,compensateForLayoutChanges:od.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==i.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return p.forEach((o=>{m.lines[l].push((({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:i,dockService:o,chart:a,scale:s,axis:l,invert:c,component:u,isContinuous:d})=>{var f,h;const p={dir:l,line:{strokeWidth:(null==t||null===(f=t.style)||void 0===f?void 0:f.lineThickness)||2,strokeDasharray:null==t||null===(h=t.style)||void 0===h?void 0:h.lineType,stroke:i.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(p.scale=s,p.value=t.refLineExpr.value):(p.valueInfo=cd.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),p.value=()=>{var e;const i=fo.getScaledPosition({scale:a.scale(s),value:cd.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:p.valueInfo,size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===o.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(i)?void 0:i}),p})({isDimension:e,refLineLayout:o,refLineModel:t,layoutService:n,colorModel:r,dockService:i,chart:a,scale:s,axis:l,invert:g,component:d,isContinuous:y}))})),m}const dd={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}};function fd({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:i,dock:o,scale:a,style:s,formatter:l,theme:c,localeInfo:u,rtl:d,key:f,path:h}){const m=e?t.dimensionRefLineLabels:h?t.query.getRefLineLabels(h):t.measureRefLineLabels;if(!m.length)return[];const g=[],y=!e||n.meta.isContinuous,v=m.map((e=>(({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:o,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),{align:l,style:c}=e,{fontSize:u,fontFamily:d,fontStyle:f,fontWeight:h,textDecoration:p}=c||{},m={align:l,text:e.label,fill:e.coloredBackground?o.getContrastingColorTo(s):s,fontSize:u,fontFamily:d,fontStyle:f,fontWeight:h,textDecoration:p,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(m.background={fill:s}),a?(m.scale=i,m.value=e.refLineExpr.value):(m.value=()=>cd.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),m.valueText=()=>cd.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),m.valueInfo=()=>cd.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),m})({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:y})));return g.push((({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:i,scale:o,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:f})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:i,formatter:a,scale:o,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:f,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,fontStyle:r.referenceLine.label.name.fontStyle,fontWeight:r.referenceLine.label.name.fontWeight,textDecoration:r.referenceLine.label.name.textDecoration,padding:{top:2,bottom:2,left:c?2:4,right:c?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:od.refLineLabels.trackBy,compensateForLayoutChanges:od.refLineLabels.compensateForLayoutChanges}}))({isDimension:e,rtl:d,style:p(!0,dd,s),dock:o,key:f,labels:v,scale:a,formatter:l,layoutService:n,animationsEnabled:i,theme:c,isContinuous:y,localeInfo:u})),g}function hd({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:i}=e.meta,o=e.getLayout(),a="K"===o.qHyperCube.qMode,s=O.dimensionless(o),l=fo.getMeasureRefLines(o),c=fo.getDimensionRefLines(o,s),u=fo.getMeasureRefLineLabels(o),d=fo.getDimensionRefLineLabels(o,s);let f={},h={};const p=()=>!(!c||!c.length)&&!c.every((t=>{const o=fo.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:i}=n;return fo.isOutOfRange({value:t,qMin:r,qMax:i})}return!1})(o)||(t=>{if(!h[t])return!1;if(!n&&i){const n={valueInfo:h[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",i=e.getHyperCubeValue(r);return fo.isOutOfDataPages({label:n,dataPages:i})}return!0})(o)})),m={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:h,dimensionValuesInfo:f,query:{getRefLines:e=>fo.getRefLines(o,e),getRefLineLabels:e=>fo.getRefLineLabels(o,e)},update:()=>{h=m.dimensionRefLineInfo,p()&&(f=fo.getDimensionValuesInfo({layout:o,canBeContinuous:r,discreteModel:t,layoutService:e}),m.dimensionValuesInfo=f,c.forEach((t=>{const n=fo.getInputValue({refLineLayout:t,layoutService:e});f[n]&&(h[n]?(h[n].innerValues=f[n].innerValues,h[n].minOrder=Math.min(h[n].minOrder,f[n].minOrder),h[n].maxOrder=Math.max(h[n].maxOrder,f[n].maxOrder),h[n].isMinOrderOk=h[n].isMinOrderOk||f[n].isMinOrderOk,h[n].isMaxOrderOk=h[n].isMaxOrderOk||f[n].isMaxOrderOk):h[n]={id:f[n].id,qText:f[n].qText,innerValues:f[n].innerValues,minOrder:f[n].minOrder,maxOrder:f[n].maxOrder,isMinOrderOk:f[n].isMinOrderOk,isMaxOrderOk:f[n].isMaxOrderOk},h[n].numInnerValues=(h[n].maxOrder||0)-(h[n].minOrder||0)+1)})))}};return m.update(),m}function pd(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}var md={DATA:{MAIN:"qHyperCube",REDUCED:"reduced-data"},SCALE:{MAJOR:"main-major",MAJOR_INNER:"major-inner",MINOR:{PRIMARY:"minor-primary",SECONDARY:"minor-secondary",REDUCED_PRIMARY:"reduced-minor-primary",REDUCED_SECONDARY:"reduced-minor-secondary"},COLOR:"color",REDUCED:"reduced-major"},COMPONENT:{BAR:"bar-series",BAR_LABEL:"bar-label",BAR_OOB_LABEL:"bar-oob-label",STACK_BAR:"stack-bar",STACK_BAR_LABEL:"stack-bar-label",AXIS:{MAJOR:"major-axis",MAJOR_CONTINUOUS:"major-axis-continuous",TIME_INNER:"major-axis-time-inner",TIME_OUTER:"major-axis-time-outer",MINOR:{PRIMARY:"minor-primary-axis",SECONDARY:"minor-secondary-axis"}},AXIS_OVERLAY:{TIME_INNER:"axis-overlay-time-inner",TIME_OUTER:"axis-overlay-time-outer",CONTINUOUS:"axis-overlay-continuous"},AXIS_TITLE:{MAJOR:"major-axis-title",MINOR:{PRIMARY:"minor-primary-axis-title",SECONDARY:"minor-secondary-axis-title"}},MARKER:"marker-series",MARKER_LABEL:"marker-label",LINE:"line-series",POINT:"point-component",LABEL_SPACE:"label-space-component",POINT_LABEL:"point-label",GRID_LINE:"grid-line",ZERO_LINE:"zero-line",LEGEND:"legend",LEGEND_CATEGORICAL:"legend-cat",LEGEND_TOOLTIP:"legend-tooltip",TOOLTIP:"tooltip-qcm",MINI_CHART:{BAR:"mini-chart-bar-series",LINE:"mini-chart-line-series",MARKER:"mini-chart-marker-series"},BAR_OOB:"bar-oob",GHOST_BAR_OOB:"ghost-bar-oob",SLICED_HAT:"sliced-hat",DATA_OOB_MARKER:"data-out-of-bounds-marker",PRIMARY_MEASURE_AXIS_REF_LINE:"primary-mes-axis-ref-line",SECONDARY_MEASURE_AXIS_REF_LINE:"secondary-mes-axis-ref-line",DIMENSION_REF_LINE:"dim-ref-line",PRIMARY_MEASURE_AXIS_REF_LINE_LABEL:"primary-mes-ref-line-label",SECONDARY_MEASURE_AXIS_REF_LINE_LABEL:"secondary-mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label"},COLLECTION:{PRIMARY:"primary-collection",SECONDARY:"secondary-collection",STACKED_PRIMARY:"stacked-collection-primary",STACKED_SECONDARY:"stacked-collection-secondary",STACKED_TOTAL_PRIMARY:"stacked-total-collection-primary",STACKED_TOTAL_SECONDARY:"stacked-total-collection-secondary",REDUCED:"reduced-collection",REDUCED_PRIMARY:"reduced-collection-primary",REDUCED_SECONDARY:"reduced-collection-secondary",REDUCED_STACKED_PRIMARY:"reduced-collection-stacked-primary",REDUCED_STACKED_SECONDARY:"reduced-collection-stacked-secondary",LINE:"line-collection"},FORMATTER:{PRIMARY:"primary-formatter",SECONDARY:"secondary-formatter"}},gd={LINE:"line",BAR:"bar",MARKER:"marker"},yd={PRIMARY:0,SECONDARY:1},vd={type:"bar",axis:0};const bd={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 xd(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Sd={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=o[t]*(n>l?1:n/l),u=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function wd(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await Sd.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function Md(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return wd(u,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&xd(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await Sd.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Sd.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(xd(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await Sd.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const kd={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(Md(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},Ed={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await kd.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>kd.checkIfPromisesExist({customTooltipModel:e})};const Cd=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:bd.CHART.CHART_PARENT_TYPE,qId:bd.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Od=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:bd.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const Nd={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=bd.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:bd.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await Nd.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=bd.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=bd.CHART.STATE,a=Cd(t,o),s=await e.createSessionObject(a),l=Od(t);if(s.id!==bd.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(bd.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await Nd.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(Nd.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(bd.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=bd.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function Td(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Ad(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=bd.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function Rd(e){const t=Ad();return e.filter((e=>t[e.id]))}const qd={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=qd.getAttrExprData(a);o.length||n.length?Ed.handlePromises({customTooltipModel:i,nodes:qd.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&Nd.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Ed.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[bd.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[bd.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[bd.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Rd(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[bd.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[bd.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Td(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===Rd(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let r=[];const i=Td(e)||[];[...i,t].forEach((e=>{const t=Rd(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=Ad(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:_.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=_.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function Dd(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case bd.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case bd.CUSTOM.TITLE:case bd.CUSTOM.DESCRIPTION:case bd.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const Id={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Dd(t,e,r,n)}}};const Ld={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[bd.CUSTOM.TITLE]:!0,[bd.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=qd.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===bd.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===bd.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>z.getMeasure(e,t))),e,i)}};function Pd({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(Ld.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}const{CUSTOM:_d}=bd;function zd({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:qd,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),f="rtl"===c.direction,h=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&nl(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=Pd({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===_d.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===_d.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>qd.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>qd.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const i=qd.getDataNodes(o,r),{attrExps:a}=qd.getAttrExprData(t);return Ed.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>Nd.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>qd.getFooterRow(a.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>Nd.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>Nd.hide({app:n,customTooltipModel:d}),destroy:()=>Nd.destroyVisualization({customTooltipModel:d})}}}function Fd({key:e,source:t,layoutService:n,fieldModel:r,colorService:i,series:o}){const{meta:a}=n;if(a.isBarSeriesStacked){const{major:a,majorNumeric:s}=r.main,l=o.filter((e=>e.type===gd.BAR)),c=n.meta.isContinuous?s:a,u=e=>"NaN"!==e.qNum?e.qNum:0;return[{key:e,data:{extract:l.map((({ref:e,typeIndex:r,refIndex:o})=>({source:t,field:a,value:n.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:c},selectionDimension:{field:a},segment:{field:e,value:u,reduceLabel:"none"},end:{field:e,value:u,reduceLabel:"none"},null:{fields:l.map((e=>({field:e.ref}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"},typeIndex:r,...i.getDatumProps(o),customTooltipAttrExps:Id.getNode(n.getLayout(),n.meta),sumOfPositives:{fields:l.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:l.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"}}}))),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}]}return[]}function jd({key:e,series:t,source:n,fieldModel:r,colorService:i,layoutService:o,forceCreate:a=!1}){if(t.length||a){const{major:a,majorNumeric:s}=r.main,l=e=>"NaN"!==e.qNum?e.qNum:0,c=o.meta.isContinuous?s:a;return[{key:e,data:{extract:t.map((({ref:e,refIndex:t,typeIndex:r,options:s},u)=>({source:n,field:a,value:o.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:c},selectionDimension:{field:a},end:{field:e,value:s.showAsZeros?l:void 0,reduceLabel:"none"},start:0,line:u,typeIndex:r,null:{field:e,value:e=>"NaN"===e.qNum,reduceLabel:"none"},customTooltipAttrExps:Id.getNode(o.getLayout(),o.meta),...i.getDatumProps(t)}})))}}]}return[]}function $d({key:e,layoutService:t,fieldModel:n,series:r}){const{meta:i}=t;if(i.isBarSeriesStacked){const{major:t,majorNumeric:o}=n.main,a=r.filter((e=>e.type===gd.BAR)),s=i.isContinuous?{field:o,value:e=>e.qNum,reduceLabel:"none"}:[];return[{key:e,data:{extract:{field:0,props:{major:{field:i.isContinuous?o:t},null:{fields:a.map((e=>({field:e.ref}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"},sumOfPositives:{fields:a.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:a.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},timeStart:s,timeEnd:s},value:i.isContinuous?e=>e.qNum:void 0}}}]}return[]}const Bd={MINI_CHART:{value:"miniChart"},BAR:{value:"bar"},NONE:{value:"none"}};var Hd={OPTIONS:Bd,DEFAULT:Bd.MINI_CHART};function Vd({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:i,minThumbSize:o})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===i,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<o){const e=(o-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=o}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function Ud({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const Wd=e=>({miniChart:e===Hd.OPTIONS.MINI_CHART.value,bar:e===Hd.OPTIONS.BAR.value,none:e===Hd.OPTIONS.NONE.value});function Yd({layoutService:e,override:t}){const n=(({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return Wd(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return Wd(Hd.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return Wd(!n&&(r||!r&&i)?Hd.OPTIONS.NONE.value:Hd.OPTIONS.MINI_CHART.value)})({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===Hd.OPTIONS.MINI_CHART.value,n.bar=t.value===Hd.OPTIONS.BAR.value,n.none=t.value===Hd.OPTIONS.NONE.value),n}function Gd({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),f="horizontal"===o.meta.major.orientation,h=f?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,p=f?d.rect.computedInner.width:d.rect.computedInner.height,m=f&&a?p-h:h,g=Math.max(0,Math.min(m/p,1)),[y,v]=Ud({layoutService:i,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:m,relative:g,thumb:S?m-y*p:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function Kd({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o}){return()=>{const a=t.component(e),{orientation:s}=o.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,f]=Ud({layoutService:i,viewState:n,viewCache:r});return{size:u,thumbSize:(f-d)*u}}}function Xd({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=Gd({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=Kd({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,o-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const Jd="data-scrollbar-handle";function Zd({e:e}){return(e.srcEvent||e).srcElement.getAttribute(Jd)||""}const Qd="scrollbarResize";function ef({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=Gd({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${Qd}`,options:{event:Qd,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[Qd]=this[Qd]||{},(e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)})(t)&&Zd({e:t})&&(this[Qd].panningEvent=t.srcEvent),!!this[Qd].panningEvent))}},events:{[`${Qd}start`](n){n.preventDefault(),this[Qd]=this[Qd]||{},this[Qd].panningEvent&&t.component(e).emit("dragStart",this[Qd].panningEvent)},[`${Qd}move`](n){if(n.preventDefault(),this[Qd]=this[Qd]||{},!this[Qd].panningEvent)return;const o=r.get("zoom"),a=i.get("continuousMin"),s=i.get("continuousMax"),c=i.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=Zd({e:this[Qd].panningEvent});let f="start"===d?Math.min(u,o.max):o.min,h="end"===d?Math.max(u,o.min):o.max;f===h&&(f-="start"===d?c:0,h+="end"===d?c:0),r.set("zoom",{min:f,max:h}),t.component(e).emit("render")},[`${Qd}end`](n){n.preventDefault(),this[Qd]=this[Qd]||{},delete this[Qd].panningEvent,t.component(e).emit("dragEnd")},[`${Qd}cancel`](n){n.preventDefault(),this[Qd]=this[Qd]||{},delete this[Qd].panningEvent,t.component(e).emit("dragEnd")}}}}const tf="scrollbarPan";function nf({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=Gd({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=Kd({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${tf}`,options:{event:tf,threshold:0,enable(r,i){return this[tf]=this[tf]||{},!(i&&!this[tf].isPanning)||!!n.scroll.enabled()&&((!i||i.target===t.element)&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e)))}},events:{[`${tf}start`](n){n.preventDefault();const a=c(n);if(this[tf]=this[tf]||{},this[tf].isPanning=!0,t.component(e).emit("lockState"),o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,o-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,o-t),max:Math.max(s,n+t)}),this[tf].relative=a.relative,this[tf].zoom=r.get("zoom"),this[tf].zoom.span=this[tf].zoom.max-this[tf].zoom.min,this[tf].zoom.fullSpan=o-n}else if(a.onThumb)this[tf].offset=a.thumb;else{const e=u();this[tf].offset=a.beforeThumb?0:e.thumbSize}},[`${tf}move`](n){n.preventDefault();const a=c(n);if(this[tf]=this[tf]||{},o.meta.isContinuous){const e=a.relative-this[tf].relative,{fullSpan:t,span:n,min:o,max:s}=this[tf].zoom,l=i.get("continuousMin"),c=i.get("continuousMax");r.set("zoom",{min:Math.min(o+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[tf].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${tf}end`](n){n.preventDefault(),this[tf]=this[tf]||{},this[tf].isPanning=!1,t.component(e).emit("unlockState")},[`${tf}cancel`](n){n.preventDefault(),this[tf]=this[tf]||{},this[tf].isPanning=!1,t.component(e).emit("unlockState")}}}}function rf({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[Xd({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),ef({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),nf({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function of({componentKey:e,chart:t,actions:n,layoutService:r}){const i=(i,o)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(i,o)};return{type:"native",events:{mousemove:e=>i("hover",e),mouseleave:()=>i("leave")}}}const af={background:"rgba(0, 0, 0, 0.1)"},sf={top:-1,bottom:-1,width:6},lf={width:2,background:"#595959"};var cf={before:af,after:af,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:sf,endHandle:sf,startHandleBorder:lf,endHandleBorder:lf};const uf={background:"rgba(0, 0, 0, 0.1)"},df={top:-1,bottom:-1,width:6},ff={width:2,background:"#595959"};var hf={before:uf,after:uf,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:df,endHandle:df,startHandleBorder:ff,endHandleBorder:ff};const pf={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},mf={pointerEvents:"initial"},gf={pointerEvents:"none"};const yf="ew-resize",vf="default";function bf(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,i=t.range(),o=n&&t.rtl;return{size:r,start:(o?1-i[1]:i[0])*r,end:(o?1-i[0]:i[1])*r}}function xf(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?yf:vf}function Sf(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const i=(r-(n-t))/2,o=Math.max(0,0-(t-i))-Math.max(0,n+i-e);return{size:e,start:t-i+o,end:n+i+o}}return{size:e,start:t,end:n}}function wf(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function Mf(){const{size:e,start:t,end:n}=bf.call(this);this.renderer.render(this.elements(this.h,Sf.call(this,e,t,n)))}function kf(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?hf:cf;return{container:{...pf},before:{...pf,...n.before,...t.before},after:{...pf,...n.after,...t.after},thumb:{...pf,...n.thumb,...t.thumb},startHandle:{...pf,...mf,...n.startHandle},endHandle:{...pf,...mf,...n.endHandle},startHandleBorder:{...pf,...gf,...n.startHandleBorder},endHandleBorder:{...pf,...gf,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var Ef={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){Mf.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!wf.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=Zd({e:e});t&&(this.state.hover[t]=!0),xf.call(this),Mf.call(this)},leave(){this.state.locked||(this.state.hover.reset(),xf.call(this),Mf.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=Zd({e:e});t&&(this.state.drag[t]=!0),xf.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),xf.call(this),Mf.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,i="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[i]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=bf.call(this);return this.elements(e,Sf.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:i}=this.settings,o=i.injections().map((t=>t({h:e,rect:this.rect,orientation:i.orientation,minThumbSize:i.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:i,startHandleActive:o,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[i.end]:t-n},f={[i.start]:r},h={left:-3},p={left:1},m={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?f:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:f},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?m:h},class:"scrollbar--start-handle",[Jd]:"start"},o?e("div",{style:{...s.startHandleBorder,...c?g:p}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?h:m},class:"scrollbar--end-handle",[Jd]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?p:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[i.start]:n,[i.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...u])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:kf.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};function Cf({layoutService:e}){return e.meta.isContinuous&&Yd({layoutService:e}).miniChart}function Of({models:e}){const{layoutService:t,fieldModel:n,seriesModel:r,colorService:i}=e,{primarySeries:o,secondarySeries:a}=r.meta,s=r.query.series(gd.LINE),l=[...jd({forceCreate:!0,key:md.COLLECTION.PRIMARY,series:o,fieldModel:n,colorService:i,layoutService:t}),...jd({key:md.COLLECTION.SECONDARY,series:a,fieldModel:n,colorService:i,layoutService:t}),...jd({key:md.COLLECTION.LINE,series:s,fieldModel:n,colorService:i,layoutService:t}),...Fd({key:md.COLLECTION.STACKED_PRIMARY,layoutService:t,fieldModel:n,colorService:i,series:o}),...Fd({key:md.COLLECTION.STACKED_SECONDARY,layoutService:t,fieldModel:n,colorService:i,series:a}),...$d({key:md.COLLECTION.STACKED_TOTAL_PRIMARY,layoutService:t,fieldModel:n,series:o}),...$d({key:md.COLLECTION.STACKED_TOTAL_SECONDARY,layoutService:t,fieldModel:n,series:a})];return Cf(e)&&(l.push(...jd({key:md.COLLECTION.REDUCED,source:md.DATA.REDUCED,series:r.query.all(),fieldModel:n,colorService:i,layoutService:t})),l.push(...jd({key:md.COLLECTION.REDUCED_PRIMARY,source:md.DATA.REDUCED,series:o,fieldModel:n,colorService:i,layoutService:t})),l.push(...jd({key:md.COLLECTION.REDUCED_SECONDARY,source:md.DATA.REDUCED,series:a,fieldModel:n,colorService:i,layoutService:t})),l.push(...Fd({key:md.COLLECTION.REDUCED_STACKED_PRIMARY,source:md.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.primarySeries.filter((e=>e.type===gd.BAR)),colorService:i})),l.push(...Fd({key:md.COLLECTION.REDUCED_STACKED_SECONDARY,source:md.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.secondarySeries.filter((e=>e.type===gd.BAR)),colorService:i}))),l}const Nf=({layoutService:e,dockService:t})=>"custom"!==e.getLayoutValue("dimensionAxis.axisDisplayMode")?Math.min(200,t.meta.chart.size["horizontal"===t.meta.major.orientation?"height":"width"]/4):void 0;function Tf({models:e}){const{dockService:t,seriesModel:n,layoutService:r}=e,i=2===n.meta.measureAxes.length;if(i)return.5;const o=n.meta.measureAxes[0].isPrimary?t.meta.minor.dock:t.meta.minorSecondary.dock;if(!i){const e=n.meta.measureAxes[0].isPrimary?0:1;if("none"===r.getLayoutValue(`measureAxes.${e}.show`))return.5}return"horizontal"===t.meta.minor.orientation?"near"===o||"bottom"===o?1:0:"near"===o||"left"===o?0:1}const Af=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:i,dockService:o}=e,{orientation:a}=o.meta.major;return{data:{extract:{field:n.main.major,props:{selectionDimension:{field:n.main.major}}}},maxPxStep:Nf({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:Tf({models:e})}},Rf=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:i,dockService:o}=e,{orientation:a}=o.meta.major;return{type:"group-by-measure",data:{extract:{field:n.main.major}},measureCount:i.meta.groupSize,maxPxStep:Nf({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:Tf({models:e})}};function qf({viewState:e,models:t,environment:n}){const{fieldModel:r,dockService:i}=t,{orientation:o}=i.meta.major;return{type:"linear",invert:"horizontal"===o&&"rtl"===n.options.direction,data:{extract:{field:r.main.majorNumeric}},ticks:{forceBounds:!0,count:e.get("zoom").min===e.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>e.get("zoom").min,max:()=>e.get("zoom").max}}function Df({viewCache:e,mainMajor:t}){return p(!0,{},t,{min:()=>e.get("continuousMin"),max:()=>e.get("continuousMax")})}function If({viewState:e,viewCache:t,layoutService:n}){return t.set("qTimeAxisCache",[]),{get:(e,n=0)=>{const r=t.get("qTimeAxisCache");return r[n]&&r[n][0]===e?r[n][1]:void 0},set:(e,n,r=0)=>{t.get("qTimeAxisCache")[r]=[e,n]},key:({distance:r})=>{const{min:i,max:o}=e.get("zoom"),a=(o-i)/(t.get("continuousMax")-t.get("continuousMin")),s=n.getHyperCubeValue("qAxisData.qAxis",[]).map((e=>e.qName));return[r,Number.parseFloat(a).toFixed(12),...s].toString()}}}function Lf({picasso:e,viewState:t,viewCache:n,models:r,environment:i}){const{layoutService:o,fieldModel:a,appLayoutModel:s,themeService:l}=r,{measureText:c}=e.renderer("svg")(),{majorNumeric:u}=a.main,d=l.getStyles(),f={type:"time",data:{field:u},qAxis:()=>o.getHyperCubeValue("qAxisData.qAxis",[]),field:u,min:()=>t.get("zoom").min,max:()=>t.get("zoom").max,invert:"rtl"===i.options.direction,formatter:{fn:e.formatter("q-time"),localeInfo:s.qLocaleInfo,qNumFormat:o.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:e=>c({text:e,fontFamily:d.axis.label.name.fontFamily,fontSize:d.axis.label.name.fontSize})},ticks:{generator:{type:"d3",initialMin:t.get("zoom").min},anchor:"start",clamp:!0},cache:If({viewState:t,viewCache:n,layoutService:o})};return{[md.SCALE.MAJOR]:p(!0,{},f,{ticks:{level:"outer"}}),[md.SCALE.MAJOR_INNER]:p(!0,{},f,{ticks:{level:"inner"}})}}function Pf({picasso:e,models:t,viewState:n,viewCache:r,environment:i}){const{meta:o}=t.layoutService,a=o.isTime?{...Lf({picasso:e,viewState:n,viewCache:r,models:t,environment:i})}:o.isContinuous?{[md.SCALE.MAJOR]:qf({models:t,viewState:n,environment:i})}:o.isBarSeriesGrouped?{[md.SCALE.MAJOR]:Rf({models:t,environment:i})}:{[md.SCALE.MAJOR]:o.isBarSeriesStackedInBothAxis?Rf({models:t,environment:i}):Af({models:t,environment:i})};return Cf(t)?{...a,[md.SCALE.REDUCED]:Df({viewCache:r,mainMajor:a[md.SCALE.MAJOR]})}:a}function _f({fields:e,tickModel:t,dockService:n,environment:r}){const i="rtl"===r.options.direction,{orientation:o}=n.meta.minor;return{data:{source:"qHyperCube",fields:e},invert:"vertical"===o||i,ticks:{values:t.query.getValues},min:t.query.getMin,max:t.query.getMax}}function zf({layoutService:e,tickModel:t,dockService:n,environment:r}){if(!Cf({layoutService:e}))return;const i="rtl"===r.options.direction,{orientation:o}=n.meta.minor;return{type:"linear",invert:"vertical"===o||i,min:t.query.getMin,max:t.query.getMax}}function Ff({picasso:e,models:t,viewState:n,viewCache:r,environment:i}){const{layoutService:o,fieldModel:a,primaryTickModel:s,secondaryTickModel:l,colorService:c,dockService:u}=t;return{...Pf({picasso:e,models:t,viewState:n,viewCache:r,environment:i}),[md.SCALE.MINOR.PRIMARY]:_f({fields:a.main.minorsPrimary,tickModel:s,dockService:u,environment:i}),[md.SCALE.MINOR.SECONDARY]:_f({fields:a.main.minorsSecondary,tickModel:l,dockService:u,environment:i}),[md.SCALE.MINOR.REDUCED_PRIMARY]:zf({layoutService:o,tickModel:s,dockService:u,environment:i}),[md.SCALE.MINOR.REDUCED_SECONDARY]:zf({layoutService:o,tickModel:l,dockService:u,environment:i}),...c.custom.wrappedScales()}}var jf={AXIS:{MAJOR:{HORIZONTAL:{width:"XSMALL",height:"SMALL"},VERTICAL:{width:"SMALL",height:"XSMALL"}},MINOR:"XSMALL"},AXIS_TITLE:{MAJOR:{HORIZONTAL:{width:"XSMALL",height:"MEDIUM"},VERTICAL:{width:"MEDIUM",height:"XSMALL"}},MINOR:"SMALL"},GRID_LINE:"XSMALL",VALUE_LABEL:"XSMALL",LABEL_SPACE:"XSMALL",OUT_OF_BOUNDS_MARKER:"XSMALL",REFERENCE_LINE:"SPARK"};const $f=["all","labels"];function Bf({models:e,flags:t}){const{layoutService:n,dockService:r,seriesModel:i,themeService:o,styleModel:a,animationsModel:s}=e,l=n.getLayoutValue("measureAxes");if(!l||!l.length)return[];const c=o.getStyles(),u=a.query.axis.label.getStyle(),{measureAxes:d}=i.meta;return d.filter((e=>{const t=e.isPrimary?0:1;return $f.some((e=>l[t].show===e))})).map((e=>({type:"axis",key:e.isPrimary?md.COMPONENT.AXIS.MINOR.PRIMARY:md.COMPONENT.AXIS.MINOR.SECONDARY,renderer:pd(t),scale:e.scale,layout:{dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock,minimumLayoutMode:jf.AXIS.MINOR},settings:{labels:{show:!0,fontFamily:u.fontFamily,fontSize:u.fontSize,fill:u.fill},line:{stroke:c.axis.line.major.color},ticks:{stroke:c.axis.line.major.color},minorTicks:{stroke:c.axis.line.minor.color}},animations:{enabled:s.enabled,trackBy:od.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:od.axes.compensateForLayoutChanges({isMeasure:!0,dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock})}})))}var Hf=.5,Vf=3,Uf=13;function Wf({models:e,environment:t,flags:n}){const{layoutService:r,dockService:i,styleModel:o,themeService:a,animationsModel:s}=e,l="rtl"===t.options.direction,c=r.getLayoutValue("dimensionAxis"),u=o.query.axis.label.getStyle(),d=(({layoutService:e})=>{const t=e.getHyperCubeValue("qDimensionInfo.0.qApprMaxGlyphCount"),[n]=e.getDataPages(),r=n?n.qMatrix:[];return D.getAdjustedMaxGlyphCount(t,r,0,"qText")})({layoutService:r}),{orientation:f}=i.meta.major,h="horizontal"===f,p=h?c.label:"auto",m=a.getStyles(),{auto:g,spacing:y}=r.getLayoutValue("gridLine",{});return{type:"axis",key:md.COMPONENT.AXIS.MAJOR,renderer:pd(n),scale:md.SCALE.MAJOR,layout:{dock:i.meta.major.dock,minimumLayoutMode:jf.AXIS.MAJOR[f.toUpperCase()]},settings:{labels:{mode:c.label,tiltAngle:l?-40:40,maxEdgeBleed:50,maxLengthPx:"horizontal"===p?void 0:i.meta.minor.size/4,maxGlyphCount:d,tiltThreshold:d>Vf&&d<Uf?1:void 0,fontFamily:u.fontFamily,fontSize:u.fontSize,fill:u.fill},line:{show:!g&&0===y,stroke:m.axis.line.major.color},paddingEnd:4},brush:{consume:[{context:"selection",style:{inactive:{opacity:Hf}}}]},animations:{enabled:s.enabled,trackBy:od.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:od.axes.compensateForLayoutChanges({isHorizontal:h})}}}function Yf({models:e,flags:t}){const{dockService:n,styleModel:r,themeService:i,layoutService:o,animationsModel:a}=e,{orientation:s}=n.meta.major,l=r.query.axis.label.getStyle(),c=i.getStyles(),{auto:u,spacing:d}=o.getLayoutValue("gridLine",{});return{type:"axis",key:md.COMPONENT.AXIS.MAJOR_CONTINUOUS,renderer:pd(t),scale:md.SCALE.MAJOR,layout:{dock:n.meta.major.dock,minimumLayoutMode:jf.AXIS.MAJOR[s.toUpperCase()]},settings:{labels:{align:0,offset:4,fontFamily:l.fontFamily,fontSize:l.fontSize,fill:l.fill},line:{show:!u&&0===d,stroke:c.axis.line.major.color}},animations:{enabled:a.enabled,trackBy:od.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:od.axes.compensateForLayoutChanges({isContinuous:!0})}}}function Gf({models:e,environment:t,flags:n}){const{layoutService:r}=e,i=r.getLayoutValue("dimensionAxis");if(!i)return[];const{show:o}=i;return"none"===o||"title"===o?[]:r.meta.isTime?function({models:e,environment:t}){const{dockService:n,themeService:r,styleModel:i,layoutService:o,animationsModel:a}=e,s="rtl"===t.options.direction,{orientation:l}=n.meta.major,c="bottom"===n.meta.major.dock?0:1,u=r.getStyles(),d=i.query.axis.label.getStyle(),f=s?1:0,{auto:h,spacing:m}=o.getLayoutValue("gridLine",{}),g={type:"time-axis",renderer:"svg",layout:{dock:n.meta.major.dock,minimumLayoutMode:jf.AXIS.MAJOR[l]},preferredSize:()=>({size:2*parseFloat(d.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:s?"end":"start",label:{align:c,justify:f},guideLine:{major:{justify:f},minor:{align:c}},line:{show:!1}},style:{label:{fontFamily:d.fontFamily,fontSize:d.fontSize,fill:d.fill},majorGuideLine:{stroke:u.axis.line.major.color},minorGuideLine:{stroke:u.axis.line.minor.color}},animations:{enabled:a.enabled,trackBy:od.axes.trackBy({isTime:!0}),compensateForLayoutChanges:od.axes.compensateForLayoutChanges({isTime:!0})}};return[p(!0,{},g,{key:md.COMPONENT.AXIS.TIME_INNER,scale:md.SCALE.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!h&&0===m}},style:{majorGuideLine:{stroke:u.axis.line.minor.color},minorGuideLine:{stroke:u.axis.line.major.color},line:{stroke:u.axis.line.major.color}}}),p(!0,{},g,{key:md.COMPONENT.AXIS.TIME_OUTER,scale:md.SCALE.MAJOR,settings:{guideLine:{minor:{show:!1}}}})]}({models:e,environment:t}):r.meta.isContinuous?[Yf({models:e,flags:n})]:[Wf({models:e,environment:t,flags:n})]}const Kf=({layoutService:e,axis:t})=>e.meta.isBarSeriesGrouped?({scale:e,datum:t})=>e([t.value,t.typeIndex.value])+e.bandwidth()/2:e.meta.isBarSeriesStackedInBothAxis?({scale:e,datum:n})=>e([n.value,t])+e.bandwidth()/2:null,Xf=({layoutService:e,seriesModel:t,rtl:n,orientation:r})=>e.meta.isContinuous?null:e.meta.isBarSeriesGrouped?({scale:e,datum:i})=>e([i.value,n&&"horizontal"===r?t.meta.barSeriesCount-1:0])+e.bandwidth()*t.meta.barSeriesCount/2:e.meta.isBarSeriesStackedInBothAxis?({scale:e,datum:t})=>e([t.value,n&&"horizontal"===r?1:0])+e.bandwidth():null;function Jf({layoutService:e,active:t={},inactive:n={}}){return{consume:[{context:"selection",data:["selectionDimension","end","color","major"],style:{active:{strokeWidth:e.meta.isContinuous?0:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1},...t},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:Hf},...n}}}]}}var Zf="max",Qf="min";function eh(e,t){return function(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r}(e,t)||function(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r}(e,t)}const th=(e,t)=>`${e}-${t.id}`,nh=4,rh=12,ih=4;function oh({chart:e,layoutService:t,dockService:n,markerKey:r,markerType:i}){if(t.meta.isContinuous)return()=>`${ih}px`;const o={size:void 0},a="horizontal"===n.meta.major.orientation?"width":"height";return t=>{if(!o.size){const n=e.component(r),s=t.resources.scale(md.SCALE.MAJOR),l=n.rect[a]*s.bandwidth()*.25,c=Math.max(nh,Math.min(rh,l));o.size=`${"bar"===i?2*c:c}px`}return o.size}}const ah=({series:e,isPrimary:t,seriesModel:n})=>e?"qMeasureInfo/0"===e.ref:t?n.meta.primarySeries.some((e=>"qMeasureInfo/0"===e.ref)):n.meta.secondarySeries.some((e=>"qMeasureInfo/0"===e.ref)),{isDark:sh}=_e;const lh=({chart:e,models:t,series:n,environment:r})=>{const{layoutService:i,seriesModel:o,colorService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,animationsModel:u}=t,d=a.getColor(),{fill:f,marker:h}=n.options,{isContinuous:p}=i.meta,m="rtl"===r.options.direction,{orientation:g}=s.meta.major,y="horizontal"===g,v=(n.isPrimary?l:c).query.getExtrema(),b=({end:e})=>{const{value:t}=e;return eh(t,v)},x=th(md.COMPONENT.MARKER,n);return{type:"point",key:x,data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{[y?"x":"y"]:{scale:md.SCALE.MAJOR,fn:Xf({layoutService:i,seriesModel:o,rtl:m,orientation:g}),ref:p?"major":void 0},[y?"y":"x"]:{scale:n.scale,ref:"end",fn:e=>{var t;const n=!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)?e.scale.min():e.datum.end.value;return function(e){return Math.min(Math.max(0,e),1)}(e.scale(n))}},fill:f||"bar"===h?d:"none",opacity:e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)||b(e.datum)?0:1},stroke:e=>{const t=d(e);return f?sh(t)?function(e){return se(e).brighter(.5).toString()}(t):function(e){return se(e).darker().toString()}(t):t},size:oh({chart:e,layoutService:i,dockService:s,markerKey:x,markerType:h}),shape:()=>(({marker:e,horizontal:t,rtl:n})=>{let r;return"triangle"!==e||t||(r=n?"left":"right"),"bar"===e&&(r=t?"horizontal":"vertical"),r?{type:e,direction:r}:{type:e}})({marker:h,horizontal:y,rtl:m})},brush:Jf({layoutService:i,active:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||b(e.data)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||b(e.data)?0:Hf}}}),animations:{enabled:u.enabled,isMainComponent:ah({series:n}),trackBy:od.markers.trackBy,compensateForLayoutChanges:od.markers.compensateForLayoutChanges}}};function ch({property:e="end",isHorizontal:t,isColor:n,fallback:r,rtl:i}){return function(o){const{datum:a,resources:{scale:s}}=o,l=s(md.SCALE.MAJOR),c=s(md.SCALE.COLOR),u=t&&i?[...a.points].reverse():a.points,d=u.reduce(((t,n,r)=>{const i="NaN"===n[e].value||Number.isNaN(n[e].value),o=u[r+1],a=o&&"NaN"!==o[e].value&&!Number.isNaN(o[e].value);return i?t.length&&a&&t.push(n):t.push(n),t}),[]),f="group-by-measure"===l.type?e=>l([e.major.value,e.typeIndex.value]):e=>l(e.major.value),h=d.map(f),p=Math.min(...h),m=Math.max(...h)-p,g=0===m?1:m,y=h.map(((e,t)=>0===t?0:t===h.length-1?1:(e-p)/g)),v=[];for(let t=0;t<d.length;t++){const i=d[t],o=i.color&&i.color.value,a=n?o||r:c(o)||r,s=0===t,l=t===d.length-1,u=y[t];if("NaN"===i[e].value||Number.isNaN(i[e].value))v[t-1].virtual||v.push({virtual:!0});else{const n=d[t-1];n&&"NaN"!==n[e].value&&!Number.isNaN(n[e].value)?v.push({color:a,offset:s?0:Math.max(0,parseFloat((u-(u-y[t-1])/2).toFixed(5)))}):v.push({color:a,offset:u});const r=d[t+1];r&&"NaN"!==r[e].value&&!Number.isNaN(r[e].value)?v.push({color:a,offset:l?1:Math.max(0,parseFloat((u+(y[t+1]-u)/2).toFixed(5)))}):v.push({color:a,offset:u})}}const b=v.reduce(((e,t,n)=>{if(t.virtual){const t=v[n-1],r=v[n+1],i=t.offset+(r.offset-t.offset)/2;e.push({color:t.color,offset:i},{color:r.color,offset:i})}else e.push(t);return e}),[]);return{type:"gradient",x1:0,x2:t?1:0,y1:0,y2:t?0:1,stops:b}}}function uh({environment:e,models:t,measureIndex:n}){const{layoutService:r,colorService:i,dockService:o}=t,a="rtl"===e.options.direction,{hasMultipleMeasures:s}=r.meta,{mode:l,type:c,nil:u}=i.getSettingsForMeasure(n),d="horizontal"===o.meta.major.orientation;if(!l||"constant"===c)return i.getColor();if("measure"===l&&"categorical"===c)return i.getColor();const f=r.getHyperCubeValue(`qMeasureInfo.${n}.color`);if(null!=f&&f.on)return"byExpression"===f.mode?ch({isHorizontal:d,isColor:!0,fallback:u,rtl:a}):i.getColor();const h=r.getLayoutValue("color",{}),p=!h.auto&&"byExpression"===h.mode,m=!!h.colorExpression;if(p&&!m)return u;const g=!h.auto&&"byMeasure"===h.mode&&h.byMeasureDef&&void 0!==h.byMeasureDef.activeMeasureIndex;return s||!g?ch({isHorizontal:d,isColor:"color"===c,fallback:u,rtl:a}):"continuous"===c?function({isHorizontal:e,rtl:t}){return function(n){const{datum:{points:r},resources:{scale:i}}=n,o=i(md.SCALE.COLOR),a=r.map((e=>e.end.value)).filter((e=>"NaN"!==e&&!Number.isNaN(e))),s=Math.min(...a),l=Math.max(...a),c=l-s,u=0===c?1:c,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e))),offset:Math.min(1,Math.max(0,(e-s)/u))})));return{type:"gradient",x1:!e&&t?1:0,x2:e||t?0:1,y1:e?1:0,y2:0,stops:d}}}({isHorizontal:d,rtl:a}):function({isHorizontal:e,isArea:t,fallback:n,rtl:r}){return function(i){const{datum:{points:o},resources:{scale:a}}=i,s=a(md.SCALE.COLOR),l=o.map((e=>e.end.value)).filter((e=>"NaN"!==e&&!Number.isNaN(e))),c=Math.min(...l),u=Math.max(...l),d=t?Math.min(0,c):c,f=(t?Math.max(0,u):u)-d,h=0===f?1:f,p=s.domain(),m=[];for(let e=0;e<p.length-1;e++){const t=p[e],r=s(t)||n;m.push({color:r,offset:Math.min(1,Math.max(0,(t-d)/h))});const i=p[e+1];m.push({color:r,offset:Math.min(1,Math.max(0,(i-d)/h))})}return{type:"gradient",x1:!e&&r?1:0,x2:e||r?0:1,y1:e?1:0,y2:0,stops:m}}}({isHorizontal:d,fallback:u,rtl:a})}const dh=({models:e,environment:t,series:n})=>{const{layoutService:r,seriesModel:i,dockService:o,styleModel:a,animationsModel:s}=e,l="rtl"===t.options.direction,{orientation:c}=o.meta.major,u=Xf({layoutService:r,seriesModel:i,rtl:l,orientation:c});return{key:th(md.COMPONENT.LINE,n),type:"line",data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{coordinates:{major:{scale:md.SCALE.MAJOR,fn:u},minor:{scale:n.scale,ref:"end"}},layers:{curve:a.query.line.getCurveFn(),line:{stroke:uh({models:e,environment:t,measureIndex:n.refIndex}),strokeWidth:a.query.line.getStrokeWidthFn(),strokeDasharray:a.query.line.getStrokeDasharrayFn(),strokeLinejoin:"round"}},connect:n.options.showAsConnections,orientation:o.meta.major.orientation},brush:Jf({layoutService:r,active:{stroke:void 0,strokeWidth:void 0,opacity:Hf},inactive:{opacity:Hf}}),animations:{enabled:s.enabled,isMainComponent:!!ah({series:n})&&{filterFn:e=>e.commonPoints.length>0},trackBy:od.lines.trackBy,compensateForLayoutChanges:od.lines.compensateForLayoutChanges}}};var fh={BAR:{STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}},LINE:{CURVE:{LINEAR:"linear"},WIDTH:{FULL:{DEFAULT:2},LESS:{DEFAULT:1}},TYPE:{SOLID:void 0,DASHED:"5, 5"}},POINT:{SIZE:{DEFAULT:6,ACTIVE:4}}};function hh({series:e,layoutService:t}){const{showAsConnections:n}=e.options,r=function({layoutService:e}){const{isDiscrete:t}=e.meta;return({item:e})=>{if(e.dummy)return t;const{value:n}=e.end;return"NaN"===n||Number.isNaN(n)}}({layoutService:t}),i=n?(e,t)=>0!==e&&t.slice(0,e).reverse().some((e=>!r({item:e}))):(e,t)=>0!==e&&!r({item:t[e-1]}),o=n?(e,t)=>e!==t.length-1&&t.slice(e+1,t.length).some((e=>!r({item:e}))):(e,t)=>e!==t.length-1&&!r({item:t[e+1]});return({index:e,items:t})=>({before:i(e,t),after:o(e,t)})}const ph=3,mh=20;function gh({models:e,series:t,environment:n}){const{layoutService:r,colorService:i,seriesModel:o,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,selectionService:u,animationsModel:d}=e,f=r.getLayoutValue("dataPoint.show",!1),{orientation:h}=a.meta.major,p="horizontal"===h,m="SPARK"===a.meta.chart.mode,g=i.getColor(),{POINT:y}=fh,v=function({layoutService:e,series:t}){const n={key:void 0,map:void 0},r=hh({series:t,layoutService:e});return({item:e,items:t})=>{n.key!==t&&(n.key=t,n.map=function({items:e}){const t=e.reduce(((e,t)=>{const{value:n}=t.line;return e[n]||(e[n]={items:[],keys:[]}),e[n].items.push(t),e[n].keys.push(`${t.major.value}-${t.line.value}`),e}),{});return t}({items:t}));const{value:i}=e.line,o=n.map[i],a=`${e.major.value}-${i}`,s=o.keys.indexOf(a),{before:l,after:c}=r({index:s,items:o.items});return!l&&!c}}({series:t,layoutService:r}),b="rtl"===n.options.direction,x=(t.isPrimary?l:c).query.getExtrema(),{isContinuous:S}=r.meta,w=({end:e})=>{const{value:t}=e;return eh(t,x)};return{type:"point",key:th(md.COMPONENT.POINT,t),data:{filter:e=>t.ref===e.end.source.field,collection:t.collection},preferredSize:()=>({edgeBleed:{top:p?y.SIZE.DEFAULT/2:0}}),settings:{[p?"y":"x"]:{scale:t.scale,ref:"end",fn:e=>{var t;const n=!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)?e.scale.min():e.datum.end.value;return function(e){return Math.min(Math.max(0,e),1)}(e.scale(n))}},[p?"x":"y"]:{scale:md.SCALE.MAJOR,fn:Xf({layoutService:r,seriesModel:o,rtl:b,orientation:h}),ref:"major"},sizeLimits:{minPx:ph,maxPx:mh},size:e=>{const{value:t}=e.datum.line;return`${s.query.point.getSize(t)}px`},fill:g,opacity:({datum:e,data:t})=>{var n;return null!==(n=e.null)&&void 0!==n&&n.value||w(e)?0:m?v({item:e,items:t.items})?1:0:f||v({item:e,items:t.items})?1:0}},brush:Jf({layoutService:r,active:{r:e=>e.r+fh.POINT.SIZE.ACTIVE/2,strokeWidth:1.5,stroke:"#FFFFFF",opacity:e=>{var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||w(e.data))return 0;if(!S||f)return 1;const{event:n,components:r=[]}=(null==u?void 0:u.getSelectionInfo())||{};if("continuousRange"===n)return 0;if("tap"!==n)return 1;const i=[md.COMPONENT.AXIS_OVERLAY.CONTINUOUS,md.COMPONENT.AXIS_OVERLAY.TIME_INNER,md.COMPONENT.AXIS_OVERLAY.TIME_OUTER].some((e=>r.indexOf(e)>=0));return i?0:1}},inactive:{opacity:e=>1===e.opacity?.5:0}}),animations:{enabled:d.enabled,trackBy:od.nonUpdatingNode.trackBy,compensateForLayoutChanges:od.points.compensateForLayoutChanges}}}const yh=(e,{dataset:t},n=!1)=>{const{value:r,label:i,source:o}=n?e.segment:e.end,a=t(o.key).field(o.field);return M.shouldUseFormat(a.raw())?a.formatter()(r):i};function vh({chart:e,models:t,environment:n,flags:r,lineSeries:i}){const{layoutService:o,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,animationsModel:u}=t,d="rtl"===n.options.direction,f=o.getLayoutValue("dataPoint");if(!f)return!1;if(!f.show||!f.showLineLabels)return!1;if(!i.length)return!1;const h=s.query.point.label.getStyle();return{type:"point-label",key:md.COMPONENT.POINT_LABEL,renderer:pd(r),layout:{displayOrder:2,minimumLayoutMode:jf.VALUE_LABEL},settings:{orientation:a.meta.major.orientation,rtl:d,label:t=>yh(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,lineId:e=>e.data.typeIndex.value,configs:i.map((e=>({key:`${md.COMPONENT.POINT}-${e.id}`,labels:!0,lines:!0}))),showLabel:e=>{const t=parseInt(e.key.substr(e.key.length-1),10),n=i.find((e=>e.id===t)),r=(n.isPrimary?l:c).query.getExtrema();return!eh(e.data.end.value,r)},labelSpace:{use:()=>{const t=e.component(md.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10}},style:{fontFamily:h.fontFamily,fontSize:h.fontSize,fill:h.fill},animations:{enabled:u.enabled,trackBy:od.nonUpdatingNode.trackBy,compensateForLayoutChanges:od.labels.compensateForLayoutChanges}}}const bh=({chart:e,models:t,environment:n,flags:r,markerSeries:i})=>{const{layoutService:o,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,animationsModel:u}=t,d="rtl"===n.options.direction,f=s.query.marker.label.getStyle(),h=o.getLayoutValue("dataPoint");return!(null==h||!h.showMarkerLabels)&&(!!i.length&&{type:"point-label",key:md.COMPONENT.MARKER_LABEL,renderer:pd(r),layout:{displayOrder:2,minimumLayoutMode:jf.VALUE_LABEL},settings:{orientation:a.meta.major.orientation,rtl:d,label:t=>yh(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,lineId:e=>e.data.typeIndex.value,configs:i.map((e=>({key:`${md.COMPONENT.MARKER}-${e.id}`,labels:!0,lines:!1,fixed:!0}))),showLabel:e=>{const t=parseInt(e.key.substr(e.key.length-1),10),n=i.find((e=>e.id===t)),r=(n.isPrimary?l:c).query.getExtrema();return!eh(e.data.end.value,r)},labelSpace:{use:()=>{const t=e.component(md.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10}},style:{fontFamily:f.fontFamily,fontSize:f.fontSize,fill:f.fill},animations:{enabled:u.enabled,trackBy:od.nonUpdatingNode.trackBy,compensateForLayoutChanges:od.labels.compensateForLayoutChanges}})},xh=({chart:e,dock:t})=>{let n=t;const r=e.component(`${md.COMPONENT.SLICED_HAT}-${Zf}`),i=e.component(`${md.COMPONENT.SLICED_HAT}-${Zf}-${yd.PRIMARY}`),o=e.component(`${md.COMPONENT.SLICED_HAT}-${Zf}-${yd.SECONDARY}`);return r?n=`@${md.COMPONENT.SLICED_HAT}-${Zf}`:i?n=`@${md.COMPONENT.SLICED_HAT}-${Zf}-${yd.PRIMARY}`:o&&(n=`@${md.COMPONENT.SLICED_HAT}-${Zf}-${yd.SECONDARY}`),n},Sh=({dockPosition:e,orientation:t,rtl:n})=>{let r=1;return e!==`@${md.COMPONENT.SLICED_HAT}-${Zf}`&&e!==`@${md.COMPONENT.SLICED_HAT}-${Zf}-${yd.PRIMARY}`&&e!==`@${md.COMPONENT.SLICED_HAT}-${Zf}-${yd.SECONDARY}`||!("horizontal"===t||"vertical"===t&&n)||(r=4),e!==`@${md.COMPONENT.SLICED_HAT}-${Qf}`&&e!==`@${md.COMPONENT.SLICED_HAT}-${Qf}-${yd.PRIMARY}`&&e!==`@${md.COMPONENT.SLICED_HAT}-${Qf}-${yd.SECONDARY}`||"vertical"!==t||n||(r=4),r};function wh({chart:e,models:t,environment:n,lineSeries:r}){const{layoutService:i,dockService:o,primaryExtremumModel:a,secondaryExtremumModel:s}=t,l=i.getLayoutValue("dataPoint",{}),c="rtl"===n.options.direction;if(!r.length)return!1;if(!l.show||!l.showLineLabels)return!1;const u="horizontal"===o.meta.major.orientation,{show:d}=i.getLayoutValue("dimensionAxis",{});if("none"!==d){const{dock:e}=o.meta.major;if(u&&"top"===e)return!1;if(!u&&e===(c?"left":"right"))return!1}const f=c?"left":"right";return{type:"label-space",key:md.COMPONENT.LABEL_SPACE,layout:{minimumLayoutMode:jf.LABEL_SPACE,dock:xh({chart:e,dock:u?"top":f})},settings:{size:10},preferredSize:()=>{const t=e.component(`${md.COMPONENT.LINE}-${r[0].id}`);if(null==t||!t.rect)return 0;const n=(u?17:34)/t.rect[u?"height":"width"],i=a.query.getExtrema(),o=e.scale(md.SCALE.MINOR.PRIMARY)(i.implicit.line.max),l=u||c?o:1-o,d=r.filter((e=>e.isPrimary)).length>0,f=s.query.getExtrema(),h=e.scale(md.SCALE.MINOR.SECONDARY)(f.implicit.line.max),p=u||c?h:1-h,m=r.filter((e=>!e.isPrimary)).length>0;return d&&l<n||m&&p<n?10:0}}}const Mh={min:"Min",max:"Max"};function kh(e,t,n){const{hasExplicitMax:r}=n.meta,{max:i}=n.explicit;return!!r&&Math.max(e,t)>i&&i<=Math.min(e,t)}function Eh(e,t,n){const{hasExplicitMin:r}=n.meta,{min:i}=n.explicit;return!!r&&Math.min(e,t)<i&&i>=Math.max(e,t)}function Ch(e,t,n){return kh(e,t,n)||Eh(e,t,n)}function Oh(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r<=0}function Nh(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r>=0}function Th(e,t){return Oh(e,t)||Nh(e,t)}function Ah({extrema:e,type:t}){return!(function({extrema:e,type:t}){return!e.meta[`hasExplicit${Mh[t]}`]}({extrema:e,type:t})||function({extrema:e,type:t}){const n=t===Zf?e.implicit.bar.max:e.implicit.bar.min,r=Number(n.toFixed(13));return t===Zf?!Oh(r,e):!Nh(r,e)}({extrema:e,type:t}))}var Rh=Object.freeze({__proto__:null,isMaxOutOfBounds:Oh,isMinOutOfBounds:Nh,isOutOfBounds:Th,isSegmentMaxOutOfBounds:kh,isSegmentMinOutOfBounds:Eh,isSegmentOutOfBounds:Ch,shouldShowOob:Ah});const qh={min:"Min",max:"Max"},Dh=({chart:e,models:t,markerSeries:n,lineSeries:r,barSeries:i,environment:o,type:a})=>{const{dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,primaryTickModel:u,secondaryTickModel:d,layoutService:f,seriesModel:h,themeService:p,fieldModel:m,animationsModel:g}=t,y="rtl"===o.options.direction,{dock:v,opposite:b,orientation:x}=s.meta.major,S=l.query.getExtrema(),w=c.query.getExtrema(),M=a===Zf,{isBarSeriesGrouped:k}=f.meta,E=(({chart:e,type:t,opposite:n,dock:r})=>{let i=t===Zf?n:r;const o=e.component(`${md.COMPONENT.SLICED_HAT}-${t}`),a=e.component(`${md.COMPONENT.SLICED_HAT}-${t}-${yd.PRIMARY}`),s=e.component(`${md.COMPONENT.SLICED_HAT}-${t}-${yd.SECONDARY}`),l=e.component(md.COMPONENT.LABEL_SPACE),c=e.component(`${md.COMPONENT.BAR_OOB}-${t}`),u=e.component(`${md.COMPONENT.BAR_OOB}-${t}-${yd.PRIMARY}`),d=e.component(`${md.COMPONENT.BAR_OOB}-${t}-${yd.SECONDARY}`);return o?i=`@${md.COMPONENT.SLICED_HAT}-${t}`:a?i=`@${md.COMPONENT.SLICED_HAT}-${t}-${yd.PRIMARY}`:s?i=`@${md.COMPONENT.SLICED_HAT}-${t}-${yd.SECONDARY}`:c||u||d?l&&t===Zf?i=`@${md.COMPONENT.LABEL_SPACE}`:c?i=`@${md.COMPONENT.BAR_OOB}-${t}`:u?i=`@${md.COMPONENT.BAR_OOB}-${t}-${yd.PRIMARY}`:d&&(i=`@${md.COMPONENT.BAR_OOB}-${t}-${yd.SECONDARY}`):l&&t===Zf&&(i=`@${md.COMPONENT.LABEL_SPACE}`),i})({chart:e,type:a,opposite:b,dock:v}),C=Xf({layoutService:f,seriesModel:h,rtl:y,orientation:x}),O=r.concat(n);if(!O.length)return!1;const N=M?S.implicit.bar.max:S.implicit.bar.min,T=Number(N.toFixed(13));if(!k&&i.length&&Rh[`is${qh[a]}OutOfBounds`](T,S))return!1;if(!S.meta.hasExplicit&&!w.meta.hasExplicit)return!1;const A=M?"max":"min",R=Math[A](Number(S.implicit.line[A].toFixed(13)),Number(S.implicit.marker[A].toFixed(13))),q=Math[A](Number(w.implicit.line[A].toFixed(13)),Number(w.implicit.marker[A].toFixed(13))),D=O.filter((e=>e.isPrimary)),I=O.filter((e=>!e.isPrimary)),L=D.length>0,P=I.length>0,{major:_,majorNumeric:z}=m.main,F=e=>"NaN"!==e.qNum?e.qNum:0,j=f.meta.isContinuous?z:_;return{type:"data-out-of-bounds-marker",key:`${md.COMPONENT.DATA_OOB_MARKER}-${a}`,layout:{dock:E,minimumLayoutMode:jf.OUT_OF_BOUNDS_MARKER},data:{extract:O.map((({ref:e,typeIndex:t,options:n})=>({field:_,value:f.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:j},end:{field:e,value:n.showAsZeros?F:void 0},typeIndex:t,null:{field:e,value:e=>"NaN"===e.qNum}}})))},settings:{type:a,primaryExtremum:M?()=>u.query.getMax():()=>u.query.getMin(),secondaryExtremum:M?()=>d.query.getMax():()=>d.query.getMin(),primarySeries:D,secondarySeries:I,orientation:x,rtl:y,major:{scale:md.SCALE.MAJOR,fn:C},markerOffset:Sh({dockPosition:E,orientation:x,rtl:y})},brush:Jf({layoutService:f}),show:()=>{if(M){if(L&&R>u.query.getMax())return!0;if(P&&q>d.query.getMax())return!0}if(!M){if(L&&R<u.query.getMin())return!0;if(P&&q<d.query.getMin())return!0}return!1},style:{fill:p.getStyles().outOfRange.color},animations:{enabled:g.enabled,compensateForLayoutChanges:od.lineOobs.compensateForLayoutChanges}}},Ih={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function Lh({chart:e,models:t,viewState:n,viewCache:r,axis:i}){const o=ol(),{dockService:a}=t;return({data:t})=>(({items:t})=>{const{rect:n}=e.component(`${md.COMPONENT.BAR}-${i}`)||{};return(!t.length||!n)&&2})(t)||(()=>{const{min:e,max:t}=n.get("zoom");return o.get([e,t])||o.empty()&&!1})()||(()=>{const e=Ih[a.meta.chart.mode];return 0===Math.abs(r.get("continuousMax")-r.get("continuousMin"))&&e})()||(()=>{const{min:e,max:t}=n.get("zoom"),i=Math.abs(r.get("continuousMax")-r.get("continuousMin")),s=Math.abs(t-e),l=Ih[a.meta.chart.mode],c=function(e,t,n){return e*(1-n)+t*n}(2,l,1-Math.min(s/i/.2,1));return o.set([e,t],Math.max(2,Math.min(l,c)))})()}const Ph=({isContinuous:e,isBarSeriesGrouped:t,styleModel:n,discreteModel:r,isBarSeriesStackedInBothAxis:i})=>e?1:n.query.bar.getHasStyling()?n.query.bar.getHasStrokeWidth()?function(){const e=n.query.bar.getStrokeWidth()/r.query.getItemSize(),t=n.query.bar.getWidthFn()(),i=t+e;return i>1?t-(i-1):t}:n.query.bar.getWidthFn():t||i?.9:.7;function _h(e){return Math.min(Math.max(0,e),1)}const zh=({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i})=>{const{layoutService:o,dockService:a,colorService:s,seriesModel:l,styleModel:c,discreteModel:u,primaryExtremumModel:d,secondaryExtremumModel:f,animationsModel:h}=t,{isContinuous:p,isBarSeriesStacked:m,isBarSeriesGrouped:g,isBarSeriesStackedInBothAxis:y}=o.meta,v=e=>e.datum.start?e.datum.start.value:e.scale.min(),b=i?yd.PRIMARY:yd.SECONDARY,x=i?md.SCALE.MINOR.PRIMARY:md.SCALE.MINOR.SECONDARY;if(!(i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount))return!1;const S=m?{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return _h(e.scale(t))}},end:{ref:"end",fn:e=>{const t=(e=>e.datum.end?e.datum.end.value:v(e))(e);return _h(e.scale(t))}}}:{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return _h(e.scale(t))}},end:{ref:"end",fn:e=>{var t;const n=!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)?v(e):e.datum.end.value;return _h(e.scale(n))}}},w=(i?d:f).query.getExtrema(),M=m?({start:e,end:t})=>Ch(e.value,t.value,w):({end:e})=>Th(e.value,w);return{type:"box",key:`${md.COMPONENT.BAR}-${b}`,data:{filter:(()=>{if(m)return;const e=l.query.series(gd.BAR).filter((e=>e.isPrimary===i)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:m?i?md.COLLECTION.STACKED_PRIMARY:md.COLLECTION.STACKED_SECONDARY:i?md.COLLECTION.PRIMARY:md.COLLECTION.SECONDARY},preferredSize:p?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,settings:{orientation:a.meta.minor.orientation,major:{scale:md.SCALE.MAJOR,fn:Kf({layoutService:o,axis:b}),ref:p?{start:"major",end:"major"}:void 0},minor:S,box:{width:Ph({isContinuous:p,isBarSeriesGrouped:g,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:y}),minWidthPx:p?Lh({chart:e,models:t,viewState:n,viewCache:r,axis:b}):void 0,fill:s.getColor(),strokeWidth:c.query.bar.getStrokeWidth(),stroke:c.query.bar.getStrokeColor(),minHeightPx:.3,opacity:e=>{var t;return!0===(null===(t=e.datum)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)||M(e.datum)?0:1}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:Jf({layoutService:o,active:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||M(e.data)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||M(e.data)?0:Hf}}}),animations:{enabled:h.enabled,isMainComponent:ah({isPrimary:i,seriesModel:l}),trackBy:od.bars.trackBy,compensateForLayoutChanges:od.bars.compensateForLayoutChanges}}},Fh=({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i})=>{const{layoutService:o,dockService:a,colorService:s,seriesModel:l,styleModel:c,discreteModel:u}=t,{isBarSeriesStacked:d,isContinuous:f,isBarSeriesGrouped:h,isBarSeriesStackedInBothAxis:p}=o.meta,m=i?yd.PRIMARY:yd.SECONDARY,g=i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount;if(!d||0===g)return!1;return{key:`${md.COMPONENT.STACK_BAR}-${m}`,type:"box",data:{collection:i?md.COLLECTION.STACKED_TOTAL_PRIMARY:md.COLLECTION.STACKED_TOTAL_SECONDARY},settings:{major:{scale:md.SCALE.MAJOR,fn:Kf({layoutService:o,axis:m}),ref:f?{start:"timeStart",end:"timeEnd"}:void 0},minor:{scale:i?md.SCALE.MINOR.PRIMARY:md.SCALE.MINOR.SECONDARY,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:a.meta.minor.orientation,box:{width:Ph({isContinuous:f,isBarSeriesGrouped:h,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:p}),minWidthPx:f?Lh({chart:e,models:t,viewState:n,viewCache:r,axis:m}):2,opacity:0,fill:s.getColor()},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}};function jh(e,t){const n="horizontal"===e.dockService.meta.major.orientation,{style:r}=t,i=e.styleModel.query.bar.label.getStyle();return{placements:t.simplifiedPlacements.map((e=>{const t=i.useContrastColor&&!e.onBackground?function({style:e,simplifiedPlacement:t}){return n=>_e.isDark(t.background?t.background.fill:n.node.attrs.fill)?e.lightColor:e.darkColor}({style:r,simplifiedPlacement:e}):i.fill;return function({simplifiedPlacement:e,fill:t,isHorizontal:n}){const r=e.padding||{left:n?0:4,right:n?0:4,top:n?4:0,bottom:n?4:0};return{position:e.position,justify:e.justify,fill:t,overflow:e.overflow,background:e.background,padding:r}}({simplifiedPlacement:e,fill:t,isHorizontal:n})})),label:t.label}}function $h(e,t,n,r){const i=function(e,t){return function(e,t){if(t&&0===e){const{min:e,max:n}=t;return 0===n&&0===e?1:n<=0?-1:e>=0||n>=-e?1:-1}return e>=0?1:-1}(e,t)}(e,r);let o="up";return"vertical"===t&&i<0?o="down":"horizontal"===t&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}const Bh=(e,t)=>{const{showBarLabels:n,showBarSegmentLabels:r}=e;if(!n)return!1;const{isBarSeriesStacked:i,isContinuous:o}=t;return!i||!o&&!!r},Hh=(e,t)=>{const{showBarLabels:n,showBarTotalLabels:r}=e;if(!n)return!1;const{isBarSeriesStacked:i,isContinuous:o}=t;return!!i&&(!!o||!1!==r)};function Vh(e,t,n,r){const i=[];return void 0!==e&&(i[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(i[t]={position:"inside",onBackground:!1,justify:n}),i}const Uh=({models:e,environment:t,flags:n,isPrimary:r})=>{const{layoutService:i,seriesModel:o,styleModel:a,themeService:s,animationsModel:l}=e,{meta:c}=i,{isBarSeriesStacked:u}=c,d="rtl"===t.options.direction,f=s.getStyles(),h=a.query.bar.label.getStyle(),p=e.layoutService.getLayoutValue("dataPoint",{}),m=r?yd.PRIMARY:yd.SECONDARY;if(!(r?o.meta.primaryBarSeriesCount:o.meta.secondaryBarSeriesCount)||!Bh(p,c))return!1;let g;!u&&(g=u?1:0);const y={label:e=>yh(e.data,e,u),simplifiedPlacements:Vh(g,0===g?1:0,u?.5:1,c.isContinuous),style:f.label.value},v=[jh(e,y)],b={component:`${md.COMPONENT.BAR}-${m}`,selector:"rect",strategy:{type:"bar",settings:{direction:t=>$h(t.data.end.value,e.dockService.meta.minor.orientation,d,0),labels:v,fontSize:parseInt(h.fontSize,10),fontFamily:h.fontFamily}}},x=[b];return{type:"labels",key:`${md.COMPONENT.BAR_LABEL}-${m}`,renderer:pd(n),layout:{minimumLayoutMode:jf.VALUE_LABEL},settings:{sources:x},animations:{enabled:l.enabled,trackBy:od.nonUpdatingNode.trackBy,compensateForLayoutChanges:od.labels.compensateForLayoutChanges}}};function Wh(e,t,n,r){const i=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#cce6e6e6",padding:{left:2,right:2,top:2,bottom:2}};i.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return i}function Yh({chart:e,models:t,environment:n,flags:r,isPrimary:i}){const{meta:o}=t.layoutService,a="rtl"===n.options.direction,s=t.themeService.getStyles(),l=t.styleModel.query.bar.label.getStyle(),c=t.layoutService.getLayoutValue("dataPoint",{}),u=i?yd.PRIMARY:yd.SECONDARY;if(0===(i?t.seriesModel.meta.primaryBarSeriesCount:t.seriesModel.meta.secondaryBarSeriesCount)||!Hh(c,o))return!1;const d=!Bh(c,o),f=l.useContrastColor,h=e.formatter(i?md.FORMATTER.PRIMARY:md.FORMATTER.SECONDARY)||(e=>e),p=e=>h(e),m={label:e=>0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":p(e.data.sumOfPositives.value),simplifiedPlacements:Wh("outside",d,f,o.isContinuous),style:s.label.value},g={label:e=>0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":p(e.data.sumOfNegatives.value),simplifiedPlacements:Wh("opposite",d,f,o.isContinuous),style:s.label.value},y=[jh(t,m),jh(t,g)];return{type:"labels",key:`${md.COMPONENT.STACK_BAR_LABEL}-${u}`,renderer:pd(r),layout:{displayOrder:2,minimumLayoutMode:jf.VALUE_LABEL},settings:{sources:[{component:`${md.COMPONENT.STACK_BAR}-${u}`,selector:"rect",strategy:{type:"bar",settings:{direction:e=>$h(e.data.sumOfPositives.value,t.dockService.meta.minor.orientation,a),labels:y,fontSize:parseInt(l.fontSize,10),fontFamily:l.fontFamily}}}]},animations:{enabled:t.animationsModel.enabled,trackBy:od.nonUpdatingNode.trackBy,compensateForLayoutChanges:od.labels.compensateForLayoutChanges}}}var Gh=Object.freeze({__proto__:null,hasMaxHat:function(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r>0},hasMinHat:function(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r<0}});const Kh={min:"Min",max:"Max"};function Xh({chart:e,models:t,type:n,viewCache:r,viewState:i,isPrimary:o}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,styleModel:u,discreteModel:d}=t,{isBarSeriesStacked:f,isContinuous:h,isBarSeriesGrouped:m,isBarSeriesStackedInBothAxis:g}=a.meta,y=f?Fh({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):zh({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),v=o?l.query.getExtrema():c.query.getExtrema(),b=n===Zf,x=o?yd.PRIMARY:yd.SECONDARY;if(!y)return!1;if(function(e,t){return!e.meta[`hasExplicit${Kh[t]}`]}(v,n)||function(e,t,n){const r=n?e.implicit.bar.max:e.implicit.bar.min,i=Number(r.toFixed(13));return!Gh[`has${Kh[t]}Hat`](i,e)}(v,n,b)||function(e,t,n){const r=n?e=>e<0:e=>e>0;return e.meta[`hasExplicit${Kh[t]}`]&&r(e.explicit[t])}(v,n,b))return!1;let S="end";f&&(S=b?"sumOfPositives":"sumOfNegatives");const w=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.scale(o?md.SCALE.MINOR.PRIMARY:md.SCALE.MINOR.SECONDARY)[n]()));const M=(({chart:e,type:t,isPrimary:n,dock:r})=>{let i=r;const o=e.component(`${md.COMPONENT.SLICED_HAT}-${t}-${yd.PRIMARY}`),a=e.component(`${md.COMPONENT.SLICED_HAT}-${t}-${yd.SECONDARY}`);return o&&a&&(i=n?r:`@${md.COMPONENT.SLICED_HAT}-${t}-${yd.PRIMARY}`),i})({chart:e,type:n,isPrimary:o,dock:b?s.meta.minor.end:s.meta.minor.start}),k={type:"box-sliced-hat",key:`${md.COMPONENT.SLICED_HAT}-${n}-${x}`,layout:{dock:M},data:y.data,settings:{orientation:y.settings.orientation,major:y.settings.major,minor:y.settings.minor,hat:p({},y.settings.box,{fill:f?"#999":y.settings.box.fill,alignment:1,opacity:1,show:function(e){const t=w(),n=function(e){if("number"!=typeof e)return e;const t=Math.round(e);return Math.abs(e-t)<1e-12?t:e}(e.datum[S].value);return b?n>t:n<t},width:Ph({isContinuous:h,isBarSeriesGrouped:m,styleModel:u,discreteModel:d,isBarSeriesStackedInBothAxis:g}),strokeWidth:u.query.bar.getStrokeWidth(),stroke:u.query.bar.getStrokeColor()})},brush:Jf({layoutService:a})};return k}const Jh={min:"Min",max:"Max"},Zh={sumOfPositives:"sumOfNegatives",sumOfNegatives:"sumOfPositives"};function Qh({chart:e,models:t,type:n,viewCache:r,viewState:i,isPrimary:o}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,themeService:u,animationsModel:d}=t,{end:f,start:h}=s.meta.minor,{isBarSeriesStacked:m}=a.meta,g=m?Fh({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):zh({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),y=o?l.query.getExtrema():c.query.getExtrema(),v=n===Zf?y.implicit.bar.max:y.implicit.bar.min,b=Number(v.toFixed(13)),x=o?yd.PRIMARY:yd.SECONDARY;if(!g)return!1;if(!Rh[`is${Jh[n]}OutOfBounds`](b,y))return!1;const S=(({chart:e,type:t,end:n,start:r,isPrimary:i})=>{let o=t===Zf?n:r;const a=e.component(md.COMPONENT.LABEL_SPACE),s=e.component(`${md.COMPONENT.SLICED_HAT}-${t}-${yd.PRIMARY}`),l=e.component(`${md.COMPONENT.SLICED_HAT}-${t}-${yd.SECONDARY}`),c=e.component(`${md.COMPONENT.BAR_OOB}-${t}-${yd.PRIMARY}`),u=e.component(`${md.COMPONENT.BAR_OOB}-${t}-${yd.SECONDARY}`);return s?o=`@${md.COMPONENT.SLICED_HAT}-${t}-${yd.PRIMARY}`:l?o=`@${md.COMPONENT.SLICED_HAT}-${t}-${yd.SECONDARY}`:c&&u&&!i?o=`@${md.COMPONENT.BAR_OOB}-${t}-${yd.PRIMARY}`:a&&t===Zf&&(o=`@${md.COMPONENT.LABEL_SPACE}`),o})({chart:e,type:n,end:f,start:h,isPrimary:o});let w="end";m&&(w=n===Zf?"sumOfPositives":"sumOfNegatives");const M={type:"box-out-of-bounds",key:`${md.COMPONENT.BAR_OOB}-${n}-${x}`,layout:{dock:S},data:g.data,settings:{orientation:g.settings.orientation,major:g.settings.major,minor:g.settings.minor,dockValue:A.getDockValue(n===Zf?f:h),oob:p({},g.settings.box,{fill:u.getStyles().outOfRange.color,alignment:1,opacity:1,show:function(e){var t;if(!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value))return!1;const r=m&&0===e.datum[w].value,i=Rh[`is${Jh[n]}OutOfBounds`](e.datum[w].value,y,n),o=(!r||function({type:e,item:t,prop:n,extrema:r}){const i=t.datum[Zh[n]].value;return 0!==i&&Rh[`is${Jh[e]}OutOfBounds`](i,r,e)}({type:n,item:e,prop:w,extrema:y}))&&i;return o}})},brush:Jf({layoutService:a}),animations:{enabled:d.enabled,compensateForLayoutChanges:od.barOobs.compensateForLayoutChanges}};return M}function ep(e){return Math.min(Math.max(0,e),1)}const tp=({chart:e,models:t,type:n,isPrimary:r})=>{const{discreteModel:i,styleModel:o,seriesModel:a,layoutService:s}=t;if(!(r?a.meta.primaryBarSeriesCount:a.meta.secondaryBarSeriesCount))return!1;const{isBarSeriesStacked:l,isContinuous:c,isBarSeriesGrouped:u,isBarSeriesStackedInBothAxis:d}=s.meta,f=e.scale(r?md.SCALE.MINOR.PRIMARY:md.SCALE.MINOR.SECONDARY),h=r?yd.PRIMARY:yd.SECONDARY,p=r?t.primaryExtremumModel.query.getExtrema():t.secondaryExtremumModel.query.getExtrema(),m=n===Zf;if(!Ah({extrema:p,type:n}))return!1;const g=e=>e.datum.start?e.datum.start.value:e.scale.min(),y=(e,t="end")=>e.datum[t]?e.datum[t].value:g(e),v={type:"box",key:`${md.COMPONENT.GHOST_BAR_OOB}-${n}-${h}`,data:{filter:(()=>{if(l)return;const e=a.query.series(gd.BAR).filter((e=>e.isPrimary===r)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:l?r?md.COLLECTION.STACKED_TOTAL_PRIMARY:md.COLLECTION.STACKED_TOTAL_SECONDARY:r?md.COLLECTION.PRIMARY:md.COLLECTION.SECONDARY},settings:{orientation:t.dockService.meta.minor.orientation,major:{scale:md.SCALE.MAJOR,fn:Kf({layoutService:s,axis:h}),ref:c?{start:"major",end:"major"}:void 0},minor:{scale:r?md.SCALE.MINOR.PRIMARY:md.SCALE.MINOR.SECONDARY,start:{ref:"start",fn:e=>{const t=g(e);return ep(e.scale(t))}},end:l?"max"===n?{ref:"sumOfPositives",fn:e=>{const t=y(e,"sumOfPositives");return ep(e.scale(t))}}:{ref:"sumOfNegatives",fn:e=>{const t=y(e,"sumOfNegatives");return ep(e.scale(t))}}:{ref:"end",fn:e=>{const t=y(e);return ep(e.scale(t))}}},box:{width:Ph({isContinuous:c,isBarSeriesGrouped:u,styleModel:o,discreteModel:i,isBarSeriesStackedInBothAxis:d}),stroke:"transparent",fill:"none",opacity:0,show:e=>{let t="end";l&&(t=m?"sumOfPositives":"sumOfNegatives");const n=e.datum[t]?e.datum[t].value:f.max();return m?n>f.max():n<f.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return v};function np(e,t,n,r,i){const o=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return o.push({position:"inside",onBackground:!1,justify:r||i?0:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),o}const rp=({chart:e,models:t,type:n,environment:r,flags:i,isPrimary:o})=>{const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,styleModel:u,seriesModel:d,themeService:f,animationsModel:h}=t,p=f.getStyles(),m=u.query.bar.label.getStyle(),{meta:g}=a,{isBarSeriesStacked:y}=g,v=e.formatter(o?md.FORMATTER.PRIMARY:md.FORMATTER.SECONDARY),b=a.getLayoutValue("dataPoint",{}),x="horizontal"===s.meta.major.orientation,S="rtl"===r.options.direction;if(!(o?d.meta.primaryBarSeriesCount:d.meta.secondaryBarSeriesCount)||!y&&!Bh(b,g)||y&&!Hh(b,g))return!1;const w=o?l.query.getExtrema():c.query.getExtrema();if(!w.meta.hasExplicit)return!1;const M=n===Zf?w.implicit.bar.max:w.implicit.bar.min;if(!(n===Zf?Oh(M,w):Nh(M,w)))return!1;let k=e=>yh(e.data,e);g.isBarSeriesStacked&&(k=n===Zf?function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(Oh(e.data.sumOfNegatives.value,w)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value;return v?v(t):t}return""}:function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(Nh(e.data.sumOfPositives.value,w)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value;return v?v(t):t}return""});const E={label:k,simplifiedPlacements:np("outside",0,g.isContinuous,x,S),style:p.label.value},C={label:k,simplifiedPlacements:np("opposite",0,g.isContinuous,x,S),style:p.label.value},O=[jh(t,E),jh(t,C)],N=o?yd.PRIMARY:yd.SECONDARY,T="horizontal"===s.meta.major.orientation?"down":"right",A=[{component:`${md.COMPONENT.GHOST_BAR_OOB}-${n}-${N}`,selector:"rect",strategy:{type:"bar",settings:{direction:T,labels:O,fontSize:parseInt(m.fontSize,10),fontFamily:m.fontFamily}}}];return{key:`${md.COMPONENT.BAR_OOB_LABEL}-${n}-${N}`,type:"labels",renderer:pd(i),layout:{minimumLayoutMode:jf.VALUE_LABEL},settings:{sources:A},animations:{enabled:h.enabled,trackBy:od.nonUpdatingNode.trackBy,compensateForLayoutChanges:od.labels.compensateForLayoutChanges}}},ip=({chart:e,models:t,viewState:n,viewCache:r})=>[zh({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),zh({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],op=({chart:e,models:t,viewState:n,viewCache:r})=>[Fh({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),Fh({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],ap=({chart:e,models:t,environment:n,flags:r})=>{const i=Yh({chart:e,models:t,environment:n,flags:r,isPrimary:!0}),o=Yh({chart:e,models:t,environment:n,flags:r,isPrimary:!1});return[Uh({models:t,environment:n,flags:r,isPrimary:!0}),Uh({models:t,environment:n,flags:r,isPrimary:!1}),i,o]},sp=({chart:e,models:t,viewCache:n,viewState:r})=>[Xh({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Xh({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Xh({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Xh({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],lp=({chart:e,models:t,viewCache:n,viewState:r})=>[Qh({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Qh({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Qh({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Qh({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],cp=({chart:e,models:t})=>[tp({chart:e,models:t,type:"max",isPrimary:!0}),tp({chart:e,models:t,type:"min",isPrimary:!0}),tp({chart:e,models:t,type:"max",isPrimary:!1}),tp({chart:e,models:t,type:"min",isPrimary:!1})],up=({chart:e,models:t,environment:n,flags:r})=>[rp({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!0}),rp({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!0}),rp({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!1}),rp({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!1})],dp=({chart:e,environment:t,flags:n,models:r,viewState:i,viewCache:o})=>{const{seriesModel:a}=r,s=a.query.series(gd.BAR).slice(-1),l=a.query.series(gd.LINE),c=a.query.series(gd.MARKER);return[...ip({chart:e,models:r,viewState:i,viewCache:o}),...op({chart:e,models:r,viewState:i,viewCache:o}),...l.map((e=>dh({models:r,environment:t,series:e}))),...l.map((e=>gh({models:r,series:e,environment:t}))),...c.map((n=>lh({chart:e,models:r,series:n,environment:t}))),vh({chart:e,models:r,environment:t,flags:n,lineSeries:l}),bh({chart:e,models:r,environment:t,flags:n,markerSeries:c}),...ap({chart:e,models:r,environment:t,flags:n}),...sp({chart:e,models:r,viewCache:o,viewState:i}),...lp({chart:e,models:r,viewCache:o,viewState:i}),...cp({chart:e,models:r}),...up({chart:e,models:r,environment:t,flags:n}),Dh({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"max"}),Dh({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"min"}),wh({chart:e,models:r,environment:t,lineSeries:l})]},fp=0,hp=1,pp=3;function mp({models:e}){const{dockService:t,seriesModel:n,layoutService:r,themeService:i,animationsModel:o}=e,{auto:a,spacing:s,axis:l}=r.getLayoutValue("gridLine",{});if(!a&&s===fp)return!1;const c=i.getStyles(),u=n.meta.primarySeries.length>0;return{key:md.COMPONENT.GRID_LINE,type:"grid-line",layout:{minimumLayoutMode:jf.GRID_LINE},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!(!a&&s===hp)||((e,t)=>t%2==0),stroke:c.grid.line.major.color},minorTicks:{show:!a&&s===pp,stroke:c.grid.line.minor.color},["horizontal"===t.meta.major.orientation?"y":"x"]:0===(null!=l?l:0)&&u?md.SCALE.MINOR.PRIMARY:md.SCALE.MINOR.SECONDARY,animations:{enabled:o.enabled,trackBy:od.lines.trackBy,compensateForLayoutChanges:od.lines.compensateForLayoutChanges}}}function gp({models:e}){var t,n;const{primaryExtremumModel:r,primaryTickModel:i,themeService:o,dockService:a,seriesModel:s,secondaryExtremumModel:l,secondaryTickModel:c,layoutService:u,animationsModel:d}=e,f=0===(null!==(t=null===(n=u.getLayoutValue("gridLine",{}))||void 0===n?void 0:n.axis)&&void 0!==t?t:0),h=r.query.getExtrema(),p=l.query.getExtrema();if(!h.meta.includesZero&&!p.meta.includesZero)return!1;return{key:md.COMPONENT.ZERO_LINE,type:"ref-line",layout:{minimumLayoutMode:jf.GRID_LINE},show:()=>(()=>{const e=s.meta.primarySeries.length>0,t=s.meta.secondarySeries.length>0;return f&&e&&i.query.getMin()<=0&&i.query.getMax()>=0||!f&&t&&c.query.getMin()<=0&&c.query.getMax()>=0})(),lines:{["horizontal"===a.meta.minor.orientation?"x":"y"]:[{value:0,scale:f?md.SCALE.MINOR.PRIMARY:md.SCALE.MINOR.SECONDARY,line:{stroke:o.getStyles().grid.line.highContrast.color}}]},animations:{enabled:d.enabled,trackBy:od.lines.trackBy,compensateForLayoutChanges:od.lines.compensateForLayoutChanges}}}function yp({models:e}){const{layoutService:t,themeService:n,animationsModel:r}=e,{isContinuous:i,isTime:o}=t.meta;if(!i)return[];const a=n.getStyles(),s={type:"grid-line",layout:{minimumLayoutMode:jf.GRID_LINE},ticks:{stroke:a.grid.line.major.color},minorTicks:{show:!1,stroke:a.grid.line.minor.color},animations:{enabled:r.enabled,trackBy:od.lines.trackBy,compensateForLayoutChanges:od.lines.compensateForLayoutChanges}};return o?[p(!0,{},s,{key:"time-inner-grid",x:{scale:md.SCALE.MAJOR_INNER},ticks:{stroke:a.grid.line.minor.color}}),p(!0,{},s,{key:"time-outer-grid",x:{scale:md.SCALE.MAJOR}})]:[p(!0,{},s,{key:"continuous-grid",x:{scale:md.SCALE.MAJOR},minorTicks:{show:!0}})]}function vp({models:e}){return[mp({models:e}),gp({models:e}),...yp({models:e})]}function bp({models:e,environment:t,actions:n,flags:r}){const{layoutService:i,dockService:o,propertiesModel:a,appModel:s,genericObjectModel:l,selectionService:c,styleModel:u}=e,d=a.query.getProperties(),f=i.getLayoutValue("dimensionAxis");if(!f)return!1;const{show:h}=f;if("all"!==h&&"title"!==h)return!1;const{orientation:p}=o.meta.major,m=u.query.axis.title.getStyle();return{type:"data-title",key:md.COMPONENT.AXIS_TITLE.MAJOR,layout:{dock:o.meta.major.dock,minimumLayoutMode:jf.AXIS_TITLE.MAJOR[p.toUpperCase()]},settings:{hyperCube:i.getHyperCube(),hyperCubeDef:d&&d.qHyperCubeDef,isDimension:!0,disabled:()=>!n.interact.enabled(),model:l,app:s,translator:t.translator,rtl:"rtl"===t.options.direction,selections:c.getSelectionsObject(),isEnabled:r.isEnabled},style:{fontFamily:m.fontFamily,fontSize:m.fontSize,color:m.color}}}const xp=(e,t,n)=>e.query.seriesByAxis(n).map((e=>({...t[e.refIndex],explicitColumn:e.refIndex})));function Sp({models:e,environment:t,actions:n,flags:r}){const{layoutService:i,dockService:o,seriesModel:a,propertiesModel:s,appModel:l,genericObjectModel:c,selectionService:u,styleModel:d}=e,f=s.query.getProperties(),h=i.getLayoutValue("measureAxes");if(!h||!h.length)return[];const p=d.query.axis.title.getStyle(),{measureAxes:m}=a.meta;return m.filter((e=>e.isPrimary?"all"===h[0].show||"title"===h[0].show:"all"===h[1].show||"title"===h[1].show)).map((e=>{const s=i.getHyperCube(),{isPrimary:d}=e,h=a.query.seriesByAxis(d).length>1,m={type:"data-title",key:d?md.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:md.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,layout:{dock:d?o.meta.minor.dock:o.meta.minorSecondary.dock,minimumLayoutMode:jf.AXIS_TITLE.MINOR},settings:{hyperCube:s,hyperCubeDef:f&&f.qHyperCubeDef,isDimension:!1,explicitItemInfos:xp(a,s.qMeasureInfo,d),onChangeToAlternative:({oldItem:e,newItem:t})=>{t.qDef.series=e.qDef.series;const n=e.qAttributeExpressions.findIndex((e=>"colorByExpression"===e.id));if(-1!==n){const r=e.qAttributeExpressions.splice(n,1)[0];t.qAttributeExpressions.unshift(r)}},disabled:()=>!n.interact.enabled(),model:c,app:l,translator:t.translator,rtl:"rtl"===t.options.direction,selections:u.getSelectionsObject(),skipAttributeExpressions:!0,isEnabled:r.isEnabled},style:{fontFamily:p.fontFamily,fontSize:p.fontSize,color:p.color}};return h&&(m.settings.padding="0",m.settings.minWidth="auto"),m}))}function wp({models:e,environment:t,actions:n,flags:r}){return r.isEnabled("IM_5788_DATA_TITLE_REFACTOR")?[]:[bp({models:e,environment:t,actions:n,flags:r}),...Sp({models:e,environment:t,actions:n,flags:r})]}function Mp({models:e,environment:t,actions:n,viewCache:r}){const{alternativeService:i,layoutService:o,dockService:a,appModel:s,genericObjectModel:l,selectionService:c,styleModel:u}=e,d=o.getLayoutValue("dimensionAxis");if(!d)return!1;const{show:f}=d;if("all"!==f&&"title"!==f)return!1;const h=i.getAlternatives(),{orientation:p}=a.meta.major,m=u.query.axis.title.getStyle();return{type:"axis-title",key:md.COMPONENT.AXIS_TITLE.MAJOR,renderer:"react-qcm",layout:{dock:a.meta.major.dock,minimumLayoutMode:jf.AXIS_TITLE.MAJOR[p.toUpperCase()]},data:{infos:o.getHyperCubeValue("qDimensionInfo"),alternatives:h.dimensions},resources:{app:s,cache:r,model:l,selections:c.getSelectionsObject(),translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>!n.interact.enabled(),isRTL:"rtl"===t.options.direction,isSnapshot:o.meta.isSnapshot,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:m.color,fontFamily:m.fontFamily,fontSize:m.fontSize}}}}function kp({models:e,environment:t,actions:n,viewCache:r}){const{alternativeService:i,layoutService:o,dockService:a,seriesModel:s,appModel:l,genericObjectModel:c,selectionService:u,styleModel:d}=e,f=o.getLayoutValue("measureAxes");if(!f||!f.length)return[];const h=i.getAlternatives(),p=d.query.axis.title.getStyle(),{measureAxes:m}=s.meta;return m.filter((e=>e.isPrimary?"all"===f[0].show||"title"===f[0].show:"all"===f[1].show||"title"===f[1].show)).map((e=>{const i=o.getHyperCube(),{isPrimary:d}=e;return{type:"axis-title",key:d?md.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:md.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,renderer:"react-qcm",layout:{dock:d?a.meta.minor.dock:a.meta.minorSecondary.dock,minimumLayoutMode:jf.AXIS_TITLE.MINOR},data:{infos:xp(s,i.qMeasureInfo,d),alternatives:h.measures},resources:{app:l,cache:r,model:c,selections:u.getSelectionsObject(),translator:t.translator},callbacks:{onChange:({fromItem:e,toItem:t})=>{t.qDef.series=e.qDef.series;const n=e.qAttributeExpressions.findIndex((e=>"colorByExpression"===e.id));if(-1!==n){const r=e.qAttributeExpressions.splice(n,1)[0];t.qAttributeExpressions.unshift(r)}}},settings:{isDisabled:()=>!n.interact.enabled(),isRTL:"rtl"===t.options.direction,isSnapshot:o.meta.isSnapshot,skipAttributeExpressions:!0,type:"measure"},style:{title:{fontFamily:p.fontFamily,fontSize:p.fontSize,color:p.color}}}}))}function Ep({models:e,environment:t,actions:n,viewCache:r,flags:i}){return i.isEnabled("IM_5788_DATA_TITLE_REFACTOR")?[Mp({models:e,environment:t,actions:n,viewCache:r}),...kp({models:e,environment:t,actions:n,viewCache:r})]:[]}function Cp({models:e,environment:t,viewState:n,viewCache:r}){const{discreteModel:i,layoutService:o,dockService:a,continuousModel:s,themeService:l}=e,{isSnapshot:c,isDiscrete:u,isContinuous:d}=o.meta,f="rtl"===t.options.direction;return!(c&&!d)&&function({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:i,viewCache:o,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=Yd({layoutService:e,override:l});if(d.none)return!1;const{orientation:f}=t.meta.major,h={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===f?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:f,rtl:s,isContinuous:e.meta.isContinuous,range:()=>Ud({layoutService:e,viewState:i,viewCache:o})}};d.bar&&(h.settings.style="slim",h.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(h.settings.size.thumb={min:4}));const p=a.getStyles();return p.color&&(h.style={standard:{thumb:{"border-color":p.color,opacity:.4},before:{background:p.color,opacity:.1},after:{background:p.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(h.settings.injections=()=>[Vd({layoutService:e,discrete:n})]),h}({viewState:n,viewCache:r,discrete:i,continuousDataModel:s,layoutService:o,dockService:a,themeService:l,rtl:f,scrollbarOverride:{predicate:()=>u,value:Hd.OPTIONS.BAR.value},deviceType:t.deviceType})}function Op({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i}){const{layoutService:o}=t,a=zh({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i});if(!a)return!1;const s=i?yd.PRIMARY:yd.SECONDARY;return a.key=`${md.COMPONENT.MINI_CHART.BAR}-${s}`,a.data.collection=o.meta.isBarSeriesStacked?i?md.COLLECTION.REDUCED_STACKED_PRIMARY:md.COLLECTION.REDUCED_STACKED_SECONDARY:i?md.COLLECTION.REDUCED_PRIMARY:md.COLLECTION.REDUCED_SECONDARY,a.settings.box.minWidthPx=void 0,a.settings.minor.scale=i?md.SCALE.MINOR.REDUCED_PRIMARY:md.SCALE.MINOR.REDUCED_SECONDARY,a.settings.major.scale=md.SCALE.REDUCED,a.layout={dock:"@scrollbar"},a}function Np({environment:e,models:t}){const n=t.styleModel.query.line.getStrokeDasharrayFn();return t.seriesModel.query.series(gd.LINE).map((r=>{const i=dh({models:t,environment:e,series:r});return i.key=th(md.COMPONENT.MINI_CHART.LINE,r),i.data.collection=md.COLLECTION.REDUCED,i.settings.coordinates.minor.scale=r.isPrimary?md.SCALE.MINOR.REDUCED_PRIMARY:md.SCALE.MINOR.REDUCED_SECONDARY,i.settings.coordinates.major.scale=md.SCALE.REDUCED,i.settings.layers.line.strokeWidth=1,i.settings.layers.line.strokeDasharray=(...e)=>void 0===n(...e)?void 0:"1, 1",i.layout={dock:"@scrollbar"},i}))}function Tp({models:e,environment:t}){return e.seriesModel.query.series(gd.MARKER).map((n=>{const r=lh({models:e,environment:t,series:n});return r.key=th(md.COMPONENT.MINI_CHART.MARKER,n),r.data.collection=md.COLLECTION.REDUCED,r.settings.y.scale=n.isPrimary?md.SCALE.MINOR.REDUCED_PRIMARY:md.SCALE.MINOR.REDUCED_SECONDARY,r.settings.x.scale=md.SCALE.REDUCED,r.layout={dock:"@scrollbar"},r}))}function Ap({chart:e,models:t,viewState:n,viewCache:r,environment:i}){return Cf(t)?[Op({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),Op({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1}),...Np({environment:i,models:t}),...Tp({models:t,environment:i})]:[]}function Rp({models:e}){const{layoutService:t,dockService:n}=e,{isContinuous:r,isTime:i}=t.meta,o=t.getLayoutValue("dimensionAxis");if(!o||"none"===o.show||"title"===o.show)return[!1];if(!r)return[!1];const a=jf.AXIS.MAJOR[n.meta.major.orientation.toUpperCase()];return i?[{type:"axis-overlay",key:md.COMPONENT.AXIS_OVERLAY.TIME_INNER,scale:md.SCALE.MAJOR_INNER,layout:{dock:`@${md.COMPONENT.AXIS.TIME_INNER}`,minimumLayoutMode:a}},{type:"axis-overlay",key:md.COMPONENT.AXIS_OVERLAY.TIME_OUTER,scale:md.SCALE.MAJOR,layout:{dock:`@${md.COMPONENT.AXIS.TIME_OUTER}`,minimumLayoutMode:a}}]:[{type:"axis-overlay",key:md.COMPONENT.AXIS_OVERLAY.CONTINUOUS,scale:md.SCALE.MAJOR,layout:{dock:`@${md.COMPONENT.AXIS.MAJOR_CONTINUOUS}`,minimumLayoutMode:a}}]}function qp({chart:e,models:t,environment:n}){const{refLineModel:r,layoutService:i,colorService:o,dockService:a,themeService:s,appLayoutModel:l,seriesModel:c,animationsModel:u}=t,d=l.qLocaleInfo,{options:f,theme:h}=n,p="rtl"===f.direction,m=c.query.series(gd.BAR).filter((e=>e.isPrimary)),g=c.query.series(gd.BAR).filter((e=>!e.isPrimary)),y=c.query.series(gd.LINE),v=c.query.series(gd.MARKER),b=c.query.all(),x=b.some((e=>e.isPrimary)),S=b.some((e=>!e.isPrimary)),w=x&&S,M={resolveUIColor:o.getPaletteColor},k=u.enabled,E=x?fd({refLineModel:r,layoutService:i,colorModel:M,dock:w?a.meta.minor.dock:a.meta.minor.opposite,scale:md.SCALE.MINOR.PRIMARY,style:s.getStyles(),formatter:md.FORMATTER.PRIMARY,theme:h,localeInfo:d,rtl:p,key:md.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE_LABEL,animationsEnabled:k}):[],C=S?fd({refLineModel:r,layoutService:i,colorModel:M,dock:w?a.meta.minor.opposite:a.meta.minor.dock,scale:md.SCALE.MINOR.SECONDARY,style:s.getStyles(),formatter:md.FORMATTER.SECONDARY,theme:h,localeInfo:d,rtl:p,key:md.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE_LABEL,path:"refLine.refLines2",animationsEnabled:k}):[];return[!!x&&ud({refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:md.SCALE.MINOR.PRIMARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:md.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE,minimumLayoutMode:jf.REFERENCE_LINE,animationsEnabled:k}),!!S&&ud({refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:md.SCALE.MINOR.SECONDARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:md.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE,path:"refLine.refLines2",minimumLayoutMode:jf.REFERENCE_LINE,animationsEnabled:k}),ud({isDimension:!0,refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:md.SCALE.MAJOR,axis:"horizontal"===a.meta.major.orientation?"x":"y",rtl:p,key:md.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:m.length?`${md.COMPONENT.BAR}-${yd.PRIMARY}`:g.length?`${md.COMPONENT.BAR}-${yd.SECONDARY}`:y.length?`${md.COMPONENT.LINE}-${y[0].id}`:v.length?`${md.COMPONENT.MARKER}-${v[0].id}`:`${md.COMPONENT.BAR}-${yd.PRIMARY}`,minimumLayoutMode:jf.REFERENCE_LINE,animationsEnabled:k}),...E,...C,...fd({isDimension:!0,refLineModel:r,layoutService:i,colorModel:M,dock:a.meta.major.opposite,scale:md.SCALE.MAJOR,style:s.getStyles(),theme:h,localeInfo:d,rtl:p,key:md.COMPONENT.DIMENSION_REF_LINE_LABEL,animationsEnabled:k})]}function Dp({layoutService:e}){return!!Cf({layoutService:e})&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:md.SCALE.REDUCED,brush:"selection",fill:"#6CB33F",opacity:.2}}}function Ip(e){return(null==e?void 0:e.type)||gd.BAR}function Lp({models:e,environment:t}){const{layoutService:n,colorService:r,dockService:i,seriesModel:o,selectionService:a}=e,{hasLineSeries:s,isContinuous:l,hasMultipleMeasures:c,isGroupedByMeasure:u}=n.meta;if(!s)return!1;const{options:d}=t,f=n.getLayoutValue("color",{}),h=e=>e.filter((e=>Ip(e)===gd.LINE)).map((e=>({key:th(md.COMPONENT.LINE,e),typeIndex:e.typeIndex}))),p=!f.auto&&"byMeasure"===f.mode&&f.byMeasureDef&&void 0!==f.byMeasureDef.activeMeasureIndex,m=n.getHyperCubeValue("qMeasureInfo").map((e=>{var t;return null===(t=e.color)||void 0===t?void 0:t.on}));return{type:"brush-highlighter",key:"brush-highlighter",data:{collection:md.COLLECTION.LINE},settings:{getSelectionInfo:()=>{var e;return(null==a||null===(e=a.getSelectionInfo)||void 0===e?void 0:e.call(a))||{}},seriesInfo:{primary:h(o.meta.primarySeries),secondary:h(o.meta.secondarySeries)},selectionValues:{"qHyperCube/qDimensionInfo/0":l?e=>e.value:e=>e.major.value,"qHyperCube/qDimensionInfo/0:numeric":e=>e.major.value,"qHyperCube/qDimensionInfo/0/qAttrExprInfo/0":e=>e.end.value,"qHyperCube/qMeasureInfo/X":e=>e.end.value},colorSettings:e=>r.getSettingsForMeasure(e),colorByData:e=>!m[e]&&p,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:o.meta.barSeriesCount,orientation:i.meta.major.orientation,rtl:"rtl"===d.direction}}}function Pp({models:{fieldModel:e}}){return{[md.FORMATTER.PRIMARY]:{data:{fields:e.main.minorsPrimary}},[md.FORMATTER.SECONDARY]:{data:{fields:e.main.minorsSecondary}}}}var _p={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:zp}=_p;function Fp({layoutService:e,largeDataService:t}){const{maxNumPoints:n=zp}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:jp}=_p,$p=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=jp}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!Fp({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:Bp}=_p,{MAX_NUM_POINTS:Hp,DEFAULT_NUM_POINTS:Vp,DEFAULT_NUM_LINES:Up}=_p,{DEFAULT_NUM_POINTS:Wp}=_p,Yp=({layoutService:e,largeDataService:t})=>{if(!Fp({layoutService:e,largeDataService:t})){const{maxNumPoints:e=Wp}=(null==t?void 0:t.meta)||{};return e}const{dimensionCount:n}=e.meta;return n>1?(({layoutService:e,largeDataService:t})=>{var n;const{dimensions:r=[]}=(null==e||null===(n=e.meta)||void 0===n?void 0:n.size)||{},{maxNumLines:i=Up,maxNumPoints:o=Vp,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if($p({layoutService:e,largeDataService:t})*r[0]<=o)return r[0];const s=Math.max(1,Math.min(i,r[1])),l=o/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>Up||o>Vp)?Math.min(c,Math.ceil(Hp/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=Bp}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},i=4+2*(r-1);return Math.floor(n/(r*i))})({layoutService:e,largeDataService:t})};function Gp({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>Fp({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>Yp({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>$p({layoutService:t,largeDataService:n}),fetch:(i,o)=>(({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:Yp({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:$p({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)})({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Kp(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Xp({layoutService:e,viewCache:t}){return{fetch:()=>{const{qAxisData:t,qDataPages:n}=e.getHyperCube();return Promise.resolve({qAxisData:t,qDataPages:n})},getSnapshotData(){const n=e.getLayoutValue("snapshotData.content.chartData",{});return"zoom"in n&&"min"in n.zoom&&"max"in n.zoom?function({zoom:e}){return{zoom:e}}(n):function({scrollOffset:e=0,viewRange:t=0},n){let r=n+e,i=r+t;return 1===t&&0===e&&(r=n-.5,i=n+.5),{zoom:{min:r,max:i}}}(n,t.get("continuousMin"))}}}function Jp(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1),t.push(e),n[e]=r},e.forEach=e=>{t.forEach(((t,r)=>e(n[t],r)))},e.has=e=>e in n,e}function Zp(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=Jp(),o=Jp();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?i.set(l,s):s[0].qNum>t&&(o.has(l)||o.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i.forEach(((e,t)=>r.splice(t,0,e))),o.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let i,o;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?i=s:s[0].qNum>t&&(o||(o=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i&&r.unshift(i),o&&r.push(o),r}({start:e,end:t,matrix:n})}function Qp(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function em(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Zp(e,t,n.qMatrix),i=Qp(n.qArea,r);return{...n,qArea:i,qMatrix:r}}))};return n.qAxisData&&n.qAxisData.qAxis&&(r.qAxisData=function(e,t,n){return{qAxis:n.qAxis.map((n=>({qName:n.qName,qTags:n.qTags,qTicks:n.qTicks.reduce(((n,r)=>((r.qStart>=e&&r.qStart<=t||r.qEnd>=e&&r.qEnd<=t||r.qStart<e&&r.qEnd>t)&&n.push(r),n)),[])})))}}(e,t,n.qAxisData)),r}const tm=2**.5,nm=1/tm,rm=nm**44;function im(e){return e.qIsOtherCell}function om({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(im)){const n=e[0].qElemNumber;t[n]=void 0}})),Object.keys(t).length}(n):function(e){let t=0;return e.forEach((e=>{e.some(im)||t++})),t}(n)}const am={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var sm={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],i=t[e+1];r.data={},i||1===r.end?i?(r.data.start=r.value,r.data.end=i.value,r.end=i.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};function lm(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function cm(e,t){const{localProps:{size:n},props:{anchor:r}}=t,i=function({props:e,localProps:{size:t},style:n,renderer:r}){const i=e.label.padding,o=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",c=s(l);let{x:u,width:d}=r;e.start===e.end&&(d=c.width+2*i,1===e.end&&(u-=d));const f={x:u+i,y:i,width:d-2*i,height:t.height-2*i},h=s(`${l[0]}…`).width,p=Math.max(0,f.width-c.width),m=Math.max(0,f.height-c.height),g=o*p,y=a*m;return{show:f.width>=Math.min(h,c.width),text:l,dx:g,dy:y,rect:f,style:n.label,segment:{x:u+g,width:c.width+2*i},tickValue:e.value}}}}(t),o=function({localProps:{size:e},style:t,scale:n,props:r}){const[i,o]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=lm(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:lm(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine,tickValue:n.value}}}}(t),a=e.map((e=>{const t=function(e,t,n){const r=Math.abs(Math.max(e.start,0)-Math.min(e.end,1))*t.width;return{x:Math.max(e[n],0)*t.width,y:0,width:r,height:t.height}}(e,n,r);return{rect:t,label:i.resolve(e,t),guideLine:o.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],i=t[n-1].label;if(r&&r.start===r.end)for(let e=n-2;e>-1;e--){const n=t[e].label;n.show=n.show&&(o=n.segment,a=i.segment,!(o.x<a.x?o.x+o.width>=a.x:a.x+a.width>=o.x))}var o,a}(e,a),a}function um(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const i=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),o=lm(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:lm(i,n.minorGuideLine.strokeWidth),x2:o,y2:lm(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function dm(e){return e.filter((e=>e.show)).map((e=>p({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var fm={require:["renderer"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{anchor:"start",label:{show:!0,padding:4,align:0,justify:0},line:{show:!0},guideLine:{major:{justify:0},minor:{show:!0,size:4,align:0}}},style:{label:"$label",line:"$guide-line",majorGuideLine:"$guide-line",minorGuideLine:"$guide-line"}},preferredSize:()=>({size:30,edgeBleed:{left:1,right:1}}),init(){this.props=this.settings.settings,this.localProps={},this.state={major:[],minor:[]}},created(){this.init()},beforeUpdate(){this.init()},beforeRender({size:e}){this.localProps.size=e;const t=this.scale.ticks({distance:e.width}),n=t.filter((e=>!e.isMinor)),r=t.filter((e=>e.isMinor));this.state.line=function({localProps:{size:e},style:t,props:n}){const r=lm(1,t.line.strokeWidth);return{show:n.line.show,x1:lm(0,t.line.strokeWidth),y1:r,x2:lm(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=cm(n,this),this.state.minor=um(r,this)},render(){return[...dm([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>p({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...dm(this.state.major.map((e=>e.guideLine))),...dm(this.state.minor.map((e=>e.guideLine)))];var e}};function hm(e,t){return e&&t&&e.qTicks.length===t.qTicks.length&&e.qTicks.every(((e,n)=>e.qStart===t.qTicks[n].qStart&&e.qEnd===t.qTicks[n].qEnd))}function pm(e){return e.qTags.indexOf("$qualified")>-1}function mm({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];hm(o,a)?(pm(a)?(t.push(i),n.push(r)):(t.push(r),n.push(i)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function gm({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,i=NaN,o=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(i=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){o="auto",s=!0;break}if(e&&e.queries.inner(n)){o=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(i)&&Number.isNaN(o)&&"auto"!==o){o=i,i=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(i)&&(i="auto",o="auto");return{outer:i,inner:o,minor:a,isDayOrShorter:s}}}}function ym({qTicks:e,measureText:t=()=>({width:0}),cache:n={},scale:r}){const i=n;return{isDayOrShorter:()=>(i.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,i.isDayOrShorter),count:()=>e.length,maxRange:()=>(i.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,i.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),i.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+16}))),r.clamp(n),i.rangeAndWidth}}}function vm({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=6,canFitHalfDayTicks:n=>n>=t*e.count()}}function bm({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=ym,queryFactory:s=vm}={attributesFactory:ym,queryFactory:vm}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:o});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:i})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function xm({qAxis:e=[],measureText:t=()=>({width:0}),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=bm,mapper:a=mm,resolver:s=gm}={metaFactory:bm,mapper:mm,resolver:gm}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=o({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:i}),f=s({qualifiedMeta:u,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const i=f.resolve(t);return n.set(r,i),i}}}function Sm(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}const wm=Sm(0).getTime();function Mm(e){return(e.getTime()-wm)/86400/1e3}const km=new Date,Em=new Date;function Cm(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>Cm((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(km.setTime(+t),Em.setTime(+r),e(km),e(Em),Math.floor(n(km,Em))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const Om=1e3,Nm=6e4,Tm=36e5,Am=864e5,Rm=6048e5,qm=Cm((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Om)}),((e,t)=>(t-e)/Om),(e=>e.getUTCSeconds()));qm.range;const Dm=Cm((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Om)}),((e,t)=>{e.setTime(+e+t*Nm)}),((e,t)=>(t-e)/Nm),(e=>e.getMinutes()));Dm.range;const Im=Cm((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Nm)}),((e,t)=>(t-e)/Nm),(e=>e.getUTCMinutes()));Im.range;const Lm=Cm((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Om-e.getMinutes()*Nm)}),((e,t)=>{e.setTime(+e+t*Tm)}),((e,t)=>(t-e)/Tm),(e=>e.getHours()));Lm.range;const Pm=Cm((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Tm)}),((e,t)=>(t-e)/Tm),(e=>e.getUTCHours()));Pm.range;const _m=Cm((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nm)/Am),(e=>e.getDate()-1));_m.range;const zm=Cm((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Am),(e=>e.getUTCDate()-1));zm.range;const Fm=Cm((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Am),(e=>Math.floor(e/Am)));function jm(e){return Cm((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nm)/Rm))}Fm.range;const $m=jm(0),Bm=jm(1),Hm=jm(2),Vm=jm(3),Um=jm(4),Wm=jm(5),Ym=jm(6);function Gm(e){return Cm((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/Rm))}$m.range,Bm.range,Hm.range,Vm.range,Um.range,Wm.range,Ym.range;const Km=Gm(0),Xm=Gm(1),Jm=Gm(2),Zm=Gm(3),Qm=Gm(4),eg=Gm(5),tg=Gm(6);Km.range,Xm.range,Jm.range,Zm.range,Qm.range,eg.range,tg.range;const ng=Cm((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));ng.range;const rg=Cm((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));rg.range;const ig=Cm((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));ig.every=e=>isFinite(e=Math.floor(e))&&e>0?Cm((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,ig.range;const og=Cm((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));og.every=e=>isFinite(e=Math.floor(e))&&e>0?Cm((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,og.range;const ag=1,sg=2,lg=3,cg=4,ug=5,dg=6;function fg({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:i,timeOnly:o,initialMin:a}){const[s,l]=e.domain(),c=i.key({distance:n});let u;i.get(c,1)?u=i.get(c,1):(u=function(e,t,n,r,i,o){function a(e){return og.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=qm.count(e,t),l=Im.count(e,t),c=Pm.count(e,t),u=zm.count(e,t),d=Km.count(e,t),f=rg.count(e,t),h=og.count(e,t),p=n/r.second.width-1,m=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:h,interval:og.every(1),formatter:r.year.formatter,offset:e=>og.offset(e,-1),floor:og.floor};if(s<=p)v.type=ag,v.desc="second",v.count=s,v.interval=qm.every(1),v.formatter=r.second.formatter,v.offset=e=>qm.offset(e,-1),v.floor=qm.floor;else if(s/2<=p)v.type=ag,v.desc="every other second",v.count=s/2,v.interval=qm.every(2),v.formatter=r.second.formatter,v.offset=e=>qm.offset(e,-2),v.floor=qm.floor;else if(s/5<=p)v.type=ag,v.desc="every 5 second",v.count=s/5,v.interval=qm.every(5),v.formatter=r.second.formatter,v.offset=e=>qm.offset(e,-5),v.floor=qm.floor;else if(s/15<=p)v.type=ag,v.desc="every 15 second",v.count=s/15,v.interval=qm.every(15),v.formatter=r.second.formatter,v.offset=e=>qm.offset(e,-15),v.floor=qm.floor;else if(s/30<=p)v.type=ag,v.desc="every 30 second",v.count=s/30,v.interval=qm.every(30),v.formatter=r.second.formatter,v.offset=e=>qm.offset(e,-30),v.floor=qm.floor;else if(l<=m)v.type=sg,v.desc="minute",v.count=l,v.interval=Im.every(1),v.formatter=r.minute.formatter,v.offset=e=>Im.offset(e,-1),v.floor=Im.floor;else if(l/2<=m)v.type=sg,v.desc="every 2 minute",v.count=l/2,v.interval=Im.every(2),v.formatter=r.minute.formatter,v.offset=e=>Im.offset(e,-2),v.floor=Im.floor;else if(l/5<=m)v.type=sg,v.desc="every 5 minute",v.count=l/5,v.interval=Im.every(5),v.formatter=r.minute.formatter,v.offset=e=>Im.offset(e,-5),v.floor=Im.floor;else if(l/10<=m)v.type=sg,v.desc="every 10 minute",v.count=l/10,v.interval=Im.every(10),v.formatter=r.minute.formatter,v.offset=e=>Im.offset(e,-10),v.floor=Im.floor;else if(l/15<=m)v.type=sg,v.desc="every 15 minute",v.count=l/15,v.interval=Im.every(15),v.formatter=r.minute.formatter,v.offset=e=>Im.offset(e,-15),v.floor=Im.floor;else if(l/30<=m)v.type=sg,v.desc="every 30 minute",v.count=l/30,v.interval=Im.every(30),v.formatter=r.minute.formatter,v.offset=e=>Im.offset(e,-30),v.floor=Im.floor;else if(c<=m)v.type=lg,v.desc="hour",v.count=c,v.interval=Pm.every(1),v.formatter=r.minute.formatter,v.offset=e=>Pm.offset(e,-1),v.floor=Pm.floor;else if(c/2<=m)v.type=lg,v.desc="every 2 hour",v.count=c/2,v.interval=Pm.every(2),v.formatter=r.minute.formatter,v.offset=e=>Pm.offset(e,-2),v.floor=Pm.floor;else if(c/3<=m)v.type=lg,v.desc="every 3 hour",v.count=c/3,v.interval=Pm.every(3),v.formatter=r.minute.formatter,v.offset=e=>Pm.offset(e,-3),v.floor=Pm.floor;else if(c/6<=m)v.type=lg,v.desc="every 6 hour",v.count=c/6,v.interval=Pm.every(6),v.formatter=r.minute.formatter,v.offset=e=>Pm.offset(e,-6),v.floor=Pm.floor;else if(c/12<=m||i)v.type=lg,v.desc="every 12 hour",v.count=c/12,v.interval=Pm.every(12),v.formatter=r.minute.formatter,v.offset=e=>Pm.offset(e,-12),v.floor=Pm.floor;else if(u<=g)v.type=cg,v.desc="day",v.count=u,v.interval=zm.every(1),v.formatter=r.date.formatter,v.offset=e=>zm.offset(e,-1),v.floor=zm.floor;else if(u/2<=g)v.type=cg,v.desc="every 2 day",v.count=u/2,v.interval=zm.every(2),v.formatter=r.date.formatter,v.offset=e=>zm.offset(e,-2),v.floor=zm.floor;else if(u/3<=g)v.type=cg,v.desc="every 3 day",v.count=u/3,v.interval=zm.every(3),v.formatter=r.date.formatter,v.offset=e=>zm.offset(e,-3),v.floor=zm.floor;else if(d<=g)v.type=cg,v.desc="week",v.count=d,v.interval=Km.every(1),v.formatter=r.date.formatter,v.offset=e=>Km.offset(e,-1),v.floor=zm.floor;else if(d/2<=g)v.type=cg,v.desc="every 2 week",v.count=d/2,v.interval=Km.every(2),v.formatter=r.date.formatter,v.offset=e=>Km.offset(e,-2),v.floor=zm.floor;else if(f<=g)v.type=ug,v.desc="month",v.count=f,v.interval=rg.every(1),v.formatter=r.date.formatter,v.offset=e=>rg.offset(e,-1),v.floor=zm.floor;else if(f/3<=g)v.type=ug,v.desc="quarter",v.count=f/3,v.interval=rg.every(3),v.formatter=r.date.formatter,v.offset=e=>rg.offset(e,-3),v.floor=zm.floor;else if(f/6<=g)v.type=ug,v.desc="half year",v.count=f/6,v.interval=rg.every(6),v.formatter=r.date.formatter,v.offset=e=>rg.offset(e,-6),v.floor=zm.floor;else if(h<=y)v.type=dg,v.desc="year",v.count=h,v.interval=og.every(1),v.formatter=r.year.formatter,v.offset=e=>og.offset(e,-1),v.floor=og.floor;else if(h/2<=y)v.type=dg,v.desc="every 2 year",v.count=h/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>og.offset(e,-2),v.floor=og.floor;else if(h/5<=y)v.type=dg,v.desc="every 5 year",v.count=h/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>og.offset(e,-5),v.floor=og.floor;else if(h/10<=y)v.type=dg,v.desc="every 10 year",v.count=h/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>og.offset(e,-10),v.floor=og.floor;else{const e=Math.max(1,Math.floor(h/y));v.type=dg,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>og.offset(t,-e),v.floor=og.floor}return v}(s,l,n,t.all(),r,a),i.set(c,u,1));const d=e.ticks(u.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(u.offset(d[0])):d.push(u.floor(s));const f=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:u.formatter}}));let h=[];if(!o&&u.type<=lg){const n=t.getFormat("date"),r=e.ticks(zm.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(zm.offset(r[0],-1)),h=(r.length?r:[zm.floor(s)]).map(((e,t,r)=>{const i=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+i),formatter:n.formatter}}))}return{inner:f,outer:h}}const hg=86400,pg=1440,mg={};function gg(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function yg(e,t,n){const{generator:r,anchor:i,clamp:o,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(o);const[l,c]=e.domain(),u=Ti().domain([Sm(l),Sm(c)]);u.clamp(o),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let f;f="d3"===d.type?(e,i)=>fg({timeScale:u,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:Sm(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(mg[[t,n,r,r,o]])return mg[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=Sm(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,f=t/(i-r),h=f/1440,p=f/hg,m=366*f,g=3*f*30,y=a.second.width/p,v=a.minute.width/h,b=a.date.width/g,x=a.year.width/m;let S,w,M,k=0,E=0,C=null,O=null,N=null,T=null,A=null,R=null;const q={outer:[],inner:[]};for(y<1?(C=1,E=1/hg):y<2?(C=2,E=1/hg*2):y<5?(C=5,E=1/hg*5):y<10?(C=10,E=.00011574074074074073):y<30?(C=30,E=.0003472222222222222):v<1?(O=1,E=1/pg):v<2?(O=2,E=1/pg*2):v<5?(O=5,E=1/pg*5):v<10?(O=10,E=.006944444444444445):v<30?(O=30,E=.020833333333333336):v<60?(N=1,E=1/24):v<120?(N=2,E=2/24):v<360?(N=6,E=.25):v<720?(N=12,E=.5):b<1/90?(E=1,T=1):b<2/90?(E=2,T=2):b<7/90?(E=7,T=7):b<31/90?(A=1,E=31):b<1?(A=3,E=90):x<1?(R=1,E=366):x<2?(R=2,E=732):x<5?(R=5,E=1826.25):(R=10,E=3652.5),w=Math.floor((d+n%1)/E);k<i;){M=w+1,S=R?gg("year",[l+w*R,0,1],[l+M*R,0,1],a.year.formatter):A?gg("month",[l,c+w*A,1],[l,c+M*A,1],a.date.formatter):T?gg("day",[l,c,u+w*T],[l,c,u+M*T],a.date.formatter):N?gg("hour",[l,c,u,0+w*N],[l,c,u,0+M*N],a.minute.formatter):O?gg("minute",[l,c,u,0,0+w*O],[l,c,u,0,0+M*O],a.minute.formatter):gg("second",[l,c,u,0,0,0+w*C],[l,c,u,0,0,0+M*C],a.second.formatter),k=Mm(S.start),q.inner.push(S);const e=Math.floor(k);if(!(o||R||A||T)){const t={type:"day",start:Sm(e),end:Sm(e+1),formatter:a.date.formatter,qStart:e};q.outer[q.outer.length-1]&&q.outer[q.outer.length-1].qStart===t.qStart||q.outer.push(t)}w++}return q.min=r,q.max=i,mg[[t,n,r,r,o]]=q,q}(n,e,d.min,l,c,"T"===s.qType);const h={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===i?t.qStart:"end"===i?t.qEnd:(t.qStart+t.qEnd)/2;const o=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(o),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>f(t,n)[a].map((t=>{let n;return n="start"===i?Mm(t.start):"end"===i?Mm(t.end):(Mm(t.start)+Mm(t.end))/2,{position:u(t.start),start:u(t.start),end:u(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:Mm(t.start),end:Mm(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return h}const vg=/t+/i;const bg={min:NaN,max:NaN,invert:!1,qAxis:[],field:void 0,formatter:{fn:()=>e=>e,measureText:()=>({width:0,height:0}),localeInfo:{},qNumFormat:{}},ticks:{generator:"d3",level:"outer",anchor:void 0,clamp:!1},cache:{get:()=>!1,set:()=>{},key:()=>""}};function xg(e,t){e.instance||(e.instance=t.copy(),e.instance.domain(t.domain()),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}const Sg="continuousPan";var wg={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=am,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=Gp,snapshotFetcherFactory:c=Xp,cacheFetcherFactory:u=Kp,cache:d={initial:{},merged:{}}}=s,f=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),h=c({layoutService:t,viewCache:i}),m=u({cache:d}),g=e=>{throw e.isHandled=!0,e};let y,v,b;return{update(e){({initialMin:v,initialMax:b}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),i.set("continuousMin",v),i.set("continuousMax",b),i.set("minimiumZoomSpan",function(e,t){return Math.max(1e-6,(t-e)*rm)}(v,b)),y=t.meta.isSnapshot?h:f,t.meta.isSnapshot&&({zoom:{min:v,max:b}}=h.getSnapshotData()),o.preventSet("zoom",{min:v,max:b})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),t.setHyperCubeValue("qColumnOrder",[]),e},initialFetch(){return y.fetch(v,b).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=Qp(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return r.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),d.initial=t,d.merged=t,e})).then((e=>em(v,b,e))).then((e=>this.updateLayout(e))).catch(g)},fetch:(e,t)=>y.fetch(e,t).then((e=>function(e,t){const n={};return n.qDataPages=(e.qDataPages||[]).map(((e,n)=>{const r=function(e,t){if(!t||!t.length||!t[0].length)return e;const n=t[0][0].qNum,r=t[t.length-1][0].qNum,i=[],o=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?i.push(e[t]):a.qNum>r&&o.push(e[t])}return[...i,...t,...o]}(e.qMatrix,t.qDataPages[n].qMatrix),i=Qp(e.qArea,r);return{...e,qArea:i,qMatrix:r}})),e.qAxisData&&e.qAxisData.qAxis&&(n.qAxisData=function(e,t){if(!t||!t.qAxis.length||t.qAxis.every((e=>!e.qTicks.length)))return e;const n=t.qAxis.map((e=>e.qName)),r=t.qAxis.map((e=>({start:e.qTicks[0].qStart,end:e.qTicks[e.qTicks.length-1].qStart}))),i=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,o=e.qAxis.length;t<o;t++){const o=e.qAxis[t],a=n.indexOf(o.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=o.qTicks.length;n<r;n++){const r=o.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}i[a].qTicks=[...s,...i[a].qTicks,...l]}}return{qAxis:i}}(e.qAxisData,t.qAxisData)),n}(d.initial,e))).then((e=>(r.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),d.merged=e,e))).then((n=>em(e,t,n))).catch(g),fetchFromCache:(e,t)=>m.fetch(e,t).then((n=>em(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return p({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return p({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>om(d.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e,n=r.query.getShouldProcess()?[r.query.getFilteredDataPage({dataPage:d.merged.qDataPages[0]})]:d.merged.qDataPages;t.qDataPages=n,t.qAxisData=d.merged.qAxisData}}},event:{onZoomChange:function(e,t){const{layoutService:n,continuousDataModel:r}=e;function i(e,n,i){return r[e](n,i).then((e=>(r.updateLayout(e),t(),e)))}const o=al(((e,t)=>i("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):i("fetchFromCache",e,t).then((n=>(o(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(i,o)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(i.max-i.min)<r?o:{min:Math.min(i.max,Math.max(t,i.min)),max:Math.max(i.min,Math.min(n,i.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:i=!1,targetKey:o}){const a=e.get("continuousMin"),s=e.get("continuousMax");return sl(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===o))[0])(e);if(l){const o=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,l),c=i?1-o:o,{min:u,max:d}=t.get("zoom"),f=Math.abs(d-u),h=f-(r>0?nm:tm)*f,p=u+h*c,m=d-h*(1-c),g=p<a?a-p:0,y=m>s?m-s:0;t.set("zoom",{min:Math.max(p-y,a),max:Math.min(m+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i}){return{type:"Pan",key:"continuous:pan",options:{event:Sg,pointers:1,threshold:10,enable(r,i){return this.started===Sg||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${Sg}start`](n){n.preventDefault(),this.started=Sg;const{min:i,max:o}=r.get("zoom");this[Sg]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${Sg}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[Sg],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,i.get("continuousMax")-t),max:Math.max(o+s*t,i.get("continuousMin")+t)})},[`${Sg}end`](e){e.preventDefault(),this.started=!1},[`${Sg}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:sm,timeAxis:fm},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((i=>{const o=e[i],a=typeof o;"function"===a?r[i]=o(n):"object"!==a||Array.isArray(o)?r[i]="undefined"===a?t[i]:o:r[i]=p(!0,{},t[i],o)})),r}(t,bg,n),{qAxis:i}=r,o=bn(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let c,u,d=[];const f=function(e){return Number.isNaN(+e)?NaN:o(e)};f.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(d=u.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=u.transform(i[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===o&&(d=u.generate(e,n.isDayOrShorter)),d},f.invert=e=>o.invert(e),f.domain=e=>Array.isArray(e)?o.domain(e):o.domain(),f.range=e=>Array.isArray(e)?o.range(e):o.range(),f.norm=e=>(xg(a,f),a.instance(e)),f.normInvert=e=>(xg(a,f),a.instance.invert(e)),f.copy=()=>e(t,n),f.clamp=(e=!0)=>(o.clamp(e),o.clamp()),f.min=()=>Math.min(s,l),f.max=()=>Math.max(s,l),o.range(r.invert?[1,0]:[0,1]),o.domain([s,l]),a.invert=r.invert;const h=function(e){const t={},{measureText:n,fn:r,localeInfo:i}=e.formatter,o={second:{type:"second",pattern:"hh:mm:ss",width:60,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:60,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:60,formatter:void 0},year:{type:"year",pattern:"YYYY",width:60,formatter:void 0}};return i&&vg.test(i.qTimestampFmt)&&(o.minute.pattern+=" tt",o.second.pattern+=" tt"),o.date.pattern=i&&i.qDateFmt?i.qDateFmt:o.date.pattern,Object.keys(o).forEach((e=>{o[e].formatter=r(o[e].pattern),o[e].width=Math.max(o[e].width,n(o[e].formatter(41000.2343433)).width+16)})),t.getFormat=e=>o[e],t.all=()=>o,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return o.date;const r=Sm(t[0].data.start),i=Sm(t[n-1].data.start);return zm.count(r,i)/n>=1?o.date:Pm.count(r,i)/n>0?o.minute:Im.count(r,i)/n>0?o.second:o.date},t}(r);return u=yg(o.copy(),r,h),c=xm({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*h.getFormat("minute").width,cache:r.cache,scale:f}),f.data=()=>({fields:[{formatter:f.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:nl(n,"fields.0.raw",(()=>({})))}]}),f.formatter=()=>h.getFormatFromTicks(d).formatter,f}}};const Mg=e=>e.meta.seriesComponentKeys[0];function kg({chart:e,models:t,actions:n,viewState:r,viewCache:i,environment:o}){const{event:{onZoom:a}}=wg,{layoutService:s,seriesModel:l}=t,c=Mg(l),u=s.meta.isContinuous?a({chart:e,viewState:r,viewCache:i},{rtl:"rtl"===o.options.direction,threshold:50,targetKey:c}):()=>{};return{type:"native",events:{wheel(t){const r={x:t.clientX,y:t.clientY},i=e.componentsFromPoint(r);if(n.interact.enabled()){const[e]=i.filter((e=>e.key===md.COMPONENT.LEGEND_CATEGORICAL));((e,t)=>{if(t){const n=Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY;t.emit(n>=0?"next":"prev"),e.preventDefault()}})(t,e)}if(n.scroll.enabled()){const[e]=i.filter((e=>e.key===c));e&&(u(r,Math.sign(-t.deltaY)),t.preventDefault())}}}}}const Eg="continuousPinchZoom";function Cg({chart:e,models:t,environment:n,viewState:r,viewCache:i,actions:o,selectables:a}){const s=wg.interactions.areaPan,{layoutService:l,dockService:c,discreteModel:u,colorService:d,tooltipService:f}=t,h="rtl"===n.options.direction,p=f.getInteractions(),m=function({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return{gestures:[...rf({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:of({componentKey:e,chart:t,actions:n,layoutService:o})}}({componentKey:"scrollbar",chart:e,actions:o,viewState:r,viewCache:i,discrete:u,layoutService:l,dockService:c,rtl:h}),g={type:"hammer",enable:!0,gestures:[...d.custom.legendInteractions(),...a.gestures.sort(((e,t)=>(t.prio||0)-(e.prio||0))),...m.gestures,...p.gestures]},y=[kg({chart:e,models:t,actions:o,viewState:r,viewCache:i,environment:n}),m.native,p.native];return l.meta.isDiscrete&&(g.gestures.push(...u.interactions.gestures),y.push(u.interactions.native)),l.meta.isContinuous&&g.gestures.push(s({targetKey:Mg(t.seriesModel),chart:e,actions:o,viewState:r,viewCache:i}),function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i,rtl:o}){const a={last:0},s=wg.event.onZoom({viewCache:i,viewState:r,chart:t},{threshold:100,rtl:o,targetKey:e});return{type:"Pinch",key:"continuous:pinch-zoom",options:{event:Eg,pointers:2,threshold:0,enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{[`${Eg}start`](e){a.last=e.scale,e.preventDefault()},[`${Eg}move`](e){const t=e.scale-a.last;Math.abs(t)>.01&&s(e.center,t>0?1:-1),a.last=e.scale,e.preventDefault()}}}}({targetKey:Mg(t.seriesModel),chart:e,actions:o,viewState:r,viewCache:i,rtl:h})),[g,...y]}const Og="lasso",Ng=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:Og,enable(e,n){if(this.started===Og||!n)return!0;if(!i.actions.select.enabled()||!i.actions.lasso.enabled()||!i.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==Og&&(i.actions.select.emit("start",Og),this.chart.component(e).emit("lassoStart",t),this.started=Og)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof i.updateOnMove&&i.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),i.actions.select.emit("end",Og),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const Tg=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:i="tap"},o)=>{let a;const s=o.customTooltipModel?o.customTooltipModel.utils:void 0,l=s?o.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:i,interval:10,pointers:1,enable(t,n){return!n||!(!o.actions.select.enabled()&&!o.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[i](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}(t,this.chart),c=o.hitRadius?o.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=o.shapesAt?o.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),f=this.chart.component("tooltip"),h="mouse"!==t.pointerType&&f&&f.show;if(!o.isLocked(a)&&!o.tooltipOnly&&o.actions.select.enabled()){const e=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}),n=e.some((e=>"legend-cat"===e.type));if(!d.length&&n||(this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1,o.actions.select.emit("start",i,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),o.actions.select.emit("end",i),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:o.largeDataService,chart:this.chart})}}if(f&&o.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=o;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,f,{nodes:n,opts:o,customTooltipModel:e})}else f.emit("show",t,{nodes:d})}else h&&f.emit("hide")}}}};const Ag=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},i)=>({prio:1,key:`event:${e}-tap`,type:"Tap",requireFailure:t,recognizeWith:n,options:{event:`${r}-${e}-tap`,interval:10,pointers:1,enable:(t,n)=>!!n&&(!!i.actions.select.enabled()&&(!(!n.target||"INPUT"!==n.target.nodeName)||!(!n.target||!n.target.hasAttribute("data-other-value"))&&(n.target.getAttribute("data-key")||"").split("-bubble")[0]===e))},events:{[`${r}-${e}-tap`](t){(t.target.getAttribute("data-key")||"").split("-bubble")[0]&&(t.preventDefault(),this.chart.component(e).emit("bubbleStart",t))}}});const Rg=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:i},o,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:i,options:{event:e,enable(r,i){if(this.started===e||!i)return!0;if(!o.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((e=>-1!==n.indexOf(e.key))),s=0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(`${t}-`))}(i,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),o.actions.select.emit("start",e),this.chart.component(t).emit(`${a}Start`,n),this.started=e},[`${e}move`](e){e.preventDefault(),this.chart.component(t).emit(`${a}Move`,e),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),o.actions.select.emit("end",e),this.started=!1,"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});function qg(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:i,targetFillSelector:o,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:f}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:f?{bubbleEnd(){f()}}:{},settings:{brush:c?{context:"selection",observe:!0}:"selection",scale:s,multiple:u,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:i,fillSelector:o,fill:"rgba(82,204,82,0.2)"}}}}(e),r=Rg(e,t,"range");return{interactions:[e.onEdited?Ag(e,t):null,r].filter(Boolean),components:[n]}}const Dg=/axis|legend/;function Ig({actions:e,models:t}){const{seriesModel:n,layoutService:r,colorService:i,flags:o}=t,a=r.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),s={targets:[`${md.COMPONENT.BAR}-${yd.PRIMARY}`,`${md.COMPONENT.BAR}-${yd.SECONDARY}`,...n.query.series(gd.MARKER).map((e=>th(md.COMPONENT.MARKER,e))),...n.query.series(gd.LINE).map((e=>th(md.COMPONENT.POINT,e))),md.COMPONENT.AXIS.MAJOR,md.COMPONENT.AXIS_OVERLAY.TIME_INNER,md.COMPONENT.AXIS_OVERLAY.TIME_OUTER,md.COMPONENT.AXIS_OVERLAY.CONTINUOUS,md.COMPONENT.LEGEND_CATEGORICAL],components:(e,t)=>{const[n]=t,{key:r}=n,i={key:r,action:e.srcEvent.ctrlKey||a?"set":"toggle",contexts:["selection"]};return-1===[md.COMPONENT.AXIS.MAJOR,md.COMPONENT.AXIS_OVERLAY.TIME_INNER,md.COMPONENT.AXIS_OVERLAY.TIME_OUTER,md.COMPONENT.AXIS_OVERLAY.CONTINUOUS,md.COMPONENT.LEGEND_CATEGORICAL].indexOf(r)&&(i.data=["selectionDimension"]),[i]}},l={actions:e,isLocked:e=>e.some((e=>"legend-cat"===e.type))?i.isSelectionLocked({isMeasureSelectionLocked:r.meta.isDimensionLocked}):r.meta.isDimensionLocked,hitRadius:e=>(e=>e.some((e=>Dg.test(e.type))))(e)?0:3,debouncer:al,flags:o};return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[Tg(e,t)],components:[]}}(s,l)}function Lg({actions:e,models:t}){const{layoutService:n,dockService:r,seriesModel:i}=t,{isDiscrete:o,isDimensionLocked:a}=n.meta;if(!o||a)return!1;const s=[...i.meta.seriesComponentKeys,md.COMPONENT.AXIS.MAJOR];return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:i,dock:o}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"inside"},target:{components:i,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[Rg(e,t,"area")],components:[n]}}({eventName:"discreteRange",key:"discrete-range-brush",components:[{key:s[0],contexts:["selection"],action:"set",data:["selectionDimension"]}],targets:s,fillTargets:[md.COMPONENT.AXIS.MAJOR],dock:r.meta.major.dock},{actions:e})}const Pg={components:[],interactions:[]};function _g({actions:e,chart:t,models:n,isUnsupportedFeature:r}){const i=function({actions:e,models:t,isUnsupportedFeature:n}){const{dockService:r,seriesModel:i,layoutService:o}=t;return!(o.meta.isDimensionLocked||o.meta.isBarSeriesStacked||null!=n&&n("rangeSelections"))&&qg({eventName:"minorRange",key:"minor-range-brush",targets:[md.COMPONENT.AXIS.MINOR.PRIMARY,`${md.COMPONENT.BAR}-${yd.PRIMARY}`,...i.query.series(gd.MARKER).filter((e=>e.isPrimary)).map((e=>th(md.COMPONENT.MARKER,e))),...i.query.series(gd.LINE).filter((e=>e.isPrimary)).map((e=>th(md.COMPONENT.POINT,e)))],fillTargets:[md.COMPONENT.AXIS.MINOR.PRIMARY],dock:r.meta.minor.dock,scale:md.SCALE.MINOR.PRIMARY,onEdited(){e.select.emit("end","minorRange")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||Pg,o=function({actions:e,models:t,isUnsupportedFeature:n}){const{dockService:r,seriesModel:i,layoutService:o}=t;return!(o.meta.isDimensionLocked||o.meta.isBarSeriesStacked||null!=n&&n("rangeSelections"))&&qg({eventName:"minorRange-secondary",key:"minor-secondary-range-brush",targets:[md.COMPONENT.AXIS.MINOR.SECONDARY,`${md.COMPONENT.BAR}-${yd.SECONDARY}`,...i.query.series(gd.MARKER).filter((e=>!e.isPrimary)).map((e=>th(md.COMPONENT.MARKER,e))),...i.query.series(gd.LINE).filter((e=>!e.isPrimary)).map((e=>th(md.COMPONENT.POINT,e)))],fillTargets:[md.COMPONENT.AXIS.MINOR.SECONDARY],dock:r.meta.minorSecondary.dock,scale:md.SCALE.MINOR.SECONDARY,onEdited(){e.select.emit("end","minorRange-secondary")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||Pg,a=Lg({actions:e,models:n})||Pg,s=function({actions:e,chart:t,models:n}){const{layoutService:r,dockService:i,seriesModel:o}=n,{isContinuous:a,isTime:s}=r.meta;if(!a)return!1;const l=s?[md.COMPONENT.AXIS_OVERLAY.TIME_INNER,md.COMPONENT.AXIS_OVERLAY.TIME_OUTER]:[md.COMPONENT.AXIS_OVERLAY.CONTINUOUS];return qg({eventName:"continuousRange",key:"continuous-range-brush",targets:[`${md.COMPONENT.BAR}-${yd.PRIMARY}`,`${md.COMPONENT.BAR}-${yd.SECONDARY}`,...o.query.series(gd.MARKER).map((e=>th(md.COMPONENT.MARKER,e))),...o.query.series(gd.LINE).map((e=>th(md.COMPONENT.POINT,e))),...l],fillTargets:l,dock:i.meta.major.dock,scale:s?md.SCALE.MAJOR_INNER:md.SCALE.MAJOR,observeBrush:!0,multiple:!0,toLabel({datum:e,data:n,scale:r}){const i=s?r.formatter():t.formatter(md.FORMATTER.PRIMARY),o=t.scale(md.SCALE.MAJOR).max(),a=t.brushSelectionIncludeMax&&e===o;return`${e!==Math.max(...n)||a?"":"<"}${i(e)}`}},{actions:e})}({actions:e,chart:t,models:n})||Pg,l=function({actions:e,models:t}){const{colorService:n,layoutService:r}=t,[i]=n.custom.legendComponents(),o=n.custom.wrappedScales(),{isDimensionLocked:a}=r.meta;if(a||!i)return!1;const s=`${md.SCALE.COLOR}Range`,{type:l,key:c}=i,u=o[s];return!("legend-seq"!==l||!u||u.min>=u.max)&&qg({eventName:"legendRange",key:"legend-range-brush",targets:[c],fillTargets:[c],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:i.layout.dock,scale:s,bubblesPlacement:"outside",onEdited:()=>{e.select.emit("end","legendRange")}},{actions:e})}({actions:e,models:n})||Pg;return{components:[...i.components,...o.components,...a.components,...s.components,...l.components],interactions:[...i.interactions,...o.interactions,...a.interactions,...s.interactions,...l.interactions]}}function zg({actions:e,models:t}){const{layoutService:n,seriesModel:r}=t,{seriesComponentKeys:i}=r.meta;if(n.meta.isDimensionLocked)return{components:[],interactions:[]};const o={key:"lasso",componentTargetKey:i[0],components:i.map((e=>({key:e,action:"add",contexts:["selection"],data:["selectionDimension"]})))};return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=(({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},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}}}))(n);return{interactions:[Ng(n,t)],components:[r]}}(o,{actions:e})}function Fg({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,isUnsupportedFeature:l}){const{colorService:c,pluginService:u}=n,d=n.layoutService.getLayout(),{options:f}=r,h=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:d,options:f}),p=(m={logicalSize:h,minCenterRatio:0},{layoutModes:y.getLayoutModes(),center:void 0!==m.minCenterRatio?{minWidthRatio:m.minCenterRatio,minHeightRatio:m.minCenterRatio}:void 0,logicalSize:m.logicalSize?{align:.5,preserveAspectRatio:!0,...m.logicalSize}:void 0});var m;const g=function({chart:e,models:t,environment:n,flags:r,viewState:i,viewCache:o,actions:a}){const{colorService:s,layoutService:l,dockService:c,tooltipService:u,disclaimerService:d}=t,f=function({environment:e,models:t}){const{translator:n,options:r}=e,{themeService:i,disclaimerService:o}=t,a=o.getDisclaimer();if(!a)return!1;const{fontFamily:s}=i.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:a.alignment},settings:{isRTL:"rtl"===r.direction,label:n.get(`Object.Disclaimer.${a.key}`)},style:{fontFamily:s}}}({environment:n,models:t});return d.getHasSuppressingDisclaimer()?[f]:[...vp({models:t}),...Bf({models:t,flags:r}),...dp({chart:e,models:t,environment:n,flags:r,viewState:i,viewCache:o}),Lp({models:t,environment:n}),...Gf({models:t,environment:n,flags:r}),...wp({models:t,environment:n,actions:a,flags:r}),...Ep({models:t,environment:n,actions:a,viewCache:o,flags:r}),Di({viewState:i,viewCache:o,layoutService:l,dockService:c}),...Rp({models:t}),...qp({chart:e,models:t,environment:n}),Cp({models:t,environment:n,viewState:i,viewCache:o}),...s.custom.legendComponents(),Dp(t),...Ap({chart:e,models:t,viewState:i,viewCache:o,environment:n}),...u.getComponents(),f].filter(Boolean)}({chart:t,models:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s}),v=function({actions:e,chart:t,models:n,isUnsupportedFeature:r}){const{layoutService:i}=n,o=i.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),a=Ig({actions:e,models:n});if(o)return{components:[...a.components],gestures:[...a.interactions]};const s=_g({actions:e,chart:t,models:n,isUnsupportedFeature:r}),l=zg({actions:e,models:n});return{components:[...a.components,...s.components,...l.components],gestures:[...a.interactions,...s.interactions,...l.interactions]}}({actions:s,chart:t,models:n,isUnsupportedFeature:l}),b=u.extendComponents([...g,...v.components]);return{collections:Of({models:n}),scales:Ff({picasso:e,models:n,viewState:o,viewCache:a,environment:r}),components:b,formatters:Pp({models:n}),interactions:Cg({chart:t,models:n,environment:r,viewState:o,viewCache:a,actions:s,selectables:v}),strategy:p,palettes:c.getPalettes()}}const jg=[md.COMPONENT.AXIS_TITLE.MAJOR,md.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,md.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,md.COMPONENT.GRID_LINE,md.COMPONENT.ZERO_LINE],$g=({models:{layoutService:e,fieldModel:t,appLayoutModel:n}})=>({type:"q",key:md.DATA.MAIN,data:e.getHyperCube(),config:{virtualFields:t.virtuals,localeInfo:n.qLocaleInfo}}),Bg=({models:{layoutService:e,fieldModel:t,continuousModel:n,appLayoutModel:r}})=>e.meta.isContinuous?[{type:"q",key:md.DATA.REDUCED,data:n.getInitialCube(),config:{virtualFields:t.virtuals,localeInfo:r.qLocaleInfo}}]:[];var Hg={exports:{}};
10
10
  /*! Hammer.JS - v2.0.7 - 2016-04-22
@@ -39,14 +39,14 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
- */function Mj(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var kj=new Set,Ej={};function Cj(e,t){Oj(e,t),Oj(e+"Capture",t)}function Oj(e,t){for(Ej[e]=t,e=0;e<t.length;e++)kj.add(t[e])}var Nj=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Tj=Object.prototype.hasOwnProperty,Aj=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rj={},qj={};function Dj(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ij={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Ij[e]=new Dj(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Ij[t]=new Dj(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Ij[e]=new Dj(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Ij[e]=new Dj(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Ij[e]=new Dj(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Ij[e]=new Dj(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Ij[e]=new Dj(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Ij[e]=new Dj(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Ij[e]=new Dj(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Lj=/[\-:]([a-z])/g;function Pj(e){return e[1].toUpperCase()}function _j(e,t,n,r){var i=Ij.hasOwnProperty(t)?Ij[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!Tj.call(qj,e)||!Tj.call(Rj,e)&&(Aj.test(e)?qj[e]=!0:(Rj[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Lj,Pj);Ij[t]=new Dj(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Lj,Pj);Ij[t]=new Dj(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Lj,Pj);Ij[t]=new Dj(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Ij[e]=new Dj(e,1,!1,e.toLowerCase(),null,!1,!1)})),Ij.xlinkHref=new Dj("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Ij[e]=new Dj(e,1,!1,e.toLowerCase(),null,!0,!0)}));var zj=Sj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fj=Symbol.for("react.element"),jj=Symbol.for("react.portal"),$j=Symbol.for("react.fragment"),Bj=Symbol.for("react.strict_mode"),Hj=Symbol.for("react.profiler"),Vj=Symbol.for("react.provider"),Uj=Symbol.for("react.context"),Wj=Symbol.for("react.forward_ref"),Yj=Symbol.for("react.suspense"),Gj=Symbol.for("react.suspense_list"),Kj=Symbol.for("react.memo"),Xj=Symbol.for("react.lazy"),Jj=Symbol.for("react.offscreen"),Zj=Symbol.iterator;function Qj(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Zj&&e[Zj]||e["@@iterator"])?e:null}var e$,t$=Object.assign;function n$(e){if(void 0===e$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);e$=t&&t[1]||""}return"\n"+e$+e}var r$=!1;function i$(e,t){if(!e||r$)return"";r$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{r$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?n$(e):""}function o$(e){switch(e.tag){case 5:return n$(e.type);case 16:return n$("Lazy");case 13:return n$("Suspense");case 19:return n$("SuspenseList");case 0:case 2:case 15:return e=i$(e.type,!1);case 11:return e=i$(e.type.render,!1);case 1:return e=i$(e.type,!0);default:return""}}function a$(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case $j:return"Fragment";case jj:return"Portal";case Hj:return"Profiler";case Bj:return"StrictMode";case Yj:return"Suspense";case Gj:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Uj:return(e.displayName||"Context")+".Consumer";case Vj:return(e._context.displayName||"Context")+".Provider";case Wj:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Kj:return null!==(t=e.displayName||null)?t:a$(e.type)||"Memo";case Xj:t=e._payload,e=e._init;try{return a$(e(t))}catch(e){}}return null}function s$(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return a$(t);case 8:return t===Bj?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function l$(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function c$(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function u$(e){e._valueTracker||(e._valueTracker=function(e){var t=c$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function d$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=c$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function f$(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function h$(e,t){var n=t.checked;return t$({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function p$(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=l$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function m$(e,t){null!=(t=t.checked)&&_j(e,"checked",t,!1)}function g$(e,t){m$(e,t);var n=l$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?v$(e,t.type,n):t.hasOwnProperty("defaultValue")&&v$(e,t.type,l$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function y$(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function v$(e,t,n){"number"===t&&f$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var b$=Array.isArray;function x$(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+l$(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function S$(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Mj(91));return t$({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function w$(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Mj(92));if(b$(n)){if(1<n.length)throw Error(Mj(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:l$(n)}}function M$(e,t){var n=l$(t.value),r=l$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function k$(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function E$(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function C$(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?E$(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var O$,N$=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((O$=O$||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=O$.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function T$(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var A$={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},R$=["Webkit","ms","Moz","O"];function q$(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||A$.hasOwnProperty(e)&&A$[e]?(""+t).trim():t+"px"}function D$(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=q$(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(A$).forEach((function(e){R$.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),A$[t]=A$[e]}))}));var I$=t$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function L$(e,t){if(t){if(I$[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Mj(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Mj(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Mj(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Mj(62))}}function P$(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _$=null;function z$(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var F$=null,j$=null,$$=null;function B$(e){if(e=LU(e)){if("function"!=typeof F$)throw Error(Mj(280));var t=e.stateNode;t&&(t=_U(t),F$(e.stateNode,e.type,t))}}function H$(e){j$?$$?$$.push(e):$$=[e]:j$=e}function V$(){if(j$){var e=j$,t=$$;if($$=j$=null,B$(e),t)for(e=0;e<t.length;e++)B$(t[e])}}function U$(e,t){return e(t)}function W$(){}var Y$=!1;function G$(e,t,n){if(Y$)return e(t,n);Y$=!0;try{return U$(e,t,n)}finally{Y$=!1,(null!==j$||null!==$$)&&(W$(),V$())}}function K$(e,t){var n=e.stateNode;if(null===n)return null;var r=_U(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(Mj(231,t,typeof n));return n}var X$=!1;if(Nj)try{var J$={};Object.defineProperty(J$,"passive",{get:function(){X$=!0}}),window.addEventListener("test",J$,J$),window.removeEventListener("test",J$,J$)}catch(CR){X$=!1}function Z$(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Q$=!1,eB=null,tB=!1,nB=null,rB={onError:function(e){Q$=!0,eB=e}};function iB(e,t,n,r,i,o,a,s,l){Q$=!1,eB=null,Z$.apply(rB,arguments)}function oB(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function aB(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function sB(e){if(oB(e)!==e)throw Error(Mj(188))}function lB(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=oB(e)))throw Error(Mj(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return sB(i),e;if(o===r)return sB(i),t;o=o.sibling}throw Error(Mj(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Mj(189))}}if(n.alternate!==r)throw Error(Mj(190))}if(3!==n.tag)throw Error(Mj(188));return n.stateNode.current===n?e:t}(e),null!==e?cB(e):null}function cB(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=cB(e);if(null!==t)return t;e=e.sibling}return null}var uB=wj.unstable_scheduleCallback,dB=wj.unstable_cancelCallback,fB=wj.unstable_shouldYield,hB=wj.unstable_requestPaint,pB=wj.unstable_now,mB=wj.unstable_getCurrentPriorityLevel,gB=wj.unstable_ImmediatePriority,yB=wj.unstable_UserBlockingPriority,vB=wj.unstable_NormalPriority,bB=wj.unstable_LowPriority,xB=wj.unstable_IdlePriority,SB=null,wB=null;var MB=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(kB(e)/EB|0)|0},kB=Math.log,EB=Math.LN2;var CB=64,OB=4194304;function NB(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function TB(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=NB(s):0!==(o&=a)&&(r=NB(o))}else 0!==(a=n&~i)?r=NB(a):0!==o&&(r=NB(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-MB(t)),r|=e[n],t&=~i;return r}function AB(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function RB(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function qB(){var e=CB;return!(4194240&(CB<<=1))&&(CB=64),e}function DB(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function IB(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-MB(t)]=n}function LB(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-MB(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var PB=0;function _B(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var zB,FB,jB,$B,BB,HB=!1,VB=[],UB=null,WB=null,YB=null,GB=new Map,KB=new Map,XB=[],JB="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ZB(e,t){switch(e){case"focusin":case"focusout":UB=null;break;case"dragenter":case"dragleave":WB=null;break;case"mouseover":case"mouseout":YB=null;break;case"pointerover":case"pointerout":GB.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":KB.delete(t.pointerId)}}function QB(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=LU(t))&&FB(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function eH(e){var t=IU(e.target);if(null!==t){var n=oB(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=aB(n)))return e.blockedOn=t,void BB(e.priority,(function(){jB(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function tH(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=fH(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=LU(n))&&FB(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_$=r,n.target.dispatchEvent(r),_$=null,t.shift()}return!0}function nH(e,t,n){tH(e)&&n.delete(t)}function rH(){HB=!1,null!==UB&&tH(UB)&&(UB=null),null!==WB&&tH(WB)&&(WB=null),null!==YB&&tH(YB)&&(YB=null),GB.forEach(nH),KB.forEach(nH)}function iH(e,t){e.blockedOn===t&&(e.blockedOn=null,HB||(HB=!0,wj.unstable_scheduleCallback(wj.unstable_NormalPriority,rH)))}function oH(e){function t(t){return iH(t,e)}if(0<VB.length){iH(VB[0],e);for(var n=1;n<VB.length;n++){var r=VB[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==UB&&iH(UB,e),null!==WB&&iH(WB,e),null!==YB&&iH(YB,e),GB.forEach(t),KB.forEach(t),n=0;n<XB.length;n++)(r=XB[n]).blockedOn===e&&(r.blockedOn=null);for(;0<XB.length&&null===(n=XB[0]).blockedOn;)eH(n),null===n.blockedOn&&XB.shift()}var aH=zj.ReactCurrentBatchConfig,sH=!0;function lH(e,t,n,r){var i=PB,o=aH.transition;aH.transition=null;try{PB=1,uH(e,t,n,r)}finally{PB=i,aH.transition=o}}function cH(e,t,n,r){var i=PB,o=aH.transition;aH.transition=null;try{PB=4,uH(e,t,n,r)}finally{PB=i,aH.transition=o}}function uH(e,t,n,r){if(sH){var i=fH(e,t,n,r);if(null===i)aU(e,t,r,dH,n),ZB(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return UB=QB(UB,e,t,n,r,i),!0;case"dragenter":return WB=QB(WB,e,t,n,r,i),!0;case"mouseover":return YB=QB(YB,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return GB.set(o,QB(GB.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,KB.set(o,QB(KB.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(ZB(e,r),4&t&&-1<JB.indexOf(e)){for(;null!==i;){var o=LU(i);if(null!==o&&zB(o),null===(o=fH(e,t,n,r))&&aU(e,t,r,dH,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else aU(e,t,r,null,n)}}var dH=null;function fH(e,t,n,r){if(dH=null,null!==(e=IU(e=z$(r))))if(null===(t=oB(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=aB(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return dH=e,null}function hH(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(mB()){case gB:return 1;case yB:return 4;case vB:case bB:return 16;case xB:return 536870912;default:return 16}default:return 16}}var pH=null,mH=null,gH=null;function yH(){if(gH)return gH;var e,t,n=mH,r=n.length,i="value"in pH?pH.value:pH.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return gH=i.slice(e,1<t?1-t:void 0)}function vH(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function bH(){return!0}function xH(){return!1}function SH(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?bH:xH,this.isPropagationStopped=xH,this}return t$(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=bH)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=bH)},persist:function(){},isPersistent:bH}),t}var wH,MH,kH,EH={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},CH=SH(EH),OH=t$({},EH,{view:0,detail:0}),NH=SH(OH),TH=t$({},OH,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$H,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==kH&&(kH&&"mousemove"===e.type?(wH=e.screenX-kH.screenX,MH=e.screenY-kH.screenY):MH=wH=0,kH=e),wH)},movementY:function(e){return"movementY"in e?e.movementY:MH}}),AH=SH(TH),RH=SH(t$({},TH,{dataTransfer:0})),qH=SH(t$({},OH,{relatedTarget:0})),DH=SH(t$({},EH,{animationName:0,elapsedTime:0,pseudoElement:0})),IH=t$({},EH,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),LH=SH(IH),PH=SH(t$({},EH,{data:0})),_H={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zH={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},FH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jH(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=FH[e])&&!!t[e]}function $H(){return jH}var BH=t$({},OH,{key:function(e){if(e.key){var t=_H[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=vH(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?zH[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$H,charCode:function(e){return"keypress"===e.type?vH(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?vH(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),HH=SH(BH),VH=SH(t$({},TH,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),UH=SH(t$({},OH,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$H})),WH=SH(t$({},EH,{propertyName:0,elapsedTime:0,pseudoElement:0})),YH=t$({},TH,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),GH=SH(YH),KH=[9,13,27,32],XH=Nj&&"CompositionEvent"in window,JH=null;Nj&&"documentMode"in document&&(JH=document.documentMode);var ZH=Nj&&"TextEvent"in window&&!JH,QH=Nj&&(!XH||JH&&8<JH&&11>=JH),eV=String.fromCharCode(32),tV=!1;function nV(e,t){switch(e){case"keyup":return-1!==KH.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rV(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var iV=!1;var oV={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function aV(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!oV[e.type]:"textarea"===t}function sV(e,t,n,r){H$(r),0<(t=lU(t,"onChange")).length&&(n=new CH("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var lV=null,cV=null;function uV(e){eU(e,0)}function dV(e){if(d$(PU(e)))return e}function fV(e,t){if("change"===e)return t}var hV=!1;if(Nj){var pV;if(Nj){var mV="oninput"in document;if(!mV){var gV=document.createElement("div");gV.setAttribute("oninput","return;"),mV="function"==typeof gV.oninput}pV=mV}else pV=!1;hV=pV&&(!document.documentMode||9<document.documentMode)}function yV(){lV&&(lV.detachEvent("onpropertychange",vV),cV=lV=null)}function vV(e){if("value"===e.propertyName&&dV(cV)){var t=[];sV(t,cV,e,z$(e)),G$(uV,t)}}function bV(e,t,n){"focusin"===e?(yV(),cV=n,(lV=t).attachEvent("onpropertychange",vV)):"focusout"===e&&yV()}function xV(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return dV(cV)}function SV(e,t){if("click"===e)return dV(t)}function wV(e,t){if("input"===e||"change"===e)return dV(t)}var MV="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function kV(e,t){if(MV(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Tj.call(t,i)||!MV(e[i],t[i]))return!1}return!0}function EV(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function CV(e,t){var n,r=EV(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=EV(r)}}function OV(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?OV(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function NV(){for(var e=window,t=f$();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=f$((e=t.contentWindow).document)}return t}function TV(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function AV(e){var t=NV(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&OV(n.ownerDocument.documentElement,n)){if(null!==r&&TV(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=CV(n,o);var a=CV(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var RV=Nj&&"documentMode"in document&&11>=document.documentMode,qV=null,DV=null,IV=null,LV=!1;function PV(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;LV||null==qV||qV!==f$(r)||("selectionStart"in(r=qV)&&TV(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},IV&&kV(IV,r)||(IV=r,0<(r=lU(DV,"onSelect")).length&&(t=new CH("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qV)))}function _V(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zV={animationend:_V("Animation","AnimationEnd"),animationiteration:_V("Animation","AnimationIteration"),animationstart:_V("Animation","AnimationStart"),transitionend:_V("Transition","TransitionEnd")},FV={},jV={};function $V(e){if(FV[e])return FV[e];if(!zV[e])return e;var t,n=zV[e];for(t in n)if(n.hasOwnProperty(t)&&t in jV)return FV[e]=n[t];return e}Nj&&(jV=document.createElement("div").style,"AnimationEvent"in window||(delete zV.animationend.animation,delete zV.animationiteration.animation,delete zV.animationstart.animation),"TransitionEvent"in window||delete zV.transitionend.transition);var BV=$V("animationend"),HV=$V("animationiteration"),VV=$V("animationstart"),UV=$V("transitionend"),WV=new Map,YV="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function GV(e,t){WV.set(e,t),Cj(t,[e])}for(var KV=0;KV<YV.length;KV++){var XV=YV[KV];GV(XV.toLowerCase(),"on"+(XV[0].toUpperCase()+XV.slice(1)))}GV(BV,"onAnimationEnd"),GV(HV,"onAnimationIteration"),GV(VV,"onAnimationStart"),GV("dblclick","onDoubleClick"),GV("focusin","onFocus"),GV("focusout","onBlur"),GV(UV,"onTransitionEnd"),Oj("onMouseEnter",["mouseout","mouseover"]),Oj("onMouseLeave",["mouseout","mouseover"]),Oj("onPointerEnter",["pointerout","pointerover"]),Oj("onPointerLeave",["pointerout","pointerover"]),Cj("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cj("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cj("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cj("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cj("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cj("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var JV="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ZV=new Set("cancel close invalid load scroll toggle".split(" ").concat(JV));function QV(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(iB.apply(this,arguments),Q$){if(!Q$)throw Error(Mj(198));var c=eB;Q$=!1,eB=null,tB||(tB=!0,nB=c)}}(r,t,void 0,e),e.currentTarget=null}function eU(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;QV(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;QV(i,s,c),o=l}}}if(tB)throw e=nB,tB=!1,nB=null,e}function tU(e,t){var n=t[RU];void 0===n&&(n=t[RU]=new Set);var r=e+"__bubble";n.has(r)||(oU(t,e,2,!1),n.add(r))}function nU(e,t,n){var r=0;t&&(r|=4),oU(n,e,r,t)}var rU="_reactListening"+Math.random().toString(36).slice(2);function iU(e){if(!e[rU]){e[rU]=!0,kj.forEach((function(t){"selectionchange"!==t&&(ZV.has(t)||nU(t,!1,e),nU(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[rU]||(t[rU]=!0,nU("selectionchange",!1,t))}}function oU(e,t,n,r){switch(hH(t)){case 1:var i=lH;break;case 4:i=cH;break;default:i=uH}n=i.bind(null,t,n,e),i=void 0,!X$||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function aU(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=IU(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}G$((function(){var r=o,i=z$(n),a=[];e:{var s=WV.get(e);if(void 0!==s){var l=CH,c=e;switch(e){case"keypress":if(0===vH(n))break e;case"keydown":case"keyup":l=HH;break;case"focusin":c="focus",l=qH;break;case"focusout":c="blur",l=qH;break;case"beforeblur":case"afterblur":l=qH;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=AH;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=RH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=UH;break;case BV:case HV:case VV:l=DH;break;case UV:l=WH;break;case"scroll":l=NH;break;case"wheel":l=GH;break;case"copy":case"cut":case"paste":l=LH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=VH}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=K$(p,f))&&u.push(sU(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_$||!(c=n.relatedTarget||n.fromElement)||!IU(c)&&!c[AU])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?IU(c):null)&&(c!==(d=oB(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=AH,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=VH,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:PU(l),h=null==c?s:PU(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,IU(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=cU(h))p++;for(h=0,m=f;m;m=cU(m))h++;for(;0<p-h;)u=cU(u),p--;for(;0<h-p;)f=cU(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=cU(u),f=cU(f)}u=null}else u=null;null!==l&&uU(a,s,l,u,!1),null!==c&&null!==d&&uU(a,d,c,u,!0)}if("select"===(l=(s=r?PU(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=fV;else if(aV(s))if(hV)g=wV;else{g=xV;var y=bV}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=SV);switch(g&&(g=g(e,r))?sV(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&v$(s,"number",s.value)),y=r?PU(r):window,e){case"focusin":(aV(y)||"true"===y.contentEditable)&&(qV=y,DV=r,IV=null);break;case"focusout":IV=DV=qV=null;break;case"mousedown":LV=!0;break;case"contextmenu":case"mouseup":case"dragend":LV=!1,PV(a,n,i);break;case"selectionchange":if(RV)break;case"keydown":case"keyup":PV(a,n,i)}var v;if(XH)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else iV?nV(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(QH&&"ko"!==n.locale&&(iV||"onCompositionStart"!==b?"onCompositionEnd"===b&&iV&&(v=yH()):(mH="value"in(pH=i)?pH.value:pH.textContent,iV=!0)),0<(y=lU(r,b)).length&&(b=new PH(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=rV(n))&&(b.data=v))),(v=ZH?function(e,t){switch(e){case"compositionend":return rV(t);case"keypress":return 32!==t.which?null:(tV=!0,eV);case"textInput":return(e=t.data)===eV&&tV?null:e;default:return null}}(e,n):function(e,t){if(iV)return"compositionend"===e||!XH&&nV(e,t)?(e=yH(),gH=mH=pH=null,iV=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return QH&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=lU(r,"onBeforeInput")).length&&(i=new PH("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}eU(a,t)}))}function sU(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lU(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=K$(e,n))&&r.unshift(sU(e,o,i)),null!=(o=K$(e,t))&&r.push(sU(e,o,i))),e=e.return}return r}function cU(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function uU(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=K$(n,o))&&a.unshift(sU(n,l,s)):i||null!=(l=K$(n,o))&&a.push(sU(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var dU=/\r\n?/g,fU=/\u0000|\uFFFD/g;function hU(e){return("string"==typeof e?e:""+e).replace(dU,"\n").replace(fU,"")}function pU(e,t,n){if(t=hU(t),hU(e)!==t&&n)throw Error(Mj(425))}function mU(){}var gU=null,yU=null;function vU(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bU="function"==typeof setTimeout?setTimeout:void 0,xU="function"==typeof clearTimeout?clearTimeout:void 0,SU="function"==typeof Promise?Promise:void 0,wU="function"==typeof queueMicrotask?queueMicrotask:void 0!==SU?function(e){return SU.resolve(null).then(e).catch(MU)}:bU;function MU(e){setTimeout((function(){throw e}))}function kU(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void oH(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);oH(t)}function EU(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function CU(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var OU=Math.random().toString(36).slice(2),NU="__reactFiber$"+OU,TU="__reactProps$"+OU,AU="__reactContainer$"+OU,RU="__reactEvents$"+OU,qU="__reactListeners$"+OU,DU="__reactHandles$"+OU;function IU(e){var t=e[NU];if(t)return t;for(var n=e.parentNode;n;){if(t=n[AU]||n[NU]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=CU(e);null!==e;){if(n=e[NU])return n;e=CU(e)}return t}n=(e=n).parentNode}return null}function LU(e){return!(e=e[NU]||e[AU])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function PU(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Mj(33))}function _U(e){return e[TU]||null}var zU=[],FU=-1;function jU(e){return{current:e}}function $U(e){0>FU||(e.current=zU[FU],zU[FU]=null,FU--)}function BU(e,t){FU++,zU[FU]=e.current,e.current=t}var HU={},VU=jU(HU),UU=jU(!1),WU=HU;function YU(e,t){var n=e.type.contextTypes;if(!n)return HU;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function GU(e){return null!=(e=e.childContextTypes)}function KU(){$U(UU),$U(VU)}function XU(e,t,n){if(VU.current!==HU)throw Error(Mj(168));BU(VU,t),BU(UU,n)}function JU(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(Mj(108,s$(e)||"Unknown",i));return t$({},n,r)}function ZU(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||HU,WU=VU.current,BU(VU,e),BU(UU,UU.current),!0}function QU(e,t,n){var r=e.stateNode;if(!r)throw Error(Mj(169));n?(e=JU(e,t,WU),r.__reactInternalMemoizedMergedChildContext=e,$U(UU),$U(VU),BU(VU,e)):$U(UU),BU(UU,n)}var eW=null,tW=!1,nW=!1;function rW(e){null===eW?eW=[e]:eW.push(e)}function iW(){if(!nW&&null!==eW){nW=!0;var e=0,t=PB;try{var n=eW;for(PB=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}eW=null,tW=!1}catch(t){throw null!==eW&&(eW=eW.slice(e+1)),uB(gB,iW),t}finally{PB=t,nW=!1}}return null}var oW=[],aW=0,sW=null,lW=0,cW=[],uW=0,dW=null,fW=1,hW="";function pW(e,t){oW[aW++]=lW,oW[aW++]=sW,sW=e,lW=t}function mW(e,t,n){cW[uW++]=fW,cW[uW++]=hW,cW[uW++]=dW,dW=e;var r=fW;e=hW;var i=32-MB(r)-1;r&=~(1<<i),n+=1;var o=32-MB(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,fW=1<<32-MB(t)+i|n<<i|r,hW=o+e}else fW=1<<o|n<<i|r,hW=e}function gW(e){null!==e.return&&(pW(e,1),mW(e,1,0))}function yW(e){for(;e===sW;)sW=oW[--aW],oW[aW]=null,lW=oW[--aW],oW[aW]=null;for(;e===dW;)dW=cW[--uW],cW[uW]=null,hW=cW[--uW],cW[uW]=null,fW=cW[--uW],cW[uW]=null}var vW=null,bW=null,xW=!1,SW=null;function wW(e,t){var n=WX(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function MW(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,vW=e,bW=EU(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,vW=e,bW=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==dW?{id:fW,overflow:hW}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=WX(18,null,null,0)).stateNode=t,n.return=e,e.child=n,vW=e,bW=null,!0);default:return!1}}function kW(e){return!(!(1&e.mode)||128&e.flags)}function EW(e){if(xW){var t=bW;if(t){var n=t;if(!MW(e,t)){if(kW(e))throw Error(Mj(418));t=EU(n.nextSibling);var r=vW;t&&MW(e,t)?wW(r,n):(e.flags=-4097&e.flags|2,xW=!1,vW=e)}}else{if(kW(e))throw Error(Mj(418));e.flags=-4097&e.flags|2,xW=!1,vW=e}}}function CW(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;vW=e}function OW(e){if(e!==vW)return!1;if(!xW)return CW(e),xW=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!vU(e.type,e.memoizedProps)),t&&(t=bW)){if(kW(e))throw NW(),Error(Mj(418));for(;t;)wW(e,t),t=EU(t.nextSibling)}if(CW(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Mj(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){bW=EU(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}bW=null}}else bW=vW?EU(e.stateNode.nextSibling):null;return!0}function NW(){for(var e=bW;e;)e=EU(e.nextSibling)}function TW(){bW=vW=null,xW=!1}function AW(e){null===SW?SW=[e]:SW.push(e)}var RW=zj.ReactCurrentBatchConfig;function qW(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(Mj(309));var r=n.stateNode}if(!r)throw Error(Mj(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(Mj(284));if(!n._owner)throw Error(Mj(290,e))}return e}function DW(e,t){throw e=Object.prototype.toString.call(t),Error(Mj(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function IW(e){return(0,e._init)(e._payload)}function LW(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=GX(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=ZX(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===$j?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===Xj&&IW(o)===t.type)?((r=i(t,n.props)).ref=qW(e,t,n),r.return=e,r):((r=KX(n.type,n.key,n.props,null,e.mode,r)).ref=qW(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=QX(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=XX(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ZX(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Fj:return(n=KX(t.type,t.key,t.props,null,e.mode,n)).ref=qW(e,null,t),n.return=e,n;case jj:return(t=QX(t,e.mode,n)).return=e,t;case Xj:return d(e,(0,t._init)(t._payload),n)}if(b$(t)||Qj(t))return(t=XX(t,e.mode,n,null)).return=e,t;DW(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Fj:return n.key===i?l(e,t,n,r):null;case jj:return n.key===i?c(e,t,n,r):null;case Xj:return f(e,t,(i=n._init)(n._payload),r)}if(b$(n)||Qj(n))return null!==i?null:u(e,t,n,r,null);DW(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Fj:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case jj:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case Xj:return h(e,t,n,(0,r._init)(r._payload),i)}if(b$(r)||Qj(r))return u(t,e=e.get(n)||null,r,i,null);DW(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),xW&&pW(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return xW&&pW(i,m),c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),xW&&pW(i,m),c}function m(i,a,s,l){var c=Qj(s);if("function"!=typeof c)throw Error(Mj(150));if(null==(s=c.call(s)))throw Error(Mj(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),xW&&pW(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return xW&&pW(i,m),c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),xW&&pW(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===$j&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case Fj:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===$j){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Xj&&IW(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=qW(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===$j?((o=XX(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=KX(s.type,s.key,s.props,null,r.mode,l)).ref=qW(r,o,s),l.return=r,r=l)}return a(r);case jj:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=QX(s,r.mode,l)).return=r,r=o}return a(r);case Xj:return e(r,o,(u=s._init)(s._payload),l)}if(b$(s))return p(r,o,s,l);if(Qj(s))return m(r,o,s,l);DW(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=ZX(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var PW=LW(!0),_W=LW(!1),zW=jU(null),FW=null,jW=null,$W=null;function BW(){$W=jW=FW=null}function HW(e){var t=zW.current;$U(zW),e._currentValue=t}function VW(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function UW(e,t){FW=e,$W=jW=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(IG=!0),e.firstContext=null)}function WW(e){var t=e._currentValue;if($W!==e)if(e={context:e,memoizedValue:t,next:null},null===jW){if(null===FW)throw Error(Mj(308));jW=e,FW.dependencies={lanes:0,firstContext:e}}else jW=jW.next=e;return t}var YW=null;function GW(e){null===YW?YW=[e]:YW.push(e)}function KW(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,GW(t)):(n.next=i.next,i.next=n),t.interleaved=n,XW(e,r)}function XW(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var JW=!1;function ZW(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function QW(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function eY(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tY(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&HK){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,XW(e,n)}return null===(i=r.interleaved)?(t.next=t,GW(r)):(t.next=i.next,i.next=t),r.interleaved=t,XW(e,n)}function nY(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,LB(e,n)}}function rY(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function iY(e,t,n,r){var i=e.updateQueue;JW=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=t$({},d,f);break e;case 2:JW=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);JK|=a,e.lanes=a,e.memoizedState=d}}function oY(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(Mj(191,i));i.call(r)}}}var aY={},sY=jU(aY),lY=jU(aY),cY=jU(aY);function uY(e){if(e===aY)throw Error(Mj(174));return e}function dY(e,t){switch(BU(cY,t),BU(lY,e),BU(sY,aY),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:C$(null,"");break;default:t=C$(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}$U(sY),BU(sY,t)}function fY(){$U(sY),$U(lY),$U(cY)}function hY(e){uY(cY.current);var t=uY(sY.current),n=C$(t,e.type);t!==n&&(BU(lY,e),BU(sY,n))}function pY(e){lY.current===e&&($U(sY),$U(lY))}var mY=jU(0);function gY(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yY=[];function vY(){for(var e=0;e<yY.length;e++)yY[e]._workInProgressVersionPrimary=null;yY.length=0}var bY=zj.ReactCurrentDispatcher,xY=zj.ReactCurrentBatchConfig,SY=0,wY=null,MY=null,kY=null,EY=!1,CY=!1,OY=0,NY=0;function TY(){throw Error(Mj(321))}function AY(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!MV(e[n],t[n]))return!1;return!0}function RY(e,t,n,r,i,o){if(SY=o,wY=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,bY.current=null===e||null===e.memoizedState?pG:mG,e=n(r,i),CY){o=0;do{if(CY=!1,OY=0,25<=o)throw Error(Mj(301));o+=1,kY=MY=null,t.updateQueue=null,bY.current=gG,e=n(r,i)}while(CY)}if(bY.current=hG,t=null!==MY&&null!==MY.next,SY=0,kY=MY=wY=null,EY=!1,t)throw Error(Mj(300));return e}function qY(){var e=0!==OY;return OY=0,e}function DY(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===kY?wY.memoizedState=kY=e:kY=kY.next=e,kY}function IY(){if(null===MY){var e=wY.alternate;e=null!==e?e.memoizedState:null}else e=MY.next;var t=null===kY?wY.memoizedState:kY.next;if(null!==t)kY=t,MY=e;else{if(null===e)throw Error(Mj(310));e={memoizedState:(MY=e).memoizedState,baseState:MY.baseState,baseQueue:MY.baseQueue,queue:MY.queue,next:null},null===kY?wY.memoizedState=kY=e:kY=kY.next=e}return kY}function LY(e,t){return"function"==typeof t?t(e):t}function PY(e){var t=IY(),n=t.queue;if(null===n)throw Error(Mj(311));n.lastRenderedReducer=e;var r=MY,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((SY&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,wY.lanes|=u,JK|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,MV(r,t.memoizedState)||(IG=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,wY.lanes|=o,JK|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _Y(e){var t=IY(),n=t.queue;if(null===n)throw Error(Mj(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);MV(o,t.memoizedState)||(IG=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function zY(){}function FY(e,t){var n=wY,r=IY(),i=t(),o=!MV(r.memoizedState,i);if(o&&(r.memoizedState=i,IG=!0),r=r.queue,JY(BY.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==kY&&1&kY.memoizedState.tag){if(n.flags|=2048,WY(9,$Y.bind(null,n,r,i,t),void 0,null),null===VK)throw Error(Mj(349));30&SY||jY(n,t,i)}return i}function jY(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=wY.updateQueue)?(t={lastEffect:null,stores:null},wY.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function $Y(e,t,n,r){t.value=n,t.getSnapshot=r,HY(t)&&VY(e)}function BY(e,t,n){return n((function(){HY(t)&&VY(e)}))}function HY(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!MV(e,n)}catch(e){return!0}}function VY(e){var t=XW(e,1);null!==t&&yX(t,e,1,-1)}function UY(e){var t=DY();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:LY,lastRenderedState:e},t.queue=e,e=e.dispatch=cG.bind(null,wY,e),[t.memoizedState,e]}function WY(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=wY.updateQueue)?(t={lastEffect:null,stores:null},wY.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function YY(){return IY().memoizedState}function GY(e,t,n,r){var i=DY();wY.flags|=e,i.memoizedState=WY(1|t,n,void 0,void 0===r?null:r)}function KY(e,t,n,r){var i=IY();r=void 0===r?null:r;var o=void 0;if(null!==MY){var a=MY.memoizedState;if(o=a.destroy,null!==r&&AY(r,a.deps))return void(i.memoizedState=WY(t,n,o,r))}wY.flags|=e,i.memoizedState=WY(1|t,n,o,r)}function XY(e,t){return GY(8390656,8,e,t)}function JY(e,t){return KY(2048,8,e,t)}function ZY(e,t){return KY(4,2,e,t)}function QY(e,t){return KY(4,4,e,t)}function eG(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function tG(e,t,n){return n=null!=n?n.concat([e]):null,KY(4,4,eG.bind(null,t,e),n)}function nG(){}function rG(e,t){var n=IY();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&AY(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function iG(e,t){var n=IY();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&AY(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function oG(e,t,n){return 21&SY?(MV(n,t)||(n=qB(),wY.lanes|=n,JK|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,IG=!0),e.memoizedState=n)}function aG(e,t){var n=PB;PB=0!==n&&4>n?n:4,e(!0);var r=xY.transition;xY.transition={};try{e(!1),t()}finally{PB=n,xY.transition=r}}function sG(){return IY().memoizedState}function lG(e,t,n){var r=gX(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uG(e))dG(t,n);else if(null!==(n=KW(e,t,n,r))){yX(n,e,r,mX()),fG(n,t,r)}}function cG(e,t,n){var r=gX(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uG(e))dG(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,MV(s,a)){var l=t.interleaved;return null===l?(i.next=i,GW(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=KW(e,t,i,r))&&(yX(n,e,r,i=mX()),fG(n,t,r))}}function uG(e){var t=e.alternate;return e===wY||null!==t&&t===wY}function dG(e,t){CY=EY=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fG(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,LB(e,n)}}var hG={readContext:WW,useCallback:TY,useContext:TY,useEffect:TY,useImperativeHandle:TY,useInsertionEffect:TY,useLayoutEffect:TY,useMemo:TY,useReducer:TY,useRef:TY,useState:TY,useDebugValue:TY,useDeferredValue:TY,useTransition:TY,useMutableSource:TY,useSyncExternalStore:TY,useId:TY,unstable_isNewReconciler:!1},pG={readContext:WW,useCallback:function(e,t){return DY().memoizedState=[e,void 0===t?null:t],e},useContext:WW,useEffect:XY,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,GY(4194308,4,eG.bind(null,t,e),n)},useLayoutEffect:function(e,t){return GY(4194308,4,e,t)},useInsertionEffect:function(e,t){return GY(4,2,e,t)},useMemo:function(e,t){var n=DY();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=DY();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lG.bind(null,wY,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},DY().memoizedState=e},useState:UY,useDebugValue:nG,useDeferredValue:function(e){return DY().memoizedState=e},useTransition:function(){var e=UY(!1),t=e[0];return e=aG.bind(null,e[1]),DY().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=wY,i=DY();if(xW){if(void 0===n)throw Error(Mj(407));n=n()}else{if(n=t(),null===VK)throw Error(Mj(349));30&SY||jY(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,XY(BY.bind(null,r,o,e),[e]),r.flags|=2048,WY(9,$Y.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=DY(),t=VK.identifierPrefix;if(xW){var n=hW;t=":"+t+"R"+(n=(fW&~(1<<32-MB(fW)-1)).toString(32)+n),0<(n=OY++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=NY++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mG={readContext:WW,useCallback:rG,useContext:WW,useEffect:JY,useImperativeHandle:tG,useInsertionEffect:ZY,useLayoutEffect:QY,useMemo:iG,useReducer:PY,useRef:YY,useState:function(){return PY(LY)},useDebugValue:nG,useDeferredValue:function(e){return oG(IY(),MY.memoizedState,e)},useTransition:function(){return[PY(LY)[0],IY().memoizedState]},useMutableSource:zY,useSyncExternalStore:FY,useId:sG,unstable_isNewReconciler:!1},gG={readContext:WW,useCallback:rG,useContext:WW,useEffect:JY,useImperativeHandle:tG,useInsertionEffect:ZY,useLayoutEffect:QY,useMemo:iG,useReducer:_Y,useRef:YY,useState:function(){return _Y(LY)},useDebugValue:nG,useDeferredValue:function(e){var t=IY();return null===MY?t.memoizedState=e:oG(t,MY.memoizedState,e)},useTransition:function(){return[_Y(LY)[0],IY().memoizedState]},useMutableSource:zY,useSyncExternalStore:FY,useId:sG,unstable_isNewReconciler:!1};function yG(e,t){if(e&&e.defaultProps){for(var n in t=t$({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function vG(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:t$({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var bG={isMounted:function(e){return!!(e=e._reactInternals)&&oB(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mX(),i=gX(e),o=eY(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=tY(e,o,i))&&(yX(t,e,i,r),nY(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mX(),i=gX(e),o=eY(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=tY(e,o,i))&&(yX(t,e,i,r),nY(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mX(),r=gX(e),i=eY(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=tY(e,i,r))&&(yX(t,e,r,n),nY(t,e,r))}};function xG(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!kV(n,r)||!kV(i,o))}function SG(e,t,n){var r=!1,i=HU,o=t.contextType;return"object"==typeof o&&null!==o?o=WW(o):(i=GU(t)?WU:VU.current,o=(r=null!=(r=t.contextTypes))?YU(e,i):HU),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bG,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function wG(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bG.enqueueReplaceState(t,t.state,null)}function MG(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ZW(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=WW(o):(o=GU(t)?WU:VU.current,i.context=YU(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(vG(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&bG.enqueueReplaceState(i,i.state,null),iY(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function kG(e,t){try{var n="",r=t;do{n+=o$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function EG(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function CG(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var OG="function"==typeof WeakMap?WeakMap:Map;function NG(e,t,n){(n=eY(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oX||(oX=!0,aX=r),CG(0,t)},n}function TG(e,t,n){(n=eY(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){CG(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){CG(0,t),"function"!=typeof r&&(null===sX?sX=new Set([this]):sX.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function AG(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new OG;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=jX.bind(null,e,t,n),t.then(e,e))}function RG(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function qG(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=eY(-1,1)).tag=2,tY(n,t,1))),n.lanes|=1),e)}var DG=zj.ReactCurrentOwner,IG=!1;function LG(e,t,n,r){t.child=null===e?_W(t,null,n,r):PW(t,e.child,n,r)}function PG(e,t,n,r,i){n=n.render;var o=t.ref;return UW(t,i),r=RY(e,t,n,r,o,i),n=qY(),null===e||IG?(xW&&n&&gW(t),t.flags|=1,LG(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,oK(e,t,i))}function _G(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||YX(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=KX(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,zG(e,t,o,r,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:kV)(a,r)&&e.ref===t.ref)return oK(e,t,i)}return t.flags|=1,(e=GX(o,r)).ref=t.ref,e.return=t,t.child=e}function zG(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(kV(o,r)&&e.ref===t.ref){if(IG=!1,t.pendingProps=r=o,!(e.lanes&i))return t.lanes=e.lanes,oK(e,t,i);131072&e.flags&&(IG=!0)}}return $G(e,t,n,r,i)}function FG(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,BU(GK,YK),YK|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,BU(GK,YK),YK|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},BU(GK,YK),YK|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,BU(GK,YK),YK|=r;return LG(e,t,i,n),t.child}function jG(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $G(e,t,n,r,i){var o=GU(n)?WU:VU.current;return o=YU(t,o),UW(t,i),n=RY(e,t,n,r,o,i),r=qY(),null===e||IG?(xW&&r&&gW(t),t.flags|=1,LG(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,oK(e,t,i))}function BG(e,t,n,r,i){if(GU(n)){var o=!0;ZU(t)}else o=!1;if(UW(t,i),null===t.stateNode)iK(e,t),SG(t,n,r),MG(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=WW(c):c=YU(t,c=GU(n)?WU:VU.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&wG(t,a,r,c),JW=!1;var f=t.memoizedState;a.state=f,iY(t,r,a,i),l=t.memoizedState,s!==r||f!==l||UU.current||JW?("function"==typeof u&&(vG(t,n,u,r),l=t.memoizedState),(s=JW||xG(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,QW(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:yG(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=WW(l):l=YU(t,l=GU(n)?WU:VU.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&wG(t,a,r,l),JW=!1,f=t.memoizedState,a.state=f,iY(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||UU.current||JW?("function"==typeof h&&(vG(t,n,h,r),p=t.memoizedState),(c=JW||xG(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return HG(e,t,n,r,o,i)}function HG(e,t,n,r,i,o){jG(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&QU(t,n,!1),oK(e,t,o);r=t.stateNode,DG.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=PW(t,e.child,null,o),t.child=PW(t,null,s,o)):LG(e,t,s,o),t.memoizedState=r.state,i&&QU(t,n,!0),t.child}function VG(e){var t=e.stateNode;t.pendingContext?XU(0,t.pendingContext,t.pendingContext!==t.context):t.context&&XU(0,t.context,!1),dY(e,t.containerInfo)}function UG(e,t,n,r,i){return TW(),AW(i),t.flags|=256,LG(e,t,n,r),t.child}var WG,YG,GG,KG,XG={dehydrated:null,treeContext:null,retryLane:0};function JG(e){return{baseLanes:e,cachePool:null,transitions:null}}function ZG(e,t,n){var r,i=t.pendingProps,o=mY.current,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),BU(mY,1&o),null===e)return EW(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},1&i||null===a?a=JX(s,i,0,null):(a.childLanes=0,a.pendingProps=s),e=XX(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=JG(n),t.memoizedState=XG,e):QG(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,eK(e,t,a,r=EG(Error(Mj(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=JX({mode:"visible",children:r.children},i,0,null),(o=XX(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&PW(t,e.child,null,a),t.child.memoizedState=JG(a),t.memoizedState=XG,o);if(!(1&t.mode))return eK(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,eK(e,t,a,r=EG(o=Error(Mj(419)),r,void 0))}if(s=!!(a&e.childLanes),IG||s){if(null!==(r=VK)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(r.suspendedLanes|a)?0:i)&&i!==o.retryLane&&(o.retryLane=i,XW(e,i),yX(r,e,i,-1))}return AX(),eK(e,t,a,r=EG(Error(Mj(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=BX.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,bW=EU(i.nextSibling),vW=t,xW=!0,SW=null,null!==e&&(cW[uW++]=fW,cW[uW++]=hW,cW[uW++]=dW,fW=e.id,hW=e.overflow,dW=t),t=QG(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 1&s||t.child===o?(i=GX(o,l)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null),null!==r?a=GX(r,a):(a=XX(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?JG(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=XG,i}return e=(a=e.child).sibling,i=GX(a,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function QG(e,t){return(t=JX({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function eK(e,t,n,r){return null!==r&&AW(r),PW(t,e.child,null,n),(e=QG(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tK(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),VW(e.return,t,n)}function nK(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function rK(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(LG(e,t,r.children,n),2&(r=mY.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tK(e,n,t);else if(19===e.tag)tK(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(BU(mY,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===gY(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nK(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===gY(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nK(t,!0,n,null,o);break;case"together":nK(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function iK(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function oK(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),JK|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Mj(153));if(null!==t.child){for(n=GX(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=GX(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function aK(e,t){if(!xW)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sK(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function lK(e,t,n){var r=t.pendingProps;switch(yW(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sK(t),null;case 1:case 17:return GU(t.type)&&KU(),sK(t),null;case 3:return r=t.stateNode,fY(),$U(UU),$U(VU),vY(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(OW(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==SW&&(SX(SW),SW=null))),YG(e,t),sK(t),null;case 5:pY(t);var i=uY(cY.current);if(n=t.type,null!==e&&null!=t.stateNode)GG(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(Mj(166));return sK(t),null}if(e=uY(sY.current),OW(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[NU]=t,r[TU]=o,e=!!(1&t.mode),n){case"dialog":tU("cancel",r),tU("close",r);break;case"iframe":case"object":case"embed":tU("load",r);break;case"video":case"audio":for(i=0;i<JV.length;i++)tU(JV[i],r);break;case"source":tU("error",r);break;case"img":case"image":case"link":tU("error",r),tU("load",r);break;case"details":tU("toggle",r);break;case"input":p$(r,o),tU("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},tU("invalid",r);break;case"textarea":w$(r,o),tU("invalid",r)}for(var a in L$(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&pU(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&pU(r.textContent,s,e),i=["children",""+s]):Ej.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&tU("scroll",r)}switch(n){case"input":u$(r),y$(r,o,!0);break;case"textarea":u$(r),k$(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=mU)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=E$(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[NU]=t,e[TU]=r,WG(e,t,!1,!1),t.stateNode=e;e:{switch(a=P$(n,r),n){case"dialog":tU("cancel",e),tU("close",e),i=r;break;case"iframe":case"object":case"embed":tU("load",e),i=r;break;case"video":case"audio":for(i=0;i<JV.length;i++)tU(JV[i],e);i=r;break;case"source":tU("error",e),i=r;break;case"img":case"image":case"link":tU("error",e),tU("load",e),i=r;break;case"details":tU("toggle",e),i=r;break;case"input":p$(e,r),i=h$(e,r),tU("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=t$({},r,{value:void 0}),tU("invalid",e);break;case"textarea":w$(e,r),i=S$(e,r),tU("invalid",e)}for(o in L$(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?D$(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&N$(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&T$(e,l):"number"==typeof l&&T$(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(Ej.hasOwnProperty(o)?null!=l&&"onScroll"===o&&tU("scroll",e):null!=l&&_j(e,o,l,a))}switch(n){case"input":u$(e),y$(e,r,!1);break;case"textarea":u$(e),k$(e);break;case"option":null!=r.value&&e.setAttribute("value",""+l$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?x$(e,!!r.multiple,o,!1):null!=r.defaultValue&&x$(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=mU)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return sK(t),null;case 6:if(e&&null!=t.stateNode)KG(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Mj(166));if(n=uY(cY.current),uY(sY.current),OW(t)){if(r=t.stateNode,n=t.memoizedProps,r[NU]=t,(o=r.nodeValue!==n)&&null!==(e=vW))switch(e.tag){case 3:pU(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&pU(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[NU]=t,t.stateNode=r}return sK(t),null;case 13:if($U(mY),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(xW&&null!==bW&&1&t.mode&&!(128&t.flags))NW(),TW(),t.flags|=98560,o=!1;else if(o=OW(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(Mj(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(Mj(317));o[NU]=t}else TW(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;sK(t),o=!1}else null!==SW&&(SX(SW),SW=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&mY.current?0===KK&&(KK=3):AX())),null!==t.updateQueue&&(t.flags|=4),sK(t),null);case 4:return fY(),YG(e,t),null===e&&iU(t.stateNode.containerInfo),sK(t),null;case 10:return HW(t.type._context),sK(t),null;case 19:if($U(mY),null===(o=t.memoizedState))return sK(t),null;if(r=!!(128&t.flags),null===(a=o.rendering))if(r)aK(o,!1);else{if(0!==KK||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=gY(e))){for(t.flags|=128,aK(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return BU(mY,1&mY.current|2),t.child}e=e.sibling}null!==o.tail&&pB()>rX&&(t.flags|=128,r=!0,aK(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=gY(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),aK(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!xW)return sK(t),null}else 2*pB()-o.renderingStartTime>rX&&1073741824!==n&&(t.flags|=128,r=!0,aK(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=pB(),t.sibling=null,n=mY.current,BU(mY,r?1&n|2:1&n),t):(sK(t),null);case 22:case 23:return CX(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&YK)&&(sK(t),6&t.subtreeFlags&&(t.flags|=8192)):sK(t),null;case 24:case 25:return null}throw Error(Mj(156,t.tag))}function cK(e,t){switch(yW(t),t.tag){case 1:return GU(t.type)&&KU(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return fY(),$U(UU),$U(VU),vY(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return pY(t),null;case 13:if($U(mY),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Mj(340));TW()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return $U(mY),null;case 4:return fY(),null;case 10:return HW(t.type._context),null;case 22:case 23:return CX(),null;default:return null}}WG=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},YG=function(){},GG=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,uY(sY.current);var o,a=null;switch(n){case"input":i=h$(e,i),r=h$(e,r),a=[];break;case"select":i=t$({},i,{value:void 0}),r=t$({},r,{value:void 0}),a=[];break;case"textarea":i=S$(e,i),r=S$(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=mU)}for(c in L$(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Ej.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Ej.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&tU("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},KG=function(e,t,n,r){n!==r&&(t.flags|=4)};var uK=!1,dK=!1,fK="function"==typeof WeakSet?WeakSet:Set,hK=null;function pK(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){FX(e,t,n)}else n.current=null}function mK(e,t,n){try{n()}catch(n){FX(e,t,n)}}var gK=!1;function yK(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&mK(t,n,o)}i=i.next}while(i!==r)}}function vK(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function bK(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function xK(e){var t=e.alternate;null!==t&&(e.alternate=null,xK(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[NU],delete t[TU],delete t[RU],delete t[qU],delete t[DU])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function SK(e){return 5===e.tag||3===e.tag||4===e.tag}function wK(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||SK(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function MK(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=mU));else if(4!==r&&null!==(e=e.child))for(MK(e,t,n),e=e.sibling;null!==e;)MK(e,t,n),e=e.sibling}function kK(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(kK(e,t,n),e=e.sibling;null!==e;)kK(e,t,n),e=e.sibling}var EK=null,CK=!1;function OK(e,t,n){for(n=n.child;null!==n;)NK(e,t,n),n=n.sibling}function NK(e,t,n){if(wB&&"function"==typeof wB.onCommitFiberUnmount)try{wB.onCommitFiberUnmount(SB,n)}catch(e){}switch(n.tag){case 5:dK||pK(n,t);case 6:var r=EK,i=CK;EK=null,OK(e,t,n),CK=i,null!==(EK=r)&&(CK?(e=EK,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):EK.removeChild(n.stateNode));break;case 18:null!==EK&&(CK?(e=EK,n=n.stateNode,8===e.nodeType?kU(e.parentNode,n):1===e.nodeType&&kU(e,n),oH(e)):kU(EK,n.stateNode));break;case 4:r=EK,i=CK,EK=n.stateNode.containerInfo,CK=!0,OK(e,t,n),EK=r,CK=i;break;case 0:case 11:case 14:case 15:if(!dK&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&mK(n,t,a),i=i.next}while(i!==r)}OK(e,t,n);break;case 1:if(!dK&&(pK(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){FX(n,t,e)}OK(e,t,n);break;case 21:OK(e,t,n);break;case 22:1&n.mode?(dK=(r=dK)||null!==n.memoizedState,OK(e,t,n),dK=r):OK(e,t,n);break;default:OK(e,t,n)}}function TK(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fK),t.forEach((function(t){var r=HX.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function AK(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:EK=s.stateNode,CK=!1;break e;case 3:case 4:EK=s.stateNode.containerInfo,CK=!0;break e}s=s.return}if(null===EK)throw Error(Mj(160));NK(o,a,i),EK=null,CK=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){FX(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)RK(t,e),t=t.sibling}function RK(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(AK(t,e),qK(e),4&r){try{yK(3,e,e.return),vK(3,e)}catch(t){FX(e,e.return,t)}try{yK(5,e,e.return)}catch(t){FX(e,e.return,t)}}break;case 1:AK(t,e),qK(e),512&r&&null!==n&&pK(n,n.return);break;case 5:if(AK(t,e),qK(e),512&r&&null!==n&&pK(n,n.return),32&e.flags){var i=e.stateNode;try{T$(i,"")}catch(t){FX(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&m$(i,o),P$(s,a);var c=P$(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?D$(i,d):"dangerouslySetInnerHTML"===u?N$(i,d):"children"===u?T$(i,d):_j(i,u,d,c)}switch(s){case"input":g$(i,o);break;case"textarea":M$(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?x$(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?x$(i,!!o.multiple,o.defaultValue,!0):x$(i,!!o.multiple,o.multiple?[]:"",!1))}i[TU]=o}catch(t){FX(e,e.return,t)}}break;case 6:if(AK(t,e),qK(e),4&r){if(null===e.stateNode)throw Error(Mj(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){FX(e,e.return,t)}}break;case 3:if(AK(t,e),qK(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{oH(t.containerInfo)}catch(t){FX(e,e.return,t)}break;case 4:default:AK(t,e),qK(e);break;case 13:AK(t,e),qK(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(nX=pB())),4&r&&TK(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(dK=(c=dK)||u,AK(t,e),dK=c):AK(t,e),qK(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(hK=e,u=e.child;null!==u;){for(d=hK=u;null!==hK;){switch(h=(f=hK).child,f.tag){case 0:case 11:case 14:case 15:yK(4,f,f.return);break;case 1:pK(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){FX(r,n,e)}}break;case 5:pK(f,f.return);break;case 22:if(null!==f.memoizedState){PK(d);continue}}null!==h?(h.return=f,hK=h):PK(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=q$("display",a))}catch(t){FX(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){FX(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:AK(t,e),qK(e),4&r&&TK(e);case 21:}}function qK(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(SK(n)){var r=n;break e}n=n.return}throw Error(Mj(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(T$(i,""),r.flags&=-33),kK(e,wK(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;MK(e,wK(e),o);break;default:throw Error(Mj(161))}}catch(t){FX(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function DK(e,t,n){hK=e,IK(e)}function IK(e,t,n){for(var r=!!(1&e.mode);null!==hK;){var i=hK,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||uK;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||dK;s=uK;var c=dK;if(uK=a,(dK=l)&&!c)for(hK=i;null!==hK;)l=(a=hK).child,22===a.tag&&null!==a.memoizedState?_K(i):null!==l?(l.return=a,hK=l):_K(i);for(;null!==o;)hK=o,IK(o),o=o.sibling;hK=i,uK=s,dK=c}LK(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,hK=o):LK(e)}}function LK(e){for(;null!==hK;){var t=hK;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:dK||vK(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!dK)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yG(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&oY(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}oY(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&oH(d)}}}break;default:throw Error(Mj(163))}dK||512&t.flags&&bK(t)}catch(e){FX(t,t.return,e)}}if(t===e){hK=null;break}if(null!==(n=t.sibling)){n.return=t.return,hK=n;break}hK=t.return}}function PK(e){for(;null!==hK;){var t=hK;if(t===e){hK=null;break}var n=t.sibling;if(null!==n){n.return=t.return,hK=n;break}hK=t.return}}function _K(e){for(;null!==hK;){var t=hK;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vK(4,t)}catch(e){FX(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){FX(t,i,e)}}var o=t.return;try{bK(t)}catch(e){FX(t,o,e)}break;case 5:var a=t.return;try{bK(t)}catch(e){FX(t,a,e)}}}catch(e){FX(t,t.return,e)}if(t===e){hK=null;break}var s=t.sibling;if(null!==s){s.return=t.return,hK=s;break}hK=t.return}}var zK,FK=Math.ceil,jK=zj.ReactCurrentDispatcher,$K=zj.ReactCurrentOwner,BK=zj.ReactCurrentBatchConfig,HK=0,VK=null,UK=null,WK=0,YK=0,GK=jU(0),KK=0,XK=null,JK=0,ZK=0,QK=0,eX=null,tX=null,nX=0,rX=1/0,iX=null,oX=!1,aX=null,sX=null,lX=!1,cX=null,uX=0,dX=0,fX=null,hX=-1,pX=0;function mX(){return 6&HK?pB():-1!==hX?hX:hX=pB()}function gX(e){return 1&e.mode?2&HK&&0!==WK?WK&-WK:null!==RW.transition?(0===pX&&(pX=qB()),pX):0!==(e=PB)?e:e=void 0===(e=window.event)?16:hH(e.type):1}function yX(e,t,n,r){if(50<dX)throw dX=0,fX=null,Error(Mj(185));IB(e,n,r),2&HK&&e===VK||(e===VK&&(!(2&HK)&&(ZK|=n),4===KK&&wX(e,WK)),vX(e,r),1===n&&0===HK&&!(1&t.mode)&&(rX=pB()+500,tW&&iW()))}function vX(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-MB(o),s=1<<a,l=i[a];-1===l?s&n&&!(s&r)||(i[a]=AB(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=TB(e,e===VK?WK:0);if(0===r)null!==n&&dB(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&dB(n),1===t)0===e.tag?function(e){tW=!0,rW(e)}(MX.bind(null,e)):rW(MX.bind(null,e)),wU((function(){!(6&HK)&&iW()})),n=null;else{switch(_B(r)){case 1:n=gB;break;case 4:n=yB;break;case 16:default:n=vB;break;case 536870912:n=xB}n=VX(n,bX.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bX(e,t){if(hX=-1,pX=0,6&HK)throw Error(Mj(327));var n=e.callbackNode;if(_X()&&e.callbackNode!==n)return null;var r=TB(e,e===VK?WK:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=RX(e,r);else{t=r;var i=HK;HK|=2;var o=TX();for(VK===e&&WK===t||(iX=null,rX=pB()+500,OX(e,t));;)try{DX();break}catch(t){NX(e,t)}BW(),jK.current=o,HK=i,null!==UK?t=0:(VK=null,WK=0,t=KK)}if(0!==t){if(2===t&&(0!==(i=RB(e))&&(r=i,t=xX(e,i))),1===t)throw n=XK,OX(e,0),wX(e,r),vX(e,pB()),n;if(6===t)wX(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!MV(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=RX(e,r),2===t&&(o=RB(e),0!==o&&(r=o,t=xX(e,o))),1!==t)))throw n=XK,OX(e,0),wX(e,r),vX(e,pB()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Mj(345));case 2:case 5:PX(e,tX,iX);break;case 3:if(wX(e,r),(130023424&r)===r&&10<(t=nX+500-pB())){if(0!==TB(e,0))break;if(((i=e.suspendedLanes)&r)!==r){mX(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=bU(PX.bind(null,e,tX,iX),t);break}PX(e,tX,iX);break;case 4:if(wX(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-MB(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=pB()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*FK(r/1960))-r)){e.timeoutHandle=bU(PX.bind(null,e,tX,iX),r);break}PX(e,tX,iX);break;default:throw Error(Mj(329))}}}return vX(e,pB()),e.callbackNode===n?bX.bind(null,e):null}function xX(e,t){var n=eX;return e.current.memoizedState.isDehydrated&&(OX(e,t).flags|=256),2!==(e=RX(e,t))&&(t=tX,tX=n,null!==t&&SX(t)),e}function SX(e){null===tX?tX=e:tX.push.apply(tX,e)}function wX(e,t){for(t&=~QK,t&=~ZK,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-MB(t),r=1<<n;e[n]=-1,t&=~r}}function MX(e){if(6&HK)throw Error(Mj(327));_X();var t=TB(e,0);if(!(1&t))return vX(e,pB()),null;var n=RX(e,t);if(0!==e.tag&&2===n){var r=RB(e);0!==r&&(t=r,n=xX(e,r))}if(1===n)throw n=XK,OX(e,0),wX(e,t),vX(e,pB()),n;if(6===n)throw Error(Mj(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,PX(e,tX,iX),vX(e,pB()),null}function kX(e,t){var n=HK;HK|=1;try{return e(t)}finally{0===(HK=n)&&(rX=pB()+500,tW&&iW())}}function EX(e){null!==cX&&0===cX.tag&&!(6&HK)&&_X();var t=HK;HK|=1;var n=BK.transition,r=PB;try{if(BK.transition=null,PB=1,e)return e()}finally{PB=r,BK.transition=n,!(6&(HK=t))&&iW()}}function CX(){YK=GK.current,$U(GK)}function OX(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xU(n)),null!==UK)for(n=UK.return;null!==n;){var r=n;switch(yW(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&KU();break;case 3:fY(),$U(UU),$U(VU),vY();break;case 5:pY(r);break;case 4:fY();break;case 13:case 19:$U(mY);break;case 10:HW(r.type._context);break;case 22:case 23:CX()}n=n.return}if(VK=e,UK=e=GX(e.current,null),WK=YK=t,KK=0,XK=null,QK=ZK=JK=0,tX=eX=null,null!==YW){for(t=0;t<YW.length;t++)if(null!==(r=(n=YW[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}YW=null}return e}function NX(e,t){for(;;){var n=UK;try{if(BW(),bY.current=hG,EY){for(var r=wY.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}EY=!1}if(SY=0,kY=MY=wY=null,CY=!1,OY=0,$K.current=null,null===n||null===n.return){KK=1,XK=t,UK=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=WK,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=RG(a);if(null!==h){h.flags&=-257,qG(h,a,s,0,t),1&h.mode&&AG(o,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(!(1&t)){AG(o,c,t),AX();break e}l=Error(Mj(426))}else if(xW&&1&s.mode){var g=RG(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),qG(g,a,s,0,t),AW(kG(l,s));break e}}o=l=kG(l,s),4!==KK&&(KK=2),null===eX?eX=[o]:eX.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,rY(o,NG(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==sX&&sX.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,rY(o,TG(o,s,t));break e}}o=o.return}while(null!==o)}LX(n)}catch(e){t=e,UK===n&&null!==n&&(UK=n=n.return);continue}break}}function TX(){var e=jK.current;return jK.current=hG,null===e?hG:e}function AX(){0!==KK&&3!==KK&&2!==KK||(KK=4),null===VK||!(268435455&JK)&&!(268435455&ZK)||wX(VK,WK)}function RX(e,t){var n=HK;HK|=2;var r=TX();for(VK===e&&WK===t||(iX=null,OX(e,t));;)try{qX();break}catch(t){NX(e,t)}if(BW(),HK=n,jK.current=r,null!==UK)throw Error(Mj(261));return VK=null,WK=0,KK}function qX(){for(;null!==UK;)IX(UK)}function DX(){for(;null!==UK&&!fB();)IX(UK)}function IX(e){var t=zK(e.alternate,e,YK);e.memoizedProps=e.pendingProps,null===t?LX(e):UK=t,$K.current=null}function LX(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=cK(n,t)))return n.flags&=32767,void(UK=n);if(null===e)return KK=6,void(UK=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=lK(n,t,YK)))return void(UK=n);if(null!==(t=t.sibling))return void(UK=t);UK=t=e}while(null!==t);0===KK&&(KK=5)}function PX(e,t,n){var r=PB,i=BK.transition;try{BK.transition=null,PB=1,function(e,t,n,r){do{_X()}while(null!==cX);if(6&HK)throw Error(Mj(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Mj(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-MB(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===VK&&(UK=VK=null,WK=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||lX||(lX=!0,VX(vB,(function(){return _X(),null}))),o=!!(15990&n.flags),!!(15990&n.subtreeFlags)||o){o=BK.transition,BK.transition=null;var a=PB;PB=1;var s=HK;HK|=4,$K.current=null,function(e,t){if(gU=sH,TV(e=NV())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(yU={focusedElem:e,selectionRange:n},sH=!1,hK=t;null!==hK;)if(e=(t=hK).child,1028&t.subtreeFlags&&null!==e)e.return=t,hK=e;else for(;null!==hK;){t=hK;try{var p=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:yG(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(Mj(163))}}catch(e){FX(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,hK=e;break}hK=t.return}p=gK,gK=!1}(e,n),RK(n,e),AV(yU),sH=!!gU,yU=gU=null,e.current=n,DK(n),hB(),HK=s,PB=a,BK.transition=o}else e.current=n;if(lX&&(lX=!1,cX=e,uX=i),o=e.pendingLanes,0===o&&(sX=null),function(e){if(wB&&"function"==typeof wB.onCommitFiberRoot)try{wB.onCommitFiberRoot(SB,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),vX(e,pB()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(oX)throw oX=!1,e=aX,aX=null,e;!!(1&uX)&&0!==e.tag&&_X(),o=e.pendingLanes,1&o?e===fX?dX++:(dX=0,fX=e):dX=0,iW()}(e,t,n,r)}finally{BK.transition=i,PB=r}return null}function _X(){if(null!==cX){var e=_B(uX),t=BK.transition,n=PB;try{if(BK.transition=null,PB=16>e?16:e,null===cX)var r=!1;else{if(e=cX,cX=null,uX=0,6&HK)throw Error(Mj(331));var i=HK;for(HK|=4,hK=e.current;null!==hK;){var o=hK,a=o.child;if(16&hK.flags){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(hK=c;null!==hK;){var u=hK;switch(u.tag){case 0:case 11:case 15:yK(8,u,o)}var d=u.child;if(null!==d)d.return=u,hK=d;else for(;null!==hK;){var f=(u=hK).sibling,h=u.return;if(xK(u),u===c){hK=null;break}if(null!==f){f.return=h,hK=f;break}hK=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}hK=o}}if(2064&o.subtreeFlags&&null!==a)a.return=o,hK=a;else e:for(;null!==hK;){if(2048&(o=hK).flags)switch(o.tag){case 0:case 11:case 15:yK(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,hK=y;break e}hK=o.return}}var v=e.current;for(hK=v;null!==hK;){var b=(a=hK).child;if(2064&a.subtreeFlags&&null!==b)b.return=a,hK=b;else e:for(a=v;null!==hK;){if(2048&(s=hK).flags)try{switch(s.tag){case 0:case 11:case 15:vK(9,s)}}catch(e){FX(s,s.return,e)}if(s===a){hK=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,hK=x;break e}hK=s.return}}if(HK=i,iW(),wB&&"function"==typeof wB.onPostCommitFiberRoot)try{wB.onPostCommitFiberRoot(SB,e)}catch(e){}r=!0}return r}finally{PB=n,BK.transition=t}}return!1}function zX(e,t,n){e=tY(e,t=NG(0,t=kG(n,t),1),1),t=mX(),null!==e&&(IB(e,1,t),vX(e,t))}function FX(e,t,n){if(3===e.tag)zX(e,e,n);else for(;null!==t;){if(3===t.tag){zX(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===sX||!sX.has(r))){t=tY(t,e=TG(t,e=kG(n,e),1),1),e=mX(),null!==t&&(IB(t,1,e),vX(t,e));break}}t=t.return}}function jX(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=mX(),e.pingedLanes|=e.suspendedLanes&n,VK===e&&(WK&n)===n&&(4===KK||3===KK&&(130023424&WK)===WK&&500>pB()-nX?OX(e,0):QK|=n),vX(e,t)}function $X(e,t){0===t&&(1&e.mode?(t=OB,!(130023424&(OB<<=1))&&(OB=4194304)):t=1);var n=mX();null!==(e=XW(e,t))&&(IB(e,t,n),vX(e,n))}function BX(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),$X(e,n)}function HX(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Mj(314))}null!==r&&r.delete(t),$X(e,n)}function VX(e,t){return uB(e,t)}function UX(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function WX(e,t,n,r){return new UX(e,t,n,r)}function YX(e){return!(!(e=e.prototype)||!e.isReactComponent)}function GX(e,t){var n=e.alternate;return null===n?((n=WX(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function KX(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)YX(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case $j:return XX(n.children,i,o,t);case Bj:a=8,i|=8;break;case Hj:return(e=WX(12,n,t,2|i)).elementType=Hj,e.lanes=o,e;case Yj:return(e=WX(13,n,t,i)).elementType=Yj,e.lanes=o,e;case Gj:return(e=WX(19,n,t,i)).elementType=Gj,e.lanes=o,e;case Jj:return JX(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Vj:a=10;break e;case Uj:a=9;break e;case Wj:a=11;break e;case Kj:a=14;break e;case Xj:a=16,r=null;break e}throw Error(Mj(130,null==e?e:typeof e,""))}return(t=WX(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function XX(e,t,n,r){return(e=WX(7,e,r,t)).lanes=n,e}function JX(e,t,n,r){return(e=WX(22,e,r,t)).elementType=Jj,e.lanes=n,e.stateNode={isHidden:!1},e}function ZX(e,t,n){return(e=WX(6,e,null,t)).lanes=n,e}function QX(e,t,n){return(t=WX(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eJ(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=DB(0),this.expirationTimes=DB(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=DB(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function tJ(e,t,n,r,i,o,a,s,l){return e=new eJ(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=WX(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ZW(o),e}function nJ(e){if(!e)return HU;e:{if(oB(e=e._reactInternals)!==e||1!==e.tag)throw Error(Mj(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(GU(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Mj(171))}if(1===e.tag){var n=e.type;if(GU(n))return JU(e,n,t)}return t}function rJ(e,t,n,r,i,o,a,s,l){return(e=tJ(n,r,!0,e,0,o,0,s,l)).context=nJ(null),n=e.current,(o=eY(r=mX(),i=gX(n))).callback=null!=t?t:null,tY(n,o,i),e.current.lanes=i,IB(e,i,r),vX(e,r),e}function iJ(e,t,n,r){var i=t.current,o=mX(),a=gX(i);return n=nJ(n),null===t.context?t.context=n:t.pendingContext=n,(t=eY(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=tY(i,t,a))&&(yX(e,i,a,o),nY(e,i,a)),a}function oJ(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function aJ(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function sJ(e,t){aJ(e,t),(e=e.alternate)&&aJ(e,t)}zK=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||UU.current)IG=!0;else{if(!(e.lanes&n||128&t.flags))return IG=!1,function(e,t,n){switch(t.tag){case 3:VG(t),TW();break;case 5:hY(t);break;case 1:GU(t.type)&&ZU(t);break;case 4:dY(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;BU(zW,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(BU(mY,1&mY.current),t.flags|=128,null):n&t.child.childLanes?ZG(e,t,n):(BU(mY,1&mY.current),null!==(e=oK(e,t,n))?e.sibling:null);BU(mY,1&mY.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return rK(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),BU(mY,mY.current),r)break;return null;case 22:case 23:return t.lanes=0,FG(e,t,n)}return oK(e,t,n)}(e,t,n);IG=!!(131072&e.flags)}else IG=!1,xW&&1048576&t.flags&&mW(t,lW,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iK(e,t),e=t.pendingProps;var i=YU(t,VU.current);UW(t,n),i=RY(null,t,r,e,i,n);var o=qY();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,GU(r)?(o=!0,ZU(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ZW(t),i.updater=bG,t.stateNode=i,i._reactInternals=t,MG(t,r,e,n),t=HG(null,t,r,!0,o,n)):(t.tag=0,xW&&o&&gW(t),LG(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iK(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return YX(e)?1:0;if(null!=e){if((e=e.$$typeof)===Wj)return 11;if(e===Kj)return 14}return 2}(r),e=yG(r,e),i){case 0:t=$G(null,t,r,e,n);break e;case 1:t=BG(null,t,r,e,n);break e;case 11:t=PG(null,t,r,e,n);break e;case 14:t=_G(null,t,r,yG(r.type,e),n);break e}throw Error(Mj(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,$G(e,t,r,i=t.elementType===r?i:yG(r,i),n);case 1:return r=t.type,i=t.pendingProps,BG(e,t,r,i=t.elementType===r?i:yG(r,i),n);case 3:e:{if(VG(t),null===e)throw Error(Mj(387));r=t.pendingProps,i=(o=t.memoizedState).element,QW(e,t),iY(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=UG(e,t,r,n,i=kG(Error(Mj(423)),t));break e}if(r!==i){t=UG(e,t,r,n,i=kG(Error(Mj(424)),t));break e}for(bW=EU(t.stateNode.containerInfo.firstChild),vW=t,xW=!0,SW=null,n=_W(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(TW(),r===i){t=oK(e,t,n);break e}LG(e,t,r,n)}t=t.child}return t;case 5:return hY(t),null===e&&EW(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,vU(r,i)?a=null:null!==o&&vU(r,o)&&(t.flags|=32),jG(e,t),LG(e,t,a,n),t.child;case 6:return null===e&&EW(t),null;case 13:return ZG(e,t,n);case 4:return dY(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=PW(t,null,r,n):LG(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,PG(e,t,r,i=t.elementType===r?i:yG(r,i),n);case 7:return LG(e,t,t.pendingProps,n),t.child;case 8:case 12:return LG(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,BU(zW,r._currentValue),r._currentValue=a,null!==o)if(MV(o.value,a)){if(o.children===i.children&&!UU.current){t=oK(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=eY(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),VW(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(Mj(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),VW(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}LG(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,UW(t,n),r=r(i=WW(i)),t.flags|=1,LG(e,t,r,n),t.child;case 14:return i=yG(r=t.type,t.pendingProps),_G(e,t,r,i=yG(r.type,i),n);case 15:return zG(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yG(r,i),iK(e,t),t.tag=1,GU(r)?(e=!0,ZU(t)):e=!1,UW(t,n),SG(t,r,i),MG(t,r,i,n),HG(null,t,r,!0,e,n);case 19:return rK(e,t,n);case 22:return FG(e,t,n)}throw Error(Mj(156,t.tag))};var lJ="function"==typeof reportError?reportError:function(e){console.error(e)};function cJ(e){this._internalRoot=e}function uJ(e){this._internalRoot=e}function dJ(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function fJ(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function hJ(){}function pJ(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=oJ(a);s.call(e)}}iJ(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=oJ(a);o.call(e)}}var a=rJ(t,r,e,0,null,!1,0,"",hJ);return e._reactRootContainer=a,e[AU]=a.current,iU(8===e.nodeType?e.parentNode:e),EX(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=oJ(l);s.call(e)}}var l=tJ(e,0,!1,null,0,!1,0,"",hJ);return e._reactRootContainer=l,e[AU]=l.current,iU(8===e.nodeType?e.parentNode:e),EX((function(){iJ(t,l,n,r)})),l}(n,t,e,i,r);return oJ(a)}uJ.prototype.render=cJ.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Mj(409));iJ(e,t,null,null)},uJ.prototype.unmount=cJ.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;EX((function(){iJ(null,e,null,null)})),t[AU]=null}},uJ.prototype.unstable_scheduleHydration=function(e){if(e){var t=$B();e={blockedOn:null,target:e,priority:t};for(var n=0;n<XB.length&&0!==t&&t<XB[n].priority;n++);XB.splice(n,0,e),0===n&&eH(e)}},zB=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=NB(t.pendingLanes);0!==n&&(LB(t,1|n),vX(t,pB()),!(6&HK)&&(rX=pB()+500,iW()))}break;case 13:EX((function(){var t=XW(e,1);if(null!==t){var n=mX();yX(t,e,1,n)}})),sJ(e,1)}},FB=function(e){if(13===e.tag){var t=XW(e,134217728);if(null!==t)yX(t,e,134217728,mX());sJ(e,134217728)}},jB=function(e){if(13===e.tag){var t=gX(e),n=XW(e,t);if(null!==n)yX(n,e,t,mX());sJ(e,t)}},$B=function(){return PB},BB=function(e,t){var n=PB;try{return PB=e,t()}finally{PB=n}},F$=function(e,t,n){switch(t){case"input":if(g$(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_U(r);if(!i)throw Error(Mj(90));d$(r),g$(r,i)}}}break;case"textarea":M$(e,n);break;case"select":null!=(t=n.value)&&x$(e,!!n.multiple,t,!1)}},U$=kX,W$=EX;var mJ={usingClientEntryPoint:!1,Events:[LU,PU,_U,H$,V$,kX]},gJ={findFiberByHostInstance:IU,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},yJ={bundleType:gJ.bundleType,version:gJ.version,rendererPackageName:gJ.rendererPackageName,rendererConfig:gJ.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zj.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=lB(e))?null:e.stateNode},findFiberByHostInstance:gJ.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var vJ=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vJ.isDisabled&&vJ.supportsFiber)try{SB=vJ.inject(yJ),wB=vJ}catch(CR){}}yj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mJ,yj.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!dJ(t))throw Error(Mj(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:jj,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},yj.createRoot=function(e,t){if(!dJ(e))throw Error(Mj(299));var n=!1,r="",i=lJ;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=tJ(e,1,!1,null,0,n,0,r,i),e[AU]=t.current,iU(8===e.nodeType?e.parentNode:e),new cJ(t)},yj.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(Mj(188));throw e=Object.keys(e).join(","),Error(Mj(268,e))}return e=null===(e=lB(t))?null:e.stateNode},yj.flushSync=function(e){return EX(e)},yj.hydrate=function(e,t,n){if(!fJ(t))throw Error(Mj(200));return pJ(null,e,t,!0,n)},yj.hydrateRoot=function(e,t,n){if(!dJ(e))throw Error(Mj(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=lJ;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=rJ(t,null,e,1,null!=n?n:null,i,0,o,a),e[AU]=t.current,iU(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new uJ(t)},yj.render=function(e,t,n){if(!fJ(t))throw Error(Mj(200));return pJ(null,e,t,!1,n)},yj.unmountComponentAtNode=function(e){if(!fJ(e))throw Error(Mj(40));return!!e._reactRootContainer&&(EX((function(){pJ(null,null,e,!1,(function(){e._reactRootContainer=null,e[AU]=null}))})),!0)},yj.unstable_batchedUpdates=kX,yj.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!fJ(n))throw Error(Mj(200));if(null==e||void 0===e._reactInternals)throw Error(Mj(38));return pJ(e,t,n,!1,r)},yj.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),gj.exports=yj;var bJ=gj.exports,xJ=r(bJ),SJ=!0,wJ=!1,MJ=null,kJ={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 EJ(e){e.metaKey||e.altKey||e.ctrlKey||(SJ=!0)}function CJ(){SJ=!1}function OJ(){"hidden"===this.visibilityState&&wJ&&(SJ=!0)}function NJ(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return SJ||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!kJ[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function TJ(){wJ=!0,window.clearTimeout(MJ),MJ=window.setTimeout((function(){wJ=!1}),100)}function AJ(){var e=OI.useCallback((function(e){var t,n=bJ.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",EJ,!0),t.addEventListener("mousedown",CJ,!0),t.addEventListener("pointerdown",CJ,!0),t.addEventListener("touchstart",CJ,!0),t.addEventListener("visibilitychange",OJ,!0))}),[]);return{isFocusVisible:NJ,onBlurVisible:TJ,ref:e}}var RJ=!1,qJ=NI.createContext(null),DJ="unmounted",IJ="exited",LJ="entering",PJ="entered",_J="exiting",zJ=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=IJ,r.appearStatus=LJ):i=PJ:i=t.unmountOnExit||t.mountOnEnter?DJ:IJ,r.state={status:i},r.nextCallback=null,r}mP(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===DJ?{status:IJ}: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!==LJ&&n!==PJ&&(t=LJ):n!==LJ&&n!==PJ||(t=_J)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===LJ){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:xJ.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===IJ&&this.setState({status:DJ})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[xJ.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||RJ?this.safeSetState({status:PJ},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:LJ},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:PJ},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:xJ.findDOMNode(this);t&&!RJ?(this.props.onExit(r),this.safeSetState({status:_J},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:IJ},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:IJ},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:xJ.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===DJ)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=IL(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return NI.createElement(qJ.Provider,{value:null},"function"==typeof n?n(e,r):NI.cloneElement(NI.Children.only(n),r))},t}(NI.Component);function FJ(){}function jJ(e,t){var n=Object.create(null);return e&&OI.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&OI.isValidElement(e)?t(e):e}(e)})),n}function $J(e,t,n){return null!=n[t]?n[t]:e.props[t]}function BJ(e,t,n){var r=jJ(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(OI.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=OI.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&OI.isValidElement(c)&&(i[o]=OI.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:$J(a,"exit",e),enter:$J(a,"enter",e)})):i[o]=OI.cloneElement(a,{in:!1}):i[o]=OI.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:$J(a,"exit",e),enter:$J(a,"enter",e)})}})),i}zJ.contextType=qJ,zJ.propTypes={},zJ.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:FJ,onEntering:FJ,onEntered:FJ,onExit:FJ,onExiting:FJ,onExited:FJ},zJ.UNMOUNTED=DJ,zJ.EXITED=IJ,zJ.ENTERING=LJ,zJ.ENTERED=PJ,zJ.EXITING=_J;var HJ=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},VJ=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(gP(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}mP(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,jJ(n.children,(function(e){return OI.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:$J(e,"appear",n),enter:$J(e,"enter",n),exit:$J(e,"exit",n)})}))):BJ(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=jJ(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=wL({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=IL(e,["component","childFactory"]),i=this.state.contextValue,o=HJ(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?NI.createElement(qJ.Provider,{value:i},o):NI.createElement(qJ.Provider,{value:i},NI.createElement(t,r,o))},t}(NI.Component);VJ.propTypes={},VJ.defaultProps={component:"div",childFactory:function(e){return e}};function UJ(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var WJ=OI.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=LL(e,["classes","className","component","square","elevation","variant"]);return OI.createElement(o,wL({className:cj(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),YJ=oj((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),wL({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(WJ),GJ="undefined"==typeof window?OI.useEffect:OI.useLayoutEffect;function KJ(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=OI.useState(!1),f=d[0],h=d[1],p=cj(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=cj(t.child,f&&t.childLeaving,r&&t.childPulsate),y=pj(c);return GJ((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),OI.createElement("span",{className:p,style:m},OI.createElement("span",{className:g}))}var XJ=OI.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=LL(e,["center","classes","className"]),s=OI.useState([]),l=s[0],c=s[1],u=OI.useRef(0),d=OI.useRef(null);OI.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=OI.useRef(!1),h=OI.useRef(null),p=OI.useRef(null),m=OI.useRef(null);OI.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=OI.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(ZL(e),[OI.createElement(KJ,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=OI.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,w=x.clientY;u=Math.round(S-b.left),d=Math.round(w-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var M=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(k,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=OI.useCallback((function(){y({},{pulsate:!0})}),[y]),b=OI.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return OI.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),OI.createElement("span",wL({className:cj(i.root,o),ref:m},a),OI.createElement(VJ,{component:null,exit:!0},l))})),JJ=oj((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"})(OI.memo(XJ)),ZJ=OI.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,S=e.onClick,w=e.onFocus,M=e.onFocusVisible,k=e.onKeyDown,E=e.onKeyUp,C=e.onMouseDown,O=e.onMouseLeave,N=e.onMouseUp,T=e.onTouchEnd,A=e.onTouchMove,R=e.onTouchStart,q=e.onDragLeave,D=e.tabIndex,I=void 0===D?0:D,L=e.TouchRippleProps,P=e.type,_=void 0===P?"button":P,z=LL(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"]),F=OI.useRef(null);var j=OI.useRef(null),$=OI.useState(!1),B=$[0],H=$[1];f&&B&&H(!1);var V=AJ(),U=V.isFocusVisible,W=V.onBlurVisible,Y=V.ref;function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return pj((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}OI.useImperativeHandle(n,(function(){return{focusVisible:function(){H(!0),F.current.focus()}}}),[]),OI.useEffect((function(){B&&v&&!p&&j.current.pulsate()}),[p,v,B]);var K=G("start",C),X=G("stop",q),J=G("stop",N),Z=G("stop",(function(e){B&&e.preventDefault(),O&&O(e)})),Q=G("start",R),ee=G("stop",T),te=G("stop",A),ne=G("stop",(function(e){B&&(W(e),H(!1)),x&&x(e)}),!1),re=pj((function(e){F.current||(F.current=e.currentTarget),U(e)&&(H(!0),M&&M(e)),w&&w(e)})),ie=function(){var e=bJ.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=OI.useRef(!1),ae=pj((function(e){v&&!oe.current&&B&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),S&&S(e))})),se=pj((function(e){v&&" "===e.key&&j.current&&B&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),E&&E(e),S&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&S(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=_,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=mj(r,t),de=mj(Y,F),fe=mj(ue,de),he=OI.useState(!1),pe=he[0],me=he[1];OI.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return OI.createElement(le,wL({className:cj(s.root,l,B&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:S,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:K,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:fe,tabIndex:f?-1:I},ce,z),a,ge?OI.createElement(JJ,wL({ref:j,center:o},L)):null)})),QJ=oj({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(ZJ),eZ={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},tZ=OI.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?eZ:b,S=LL(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),w=l||(g?"p":x[v]||eZ[v])||"span";return OI.createElement(w,wL({className:cj(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(aj(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(aj(r))],"initial"!==u&&i["display".concat(aj(u))]),ref:t},S))})),nZ=oj((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"})(tZ),rZ=OI.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,S=e.startIcon,w=e.type,M=void 0===w?"button":w,k=e.variant,E=void 0===k?"text":k,C=LL(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),O=S&&OI.createElement("span",{className:cj(r.startIcon,r["iconSize".concat(aj(x))])},S),N=m&&OI.createElement("span",{className:cj(r.endIcon,r["iconSize".concat(aj(x))])},m);return OI.createElement(QJ,wL({className:cj(r.root,r[E],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(E).concat(aj(a))],"medium"!==x&&[r["".concat(E,"Size").concat(aj(x))],r["size".concat(aj(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:cj(r.focusVisible,g),ref:t,type:M},C),OI.createElement("span",{className:r.label},O,n,N))})),iZ=oj((function(e){return{root:wL({},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:DL(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:DL(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:DL(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(DL(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:DL(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(DL(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:DL(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(rZ);var oZ="undefined"!=typeof window?OI.useLayoutEffect:OI.useEffect,aZ=OI.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=OI.useState(null),l=s[0],c=s[1],u=mj(OI.isValidElement(n)?n.ref:null,t);return oZ((function(){o||c(function(e){return e="function"==typeof e?e():e,bJ.findDOMNode(e)}(r)||document.body)}),[r,o]),oZ((function(){if(l&&!o)return fj(t,l),function(){fj(t,null)}}),[t,l,o]),oZ((function(){a&&(l||o)&&a()}),[a,l,o]),o?OI.isValidElement(n)?OI.cloneElement(n,{ref:u}):n:l?bJ.createPortal(n,l):l}));function sZ(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lZ(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function cZ(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(ZL(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&sZ(e,r)}))}function uZ(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function dZ(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=uj(e);return t.body===e?dj(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(lZ(o)+a,"px"),n=uj(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(lZ(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var fZ=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return hP(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&&sZ(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);cZ(t,e.mountNode,e.modalRef,r,!0);var i=uZ(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=uZ(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=dZ(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=uZ(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&&sZ(e.modalRef,!0),cZ(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&sZ(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function hZ(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=OI.useRef(),f=OI.useRef(null),h=OI.useRef(null),p=OI.useRef(),m=OI.useRef(null),g=OI.useCallback((function(e){m.current=bJ.findDOMNode(e)}),[]),y=mj(t.ref,g),v=OI.useRef();return OI.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),OI.useEffect((function(){if(u){var e=uj(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),OI.createElement(OI.Fragment,null,OI.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),OI.cloneElement(t,{ref:y}),OI.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var pZ={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},mZ=OI.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=LL(e,["invisible","open"]);return i?OI.createElement("div",wL({"aria-hidden":!0,ref:t},o,{style:wL({},pZ.root,r?pZ.invisible:{},o.style)})):null}));var gZ=new fZ,yZ=OI.forwardRef((function(e,t){var n=aF(),r=uP({name:"MuiModal",props:wL({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?mZ:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,S=r.disableRestoreFocus,w=void 0!==S&&S,M=r.disableScrollLock,k=void 0!==M&&M,E=r.hideBackdrop,C=void 0!==E&&E,O=r.keepMounted,N=void 0!==O&&O,T=r.manager,A=void 0===T?gZ:T,R=r.onBackdropClick,q=r.onClose,D=r.onEscapeKeyDown,I=r.onRendered,L=r.open,P=LL(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),_=OI.useState(!0),z=_[0],F=_[1],j=OI.useRef({}),$=OI.useRef(null),B=OI.useRef(null),H=mj(B,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return uj($.current)},W=function(){return j.current.modalRef=B.current,j.current.mountNode=$.current,j.current},Y=function(){A.mount(W(),{disableScrollLock:k}),B.current.scrollTop=0},G=pj((function(){var e=function(e){return e="function"==typeof e?e():e,bJ.findDOMNode(e)}(u)||U().body;A.add(W(),e),B.current&&Y()})),K=OI.useCallback((function(){return A.isTopModal(W())}),[A]),X=pj((function(e){$.current=e,e&&(I&&I(),L&&K()?Y():sZ(B.current,!0))})),J=OI.useCallback((function(){A.remove(W())}),[A]);if(OI.useEffect((function(){return function(){J()}}),[J]),OI.useEffect((function(){L?G():V&&c||J()}),[L,J,V,c,G]),!N&&!L&&(!V||z))return null;var Z=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:oP}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),V&&(Q.onEnter=sj((function(){F(!1)}),s.props.onEnter),Q.onExited=sj((function(){F(!0),c&&J()}),s.props.onExited)),OI.createElement(aZ,{ref:X,container:u,disablePortal:x},OI.createElement("div",wL({ref:H,onKeyDown:function(e){"Escape"===e.key&&K()&&(D&&D(e),v||(e.stopPropagation(),q&&q(e,"escapeKeyDown")))},role:"presentation"},P,{style:wL({},Z.root,!L&&z?Z.hidden:{},P.style)}),C?null:OI.createElement(o,wL({open:L,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!p&&q&&q(e,"backdropClick"))}},a)),OI.createElement(hZ,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:w,getDoc:U,isEnabled:K,open:L},OI.cloneElement(s,Q))))})),vZ=OI.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=LL(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return OI.createElement(s,wL({className:cj(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),bZ=oj((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:DL(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(vZ);function xZ(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var SZ={entering:{opacity:1,transform:xZ(1)},entered:{opacity:1,transform:"none"}},wZ=OI.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?zJ:m,y=LL(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=OI.useRef(),b=OI.useRef(),x=aF()||rj,S=x.unstable_strictMode&&!i,w=OI.useRef(null),M=mj(n.ref,t),k=mj(S?w:void 0,M),E=function(e){return function(t,n){if(e){var r=QL(S?[w.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},C=E(l),O=E((function(e,t){!function(e){e.scrollTop}(e);var n,r=UJ({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),N=E(s),T=E(d),A=E((function(e){var t,n=UJ({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=xZ(.75),c&&c(e)})),R=E(u);return OI.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),OI.createElement(g,wL({appear:!0,in:o,nodeRef:S?w:void 0,onEnter:O,onEntered:N,onEntering:C,onExit:A,onExited:R,onExiting:T,addEndListener:function(e,t){var n=S?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return OI.cloneElement(n,wL({style:wL({opacity:0,transform:xZ(.75),visibility:"exited"!==e||o?void 0:"hidden"},SZ[e],f,n.props.style),ref:k},t))}))}));wZ.muiSupportAuto=!0;var MZ=OI.createContext({}),kZ=OI.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=LL(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=OI.useMemo((function(){return{dense:l}}),[l]);return OI.createElement(MZ.Provider,{value:h},OI.createElement(a,wL({className:cj(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),EZ=oj({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(kZ),CZ="undefined"==typeof window?OI.useEffect:OI.useLayoutEffect,OZ=OI.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=LL(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,S=e.disableGutters,w=void 0!==S&&S,M=e.divider,k=void 0!==M&&M,E=e.focusVisibleClassName,C=e.selected,O=void 0!==C&&C,N=LL(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=OI.useContext(MZ),A={dense:v||T.dense||!1,alignItems:r},R=OI.useRef(null);CZ((function(){o&&R.current&&R.current.focus()}),[o]);var q,D,I=OI.Children.toArray(l),L=I.length&&(q=I[I.length-1],D=["ListItemSecondaryAction"],OI.isValidElement(q)&&-1!==D.indexOf(q.type.muiName)),P=OI.useCallback((function(e){R.current=bJ.findDOMNode(e)}),[]),_=mj(P,t),z=wL({className:cj(c.root,u,A.dense&&c.dense,!w&&c.gutters,k&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,L&&c.secondaryAction,O&&c.selected),disabled:x},N),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=cj(c.focusVisible,E),F=QJ),L?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),OI.createElement(MZ.Provider,{value:A},OI.createElement(h,wL({className:cj(c.container,m),ref:_},g),OI.createElement(F,z,I),I.pop()))):OI.createElement(MZ.Provider,{value:A},OI.createElement(F,wL({ref:_},z),I))})),NZ=oj((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"})(OZ),TZ=OI.forwardRef((function(e,t){var n=e.classes,r=e.className,i=LL(e,["classes","className"]),o=OI.useContext(MZ);return OI.createElement("div",wL({className:cj(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),AZ=oj((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(TZ),RZ=OI.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=LL(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=OI.useContext(MZ).dense,m=null!=c?c:n;null==m||m.type===nZ||a||(m=OI.createElement(nZ,wL({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===nZ||a||(g=OI.createElement(nZ,wL({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),OI.createElement("div",wL({className:cj(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),qZ=oj({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(RZ);function DZ(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function IZ(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function LZ(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function PZ(e){return"function"==typeof e?e():e}var _Z=OI.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,S=e.onExit,w=e.onExited,M=e.onExiting,k=e.open,E=e.PaperProps,C=void 0===E?{}:E,O=e.transformOrigin,N=void 0===O?{vertical:"top",horizontal:"left"}:O,T=e.TransitionComponent,A=void 0===T?wZ:T,R=e.transitionDuration,q=void 0===R?"auto":R,D=e.TransitionProps,I=void 0===D?{}:D,L=LL(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"]),P=OI.useRef(),_=OI.useCallback((function(e){if("anchorPosition"===l)return a;var t=PZ(r),n=(t&&1===t.nodeType?t:uj(P.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+DZ(n,i),left:n.left+IZ(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=OI.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=OI.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:DZ(e,N.vertical)+t,horizontal:IZ(e,N.horizontal)}}),[N.horizontal,N.vertical]),j=OI.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:LZ(i)};var o=_(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=dj(PZ(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:LZ(i)}}),[r,l,_,z,F,y]),$=OI.useCallback((function(){var e=P.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),B=OI.useCallback((function(e){P.current=bJ.findDOMNode(e)}),[]);OI.useEffect((function(){k&&$()})),OI.useImperativeHandle(n,(function(){return k?{updatePosition:function(){$()}}:null}),[k,$]),OI.useEffect((function(){if(k){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,$]);var H=q;"auto"!==q||A.muiSupportAuto||(H=void 0);var V=f||(r?uj(PZ(r)).body:void 0);return OI.createElement(yZ,wL({container:V,open:k,ref:t,BackdropProps:{invisible:!0},className:cj(u.root,d)},L),OI.createElement(A,wL({appear:!0,in:k,onEnter:v,onEntered:b,onExit:S,onExited:w,onExiting:M,timeout:H},I,{onEntering:sj((function(e,t){x&&x(e,t),$()}),I.onEntering)}),OI.createElement(YJ,wL({elevation:p,ref:B},C,{className:cj(u.paper,C.className)}),c)))})),zZ=oj({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(_Z);function FZ(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function jZ({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:FZ(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return NI.createElement("i",{style:i},NI.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},NI.createElement("path",{d:e})))}const $Z="alternative-menu-item",BZ=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>mF((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return NI.createElement(NZ,JI({className:`${i.root} ${n}`},r))},HZ=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${$Z}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function VZ({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=_.detectTextDirection(e);return NI.createElement(BZ,{nested:r,role:"menuitem",button:!0,onClick:n,className:$Z,onKeyDown:HZ,dir:a,autoFocus:t},NI.createElement(qZ,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),NI.createElement(AZ,{style:{minWidth:16}},NI.createElement(jZ,{d:t?II:""})),i&&NI.createElement(AZ,{style:{minWidth:16}},NI.createElement(jZ,{d:i.d})))}VZ.propTypes={title:tL.string.isRequired,selected:tL.bool,onClick:tL.func.isRequired,nested:tL.bool,icon:tL.shape({d:tL.string.isRequired}),bold:tL.bool,dir:tL.string.isRequired},VZ.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},BZ.propTypes={nested:tL.bool,className:tL.string},BZ.defaultProps={nested:!1,className:$Z};const UZ={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function WZ({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map(((t,i)=>{var s;return NI.createElement(NI.Fragment,{key:t.id},NI.createElement(VZ,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&NI.createElement(EZ,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>NI.createElement(VZ,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&NI.createElement(bZ,{key:`divider-${t.id}`}))}));return NI.createElement(zZ,JI({anchorEl:t,open:s,onClose:a},UZ[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),NI.createElement(EZ,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}WZ.propTypes={chartId:tL.string.isRequired,alignTo:tL.any,currentId:tL.string.isRequired,dir:tL.string.isRequired,dock:tL.string.isRequired,list:tL.array,onClose:tL.func.isRequired,show:tL.bool.isRequired,instruction:tL.string.isRequired},WZ.defaultProps={list:[],alignTo:null};const YZ="title-button",GZ="active-title-button",KZ=ij((({children:e,...t})=>NI.createElement(iZ,JI({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),XZ=ij(iZ)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class JZ extends NI.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=NI.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions: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))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${YZ}`);t&&(t.focus(),t.classList.add(GZ))}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${YZ}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${GZ}`);e&&(e.classList.remove(GZ),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>NI.createElement(KZ,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},NI.createElement("span",{style:d},e),NI.createElement(jZ,JI({},PI,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=_.detectTextDirection(t.text),S=NI.createElement(KZ,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${YZ} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&NI.createElement(jZ,JI({},DI,{size:"small",title:r.get("Tooltip.selections.locked")})),NI.createElement("span",{style:d,dir:x},t.text),n&&m&&NI.createElement(jZ,JI({},LI,{size:"small",style:{margin:"0 8px"}})));return NI.createElement(NI.Fragment,null,t.icon&&t.icon.onClick&&NI.createElement(XZ,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},NI.createElement(jZ,JI({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&NI.createElement(jZ,JI({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,NI.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},S),n&&m&&NI.createElement(WZ,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function ZZ(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function QZ(e){function t(e){return!e.isDimension&&M.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=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}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],S=r||i[a?"qDimensionInfo":"qMeasureInfo"],w=a?YI:KI,k=a?GI:XI,E=Boolean(l&&l.colorSupport&&l.modifiers),C=E&&((O=this.settings.settings).isDimension&&M.getValue(O,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var O;const N=S.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=k(t,o,l,e),v=r===S.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,M=E||b?w({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:ZZ(g),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:E}):void 0;return NI.createElement(NI.Fragment,{key:t.cId},NI.createElement(JZ,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:M,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:C,supportConditional:m}),!v&&NI.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return NI.createElement("div",{style:v,dir:y},N)}}}JZ.propTypes={chartId:tL.string.isRequired,disabled:tL.bool.isRequired,padding:tL.string,minWidth:tL.string,titleData:tL.shape({breadcrumbs:tL.arrayOf(tL.string).isRequired,icon:tL.shape({path:tL.shape({d:tL.string.isRequired}),tooltip:tL.string.isRequired,onClick:tL.func}),index:tL.number.isRequired,locked:tL.bool.isRequired,text:tL.string.isRequired,popoverText:tL.string.isRequired,drillUp:tL.func,id:tL.string.isRequired}).isRequired,popover:tL.shape({dir:tL.string.isRequired,dock:tL.string.isRequired,getPopoverOptions:tL.func.isRequired}),translator:tL.shape({get:tL.func.isRequired}).isRequired,selections:tL.shape({isActive:tL.func,addListener:tL.func,removeListener:tL.func}),style:tL.shape({fontSize:tL.string,color:tL.string,fontFamily:tL.string}).isRequired,isDimension:tL.bool.isRequired,hasAlternative:tL.bool.isRequired,supportConditional:tL.bool.isRequired,showGroupDimOptions:tL.bool.isRequired},JZ.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const eQ=aP({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 tQ=cP({productionPrefix:"qabb0",disableGlobal:!0,seed:""});function nQ(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",xJ.render(function(e,t){return NI.createElement(dF,{generateClassName:t},NI.createElement(nj,{theme:eQ},e))}(e,tQ),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&xJ.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(xJ.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function rQ(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:rQ(i,t,n)},i}function iQ(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),rQ(i,a,l,e.invert)}))}const oQ={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(p({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function aQ({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=p({},{major:l,majorEnd:c},r.minor.items[e]);i.forEach((t=>{d[t]=r[t].items[e]}));const f=o?n:t,h=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),m=(u-h)/2,g=m+d.major+h/2;return{item:d,boxCenter:g,boxWidth:h,boxPadding:m,rendWidth:t,rendHeight:n}}function sQ({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=p(!0,{},n||{},r||{}),c={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},u=i.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:p(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:p(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{};let h;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:p(!0,{},{start:{scale:f.scale,ref:"start"},end:{scale:f.scale,ref:"end"},min:{scale:f.scale,ref:"min"},max:{scale:f.scale,ref:"max"},med:{scale:f.scale,ref:"med"}},f)})};for(let n=0,r=e.length;n<r;n++)h=e[n],m[h]=s.resolve({data:t,defaults:l[h],settings:i[h],scaled:c});return m}const lQ=["oob"];const cQ={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=sQ({keys:lQ,data:i,defaultSettings:{oob:oQ.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=aQ}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:u,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=c[u].data,g=[];if(d.oob.show){g.push(oQ.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:h,rendHeight:p,flipXY:n,symbol:o}));const e={type:"container",data:m,collider:{type:"bounds"},children:g};l.push(e)}}return l}({width:e,height:t,flipXY:r,resolved:l,keys:lQ,symbol:s,dockValue:n});return d}},uQ={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},dQ=["hat"];function fQ(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 hQ({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,c=i,u=e.hat.alignment||0;o&&(a="y",s="x",l=i,c=r,u=1-u);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const h=p({},e.hat,{type:"path",d:fQ(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[h,p({},e.hat,{type:"path",d:fQ(f)})]}const pQ={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=sQ({keys:dQ,data:r,defaultSettings:uQ,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=aQ}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:f,rendHeight:h}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),p=s[l].data,m=[];c.hat.show&&m.push(...hQ({item:c,boxWidth:u,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const g={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(g)}return a}({width:e,height:t,flipXY:n,resolved:a,keys:dQ});return c}};var mQ="unclassified",gQ="equal-equal",yQ="equal-higher",vQ="equal-lower",bQ="equal-void",xQ="higher-equal",SQ="higher-higher-acute",wQ="higher-higher-obtuse",MQ="higher-lower-negative",kQ="higher-lower-positive",EQ="higher-void",CQ="lower-equal",OQ="lower-higher-negative",NQ="lower-higher-positive",TQ="lower-lower-acute",AQ="lower-lower-obtuse",RQ="lower-void",qQ="void-equal",DQ="void-higher",IQ="void-lower",LQ="void-void";function PQ(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function _Q(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),i=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),o=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((i*i+r*r-o*o)/(2*i*r))*(180/Math.PI)}function zQ({previous:e,current:t,next:n}){const r=e&&e.value,i=t&&t.value,o=n&&n.value;return e||n?e?n?r===i?i===o?gQ:i<o?yQ:vQ:i===o?r>i?xQ:CQ:r>i?i<o?_Q(e,t,n)>90?wQ:SQ:PQ(e,t)>PQ(e,n)?kQ:MQ:i>o?_Q(e,t,n)>90?AQ:TQ:PQ(e,t)>PQ(e,n)?NQ:OQ:r===i?bQ:r>i?EQ:RQ:i===o?qQ:i<o?DQ:IQ:LQ}var FQ={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"};function jQ({bounds:e,size:t}){const{x:n,y:r,width:i,height:o}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+i/2)>=0&&Math.ceil(n+i/2)<=t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height:Math.floor(n+i)>0&&Math.ceil(n)<t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height}function $Q({config:e,node:t,line:n,groupIndex:r,extract:i,style:o,measureText:a,size:s,horizontal:l,rtl:c,meta:u,showLabel:d}){var f,h;const p=i.label(t.data);if("string"!=typeof p&&"number"!=typeof p||""===p)return!1;const m=(()=>{var e,n;const r=a({fontFamily:o.fontFamily,fontSize:o.fontSize,text:p});if(null===(e=t.data)||void 0===e||null===(e=e.value)||void 0===e||!e.maxLabelWidth||r.width<=(null===(n=t.data)||void 0===n||null===(n=n.value)||void 0===n?void 0:n.maxLabelWidth))return r;const i=`${o.fontSize} ${o.fontFamily}`,s=Pi.tokenize(p,i,"…",3,t.data.value.maxLabelWidth);return r.lines=s.map((e=>({text:e,size:a({fontFamily:o.fontFamily,fontSize:o.fontSize,text:e})}))),r.width=Math.max(...r.lines.map((e=>e.size.width))),r.height*=s.length,r})(),{localBounds:g}=t,{"stroke-width":y}=t.attrs,v=i.pointValue(t.data),b=null!==(f=t.data)&&void 0!==f&&null!==(f=f.value)&&void 0!==f&&f.labelBackgroundColor?{X:2,Y:2}:{X:1,Y:0},x={x:g.x+g.width/2,y:g.y+g.height/2,width:m.width+2*b.X,height:m.height+2*b.Y},S=`${x.x}-${x.y}`,w=!l&&!c,M=l?s.height:s.width,k=(l?x.y:x.x)/M,E=(w?1-k:k)<=(M<=200?.25:.1),C=null===(h=t.data)||void 0===h||null===(h=h.value)||void 0===h||null===(h=h.label)||void 0===h?void 0:h.placement,O=Object.keys(FQ).map((e=>FQ[e])),N={key:S,config:e,node:t,line:n,group:r,value:v,labelMeasurements:m,bounds:x,inside:jQ({bounds:g,size:s}),border:y?y/2:0,classification:mQ,setClassification(e){N.classification=e},preferences:[],setPreferences(e){N.preferences.push(...e)},fixedPlacement:O.includes(C)?C:void 0,placement:void 0,setPlacement(e){N.placement=e},duplicate:!1,setDuplicate(){N.duplicate=!0},extreme:u.getExtreme(S),elite:E,show:e.labels&&d(t)};return N}function BQ({configs:e,nodes:t,extract:n,style:r,measureText:i,size:o,horizontal:a,rtl:s,showLabel:l}){const c=function({nodes:e}){const t={top:[],right:[],bottom:[],left:[]},n=e.map((e=>{const{localBounds:t}=e,n={x:t.x+t.width/2,y:t.y+t.height/2};return{key:`${n.x}-${n.y}`,center:n}})),r=n.reduce(((e,t)=>((!e.top||t.center.y<e.top.center.y)&&(e.top=t),(!e.right||t.center.x>e.right.center.x)&&(e.right=t),(!e.bottom||t.center.y>e.bottom.center.y)&&(e.bottom=t),(!e.left||t.center.x<e.left.center.x)&&(e.left=t),e)),{});return t.top=n.filter((e=>e.center.y===r.top.center.y)).map((e=>e.key)),t.right=n.filter((e=>e.center.x===r.right.center.x)).map((e=>e.key)),t.bottom=n.filter((e=>e.center.y===r.bottom.center.y)).map((e=>e.key)),t.left=n.filter((e=>e.center.x===r.left.center.x)).map((e=>e.key)),{getExtrema:e=>({top:-1!==t.top.indexOf(e),right:-1!==t.right.indexOf(e),bottom:-1!==t.bottom.indexOf(e),left:-1!==t.left.indexOf(e)}),getExtreme:e=>{const{top:n,right:r,bottom:i,left:o}=t;return[n,r,i,o].some((t=>-1!==t.indexOf(e)))}}}({nodes:t}),u=function({nodes:e,by:t,lineId:n}){const r=e.reduce(((e,r,i)=>{const o=t(r.data);return e[o]||(e[o]={items:[],index:i}),e[o].items.push({node:r,line:n(r)}),e}),{});return Object.keys(r).map((e=>r[e])).sort(((e,t)=>e.index-t.index)).map((e=>e.items))}({nodes:t,by:n.majorValue,lineId:n.lineId}).map(((t,u)=>{const d=t.map((t=>({line:t.line,item:$Q({config:e.get(t.node.key),node:t.node,line:t.line,groupIndex:u,extract:n,style:r,measureText:i,size:o,horizontal:a,rtl:s,meta:c,showLabel:l})}))).filter((e=>e.item));return d.reduce(((e,t)=>(e[t.line]=t.item,e)),{})}));return u.filter((e=>Object.keys(e).length))}var HQ={[gQ]:[FQ.TOP,FQ.BOTTOM],[yQ]:[FQ.BOTTOM,FQ.BOTTOM_RIGHT],[vQ]:[FQ.TOP,FQ.TOP_RIGHT],[bQ]:[FQ.TOP,FQ.BOTTOM],[xQ]:[FQ.LEFT,FQ.BOTTOM_LEFT,FQ.TOP,FQ.TOP_RIGHT],[SQ]:[FQ.BOTTOM,FQ.BOTTOM_LEFT,FQ.LEFT,FQ.TOP_RIGHT],[wQ]:[FQ.BOTTOM,FQ.TOP],[MQ]:[FQ.TOP,FQ.TOP_RIGHT,FQ.RIGHT],[kQ]:[FQ.BOTTOM,FQ.BOTTOM_LEFT,FQ.LEFT],[EQ]:[FQ.TOP],[CQ]:[FQ.TOP],[OQ]:[FQ.TOP,FQ.TOP_LEFT],[NQ]:[FQ.BOTTOM_RIGHT],[TQ]:[FQ.TOP,FQ.TOP_LEFT,FQ.LEFT,FQ.TOP_RIGHT,FQ.RIGHT],[AQ]:[FQ.TOP,FQ.BOTTOM],[RQ]:[FQ.TOP],[qQ]:[FQ.TOP],[DQ]:[FQ.TOP,FQ.BOTTOM],[IQ]:[FQ.TOP,FQ.BOTTOM,FQ.LEFT],[LQ]:[FQ.TOP],[mQ]:[FQ.TOP,FQ.BOTTOM,FQ.RIGHT,FQ.LEFT,FQ.TOP_RIGHT,FQ.BOTTOM_RIGHT,FQ.BOTTOM_LEFT,FQ.TOP_LEFT]};function VQ({configs:e,nodes:t,extract:n,style:r,measureText:i,size:o,horizontal:a,rtl:s,showLabel:l}){const c=BQ({configs:e,nodes:t,extract:n,style:r,measureText:i,size:o,horizontal:a,rtl:s,showLabel:l}),u=[...c.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[d]=u,f=function({groups:e,threshold:t}){const n=e.map((e=>Object.keys(e).map((t=>e[t])))),r={};for(let e=0;e<=n.length;e++){const t=n[e];if(t)for(let e=0;e<t.length;e++){const n=t[e];if(n.config.lines){const{line:e}=n;r[e]||(r[e]=[]),r[e].push(n.bounds)}}}const i=Object.keys(r).map((e=>r[e])),o=[];for(let e=0;e<i.length;e++)for(let n=0;n<i[e].length-1;n++){const r=i[e][n],a=i[e][n+1],s={x1:r.x,y1:r.y,x2:a.x,y2:a.y},l=s.x1-s.x2,c=s.y1-s.y2;Math.sqrt(l*l+c*c)>t&&o.push(s)}return o}({groups:c,threshold:null==d?void 0:d.node.localBounds.height}),h={getItems:()=>u,getLines:()=>f};return function({groups:e}){for(let t=0;t<e.length;t++){const n=Object.keys(e[t]).map((n=>e[t][n]));for(let r=0;r<n.length;r++){const i=n[r];if(!i.config.fixed){const n=zQ({previous:e[t-1]&&e[t-1][i.line],current:i,next:e[t+1]&&e[t+1][i.line]});i.setClassification(n)}}}}({groups:c}),h.getItems().forEach((e=>{e.setPreferences(HQ[e.classification])})),h}function UQ({item:e,placement:t,size:n}){return t.x>=0-n.edgeBleed.left&&t.x<=n.width-e.bounds.width+n.edgeBleed.right&&t.y>=0-n.edgeBleed.top&&t.y<=n.height-e.bounds.height}function WQ({line1:e,line2:t}){const n=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(0===n)return!1;const r=((t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1))/n,i=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&i>=0&&i<=1}function YQ({candidate:e,lines:t,rects:n}){const r=n.some((t=>function({rect1:e,rect2:t}){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)}({rect1:t,rect2:e})));return!!r||t.some((t=>function({line:e,rect:t}){const n={x:t.x,y:t.y},r={x:t.x+t.width,y:t.y},i={x:t.x+t.width,y:t.y+t.height},o={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:i.x,y2:i.y},s={x1:i.x,y1:i.y,x2:o.x,y2:o.y},l={x1:o.x,y1:o.y,x2:n.x,y2:n.y};return WQ({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||WQ({line1:e,line2:a})||WQ({line1:e,line2:s})||WQ({line1:e,line2:l})}({line:t,rect:e})))}const GQ={x:0,width:0,y:0,height:0};const KQ=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),XQ=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),JQ=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),ZQ=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),QQ=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),e0=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),t0=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),n0=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var r0=2.5,i0=4;const o0=[FQ.TOP,FQ.TOP_LEFT,FQ.TOP_RIGHT],a0=[FQ.BOTTOM,FQ.BOTTOM_LEFT,FQ.BOTTOM_RIGHT];function s0({position:e}){const t={x:r0,width:-5,y:0,height:0},n=o0.indexOf(e)>-1,r=a0.indexOf(e)>-1;return n&&(t.y=i0,t.height=-4),r&&(t.height=-4),t}function l0({cx:e,cy:t,r:n,degrees:r}){const i=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(i)),y:Math.round(t+n*-Math.cos(i))}}function c0({coordinates:e,degrees:t,item:n}){const r={x:e.x,y:e.y};return t<=90?r.y-=n.bounds.height:t>180&&t<=270?r.x-=n.bounds.width:t>270&&(r.y-=n.bounds.height,r.x-=n.bounds.width),r}function u0({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),i=e.bounds.x,o=e.bounds.y;for(let a=0;a<r.length;a++){const s=r[a];for(let r=40;r<=180;r+=15){const a=c0({coordinates:l0({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}for(let r=320;r>180;r-=15){const a=c0({coordinates:l0({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const d0=void 0;function f0({item:e,validator:t,force:n=!1}){const r={[FQ.TOP]:KQ,[FQ.TOP_RIGHT]:XQ,[FQ.RIGHT]:JQ,[FQ.BOTTOM_RIGHT]:ZQ,[FQ.BOTTOM]:QQ,[FQ.BOTTOM_LEFT]:e0,[FQ.LEFT]:t0,[FQ.TOP_LEFT]:n0};if(e.fixedPlacement)return r[e.fixedPlacement]({item:e});const i=[...e.preferences,...Object.keys(FQ).map((e=>FQ[e])).filter((t=>-1===e.preferences.indexOf(t)))],o=[];for(let a=0;a<i.length;a++){const s=i[a],l=r[s]({item:e}),c=s0({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&o.push(l),u.valid)return l}const a=()=>u0({item:e,validator:t,force:n});if(n){const e=a();return e||(o[0]||d0)}return(e.extreme||e.elite)&&a()||d0}function h0({model:e,size:t,all:n}){const r={},i=e.getItems(),o=[...i.map((e=>({x:e.node.localBounds.x-e.border+1,y:e.node.localBounds.y-e.border+1,height:e.node.localBounds.height+2*e.border-2,width:e.node.localBounds.width+2*e.border-2})))],a=[],s=e.getLines();i.forEach((e=>{const{data:i}=e.node;if(!e.show||!e.inside||i.null&&i.null.value||i.interpolated&&i.interpolated.value)return;const{key:l}=e;if(r[l])return void e.setDuplicate();r[l]=!0;const c=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=GQ,ignoreLines:a=!1}){const s={inside:UQ({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=YQ({candidate:{x:i.x+o.x,y:i.y+o.y,width:r.bounds.width+o.width,height:r.bounds.height+o.height},lines:a?[]:t,rects:n}),s.valid=!s.collides,s):s}}({size:t,lines:s,placements:o}),u=f0({item:e,validator:c});u?(u.height=e.bounds.height,u.width=e.bounds.width,o.push(u),e.setPlacement(u)):n&&a.push({item:e,validator:c})})),a.forEach((e=>{const{item:t,validator:n}=e,r=f0({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,o.push(r),t.setPlacement(r))}))}const p0=3,m0=2;var g0={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},lineId:()=>{},enabled:()=>!0,configs:[],insideStrategy:"edge",labelSpace:{use:()=>!1,size:10}},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},{orientation:t,rtl:n,labelSpace:r}=this.settings.settings,{use:i,size:o}=r;if(i()){const r="horizontal"===t;e.edgeBleed.top=r?o:0,e.edgeBleed[n?"left":"right"]=r?0:o}return e},render(){const{settings:e}=this.settings,{enabled:t}=e;if(!t())return[];const n=function({configs:e=[]}={}){const t={};return e.forEach((e=>{const{key:n}=e;t[n]={labels:void 0===e.labels||e.labels,lines:void 0===e.lines||e.lines,fixed:void 0!==e.fixed&&e.fixed}})),{meta:{allKeys:e.map((e=>e.key))},get:e=>t[e],getFirstLabelKey:()=>{var t;return null===(t=e.find((e=>e.labels)))||void 0===t?void 0:t.key}}}({configs:e.configs}),r=n.getFirstLabelKey();if(!r)return[];if(!this.chart.component(r))return[];const i=this.chart.findShapes("circle, path, rect").filter((e=>n.meta.allKeys.includes(e.key)));if(!i.length)return[];const o="horizontal"===e.orientation,a=o?"x":"y";i.sort(((e,t)=>e.localBounds[a]-t.localBounds[a]));const s={label:e.label,pointValue:e.pointValue,majorValue:e.majorValue,lineId:e.lineId},{height:l,width:c,edgeBleed:u}=this.rect,d={height:l,width:c,edgeBleed:u,insideStrategy:e.insideStrategy},{style:f}=this,h=VQ({configs:n,nodes:i,extract:s,style:f,measureText:this.renderer.measureText,size:d,horizontal:o,rtl:e.rtl,showLabel:e.showLabel});!function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:h}),h0({model:h,size:d,all:e.all});const p=h.getItems(),m=[];p.filter((e=>e.placement)).forEach((e=>{e.labelMeasurements.lines?e.labelMeasurements.lines.forEach(((t,n)=>{m.push({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+(n+.5)*t.size.height,fontSize:f.fontSize,fontFamily:f.fontFamily,fill:f.fill,text:t.text,data:e.node.data.value,baseline:"central",anchor:"middle"})})):m.push({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2,fontSize:f.fontSize,fontFamily:f.fontFamily,fill:f.fill,text:s.label(e.node.data),data:e.node.data.value,baseline:"central",anchor:"middle"})}));const g=p.filter((e=>{var t;return e.placement&&(null===(t=e.node.data.value)||void 0===t?void 0:t.labelBackgroundColor)})).map((e=>{var t;return(({label:e})=>{const{borderRadius:t=p0,padding:n={}}=e,{top:r=m0,bottom:i=m0,left:o=m0,right:a=m0}=n;return{type:"rect",x:e.x-e.width/2-o,y:e.y-e.height/2-r,rx:t,ry:t,fill:e.background,width:e.width+(o+a),height:e.height+(r+i)}})({label:{x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2,width:e.placement.width,height:e.labelMeasurements.height,background:null===(t=e.node.data.value)||void 0===t?void 0:t.labelBackgroundColor}})}));return[...g,...m]}},y0={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};const v0={black:"#000",white:"#fff"},b0="#e57373",x0="#ef5350",S0="#f44336",w0="#d32f2f",M0="#c62828",k0="#f3e5f5",E0="#ce93d8",C0="#ba68c8",O0="#ab47bc",N0="#9c27b0",T0="#7b1fa2",A0="#e3f2fd",R0="#90caf9",q0="#42a5f5",D0="#1976d2",I0="#1565c0",L0="#4fc3f7",P0="#29b6f6",_0="#03a9f4",z0="#0288d1",F0="#01579b",j0="#81c784",$0="#66bb6a",B0="#4caf50",H0="#388e3c",V0="#2e7d32",U0="#1b5e20",W0="#ffb74d",Y0="#ffa726",G0="#ff9800",K0="#f57c00",X0="#e65100",J0={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Z0(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Q0=Object.freeze({__proto__:null,default:Z0}),e1="$$material";var t1=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),n1="-ms-",r1="-moz-",i1="-webkit-",o1="comm",a1="rule",s1="decl",l1="@keyframes",c1=Math.abs,u1=String.fromCharCode,d1=Object.assign;function f1(e){return e.trim()}function h1(e,t,n){return e.replace(t,n)}function p1(e,t){return e.indexOf(t)}function m1(e,t){return 0|e.charCodeAt(t)}function g1(e,t,n){return e.slice(t,n)}function y1(e){return e.length}function v1(e){return e.length}function b1(e,t){return t.push(e),e}var x1=1,S1=1,w1=0,M1=0,k1=0,E1="";function C1(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:x1,column:S1,length:a,return:""}}function O1(e,t){return d1(C1("",null,null,"",null,null,0),e,{length:-e.length},t)}function N1(){return k1=M1>0?m1(E1,--M1):0,S1--,10===k1&&(S1=1,x1--),k1}function T1(){return k1=M1<w1?m1(E1,M1++):0,S1++,10===k1&&(S1=1,x1++),k1}function A1(){return m1(E1,M1)}function R1(){return M1}function q1(e,t){return g1(E1,e,t)}function D1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function I1(e){return x1=S1=1,w1=y1(E1=e),M1=0,[]}function L1(e){return E1="",e}function P1(e){return f1(q1(M1-1,F1(91===e?e+2:40===e?e+1:e)))}function _1(e){for(;(k1=A1())&&k1<33;)T1();return D1(e)>2||D1(k1)>3?"":" "}function z1(e,t){for(;--t&&T1()&&!(k1<48||k1>102||k1>57&&k1<65||k1>70&&k1<97););return q1(e,R1()+(t<6&&32==A1()&&32==T1()))}function F1(e){for(;T1();)switch(k1){case e:return M1;case 34:case 39:34!==e&&39!==e&&F1(k1);break;case 40:41===e&&F1(e);break;case 92:T1()}return M1}function j1(e,t){for(;T1()&&e+k1!==57&&(e+k1!==84||47!==A1()););return"/*"+q1(t,M1-1)+"*"+u1(47===e?e:T1())}function $1(e){for(;!D1(A1());)T1();return q1(e,M1)}function B1(e){return L1(H1("",null,null,null,[""],e=I1(e),0,[0],e))}function H1(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,S=o,w=r,M=b;g;)switch(p=v,v=T1()){case 40:if(108!=p&&58==m1(M,d-1)){-1!=p1(M+=h1(P1(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=P1(v);break;case 9:case 10:case 13:case 32:M+=_1(p);break;case 92:M+=z1(R1()-1,7);continue;case 47:switch(A1()){case 42:case 47:b1(U1(j1(T1(),R1()),t,n),l);break;default:M+="/"}break;case 123*m:s[c++]=y1(M)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(M=h1(M,/\f/g,"")),h>0&&y1(M)-d&&b1(h>32?W1(M+";",r,n,d-1):W1(h1(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(b1(w=V1(M,t,n,c,u,i,s,b,x=[],S=[],d),o),123===v)if(0===u)H1(M,t,w,w,x,o,d,s,S);else switch(99===f&&110===m1(M,3)?100:f){case 100:case 108:case 109:case 115:H1(e,w,w,r&&b1(V1(e,w,w,0,0,i,s,b,i,x=[],d),S),i,S,d,s,r?x:S);break;default:H1(M,w,w,w,[""],S,0,s,S)}}c=u=h=0,m=y=1,b=M="",d=a;break;case 58:d=1+y1(M),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==N1())continue;switch(M+=u1(v),v*m){case 38:y=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(y1(M)-1)*y,y=1;break;case 64:45===A1()&&(M+=P1(T1())),f=A1(),u=d=y1(b=M+=$1(R1())),v++;break;case 45:45===p&&2==y1(M)&&(m=0)}}return o}function V1(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=v1(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=g1(e,d+1,d=c1(m=a[p])),b=e;y<h;++y)(b=f1(m>0?f[y]+" "+v:h1(v,/&\f/g,f[y])))&&(l[g++]=b);return C1(e,t,n,0===i?a1:s,l,c,u)}function U1(e,t,n){return C1(e,t,n,o1,u1(k1),g1(e,2,-2),0)}function W1(e,t,n,r){return C1(e,t,n,s1,g1(e,0,r),g1(e,r+1,-1),r)}function Y1(e,t){for(var n="",r=v1(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function G1(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case s1:return e.return=e.return||e.value;case o1:return"";case l1:return e.return=e.value+"{"+Y1(e.children,r)+"}";case a1:e.value=e.props.join(",")}return y1(n=Y1(e.children,r))?e.return=e.value+"{"+n+"}":""}function K1(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var X1=function(e,t,n){for(var r=0,i=0;r=i,i=A1(),38===r&&12===i&&(t[n]=1),!D1(i);)T1();return q1(e,M1)},J1=function(e,t){return L1(function(e,t){var n=-1,r=44;do{switch(D1(r)){case 0:38===r&&12===A1()&&(t[n]=1),e[n]+=X1(M1-1,t,n);break;case 2:e[n]+=P1(r);break;case 4:if(44===r){e[++n]=58===A1()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=u1(r)}}while(r=T1());return e}(I1(e),t))},Z1=new WeakMap,Q1=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z1.get(n))&&!r){Z1.set(e,!0);for(var i=[],o=J1(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},e2=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function t2(e,t){switch(function(e,t){return 45^m1(e,0)?(((t<<2^m1(e,0))<<2^m1(e,1))<<2^m1(e,2))<<2^m1(e,3):0}(e,t)){case 5103:return i1+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i1+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return i1+e+r1+e+n1+e+e;case 6828:case 4268:return i1+e+n1+e+e;case 6165:return i1+e+n1+"flex-"+e+e;case 5187:return i1+e+h1(e,/(\w+).+(:[^]+)/,i1+"box-$1$2"+n1+"flex-$1$2")+e;case 5443:return i1+e+n1+"flex-item-"+h1(e,/flex-|-self/,"")+e;case 4675:return i1+e+n1+"flex-line-pack"+h1(e,/align-content|flex-|-self/,"")+e;case 5548:return i1+e+n1+h1(e,"shrink","negative")+e;case 5292:return i1+e+n1+h1(e,"basis","preferred-size")+e;case 6060:return i1+"box-"+h1(e,"-grow","")+i1+e+n1+h1(e,"grow","positive")+e;case 4554:return i1+h1(e,/([^-])(transform)/g,"$1"+i1+"$2")+e;case 6187:return h1(h1(h1(e,/(zoom-|grab)/,i1+"$1"),/(image-set)/,i1+"$1"),e,"")+e;case 5495:case 3959:return h1(e,/(image-set\([^]*)/,i1+"$1$`$1");case 4968:return h1(h1(e,/(.+:)(flex-)?(.*)/,i1+"box-pack:$3"+n1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i1+e+e;case 4095:case 3583:case 4068:case 2532:return h1(e,/(.+)-inline(.+)/,i1+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(y1(e)-1-t>6)switch(m1(e,t+1)){case 109:if(45!==m1(e,t+4))break;case 102:return h1(e,/(.+:)(.+)-([^]+)/,"$1"+i1+"$2-$3$1"+r1+(108==m1(e,t+3)?"$3":"$2-$3"))+e;case 115:return~p1(e,"stretch")?t2(h1(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==m1(e,t+1))break;case 6444:switch(m1(e,y1(e)-3-(~p1(e,"!important")&&10))){case 107:return h1(e,":",":"+i1)+e;case 101:return h1(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+i1+(45===m1(e,14)?"inline-":"")+"box$3$1"+i1+"$2$3$1"+n1+"$2box$3")+e}break;case 5936:switch(m1(e,t+11)){case 114:return i1+e+n1+h1(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return i1+e+n1+h1(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return i1+e+n1+h1(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return i1+e+n1+e+e}return e}var n2=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case s1:e.return=t2(e.value,e.length);break;case l1:return Y1([O1(e,{value:h1(e.value,"@","@"+i1)})],r);case a1:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Y1([O1(e,{props:[h1(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Y1([O1(e,{props:[h1(t,/:(plac\w+)/,":"+i1+"input-$1")]}),O1(e,{props:[h1(t,/:(plac\w+)/,":-moz-$1")]}),O1(e,{props:[h1(t,/:(plac\w+)/,n1+"input-$1")]})],r)}return""}))}}],r2=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||n2,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[G1,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=v1(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([Q1,e2].concat(o,u));i=function(e,t,n,r){l=n,function(e){Y1(B1(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new t1({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f};function i2(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var o2=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a2=function(e,t,n){o2(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var s2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},l2=/[A-Z]|^ms/g,c2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u2=function(e){return 45===e.charCodeAt(1)},d2=function(e){return null!=e&&"boolean"!=typeof e},f2=K1((function(e){return u2(e)?e:e.replace(l2,"-$&").toLowerCase()})),h2=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c2,(function(e,t,n){return m2={name:t,styles:n,next:m2},t}))}return 1===s2[e]||u2(e)||"number"!=typeof t||0===t?t:t+"px"};function p2(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return m2={name:i.name,styles:i.styles,next:m2},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)m2={name:a.name,styles:a.styles,next:m2},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=p2(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":d2(s)&&(r+=f2(o)+":"+h2(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=p2(e,t,a);switch(o){case"animation":case"animationName":r+=f2(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)d2(a[c])&&(r+=f2(o)+":"+h2(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=m2,l=n(e);return m2=s,p2(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var m2,g2=/label:\s*([^\s;{]+)\s*(;|$)/g;function y2(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";m2=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=p2(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=p2(n,t,e[a]),r)i+=o[a]}g2.lastIndex=0;for(var s,l="";null!==(s=g2.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:m2}}var v2,b2,x2=!!TI.useInsertionEffect&&TI.useInsertionEffect,S2=x2||function(e){return e()},w2=x2||OI.useLayoutEffect,M2=OI.createContext("undefined"!=typeof HTMLElement?r2({key:"css"}):null),k2=M2.Provider,E2=function(e){return OI.forwardRef((function(t,n){var r=OI.useContext(M2);return e(t,r,n)}))},C2=OI.createContext({}),O2={}.hasOwnProperty,N2="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",T2=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return o2(t,n,r),S2((function(){return a2(t,n,r)})),null},A2=E2((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[N2],o=[r],a="";"string"==typeof e.className?a=i2(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=y2(o,void 0,OI.useContext(C2));a+=t.key+"-"+s.name;var l={};for(var c in e)O2.call(e,c)&&"css"!==c&&c!==N2&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),OI.createElement(OI.Fragment,null,OI.createElement(T2,{cache:t,serialized:s,isStringTag:"string"==typeof i}),OI.createElement(i,l))})),R2=A2,q2=function(e,t){var n=arguments;if(null==t||!O2.call(t,"css"))return OI.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=R2,i[1]=function(e,t){var n={};for(var r in t)O2.call(t,r)&&(n[r]=t[r]);return n[N2]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return OI.createElement.apply(null,i)};v2=q2||(q2={}),b2||(b2=v2.JSX||(v2.JSX={}));var D2=E2((function(e,t){var n=y2([e.styles],void 0,OI.useContext(C2)),r=OI.useRef();return w2((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),w2((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&a2(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function I2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y2(t)}function L2(){var e=I2.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var P2=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_2=K1((function(e){return P2.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),z2=function(e){return"theme"!==e},F2=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?_2:z2},j2=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},$2=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return o2(t,n,r),S2((function(){return a2(t,n,r)})),null},B2=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=j2(t,n,o),l=s||F2(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var h=u.length,p=1;p<h;p++)d.push(u[p],f[p])}var m=E2((function(e,t,n){var r=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=OI.useContext(C2)}"string"==typeof e.className?o=i2(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var p=y2(d.concat(u),t.registered,f);o+=t.key+"-"+p.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?F2(r):l,g={};for(var y in e)c&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=o,n&&(g.ref=n),OI.createElement(OI.Fragment,null,OI.createElement($2,{cache:t,serialized:p,isStringTag:"string"==typeof r}),OI.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,wL({},n,r,{shouldForwardProp:j2(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){B2[e]=B2(e)}));var H2={exports:{}},V2={},U2=OI,W2=Symbol.for("react.element"),Y2=Symbol.for("react.fragment"),G2=Object.prototype.hasOwnProperty,K2=U2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,X2={key:!0,ref:!0,__self:!0,__source:!0};function J2(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)G2.call(t,r)&&!X2.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:W2,type:e,key:o,ref:a,props:i,_owner:K2.current}}V2.Fragment=Y2,V2.jsx=J2,V2.jsxs=J2,H2.exports=V2;var Z2=H2.exports;let Q2;"object"==typeof document&&(Q2=r2({key:"css",prepend:!0}));var e5=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Z2.jsx(D2,{styles:r})}
42
+ */function Mj(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var kj=new Set,Ej={};function Cj(e,t){Oj(e,t),Oj(e+"Capture",t)}function Oj(e,t){for(Ej[e]=t,e=0;e<t.length;e++)kj.add(t[e])}var Nj=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Tj=Object.prototype.hasOwnProperty,Aj=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rj={},qj={};function Dj(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ij={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Ij[e]=new Dj(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Ij[t]=new Dj(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Ij[e]=new Dj(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Ij[e]=new Dj(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Ij[e]=new Dj(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Ij[e]=new Dj(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Ij[e]=new Dj(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Ij[e]=new Dj(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Ij[e]=new Dj(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Lj=/[\-:]([a-z])/g;function Pj(e){return e[1].toUpperCase()}function _j(e,t,n,r){var i=Ij.hasOwnProperty(t)?Ij[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!Tj.call(qj,e)||!Tj.call(Rj,e)&&(Aj.test(e)?qj[e]=!0:(Rj[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Lj,Pj);Ij[t]=new Dj(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Lj,Pj);Ij[t]=new Dj(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Lj,Pj);Ij[t]=new Dj(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Ij[e]=new Dj(e,1,!1,e.toLowerCase(),null,!1,!1)})),Ij.xlinkHref=new Dj("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Ij[e]=new Dj(e,1,!1,e.toLowerCase(),null,!0,!0)}));var zj=Sj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fj=Symbol.for("react.element"),jj=Symbol.for("react.portal"),$j=Symbol.for("react.fragment"),Bj=Symbol.for("react.strict_mode"),Hj=Symbol.for("react.profiler"),Vj=Symbol.for("react.provider"),Uj=Symbol.for("react.context"),Wj=Symbol.for("react.forward_ref"),Yj=Symbol.for("react.suspense"),Gj=Symbol.for("react.suspense_list"),Kj=Symbol.for("react.memo"),Xj=Symbol.for("react.lazy"),Jj=Symbol.for("react.offscreen"),Zj=Symbol.iterator;function Qj(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Zj&&e[Zj]||e["@@iterator"])?e:null}var e$,t$=Object.assign;function n$(e){if(void 0===e$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);e$=t&&t[1]||""}return"\n"+e$+e}var r$=!1;function i$(e,t){if(!e||r$)return"";r$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{r$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?n$(e):""}function o$(e){switch(e.tag){case 5:return n$(e.type);case 16:return n$("Lazy");case 13:return n$("Suspense");case 19:return n$("SuspenseList");case 0:case 2:case 15:return e=i$(e.type,!1);case 11:return e=i$(e.type.render,!1);case 1:return e=i$(e.type,!0);default:return""}}function a$(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case $j:return"Fragment";case jj:return"Portal";case Hj:return"Profiler";case Bj:return"StrictMode";case Yj:return"Suspense";case Gj:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Uj:return(e.displayName||"Context")+".Consumer";case Vj:return(e._context.displayName||"Context")+".Provider";case Wj:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Kj:return null!==(t=e.displayName||null)?t:a$(e.type)||"Memo";case Xj:t=e._payload,e=e._init;try{return a$(e(t))}catch(e){}}return null}function s$(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return a$(t);case 8:return t===Bj?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function l$(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function c$(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function u$(e){e._valueTracker||(e._valueTracker=function(e){var t=c$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function d$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=c$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function f$(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function h$(e,t){var n=t.checked;return t$({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function p$(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=l$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function m$(e,t){null!=(t=t.checked)&&_j(e,"checked",t,!1)}function g$(e,t){m$(e,t);var n=l$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?v$(e,t.type,n):t.hasOwnProperty("defaultValue")&&v$(e,t.type,l$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function y$(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function v$(e,t,n){"number"===t&&f$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var b$=Array.isArray;function x$(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+l$(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function S$(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Mj(91));return t$({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function w$(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Mj(92));if(b$(n)){if(1<n.length)throw Error(Mj(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:l$(n)}}function M$(e,t){var n=l$(t.value),r=l$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function k$(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function E$(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function C$(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?E$(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var O$,N$=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((O$=O$||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=O$.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function T$(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var A$={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},R$=["Webkit","ms","Moz","O"];function q$(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||A$.hasOwnProperty(e)&&A$[e]?(""+t).trim():t+"px"}function D$(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=q$(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(A$).forEach((function(e){R$.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),A$[t]=A$[e]}))}));var I$=t$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function L$(e,t){if(t){if(I$[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Mj(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Mj(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Mj(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Mj(62))}}function P$(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _$=null;function z$(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var F$=null,j$=null,$$=null;function B$(e){if(e=LU(e)){if("function"!=typeof F$)throw Error(Mj(280));var t=e.stateNode;t&&(t=_U(t),F$(e.stateNode,e.type,t))}}function H$(e){j$?$$?$$.push(e):$$=[e]:j$=e}function V$(){if(j$){var e=j$,t=$$;if($$=j$=null,B$(e),t)for(e=0;e<t.length;e++)B$(t[e])}}function U$(e,t){return e(t)}function W$(){}var Y$=!1;function G$(e,t,n){if(Y$)return e(t,n);Y$=!0;try{return U$(e,t,n)}finally{Y$=!1,(null!==j$||null!==$$)&&(W$(),V$())}}function K$(e,t){var n=e.stateNode;if(null===n)return null;var r=_U(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(Mj(231,t,typeof n));return n}var X$=!1;if(Nj)try{var J$={};Object.defineProperty(J$,"passive",{get:function(){X$=!0}}),window.addEventListener("test",J$,J$),window.removeEventListener("test",J$,J$)}catch(CR){X$=!1}function Z$(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Q$=!1,eB=null,tB=!1,nB=null,rB={onError:function(e){Q$=!0,eB=e}};function iB(e,t,n,r,i,o,a,s,l){Q$=!1,eB=null,Z$.apply(rB,arguments)}function oB(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function aB(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function sB(e){if(oB(e)!==e)throw Error(Mj(188))}function lB(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=oB(e)))throw Error(Mj(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return sB(i),e;if(o===r)return sB(i),t;o=o.sibling}throw Error(Mj(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Mj(189))}}if(n.alternate!==r)throw Error(Mj(190))}if(3!==n.tag)throw Error(Mj(188));return n.stateNode.current===n?e:t}(e),null!==e?cB(e):null}function cB(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=cB(e);if(null!==t)return t;e=e.sibling}return null}var uB=wj.unstable_scheduleCallback,dB=wj.unstable_cancelCallback,fB=wj.unstable_shouldYield,hB=wj.unstable_requestPaint,pB=wj.unstable_now,mB=wj.unstable_getCurrentPriorityLevel,gB=wj.unstable_ImmediatePriority,yB=wj.unstable_UserBlockingPriority,vB=wj.unstable_NormalPriority,bB=wj.unstable_LowPriority,xB=wj.unstable_IdlePriority,SB=null,wB=null;var MB=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(kB(e)/EB|0)|0},kB=Math.log,EB=Math.LN2;var CB=64,OB=4194304;function NB(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function TB(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=NB(s):0!==(o&=a)&&(r=NB(o))}else 0!==(a=n&~i)?r=NB(a):0!==o&&(r=NB(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-MB(t)),r|=e[n],t&=~i;return r}function AB(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function RB(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function qB(){var e=CB;return!(4194240&(CB<<=1))&&(CB=64),e}function DB(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function IB(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-MB(t)]=n}function LB(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-MB(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var PB=0;function _B(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var zB,FB,jB,$B,BB,HB=!1,VB=[],UB=null,WB=null,YB=null,GB=new Map,KB=new Map,XB=[],JB="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ZB(e,t){switch(e){case"focusin":case"focusout":UB=null;break;case"dragenter":case"dragleave":WB=null;break;case"mouseover":case"mouseout":YB=null;break;case"pointerover":case"pointerout":GB.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":KB.delete(t.pointerId)}}function QB(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=LU(t))&&FB(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function eH(e){var t=IU(e.target);if(null!==t){var n=oB(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=aB(n)))return e.blockedOn=t,void BB(e.priority,(function(){jB(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function tH(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=fH(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=LU(n))&&FB(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_$=r,n.target.dispatchEvent(r),_$=null,t.shift()}return!0}function nH(e,t,n){tH(e)&&n.delete(t)}function rH(){HB=!1,null!==UB&&tH(UB)&&(UB=null),null!==WB&&tH(WB)&&(WB=null),null!==YB&&tH(YB)&&(YB=null),GB.forEach(nH),KB.forEach(nH)}function iH(e,t){e.blockedOn===t&&(e.blockedOn=null,HB||(HB=!0,wj.unstable_scheduleCallback(wj.unstable_NormalPriority,rH)))}function oH(e){function t(t){return iH(t,e)}if(0<VB.length){iH(VB[0],e);for(var n=1;n<VB.length;n++){var r=VB[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==UB&&iH(UB,e),null!==WB&&iH(WB,e),null!==YB&&iH(YB,e),GB.forEach(t),KB.forEach(t),n=0;n<XB.length;n++)(r=XB[n]).blockedOn===e&&(r.blockedOn=null);for(;0<XB.length&&null===(n=XB[0]).blockedOn;)eH(n),null===n.blockedOn&&XB.shift()}var aH=zj.ReactCurrentBatchConfig,sH=!0;function lH(e,t,n,r){var i=PB,o=aH.transition;aH.transition=null;try{PB=1,uH(e,t,n,r)}finally{PB=i,aH.transition=o}}function cH(e,t,n,r){var i=PB,o=aH.transition;aH.transition=null;try{PB=4,uH(e,t,n,r)}finally{PB=i,aH.transition=o}}function uH(e,t,n,r){if(sH){var i=fH(e,t,n,r);if(null===i)aU(e,t,r,dH,n),ZB(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return UB=QB(UB,e,t,n,r,i),!0;case"dragenter":return WB=QB(WB,e,t,n,r,i),!0;case"mouseover":return YB=QB(YB,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return GB.set(o,QB(GB.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,KB.set(o,QB(KB.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(ZB(e,r),4&t&&-1<JB.indexOf(e)){for(;null!==i;){var o=LU(i);if(null!==o&&zB(o),null===(o=fH(e,t,n,r))&&aU(e,t,r,dH,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else aU(e,t,r,null,n)}}var dH=null;function fH(e,t,n,r){if(dH=null,null!==(e=IU(e=z$(r))))if(null===(t=oB(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=aB(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return dH=e,null}function hH(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(mB()){case gB:return 1;case yB:return 4;case vB:case bB:return 16;case xB:return 536870912;default:return 16}default:return 16}}var pH=null,mH=null,gH=null;function yH(){if(gH)return gH;var e,t,n=mH,r=n.length,i="value"in pH?pH.value:pH.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return gH=i.slice(e,1<t?1-t:void 0)}function vH(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function bH(){return!0}function xH(){return!1}function SH(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?bH:xH,this.isPropagationStopped=xH,this}return t$(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=bH)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=bH)},persist:function(){},isPersistent:bH}),t}var wH,MH,kH,EH={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},CH=SH(EH),OH=t$({},EH,{view:0,detail:0}),NH=SH(OH),TH=t$({},OH,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$H,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==kH&&(kH&&"mousemove"===e.type?(wH=e.screenX-kH.screenX,MH=e.screenY-kH.screenY):MH=wH=0,kH=e),wH)},movementY:function(e){return"movementY"in e?e.movementY:MH}}),AH=SH(TH),RH=SH(t$({},TH,{dataTransfer:0})),qH=SH(t$({},OH,{relatedTarget:0})),DH=SH(t$({},EH,{animationName:0,elapsedTime:0,pseudoElement:0})),IH=t$({},EH,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),LH=SH(IH),PH=SH(t$({},EH,{data:0})),_H={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zH={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},FH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jH(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=FH[e])&&!!t[e]}function $H(){return jH}var BH=t$({},OH,{key:function(e){if(e.key){var t=_H[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=vH(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?zH[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$H,charCode:function(e){return"keypress"===e.type?vH(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?vH(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),HH=SH(BH),VH=SH(t$({},TH,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),UH=SH(t$({},OH,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$H})),WH=SH(t$({},EH,{propertyName:0,elapsedTime:0,pseudoElement:0})),YH=t$({},TH,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),GH=SH(YH),KH=[9,13,27,32],XH=Nj&&"CompositionEvent"in window,JH=null;Nj&&"documentMode"in document&&(JH=document.documentMode);var ZH=Nj&&"TextEvent"in window&&!JH,QH=Nj&&(!XH||JH&&8<JH&&11>=JH),eV=String.fromCharCode(32),tV=!1;function nV(e,t){switch(e){case"keyup":return-1!==KH.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rV(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var iV=!1;var oV={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function aV(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!oV[e.type]:"textarea"===t}function sV(e,t,n,r){H$(r),0<(t=lU(t,"onChange")).length&&(n=new CH("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var lV=null,cV=null;function uV(e){eU(e,0)}function dV(e){if(d$(PU(e)))return e}function fV(e,t){if("change"===e)return t}var hV=!1;if(Nj){var pV;if(Nj){var mV="oninput"in document;if(!mV){var gV=document.createElement("div");gV.setAttribute("oninput","return;"),mV="function"==typeof gV.oninput}pV=mV}else pV=!1;hV=pV&&(!document.documentMode||9<document.documentMode)}function yV(){lV&&(lV.detachEvent("onpropertychange",vV),cV=lV=null)}function vV(e){if("value"===e.propertyName&&dV(cV)){var t=[];sV(t,cV,e,z$(e)),G$(uV,t)}}function bV(e,t,n){"focusin"===e?(yV(),cV=n,(lV=t).attachEvent("onpropertychange",vV)):"focusout"===e&&yV()}function xV(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return dV(cV)}function SV(e,t){if("click"===e)return dV(t)}function wV(e,t){if("input"===e||"change"===e)return dV(t)}var MV="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function kV(e,t){if(MV(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Tj.call(t,i)||!MV(e[i],t[i]))return!1}return!0}function EV(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function CV(e,t){var n,r=EV(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=EV(r)}}function OV(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?OV(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function NV(){for(var e=window,t=f$();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=f$((e=t.contentWindow).document)}return t}function TV(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function AV(e){var t=NV(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&OV(n.ownerDocument.documentElement,n)){if(null!==r&&TV(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=CV(n,o);var a=CV(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var RV=Nj&&"documentMode"in document&&11>=document.documentMode,qV=null,DV=null,IV=null,LV=!1;function PV(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;LV||null==qV||qV!==f$(r)||("selectionStart"in(r=qV)&&TV(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},IV&&kV(IV,r)||(IV=r,0<(r=lU(DV,"onSelect")).length&&(t=new CH("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qV)))}function _V(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zV={animationend:_V("Animation","AnimationEnd"),animationiteration:_V("Animation","AnimationIteration"),animationstart:_V("Animation","AnimationStart"),transitionend:_V("Transition","TransitionEnd")},FV={},jV={};function $V(e){if(FV[e])return FV[e];if(!zV[e])return e;var t,n=zV[e];for(t in n)if(n.hasOwnProperty(t)&&t in jV)return FV[e]=n[t];return e}Nj&&(jV=document.createElement("div").style,"AnimationEvent"in window||(delete zV.animationend.animation,delete zV.animationiteration.animation,delete zV.animationstart.animation),"TransitionEvent"in window||delete zV.transitionend.transition);var BV=$V("animationend"),HV=$V("animationiteration"),VV=$V("animationstart"),UV=$V("transitionend"),WV=new Map,YV="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function GV(e,t){WV.set(e,t),Cj(t,[e])}for(var KV=0;KV<YV.length;KV++){var XV=YV[KV];GV(XV.toLowerCase(),"on"+(XV[0].toUpperCase()+XV.slice(1)))}GV(BV,"onAnimationEnd"),GV(HV,"onAnimationIteration"),GV(VV,"onAnimationStart"),GV("dblclick","onDoubleClick"),GV("focusin","onFocus"),GV("focusout","onBlur"),GV(UV,"onTransitionEnd"),Oj("onMouseEnter",["mouseout","mouseover"]),Oj("onMouseLeave",["mouseout","mouseover"]),Oj("onPointerEnter",["pointerout","pointerover"]),Oj("onPointerLeave",["pointerout","pointerover"]),Cj("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cj("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cj("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cj("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cj("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cj("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var JV="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ZV=new Set("cancel close invalid load scroll toggle".split(" ").concat(JV));function QV(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(iB.apply(this,arguments),Q$){if(!Q$)throw Error(Mj(198));var c=eB;Q$=!1,eB=null,tB||(tB=!0,nB=c)}}(r,t,void 0,e),e.currentTarget=null}function eU(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;QV(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;QV(i,s,c),o=l}}}if(tB)throw e=nB,tB=!1,nB=null,e}function tU(e,t){var n=t[RU];void 0===n&&(n=t[RU]=new Set);var r=e+"__bubble";n.has(r)||(oU(t,e,2,!1),n.add(r))}function nU(e,t,n){var r=0;t&&(r|=4),oU(n,e,r,t)}var rU="_reactListening"+Math.random().toString(36).slice(2);function iU(e){if(!e[rU]){e[rU]=!0,kj.forEach((function(t){"selectionchange"!==t&&(ZV.has(t)||nU(t,!1,e),nU(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[rU]||(t[rU]=!0,nU("selectionchange",!1,t))}}function oU(e,t,n,r){switch(hH(t)){case 1:var i=lH;break;case 4:i=cH;break;default:i=uH}n=i.bind(null,t,n,e),i=void 0,!X$||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function aU(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=IU(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}G$((function(){var r=o,i=z$(n),a=[];e:{var s=WV.get(e);if(void 0!==s){var l=CH,c=e;switch(e){case"keypress":if(0===vH(n))break e;case"keydown":case"keyup":l=HH;break;case"focusin":c="focus",l=qH;break;case"focusout":c="blur",l=qH;break;case"beforeblur":case"afterblur":l=qH;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=AH;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=RH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=UH;break;case BV:case HV:case VV:l=DH;break;case UV:l=WH;break;case"scroll":l=NH;break;case"wheel":l=GH;break;case"copy":case"cut":case"paste":l=LH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=VH}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=K$(p,f))&&u.push(sU(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_$||!(c=n.relatedTarget||n.fromElement)||!IU(c)&&!c[AU])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?IU(c):null)&&(c!==(d=oB(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=AH,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=VH,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:PU(l),h=null==c?s:PU(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,IU(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=cU(h))p++;for(h=0,m=f;m;m=cU(m))h++;for(;0<p-h;)u=cU(u),p--;for(;0<h-p;)f=cU(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=cU(u),f=cU(f)}u=null}else u=null;null!==l&&uU(a,s,l,u,!1),null!==c&&null!==d&&uU(a,d,c,u,!0)}if("select"===(l=(s=r?PU(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=fV;else if(aV(s))if(hV)g=wV;else{g=xV;var y=bV}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=SV);switch(g&&(g=g(e,r))?sV(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&v$(s,"number",s.value)),y=r?PU(r):window,e){case"focusin":(aV(y)||"true"===y.contentEditable)&&(qV=y,DV=r,IV=null);break;case"focusout":IV=DV=qV=null;break;case"mousedown":LV=!0;break;case"contextmenu":case"mouseup":case"dragend":LV=!1,PV(a,n,i);break;case"selectionchange":if(RV)break;case"keydown":case"keyup":PV(a,n,i)}var v;if(XH)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else iV?nV(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(QH&&"ko"!==n.locale&&(iV||"onCompositionStart"!==b?"onCompositionEnd"===b&&iV&&(v=yH()):(mH="value"in(pH=i)?pH.value:pH.textContent,iV=!0)),0<(y=lU(r,b)).length&&(b=new PH(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=rV(n))&&(b.data=v))),(v=ZH?function(e,t){switch(e){case"compositionend":return rV(t);case"keypress":return 32!==t.which?null:(tV=!0,eV);case"textInput":return(e=t.data)===eV&&tV?null:e;default:return null}}(e,n):function(e,t){if(iV)return"compositionend"===e||!XH&&nV(e,t)?(e=yH(),gH=mH=pH=null,iV=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return QH&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=lU(r,"onBeforeInput")).length&&(i=new PH("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}eU(a,t)}))}function sU(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lU(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=K$(e,n))&&r.unshift(sU(e,o,i)),null!=(o=K$(e,t))&&r.push(sU(e,o,i))),e=e.return}return r}function cU(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function uU(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=K$(n,o))&&a.unshift(sU(n,l,s)):i||null!=(l=K$(n,o))&&a.push(sU(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var dU=/\r\n?/g,fU=/\u0000|\uFFFD/g;function hU(e){return("string"==typeof e?e:""+e).replace(dU,"\n").replace(fU,"")}function pU(e,t,n){if(t=hU(t),hU(e)!==t&&n)throw Error(Mj(425))}function mU(){}var gU=null,yU=null;function vU(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bU="function"==typeof setTimeout?setTimeout:void 0,xU="function"==typeof clearTimeout?clearTimeout:void 0,SU="function"==typeof Promise?Promise:void 0,wU="function"==typeof queueMicrotask?queueMicrotask:void 0!==SU?function(e){return SU.resolve(null).then(e).catch(MU)}:bU;function MU(e){setTimeout((function(){throw e}))}function kU(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void oH(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);oH(t)}function EU(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function CU(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var OU=Math.random().toString(36).slice(2),NU="__reactFiber$"+OU,TU="__reactProps$"+OU,AU="__reactContainer$"+OU,RU="__reactEvents$"+OU,qU="__reactListeners$"+OU,DU="__reactHandles$"+OU;function IU(e){var t=e[NU];if(t)return t;for(var n=e.parentNode;n;){if(t=n[AU]||n[NU]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=CU(e);null!==e;){if(n=e[NU])return n;e=CU(e)}return t}n=(e=n).parentNode}return null}function LU(e){return!(e=e[NU]||e[AU])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function PU(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Mj(33))}function _U(e){return e[TU]||null}var zU=[],FU=-1;function jU(e){return{current:e}}function $U(e){0>FU||(e.current=zU[FU],zU[FU]=null,FU--)}function BU(e,t){FU++,zU[FU]=e.current,e.current=t}var HU={},VU=jU(HU),UU=jU(!1),WU=HU;function YU(e,t){var n=e.type.contextTypes;if(!n)return HU;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function GU(e){return null!=(e=e.childContextTypes)}function KU(){$U(UU),$U(VU)}function XU(e,t,n){if(VU.current!==HU)throw Error(Mj(168));BU(VU,t),BU(UU,n)}function JU(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(Mj(108,s$(e)||"Unknown",i));return t$({},n,r)}function ZU(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||HU,WU=VU.current,BU(VU,e),BU(UU,UU.current),!0}function QU(e,t,n){var r=e.stateNode;if(!r)throw Error(Mj(169));n?(e=JU(e,t,WU),r.__reactInternalMemoizedMergedChildContext=e,$U(UU),$U(VU),BU(VU,e)):$U(UU),BU(UU,n)}var eW=null,tW=!1,nW=!1;function rW(e){null===eW?eW=[e]:eW.push(e)}function iW(){if(!nW&&null!==eW){nW=!0;var e=0,t=PB;try{var n=eW;for(PB=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}eW=null,tW=!1}catch(t){throw null!==eW&&(eW=eW.slice(e+1)),uB(gB,iW),t}finally{PB=t,nW=!1}}return null}var oW=[],aW=0,sW=null,lW=0,cW=[],uW=0,dW=null,fW=1,hW="";function pW(e,t){oW[aW++]=lW,oW[aW++]=sW,sW=e,lW=t}function mW(e,t,n){cW[uW++]=fW,cW[uW++]=hW,cW[uW++]=dW,dW=e;var r=fW;e=hW;var i=32-MB(r)-1;r&=~(1<<i),n+=1;var o=32-MB(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,fW=1<<32-MB(t)+i|n<<i|r,hW=o+e}else fW=1<<o|n<<i|r,hW=e}function gW(e){null!==e.return&&(pW(e,1),mW(e,1,0))}function yW(e){for(;e===sW;)sW=oW[--aW],oW[aW]=null,lW=oW[--aW],oW[aW]=null;for(;e===dW;)dW=cW[--uW],cW[uW]=null,hW=cW[--uW],cW[uW]=null,fW=cW[--uW],cW[uW]=null}var vW=null,bW=null,xW=!1,SW=null;function wW(e,t){var n=WX(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function MW(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,vW=e,bW=EU(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,vW=e,bW=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==dW?{id:fW,overflow:hW}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=WX(18,null,null,0)).stateNode=t,n.return=e,e.child=n,vW=e,bW=null,!0);default:return!1}}function kW(e){return!(!(1&e.mode)||128&e.flags)}function EW(e){if(xW){var t=bW;if(t){var n=t;if(!MW(e,t)){if(kW(e))throw Error(Mj(418));t=EU(n.nextSibling);var r=vW;t&&MW(e,t)?wW(r,n):(e.flags=-4097&e.flags|2,xW=!1,vW=e)}}else{if(kW(e))throw Error(Mj(418));e.flags=-4097&e.flags|2,xW=!1,vW=e}}}function CW(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;vW=e}function OW(e){if(e!==vW)return!1;if(!xW)return CW(e),xW=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!vU(e.type,e.memoizedProps)),t&&(t=bW)){if(kW(e))throw NW(),Error(Mj(418));for(;t;)wW(e,t),t=EU(t.nextSibling)}if(CW(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Mj(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){bW=EU(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}bW=null}}else bW=vW?EU(e.stateNode.nextSibling):null;return!0}function NW(){for(var e=bW;e;)e=EU(e.nextSibling)}function TW(){bW=vW=null,xW=!1}function AW(e){null===SW?SW=[e]:SW.push(e)}var RW=zj.ReactCurrentBatchConfig;function qW(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(Mj(309));var r=n.stateNode}if(!r)throw Error(Mj(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(Mj(284));if(!n._owner)throw Error(Mj(290,e))}return e}function DW(e,t){throw e=Object.prototype.toString.call(t),Error(Mj(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function IW(e){return(0,e._init)(e._payload)}function LW(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=GX(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=ZX(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===$j?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===Xj&&IW(o)===t.type)?((r=i(t,n.props)).ref=qW(e,t,n),r.return=e,r):((r=KX(n.type,n.key,n.props,null,e.mode,r)).ref=qW(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=QX(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=XX(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ZX(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Fj:return(n=KX(t.type,t.key,t.props,null,e.mode,n)).ref=qW(e,null,t),n.return=e,n;case jj:return(t=QX(t,e.mode,n)).return=e,t;case Xj:return d(e,(0,t._init)(t._payload),n)}if(b$(t)||Qj(t))return(t=XX(t,e.mode,n,null)).return=e,t;DW(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Fj:return n.key===i?l(e,t,n,r):null;case jj:return n.key===i?c(e,t,n,r):null;case Xj:return f(e,t,(i=n._init)(n._payload),r)}if(b$(n)||Qj(n))return null!==i?null:u(e,t,n,r,null);DW(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Fj:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case jj:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case Xj:return h(e,t,n,(0,r._init)(r._payload),i)}if(b$(r)||Qj(r))return u(t,e=e.get(n)||null,r,i,null);DW(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),xW&&pW(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return xW&&pW(i,m),c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),xW&&pW(i,m),c}function m(i,a,s,l){var c=Qj(s);if("function"!=typeof c)throw Error(Mj(150));if(null==(s=c.call(s)))throw Error(Mj(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),xW&&pW(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return xW&&pW(i,m),c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),xW&&pW(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===$j&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case Fj:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===$j){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Xj&&IW(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=qW(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===$j?((o=XX(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=KX(s.type,s.key,s.props,null,r.mode,l)).ref=qW(r,o,s),l.return=r,r=l)}return a(r);case jj:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=QX(s,r.mode,l)).return=r,r=o}return a(r);case Xj:return e(r,o,(u=s._init)(s._payload),l)}if(b$(s))return p(r,o,s,l);if(Qj(s))return m(r,o,s,l);DW(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=ZX(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var PW=LW(!0),_W=LW(!1),zW=jU(null),FW=null,jW=null,$W=null;function BW(){$W=jW=FW=null}function HW(e){var t=zW.current;$U(zW),e._currentValue=t}function VW(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function UW(e,t){FW=e,$W=jW=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(IG=!0),e.firstContext=null)}function WW(e){var t=e._currentValue;if($W!==e)if(e={context:e,memoizedValue:t,next:null},null===jW){if(null===FW)throw Error(Mj(308));jW=e,FW.dependencies={lanes:0,firstContext:e}}else jW=jW.next=e;return t}var YW=null;function GW(e){null===YW?YW=[e]:YW.push(e)}function KW(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,GW(t)):(n.next=i.next,i.next=n),t.interleaved=n,XW(e,r)}function XW(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var JW=!1;function ZW(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function QW(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function eY(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tY(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&HK){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,XW(e,n)}return null===(i=r.interleaved)?(t.next=t,GW(r)):(t.next=i.next,i.next=t),r.interleaved=t,XW(e,n)}function nY(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,LB(e,n)}}function rY(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function iY(e,t,n,r){var i=e.updateQueue;JW=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=t$({},d,f);break e;case 2:JW=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);JK|=a,e.lanes=a,e.memoizedState=d}}function oY(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(Mj(191,i));i.call(r)}}}var aY={},sY=jU(aY),lY=jU(aY),cY=jU(aY);function uY(e){if(e===aY)throw Error(Mj(174));return e}function dY(e,t){switch(BU(cY,t),BU(lY,e),BU(sY,aY),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:C$(null,"");break;default:t=C$(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}$U(sY),BU(sY,t)}function fY(){$U(sY),$U(lY),$U(cY)}function hY(e){uY(cY.current);var t=uY(sY.current),n=C$(t,e.type);t!==n&&(BU(lY,e),BU(sY,n))}function pY(e){lY.current===e&&($U(sY),$U(lY))}var mY=jU(0);function gY(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yY=[];function vY(){for(var e=0;e<yY.length;e++)yY[e]._workInProgressVersionPrimary=null;yY.length=0}var bY=zj.ReactCurrentDispatcher,xY=zj.ReactCurrentBatchConfig,SY=0,wY=null,MY=null,kY=null,EY=!1,CY=!1,OY=0,NY=0;function TY(){throw Error(Mj(321))}function AY(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!MV(e[n],t[n]))return!1;return!0}function RY(e,t,n,r,i,o){if(SY=o,wY=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,bY.current=null===e||null===e.memoizedState?pG:mG,e=n(r,i),CY){o=0;do{if(CY=!1,OY=0,25<=o)throw Error(Mj(301));o+=1,kY=MY=null,t.updateQueue=null,bY.current=gG,e=n(r,i)}while(CY)}if(bY.current=hG,t=null!==MY&&null!==MY.next,SY=0,kY=MY=wY=null,EY=!1,t)throw Error(Mj(300));return e}function qY(){var e=0!==OY;return OY=0,e}function DY(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===kY?wY.memoizedState=kY=e:kY=kY.next=e,kY}function IY(){if(null===MY){var e=wY.alternate;e=null!==e?e.memoizedState:null}else e=MY.next;var t=null===kY?wY.memoizedState:kY.next;if(null!==t)kY=t,MY=e;else{if(null===e)throw Error(Mj(310));e={memoizedState:(MY=e).memoizedState,baseState:MY.baseState,baseQueue:MY.baseQueue,queue:MY.queue,next:null},null===kY?wY.memoizedState=kY=e:kY=kY.next=e}return kY}function LY(e,t){return"function"==typeof t?t(e):t}function PY(e){var t=IY(),n=t.queue;if(null===n)throw Error(Mj(311));n.lastRenderedReducer=e;var r=MY,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((SY&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,wY.lanes|=u,JK|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,MV(r,t.memoizedState)||(IG=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,wY.lanes|=o,JK|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _Y(e){var t=IY(),n=t.queue;if(null===n)throw Error(Mj(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);MV(o,t.memoizedState)||(IG=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function zY(){}function FY(e,t){var n=wY,r=IY(),i=t(),o=!MV(r.memoizedState,i);if(o&&(r.memoizedState=i,IG=!0),r=r.queue,JY(BY.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==kY&&1&kY.memoizedState.tag){if(n.flags|=2048,WY(9,$Y.bind(null,n,r,i,t),void 0,null),null===VK)throw Error(Mj(349));30&SY||jY(n,t,i)}return i}function jY(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=wY.updateQueue)?(t={lastEffect:null,stores:null},wY.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function $Y(e,t,n,r){t.value=n,t.getSnapshot=r,HY(t)&&VY(e)}function BY(e,t,n){return n((function(){HY(t)&&VY(e)}))}function HY(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!MV(e,n)}catch(e){return!0}}function VY(e){var t=XW(e,1);null!==t&&yX(t,e,1,-1)}function UY(e){var t=DY();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:LY,lastRenderedState:e},t.queue=e,e=e.dispatch=cG.bind(null,wY,e),[t.memoizedState,e]}function WY(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=wY.updateQueue)?(t={lastEffect:null,stores:null},wY.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function YY(){return IY().memoizedState}function GY(e,t,n,r){var i=DY();wY.flags|=e,i.memoizedState=WY(1|t,n,void 0,void 0===r?null:r)}function KY(e,t,n,r){var i=IY();r=void 0===r?null:r;var o=void 0;if(null!==MY){var a=MY.memoizedState;if(o=a.destroy,null!==r&&AY(r,a.deps))return void(i.memoizedState=WY(t,n,o,r))}wY.flags|=e,i.memoizedState=WY(1|t,n,o,r)}function XY(e,t){return GY(8390656,8,e,t)}function JY(e,t){return KY(2048,8,e,t)}function ZY(e,t){return KY(4,2,e,t)}function QY(e,t){return KY(4,4,e,t)}function eG(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function tG(e,t,n){return n=null!=n?n.concat([e]):null,KY(4,4,eG.bind(null,t,e),n)}function nG(){}function rG(e,t){var n=IY();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&AY(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function iG(e,t){var n=IY();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&AY(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function oG(e,t,n){return 21&SY?(MV(n,t)||(n=qB(),wY.lanes|=n,JK|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,IG=!0),e.memoizedState=n)}function aG(e,t){var n=PB;PB=0!==n&&4>n?n:4,e(!0);var r=xY.transition;xY.transition={};try{e(!1),t()}finally{PB=n,xY.transition=r}}function sG(){return IY().memoizedState}function lG(e,t,n){var r=gX(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uG(e))dG(t,n);else if(null!==(n=KW(e,t,n,r))){yX(n,e,r,mX()),fG(n,t,r)}}function cG(e,t,n){var r=gX(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uG(e))dG(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,MV(s,a)){var l=t.interleaved;return null===l?(i.next=i,GW(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=KW(e,t,i,r))&&(yX(n,e,r,i=mX()),fG(n,t,r))}}function uG(e){var t=e.alternate;return e===wY||null!==t&&t===wY}function dG(e,t){CY=EY=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fG(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,LB(e,n)}}var hG={readContext:WW,useCallback:TY,useContext:TY,useEffect:TY,useImperativeHandle:TY,useInsertionEffect:TY,useLayoutEffect:TY,useMemo:TY,useReducer:TY,useRef:TY,useState:TY,useDebugValue:TY,useDeferredValue:TY,useTransition:TY,useMutableSource:TY,useSyncExternalStore:TY,useId:TY,unstable_isNewReconciler:!1},pG={readContext:WW,useCallback:function(e,t){return DY().memoizedState=[e,void 0===t?null:t],e},useContext:WW,useEffect:XY,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,GY(4194308,4,eG.bind(null,t,e),n)},useLayoutEffect:function(e,t){return GY(4194308,4,e,t)},useInsertionEffect:function(e,t){return GY(4,2,e,t)},useMemo:function(e,t){var n=DY();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=DY();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lG.bind(null,wY,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},DY().memoizedState=e},useState:UY,useDebugValue:nG,useDeferredValue:function(e){return DY().memoizedState=e},useTransition:function(){var e=UY(!1),t=e[0];return e=aG.bind(null,e[1]),DY().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=wY,i=DY();if(xW){if(void 0===n)throw Error(Mj(407));n=n()}else{if(n=t(),null===VK)throw Error(Mj(349));30&SY||jY(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,XY(BY.bind(null,r,o,e),[e]),r.flags|=2048,WY(9,$Y.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=DY(),t=VK.identifierPrefix;if(xW){var n=hW;t=":"+t+"R"+(n=(fW&~(1<<32-MB(fW)-1)).toString(32)+n),0<(n=OY++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=NY++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mG={readContext:WW,useCallback:rG,useContext:WW,useEffect:JY,useImperativeHandle:tG,useInsertionEffect:ZY,useLayoutEffect:QY,useMemo:iG,useReducer:PY,useRef:YY,useState:function(){return PY(LY)},useDebugValue:nG,useDeferredValue:function(e){return oG(IY(),MY.memoizedState,e)},useTransition:function(){return[PY(LY)[0],IY().memoizedState]},useMutableSource:zY,useSyncExternalStore:FY,useId:sG,unstable_isNewReconciler:!1},gG={readContext:WW,useCallback:rG,useContext:WW,useEffect:JY,useImperativeHandle:tG,useInsertionEffect:ZY,useLayoutEffect:QY,useMemo:iG,useReducer:_Y,useRef:YY,useState:function(){return _Y(LY)},useDebugValue:nG,useDeferredValue:function(e){var t=IY();return null===MY?t.memoizedState=e:oG(t,MY.memoizedState,e)},useTransition:function(){return[_Y(LY)[0],IY().memoizedState]},useMutableSource:zY,useSyncExternalStore:FY,useId:sG,unstable_isNewReconciler:!1};function yG(e,t){if(e&&e.defaultProps){for(var n in t=t$({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function vG(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:t$({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var bG={isMounted:function(e){return!!(e=e._reactInternals)&&oB(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mX(),i=gX(e),o=eY(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=tY(e,o,i))&&(yX(t,e,i,r),nY(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mX(),i=gX(e),o=eY(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=tY(e,o,i))&&(yX(t,e,i,r),nY(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mX(),r=gX(e),i=eY(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=tY(e,i,r))&&(yX(t,e,r,n),nY(t,e,r))}};function xG(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!kV(n,r)||!kV(i,o))}function SG(e,t,n){var r=!1,i=HU,o=t.contextType;return"object"==typeof o&&null!==o?o=WW(o):(i=GU(t)?WU:VU.current,o=(r=null!=(r=t.contextTypes))?YU(e,i):HU),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bG,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function wG(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bG.enqueueReplaceState(t,t.state,null)}function MG(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ZW(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=WW(o):(o=GU(t)?WU:VU.current,i.context=YU(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(vG(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&bG.enqueueReplaceState(i,i.state,null),iY(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function kG(e,t){try{var n="",r=t;do{n+=o$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function EG(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function CG(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var OG="function"==typeof WeakMap?WeakMap:Map;function NG(e,t,n){(n=eY(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oX||(oX=!0,aX=r),CG(0,t)},n}function TG(e,t,n){(n=eY(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){CG(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){CG(0,t),"function"!=typeof r&&(null===sX?sX=new Set([this]):sX.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function AG(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new OG;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=jX.bind(null,e,t,n),t.then(e,e))}function RG(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function qG(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=eY(-1,1)).tag=2,tY(n,t,1))),n.lanes|=1),e)}var DG=zj.ReactCurrentOwner,IG=!1;function LG(e,t,n,r){t.child=null===e?_W(t,null,n,r):PW(t,e.child,n,r)}function PG(e,t,n,r,i){n=n.render;var o=t.ref;return UW(t,i),r=RY(e,t,n,r,o,i),n=qY(),null===e||IG?(xW&&n&&gW(t),t.flags|=1,LG(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,oK(e,t,i))}function _G(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||YX(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=KX(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,zG(e,t,o,r,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:kV)(a,r)&&e.ref===t.ref)return oK(e,t,i)}return t.flags|=1,(e=GX(o,r)).ref=t.ref,e.return=t,t.child=e}function zG(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(kV(o,r)&&e.ref===t.ref){if(IG=!1,t.pendingProps=r=o,!(e.lanes&i))return t.lanes=e.lanes,oK(e,t,i);131072&e.flags&&(IG=!0)}}return $G(e,t,n,r,i)}function FG(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,BU(GK,YK),YK|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,BU(GK,YK),YK|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},BU(GK,YK),YK|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,BU(GK,YK),YK|=r;return LG(e,t,i,n),t.child}function jG(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $G(e,t,n,r,i){var o=GU(n)?WU:VU.current;return o=YU(t,o),UW(t,i),n=RY(e,t,n,r,o,i),r=qY(),null===e||IG?(xW&&r&&gW(t),t.flags|=1,LG(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,oK(e,t,i))}function BG(e,t,n,r,i){if(GU(n)){var o=!0;ZU(t)}else o=!1;if(UW(t,i),null===t.stateNode)iK(e,t),SG(t,n,r),MG(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=WW(c):c=YU(t,c=GU(n)?WU:VU.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&wG(t,a,r,c),JW=!1;var f=t.memoizedState;a.state=f,iY(t,r,a,i),l=t.memoizedState,s!==r||f!==l||UU.current||JW?("function"==typeof u&&(vG(t,n,u,r),l=t.memoizedState),(s=JW||xG(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,QW(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:yG(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=WW(l):l=YU(t,l=GU(n)?WU:VU.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&wG(t,a,r,l),JW=!1,f=t.memoizedState,a.state=f,iY(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||UU.current||JW?("function"==typeof h&&(vG(t,n,h,r),p=t.memoizedState),(c=JW||xG(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return HG(e,t,n,r,o,i)}function HG(e,t,n,r,i,o){jG(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&QU(t,n,!1),oK(e,t,o);r=t.stateNode,DG.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=PW(t,e.child,null,o),t.child=PW(t,null,s,o)):LG(e,t,s,o),t.memoizedState=r.state,i&&QU(t,n,!0),t.child}function VG(e){var t=e.stateNode;t.pendingContext?XU(0,t.pendingContext,t.pendingContext!==t.context):t.context&&XU(0,t.context,!1),dY(e,t.containerInfo)}function UG(e,t,n,r,i){return TW(),AW(i),t.flags|=256,LG(e,t,n,r),t.child}var WG,YG,GG,KG,XG={dehydrated:null,treeContext:null,retryLane:0};function JG(e){return{baseLanes:e,cachePool:null,transitions:null}}function ZG(e,t,n){var r,i=t.pendingProps,o=mY.current,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),BU(mY,1&o),null===e)return EW(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},1&i||null===a?a=JX(s,i,0,null):(a.childLanes=0,a.pendingProps=s),e=XX(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=JG(n),t.memoizedState=XG,e):QG(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,eK(e,t,a,r=EG(Error(Mj(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=JX({mode:"visible",children:r.children},i,0,null),(o=XX(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&PW(t,e.child,null,a),t.child.memoizedState=JG(a),t.memoizedState=XG,o);if(!(1&t.mode))return eK(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,eK(e,t,a,r=EG(o=Error(Mj(419)),r,void 0))}if(s=!!(a&e.childLanes),IG||s){if(null!==(r=VK)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(r.suspendedLanes|a)?0:i)&&i!==o.retryLane&&(o.retryLane=i,XW(e,i),yX(r,e,i,-1))}return AX(),eK(e,t,a,r=EG(Error(Mj(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=BX.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,bW=EU(i.nextSibling),vW=t,xW=!0,SW=null,null!==e&&(cW[uW++]=fW,cW[uW++]=hW,cW[uW++]=dW,fW=e.id,hW=e.overflow,dW=t),t=QG(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 1&s||t.child===o?(i=GX(o,l)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null),null!==r?a=GX(r,a):(a=XX(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?JG(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=XG,i}return e=(a=e.child).sibling,i=GX(a,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function QG(e,t){return(t=JX({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function eK(e,t,n,r){return null!==r&&AW(r),PW(t,e.child,null,n),(e=QG(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tK(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),VW(e.return,t,n)}function nK(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function rK(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(LG(e,t,r.children,n),2&(r=mY.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tK(e,n,t);else if(19===e.tag)tK(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(BU(mY,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===gY(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nK(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===gY(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nK(t,!0,n,null,o);break;case"together":nK(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function iK(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function oK(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),JK|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Mj(153));if(null!==t.child){for(n=GX(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=GX(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function aK(e,t){if(!xW)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sK(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function lK(e,t,n){var r=t.pendingProps;switch(yW(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sK(t),null;case 1:case 17:return GU(t.type)&&KU(),sK(t),null;case 3:return r=t.stateNode,fY(),$U(UU),$U(VU),vY(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(OW(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==SW&&(SX(SW),SW=null))),YG(e,t),sK(t),null;case 5:pY(t);var i=uY(cY.current);if(n=t.type,null!==e&&null!=t.stateNode)GG(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(Mj(166));return sK(t),null}if(e=uY(sY.current),OW(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[NU]=t,r[TU]=o,e=!!(1&t.mode),n){case"dialog":tU("cancel",r),tU("close",r);break;case"iframe":case"object":case"embed":tU("load",r);break;case"video":case"audio":for(i=0;i<JV.length;i++)tU(JV[i],r);break;case"source":tU("error",r);break;case"img":case"image":case"link":tU("error",r),tU("load",r);break;case"details":tU("toggle",r);break;case"input":p$(r,o),tU("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},tU("invalid",r);break;case"textarea":w$(r,o),tU("invalid",r)}for(var a in L$(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&pU(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&pU(r.textContent,s,e),i=["children",""+s]):Ej.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&tU("scroll",r)}switch(n){case"input":u$(r),y$(r,o,!0);break;case"textarea":u$(r),k$(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=mU)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=E$(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[NU]=t,e[TU]=r,WG(e,t,!1,!1),t.stateNode=e;e:{switch(a=P$(n,r),n){case"dialog":tU("cancel",e),tU("close",e),i=r;break;case"iframe":case"object":case"embed":tU("load",e),i=r;break;case"video":case"audio":for(i=0;i<JV.length;i++)tU(JV[i],e);i=r;break;case"source":tU("error",e),i=r;break;case"img":case"image":case"link":tU("error",e),tU("load",e),i=r;break;case"details":tU("toggle",e),i=r;break;case"input":p$(e,r),i=h$(e,r),tU("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=t$({},r,{value:void 0}),tU("invalid",e);break;case"textarea":w$(e,r),i=S$(e,r),tU("invalid",e)}for(o in L$(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?D$(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&N$(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&T$(e,l):"number"==typeof l&&T$(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(Ej.hasOwnProperty(o)?null!=l&&"onScroll"===o&&tU("scroll",e):null!=l&&_j(e,o,l,a))}switch(n){case"input":u$(e),y$(e,r,!1);break;case"textarea":u$(e),k$(e);break;case"option":null!=r.value&&e.setAttribute("value",""+l$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?x$(e,!!r.multiple,o,!1):null!=r.defaultValue&&x$(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=mU)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return sK(t),null;case 6:if(e&&null!=t.stateNode)KG(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Mj(166));if(n=uY(cY.current),uY(sY.current),OW(t)){if(r=t.stateNode,n=t.memoizedProps,r[NU]=t,(o=r.nodeValue!==n)&&null!==(e=vW))switch(e.tag){case 3:pU(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&pU(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[NU]=t,t.stateNode=r}return sK(t),null;case 13:if($U(mY),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(xW&&null!==bW&&1&t.mode&&!(128&t.flags))NW(),TW(),t.flags|=98560,o=!1;else if(o=OW(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(Mj(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(Mj(317));o[NU]=t}else TW(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;sK(t),o=!1}else null!==SW&&(SX(SW),SW=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&mY.current?0===KK&&(KK=3):AX())),null!==t.updateQueue&&(t.flags|=4),sK(t),null);case 4:return fY(),YG(e,t),null===e&&iU(t.stateNode.containerInfo),sK(t),null;case 10:return HW(t.type._context),sK(t),null;case 19:if($U(mY),null===(o=t.memoizedState))return sK(t),null;if(r=!!(128&t.flags),null===(a=o.rendering))if(r)aK(o,!1);else{if(0!==KK||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=gY(e))){for(t.flags|=128,aK(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return BU(mY,1&mY.current|2),t.child}e=e.sibling}null!==o.tail&&pB()>rX&&(t.flags|=128,r=!0,aK(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=gY(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),aK(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!xW)return sK(t),null}else 2*pB()-o.renderingStartTime>rX&&1073741824!==n&&(t.flags|=128,r=!0,aK(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=pB(),t.sibling=null,n=mY.current,BU(mY,r?1&n|2:1&n),t):(sK(t),null);case 22:case 23:return CX(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&YK)&&(sK(t),6&t.subtreeFlags&&(t.flags|=8192)):sK(t),null;case 24:case 25:return null}throw Error(Mj(156,t.tag))}function cK(e,t){switch(yW(t),t.tag){case 1:return GU(t.type)&&KU(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return fY(),$U(UU),$U(VU),vY(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return pY(t),null;case 13:if($U(mY),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Mj(340));TW()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return $U(mY),null;case 4:return fY(),null;case 10:return HW(t.type._context),null;case 22:case 23:return CX(),null;default:return null}}WG=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},YG=function(){},GG=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,uY(sY.current);var o,a=null;switch(n){case"input":i=h$(e,i),r=h$(e,r),a=[];break;case"select":i=t$({},i,{value:void 0}),r=t$({},r,{value:void 0}),a=[];break;case"textarea":i=S$(e,i),r=S$(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=mU)}for(c in L$(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Ej.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Ej.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&tU("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},KG=function(e,t,n,r){n!==r&&(t.flags|=4)};var uK=!1,dK=!1,fK="function"==typeof WeakSet?WeakSet:Set,hK=null;function pK(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){FX(e,t,n)}else n.current=null}function mK(e,t,n){try{n()}catch(n){FX(e,t,n)}}var gK=!1;function yK(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&mK(t,n,o)}i=i.next}while(i!==r)}}function vK(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function bK(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function xK(e){var t=e.alternate;null!==t&&(e.alternate=null,xK(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[NU],delete t[TU],delete t[RU],delete t[qU],delete t[DU])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function SK(e){return 5===e.tag||3===e.tag||4===e.tag}function wK(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||SK(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function MK(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=mU));else if(4!==r&&null!==(e=e.child))for(MK(e,t,n),e=e.sibling;null!==e;)MK(e,t,n),e=e.sibling}function kK(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(kK(e,t,n),e=e.sibling;null!==e;)kK(e,t,n),e=e.sibling}var EK=null,CK=!1;function OK(e,t,n){for(n=n.child;null!==n;)NK(e,t,n),n=n.sibling}function NK(e,t,n){if(wB&&"function"==typeof wB.onCommitFiberUnmount)try{wB.onCommitFiberUnmount(SB,n)}catch(e){}switch(n.tag){case 5:dK||pK(n,t);case 6:var r=EK,i=CK;EK=null,OK(e,t,n),CK=i,null!==(EK=r)&&(CK?(e=EK,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):EK.removeChild(n.stateNode));break;case 18:null!==EK&&(CK?(e=EK,n=n.stateNode,8===e.nodeType?kU(e.parentNode,n):1===e.nodeType&&kU(e,n),oH(e)):kU(EK,n.stateNode));break;case 4:r=EK,i=CK,EK=n.stateNode.containerInfo,CK=!0,OK(e,t,n),EK=r,CK=i;break;case 0:case 11:case 14:case 15:if(!dK&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&mK(n,t,a),i=i.next}while(i!==r)}OK(e,t,n);break;case 1:if(!dK&&(pK(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){FX(n,t,e)}OK(e,t,n);break;case 21:OK(e,t,n);break;case 22:1&n.mode?(dK=(r=dK)||null!==n.memoizedState,OK(e,t,n),dK=r):OK(e,t,n);break;default:OK(e,t,n)}}function TK(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fK),t.forEach((function(t){var r=HX.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function AK(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:EK=s.stateNode,CK=!1;break e;case 3:case 4:EK=s.stateNode.containerInfo,CK=!0;break e}s=s.return}if(null===EK)throw Error(Mj(160));NK(o,a,i),EK=null,CK=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){FX(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)RK(t,e),t=t.sibling}function RK(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(AK(t,e),qK(e),4&r){try{yK(3,e,e.return),vK(3,e)}catch(t){FX(e,e.return,t)}try{yK(5,e,e.return)}catch(t){FX(e,e.return,t)}}break;case 1:AK(t,e),qK(e),512&r&&null!==n&&pK(n,n.return);break;case 5:if(AK(t,e),qK(e),512&r&&null!==n&&pK(n,n.return),32&e.flags){var i=e.stateNode;try{T$(i,"")}catch(t){FX(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&m$(i,o),P$(s,a);var c=P$(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?D$(i,d):"dangerouslySetInnerHTML"===u?N$(i,d):"children"===u?T$(i,d):_j(i,u,d,c)}switch(s){case"input":g$(i,o);break;case"textarea":M$(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?x$(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?x$(i,!!o.multiple,o.defaultValue,!0):x$(i,!!o.multiple,o.multiple?[]:"",!1))}i[TU]=o}catch(t){FX(e,e.return,t)}}break;case 6:if(AK(t,e),qK(e),4&r){if(null===e.stateNode)throw Error(Mj(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){FX(e,e.return,t)}}break;case 3:if(AK(t,e),qK(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{oH(t.containerInfo)}catch(t){FX(e,e.return,t)}break;case 4:default:AK(t,e),qK(e);break;case 13:AK(t,e),qK(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(nX=pB())),4&r&&TK(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(dK=(c=dK)||u,AK(t,e),dK=c):AK(t,e),qK(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(hK=e,u=e.child;null!==u;){for(d=hK=u;null!==hK;){switch(h=(f=hK).child,f.tag){case 0:case 11:case 14:case 15:yK(4,f,f.return);break;case 1:pK(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){FX(r,n,e)}}break;case 5:pK(f,f.return);break;case 22:if(null!==f.memoizedState){PK(d);continue}}null!==h?(h.return=f,hK=h):PK(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=q$("display",a))}catch(t){FX(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){FX(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:AK(t,e),qK(e),4&r&&TK(e);case 21:}}function qK(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(SK(n)){var r=n;break e}n=n.return}throw Error(Mj(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(T$(i,""),r.flags&=-33),kK(e,wK(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;MK(e,wK(e),o);break;default:throw Error(Mj(161))}}catch(t){FX(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function DK(e,t,n){hK=e,IK(e)}function IK(e,t,n){for(var r=!!(1&e.mode);null!==hK;){var i=hK,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||uK;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||dK;s=uK;var c=dK;if(uK=a,(dK=l)&&!c)for(hK=i;null!==hK;)l=(a=hK).child,22===a.tag&&null!==a.memoizedState?_K(i):null!==l?(l.return=a,hK=l):_K(i);for(;null!==o;)hK=o,IK(o),o=o.sibling;hK=i,uK=s,dK=c}LK(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,hK=o):LK(e)}}function LK(e){for(;null!==hK;){var t=hK;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:dK||vK(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!dK)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yG(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&oY(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}oY(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&oH(d)}}}break;default:throw Error(Mj(163))}dK||512&t.flags&&bK(t)}catch(e){FX(t,t.return,e)}}if(t===e){hK=null;break}if(null!==(n=t.sibling)){n.return=t.return,hK=n;break}hK=t.return}}function PK(e){for(;null!==hK;){var t=hK;if(t===e){hK=null;break}var n=t.sibling;if(null!==n){n.return=t.return,hK=n;break}hK=t.return}}function _K(e){for(;null!==hK;){var t=hK;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vK(4,t)}catch(e){FX(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){FX(t,i,e)}}var o=t.return;try{bK(t)}catch(e){FX(t,o,e)}break;case 5:var a=t.return;try{bK(t)}catch(e){FX(t,a,e)}}}catch(e){FX(t,t.return,e)}if(t===e){hK=null;break}var s=t.sibling;if(null!==s){s.return=t.return,hK=s;break}hK=t.return}}var zK,FK=Math.ceil,jK=zj.ReactCurrentDispatcher,$K=zj.ReactCurrentOwner,BK=zj.ReactCurrentBatchConfig,HK=0,VK=null,UK=null,WK=0,YK=0,GK=jU(0),KK=0,XK=null,JK=0,ZK=0,QK=0,eX=null,tX=null,nX=0,rX=1/0,iX=null,oX=!1,aX=null,sX=null,lX=!1,cX=null,uX=0,dX=0,fX=null,hX=-1,pX=0;function mX(){return 6&HK?pB():-1!==hX?hX:hX=pB()}function gX(e){return 1&e.mode?2&HK&&0!==WK?WK&-WK:null!==RW.transition?(0===pX&&(pX=qB()),pX):0!==(e=PB)?e:e=void 0===(e=window.event)?16:hH(e.type):1}function yX(e,t,n,r){if(50<dX)throw dX=0,fX=null,Error(Mj(185));IB(e,n,r),2&HK&&e===VK||(e===VK&&(!(2&HK)&&(ZK|=n),4===KK&&wX(e,WK)),vX(e,r),1===n&&0===HK&&!(1&t.mode)&&(rX=pB()+500,tW&&iW()))}function vX(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-MB(o),s=1<<a,l=i[a];-1===l?s&n&&!(s&r)||(i[a]=AB(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=TB(e,e===VK?WK:0);if(0===r)null!==n&&dB(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&dB(n),1===t)0===e.tag?function(e){tW=!0,rW(e)}(MX.bind(null,e)):rW(MX.bind(null,e)),wU((function(){!(6&HK)&&iW()})),n=null;else{switch(_B(r)){case 1:n=gB;break;case 4:n=yB;break;case 16:default:n=vB;break;case 536870912:n=xB}n=VX(n,bX.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bX(e,t){if(hX=-1,pX=0,6&HK)throw Error(Mj(327));var n=e.callbackNode;if(_X()&&e.callbackNode!==n)return null;var r=TB(e,e===VK?WK:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=RX(e,r);else{t=r;var i=HK;HK|=2;var o=TX();for(VK===e&&WK===t||(iX=null,rX=pB()+500,OX(e,t));;)try{DX();break}catch(t){NX(e,t)}BW(),jK.current=o,HK=i,null!==UK?t=0:(VK=null,WK=0,t=KK)}if(0!==t){if(2===t&&(0!==(i=RB(e))&&(r=i,t=xX(e,i))),1===t)throw n=XK,OX(e,0),wX(e,r),vX(e,pB()),n;if(6===t)wX(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!MV(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=RX(e,r),2===t&&(o=RB(e),0!==o&&(r=o,t=xX(e,o))),1!==t)))throw n=XK,OX(e,0),wX(e,r),vX(e,pB()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Mj(345));case 2:case 5:PX(e,tX,iX);break;case 3:if(wX(e,r),(130023424&r)===r&&10<(t=nX+500-pB())){if(0!==TB(e,0))break;if(((i=e.suspendedLanes)&r)!==r){mX(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=bU(PX.bind(null,e,tX,iX),t);break}PX(e,tX,iX);break;case 4:if(wX(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-MB(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=pB()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*FK(r/1960))-r)){e.timeoutHandle=bU(PX.bind(null,e,tX,iX),r);break}PX(e,tX,iX);break;default:throw Error(Mj(329))}}}return vX(e,pB()),e.callbackNode===n?bX.bind(null,e):null}function xX(e,t){var n=eX;return e.current.memoizedState.isDehydrated&&(OX(e,t).flags|=256),2!==(e=RX(e,t))&&(t=tX,tX=n,null!==t&&SX(t)),e}function SX(e){null===tX?tX=e:tX.push.apply(tX,e)}function wX(e,t){for(t&=~QK,t&=~ZK,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-MB(t),r=1<<n;e[n]=-1,t&=~r}}function MX(e){if(6&HK)throw Error(Mj(327));_X();var t=TB(e,0);if(!(1&t))return vX(e,pB()),null;var n=RX(e,t);if(0!==e.tag&&2===n){var r=RB(e);0!==r&&(t=r,n=xX(e,r))}if(1===n)throw n=XK,OX(e,0),wX(e,t),vX(e,pB()),n;if(6===n)throw Error(Mj(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,PX(e,tX,iX),vX(e,pB()),null}function kX(e,t){var n=HK;HK|=1;try{return e(t)}finally{0===(HK=n)&&(rX=pB()+500,tW&&iW())}}function EX(e){null!==cX&&0===cX.tag&&!(6&HK)&&_X();var t=HK;HK|=1;var n=BK.transition,r=PB;try{if(BK.transition=null,PB=1,e)return e()}finally{PB=r,BK.transition=n,!(6&(HK=t))&&iW()}}function CX(){YK=GK.current,$U(GK)}function OX(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xU(n)),null!==UK)for(n=UK.return;null!==n;){var r=n;switch(yW(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&KU();break;case 3:fY(),$U(UU),$U(VU),vY();break;case 5:pY(r);break;case 4:fY();break;case 13:case 19:$U(mY);break;case 10:HW(r.type._context);break;case 22:case 23:CX()}n=n.return}if(VK=e,UK=e=GX(e.current,null),WK=YK=t,KK=0,XK=null,QK=ZK=JK=0,tX=eX=null,null!==YW){for(t=0;t<YW.length;t++)if(null!==(r=(n=YW[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}YW=null}return e}function NX(e,t){for(;;){var n=UK;try{if(BW(),bY.current=hG,EY){for(var r=wY.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}EY=!1}if(SY=0,kY=MY=wY=null,CY=!1,OY=0,$K.current=null,null===n||null===n.return){KK=1,XK=t,UK=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=WK,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=RG(a);if(null!==h){h.flags&=-257,qG(h,a,s,0,t),1&h.mode&&AG(o,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(!(1&t)){AG(o,c,t),AX();break e}l=Error(Mj(426))}else if(xW&&1&s.mode){var g=RG(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),qG(g,a,s,0,t),AW(kG(l,s));break e}}o=l=kG(l,s),4!==KK&&(KK=2),null===eX?eX=[o]:eX.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,rY(o,NG(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==sX&&sX.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,rY(o,TG(o,s,t));break e}}o=o.return}while(null!==o)}LX(n)}catch(e){t=e,UK===n&&null!==n&&(UK=n=n.return);continue}break}}function TX(){var e=jK.current;return jK.current=hG,null===e?hG:e}function AX(){0!==KK&&3!==KK&&2!==KK||(KK=4),null===VK||!(268435455&JK)&&!(268435455&ZK)||wX(VK,WK)}function RX(e,t){var n=HK;HK|=2;var r=TX();for(VK===e&&WK===t||(iX=null,OX(e,t));;)try{qX();break}catch(t){NX(e,t)}if(BW(),HK=n,jK.current=r,null!==UK)throw Error(Mj(261));return VK=null,WK=0,KK}function qX(){for(;null!==UK;)IX(UK)}function DX(){for(;null!==UK&&!fB();)IX(UK)}function IX(e){var t=zK(e.alternate,e,YK);e.memoizedProps=e.pendingProps,null===t?LX(e):UK=t,$K.current=null}function LX(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=cK(n,t)))return n.flags&=32767,void(UK=n);if(null===e)return KK=6,void(UK=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=lK(n,t,YK)))return void(UK=n);if(null!==(t=t.sibling))return void(UK=t);UK=t=e}while(null!==t);0===KK&&(KK=5)}function PX(e,t,n){var r=PB,i=BK.transition;try{BK.transition=null,PB=1,function(e,t,n,r){do{_X()}while(null!==cX);if(6&HK)throw Error(Mj(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Mj(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-MB(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===VK&&(UK=VK=null,WK=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||lX||(lX=!0,VX(vB,(function(){return _X(),null}))),o=!!(15990&n.flags),!!(15990&n.subtreeFlags)||o){o=BK.transition,BK.transition=null;var a=PB;PB=1;var s=HK;HK|=4,$K.current=null,function(e,t){if(gU=sH,TV(e=NV())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(yU={focusedElem:e,selectionRange:n},sH=!1,hK=t;null!==hK;)if(e=(t=hK).child,1028&t.subtreeFlags&&null!==e)e.return=t,hK=e;else for(;null!==hK;){t=hK;try{var p=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:yG(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(Mj(163))}}catch(e){FX(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,hK=e;break}hK=t.return}p=gK,gK=!1}(e,n),RK(n,e),AV(yU),sH=!!gU,yU=gU=null,e.current=n,DK(n),hB(),HK=s,PB=a,BK.transition=o}else e.current=n;if(lX&&(lX=!1,cX=e,uX=i),o=e.pendingLanes,0===o&&(sX=null),function(e){if(wB&&"function"==typeof wB.onCommitFiberRoot)try{wB.onCommitFiberRoot(SB,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),vX(e,pB()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(oX)throw oX=!1,e=aX,aX=null,e;!!(1&uX)&&0!==e.tag&&_X(),o=e.pendingLanes,1&o?e===fX?dX++:(dX=0,fX=e):dX=0,iW()}(e,t,n,r)}finally{BK.transition=i,PB=r}return null}function _X(){if(null!==cX){var e=_B(uX),t=BK.transition,n=PB;try{if(BK.transition=null,PB=16>e?16:e,null===cX)var r=!1;else{if(e=cX,cX=null,uX=0,6&HK)throw Error(Mj(331));var i=HK;for(HK|=4,hK=e.current;null!==hK;){var o=hK,a=o.child;if(16&hK.flags){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(hK=c;null!==hK;){var u=hK;switch(u.tag){case 0:case 11:case 15:yK(8,u,o)}var d=u.child;if(null!==d)d.return=u,hK=d;else for(;null!==hK;){var f=(u=hK).sibling,h=u.return;if(xK(u),u===c){hK=null;break}if(null!==f){f.return=h,hK=f;break}hK=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}hK=o}}if(2064&o.subtreeFlags&&null!==a)a.return=o,hK=a;else e:for(;null!==hK;){if(2048&(o=hK).flags)switch(o.tag){case 0:case 11:case 15:yK(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,hK=y;break e}hK=o.return}}var v=e.current;for(hK=v;null!==hK;){var b=(a=hK).child;if(2064&a.subtreeFlags&&null!==b)b.return=a,hK=b;else e:for(a=v;null!==hK;){if(2048&(s=hK).flags)try{switch(s.tag){case 0:case 11:case 15:vK(9,s)}}catch(e){FX(s,s.return,e)}if(s===a){hK=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,hK=x;break e}hK=s.return}}if(HK=i,iW(),wB&&"function"==typeof wB.onPostCommitFiberRoot)try{wB.onPostCommitFiberRoot(SB,e)}catch(e){}r=!0}return r}finally{PB=n,BK.transition=t}}return!1}function zX(e,t,n){e=tY(e,t=NG(0,t=kG(n,t),1),1),t=mX(),null!==e&&(IB(e,1,t),vX(e,t))}function FX(e,t,n){if(3===e.tag)zX(e,e,n);else for(;null!==t;){if(3===t.tag){zX(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===sX||!sX.has(r))){t=tY(t,e=TG(t,e=kG(n,e),1),1),e=mX(),null!==t&&(IB(t,1,e),vX(t,e));break}}t=t.return}}function jX(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=mX(),e.pingedLanes|=e.suspendedLanes&n,VK===e&&(WK&n)===n&&(4===KK||3===KK&&(130023424&WK)===WK&&500>pB()-nX?OX(e,0):QK|=n),vX(e,t)}function $X(e,t){0===t&&(1&e.mode?(t=OB,!(130023424&(OB<<=1))&&(OB=4194304)):t=1);var n=mX();null!==(e=XW(e,t))&&(IB(e,t,n),vX(e,n))}function BX(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),$X(e,n)}function HX(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Mj(314))}null!==r&&r.delete(t),$X(e,n)}function VX(e,t){return uB(e,t)}function UX(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function WX(e,t,n,r){return new UX(e,t,n,r)}function YX(e){return!(!(e=e.prototype)||!e.isReactComponent)}function GX(e,t){var n=e.alternate;return null===n?((n=WX(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function KX(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)YX(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case $j:return XX(n.children,i,o,t);case Bj:a=8,i|=8;break;case Hj:return(e=WX(12,n,t,2|i)).elementType=Hj,e.lanes=o,e;case Yj:return(e=WX(13,n,t,i)).elementType=Yj,e.lanes=o,e;case Gj:return(e=WX(19,n,t,i)).elementType=Gj,e.lanes=o,e;case Jj:return JX(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Vj:a=10;break e;case Uj:a=9;break e;case Wj:a=11;break e;case Kj:a=14;break e;case Xj:a=16,r=null;break e}throw Error(Mj(130,null==e?e:typeof e,""))}return(t=WX(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function XX(e,t,n,r){return(e=WX(7,e,r,t)).lanes=n,e}function JX(e,t,n,r){return(e=WX(22,e,r,t)).elementType=Jj,e.lanes=n,e.stateNode={isHidden:!1},e}function ZX(e,t,n){return(e=WX(6,e,null,t)).lanes=n,e}function QX(e,t,n){return(t=WX(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eJ(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=DB(0),this.expirationTimes=DB(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=DB(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function tJ(e,t,n,r,i,o,a,s,l){return e=new eJ(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=WX(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ZW(o),e}function nJ(e){if(!e)return HU;e:{if(oB(e=e._reactInternals)!==e||1!==e.tag)throw Error(Mj(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(GU(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Mj(171))}if(1===e.tag){var n=e.type;if(GU(n))return JU(e,n,t)}return t}function rJ(e,t,n,r,i,o,a,s,l){return(e=tJ(n,r,!0,e,0,o,0,s,l)).context=nJ(null),n=e.current,(o=eY(r=mX(),i=gX(n))).callback=null!=t?t:null,tY(n,o,i),e.current.lanes=i,IB(e,i,r),vX(e,r),e}function iJ(e,t,n,r){var i=t.current,o=mX(),a=gX(i);return n=nJ(n),null===t.context?t.context=n:t.pendingContext=n,(t=eY(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=tY(i,t,a))&&(yX(e,i,a,o),nY(e,i,a)),a}function oJ(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function aJ(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function sJ(e,t){aJ(e,t),(e=e.alternate)&&aJ(e,t)}zK=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||UU.current)IG=!0;else{if(!(e.lanes&n||128&t.flags))return IG=!1,function(e,t,n){switch(t.tag){case 3:VG(t),TW();break;case 5:hY(t);break;case 1:GU(t.type)&&ZU(t);break;case 4:dY(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;BU(zW,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(BU(mY,1&mY.current),t.flags|=128,null):n&t.child.childLanes?ZG(e,t,n):(BU(mY,1&mY.current),null!==(e=oK(e,t,n))?e.sibling:null);BU(mY,1&mY.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return rK(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),BU(mY,mY.current),r)break;return null;case 22:case 23:return t.lanes=0,FG(e,t,n)}return oK(e,t,n)}(e,t,n);IG=!!(131072&e.flags)}else IG=!1,xW&&1048576&t.flags&&mW(t,lW,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iK(e,t),e=t.pendingProps;var i=YU(t,VU.current);UW(t,n),i=RY(null,t,r,e,i,n);var o=qY();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,GU(r)?(o=!0,ZU(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ZW(t),i.updater=bG,t.stateNode=i,i._reactInternals=t,MG(t,r,e,n),t=HG(null,t,r,!0,o,n)):(t.tag=0,xW&&o&&gW(t),LG(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iK(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return YX(e)?1:0;if(null!=e){if((e=e.$$typeof)===Wj)return 11;if(e===Kj)return 14}return 2}(r),e=yG(r,e),i){case 0:t=$G(null,t,r,e,n);break e;case 1:t=BG(null,t,r,e,n);break e;case 11:t=PG(null,t,r,e,n);break e;case 14:t=_G(null,t,r,yG(r.type,e),n);break e}throw Error(Mj(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,$G(e,t,r,i=t.elementType===r?i:yG(r,i),n);case 1:return r=t.type,i=t.pendingProps,BG(e,t,r,i=t.elementType===r?i:yG(r,i),n);case 3:e:{if(VG(t),null===e)throw Error(Mj(387));r=t.pendingProps,i=(o=t.memoizedState).element,QW(e,t),iY(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=UG(e,t,r,n,i=kG(Error(Mj(423)),t));break e}if(r!==i){t=UG(e,t,r,n,i=kG(Error(Mj(424)),t));break e}for(bW=EU(t.stateNode.containerInfo.firstChild),vW=t,xW=!0,SW=null,n=_W(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(TW(),r===i){t=oK(e,t,n);break e}LG(e,t,r,n)}t=t.child}return t;case 5:return hY(t),null===e&&EW(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,vU(r,i)?a=null:null!==o&&vU(r,o)&&(t.flags|=32),jG(e,t),LG(e,t,a,n),t.child;case 6:return null===e&&EW(t),null;case 13:return ZG(e,t,n);case 4:return dY(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=PW(t,null,r,n):LG(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,PG(e,t,r,i=t.elementType===r?i:yG(r,i),n);case 7:return LG(e,t,t.pendingProps,n),t.child;case 8:case 12:return LG(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,BU(zW,r._currentValue),r._currentValue=a,null!==o)if(MV(o.value,a)){if(o.children===i.children&&!UU.current){t=oK(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=eY(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),VW(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(Mj(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),VW(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}LG(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,UW(t,n),r=r(i=WW(i)),t.flags|=1,LG(e,t,r,n),t.child;case 14:return i=yG(r=t.type,t.pendingProps),_G(e,t,r,i=yG(r.type,i),n);case 15:return zG(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yG(r,i),iK(e,t),t.tag=1,GU(r)?(e=!0,ZU(t)):e=!1,UW(t,n),SG(t,r,i),MG(t,r,i,n),HG(null,t,r,!0,e,n);case 19:return rK(e,t,n);case 22:return FG(e,t,n)}throw Error(Mj(156,t.tag))};var lJ="function"==typeof reportError?reportError:function(e){console.error(e)};function cJ(e){this._internalRoot=e}function uJ(e){this._internalRoot=e}function dJ(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function fJ(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function hJ(){}function pJ(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=oJ(a);s.call(e)}}iJ(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=oJ(a);o.call(e)}}var a=rJ(t,r,e,0,null,!1,0,"",hJ);return e._reactRootContainer=a,e[AU]=a.current,iU(8===e.nodeType?e.parentNode:e),EX(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=oJ(l);s.call(e)}}var l=tJ(e,0,!1,null,0,!1,0,"",hJ);return e._reactRootContainer=l,e[AU]=l.current,iU(8===e.nodeType?e.parentNode:e),EX((function(){iJ(t,l,n,r)})),l}(n,t,e,i,r);return oJ(a)}uJ.prototype.render=cJ.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Mj(409));iJ(e,t,null,null)},uJ.prototype.unmount=cJ.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;EX((function(){iJ(null,e,null,null)})),t[AU]=null}},uJ.prototype.unstable_scheduleHydration=function(e){if(e){var t=$B();e={blockedOn:null,target:e,priority:t};for(var n=0;n<XB.length&&0!==t&&t<XB[n].priority;n++);XB.splice(n,0,e),0===n&&eH(e)}},zB=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=NB(t.pendingLanes);0!==n&&(LB(t,1|n),vX(t,pB()),!(6&HK)&&(rX=pB()+500,iW()))}break;case 13:EX((function(){var t=XW(e,1);if(null!==t){var n=mX();yX(t,e,1,n)}})),sJ(e,1)}},FB=function(e){if(13===e.tag){var t=XW(e,134217728);if(null!==t)yX(t,e,134217728,mX());sJ(e,134217728)}},jB=function(e){if(13===e.tag){var t=gX(e),n=XW(e,t);if(null!==n)yX(n,e,t,mX());sJ(e,t)}},$B=function(){return PB},BB=function(e,t){var n=PB;try{return PB=e,t()}finally{PB=n}},F$=function(e,t,n){switch(t){case"input":if(g$(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_U(r);if(!i)throw Error(Mj(90));d$(r),g$(r,i)}}}break;case"textarea":M$(e,n);break;case"select":null!=(t=n.value)&&x$(e,!!n.multiple,t,!1)}},U$=kX,W$=EX;var mJ={usingClientEntryPoint:!1,Events:[LU,PU,_U,H$,V$,kX]},gJ={findFiberByHostInstance:IU,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},yJ={bundleType:gJ.bundleType,version:gJ.version,rendererPackageName:gJ.rendererPackageName,rendererConfig:gJ.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zj.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=lB(e))?null:e.stateNode},findFiberByHostInstance:gJ.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var vJ=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vJ.isDisabled&&vJ.supportsFiber)try{SB=vJ.inject(yJ),wB=vJ}catch(CR){}}yj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mJ,yj.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!dJ(t))throw Error(Mj(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:jj,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},yj.createRoot=function(e,t){if(!dJ(e))throw Error(Mj(299));var n=!1,r="",i=lJ;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=tJ(e,1,!1,null,0,n,0,r,i),e[AU]=t.current,iU(8===e.nodeType?e.parentNode:e),new cJ(t)},yj.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(Mj(188));throw e=Object.keys(e).join(","),Error(Mj(268,e))}return e=null===(e=lB(t))?null:e.stateNode},yj.flushSync=function(e){return EX(e)},yj.hydrate=function(e,t,n){if(!fJ(t))throw Error(Mj(200));return pJ(null,e,t,!0,n)},yj.hydrateRoot=function(e,t,n){if(!dJ(e))throw Error(Mj(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=lJ;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=rJ(t,null,e,1,null!=n?n:null,i,0,o,a),e[AU]=t.current,iU(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new uJ(t)},yj.render=function(e,t,n){if(!fJ(t))throw Error(Mj(200));return pJ(null,e,t,!1,n)},yj.unmountComponentAtNode=function(e){if(!fJ(e))throw Error(Mj(40));return!!e._reactRootContainer&&(EX((function(){pJ(null,null,e,!1,(function(){e._reactRootContainer=null,e[AU]=null}))})),!0)},yj.unstable_batchedUpdates=kX,yj.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!fJ(n))throw Error(Mj(200));if(null==e||void 0===e._reactInternals)throw Error(Mj(38));return pJ(e,t,n,!1,r)},yj.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),gj.exports=yj;var bJ=gj.exports,xJ=r(bJ),SJ=!0,wJ=!1,MJ=null,kJ={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 EJ(e){e.metaKey||e.altKey||e.ctrlKey||(SJ=!0)}function CJ(){SJ=!1}function OJ(){"hidden"===this.visibilityState&&wJ&&(SJ=!0)}function NJ(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return SJ||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!kJ[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function TJ(){wJ=!0,window.clearTimeout(MJ),MJ=window.setTimeout((function(){wJ=!1}),100)}function AJ(){var e=OI.useCallback((function(e){var t,n=bJ.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",EJ,!0),t.addEventListener("mousedown",CJ,!0),t.addEventListener("pointerdown",CJ,!0),t.addEventListener("touchstart",CJ,!0),t.addEventListener("visibilitychange",OJ,!0))}),[]);return{isFocusVisible:NJ,onBlurVisible:TJ,ref:e}}var RJ=!1,qJ=NI.createContext(null),DJ="unmounted",IJ="exited",LJ="entering",PJ="entered",_J="exiting",zJ=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=IJ,r.appearStatus=LJ):i=PJ:i=t.unmountOnExit||t.mountOnEnter?DJ:IJ,r.state={status:i},r.nextCallback=null,r}mP(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===DJ?{status:IJ}: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!==LJ&&n!==PJ&&(t=LJ):n!==LJ&&n!==PJ||(t=_J)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===LJ){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:xJ.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===IJ&&this.setState({status:DJ})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[xJ.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||RJ?this.safeSetState({status:PJ},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:LJ},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:PJ},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:xJ.findDOMNode(this);t&&!RJ?(this.props.onExit(r),this.safeSetState({status:_J},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:IJ},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:IJ},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:xJ.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===DJ)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=IL(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return NI.createElement(qJ.Provider,{value:null},"function"==typeof n?n(e,r):NI.cloneElement(NI.Children.only(n),r))},t}(NI.Component);function FJ(){}function jJ(e,t){var n=Object.create(null);return e&&OI.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&OI.isValidElement(e)?t(e):e}(e)})),n}function $J(e,t,n){return null!=n[t]?n[t]:e.props[t]}function BJ(e,t,n){var r=jJ(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(OI.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=OI.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&OI.isValidElement(c)&&(i[o]=OI.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:$J(a,"exit",e),enter:$J(a,"enter",e)})):i[o]=OI.cloneElement(a,{in:!1}):i[o]=OI.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:$J(a,"exit",e),enter:$J(a,"enter",e)})}})),i}zJ.contextType=qJ,zJ.propTypes={},zJ.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:FJ,onEntering:FJ,onEntered:FJ,onExit:FJ,onExiting:FJ,onExited:FJ},zJ.UNMOUNTED=DJ,zJ.EXITED=IJ,zJ.ENTERING=LJ,zJ.ENTERED=PJ,zJ.EXITING=_J;var HJ=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},VJ=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(gP(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}mP(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,jJ(n.children,(function(e){return OI.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:$J(e,"appear",n),enter:$J(e,"enter",n),exit:$J(e,"exit",n)})}))):BJ(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=jJ(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=wL({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=IL(e,["component","childFactory"]),i=this.state.contextValue,o=HJ(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?NI.createElement(qJ.Provider,{value:i},o):NI.createElement(qJ.Provider,{value:i},NI.createElement(t,r,o))},t}(NI.Component);VJ.propTypes={},VJ.defaultProps={component:"div",childFactory:function(e){return e}};function UJ(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var WJ=OI.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=LL(e,["classes","className","component","square","elevation","variant"]);return OI.createElement(o,wL({className:cj(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),YJ=oj((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),wL({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(WJ),GJ="undefined"==typeof window?OI.useEffect:OI.useLayoutEffect;function KJ(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=OI.useState(!1),f=d[0],h=d[1],p=cj(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=cj(t.child,f&&t.childLeaving,r&&t.childPulsate),y=pj(c);return GJ((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),OI.createElement("span",{className:p,style:m},OI.createElement("span",{className:g}))}var XJ=OI.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=LL(e,["center","classes","className"]),s=OI.useState([]),l=s[0],c=s[1],u=OI.useRef(0),d=OI.useRef(null);OI.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=OI.useRef(!1),h=OI.useRef(null),p=OI.useRef(null),m=OI.useRef(null);OI.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=OI.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(ZL(e),[OI.createElement(KJ,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=OI.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,w=x.clientY;u=Math.round(S-b.left),d=Math.round(w-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var M=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(k,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=OI.useCallback((function(){y({},{pulsate:!0})}),[y]),b=OI.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return OI.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),OI.createElement("span",wL({className:cj(i.root,o),ref:m},a),OI.createElement(VJ,{component:null,exit:!0},l))})),JJ=oj((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"})(OI.memo(XJ)),ZJ=OI.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,S=e.onClick,w=e.onFocus,M=e.onFocusVisible,k=e.onKeyDown,E=e.onKeyUp,C=e.onMouseDown,O=e.onMouseLeave,N=e.onMouseUp,T=e.onTouchEnd,A=e.onTouchMove,R=e.onTouchStart,q=e.onDragLeave,D=e.tabIndex,I=void 0===D?0:D,L=e.TouchRippleProps,P=e.type,_=void 0===P?"button":P,z=LL(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"]),F=OI.useRef(null);var j=OI.useRef(null),$=OI.useState(!1),B=$[0],H=$[1];f&&B&&H(!1);var V=AJ(),U=V.isFocusVisible,W=V.onBlurVisible,Y=V.ref;function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return pj((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}OI.useImperativeHandle(n,(function(){return{focusVisible:function(){H(!0),F.current.focus()}}}),[]),OI.useEffect((function(){B&&v&&!p&&j.current.pulsate()}),[p,v,B]);var K=G("start",C),X=G("stop",q),J=G("stop",N),Z=G("stop",(function(e){B&&e.preventDefault(),O&&O(e)})),Q=G("start",R),ee=G("stop",T),te=G("stop",A),ne=G("stop",(function(e){B&&(W(e),H(!1)),x&&x(e)}),!1),re=pj((function(e){F.current||(F.current=e.currentTarget),U(e)&&(H(!0),M&&M(e)),w&&w(e)})),ie=function(){var e=bJ.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=OI.useRef(!1),ae=pj((function(e){v&&!oe.current&&B&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),S&&S(e))})),se=pj((function(e){v&&" "===e.key&&j.current&&B&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),E&&E(e),S&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&S(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=_,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=mj(r,t),de=mj(Y,F),fe=mj(ue,de),he=OI.useState(!1),pe=he[0],me=he[1];OI.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return OI.createElement(le,wL({className:cj(s.root,l,B&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:S,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:K,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:fe,tabIndex:f?-1:I},ce,z),a,ge?OI.createElement(JJ,wL({ref:j,center:o},L)):null)})),QJ=oj({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(ZJ),eZ={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},tZ=OI.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?eZ:b,S=LL(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),w=l||(g?"p":x[v]||eZ[v])||"span";return OI.createElement(w,wL({className:cj(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(aj(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(aj(r))],"initial"!==u&&i["display".concat(aj(u))]),ref:t},S))})),nZ=oj((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"})(tZ),rZ=OI.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,S=e.startIcon,w=e.type,M=void 0===w?"button":w,k=e.variant,E=void 0===k?"text":k,C=LL(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),O=S&&OI.createElement("span",{className:cj(r.startIcon,r["iconSize".concat(aj(x))])},S),N=m&&OI.createElement("span",{className:cj(r.endIcon,r["iconSize".concat(aj(x))])},m);return OI.createElement(QJ,wL({className:cj(r.root,r[E],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(E).concat(aj(a))],"medium"!==x&&[r["".concat(E,"Size").concat(aj(x))],r["size".concat(aj(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:cj(r.focusVisible,g),ref:t,type:M},C),OI.createElement("span",{className:r.label},O,n,N))})),iZ=oj((function(e){return{root:wL({},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:DL(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:DL(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:DL(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(DL(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:DL(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(DL(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:DL(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(rZ);var oZ="undefined"!=typeof window?OI.useLayoutEffect:OI.useEffect,aZ=OI.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=OI.useState(null),l=s[0],c=s[1],u=mj(OI.isValidElement(n)?n.ref:null,t);return oZ((function(){o||c(function(e){return e="function"==typeof e?e():e,bJ.findDOMNode(e)}(r)||document.body)}),[r,o]),oZ((function(){if(l&&!o)return fj(t,l),function(){fj(t,null)}}),[t,l,o]),oZ((function(){a&&(l||o)&&a()}),[a,l,o]),o?OI.isValidElement(n)?OI.cloneElement(n,{ref:u}):n:l?bJ.createPortal(n,l):l}));function sZ(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lZ(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function cZ(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(ZL(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&sZ(e,r)}))}function uZ(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function dZ(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=uj(e);return t.body===e?dj(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(lZ(o)+a,"px"),n=uj(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(lZ(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var fZ=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return hP(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&&sZ(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);cZ(t,e.mountNode,e.modalRef,r,!0);var i=uZ(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=uZ(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=dZ(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=uZ(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&&sZ(e.modalRef,!0),cZ(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&sZ(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function hZ(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=OI.useRef(),f=OI.useRef(null),h=OI.useRef(null),p=OI.useRef(),m=OI.useRef(null),g=OI.useCallback((function(e){m.current=bJ.findDOMNode(e)}),[]),y=mj(t.ref,g),v=OI.useRef();return OI.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),OI.useEffect((function(){if(u){var e=uj(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),OI.createElement(OI.Fragment,null,OI.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),OI.cloneElement(t,{ref:y}),OI.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var pZ={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},mZ=OI.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=LL(e,["invisible","open"]);return i?OI.createElement("div",wL({"aria-hidden":!0,ref:t},o,{style:wL({},pZ.root,r?pZ.invisible:{},o.style)})):null}));var gZ=new fZ,yZ=OI.forwardRef((function(e,t){var n=aF(),r=uP({name:"MuiModal",props:wL({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?mZ:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,S=r.disableRestoreFocus,w=void 0!==S&&S,M=r.disableScrollLock,k=void 0!==M&&M,E=r.hideBackdrop,C=void 0!==E&&E,O=r.keepMounted,N=void 0!==O&&O,T=r.manager,A=void 0===T?gZ:T,R=r.onBackdropClick,q=r.onClose,D=r.onEscapeKeyDown,I=r.onRendered,L=r.open,P=LL(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),_=OI.useState(!0),z=_[0],F=_[1],j=OI.useRef({}),$=OI.useRef(null),B=OI.useRef(null),H=mj(B,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return uj($.current)},W=function(){return j.current.modalRef=B.current,j.current.mountNode=$.current,j.current},Y=function(){A.mount(W(),{disableScrollLock:k}),B.current.scrollTop=0},G=pj((function(){var e=function(e){return e="function"==typeof e?e():e,bJ.findDOMNode(e)}(u)||U().body;A.add(W(),e),B.current&&Y()})),K=OI.useCallback((function(){return A.isTopModal(W())}),[A]),X=pj((function(e){$.current=e,e&&(I&&I(),L&&K()?Y():sZ(B.current,!0))})),J=OI.useCallback((function(){A.remove(W())}),[A]);if(OI.useEffect((function(){return function(){J()}}),[J]),OI.useEffect((function(){L?G():V&&c||J()}),[L,J,V,c,G]),!N&&!L&&(!V||z))return null;var Z=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:oP}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),V&&(Q.onEnter=sj((function(){F(!1)}),s.props.onEnter),Q.onExited=sj((function(){F(!0),c&&J()}),s.props.onExited)),OI.createElement(aZ,{ref:X,container:u,disablePortal:x},OI.createElement("div",wL({ref:H,onKeyDown:function(e){"Escape"===e.key&&K()&&(D&&D(e),v||(e.stopPropagation(),q&&q(e,"escapeKeyDown")))},role:"presentation"},P,{style:wL({},Z.root,!L&&z?Z.hidden:{},P.style)}),C?null:OI.createElement(o,wL({open:L,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!p&&q&&q(e,"backdropClick"))}},a)),OI.createElement(hZ,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:w,getDoc:U,isEnabled:K,open:L},OI.cloneElement(s,Q))))})),vZ=OI.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=LL(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return OI.createElement(s,wL({className:cj(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),bZ=oj((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:DL(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(vZ);function xZ(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var SZ={entering:{opacity:1,transform:xZ(1)},entered:{opacity:1,transform:"none"}},wZ=OI.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?zJ:m,y=LL(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=OI.useRef(),b=OI.useRef(),x=aF()||rj,S=x.unstable_strictMode&&!i,w=OI.useRef(null),M=mj(n.ref,t),k=mj(S?w:void 0,M),E=function(e){return function(t,n){if(e){var r=QL(S?[w.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},C=E(l),O=E((function(e,t){!function(e){e.scrollTop}(e);var n,r=UJ({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),N=E(s),T=E(d),A=E((function(e){var t,n=UJ({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=xZ(.75),c&&c(e)})),R=E(u);return OI.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),OI.createElement(g,wL({appear:!0,in:o,nodeRef:S?w:void 0,onEnter:O,onEntered:N,onEntering:C,onExit:A,onExited:R,onExiting:T,addEndListener:function(e,t){var n=S?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return OI.cloneElement(n,wL({style:wL({opacity:0,transform:xZ(.75),visibility:"exited"!==e||o?void 0:"hidden"},SZ[e],f,n.props.style),ref:k},t))}))}));wZ.muiSupportAuto=!0;var MZ=OI.createContext({}),kZ=OI.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=LL(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=OI.useMemo((function(){return{dense:l}}),[l]);return OI.createElement(MZ.Provider,{value:h},OI.createElement(a,wL({className:cj(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),EZ=oj({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(kZ),CZ="undefined"==typeof window?OI.useEffect:OI.useLayoutEffect,OZ=OI.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=LL(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,S=e.disableGutters,w=void 0!==S&&S,M=e.divider,k=void 0!==M&&M,E=e.focusVisibleClassName,C=e.selected,O=void 0!==C&&C,N=LL(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=OI.useContext(MZ),A={dense:v||T.dense||!1,alignItems:r},R=OI.useRef(null);CZ((function(){o&&R.current&&R.current.focus()}),[o]);var q,D,I=OI.Children.toArray(l),L=I.length&&(q=I[I.length-1],D=["ListItemSecondaryAction"],OI.isValidElement(q)&&-1!==D.indexOf(q.type.muiName)),P=OI.useCallback((function(e){R.current=bJ.findDOMNode(e)}),[]),_=mj(P,t),z=wL({className:cj(c.root,u,A.dense&&c.dense,!w&&c.gutters,k&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,L&&c.secondaryAction,O&&c.selected),disabled:x},N),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=cj(c.focusVisible,E),F=QJ),L?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),OI.createElement(MZ.Provider,{value:A},OI.createElement(h,wL({className:cj(c.container,m),ref:_},g),OI.createElement(F,z,I),I.pop()))):OI.createElement(MZ.Provider,{value:A},OI.createElement(F,wL({ref:_},z),I))})),NZ=oj((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"})(OZ),TZ=OI.forwardRef((function(e,t){var n=e.classes,r=e.className,i=LL(e,["classes","className"]),o=OI.useContext(MZ);return OI.createElement("div",wL({className:cj(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),AZ=oj((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(TZ),RZ=OI.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=LL(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=OI.useContext(MZ).dense,m=null!=c?c:n;null==m||m.type===nZ||a||(m=OI.createElement(nZ,wL({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===nZ||a||(g=OI.createElement(nZ,wL({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),OI.createElement("div",wL({className:cj(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),qZ=oj({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(RZ);function DZ(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function IZ(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function LZ(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function PZ(e){return"function"==typeof e?e():e}var _Z=OI.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,S=e.onExit,w=e.onExited,M=e.onExiting,k=e.open,E=e.PaperProps,C=void 0===E?{}:E,O=e.transformOrigin,N=void 0===O?{vertical:"top",horizontal:"left"}:O,T=e.TransitionComponent,A=void 0===T?wZ:T,R=e.transitionDuration,q=void 0===R?"auto":R,D=e.TransitionProps,I=void 0===D?{}:D,L=LL(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"]),P=OI.useRef(),_=OI.useCallback((function(e){if("anchorPosition"===l)return a;var t=PZ(r),n=(t&&1===t.nodeType?t:uj(P.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+DZ(n,i),left:n.left+IZ(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=OI.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=OI.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:DZ(e,N.vertical)+t,horizontal:IZ(e,N.horizontal)}}),[N.horizontal,N.vertical]),j=OI.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:LZ(i)};var o=_(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=dj(PZ(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:LZ(i)}}),[r,l,_,z,F,y]),$=OI.useCallback((function(){var e=P.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),B=OI.useCallback((function(e){P.current=bJ.findDOMNode(e)}),[]);OI.useEffect((function(){k&&$()})),OI.useImperativeHandle(n,(function(){return k?{updatePosition:function(){$()}}:null}),[k,$]),OI.useEffect((function(){if(k){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,$]);var H=q;"auto"!==q||A.muiSupportAuto||(H=void 0);var V=f||(r?uj(PZ(r)).body:void 0);return OI.createElement(yZ,wL({container:V,open:k,ref:t,BackdropProps:{invisible:!0},className:cj(u.root,d)},L),OI.createElement(A,wL({appear:!0,in:k,onEnter:v,onEntered:b,onExit:S,onExited:w,onExiting:M,timeout:H},I,{onEntering:sj((function(e,t){x&&x(e,t),$()}),I.onEntering)}),OI.createElement(YJ,wL({elevation:p,ref:B},C,{className:cj(u.paper,C.className)}),c)))})),zZ=oj({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(_Z);function FZ(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function jZ({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:FZ(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return NI.createElement("i",{style:i},NI.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},NI.createElement("path",{d:e})))}const $Z="alternative-menu-item",BZ=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>mF((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return NI.createElement(NZ,JI({className:`${i.root} ${n}`},r))},HZ=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${$Z}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function VZ({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=_.detectTextDirection(e);return NI.createElement(BZ,{nested:r,role:"menuitem",button:!0,onClick:n,className:$Z,onKeyDown:HZ,dir:a,autoFocus:t},NI.createElement(qZ,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),NI.createElement(AZ,{style:{minWidth:16}},NI.createElement(jZ,{d:t?II:""})),i&&NI.createElement(AZ,{style:{minWidth:16}},NI.createElement(jZ,{d:i.d})))}VZ.propTypes={title:tL.string.isRequired,selected:tL.bool,onClick:tL.func.isRequired,nested:tL.bool,icon:tL.shape({d:tL.string.isRequired}),bold:tL.bool,dir:tL.string.isRequired},VZ.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},BZ.propTypes={nested:tL.bool,className:tL.string},BZ.defaultProps={nested:!1,className:$Z};const UZ={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function WZ({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map(((t,i)=>{var s;return NI.createElement(NI.Fragment,{key:t.id},NI.createElement(VZ,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&NI.createElement(EZ,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>NI.createElement(VZ,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&NI.createElement(bZ,{key:`divider-${t.id}`}))}));return NI.createElement(zZ,JI({anchorEl:t,open:s,onClose:a},UZ[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),NI.createElement(EZ,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}WZ.propTypes={chartId:tL.string.isRequired,alignTo:tL.any,currentId:tL.string.isRequired,dir:tL.string.isRequired,dock:tL.string.isRequired,list:tL.array,onClose:tL.func.isRequired,show:tL.bool.isRequired,instruction:tL.string.isRequired},WZ.defaultProps={list:[],alignTo:null};const YZ="title-button",GZ="active-title-button",KZ=ij((({children:e,...t})=>NI.createElement(iZ,JI({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),XZ=ij(iZ)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class JZ extends NI.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=NI.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions: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))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${YZ}`);t&&(t.focus(),t.classList.add(GZ))}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${YZ}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${GZ}`);e&&(e.classList.remove(GZ),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>NI.createElement(KZ,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},NI.createElement("span",{style:d},e),NI.createElement(jZ,JI({},PI,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=_.detectTextDirection(t.text),S=NI.createElement(KZ,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${YZ} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&NI.createElement(jZ,JI({},DI,{size:"small",title:r.get("Tooltip.selections.locked")})),NI.createElement("span",{style:d,dir:x},t.text),n&&m&&NI.createElement(jZ,JI({},LI,{size:"small",style:{margin:"0 8px"}})));return NI.createElement(NI.Fragment,null,t.icon&&t.icon.onClick&&NI.createElement(XZ,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},NI.createElement(jZ,JI({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&NI.createElement(jZ,JI({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,NI.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},S),n&&m&&NI.createElement(WZ,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function ZZ(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function QZ(e){function t(e){return!e.isDimension&&M.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=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}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],S=r||i[a?"qDimensionInfo":"qMeasureInfo"],w=a?YI:KI,k=a?GI:XI,E=Boolean(l&&l.colorSupport&&l.modifiers),C=E&&((O=this.settings.settings).isDimension&&M.getValue(O,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var O;const N=S.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=k(t,o,l,e),v=r===S.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,M=E||b?w({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:ZZ(g),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:E}):void 0;return NI.createElement(NI.Fragment,{key:t.cId},NI.createElement(JZ,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:M,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:C,supportConditional:m}),!v&&NI.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return NI.createElement("div",{style:v,dir:y},N)}}}JZ.propTypes={chartId:tL.string.isRequired,disabled:tL.bool.isRequired,padding:tL.string,minWidth:tL.string,titleData:tL.shape({breadcrumbs:tL.arrayOf(tL.string).isRequired,icon:tL.shape({path:tL.shape({d:tL.string.isRequired}),tooltip:tL.string.isRequired,onClick:tL.func}),index:tL.number.isRequired,locked:tL.bool.isRequired,text:tL.string.isRequired,popoverText:tL.string.isRequired,drillUp:tL.func,id:tL.string.isRequired}).isRequired,popover:tL.shape({dir:tL.string.isRequired,dock:tL.string.isRequired,getPopoverOptions:tL.func.isRequired}),translator:tL.shape({get:tL.func.isRequired}).isRequired,selections:tL.shape({isActive:tL.func,addListener:tL.func,removeListener:tL.func}),style:tL.shape({fontSize:tL.string,color:tL.string,fontFamily:tL.string}).isRequired,isDimension:tL.bool.isRequired,hasAlternative:tL.bool.isRequired,supportConditional:tL.bool.isRequired,showGroupDimOptions:tL.bool.isRequired},JZ.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const eQ=aP({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 tQ=cP({productionPrefix:"qc65b",disableGlobal:!0,seed:""});function nQ(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",xJ.render(function(e,t){return NI.createElement(dF,{generateClassName:t},NI.createElement(nj,{theme:eQ},e))}(e,tQ),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&xJ.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(xJ.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function rQ(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:rQ(i,t,n)},i}function iQ(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),rQ(i,a,l,e.invert)}))}const oQ={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(p({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function aQ({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=p({},{major:l,majorEnd:c},r.minor.items[e]);i.forEach((t=>{d[t]=r[t].items[e]}));const f=o?n:t,h=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),m=(u-h)/2,g=m+d.major+h/2;return{item:d,boxCenter:g,boxWidth:h,boxPadding:m,rendWidth:t,rendHeight:n}}function sQ({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=p(!0,{},n||{},r||{}),c={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},u=i.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:p(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:p(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{};let h;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:p(!0,{},{start:{scale:f.scale,ref:"start"},end:{scale:f.scale,ref:"end"},min:{scale:f.scale,ref:"min"},max:{scale:f.scale,ref:"max"},med:{scale:f.scale,ref:"med"}},f)})};for(let n=0,r=e.length;n<r;n++)h=e[n],m[h]=s.resolve({data:t,defaults:l[h],settings:i[h],scaled:c});return m}const lQ=["oob"];const cQ={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=sQ({keys:lQ,data:i,defaultSettings:{oob:oQ.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=aQ}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:u,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=c[u].data,g=[];if(d.oob.show){g.push(oQ.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:h,rendHeight:p,flipXY:n,symbol:o}));const e={type:"container",data:m,collider:{type:"bounds"},children:g};l.push(e)}}return l}({width:e,height:t,flipXY:r,resolved:l,keys:lQ,symbol:s,dockValue:n});return d}},uQ={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},dQ=["hat"];function fQ(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 hQ({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,c=i,u=e.hat.alignment||0;o&&(a="y",s="x",l=i,c=r,u=1-u);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const h=p({},e.hat,{type:"path",d:fQ(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[h,p({},e.hat,{type:"path",d:fQ(f)})]}const pQ={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=sQ({keys:dQ,data:r,defaultSettings:uQ,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=aQ}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:f,rendHeight:h}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),p=s[l].data,m=[];c.hat.show&&m.push(...hQ({item:c,boxWidth:u,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const g={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(g)}return a}({width:e,height:t,flipXY:n,resolved:a,keys:dQ});return c}};var mQ="unclassified",gQ="equal-equal",yQ="equal-higher",vQ="equal-lower",bQ="equal-void",xQ="higher-equal",SQ="higher-higher-acute",wQ="higher-higher-obtuse",MQ="higher-lower-negative",kQ="higher-lower-positive",EQ="higher-void",CQ="lower-equal",OQ="lower-higher-negative",NQ="lower-higher-positive",TQ="lower-lower-acute",AQ="lower-lower-obtuse",RQ="lower-void",qQ="void-equal",DQ="void-higher",IQ="void-lower",LQ="void-void";function PQ(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function _Q(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),i=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),o=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((i*i+r*r-o*o)/(2*i*r))*(180/Math.PI)}function zQ({previous:e,current:t,next:n}){const r=e&&e.value,i=t&&t.value,o=n&&n.value;return e||n?e?n?r===i?i===o?gQ:i<o?yQ:vQ:i===o?r>i?xQ:CQ:r>i?i<o?_Q(e,t,n)>90?wQ:SQ:PQ(e,t)>PQ(e,n)?kQ:MQ:i>o?_Q(e,t,n)>90?AQ:TQ:PQ(e,t)>PQ(e,n)?NQ:OQ:r===i?bQ:r>i?EQ:RQ:i===o?qQ:i<o?DQ:IQ:LQ}var FQ={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"};function jQ({bounds:e,size:t}){const{x:n,y:r,width:i,height:o}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+i/2)>=0&&Math.ceil(n+i/2)<=t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height:Math.floor(n+i)>0&&Math.ceil(n)<t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height}function $Q({config:e,node:t,line:n,groupIndex:r,extract:i,style:o,measureText:a,size:s,horizontal:l,rtl:c,meta:u,showLabel:d}){var f,h;const p=i.label(t.data);if("string"!=typeof p&&"number"!=typeof p||""===p)return!1;const m=(()=>{var e,n;const r=a({fontFamily:o.fontFamily,fontSize:o.fontSize,text:p});if(null===(e=t.data)||void 0===e||null===(e=e.value)||void 0===e||!e.maxLabelWidth||r.width<=(null===(n=t.data)||void 0===n||null===(n=n.value)||void 0===n?void 0:n.maxLabelWidth))return r;const i=`${o.fontSize} ${o.fontFamily}`,s=Pi.tokenize(p,i,"…",3,t.data.value.maxLabelWidth);return r.lines=s.map((e=>({text:e,size:a({fontFamily:o.fontFamily,fontSize:o.fontSize,text:e})}))),r.width=Math.max(...r.lines.map((e=>e.size.width))),r.height*=s.length,r})(),{localBounds:g}=t,{"stroke-width":y}=t.attrs,v=i.pointValue(t.data),b=!(null===(f=t.data)||void 0===f||null===(f=f.value)||void 0===f||!f.hasBackground),x=b?{X:3,Y:2}:{X:1,Y:0},S=b?{X:2,Y:2}:{X:0,Y:0},w={x:g.x+g.width/2,y:g.y+g.height/2,width:m.width+2*x.X+2*S.X,height:m.height+2*x.Y+2*S.Y},M=`${w.x}-${w.y}`,k=!l&&!c,E=l?s.height:s.width,C=(l?w.y:w.x)/E,O=(k?1-C:C)<=(E<=200?.25:.1),N=null===(h=t.data)||void 0===h||null===(h=h.value)||void 0===h||null===(h=h.label)||void 0===h?void 0:h.placement,T=Object.keys(FQ).map((e=>FQ[e])),A={key:M,config:e,node:t,line:n,group:r,value:v,labelMeasurements:m,bounds:w,inside:jQ({bounds:g,size:s}),border:y?y/2:0,classification:mQ,setClassification(e){A.classification=e},preferences:[],setPreferences(e){A.preferences.push(...e)},fixedPlacement:T.includes(N)?N:void 0,placement:void 0,setPlacement(e){A.placement=e},duplicate:!1,setDuplicate(){A.duplicate=!0},extreme:u.getExtreme(M),elite:O,show:e.labels&&d(t)};return A}function BQ({configs:e,nodes:t,extract:n,style:r,measureText:i,size:o,horizontal:a,rtl:s,showLabel:l}){const c=function({nodes:e}){const t={top:[],right:[],bottom:[],left:[]},n=e.map((e=>{const{localBounds:t}=e,n={x:t.x+t.width/2,y:t.y+t.height/2};return{key:`${n.x}-${n.y}`,center:n}})),r=n.reduce(((e,t)=>((!e.top||t.center.y<e.top.center.y)&&(e.top=t),(!e.right||t.center.x>e.right.center.x)&&(e.right=t),(!e.bottom||t.center.y>e.bottom.center.y)&&(e.bottom=t),(!e.left||t.center.x<e.left.center.x)&&(e.left=t),e)),{});return t.top=n.filter((e=>e.center.y===r.top.center.y)).map((e=>e.key)),t.right=n.filter((e=>e.center.x===r.right.center.x)).map((e=>e.key)),t.bottom=n.filter((e=>e.center.y===r.bottom.center.y)).map((e=>e.key)),t.left=n.filter((e=>e.center.x===r.left.center.x)).map((e=>e.key)),{getExtrema:e=>({top:-1!==t.top.indexOf(e),right:-1!==t.right.indexOf(e),bottom:-1!==t.bottom.indexOf(e),left:-1!==t.left.indexOf(e)}),getExtreme:e=>{const{top:n,right:r,bottom:i,left:o}=t;return[n,r,i,o].some((t=>-1!==t.indexOf(e)))}}}({nodes:t}),u=function({nodes:e,by:t,lineId:n}){const r=e.reduce(((e,r,i)=>{const o=t(r.data);return e[o]||(e[o]={items:[],index:i}),e[o].items.push({node:r,line:n(r)}),e}),{});return Object.keys(r).map((e=>r[e])).sort(((e,t)=>e.index-t.index)).map((e=>e.items))}({nodes:t,by:n.majorValue,lineId:n.lineId}).map(((t,u)=>{const d=t.map((t=>({line:t.line,item:$Q({config:e.get(t.node.key),node:t.node,line:t.line,groupIndex:u,extract:n,style:r,measureText:i,size:o,horizontal:a,rtl:s,meta:c,showLabel:l})}))).filter((e=>e.item));return d.reduce(((e,t)=>(e[t.line]=t.item,e)),{})}));return u.filter((e=>Object.keys(e).length))}var HQ={[gQ]:[FQ.TOP,FQ.BOTTOM],[yQ]:[FQ.BOTTOM,FQ.BOTTOM_RIGHT],[vQ]:[FQ.TOP,FQ.TOP_RIGHT],[bQ]:[FQ.TOP,FQ.BOTTOM],[xQ]:[FQ.LEFT,FQ.BOTTOM_LEFT,FQ.TOP,FQ.TOP_RIGHT],[SQ]:[FQ.BOTTOM,FQ.BOTTOM_LEFT,FQ.LEFT,FQ.TOP_RIGHT],[wQ]:[FQ.BOTTOM,FQ.TOP],[MQ]:[FQ.TOP,FQ.TOP_RIGHT,FQ.RIGHT],[kQ]:[FQ.BOTTOM,FQ.BOTTOM_LEFT,FQ.LEFT],[EQ]:[FQ.TOP],[CQ]:[FQ.TOP],[OQ]:[FQ.TOP,FQ.TOP_LEFT],[NQ]:[FQ.BOTTOM_RIGHT],[TQ]:[FQ.TOP,FQ.TOP_LEFT,FQ.LEFT,FQ.TOP_RIGHT,FQ.RIGHT],[AQ]:[FQ.TOP,FQ.BOTTOM],[RQ]:[FQ.TOP],[qQ]:[FQ.TOP],[DQ]:[FQ.TOP,FQ.BOTTOM],[IQ]:[FQ.TOP,FQ.BOTTOM,FQ.LEFT],[LQ]:[FQ.TOP],[mQ]:[FQ.TOP,FQ.BOTTOM,FQ.RIGHT,FQ.LEFT,FQ.TOP_RIGHT,FQ.BOTTOM_RIGHT,FQ.BOTTOM_LEFT,FQ.TOP_LEFT]};function VQ({configs:e,nodes:t,extract:n,style:r,measureText:i,size:o,horizontal:a,rtl:s,showLabel:l}){const c=BQ({configs:e,nodes:t,extract:n,style:r,measureText:i,size:o,horizontal:a,rtl:s,showLabel:l}),u=[...c.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[d]=u,f=function({groups:e,threshold:t}){const n=e.map((e=>Object.keys(e).map((t=>e[t])))),r={};for(let e=0;e<=n.length;e++){const t=n[e];if(t)for(let e=0;e<t.length;e++){const n=t[e];if(n.config.lines){const{line:e}=n;r[e]||(r[e]=[]),r[e].push(n.bounds)}}}const i=Object.keys(r).map((e=>r[e])),o=[];for(let e=0;e<i.length;e++)for(let n=0;n<i[e].length-1;n++){const r=i[e][n],a=i[e][n+1],s={x1:r.x,y1:r.y,x2:a.x,y2:a.y},l=s.x1-s.x2,c=s.y1-s.y2;Math.sqrt(l*l+c*c)>t&&o.push(s)}return o}({groups:c,threshold:null==d?void 0:d.node.localBounds.height}),h={getItems:()=>u,getLines:()=>f};return function({groups:e}){for(let t=0;t<e.length;t++){const n=Object.keys(e[t]).map((n=>e[t][n]));for(let r=0;r<n.length;r++){const i=n[r];if(!i.config.fixed){const n=zQ({previous:e[t-1]&&e[t-1][i.line],current:i,next:e[t+1]&&e[t+1][i.line]});i.setClassification(n)}}}}({groups:c}),h.getItems().forEach((e=>{e.setPreferences(HQ[e.classification])})),h}function UQ({item:e,placement:t,size:n}){return t.x>=0-n.edgeBleed.left&&t.x<=n.width-e.bounds.width+n.edgeBleed.right&&t.y>=0-n.edgeBleed.top&&t.y<=n.height-e.bounds.height}function WQ({line1:e,line2:t}){const n=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(0===n)return!1;const r=((t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1))/n,i=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&i>=0&&i<=1}function YQ({candidate:e,lines:t,rects:n}){const r=n.some((t=>function({rect1:e,rect2:t}){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)}({rect1:t,rect2:e})));return!!r||t.some((t=>function({line:e,rect:t}){const n={x:t.x,y:t.y},r={x:t.x+t.width,y:t.y},i={x:t.x+t.width,y:t.y+t.height},o={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:i.x,y2:i.y},s={x1:i.x,y1:i.y,x2:o.x,y2:o.y},l={x1:o.x,y1:o.y,x2:n.x,y2:n.y};return WQ({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||WQ({line1:e,line2:a})||WQ({line1:e,line2:s})||WQ({line1:e,line2:l})}({line:t,rect:e})))}const GQ={x:0,width:0,y:0,height:0};const KQ=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),XQ=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),JQ=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),ZQ=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),QQ=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),e0=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),t0=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),n0=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var r0=2.5,i0=4;const o0=[FQ.TOP,FQ.TOP_LEFT,FQ.TOP_RIGHT],a0=[FQ.BOTTOM,FQ.BOTTOM_LEFT,FQ.BOTTOM_RIGHT];function s0({position:e}){const t={x:r0,width:-5,y:0,height:0},n=o0.indexOf(e)>-1,r=a0.indexOf(e)>-1;return n&&(t.y=i0,t.height=-4),r&&(t.height=-4),t}function l0({cx:e,cy:t,r:n,degrees:r}){const i=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(i)),y:Math.round(t+n*-Math.cos(i))}}function c0({coordinates:e,degrees:t,item:n}){const r={x:e.x,y:e.y};return t<=90?r.y-=n.bounds.height:t>180&&t<=270?r.x-=n.bounds.width:t>270&&(r.y-=n.bounds.height,r.x-=n.bounds.width),r}function u0({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),i=e.bounds.x,o=e.bounds.y;for(let a=0;a<r.length;a++){const s=r[a];for(let r=40;r<=180;r+=15){const a=c0({coordinates:l0({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}for(let r=320;r>180;r-=15){const a=c0({coordinates:l0({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const d0=void 0;function f0({item:e,validator:t,force:n=!1}){const r={[FQ.TOP]:KQ,[FQ.TOP_RIGHT]:XQ,[FQ.RIGHT]:JQ,[FQ.BOTTOM_RIGHT]:ZQ,[FQ.BOTTOM]:QQ,[FQ.BOTTOM_LEFT]:e0,[FQ.LEFT]:t0,[FQ.TOP_LEFT]:n0};if(e.fixedPlacement)return r[e.fixedPlacement]({item:e});const i=[...e.preferences,...Object.keys(FQ).map((e=>FQ[e])).filter((t=>-1===e.preferences.indexOf(t)))],o=[];for(let a=0;a<i.length;a++){const s=i[a],l=r[s]({item:e}),c=s0({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&o.push(l),u.valid)return l}const a=()=>u0({item:e,validator:t,force:n});if(n){const e=a();return e||(o[0]||d0)}return(e.extreme||e.elite)&&a()||d0}function h0({model:e,size:t,all:n}){const r={},i=e.getItems(),o=[...i.map((e=>({x:e.node.localBounds.x-e.border+1,y:e.node.localBounds.y-e.border+1,height:e.node.localBounds.height+2*e.border-2,width:e.node.localBounds.width+2*e.border-2})))],a=[],s=e.getLines();i.forEach((e=>{const{data:i}=e.node;if(!e.show||!e.inside||i.null&&i.null.value||i.interpolated&&i.interpolated.value)return;const{key:l}=e;if(r[l])return void e.setDuplicate();r[l]=!0;const c=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=GQ,ignoreLines:a=!1}){const s={inside:UQ({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=YQ({candidate:{x:i.x+o.x,y:i.y+o.y,width:r.bounds.width+o.width,height:r.bounds.height+o.height},lines:a?[]:t,rects:n}),s.valid=!s.collides,s):s}}({size:t,lines:s,placements:o}),u=f0({item:e,validator:c});u?(u.height=e.bounds.height,u.width=e.bounds.width,o.push(u),e.setPlacement(u)):n&&a.push({item:e,validator:c})})),a.forEach((e=>{const{item:t,validator:n}=e,r=f0({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,o.push(r),t.setPlacement(r))}))}var p0={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},lineId:()=>{},enabled:()=>!0,configs:[],insideStrategy:"edge",labelSpace:{use:()=>!1,size:10}},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},{orientation:t,rtl:n,labelSpace:r}=this.settings.settings,{use:i,size:o}=r;if(i()){const r="horizontal"===t;e.edgeBleed.top=r?o:0,e.edgeBleed[n?"left":"right"]=r?0:o}return e},render(){const{settings:e}=this.settings,{enabled:t}=e;if(!t())return[];const n=function({configs:e=[]}={}){const t={};return e.forEach((e=>{const{key:n}=e;t[n]={labels:void 0===e.labels||e.labels,lines:void 0===e.lines||e.lines,fixed:void 0!==e.fixed&&e.fixed}})),{meta:{allKeys:e.map((e=>e.key))},get:e=>t[e],getFirstLabelKey:()=>{var t;return null===(t=e.find((e=>e.labels)))||void 0===t?void 0:t.key}}}({configs:e.configs}),r=n.getFirstLabelKey();if(!r)return[];if(!this.chart.component(r))return[];const i=this.chart.findShapes("circle, path, rect").filter((e=>n.meta.allKeys.includes(e.key)));if(!i.length)return[];const o="horizontal"===e.orientation,a=o?"x":"y";i.sort(((e,t)=>e.localBounds[a]-t.localBounds[a]));const s={label:e.label,pointValue:e.pointValue,majorValue:e.majorValue,lineId:e.lineId},{height:l,width:c,edgeBleed:u}=this.rect,d={height:l,width:c,edgeBleed:u,insideStrategy:e.insideStrategy},{style:f}=this,h=VQ({configs:n,nodes:i,extract:s,style:f,measureText:this.renderer.measureText,size:d,horizontal:o,rtl:e.rtl,showLabel:e.showLabel});!function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:h}),h0({model:h,size:d,all:e.all});const p=h.getItems(),m=[];p.filter((e=>e.placement)).forEach((e=>{var t,n;const r=null!==(t=e.node.data.value)&&void 0!==t&&t.hasBackground?2:0,i=null!==(n=e.node.data.value)&&void 0!==n&&n.hasBackground?2:0;e.labelMeasurements.lines?e.labelMeasurements.lines.forEach(((t,n)=>{m.push({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+(n+.5)*t.size.height+r+i,fontSize:f.fontSize,fontFamily:f.fontFamily,fill:f.fill,text:t.text,data:e.node.data.value,baseline:"central",anchor:"middle"})})):m.push({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2+r+i,fontSize:f.fontSize,fontFamily:f.fontFamily,fill:f.fill,text:s.label(e.node.data),data:e.node.data.value,baseline:"central",anchor:"middle"})}));return[...p.filter((e=>{var t;return e.placement&&(null===(t=e.node.data.value)||void 0===t?void 0:t.hasBackground)})).map((e=>{var t;return{type:"rect",x:e.placement.x+2,y:e.placement.y+2,rx:3,ry:3,fill:null===(t=e.node.data.value)||void 0===t?void 0:t.labelBackgroundColor,width:e.placement.width-4,height:e.placement.height-4}})),...m]}},m0={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};const g0={black:"#000",white:"#fff"},y0="#e57373",v0="#ef5350",b0="#f44336",x0="#d32f2f",S0="#c62828",w0="#f3e5f5",M0="#ce93d8",k0="#ba68c8",E0="#ab47bc",C0="#9c27b0",O0="#7b1fa2",N0="#e3f2fd",T0="#90caf9",A0="#42a5f5",R0="#1976d2",q0="#1565c0",D0="#4fc3f7",I0="#29b6f6",L0="#03a9f4",P0="#0288d1",_0="#01579b",z0="#81c784",F0="#66bb6a",j0="#4caf50",$0="#388e3c",B0="#2e7d32",H0="#1b5e20",V0="#ffb74d",U0="#ffa726",W0="#ff9800",Y0="#f57c00",G0="#e65100",K0={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function X0(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var J0=Object.freeze({__proto__:null,default:X0}),Z0="$$material";var Q0=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),e1="-ms-",t1="-moz-",n1="-webkit-",r1="comm",i1="rule",o1="decl",a1="@keyframes",s1=Math.abs,l1=String.fromCharCode,c1=Object.assign;function u1(e){return e.trim()}function d1(e,t,n){return e.replace(t,n)}function f1(e,t){return e.indexOf(t)}function h1(e,t){return 0|e.charCodeAt(t)}function p1(e,t,n){return e.slice(t,n)}function m1(e){return e.length}function g1(e){return e.length}function y1(e,t){return t.push(e),e}var v1=1,b1=1,x1=0,S1=0,w1=0,M1="";function k1(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:v1,column:b1,length:a,return:""}}function E1(e,t){return c1(k1("",null,null,"",null,null,0),e,{length:-e.length},t)}function C1(){return w1=S1>0?h1(M1,--S1):0,b1--,10===w1&&(b1=1,v1--),w1}function O1(){return w1=S1<x1?h1(M1,S1++):0,b1++,10===w1&&(b1=1,v1++),w1}function N1(){return h1(M1,S1)}function T1(){return S1}function A1(e,t){return p1(M1,e,t)}function R1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function q1(e){return v1=b1=1,x1=m1(M1=e),S1=0,[]}function D1(e){return M1="",e}function I1(e){return u1(A1(S1-1,_1(91===e?e+2:40===e?e+1:e)))}function L1(e){for(;(w1=N1())&&w1<33;)O1();return R1(e)>2||R1(w1)>3?"":" "}function P1(e,t){for(;--t&&O1()&&!(w1<48||w1>102||w1>57&&w1<65||w1>70&&w1<97););return A1(e,T1()+(t<6&&32==N1()&&32==O1()))}function _1(e){for(;O1();)switch(w1){case e:return S1;case 34:case 39:34!==e&&39!==e&&_1(w1);break;case 40:41===e&&_1(e);break;case 92:O1()}return S1}function z1(e,t){for(;O1()&&e+w1!==57&&(e+w1!==84||47!==N1()););return"/*"+A1(t,S1-1)+"*"+l1(47===e?e:O1())}function F1(e){for(;!R1(N1());)O1();return A1(e,S1)}function j1(e){return D1($1("",null,null,null,[""],e=q1(e),0,[0],e))}function $1(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,S=o,w=r,M=b;g;)switch(p=v,v=O1()){case 40:if(108!=p&&58==h1(M,d-1)){-1!=f1(M+=d1(I1(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=I1(v);break;case 9:case 10:case 13:case 32:M+=L1(p);break;case 92:M+=P1(T1()-1,7);continue;case 47:switch(N1()){case 42:case 47:y1(H1(z1(O1(),T1()),t,n),l);break;default:M+="/"}break;case 123*m:s[c++]=m1(M)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(M=d1(M,/\f/g,"")),h>0&&m1(M)-d&&y1(h>32?V1(M+";",r,n,d-1):V1(d1(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(y1(w=B1(M,t,n,c,u,i,s,b,x=[],S=[],d),o),123===v)if(0===u)$1(M,t,w,w,x,o,d,s,S);else switch(99===f&&110===h1(M,3)?100:f){case 100:case 108:case 109:case 115:$1(e,w,w,r&&y1(B1(e,w,w,0,0,i,s,b,i,x=[],d),S),i,S,d,s,r?x:S);break;default:$1(M,w,w,w,[""],S,0,s,S)}}c=u=h=0,m=y=1,b=M="",d=a;break;case 58:d=1+m1(M),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==C1())continue;switch(M+=l1(v),v*m){case 38:y=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(m1(M)-1)*y,y=1;break;case 64:45===N1()&&(M+=I1(O1())),f=N1(),u=d=m1(b=M+=F1(T1())),v++;break;case 45:45===p&&2==m1(M)&&(m=0)}}return o}function B1(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=g1(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=p1(e,d+1,d=s1(m=a[p])),b=e;y<h;++y)(b=u1(m>0?f[y]+" "+v:d1(v,/&\f/g,f[y])))&&(l[g++]=b);return k1(e,t,n,0===i?i1:s,l,c,u)}function H1(e,t,n){return k1(e,t,n,r1,l1(w1),p1(e,2,-2),0)}function V1(e,t,n,r){return k1(e,t,n,o1,p1(e,0,r),p1(e,r+1,-1),r)}function U1(e,t){for(var n="",r=g1(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function W1(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case o1:return e.return=e.return||e.value;case r1:return"";case a1:return e.return=e.value+"{"+U1(e.children,r)+"}";case i1:e.value=e.props.join(",")}return m1(n=U1(e.children,r))?e.return=e.value+"{"+n+"}":""}function Y1(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var G1=function(e,t,n){for(var r=0,i=0;r=i,i=N1(),38===r&&12===i&&(t[n]=1),!R1(i);)O1();return A1(e,S1)},K1=function(e,t){return D1(function(e,t){var n=-1,r=44;do{switch(R1(r)){case 0:38===r&&12===N1()&&(t[n]=1),e[n]+=G1(S1-1,t,n);break;case 2:e[n]+=I1(r);break;case 4:if(44===r){e[++n]=58===N1()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=l1(r)}}while(r=O1());return e}(q1(e),t))},X1=new WeakMap,J1=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||X1.get(n))&&!r){X1.set(e,!0);for(var i=[],o=K1(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},Z1=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Q1(e,t){switch(function(e,t){return 45^h1(e,0)?(((t<<2^h1(e,0))<<2^h1(e,1))<<2^h1(e,2))<<2^h1(e,3):0}(e,t)){case 5103:return n1+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return n1+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return n1+e+t1+e+e1+e+e;case 6828:case 4268:return n1+e+e1+e+e;case 6165:return n1+e+e1+"flex-"+e+e;case 5187:return n1+e+d1(e,/(\w+).+(:[^]+)/,n1+"box-$1$2"+e1+"flex-$1$2")+e;case 5443:return n1+e+e1+"flex-item-"+d1(e,/flex-|-self/,"")+e;case 4675:return n1+e+e1+"flex-line-pack"+d1(e,/align-content|flex-|-self/,"")+e;case 5548:return n1+e+e1+d1(e,"shrink","negative")+e;case 5292:return n1+e+e1+d1(e,"basis","preferred-size")+e;case 6060:return n1+"box-"+d1(e,"-grow","")+n1+e+e1+d1(e,"grow","positive")+e;case 4554:return n1+d1(e,/([^-])(transform)/g,"$1"+n1+"$2")+e;case 6187:return d1(d1(d1(e,/(zoom-|grab)/,n1+"$1"),/(image-set)/,n1+"$1"),e,"")+e;case 5495:case 3959:return d1(e,/(image-set\([^]*)/,n1+"$1$`$1");case 4968:return d1(d1(e,/(.+:)(flex-)?(.*)/,n1+"box-pack:$3"+e1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+n1+e+e;case 4095:case 3583:case 4068:case 2532:return d1(e,/(.+)-inline(.+)/,n1+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(m1(e)-1-t>6)switch(h1(e,t+1)){case 109:if(45!==h1(e,t+4))break;case 102:return d1(e,/(.+:)(.+)-([^]+)/,"$1"+n1+"$2-$3$1"+t1+(108==h1(e,t+3)?"$3":"$2-$3"))+e;case 115:return~f1(e,"stretch")?Q1(d1(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==h1(e,t+1))break;case 6444:switch(h1(e,m1(e)-3-(~f1(e,"!important")&&10))){case 107:return d1(e,":",":"+n1)+e;case 101:return d1(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+n1+(45===h1(e,14)?"inline-":"")+"box$3$1"+n1+"$2$3$1"+e1+"$2box$3")+e}break;case 5936:switch(h1(e,t+11)){case 114:return n1+e+e1+d1(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return n1+e+e1+d1(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return n1+e+e1+d1(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return n1+e+e1+e+e}return e}var e2=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case o1:e.return=Q1(e.value,e.length);break;case a1:return U1([E1(e,{value:d1(e.value,"@","@"+n1)})],r);case i1:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U1([E1(e,{props:[d1(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return U1([E1(e,{props:[d1(t,/:(plac\w+)/,":"+n1+"input-$1")]}),E1(e,{props:[d1(t,/:(plac\w+)/,":-moz-$1")]}),E1(e,{props:[d1(t,/:(plac\w+)/,e1+"input-$1")]})],r)}return""}))}}],t2=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||e2,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[W1,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=g1(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([J1,Z1].concat(o,u));i=function(e,t,n,r){l=n,function(e){U1(j1(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Q0({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f};function n2(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var r2=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i2=function(e,t,n){r2(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var o2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a2=/[A-Z]|^ms/g,s2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l2=function(e){return 45===e.charCodeAt(1)},c2=function(e){return null!=e&&"boolean"!=typeof e},u2=Y1((function(e){return l2(e)?e:e.replace(a2,"-$&").toLowerCase()})),d2=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s2,(function(e,t,n){return h2={name:t,styles:n,next:h2},t}))}return 1===o2[e]||l2(e)||"number"!=typeof t||0===t?t:t+"px"};function f2(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return h2={name:i.name,styles:i.styles,next:h2},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)h2={name:a.name,styles:a.styles,next:h2},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f2(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":c2(s)&&(r+=u2(o)+":"+d2(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=f2(e,t,a);switch(o){case"animation":case"animationName":r+=u2(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)c2(a[c])&&(r+=u2(o)+":"+d2(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=h2,l=n(e);return h2=s,f2(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var h2,p2=/label:\s*([^\s;{]+)\s*(;|$)/g;function m2(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";h2=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=f2(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=f2(n,t,e[a]),r)i+=o[a]}p2.lastIndex=0;for(var s,l="";null!==(s=p2.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:h2}}var g2,y2,v2=!!TI.useInsertionEffect&&TI.useInsertionEffect,b2=v2||function(e){return e()},x2=v2||OI.useLayoutEffect,S2=OI.createContext("undefined"!=typeof HTMLElement?t2({key:"css"}):null),w2=S2.Provider,M2=function(e){return OI.forwardRef((function(t,n){var r=OI.useContext(S2);return e(t,r,n)}))},k2=OI.createContext({}),E2={}.hasOwnProperty,C2="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",O2=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return r2(t,n,r),b2((function(){return i2(t,n,r)})),null},N2=M2((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[C2],o=[r],a="";"string"==typeof e.className?a=n2(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=m2(o,void 0,OI.useContext(k2));a+=t.key+"-"+s.name;var l={};for(var c in e)E2.call(e,c)&&"css"!==c&&c!==C2&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),OI.createElement(OI.Fragment,null,OI.createElement(O2,{cache:t,serialized:s,isStringTag:"string"==typeof i}),OI.createElement(i,l))})),T2=N2,A2=function(e,t){var n=arguments;if(null==t||!E2.call(t,"css"))return OI.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=T2,i[1]=function(e,t){var n={};for(var r in t)E2.call(t,r)&&(n[r]=t[r]);return n[C2]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return OI.createElement.apply(null,i)};g2=A2||(A2={}),y2||(y2=g2.JSX||(g2.JSX={}));var R2=M2((function(e,t){var n=m2([e.styles],void 0,OI.useContext(k2)),r=OI.useRef();return x2((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),x2((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&i2(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function q2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m2(t)}function D2(){var e=q2.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var I2=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,L2=Y1((function(e){return I2.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),P2=function(e){return"theme"!==e},_2=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?L2:P2},z2=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},F2=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return r2(t,n,r),b2((function(){return i2(t,n,r)})),null},j2=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=z2(t,n,o),l=s||_2(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var h=u.length,p=1;p<h;p++)d.push(u[p],f[p])}var m=M2((function(e,t,n){var r=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=OI.useContext(k2)}"string"==typeof e.className?o=n2(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var p=m2(d.concat(u),t.registered,f);o+=t.key+"-"+p.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?_2(r):l,g={};for(var y in e)c&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=o,n&&(g.ref=n),OI.createElement(OI.Fragment,null,OI.createElement(F2,{cache:t,serialized:p,isStringTag:"string"==typeof r}),OI.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,wL({},n,r,{shouldForwardProp:z2(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){j2[e]=j2(e)}));var $2={exports:{}},B2={},H2=OI,V2=Symbol.for("react.element"),U2=Symbol.for("react.fragment"),W2=Object.prototype.hasOwnProperty,Y2=H2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,G2={key:!0,ref:!0,__self:!0,__source:!0};function K2(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)W2.call(t,r)&&!G2.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:V2,type:e,key:o,ref:a,props:i,_owner:Y2.current}}B2.Fragment=U2,B2.jsx=K2,B2.jsxs=K2,$2.exports=B2;var X2=$2.exports;let J2;"object"==typeof document&&(J2=t2({key:"css",prepend:!0}));var Z2=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return X2.jsx(R2,{styles:r})}
43
43
  /**
44
44
  * @mui/styled-engine v5.16.14
45
45
  *
46
46
  * @license MIT
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&Q2?Z2.jsx(k2,{value:Q2,children:n}):n},ThemeContext:C2,css:I2,default:function(e,t){return B2(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:L2});function t5(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function n5(e){if(OI.isValidElement(e)||!t5(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=n5(e[n])})),t}function r5(e,t,n={clone:!0}){const r=n.clone?wL({},e):e;return t5(e)&&t5(t)&&Object.keys(t).forEach((i=>{OI.isValidElement(t[i])?r[i]=t[i]:t5(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&t5(e[i])?r[i]=r5(e[i],t[i],n):n.clone?r[i]=t5(t[i])?n5(t[i]):t[i]:r[i]=t[i]})),r}var i5=Object.freeze({__proto__:null,default:r5,isPlainObject:t5});const o5=["values","unit","step"];function a5(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=IL(e,o5),o=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>wL({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return wL({keys:a,values:o,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},i)}const s5={borderRadius:4};function l5(e,t){return t?r5(e,t,{clone:!1}):e}const c5={xs:0,sm:600,md:900,lg:1200,xl:1536},u5={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${c5[e]}px)`};function d5(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||u5;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||u5;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||c5).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function f5(e){if("string"!=typeof e)throw new Error(Z0(7));return e.charAt(0).toUpperCase()+e.slice(1)}var h5=Object.freeze({__proto__:null,default:f5});function p5(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function m5(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:p5(e,n)||r,t&&(i=t(i,r,e)),i}function g5(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=p5(e.theme,r)||{};return d5(e,o,(e=>{let r=m5(a,i,e);return e===r&&"string"==typeof e&&(r=m5(a,i,`${t}${"default"===e?"":f5(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const y5={m:"margin",p:"padding"},v5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},b5={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},x5=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!b5[e])return[e];e=b5[e]}const[t,n]=e.split(""),r=y5[t],i=v5[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),S5=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],w5=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function M5(e,t,n,r){var i;const o=null!=(i=p5(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function k5(e){return M5(e,"spacing",8)}function E5(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function C5(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=E5(t,n),e)),{})}(x5(n),r);return d5(e,e[n],i)}function O5(e,t){const n=k5(e.theme);return Object.keys(e).map((r=>C5(e,t,r,n))).reduce(l5,{})}function N5(e){return O5(e,S5)}function T5(e){return O5(e,w5)}function A5(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?l5(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function R5(e){return"number"!=typeof e?e:`${e}px solid`}function q5(e,t){return g5({prop:e,themeKey:"borders",transform:t})}N5.propTypes={},N5.filterProps=S5,T5.propTypes={},T5.filterProps=w5;const D5=q5("border",R5),I5=q5("borderTop",R5),L5=q5("borderRight",R5),P5=q5("borderBottom",R5),_5=q5("borderLeft",R5),z5=q5("borderColor"),F5=q5("borderTopColor"),j5=q5("borderRightColor"),$5=q5("borderBottomColor"),B5=q5("borderLeftColor"),H5=q5("outline",R5),V5=q5("outlineColor"),U5=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=M5(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:E5(t,e)});return d5(e,e.borderRadius,n)}return null};U5.propTypes={},U5.filterProps=["borderRadius"],A5(D5,I5,L5,P5,_5,z5,F5,j5,$5,B5,U5,H5,V5);const W5=e=>{if(void 0!==e.gap&&null!==e.gap){const t=M5(e.theme,"spacing",8),n=e=>({gap:E5(t,e)});return d5(e,e.gap,n)}return null};W5.propTypes={},W5.filterProps=["gap"];const Y5=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=M5(e.theme,"spacing",8),n=e=>({columnGap:E5(t,e)});return d5(e,e.columnGap,n)}return null};Y5.propTypes={},Y5.filterProps=["columnGap"];const G5=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=M5(e.theme,"spacing",8),n=e=>({rowGap:E5(t,e)});return d5(e,e.rowGap,n)}return null};G5.propTypes={},G5.filterProps=["rowGap"];function K5(e,t){return"grey"===t?t:e}A5(W5,Y5,G5,g5({prop:"gridColumn"}),g5({prop:"gridRow"}),g5({prop:"gridAutoFlow"}),g5({prop:"gridAutoColumns"}),g5({prop:"gridAutoRows"}),g5({prop:"gridTemplateColumns"}),g5({prop:"gridTemplateRows"}),g5({prop:"gridTemplateAreas"}),g5({prop:"gridArea"}));function X5(e){return e<=1&&0!==e?100*e+"%":e}A5(g5({prop:"color",themeKey:"palette",transform:K5}),g5({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:K5}),g5({prop:"backgroundColor",themeKey:"palette",transform:K5}));const J5=g5({prop:"width",transform:X5}),Z5=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||c5[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:X5(t)}};return d5(e,e.maxWidth,t)}return null};Z5.filterProps=["maxWidth"];const Q5=g5({prop:"minWidth",transform:X5}),e3=g5({prop:"height",transform:X5}),t3=g5({prop:"maxHeight",transform:X5}),n3=g5({prop:"minHeight",transform:X5});g5({prop:"size",cssProperty:"width",transform:X5}),g5({prop:"size",cssProperty:"height",transform:X5});A5(J5,Z5,Q5,e3,t3,n3,g5({prop:"boxSizing"}));const r3={border:{themeKey:"borders",transform:R5},borderTop:{themeKey:"borders",transform:R5},borderRight:{themeKey:"borders",transform:R5},borderBottom:{themeKey:"borders",transform:R5},borderLeft:{themeKey:"borders",transform:R5},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:R5},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:U5},color:{themeKey:"palette",transform:K5},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:K5},backgroundColor:{themeKey:"palette",transform:K5},p:{style:T5},pt:{style:T5},pr:{style:T5},pb:{style:T5},pl:{style:T5},px:{style:T5},py:{style:T5},padding:{style:T5},paddingTop:{style:T5},paddingRight:{style:T5},paddingBottom:{style:T5},paddingLeft:{style:T5},paddingX:{style:T5},paddingY:{style:T5},paddingInline:{style:T5},paddingInlineStart:{style:T5},paddingInlineEnd:{style:T5},paddingBlock:{style:T5},paddingBlockStart:{style:T5},paddingBlockEnd:{style:T5},m:{style:N5},mt:{style:N5},mr:{style:N5},mb:{style:N5},ml:{style:N5},mx:{style:N5},my:{style:N5},margin:{style:N5},marginTop:{style:N5},marginRight:{style:N5},marginBottom:{style:N5},marginLeft:{style:N5},marginX:{style:N5},marginY:{style:N5},marginInline:{style:N5},marginInlineStart:{style:N5},marginInlineEnd:{style:N5},marginBlock:{style:N5},marginBlockStart:{style:N5},marginBlockEnd:{style:N5},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:W5},rowGap:{style:G5},columnGap:{style:Y5},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:X5},maxWidth:{style:Z5},minWidth:{transform:X5},height:{transform:X5},maxHeight:{transform:X5},minHeight:{transform:X5},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function i3(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=p5(n,s)||{};if(c)return c(i);return d5(i,t,(t=>{let n=m5(u,l,t);return t===n&&"string"==typeof t&&(n=m5(u,l,`${e}${"default"===t?"":f5(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=null!=(r=o.unstable_sxConfig)?r:r3;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(o.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],c=o,"function"==typeof s?s(c):s);var s,c;if(null!=i)if("object"==typeof i)if(a[n])l=l5(l,e(n,i,o,a));else{const e=d5({theme:o},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?l=l5(l,e):l[n]=t({sx:i,theme:o})}else l=l5(l,e(n,i,o,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}const o3=i3();function a3(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}o3.filterProps=["sx"];const s3=["breakpoints","palette","spacing","shape"];function l3(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=IL(e,s3),s=a5(n),l=function(e=8){if(e.mui)return e;const t=k5({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=r5({breakpoints:s,direction:"ltr",components:{},palette:wL({mode:"light"},r),spacing:l,shape:wL({},s5,o)},a);return c.applyStyles=a3,c=t.reduce(((e,t)=>r5(e,t)),c),c.unstable_sxConfig=wL({},r3,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return o3({sx:e,theme:this})},c}var c3=Object.freeze({__proto__:null,default:l3,private_createBreakpoints:a5,unstable_applyStyles:a3});function u3(e=null){const t=OI.useContext(C2);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const d3=l3();function f3(e=d3){return u3(e)}const h3=["sx"];function p3(e){const{sx:t}=e,n=IL(e,h3),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:r3;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return t5(n)?wL({},r,n):r}:wL({},r,t),wL({},i,{sx:o})}var m3=Object.freeze({__proto__:null,default:o3,extendSxProp:p3,unstable_createStyleFunctionSx:i3,unstable_defaultSxConfig:r3});const g3=e=>e,y3=(()=>{let e=g3;return{configure(t){e=t},generate:t=>e(t),reset(){e=g3}}})();function v3(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=v3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function b3(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=v3(e))&&(r&&(r+=" "),r+=t);return r}const x3={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function S3(e,t,n="Mui"){const r=x3[t];return r?`${n}-${r}`:`${y3.generate(e)}-${t}`}function w3(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=S3(e,t,n)})),r}var M3={exports:{}},k3={},E3=Symbol.for("react.transitional.element"),C3=Symbol.for("react.portal"),O3=Symbol.for("react.fragment"),N3=Symbol.for("react.strict_mode"),T3=Symbol.for("react.profiler"),A3=Symbol.for("react.consumer"),R3=Symbol.for("react.context"),q3=Symbol.for("react.forward_ref"),D3=Symbol.for("react.suspense"),I3=Symbol.for("react.suspense_list"),L3=Symbol.for("react.memo"),P3=Symbol.for("react.lazy"),_3=Symbol.for("react.offscreen"),z3=Symbol.for("react.client.reference");function F3(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case E3:switch(e=e.type){case O3:case T3:case N3:case D3:case I3:return e;default:switch(e=e&&e.$$typeof){case R3:case q3:case P3:case L3:case A3:return e;default:return t}}case C3:return t}}}k3.ContextConsumer=A3,k3.ContextProvider=R3,k3.Element=E3,k3.ForwardRef=q3,k3.Fragment=O3,k3.Lazy=P3,k3.Memo=L3,k3.Portal=C3,k3.Profiler=T3,k3.StrictMode=N3,k3.Suspense=D3,k3.SuspenseList=I3,k3.isContextConsumer=function(e){return F3(e)===A3},k3.isContextProvider=function(e){return F3(e)===R3},k3.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===E3},k3.isForwardRef=function(e){return F3(e)===q3},k3.isFragment=function(e){return F3(e)===O3},k3.isLazy=function(e){return F3(e)===P3},k3.isMemo=function(e){return F3(e)===L3},k3.isPortal=function(e){return F3(e)===C3},k3.isProfiler=function(e){return F3(e)===T3},k3.isStrictMode=function(e){return F3(e)===N3},k3.isSuspense=function(e){return F3(e)===D3},k3.isSuspenseList=function(e){return F3(e)===I3},k3.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===O3||e===T3||e===N3||e===D3||e===I3||e===_3||"object"==typeof e&&null!==e&&(e.$$typeof===P3||e.$$typeof===L3||e.$$typeof===R3||e.$$typeof===A3||e.$$typeof===q3||e.$$typeof===z3||void 0!==e.getModuleId)},k3.typeOf=F3,M3.exports=k3;var j3=M3.exports;const $3=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function B3(e){const t=`${e}`.match($3);return t&&t[1]||""}function H3(e,t=""){return e.displayName||e.name||B3(e)||t}function V3(e,t,n){const r=H3(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var U3=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return H3(e,"Component");if("object"==typeof e)switch(e.$$typeof){case j3.ForwardRef:return V3(e,e.render,"ForwardRef");case j3.Memo:return V3(e,e.type,"memo");default:return}}},getFunctionName:B3});function W3(e,t){const n=wL({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=wL({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=wL({},o),Object.keys(i).forEach((e=>{n[r][e]=W3(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function Y3({props:e,name:t,defaultTheme:n,themeId:r}){let i=f3(n);i=i[r]||i;const o=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?W3(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}const G3="undefined"!=typeof window?OI.useLayoutEffect:OI.useEffect;var K3=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function X3(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function J3(e){return e&&e.ownerDocument||document}function Z3(e){return J3(e).defaultView||window}function Q3(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function e4(e){const t=OI.useRef(e);return G3((()=>{t.current=e})),OI.useRef(((...e)=>(0,t.current)(...e))).current}function t4(...e){return OI.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Q3(e,t)}))}),e)}const n4={};const r4=[];class i4{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new i4}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function o4(){const e=function(e,t){const n=OI.useRef(n4);return n.current===n4&&(n.current=e(t)),n}(i4.create).current;return function(e){OI.useEffect(e,r4)}(e.disposeEffect),e}let a4=!0,s4=!1;const l4=new i4,c4={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 u4(e){e.metaKey||e.altKey||e.ctrlKey||(a4=!0)}function d4(){a4=!1}function f4(){"hidden"===this.visibilityState&&s4&&(a4=!0)}function h4(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return a4||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!c4[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p4(){const e=OI.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",u4,!0),t.addEventListener("mousedown",d4,!0),t.addEventListener("pointerdown",d4,!0),t.addEventListener("touchstart",d4,!0),t.addEventListener("visibilitychange",f4,!0))}),[]),t=OI.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!h4(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(s4=!0,l4.start(100,(()=>{s4=!1})),t.current=!1,!0)},ref:e}}function m4(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const g4=OI.createContext(null);function y4(){return OI.useContext(g4)}var v4="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function b4(e){const{children:t,theme:n}=e,r=y4(),i=OI.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return wL({},e,t)}(r,n);return null!=e&&(e[v4]=null!==r),e}),[n,r]);return Z2.jsx(g4.Provider,{value:i,children:t})}const x4=["value"],S4=OI.createContext();function w4(e){let{value:t}=e,n=IL(e,x4);return Z2.jsx(S4.Provider,wL({value:null==t||t},n))}const M4=OI.createContext(void 0);function k4({value:e,children:t}){return Z2.jsx(M4.Provider,{value:e,children:t})}const E4={};function C4(e,t,n,r=!1){return OI.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?wL({},t,{[e]:o}):o;return r?()=>a:a}return wL({},t,e?{[e]:n}:n)}),[e,t,n,r])}function O4(e){const{children:t,theme:n,themeId:r}=e,i=u3(E4),o=y4()||E4,a=C4(r,i,n),s=C4(r,o,n,!0),l="rtl"===a.direction;return Z2.jsx(b4,{theme:s,children:Z2.jsx(C2.Provider,{value:a,children:Z2.jsx(w4,{value:l,children:Z2.jsx(k4,{value:null==a?void 0:a.components,children:t})})})})}var N4={},T4={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(T4);var A4=T4.exports,R4=i(Q0),q4=i(K3),D4=A4;Object.defineProperty(N4,"__esModule",{value:!0});var I4=N4.alpha=Y4;N4.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=B4(e),a=B4(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return V4({type:"rgb",values:s})},N4.colorChannel=void 0;var L4=N4.darken=G4;N4.decomposeColor=B4,N4.emphasize=X4;var P4=N4.getContrastRatio=function(e,t){const n=W4(e),r=W4(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};N4.getLuminance=W4,N4.hexToRgb=$4,N4.hslToRgb=U4;var _4=N4.lighten=K4;N4.private_safeAlpha=function(e,t,n){try{return Y4(e,t)}catch(t){return e}},N4.private_safeColorChannel=void 0,N4.private_safeDarken=function(e,t,n){try{return G4(e,t)}catch(t){return e}},N4.private_safeEmphasize=function(e,t,n){try{return X4(e,t)}catch(t){return e}},N4.private_safeLighten=function(e,t,n){try{return K4(e,t)}catch(t){return e}},N4.recomposeColor=V4,N4.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=B4(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var z4=D4(R4),F4=D4(q4);function j4(e,t=0,n=1){return(0,F4.default)(e,t,n)}function $4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function B4(e){if(e.type)return e;if("#"===e.charAt(0))return B4($4(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,z4.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,z4.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const H4=e=>{const t=B4(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};N4.colorChannel=H4;function V4(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function U4(e){e=B4(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const 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])),V4({type:s,values:l})}function W4(e){let t="hsl"===(e=B4(e)).type||"hsla"===e.type?B4(U4(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Y4(e,t){return e=B4(e),t=j4(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,V4(e)}function G4(e,t){if(e=B4(e),t=j4(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return V4(e)}function K4(e,t){if(e=B4(e),t=j4(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return V4(e)}function X4(e,t=.15){return W4(e)>.5?G4(e,t):K4(e,t)}N4.private_safeColorChannel=(e,t)=>{try{return H4(e)}catch(t){return e}};const J4=["mode","contrastThreshold","tonalOffset"],Z4={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:v0.white,default:v0.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Q4={text:{primary:v0.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:v0.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function e6(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=_4(e.main,i):"dark"===t&&(e.dark=L4(e.main,o)))}function t6(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=IL(e,J4),o=e.primary||function(e="light"){return"dark"===e?{main:R0,light:A0,dark:q0}:{main:D0,light:q0,dark:I0}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:E0,light:k0,dark:O0}:{main:N0,light:C0,dark:T0}}(t),s=e.error||function(e="light"){return"dark"===e?{main:S0,light:b0,dark:w0}:{main:w0,light:x0,dark:M0}}(t),l=e.info||function(e="light"){return"dark"===e?{main:P0,light:L0,dark:z0}:{main:z0,light:_0,dark:F0}}(t),c=e.success||function(e="light"){return"dark"===e?{main:$0,light:j0,dark:H0}:{main:V0,light:B0,dark:U0}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Y0,light:W0,dark:K0}:{main:"#ed6c02",light:G0,dark:X0}}(t);function d(e){return P4(e,Q4.text.primary)>=n?Q4.text.primary:Z4.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=wL({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Z0(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Z0(12,t?` (${t})`:"",JSON.stringify(e.main)));return e6(e,"light",i,r),e6(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:Q4,light:Z4};return r5(wL({common:wL({},v0),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:J0,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const n6=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function r6(e){return Math.round(1e5*e)/1e5}const i6={textTransform:"uppercase"},o6='"Roboto", "Helvetica", "Arial", sans-serif';function a6(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=o6,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=IL(n,n6),h=i/14,p=d||(e=>e/c*h+"rem"),m=(e,t,n,i,o)=>wL({fontFamily:r,fontWeight:e,fontSize:p(t),lineHeight:n},r===o6?{letterSpacing:`${r6(i/t)}em`}:{},o,u),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,i6),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,i6),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return r5(wL({htmlFontSize:c,pxToRem:p,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function s6(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const l6=["none",s6(0,2,1,-1,0,1,1,0,0,1,3,0),s6(0,3,1,-2,0,2,2,0,0,1,5,0),s6(0,3,3,-2,0,3,4,0,0,1,8,0),s6(0,2,4,-1,0,4,5,0,0,1,10,0),s6(0,3,5,-1,0,5,8,0,0,1,14,0),s6(0,3,5,-1,0,6,10,0,0,1,18,0),s6(0,4,5,-2,0,7,10,1,0,2,16,1),s6(0,5,5,-3,0,8,10,1,0,3,14,2),s6(0,5,6,-3,0,9,12,1,0,3,16,2),s6(0,6,6,-3,0,10,14,1,0,4,18,3),s6(0,6,7,-4,0,11,15,1,0,4,20,3),s6(0,7,8,-4,0,12,17,2,0,5,22,4),s6(0,7,8,-4,0,13,19,2,0,5,24,4),s6(0,7,9,-4,0,14,21,2,0,5,26,4),s6(0,8,9,-5,0,15,22,2,0,6,28,5),s6(0,8,10,-5,0,16,24,2,0,6,30,5),s6(0,8,11,-5,0,17,26,2,0,6,32,5),s6(0,9,11,-5,0,18,28,2,0,7,34,6),s6(0,9,12,-6,0,19,29,2,0,7,36,6),s6(0,10,13,-6,0,20,31,3,0,8,38,7),s6(0,10,13,-6,0,21,33,3,0,8,40,7),s6(0,10,14,-6,0,22,35,3,0,8,42,7),s6(0,11,14,-7,0,23,36,3,0,9,44,8),s6(0,11,15,-7,0,24,38,3,0,9,46,8)],c6=["duration","easing","delay"],u6={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)"},d6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function f6(e){return`${Math.round(e)}ms`}function h6(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function p6(e){const t=wL({},u6,e.easing),n=wL({},d6,e.duration);return wL({getAutoHeightDuration:h6,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return IL(r,c6),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:f6(i)} ${o} ${"string"==typeof a?a:f6(a)}`)).join(",")}},e,{easing:t,duration:n})}const m6={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},g6=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function y6(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=IL(e,g6);if(e.vars)throw new Error(Z0(18));const s=t6(r),l=l3(e);let c=r5(l,{mixins:(u=l.breakpoints,d=n,wL({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:l6.slice(),typography:a6(s,o),transitions:p6(i),zIndex:wL({},m6)});var u,d;return c=r5(c,a),c=t.reduce(((e,t)=>r5(e,t)),c),c.unstable_sxConfig=wL({},r3,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return o3({sx:e,theme:this})},c}const v6=y6();function b6(){const e=f3(v6);return e[e1]||e}function x6({props:e,name:t}){return Y3({props:e,name:t,defaultTheme:v6,themeId:e1})}var S6,w6={},M6={exports:{}};var k6,E6={exports:{}};var C6=i(e5),O6=i(i5),N6=i(h5),T6=i(U3),A6=i(c3),R6=i(m3),q6=A4;Object.defineProperty(w6,"__esModule",{value:!0});var D6=w6.default=function(e={}){const{themeId:t,defaultTheme:n=U6,rootShouldForwardProp:r=V6,slotShouldForwardProp:i=V6}=e,o=e=>(0,F6.default)((0,I6.default)({},e,{theme:Y6((0,I6.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,P6.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=G6(W6(l))}=a,f=(0,L6.default)(a,B6),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,p=u||!1;let m=V6;"Root"===l||"root"===l?m=r:l?m=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,P6.default)(e,(0,I6.default)({shouldForwardProp:m,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,_6.isPlainObject)(e)?r=>K6(e,(0,I6.default)({},r,{theme:Y6({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=Y6((0,I6.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=K6(n,(0,I6.default)({},e,{theme:r}))})),d(e,o)})),s&&!h&&l.push((e=>{var r;const i=Y6((0,I6.default)({},e,{defaultTheme:n,themeId:t}));return K6({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,I6.default)({},e,{theme:i}))})),p||l.push(o);const c=l.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}};w6.shouldForwardProp=V6,w6.systemDefaultTheme=void 0;var I6=q6((S6||(S6=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(M6)),M6.exports)),L6=q6((k6||(k6=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(E6)),E6.exports)),P6=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=H6(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(C6),_6=O6;q6(N6),q6(T6);var z6=q6(A6),F6=q6(R6);const j6=["ownerState"],$6=["variants"],B6=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function H6(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(H6=function(e){return e?n:t})(e)}function V6(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const U6=w6.systemDefaultTheme=(0,z6.default)(),W6=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Y6({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function G6(e){return e?(t,n)=>n[e]:null}function K6(e,t){let{ownerState:n}=t,r=(0,L6.default)(t,j6);const i="function"==typeof e?e((0,I6.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>K6(e,(0,I6.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,L6.default)(i,$6);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,I6.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,I6.default)({ownerState:n},r,n)):e.style))})),t}return i}const X6=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,J6=D6({themeId:e1,defaultTheme:v6,rootShouldForwardProp:X6}),Z6=["theme"];function Q6(e){let{theme:t}=e,n=IL(e,Z6);const r=t[e1];return Z2.jsx(O4,wL({},n,{themeId:r?e1:void 0,theme:r||t}))}const e8=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function t8(e){return S3("MuiSvgIcon",e)}w3("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const n8=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],r8=J6("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${f5(n.color)}`],t[`fontSize${f5(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[t.color]}})),i8=OI.forwardRef((function(e,t){const n=x6({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,f=IL(n,n8),h=OI.isValidElement(r)&&"svg"===r.type,p=wL({},n,{color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:h}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return m4({root:["root","inherit"!==t&&`color${f5(t)}`,`fontSize${f5(n)}`]},t8,r)})(p);return Z2.jsxs(r8,wL({as:a,className:b3(g.root,i),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,f,h&&r.props,{ownerState:p,children:[h?r.props.children:r,u?Z2.jsx("title",{children:u}):null]}))}));i8.muiName="SvgIcon";const o8=e=>e.scrollTop;function a8(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}function s8(e){return S3("MuiPaper",e)}w3("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const l8=["className","component","elevation","square","variant"],c8=J6("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return wL({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&wL({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${I4("#fff",e8(t.elevation))}, ${I4("#fff",e8(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),u8=OI.forwardRef((function(e,t){const n=x6({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=n,l=IL(n,l8),c=wL({},n,{component:i,elevation:o,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return m4({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},s8,i)})(c);return Z2.jsx(c8,wL({as:i,ownerState:c,className:b3(u.root,r),ref:t},l))}));function d8(e){return"string"==typeof e}function f8(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function h8(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const p8=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function m8(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=IL(e,p8),s=o?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,i),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=b3(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=wL({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=wL({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=f8(wL({},i,r)),s=h8(r),l=h8(i),c=t(a),u=b3(null==c?void 0:c.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d=wL({},null==c?void 0:c.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),f=wL({},c,n,l,s);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}(wL({},a,{externalSlotProps:s})),u=function(e,t,n){return void 0===e||d8(e)?t:wL({},t,{ownerState:wL({},t.ownerState,n)})}(n,wL({},l,{ref:t4(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return u}const g8=w3("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),y8=["center","classes","className"];let v8,b8,x8,S8,w8=e=>e;const M8=L2(v8||(v8=w8`
49
+ */,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&J2?X2.jsx(w2,{value:J2,children:n}):n},ThemeContext:k2,css:q2,default:function(e,t){return j2(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:D2});function Q2(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function e5(e){if(OI.isValidElement(e)||!Q2(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=e5(e[n])})),t}function t5(e,t,n={clone:!0}){const r=n.clone?wL({},e):e;return Q2(e)&&Q2(t)&&Object.keys(t).forEach((i=>{OI.isValidElement(t[i])?r[i]=t[i]:Q2(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Q2(e[i])?r[i]=t5(e[i],t[i],n):n.clone?r[i]=Q2(t[i])?e5(t[i]):t[i]:r[i]=t[i]})),r}var n5=Object.freeze({__proto__:null,default:t5,isPlainObject:Q2});const r5=["values","unit","step"];function i5(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=IL(e,r5),o=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>wL({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return wL({keys:a,values:o,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},i)}const o5={borderRadius:4};function a5(e,t){return t?t5(e,t,{clone:!1}):e}const s5={xs:0,sm:600,md:900,lg:1200,xl:1536},l5={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${s5[e]}px)`};function c5(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||l5;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||l5;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||s5).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function u5(e){if("string"!=typeof e)throw new Error(X0(7));return e.charAt(0).toUpperCase()+e.slice(1)}var d5=Object.freeze({__proto__:null,default:u5});function f5(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function h5(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:f5(e,n)||r,t&&(i=t(i,r,e)),i}function p5(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=f5(e.theme,r)||{};return c5(e,o,(e=>{let r=h5(a,i,e);return e===r&&"string"==typeof e&&(r=h5(a,i,`${t}${"default"===e?"":u5(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const m5={m:"margin",p:"padding"},g5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},y5={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},v5=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!y5[e])return[e];e=y5[e]}const[t,n]=e.split(""),r=m5[t],i=g5[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),b5=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],x5=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function S5(e,t,n,r){var i;const o=null!=(i=f5(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function w5(e){return S5(e,"spacing",8)}function M5(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function k5(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=M5(t,n),e)),{})}(v5(n),r);return c5(e,e[n],i)}function E5(e,t){const n=w5(e.theme);return Object.keys(e).map((r=>k5(e,t,r,n))).reduce(a5,{})}function C5(e){return E5(e,b5)}function O5(e){return E5(e,x5)}function N5(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?a5(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function T5(e){return"number"!=typeof e?e:`${e}px solid`}function A5(e,t){return p5({prop:e,themeKey:"borders",transform:t})}C5.propTypes={},C5.filterProps=b5,O5.propTypes={},O5.filterProps=x5;const R5=A5("border",T5),q5=A5("borderTop",T5),D5=A5("borderRight",T5),I5=A5("borderBottom",T5),L5=A5("borderLeft",T5),P5=A5("borderColor"),_5=A5("borderTopColor"),z5=A5("borderRightColor"),F5=A5("borderBottomColor"),j5=A5("borderLeftColor"),$5=A5("outline",T5),B5=A5("outlineColor"),H5=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=S5(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:M5(t,e)});return c5(e,e.borderRadius,n)}return null};H5.propTypes={},H5.filterProps=["borderRadius"],N5(R5,q5,D5,I5,L5,P5,_5,z5,F5,j5,H5,$5,B5);const V5=e=>{if(void 0!==e.gap&&null!==e.gap){const t=S5(e.theme,"spacing",8),n=e=>({gap:M5(t,e)});return c5(e,e.gap,n)}return null};V5.propTypes={},V5.filterProps=["gap"];const U5=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=S5(e.theme,"spacing",8),n=e=>({columnGap:M5(t,e)});return c5(e,e.columnGap,n)}return null};U5.propTypes={},U5.filterProps=["columnGap"];const W5=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=S5(e.theme,"spacing",8),n=e=>({rowGap:M5(t,e)});return c5(e,e.rowGap,n)}return null};W5.propTypes={},W5.filterProps=["rowGap"];function Y5(e,t){return"grey"===t?t:e}N5(V5,U5,W5,p5({prop:"gridColumn"}),p5({prop:"gridRow"}),p5({prop:"gridAutoFlow"}),p5({prop:"gridAutoColumns"}),p5({prop:"gridAutoRows"}),p5({prop:"gridTemplateColumns"}),p5({prop:"gridTemplateRows"}),p5({prop:"gridTemplateAreas"}),p5({prop:"gridArea"}));function G5(e){return e<=1&&0!==e?100*e+"%":e}N5(p5({prop:"color",themeKey:"palette",transform:Y5}),p5({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Y5}),p5({prop:"backgroundColor",themeKey:"palette",transform:Y5}));const K5=p5({prop:"width",transform:G5}),X5=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s5[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:G5(t)}};return c5(e,e.maxWidth,t)}return null};X5.filterProps=["maxWidth"];const J5=p5({prop:"minWidth",transform:G5}),Z5=p5({prop:"height",transform:G5}),Q5=p5({prop:"maxHeight",transform:G5}),e3=p5({prop:"minHeight",transform:G5});p5({prop:"size",cssProperty:"width",transform:G5}),p5({prop:"size",cssProperty:"height",transform:G5});N5(K5,X5,J5,Z5,Q5,e3,p5({prop:"boxSizing"}));const t3={border:{themeKey:"borders",transform:T5},borderTop:{themeKey:"borders",transform:T5},borderRight:{themeKey:"borders",transform:T5},borderBottom:{themeKey:"borders",transform:T5},borderLeft:{themeKey:"borders",transform:T5},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:T5},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:H5},color:{themeKey:"palette",transform:Y5},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Y5},backgroundColor:{themeKey:"palette",transform:Y5},p:{style:O5},pt:{style:O5},pr:{style:O5},pb:{style:O5},pl:{style:O5},px:{style:O5},py:{style:O5},padding:{style:O5},paddingTop:{style:O5},paddingRight:{style:O5},paddingBottom:{style:O5},paddingLeft:{style:O5},paddingX:{style:O5},paddingY:{style:O5},paddingInline:{style:O5},paddingInlineStart:{style:O5},paddingInlineEnd:{style:O5},paddingBlock:{style:O5},paddingBlockStart:{style:O5},paddingBlockEnd:{style:O5},m:{style:C5},mt:{style:C5},mr:{style:C5},mb:{style:C5},ml:{style:C5},mx:{style:C5},my:{style:C5},margin:{style:C5},marginTop:{style:C5},marginRight:{style:C5},marginBottom:{style:C5},marginLeft:{style:C5},marginX:{style:C5},marginY:{style:C5},marginInline:{style:C5},marginInlineStart:{style:C5},marginInlineEnd:{style:C5},marginBlock:{style:C5},marginBlockStart:{style:C5},marginBlockEnd:{style:C5},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:V5},rowGap:{style:W5},columnGap:{style:U5},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:G5},maxWidth:{style:X5},minWidth:{transform:G5},height:{transform:G5},maxHeight:{transform:G5},minHeight:{transform:G5},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function n3(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=f5(n,s)||{};if(c)return c(i);return c5(i,t,(t=>{let n=h5(u,l,t);return t===n&&"string"==typeof t&&(n=h5(u,l,`${e}${"default"===t?"":u5(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=null!=(r=o.unstable_sxConfig)?r:t3;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(o.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],c=o,"function"==typeof s?s(c):s);var s,c;if(null!=i)if("object"==typeof i)if(a[n])l=a5(l,e(n,i,o,a));else{const e=c5({theme:o},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?l=a5(l,e):l[n]=t({sx:i,theme:o})}else l=a5(l,e(n,i,o,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}const r3=n3();function i3(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}r3.filterProps=["sx"];const o3=["breakpoints","palette","spacing","shape"];function a3(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=IL(e,o3),s=i5(n),l=function(e=8){if(e.mui)return e;const t=w5({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=t5({breakpoints:s,direction:"ltr",components:{},palette:wL({mode:"light"},r),spacing:l,shape:wL({},o5,o)},a);return c.applyStyles=i3,c=t.reduce(((e,t)=>t5(e,t)),c),c.unstable_sxConfig=wL({},t3,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return r3({sx:e,theme:this})},c}var s3=Object.freeze({__proto__:null,default:a3,private_createBreakpoints:i5,unstable_applyStyles:i3});function l3(e=null){const t=OI.useContext(k2);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const c3=a3();function u3(e=c3){return l3(e)}const d3=["sx"];function f3(e){const{sx:t}=e,n=IL(e,d3),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:t3;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Q2(n)?wL({},r,n):r}:wL({},r,t),wL({},i,{sx:o})}var h3=Object.freeze({__proto__:null,default:r3,extendSxProp:f3,unstable_createStyleFunctionSx:n3,unstable_defaultSxConfig:t3});const p3=e=>e,m3=(()=>{let e=p3;return{configure(t){e=t},generate:t=>e(t),reset(){e=p3}}})();function g3(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=g3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function y3(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=g3(e))&&(r&&(r+=" "),r+=t);return r}const v3={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function b3(e,t,n="Mui"){const r=v3[t];return r?`${n}-${r}`:`${m3.generate(e)}-${t}`}function x3(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=b3(e,t,n)})),r}var S3={exports:{}},w3={},M3=Symbol.for("react.transitional.element"),k3=Symbol.for("react.portal"),E3=Symbol.for("react.fragment"),C3=Symbol.for("react.strict_mode"),O3=Symbol.for("react.profiler"),N3=Symbol.for("react.consumer"),T3=Symbol.for("react.context"),A3=Symbol.for("react.forward_ref"),R3=Symbol.for("react.suspense"),q3=Symbol.for("react.suspense_list"),D3=Symbol.for("react.memo"),I3=Symbol.for("react.lazy"),L3=Symbol.for("react.offscreen"),P3=Symbol.for("react.client.reference");function _3(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case M3:switch(e=e.type){case E3:case O3:case C3:case R3:case q3:return e;default:switch(e=e&&e.$$typeof){case T3:case A3:case I3:case D3:case N3:return e;default:return t}}case k3:return t}}}w3.ContextConsumer=N3,w3.ContextProvider=T3,w3.Element=M3,w3.ForwardRef=A3,w3.Fragment=E3,w3.Lazy=I3,w3.Memo=D3,w3.Portal=k3,w3.Profiler=O3,w3.StrictMode=C3,w3.Suspense=R3,w3.SuspenseList=q3,w3.isContextConsumer=function(e){return _3(e)===N3},w3.isContextProvider=function(e){return _3(e)===T3},w3.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===M3},w3.isForwardRef=function(e){return _3(e)===A3},w3.isFragment=function(e){return _3(e)===E3},w3.isLazy=function(e){return _3(e)===I3},w3.isMemo=function(e){return _3(e)===D3},w3.isPortal=function(e){return _3(e)===k3},w3.isProfiler=function(e){return _3(e)===O3},w3.isStrictMode=function(e){return _3(e)===C3},w3.isSuspense=function(e){return _3(e)===R3},w3.isSuspenseList=function(e){return _3(e)===q3},w3.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===E3||e===O3||e===C3||e===R3||e===q3||e===L3||"object"==typeof e&&null!==e&&(e.$$typeof===I3||e.$$typeof===D3||e.$$typeof===T3||e.$$typeof===N3||e.$$typeof===A3||e.$$typeof===P3||void 0!==e.getModuleId)},w3.typeOf=_3,S3.exports=w3;var z3=S3.exports;const F3=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function j3(e){const t=`${e}`.match(F3);return t&&t[1]||""}function $3(e,t=""){return e.displayName||e.name||j3(e)||t}function B3(e,t,n){const r=$3(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var H3=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return $3(e,"Component");if("object"==typeof e)switch(e.$$typeof){case z3.ForwardRef:return B3(e,e.render,"ForwardRef");case z3.Memo:return B3(e,e.type,"memo");default:return}}},getFunctionName:j3});function V3(e,t){const n=wL({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=wL({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=wL({},o),Object.keys(i).forEach((e=>{n[r][e]=V3(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function U3({props:e,name:t,defaultTheme:n,themeId:r}){let i=u3(n);i=i[r]||i;const o=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?V3(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}const W3="undefined"!=typeof window?OI.useLayoutEffect:OI.useEffect;var Y3=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function G3(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function K3(e){return e&&e.ownerDocument||document}function X3(e){return K3(e).defaultView||window}function J3(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Z3(e){const t=OI.useRef(e);return W3((()=>{t.current=e})),OI.useRef(((...e)=>(0,t.current)(...e))).current}function Q3(...e){return OI.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{J3(e,t)}))}),e)}const e4={};const t4=[];class n4{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new n4}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function r4(){const e=function(e,t){const n=OI.useRef(e4);return n.current===e4&&(n.current=e(t)),n}(n4.create).current;return function(e){OI.useEffect(e,t4)}(e.disposeEffect),e}let i4=!0,o4=!1;const a4=new n4,s4={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 l4(e){e.metaKey||e.altKey||e.ctrlKey||(i4=!0)}function c4(){i4=!1}function u4(){"hidden"===this.visibilityState&&o4&&(i4=!0)}function d4(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return i4||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!s4[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function f4(){const e=OI.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l4,!0),t.addEventListener("mousedown",c4,!0),t.addEventListener("pointerdown",c4,!0),t.addEventListener("touchstart",c4,!0),t.addEventListener("visibilitychange",u4,!0))}),[]),t=OI.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d4(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(o4=!0,a4.start(100,(()=>{o4=!1})),t.current=!1,!0)},ref:e}}function h4(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const p4=OI.createContext(null);function m4(){return OI.useContext(p4)}var g4="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function y4(e){const{children:t,theme:n}=e,r=m4(),i=OI.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return wL({},e,t)}(r,n);return null!=e&&(e[g4]=null!==r),e}),[n,r]);return X2.jsx(p4.Provider,{value:i,children:t})}const v4=["value"],b4=OI.createContext();function x4(e){let{value:t}=e,n=IL(e,v4);return X2.jsx(b4.Provider,wL({value:null==t||t},n))}const S4=OI.createContext(void 0);function w4({value:e,children:t}){return X2.jsx(S4.Provider,{value:e,children:t})}const M4={};function k4(e,t,n,r=!1){return OI.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?wL({},t,{[e]:o}):o;return r?()=>a:a}return wL({},t,e?{[e]:n}:n)}),[e,t,n,r])}function E4(e){const{children:t,theme:n,themeId:r}=e,i=l3(M4),o=m4()||M4,a=k4(r,i,n),s=k4(r,o,n,!0),l="rtl"===a.direction;return X2.jsx(y4,{theme:s,children:X2.jsx(k2.Provider,{value:a,children:X2.jsx(x4,{value:l,children:X2.jsx(w4,{value:null==a?void 0:a.components,children:t})})})})}var C4={},O4={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(O4);var N4=O4.exports,T4=i(J0),A4=i(Y3),R4=N4;Object.defineProperty(C4,"__esModule",{value:!0});var q4=C4.alpha=U4;C4.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=j4(e),a=j4(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return B4({type:"rgb",values:s})},C4.colorChannel=void 0;var D4=C4.darken=W4;C4.decomposeColor=j4,C4.emphasize=G4;var I4=C4.getContrastRatio=function(e,t){const n=V4(e),r=V4(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};C4.getLuminance=V4,C4.hexToRgb=F4,C4.hslToRgb=H4;var L4=C4.lighten=Y4;C4.private_safeAlpha=function(e,t,n){try{return U4(e,t)}catch(t){return e}},C4.private_safeColorChannel=void 0,C4.private_safeDarken=function(e,t,n){try{return W4(e,t)}catch(t){return e}},C4.private_safeEmphasize=function(e,t,n){try{return G4(e,t)}catch(t){return e}},C4.private_safeLighten=function(e,t,n){try{return Y4(e,t)}catch(t){return e}},C4.recomposeColor=B4,C4.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=j4(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var P4=R4(T4),_4=R4(A4);function z4(e,t=0,n=1){return(0,_4.default)(e,t,n)}function F4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function j4(e){if(e.type)return e;if("#"===e.charAt(0))return j4(F4(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,P4.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,P4.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const $4=e=>{const t=j4(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};C4.colorChannel=$4;function B4(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function H4(e){e=j4(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const 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])),B4({type:s,values:l})}function V4(e){let t="hsl"===(e=j4(e)).type||"hsla"===e.type?j4(H4(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function U4(e,t){return e=j4(e),t=z4(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,B4(e)}function W4(e,t){if(e=j4(e),t=z4(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return B4(e)}function Y4(e,t){if(e=j4(e),t=z4(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return B4(e)}function G4(e,t=.15){return V4(e)>.5?W4(e,t):Y4(e,t)}C4.private_safeColorChannel=(e,t)=>{try{return $4(e)}catch(t){return e}};const K4=["mode","contrastThreshold","tonalOffset"],X4={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:g0.white,default:g0.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},J4={text:{primary:g0.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:g0.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Z4(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=L4(e.main,i):"dark"===t&&(e.dark=D4(e.main,o)))}function Q4(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=IL(e,K4),o=e.primary||function(e="light"){return"dark"===e?{main:T0,light:N0,dark:A0}:{main:R0,light:A0,dark:q0}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:M0,light:w0,dark:E0}:{main:C0,light:k0,dark:O0}}(t),s=e.error||function(e="light"){return"dark"===e?{main:b0,light:y0,dark:x0}:{main:x0,light:v0,dark:S0}}(t),l=e.info||function(e="light"){return"dark"===e?{main:I0,light:D0,dark:P0}:{main:P0,light:L0,dark:_0}}(t),c=e.success||function(e="light"){return"dark"===e?{main:F0,light:z0,dark:$0}:{main:B0,light:j0,dark:H0}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:U0,light:V0,dark:Y0}:{main:"#ed6c02",light:W0,dark:G0}}(t);function d(e){return I4(e,J4.text.primary)>=n?J4.text.primary:X4.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=wL({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(X0(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(X0(12,t?` (${t})`:"",JSON.stringify(e.main)));return Z4(e,"light",i,r),Z4(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:J4,light:X4};return t5(wL({common:wL({},g0),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:K0,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const e6=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function t6(e){return Math.round(1e5*e)/1e5}const n6={textTransform:"uppercase"},r6='"Roboto", "Helvetica", "Arial", sans-serif';function i6(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=r6,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=IL(n,e6),h=i/14,p=d||(e=>e/c*h+"rem"),m=(e,t,n,i,o)=>wL({fontFamily:r,fontWeight:e,fontSize:p(t),lineHeight:n},r===r6?{letterSpacing:`${t6(i/t)}em`}:{},o,u),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,n6),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,n6),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return t5(wL({htmlFontSize:c,pxToRem:p,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function o6(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const a6=["none",o6(0,2,1,-1,0,1,1,0,0,1,3,0),o6(0,3,1,-2,0,2,2,0,0,1,5,0),o6(0,3,3,-2,0,3,4,0,0,1,8,0),o6(0,2,4,-1,0,4,5,0,0,1,10,0),o6(0,3,5,-1,0,5,8,0,0,1,14,0),o6(0,3,5,-1,0,6,10,0,0,1,18,0),o6(0,4,5,-2,0,7,10,1,0,2,16,1),o6(0,5,5,-3,0,8,10,1,0,3,14,2),o6(0,5,6,-3,0,9,12,1,0,3,16,2),o6(0,6,6,-3,0,10,14,1,0,4,18,3),o6(0,6,7,-4,0,11,15,1,0,4,20,3),o6(0,7,8,-4,0,12,17,2,0,5,22,4),o6(0,7,8,-4,0,13,19,2,0,5,24,4),o6(0,7,9,-4,0,14,21,2,0,5,26,4),o6(0,8,9,-5,0,15,22,2,0,6,28,5),o6(0,8,10,-5,0,16,24,2,0,6,30,5),o6(0,8,11,-5,0,17,26,2,0,6,32,5),o6(0,9,11,-5,0,18,28,2,0,7,34,6),o6(0,9,12,-6,0,19,29,2,0,7,36,6),o6(0,10,13,-6,0,20,31,3,0,8,38,7),o6(0,10,13,-6,0,21,33,3,0,8,40,7),o6(0,10,14,-6,0,22,35,3,0,8,42,7),o6(0,11,14,-7,0,23,36,3,0,9,44,8),o6(0,11,15,-7,0,24,38,3,0,9,46,8)],s6=["duration","easing","delay"],l6={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)"},c6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function u6(e){return`${Math.round(e)}ms`}function d6(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function f6(e){const t=wL({},l6,e.easing),n=wL({},c6,e.duration);return wL({getAutoHeightDuration:d6,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return IL(r,s6),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:u6(i)} ${o} ${"string"==typeof a?a:u6(a)}`)).join(",")}},e,{easing:t,duration:n})}const h6={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},p6=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function m6(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=IL(e,p6);if(e.vars)throw new Error(X0(18));const s=Q4(r),l=a3(e);let c=t5(l,{mixins:(u=l.breakpoints,d=n,wL({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:a6.slice(),typography:i6(s,o),transitions:f6(i),zIndex:wL({},h6)});var u,d;return c=t5(c,a),c=t.reduce(((e,t)=>t5(e,t)),c),c.unstable_sxConfig=wL({},t3,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return r3({sx:e,theme:this})},c}const g6=m6();function y6(){const e=u3(g6);return e[Z0]||e}function v6({props:e,name:t}){return U3({props:e,name:t,defaultTheme:g6,themeId:Z0})}var b6,x6={},S6={exports:{}};var w6,M6={exports:{}};var k6=i(Z2),E6=i(n5),C6=i(d5),O6=i(H3),N6=i(s3),T6=i(h3),A6=N4;Object.defineProperty(x6,"__esModule",{value:!0});var R6=x6.default=function(e={}){const{themeId:t,defaultTheme:n=H6,rootShouldForwardProp:r=B6,slotShouldForwardProp:i=B6}=e,o=e=>(0,_6.default)((0,q6.default)({},e,{theme:U6((0,q6.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,I6.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=W6(V6(l))}=a,f=(0,D6.default)(a,j6),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,p=u||!1;let m=B6;"Root"===l||"root"===l?m=r:l?m=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,I6.default)(e,(0,q6.default)({shouldForwardProp:m,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,L6.isPlainObject)(e)?r=>Y6(e,(0,q6.default)({},r,{theme:U6({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=U6((0,q6.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=Y6(n,(0,q6.default)({},e,{theme:r}))})),d(e,o)})),s&&!h&&l.push((e=>{var r;const i=U6((0,q6.default)({},e,{defaultTheme:n,themeId:t}));return Y6({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,q6.default)({},e,{theme:i}))})),p||l.push(o);const c=l.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}};x6.shouldForwardProp=B6,x6.systemDefaultTheme=void 0;var q6=A6((b6||(b6=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(S6)),S6.exports)),D6=A6((w6||(w6=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(M6)),M6.exports)),I6=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=$6(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(k6),L6=E6;A6(C6),A6(O6);var P6=A6(N6),_6=A6(T6);const z6=["ownerState"],F6=["variants"],j6=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $6(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return($6=function(e){return e?n:t})(e)}function B6(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const H6=x6.systemDefaultTheme=(0,P6.default)(),V6=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function U6({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function W6(e){return e?(t,n)=>n[e]:null}function Y6(e,t){let{ownerState:n}=t,r=(0,D6.default)(t,z6);const i="function"==typeof e?e((0,q6.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>Y6(e,(0,q6.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,D6.default)(i,F6);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,q6.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,q6.default)({ownerState:n},r,n)):e.style))})),t}return i}const G6=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,K6=R6({themeId:Z0,defaultTheme:g6,rootShouldForwardProp:G6}),X6=["theme"];function J6(e){let{theme:t}=e,n=IL(e,X6);const r=t[Z0];return X2.jsx(E4,wL({},n,{themeId:r?Z0:void 0,theme:r||t}))}const Z6=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Q6(e){return b3("MuiSvgIcon",e)}x3("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const e8=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],t8=K6("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${u5(n.color)}`],t[`fontSize${u5(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[t.color]}})),n8=OI.forwardRef((function(e,t){const n=v6({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,f=IL(n,e8),h=OI.isValidElement(r)&&"svg"===r.type,p=wL({},n,{color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:h}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return h4({root:["root","inherit"!==t&&`color${u5(t)}`,`fontSize${u5(n)}`]},Q6,r)})(p);return X2.jsxs(t8,wL({as:a,className:y3(g.root,i),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,f,h&&r.props,{ownerState:p,children:[h?r.props.children:r,u?X2.jsx("title",{children:u}):null]}))}));n8.muiName="SvgIcon";const r8=e=>e.scrollTop;function i8(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}function o8(e){return b3("MuiPaper",e)}x3("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const a8=["className","component","elevation","square","variant"],s8=K6("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return wL({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&wL({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${q4("#fff",Z6(t.elevation))}, ${q4("#fff",Z6(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),l8=OI.forwardRef((function(e,t){const n=v6({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=n,l=IL(n,a8),c=wL({},n,{component:i,elevation:o,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return h4({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},o8,i)})(c);return X2.jsx(s8,wL({as:i,ownerState:c,className:y3(u.root,r),ref:t},l))}));function c8(e){return"string"==typeof e}function u8(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function d8(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const f8=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function h8(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=IL(e,f8),s=o?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,i),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=y3(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=wL({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=wL({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=u8(wL({},i,r)),s=d8(r),l=d8(i),c=t(a),u=y3(null==c?void 0:c.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d=wL({},null==c?void 0:c.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),f=wL({},c,n,l,s);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}(wL({},a,{externalSlotProps:s})),u=function(e,t,n){return void 0===e||c8(e)?t:wL({},t,{ownerState:wL({},t.ownerState,n)})}(n,wL({},l,{ref:Q3(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return u}const p8=x3("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),m8=["center","classes","className"];let g8,y8,v8,b8,x8=e=>e;const S8=D2(g8||(g8=x8`
50
50
  0% {
51
51
  transform: scale(0);
52
52
  opacity: 0.1;
@@ -56,7 +56,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
56
56
  transform: scale(1);
57
57
  opacity: 0.3;
58
58
  }
59
- `)),k8=L2(b8||(b8=w8`
59
+ `)),w8=D2(y8||(y8=x8`
60
60
  0% {
61
61
  opacity: 1;
62
62
  }
@@ -64,7 +64,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
64
64
  100% {
65
65
  opacity: 0;
66
66
  }
67
- `)),E8=L2(x8||(x8=w8`
67
+ `)),M8=D2(v8||(v8=x8`
68
68
  0% {
69
69
  transform: scale(1);
70
70
  }
@@ -76,7 +76,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
76
76
  100% {
77
77
  transform: scale(1);
78
78
  }
79
- `)),C8=J6("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),O8=J6((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=OI.useState(!1),f=b3(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},p=b3(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),OI.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),Z2.jsx("span",{className:f,style:h,children:Z2.jsx("span",{className:p})})}),{name:"MuiTouchRipple",slot:"Ripple"})(S8||(S8=w8`
79
+ `)),k8=K6("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),E8=K6((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=OI.useState(!1),f=y3(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},p=y3(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),OI.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),X2.jsx("span",{className:f,style:h,children:X2.jsx("span",{className:p})})}),{name:"MuiTouchRipple",slot:"Ripple"})(b8||(b8=x8`
80
80
  opacity: 0;
81
81
  position: absolute;
82
82
 
@@ -119,4 +119,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
119
119
  animation-iteration-count: infinite;
120
120
  animation-delay: 200ms;
121
121
  }
122
- `),g8.rippleVisible,M8,550,(({theme:e})=>e.transitions.easing.easeInOut),g8.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),g8.child,g8.childLeaving,k8,550,(({theme:e})=>e.transitions.easing.easeInOut),g8.childPulsate,E8,(({theme:e})=>e.transitions.easing.easeInOut)),N8=OI.forwardRef((function(e,t){const n=x6({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=IL(n,y8),[s,l]=OI.useState([]),c=OI.useRef(0),u=OI.useRef(null);OI.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=OI.useRef(!1),f=o4(),h=OI.useRef(null),p=OI.useRef(null),m=OI.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,Z2.jsx(O8,{classes:{ripple:b3(i.ripple,g8.ripple),rippleVisible:b3(i.rippleVisible,g8.rippleVisible),ripplePulsate:b3(i.ripplePulsate,g8.ripplePulsate),child:b3(i.child,g8.child),childLeaving:b3(i.childLeaving,g8.childLeaving),childPulsate:b3(i.childPulsate,g8.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=OI.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=OI.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=OI.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return OI.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),Z2.jsx(C8,wL({className:b3(g8.root,i.root,o),ref:p},a,{children:Z2.jsx(VJ,{component:null,exit:!0,children:s})}))}));function T8(e){return S3("MuiButtonBase",e)}const A8=w3("MuiButtonBase",["root","disabled","focusVisible"]),R8=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],q8=J6("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${A8.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),D8=OI.forwardRef((function(e,t){const n=x6({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:M,onTouchEnd:k,onTouchMove:E,onTouchStart:C,tabIndex:O=0,TouchRippleProps:N,touchRippleRef:T,type:A}=n,R=IL(n,R8),q=OI.useRef(null),D=OI.useRef(null),I=t4(D,T),{isFocusVisibleRef:L,onFocus:P,onBlur:_,ref:z}=p4(),[F,j]=OI.useState(!1);l&&F&&j(!1),OI.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),q.current.focus()}})),[]);const[$,B]=OI.useState(!1);OI.useEffect((()=>{B(!0)}),[]);const H=$&&!c&&!l;function V(e,t,n=u){return e4((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}OI.useEffect((()=>{F&&d&&!c&&$&&D.current.pulsate()}),[c,d,F,$]);const U=V("start",S),W=V("stop",m),Y=V("stop",g),G=V("stop",M),K=V("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),X=V("start",C),J=V("stop",k),Z=V("stop",E),Q=V("stop",(e=>{_(e),!1===L.current&&j(!1),h&&h(e)}),!1),ee=e4((e=>{q.current||(q.current=e.currentTarget),P(e),!0===L.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=OI.useRef(!1),re=e4((e=>{d&&!ne.current&&F&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=e4((e=>{d&&" "===e.key&&D.current&&F&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(R.href||R.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===A?"button":A,ae.disabled=l):(R.href||R.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=t4(t,z,q),le=wL({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=m4({root:["root",t&&"disabled",n&&"focusVisible"]},T8,i);return n&&r&&(o.root+=` ${r}`),o})(le);return Z2.jsxs(q8,wL({as:oe,className:b3(ce.root,a),ownerState:le,onBlur:Q,onClick:p,onContextMenu:W,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:U,onMouseLeave:K,onMouseUp:G,onDragLeave:Y,onTouchEnd:J,onTouchMove:Z,onTouchStart:X,ref:se,tabIndex:l?-1:O,type:A},ae,R,{children:[o,H?Z2.jsx(N8,wL({ref:I,center:i},N)):null]}))}));function I8(e){return S3("MuiTypography",e)}w3("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const L8=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],P8=J6("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${f5(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>wL({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),_8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z8={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},F8=OI.forwardRef((function(e,t){const n=x6({props:e,name:"MuiTypography"}),r=(e=>z8[e]||e)(n.color),i=p3(wL({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=_8}=i,h=IL(i,L8),p=wL({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),m=s||(u?"p":f[d]||_8[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return m4({root:["root",o,"inherit"!==e.align&&`align${f5(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},I8,a)})(p);return Z2.jsx(P8,wL({as:m,ref:t,ownerState:p,className:b3(g.root,a)},h))})),j8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $8(e){const t=[],n=[];return Array.from(e.querySelectorAll(j8)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function B8(){return!0}function H8(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=$8,isEnabled:a=B8,open:s}=e,l=OI.useRef(!1),c=OI.useRef(null),u=OI.useRef(null),d=OI.useRef(null),f=OI.useRef(null),h=OI.useRef(!1),p=OI.useRef(null),m=t4(t.ref,p),g=OI.useRef(null);OI.useEffect((()=>{s&&p.current&&(h.current=!n)}),[n,s]),OI.useEffect((()=>{if(!s||!p.current)return;const e=J3(p.current);return p.current.contains(e.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),OI.useEffect((()=>{if(!s||!p.current)return;const e=J3(p.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===p.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=p.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=o(p.current)),n.length>0){var i,s;const e=Boolean((null==(i=g.current)?void 0:i.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,a,s,o]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0};return Z2.jsxs(OI.Fragment,{children:[Z2.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),OI.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Z2.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const V8=OI.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=OI.useState(null),s=t4(OI.isValidElement(n)?n.ref:null,t);if(G3((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),G3((()=>{if(o&&!i)return Q3(t,o),()=>{Q3(t,null)}}),[t,o,i]),i){if(OI.isValidElement(n)){const e={ref:s};return OI.cloneElement(n,e)}return Z2.jsx(OI.Fragment,{children:n})}return Z2.jsx(OI.Fragment,{children:o?bJ.createPortal(n,o):o})}));function U8(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function W8(e){return parseInt(Z3(e).getComputedStyle(e).paddingRight,10)||0}function Y8(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&U8(e,i)}))}function G8(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function K8(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=J3(e);return t.body===e?Z3(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(J3(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${W8(r)+e}px`;const t=J3(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${W8(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=J3(r).body;else{const t=r.parentElement,n=Z3(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const X8=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&U8(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Y8(t,e.mount,e.modalRef,r,!0);const i=G8(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=G8(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=K8(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=G8(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&U8(e.modalRef,t),Y8(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&U8(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function J8(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=X8,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=OI.useRef({}),h=OI.useRef(null),p=OI.useRef(null),m=t4(p,d),[g,y]=OI.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),S=()=>{i.mount(x(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},w=e4((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||J3(h.current).body;i.add(x(),e),p.current&&S()})),M=OI.useCallback((()=>i.isTopModal(x())),[i]),k=e4((e=>{h.current=e,e&&(u&&M()?S():p.current&&U8(p.current,b))})),E=OI.useCallback((()=>{i.remove(x(),b)}),[b,i]);OI.useEffect((()=>()=>{E()}),[E]),OI.useEffect((()=>{u?w():v&&o||E()}),[u,E,v,o,w]);const C=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&M()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},O=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=f8(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=wL({},n,t);return wL({role:"presentation"},r,{onKeyDown:C(r),ref:m})},getBackdropProps:(e={})=>wL({"aria-hidden":!0},e,{onClick:O(e),open:u}),getTransitionProps:()=>({onEnter:X3((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:X3((()=>{y(!0),s&&s(),o&&E()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:k,isTopModal:M,exited:g,hasTransition:v}}const Z8=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Q8={entering:{opacity:1},entered:{opacity:1}},e7=OI.forwardRef((function(e,t){const n=b6(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:p,style:m,timeout:g=r,TransitionComponent:y=zJ}=e,v=IL(e,Z8),b=OI.useRef(null),x=t4(b,a.ref,t),S=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},w=S(d),M=S(((e,t)=>{o8(e);const r=a8({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),k=S(u),E=S(p),C=S((e=>{const t=a8({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),O=S(h);return Z2.jsx(y,wL({appear:o,in:l,nodeRef:b,onEnter:M,onEntered:k,onEntering:w,onExit:C,onExited:O,onExiting:E,addEndListener:e=>{i&&i(b.current,e)},timeout:g},v,{children:(e,t)=>OI.cloneElement(a,wL({style:wL({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Q8[e],m,a.props.style),ref:x},t))}))}));function t7(e){return S3("MuiBackdrop",e)}w3("MuiBackdrop",["root","invisible"]);const n7=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],r7=J6("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>wL({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),i7=OI.forwardRef((function(e,t){var n,r,i;const o=x6({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:h={},slots:p={},TransitionComponent:m=e7,transitionDuration:g}=o,y=IL(o,n7),v=wL({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return m4({root:["root",n&&"invisible"]},t7,t)})(v),x=null!=(n=h.root)?n:u.root;return Z2.jsx(m,wL({in:f,timeout:g},y,{children:Z2.jsx(r7,wL({"aria-hidden":!0},x,{as:null!=(r=null!=(i=p.root)?i:c.Root)?r:l,className:b3(b.root,s,null==x?void 0:x.className),ownerState:wL({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function o7(e){return S3("MuiButton",e)}const a7=w3("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),s7=OI.createContext({}),l7=OI.createContext(void 0),c7=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],u7=e=>wL({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),d7=J6(D8,{shouldForwardProp:e=>X6(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${f5(n.color)}`],t[`size${f5(n.size)}`],t[`${n.variant}Size${f5(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return wL({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":wL({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:I4(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:I4(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:I4(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":wL({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${a7.focusVisible}`]:wL({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${a7.disabled}`]:wL({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${I4(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${a7.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${a7.disabled}`]:{boxShadow:"none"}})),f7=J6("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${f5(n.size)}`]]}})((({ownerState:e})=>wL({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},u7(e)))),h7=J6("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${f5(n.size)}`]]}})((({ownerState:e})=>wL({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},u7(e)))),p7=OI.forwardRef((function(e,t){const n=OI.useContext(s7),r=OI.useContext(l7),i=x6({props:W3(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=IL(i,c7),x=wL({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return wL({},a,m4({root:["root",o,`${o}${f5(t)}`,`size${f5(i)}`,`${o}Size${f5(i)}`,`color${f5(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${f5(i)}`],endIcon:["icon","endIcon",`iconSize${f5(i)}`]},o7,a))})(x),w=g&&Z2.jsx(f7,{className:S.startIcon,ownerState:x,children:g}),M=f&&Z2.jsx(h7,{className:S.endIcon,ownerState:x,children:f}),k=r||"";return Z2.jsxs(d7,wL({ownerState:x,className:b3(n.className,S.root,l,k),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:b3(S.focusVisible,h),ref:t,type:y},b,{classes:S,children:[w,o,M]}))}));function m7(e){return S3("MuiModal",e)}w3("MuiModal",["root","hidden","backdrop"]);const g7=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],y7=J6("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>wL({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),v7=J6(i7,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),b7=OI.forwardRef((function(e,t){var n,r,i,o,a,s;const l=x6({name:"MuiModal",props:e}),{BackdropComponent:c=v7,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:h,container:p,component:m,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:M=!1,hideBackdrop:k=!1,keepMounted:E=!1,onBackdropClick:C,open:O,slotProps:N,slots:T}=l,A=IL(l,g7),R=wL({},l,{closeAfterTransition:f,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:M,hideBackdrop:k,keepMounted:E}),{getRootProps:q,getBackdropProps:D,getTransitionProps:I,portalRef:L,isTopModal:P,exited:_,hasTransition:z}=J8(wL({},R,{rootRef:t})),F=wL({},R,{exited:_}),j=(e=>{const{open:t,exited:n,classes:r}=e;return m4({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},m7,r)})(F),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=I();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==T?void 0:T.root)?r:g.Root)?n:y7,H=null!=(i=null!=(o=null==T?void 0:T.backdrop)?o:g.Backdrop)?i:c,V=null!=(a=null==N?void 0:N.root)?a:y.root,U=null!=(s=null==N?void 0:N.backdrop)?s:y.backdrop,W=m8({elementType:B,externalSlotProps:V,externalForwardedProps:A,getSlotProps:q,additionalProps:{ref:t,as:m},ownerState:F,className:b3(d,null==V?void 0:V.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),Y=m8({elementType:H,externalSlotProps:U,additionalProps:u,getSlotProps:e=>D(wL({},e,{onClick:t=>{C&&C(t),null!=e&&e.onClick&&e.onClick(t)}})),className:b3(null==U?void 0:U.className,null==u?void 0:u.className,null==j?void 0:j.backdrop),ownerState:F});return E||O||z&&!_?Z2.jsx(V8,{ref:L,container:p,disablePortal:S,children:Z2.jsxs(B,wL({},W,{children:[!k&&c?Z2.jsx(H,wL({},Y)):null,Z2.jsx(H8,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:P,open:O,children:OI.cloneElement(h,$)})]}))}):null}));function x7(e){return S3("MuiDivider",e)}w3("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const S7=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],w7=J6("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>wL({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:I4(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>wL({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>wL({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>wL({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>wL({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),M7=J6("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>wL({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),k7=OI.forwardRef((function(e,t){const n=x6({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,h=IL(n,S7),p=wL({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return m4({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},x7,r)})(p);return Z2.jsx(w7,wL({as:a,className:b3(m.root,o),role:u,ref:t,ownerState:p},h,{children:i?Z2.jsx(M7,{className:m.wrapper,ownerState:p,children:i}):null}))}));k7.muiSkipListHighlight=!0;const E7=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function C7(e){return`scale(${e}, ${e**2})`}const O7={entering:{opacity:1,transform:C7(1)},entered:{opacity:1,transform:"none"}},N7="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),T7=OI.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:f,style:h,timeout:p="auto",TransitionComponent:m=zJ}=e,g=IL(e,E7),y=o4(),v=OI.useRef(),b=b6(),x=OI.useRef(null),S=t4(x,i.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},M=w(c),k=w(((e,t)=>{o8(e);const{duration:n,delay:r,easing:i}=a8({style:h,timeout:p,easing:o},{mode:"enter"});let a;"auto"===p?(a=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:N7?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)})),E=w(l),C=w(f),O=w((e=>{const{duration:t,delay:n,easing:r}=a8({style:h,timeout:p,easing:o},{mode:"exit"});let i;"auto"===p?(i=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=i):i=t,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:N7?i:.666*i,delay:N7?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=C7(.75),u&&u(e)})),N=w(d);return Z2.jsx(m,wL({appear:r,in:a,nodeRef:x,onEnter:k,onEntered:E,onEntering:M,onExit:O,onExited:N,onExiting:C,addEndListener:e=>{"auto"===p&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===p?null:p},g,{children:(e,t)=>OI.cloneElement(i,wL({style:wL({opacity:0,transform:C7(.75),visibility:"exited"!==e||a?void 0:"hidden"},O7[e],h,i.props.style),ref:S},t))}))}));T7.muiSupportAuto=!0;const A7=OI.createContext({});function R7(e){return S3("MuiList",e)}w3("MuiList",["root","padding","dense","subheader"]);const q7=["children","className","component","dense","disablePadding","subheader"],D7=J6("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>wL({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),I7=OI.forwardRef((function(e,t){const n=x6({props:e,name:"MuiList"}),{children:r,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=IL(n,q7),u=OI.useMemo((()=>({dense:a})),[a]),d=wL({},n,{component:o,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return m4({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},R7,t)})(d);return Z2.jsx(A7.Provider,{value:u,children:Z2.jsxs(D7,wL({as:o,className:b3(f.root,i),ref:t,ownerState:d},c,{children:[l,r]}))})}));function L7(e){return S3("MuiListItemButton",e)}const P7=w3("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),_7=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],z7=J6(D8,{shouldForwardProp:e=>X6(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>wL({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${P7.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:I4(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${P7.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:I4(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${P7.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:I4(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:I4(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${P7.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${P7.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),F7=OI.forwardRef((function(e,t){const n=x6({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,h=IL(n,_7),p=OI.useContext(A7),m=OI.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=OI.useRef(null);G3((()=>{i&&g.current&&g.current.focus()}),[i]);const y=wL({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return wL({},n,m4({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},L7,n))})(y),b=t4(g,t);return Z2.jsx(A7.Provider,{value:m,children:Z2.jsx(z7,wL({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:b3(v.focusVisible,u),ownerState:y,className:b3(v.root,f)},h,{classes:v,children:a}))})}));function j7(e){return S3("MuiListItemIcon",e)}w3("MuiListItemIcon",["root","alignItemsFlexStart"]);const $7=["className"],B7=J6("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>wL({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),H7=OI.forwardRef((function(e,t){const n=x6({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=IL(n,$7),o=wL({},n,{alignItems:OI.useContext(A7).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return m4({root:["root","flex-start"===t&&"alignItemsFlexStart"]},j7,n)})(o);return Z2.jsx(B7,wL({className:b3(a.root,r),ownerState:o,ref:t},i))}));function V7(e){return S3("MuiListItemText",e)}const U7=w3("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),W7=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Y7=J6("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${U7.primary}`]:t.primary},{[`& .${U7.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>wL({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),G7=OI.forwardRef((function(e,t){const n=x6({props:e,name:"MuiListItemText"}),{children:r,className:i,disableTypography:o=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=IL(n,W7),{dense:f}=OI.useContext(A7);let h=null!=s?s:r,p=c;const m=wL({},n,{disableTypography:o,inset:a,primary:!!h,secondary:!!p,dense:f}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return m4({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},V7,t)})(m);return null==h||h.type===F8||o||(h=Z2.jsx(F8,wL({variant:f?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:h}))),null==p||p.type===F8||o||(p=Z2.jsx(F8,wL({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:p}))),Z2.jsxs(Y7,wL({className:b3(g.root,i),ownerState:m,ref:t},d,{children:[h,p]}))}));function K7(e){return S3("MuiPopover",e)}w3("MuiPopover",["root","paper"]);const X7=["onEntering"],J7=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Z7=["slotProps"];function Q7(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function e9(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function t9(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function n9(e){return"function"==typeof e?e():e}const r9=J6(b7,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),i9=J6(u8,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),o9=OI.forwardRef((function(e,t){var n,r,i;const o=x6({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:h,elevation:p=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=T7,transitionDuration:w="auto",TransitionProps:{onEntering:M}={},disableScrollLock:k=!1}=o,E=IL(o.TransitionProps,X7),C=IL(o,J7),O=null!=(n=null==b?void 0:b.paper)?n:y,N=OI.useRef(),T=t4(N,O.ref),A=wL({},o,{anchorOrigin:l,anchorReference:u,elevation:p,marginThreshold:m,externalPaperSlotProps:O,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:E}),R=(e=>{const{classes:t}=e;return m4({root:["root"],paper:["paper"]},K7,t)})(A),q=OI.useCallback((()=>{if("anchorPosition"===u)return c;const e=n9(s),t=(e&&1===e.nodeType?e:J3(N.current).body).getBoundingClientRect();return{top:t.top+Q7(t,l.vertical),left:t.left+e9(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),D=OI.useCallback((e=>({vertical:Q7(e,x.vertical),horizontal:e9(e,x.horizontal)})),[x.horizontal,x.vertical]),I=OI.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===u)return{top:null,left:null,transformOrigin:t9(n)};const r=q();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,l=o+t.width,c=Z3(n9(s)),d=c.innerHeight-m,f=c.innerWidth-m;if(null!==m&&i<m){const e=i-m;i-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;i-=e,n.vertical+=e}if(null!==m&&o<m){const e=o-m;o-=e,n.horizontal+=e}else if(l>f){const e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:t9(n)}}),[s,u,q,D,m]),[L,P]=OI.useState(g),_=OI.useCallback((()=>{const e=N.current;if(!e)return;const t=I(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[I]);OI.useEffect((()=>(k&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[s,k,_]);OI.useEffect((()=>{g&&_()})),OI.useImperativeHandle(a,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),OI.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{_()})),t=Z3(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,_]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const F=h||(s?J3(n9(s)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:r9,$=null!=(i=null==v?void 0:v.paper)?i:i9,B=m8({elementType:$,externalSlotProps:wL({},O,{style:L?O.style:wL({},O.style,{opacity:0})}),additionalProps:{elevation:p,ref:T},ownerState:A,className:b3(R.paper,null==O?void 0:O.className)}),H=m8({elementType:j,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:C,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:A,className:b3(R.root,f)}),{slotProps:V}=H,U=IL(H,Z7);return Z2.jsx(j,wL({},U,!d8(j)&&{slotProps:V,disableScrollLock:k},{children:Z2.jsx(S,wL({appear:!0,in:g,onEntering:(e,t)=>{M&&M(e,t),_()},onExited:()=>{P(!1)},timeout:z},E,{children:Z2.jsx($,wL({},B,{children:d}))}))}))}));function a9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s9(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function l9(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c9(){return c9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c9.apply(null,arguments)}function u9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u9(Object(n),!0).forEach((function(t){l9(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u9(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f9(){f9=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==n&&r.call(S,a)&&(b=S);var w=v.prototype=g.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=C(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(w,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},M(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;N(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function h9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||g9(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p9(e){return function(e){if(Array.isArray(e))return a9(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g9(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m9(e){return m9="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},m9(e)}function g9(e,t){if(e){if("string"==typeof e)return a9(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a9(e,t):void 0}}var y9=function(e){var t=e.className,n=e.title,r=e.path,i=e.fillRule;return NI.createElement(i8,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},NI.createElement("path",{d:r}),n?NI.createElement("title",null,n):void 0,i?NI.createElement("use",{fillRule:i}):void 0)},v9={STYLE:{ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}}},b9={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},x9=function(e){return b9.R.test(e)||b9.AL.test(e)};function S9(e){for(var t,n,r=e?e.length:0,i=0;i<r;i++){if(n=t=e[i],b9.L.test(n))return"ltr";if(x9(t))return"rtl"}return"ltr"}var w9,M9,k9=J6(p7,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"0px",maxWidth:"640px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),E9=J6((function(e){var t=e.className;return NI.createElement(y9,{className:t,path:"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",fillRule:"evenodd"})}))((function(){return{color:v9.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),C9=J6((function(e){var t=e.className;return NI.createElement(y9,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:v9.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:v9.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),O9=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,i=e.source,o=i.styling,a=i.info.text,s=i.layout.direction,l=i.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,f=l.hasMultiple,h=l.isCyclic,p=l.isLocked,m=i.resources.translator,g=i.services.focus,y=i.settings.isDisabled,v=i.state.inSelections,b=!(!c.change||!u),x=!(!c.reload||!h),S=(b||x)&&!v&&!y(),w={pointerEvents:S?"auto":"none"},M=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,i=e.direction,o=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=o&&t.reload;return"ltr"===i&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===i&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:b,canReload:x,direction:s,hasCyclic:d,hasMultiple:f,isLocked:p}),k=l9(l9({},"rtl"===s?"endIcon":"startIcon",p&&NI.createElement(E9,{height:12})),"rtl"===s?"startIcon":"endIcon",(b||x)&&NI.createElement(C9,{className:"".concat(v||y()?"disabled":"")})),E=OI.useRef(),C=OI.useRef();OI.useEffect((function(){t||g.get()&&(E.current.focus(),C.current.focusVisible(),g.set(!1))}));var O=S9(a),N="Accessibility.".concat(S?"Alternative":"Normal",".Instructions");return NI.createElement(k9,c9({action:C,"aria-describedby":r,"aria-label":m.get(N),color:"inherit",direction:s,disabled:!S||y()||v,onClick:function(e){S&&n(e)},padding:M,ref:E,style:w,styling:o.title,title:a},k),NI.createElement("span",{dir:O,style:v9.STYLE.ELLIPSIS},a))},N9=function(e){var t=e.className,n=e.title;return NI.createElement(y9,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})},T9=J6(p7,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,i=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:i,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:i,opacity:1}}})),A9=J6(N9,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:v9.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),R9=J6((function(e){var t=e.className,n=e.title;return NI.createElement(y9,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:v9.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:v9.STYLE.ICONS.COLOR.DISABLED}}})),q9=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=h9(OI.useState(!1),2),r=n[0],i=n[1],o=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,f=d.allowed,h=d.isFirst,p=d.isLast,m=t.settings.isDisabled,g=t.state.inSelections;return OI.useEffect((function(){r&&i(!1)}),[l]),f.reload?NI.createElement(T9,{direction:u,disabled:r||g||m(),isFirst:h,isLast:p,onClick:function(){return i(!0),void a()},styling:o.title,title:c,variant:"outlined"},NI.createElement(R9,{className:"".concat(r||g||m()?"disabled":"")})):NI.createElement(A9,{direction:u,isFirst:h,isLast:p,style:{flexShrink:0},title:c})},D9=function(e){var t=e.className,n=e.title;return NI.createElement(y9,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})},I9=J6(p7,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}})),L9={color:v9.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:v9.STYLE.ICONS.COLOR.DISABLED}},P9=J6((function(e){var t=e.className;return NI.createElement(y9,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return L9})),_9=J6((function(e){var t=e.className;return NI.createElement(y9,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return L9})),z9=J6(D9,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:v9.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),F9=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,i=t.info,o=i.breadcrumbs,a=i.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,f=t.state.inSelections,h=d()||f?"disabled":null,p=l9({},"rtl"===s?"startIcon":"endIcon","rtl"===s?NI.createElement(_9,{className:h}):NI.createElement(P9,{className:h})),m=o.map((function(e,t){var i=S9(e);return NI.createElement(I9,c9({disabled:d()||f,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:o.length-e})}(t)},styling:n.title,title:e},p),NI.createElement("span",{dir:i,style:v9.STYLE.ELLIPSIS},e))}));return NI.createElement(NI.Fragment,null,"rtl"===s?m.reverse():void 0,NI.createElement(z9,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:m)},j9=J6(F7,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":d9({},v9.STYLE.FOCUS)}})),$9=J6(H7)((function(){return{marginRight:0,justifyContent:"center"}})),B9=J6((function(e){var t=e.className;return NI.createElement(y9,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:v9.STYLE.ICONS.COLOR.SECONDARY}})),H9=J6(N9)((function(){return{color:v9.STYLE.ICONS.COLOR.SECONDARY}})),V9=J6(D9)((function(){return{color:v9.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),U9=function(e){var t=e.id,n=e.meta,r=e.nested,i=e.onClick,o=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=d9({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},v9.STYLE.ELLIPSIS),d=S9(s),f=NI.createElement($9,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?NI.createElement(B9,{height:12}):null!=t&&t.isCyclic?NI.createElement(H9,{height:12}):null!=t&&t.isDrillDown?NI.createElement(V9,{height:12}):void 0}({meta:n,selected:o}));return NI.createElement(NI.Fragment,{key:t},NI.createElement(j9,{autoFocus:o,nested:r,onClick:function(e){return null==i?void 0:i(e)},rtl:c,title:s},c&&f,NI.createElement(G7,{dir:d,primaryTypographyProps:{style:u}},s),!c&&f))},W9=J6(k7)((function(){return{marginTop:"-1px"}})),Y9=function(e){var t=e.anchor,n=e.id,r=e.onClose,i=e.open,o=e.source,a=o.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=o.info,d=u.breadcrumbs,f=u.group,h=u.id,p=u.text,m=o.data.alternatives,g=o.meta,y=g.isCyclic,v=g.isDrillDown,b=o.resources.translator,x=o.services.focus,S=y||v,w=NI.createElement(U9,{id:h,key:h,meta:o.meta,onClick:r,selected:!S,source:o,text:S?f.name:p}),M=S&&f.items.map((function(e){return NI.createElement(U9,{id:e.id,nested:!0,onClick:function(t){return function(e,t){y&&c({fieldIndex:t.index}),v&&l({steps:d.length-t.index}),r()}(0,e)},selected:e.current,source:o,text:e.text})})),k=m.map((function(e,t){return NI.createElement(NI.Fragment,{key:e.id},NI.createElement(U9,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,"keydown"===n.type&&x.set(!0),void s({id:r});var n,r},source:o,text:e.text}),t<m.length-1&&NI.createElement(W9,{key:"divider-".concat(e.id)}))}));return NI.createElement(o9,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},id:n,onClose:r,open:i,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},NI.createElement(I7,{"aria-label":b.get("Accessibility.Popover.Instructions"),dense:!0},w,M,NI.createElement(W9,{key:"divider-".concat(h)}),k))},G9=function(e){var t=e.source,n=h9(OI.useState(null),2),r=n[0],i=n[1],o={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.services.focus,l=NI.createElement(q9,{source:t}),c=NI.createElement(F9,{source:t});return NI.createElement(NI.Fragment,null,"rtl"===a?void 0:c,"rtl"===a?void 0:l,NI.createElement(O9,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&s.set(!0),i(t)},isOpen:o.isOpen,popoverId:o.id,source:t}),NI.createElement(Y9,{anchor:r,id:o.id,onClose:function(){i(null)},open:o.isOpen,source:t}),"rtl"===a?c:void 0,"rtl"===a?l:void 0)};var K9=function(){if(M9)return w9;M9=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return w9=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},w9}(),X9=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(K9);function J9(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function Z9(e){return Array.isArray(e)}function Q9(e){return null!=e&&!Array.isArray(e)&&"object"===m9(e)}function eee(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function tee(e){return void 0===e}function nee(e,t){if(Q9(e)&&Q9(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,i=n.length;r<i;r+=1)if(!nee(e[n[r]],t[n[r]]))return!1;return!0}if(Z9(e)&&Z9(t)){if(e.length!==t.length)return!1;for(var o=0,a=e.length;o<a;o+=1)if(!nee(e[o],t[o]))return!1;return!0}return e===t}function ree(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,i=void 0===r?{}:r,o=e.basePath,a=void 0===o?"":o,s=[];return Object.keys(i).forEach((function(e){var t=function(e){return e?X9(!0,{},{value:e}).value:e}(i[e]),r=n[e],o="".concat(a,"/").concat(e);nee(t,r)||eee(i,e)||(tee(r)?s.push({op:"add",path:o,value:t}):Q9(t)&&Q9(r)?s.push.apply(s,p9(ree({oldData:r,newData:t,basePath:o}))):Z9(t)&&Z9(r)?s.push.apply(s,p9(function(e){var t=e.newArray,n=e.basePath,r=[];return nee(t,e.oldArray.slice())||(!tee(t[0])&&tee(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:o}))):s.push({op:"replace",path:o,value:t}))})),Object.keys(n).forEach((function(e){tee(i[e])&&!eee(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function iee(e){var t=e.model,n=ree({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function oee(e){return aee.apply(this,arguments)}function aee(){return(aee=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){s9(o,r,i,a,s,"next",e)}function s(e){s9(o,r,i,a,s,"throw",e)}a(void 0)}))}}(f9().mark((function e(t){var n,r,i,o,a,s,l,c,u,d,f,h;return f9().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.from,r=t.to,i=t.model,o=t.container,a=t.skipAttributeExpressions,s=t.onChange,e.next=3,i.getEffectiveProperties();case 3:return l=e.sent,c=l.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===r})),d=X9(!0,{},l),f=d.qHyperCubeDef[o][c],(h=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]).qAttributeDimensions=f.qAttributeDimensions,f.qAttributeDimensions=[],a||(h.qAttributeExpressions=f.qAttributeExpressions,f.qAttributeExpressions=[]),d.qHyperCubeDef[o][c]=h,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]=f,s({fromItem:f,toItem:h,oldProperties:l,newProperties:d,model:i}),e.next=17,J9({model:i,properties:d});case 17:i.colorSupport&&i.colorSupport.colorByUpdater(d,"qHyperCubeDef."),iee({model:i,oldProperties:l,newProperties:d});case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function see(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=i.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,i=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,f=e.qLocked,h=e.title,p="C"===r,m="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){p&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:p,isDrillDown:m,isLocked:!!f,isNormal:g},info:{id:n,text:g?d:i[a],position:a,breadcrumbs:i.slice(0,e.qGroupPos),group:{name:h,items:i.slice(0,m?e.qGroupPos+1:i.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(p?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return oee({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:o})},drillUp:function(e){var t=e.steps;m&&l&&(null==l||l.drillUp("/qHyperCubeDef",y,t))},stepCycle:function(){return v("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return v("setActiveField",t)}}}}))}function lee(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.model,l=i.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,text:n},action:{changeTo:function(e){var n=e.id;return oee({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:o})}}}}))}function cee(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:o}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=o.app,f=o.cache,h=o.model,p=a.forceAllowChange,m=a.isRTL,g=a.isSnapshot,y=a.type,v=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:m}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{get:function(){var e;return(null==t||null===(e=t.get)||void 0===e?void 0:e.call(t,n))||!1},set:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,e)}}}({cache:f,key:i}),x=("dimension"===y?see:lee)({callbacks:t,data:n,resources:o,settings:a});"rtl"===v&&x.reverse();var S={allowed:{change:(!(!h.modifiers||!h.colorSupport)||p)&&!g,reload:!!d&&!g},hasAlternatives:!!c.length,hasCyclic:x.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return x.map((function(e,t){return d9(d9({data:n,layout:{direction:v},resources:{translator:o.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:d9(d9(d9({},S),e.meta),{},{isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:i,resources:a,settings:s,state:l,styling:c});return NI.createElement("div",{style:u},d.map((function(e){return NI.createElement(NI.Fragment,{key:e.info.id},NI.createElement(G9,{source:e}),!e.meta.isLast&&NI.createElement("span",{dir:e.layout.direction,style:d9(d9({},c.title),{},{lineHeight:"normal"})},", "))})))}var uee,dee='"Source Sans Pro", "Arial", "sans-serif"',fee="12px",hee=function(e){var t=e.rect,n=e.state,r=e.settings,i=r.callbacks,o=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return cee({callbacks:i,data:o,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},pee={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{forceAllowChange:!1,isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:dee,fontSize:fee},popover:{color:"#595959CC",fontFamily:dee,fontSize:fee}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,i=t.alternatives,o=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=i.length||"measure"!==o?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(hee(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return hee(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},mee=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return NI.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},gee={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return NI.createElement("div",{dir:o,style:a},NI.createElement(mee,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},yee={},vee=function(){if(uee)return yee;uee=1;var e=xJ;return yee.createRoot=e.createRoot,yee.hydrateRoot=e.hydrateRoot,yee}(),bee=y6({spacing:8,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)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function xee(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function See(){var e={rendererBox:xee(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=xee(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=vee.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return NI.createElement(NI.StrictMode,null,NI.createElement(Q6,{theme:bee},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}var wee={require:["resolver","symbol"],defaultSettings:{settings:{type:"max",primaryExtremum:()=>{},secondaryExtremum:()=>{},primarySeries:[],secondarySeries:[],orientation:"horizontal",rtl:!1,major:{scale:"major-scale"},markerOffset:1,size:10},style:{fill:"#999"}},preferredSize(){return this.settings.settings.size},render(){const{items:e=[]}=this.data;if(!e.length)return[];const{type:t,orientation:n,rtl:r,markerOffset:i,size:o,major:a,primarySeries:s,secondarySeries:l}=this.settings.settings,c=this.settings.settings.primaryExtremum(),u=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==c,f=l.length&&void 0!==u;if(!d&&!f)return[];const h=s.map((e=>e.ref)),p=l.map((e=>e.ref)),m=e.filter((e=>h.includes(e.end.source.field))),g=e.filter((e=>p.includes(e.end.source.field))),y=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:i=[],primarySeries:o=[],secondarySeries:a=[]}){const s=[];[...o,...a].forEach((o=>{const a=o.isPrimary?t:n,l=o.isPrimary?r:i;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const i="max"===e?e=>e>t:e=>e<t,o=n?e=>i(e.point.value<0?e.start.value:e.end.value):e=>i(e.end.value);return r.filter(o)})({type:e,extremum:a,items:l}))}));const l=(({items:e})=>{const t=[],n=[];return e.forEach((e=>{const{value:r}=e.major;t[r]||(t[r]=!0,n.push(e))})),n})({items:s.reduce(((e,t)=>e.concat(t)),[])});return l}({type:t,primaryExtremum:c,secondaryExtremum:u,primaryItems:m,secondaryItems:g,primarySeries:s,secondarySeries:l});if(!y.length)return[];const v="horizontal"===n,b=this.rect[v?"width":"height"],x=this.resolver.resolve({data:{items:y},settings:{major:a},scaled:{major:b}}),S=("max"===t?90:-90)-(v?0:90)-(!v&&r?180:0),w=o/2*i,{fill:M}=this.settings.style,k=x.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:i,y:o,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:i,y:o,data:a})}({symbol:this.symbol,size:o,fill:M,startAngle:S,x:v?b*e.major:w,y:v?w:b*e.major,data:e.data})));return k}};function Mee({x:e,y:t,size:n,stroke:r,strokeWidth:i,fill:o}){return{type:"container",children:[{type:"line",stroke:r||o,strokeWidth:i,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:o,cx:e,cy:t,r:.25*n}]}}function kee({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))],i=e.findShapes("path").filter((e=>r.some((t=>t===e.key))));return i.reduce(((e,n)=>{const r=t.primary.some((e=>e.key===n.key))?e.primary:e.secondary;return r.paths.push(n),e}),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function Eee({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function Cee({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(md.SCALE.MAJOR),i=r&&r.max&&r.max(),o="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===i?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&o(e,t.max)))}}function Oee({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:i,chart:o}){const a=e.brushes();if(!a.length)return[];const s=a[0],{minorRange:l,legendRange:c,legendTap:u}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let f=[c?e=>e.color.value:r[d]].filter(Boolean);if(i&&l&&f.push((e=>e.color.value)),!i&&u&&(f=[e=>e.color.value]),!f.length)return[];const h=function({brush:e,chart:t}){return("value"===e.type?Eee:Cee)({brush:e,chart:t})}({brush:s,chart:o});return h?n.reduce(((e,t,n)=>(f.some((e=>h({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function Nee({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(md.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a),c=l-s,u=0===c?1:c,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e)))||i,offset:Math.min(1,Math.max(0,(e-s)/u))}))),f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function Tee({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(md.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a)-s,c=0===l?1:l,u=o.domain(),d=[];for(let e=0;e<u.length-1;e++){const t=u[e],n=o(t)||i;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/c))});const r=u[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/c))})}const f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function Aee({property:e,chart:t,connection:n,attrs:r,colorSettings:i,colorByData:o,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:c,orientation:u,rtl:d}){const f=r[e];if("gradient"!==f.type)return f;const{type:h,nil:p}=i;if(s||!o)return function({chart:e,selected:t,connection:n,gradient:r,fallback:i,orientation:o,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:c}){const u=e.scale(md.SCALE.MAJOR),d=e.scale(md.SCALE.COLOR),f=s?e=>u([e,0])+u.bandwidth()*l/2:e=>u(e),h=t.filter((e=>-1!==n.indexOf(e.index))),p=("vertical"===o&&c?h.reverse():h).map((e=>e.item)),m=p.map((e=>f(e.major.value))),g=Math.min(...m),y=Math.max(...m)-g,v=0===y?1:y,b=m.map(((e,t)=>0===t?0:t===m.length-1?1:(e-g)/v)),x=[];for(let e=0;e<p.length;e++){const t=p[e],n=a?t.color.value:d(t.color.value)||i,r=b[e];x.push({color:n,offset:0===e?0:Math.max(0,x[x.length-1].offset)}),x.push({color:n,offset:e===p.length-1?1:Math.max(0,parseFloat((r+(b[e+1]-r)/2).toFixed(5)))})}return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:x}}({chart:t,selected:a,connection:n,gradient:f,fallback:p,orientation:u,isColorCode:"color"===h,groupedByMeasure:l,itemsPerGroup:c,rtl:d});return("continuous"===h?Nee:Tee)({chart:t,selected:a,connection:n,gradient:f,fallback:p})}function Ree({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,lineKey:l,primary:c,selected:u,connections:d,rtl:f,count:h}){const p=t.getLine(l,c),{attrs:m}=p,g=function({d:e}){return e.replace("Z","").split(/(?=[LMC])/).map((e=>{const t=e.substring(0,1),n={letter:t,x:0,y:0,raw:e},r=e.substring(1).split(",");return"M"===t||"L"===t?([n.x]=r,[,n.y]=r):"C"===t&&([,,,,n.x]=r,[,,,,,n.y]=r),n}))}({d:m.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,selected:s,connection:l,commands:c,attrs:u,rtl:d,count:f}){const h=l.map(((e,t)=>{const n=c[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join("");return{path:h,attrs:u,stroke:Aee({property:"stroke",chart:e,connection:l,attrs:u,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,rtl:d})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,selected:u,connection:t,commands:g,attrs:m,rtl:f,count:h})))}function qee({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:i,items:o,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:f,rtl:h}){const p=function({items:e,selectionInfo:t,seriesInfo:n}){return e.filter((e=>{if("NaN"===e.end.value||Number.isNaN(e.end.value))return!1;const{minorRange:r,minorRangePrimary:i}=t;return!r||(i?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:o,selectionInfo:i,seriesInfo:n}),m=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const i=n.typeIndex.value;var o;return e[i]||(e[i]={key:i,items:[],index:r,measureIx:null===(o=n.colorMeasureIdx)||void 0===o?void 0:o.value,primary:t.primary.some((e=>e.typeIndex===i))}),e[i].items.push(n),e}),{});return Object.keys(n).map((e=>n[e])).sort(((e,t)=>e.index-t.index)).map((e=>({lineKey:e.key,items:e.items,primary:e.primary,measureIx:e.measureIx})))}({items:p,seriesInfo:n}),{lines:g}=m.reduce(((n,o)=>{const p=Oee({brush:r,selectionInfo:i,items:o.items,selectionValues:a,colorByData:l,chart:e});if(p.length<2)return n;const m=function({selected:e}){return e.reduce(((e,t)=>{const{index:n}=t;if(e.length){const t=e[e.length-1];n===t[t.length-1]+1?t.push(n):e.push([n])}else e.push([n]);return e}),[]).filter((e=>e.length>1))}({selected:p});return m.length?(n.lines.push(...Ree({chart:e,pathModel:t,colorSettings:s(o.measureIx),colorByData:l(o.measureIx),hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:f,lineKey:o.lineKey,primary:o.primary,selected:p,connections:m,rtl:h,count:o.items.length})),n):n}),{lines:[]}),y=[];return g.forEach((e=>y.push({type:"path",d:e.path,stroke:e.stroke,strokeLinejoin:e.attrs["stroke-linejoin"],strokeWidth:e.attrs["stroke-width"],strokeDasharray:e.attrs["stroke-dasharray"],fill:"none"}))),y}var Dee={require:["chart","renderer"],defaultSettings:{settings:{seriesInfo:{primary:[],secondary:[]},selectionValues:{},colorSettings:void 0,colorByData:!1,isColorCode:!1,hasMultipleMeasures:!1,groupedByMeasure:!1,itemsPerGroup:1,orientation:"vertical",rtl:!1}},addListener(e,t){this.state.brush.addListener(e,t),this.state.listeners.push({type:e,fn:t})},removeListeners(){this.state.listeners.forEach((e=>this.state.brush.removeListener(e.type,e.fn))),this.state.listeners.length=0},created(){this.state={pathModel:kee({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),brush:this.chart.brush("selection"),listeners:[],selectionInfo:{minorRange:!1,minorRangePrimary:!1,legendRange:!1,legendTap:!1}}},mounted(){this.addListener("update",(()=>{this.state.selectionInfo=this.settings.settings.getSelectionInfo();const e=qee({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl});this.renderer.render(e)})),this.addListener("end",(()=>{this.renderer.render([])}))},render(){this.state.pathModel=kee({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return qee({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl})},destroyed(){this.removeListeners()}};const Iee=()=>{const e=QR();return e.use($D),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",VD(e))};e.interaction("hammer",VD(Hammer))}(Vg)),e.use(iQ),e.use((function(e){e.renderer("react",nQ()),e.component("data-title",QZ(e.renderer("svg")()))})),e.renderer("react-qcm",See),e.component("axis-title",pee),e.component("disclaimer",gee),e.component("scrollbar",Ef),e.component("point-label",g0),e.component("label-space",y0),e.component("time-axis",wg.picassoComponents.timeAxis),e.component("axis-overlay",wg.picassoComponents.axisOverlay),e.component("reference-line-labels",Do),e.component("box-sliced-hat",pQ),e.component("box-out-of-bounds",cQ),e.component("data-out-of-bounds-marker",wee),e.component("scroll-hint",qi),e.component("brush-highlighter",Dee),e.scale("time",wg.picassoScales.time),e.symbol("line-point",Mee),e},Lee=e=>"[object Object]"===Object.prototype.toString.call(e),Pee=e=>Array.isArray(e);function _ee(e,t){if(e===t)return!0;if(Pee(e)){if(!Pee(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!_ee(e[n],t[n]))return!1;return!0}if(Lee(e)){if(!Lee(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!_ee(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function zee({enable:t=!0}={}){const n=e.useModel(),r=()=>Date.now().toString()+Math.random(),[i,o]=e.useState(r()),a={properties:void 0};return e.useEffect((()=>{if(!n||!n.getEffectiveProperties||!t)return()=>{};const e=()=>{n.getEffectiveProperties().then((e=>{const t=p(!0,{},e);if(!a.properties)return void(a.properties=t);const n=function(e,t){var n,r,i,o;const a={properties:!1,exclude:!1};if(e===t)return a;const s=p(!0,{},e),l=p(!0,{},t);return a.exclude=!_ee(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,a.properties=!_ee(s,l),a}(a.properties,t);a.properties=t,n.exclude&&!n.properties&&o(r())}))};return n.on("changed",e),e(),()=>{n.removeListener("changed",e)}}),[t]),i}const Fee={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},jee=e=>void 0===e.marker?Fee.circle:Fee[e.marker],$ee=e=>void 0===e.markerFill||e.markerFill;function Bee({series:e,layoutService:t}){switch(Ip(e)){case gd.MARKER:return(e=>({marker:jee(e),fill:$ee(e)}))(e);case gd.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case gd.BAR:return{showAsZeros:!0};default:return{}}}function Hee(e=vd,t=!0){return t?e.axis===yd.PRIMARY:e.axis===yd.PRIMARY||Ip(e)===gd.BAR}var Vee={exports:{}};var Uee={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Wee="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Yee=Wee;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Uee,o=Yee,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[f,r]],p=(e,t,n)=>{const r=(e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=d++;o(e,i,t),u[e]=i,l[i]=t,c[i]=r,a[i]=new RegExp(t,n?"g":void 0),s[i]=new RegExp(r,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),p("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${f}+`),p("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),p("FULL",`^${l[u.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),p("LOOSE",`^${l[u.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),p("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",l[u.COERCE],!0),p("COERCERTLFULL",l[u.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Vee,Vee.exports);var Gee=Vee.exports;const Kee=Object.freeze({loose:!0}),Xee=Object.freeze({});var Jee=e=>e?"object"!=typeof e?Kee:e:Xee;const Zee=/^[0-9]+$/,Qee=(e,t)=>{const n=Zee.test(e),r=Zee.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var ete={compareIdentifiers:Qee,rcompareIdentifiers:(e,t)=>Qee(t,e)};const tte=Yee,{MAX_LENGTH:nte,MAX_SAFE_INTEGER:rte}=Uee,{safeRe:ite,safeSrc:ote,t:ate}=Gee,ste=Jee,{compareIdentifiers:lte}=ete;var cte=class e{constructor(t,n){if(n=ste(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>nte)throw new TypeError(`version is longer than ${nte} characters`);tte("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?ite[ate.LOOSE]:ite[ate.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>rte||this.major<0)throw new TypeError("Invalid major version");if(this.minor>rte||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>rte||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<rte)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(tte("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),lte(this.major,t.major)||lte(this.minor,t.minor)||lte(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(tte("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return lte(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(tte("build compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return lte(e,r)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=new RegExp(`^${this.options.loose?ote[ate.PRERELEASELOOSE]:ote[ate.PRERELEASE]}$`),n=`-${t}`.match(e);if(!n||n[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===lte(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const ute=cte;var dte=(e,t,n=!1)=>{if(e instanceof ute)return e;try{return new ute(e,t)}catch(e){if(!n)return null;throw e}};const fte=dte;var hte=(e,t)=>{const n=fte(e,t);return n?n.version:null};const pte=dte;var mte=(e,t)=>{const n=pte(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const gte=cte;var yte=(e,t,n,r,i)=>{"string"==typeof n&&(i=r,r=n,n=void 0);try{return new gte(e instanceof gte?e.version:e,n).inc(t,r,i).version}catch(e){return null}};const vte=dte;var bte=(e,t)=>{const n=vte(e,null,!0),r=vte(t,null,!0),i=n.compare(r);if(0===i)return null;const o=i>0,a=o?n:r,s=o?r:n,l=!!a.prerelease.length;if(!!s.prerelease.length&&!l){if(!s.patch&&!s.minor)return"major";if(0===s.compareMain(a))return s.minor&&!s.patch?"minor":"patch"}const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const xte=cte;var Ste=(e,t)=>new xte(e,t).major;const wte=cte;var Mte=(e,t)=>new wte(e,t).minor;const kte=cte;var Ete=(e,t)=>new kte(e,t).patch;const Cte=dte;var Ote=(e,t)=>{const n=Cte(e,t);return n&&n.prerelease.length?n.prerelease:null};const Nte=cte;var Tte=(e,t,n)=>new Nte(e,n).compare(new Nte(t,n));const Ate=Tte;var Rte=(e,t,n)=>Ate(t,e,n);const qte=Tte;var Dte=(e,t)=>qte(e,t,!0);const Ite=cte;var Lte=(e,t,n)=>{const r=new Ite(e,n),i=new Ite(t,n);return r.compare(i)||r.compareBuild(i)};const Pte=Lte;var _te=(e,t)=>e.sort(((e,n)=>Pte(e,n,t)));const zte=Lte;var Fte=(e,t)=>e.sort(((e,n)=>zte(n,e,t)));const jte=Tte;var $te=(e,t,n)=>jte(e,t,n)>0;const Bte=Tte;var Hte=(e,t,n)=>Bte(e,t,n)<0;const Vte=Tte;var Ute=(e,t,n)=>0===Vte(e,t,n);const Wte=Tte;var Yte=(e,t,n)=>0!==Wte(e,t,n);const Gte=Tte;var Kte=(e,t,n)=>Gte(e,t,n)>=0;const Xte=Tte;var Jte=(e,t,n)=>Xte(e,t,n)<=0;const Zte=Ute,Qte=Yte,ene=$te,tne=Kte,nne=Hte,rne=Jte;var ine=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Zte(e,n,r);case"!=":return Qte(e,n,r);case">":return ene(e,n,r);case">=":return tne(e,n,r);case"<":return nne(e,n,r);case"<=":return rne(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const one=cte,ane=dte,{safeRe:sne,t:lne}=Gee;var cne=(e,t)=>{if(e instanceof one)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?sne[lne.COERCERTLFULL]:sne[lne.COERCERTL];let i;for(;(i=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),r.lastIndex=i.index+i[1].length+i[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?sne[lne.COERCEFULL]:sne[lne.COERCE]);if(null===n)return null;const r=n[2],i=n[3]||"0",o=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",s=t.includePrerelease&&n[6]?`+${n[6]}`:"";return ane(`${r}.${i}.${o}${a}${s}`,t)};var une,dne,fne,hne,pne=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};function mne(){if(dne)return une;dne=1;const e=/\s+/g;class t{constructor(n,o){if(o=r(o),n instanceof t)return n.loose===!!o.loose&&n.includePrerelease===!!o.includePrerelease?n:new t(n.raw,o);if(n instanceof i)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&h))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(m,O(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),o("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),o("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),o("caret trim",e);let g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));a&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),o("range list",g);const v=new Map,b=g.map((e=>new i(e,this.options)));for(const e of b){if(p(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const x=[...v.values()];return n.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(N(this.set[t],e,this.options))return!0;return!1}}une=t;const n=new pne,r=Jee,i=gne(),o=Yee,a=cte,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=Gee,{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:h}=Uee,p=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},y=(e,t)=>(o("comp",e,t),e=S(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=M(e,t),o("xrange",e),e=E(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{o("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),v(n)?l="":v(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",l),l}))},M=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=v(i),u=c||v(a),d=u||v(s),f=d;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},E=(e,t)=>(o("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),C=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),O=e=>(t,n,r,i,o,a,s,l,c,u,d,f)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(u)?`<${+c+1}.0.0-0`:v(d)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${d}-${f}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),N=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return une}function gne(){if(hne)return fne;hne=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=t.match(n);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}fne=t;const n=Jee,{safeRe:r,t:i}=Gee,o=ine,a=Yee,s=cte,l=mne();return fne}const yne=mne();var vne=(e,t,n)=>{try{t=new yne(t,n)}catch(e){return!1}return t.test(e)};const bne=mne();var xne=(e,t)=>new bne(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const Sne=cte,wne=mne();var Mne=(e,t,n)=>{let r=null,i=null,o=null;try{o=new wne(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new Sne(r,n)))})),r};const kne=cte,Ene=mne();var Cne=(e,t,n)=>{let r=null,i=null,o=null;try{o=new Ene(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new kne(r,n)))})),r};const One=cte,Nne=mne(),Tne=$te;var Ane=(e,t)=>{e=new Nne(e,t);let n=new One("0.0.0");if(e.test(n))return n;if(n=new One("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let i=null;r.forEach((e=>{const t=new One(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!Tne(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!Tne(n,i)||(n=i)}return n&&e.test(n)?n:null};const Rne=mne();var qne=(e,t)=>{try{return new Rne(e,t).range||"*"}catch(e){return null}};const Dne=cte,Ine=gne(),{ANY:Lne}=Ine,Pne=mne(),_ne=vne,zne=$te,Fne=Hte,jne=Jte,$ne=Kte;var Bne=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new Dne(e,r),t=new Pne(t,r),n){case">":i=zne,o=jne,a=Fne,s=">",l=">=";break;case"<":i=Fne,o=$ne,a=zne,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_ne(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const c=t.set[n];let u=null,d=null;if(c.forEach((e=>{e.semver===Lne&&(e=new Ine(">=0.0.0")),u=u||e,d=d||e,i(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===s||u.operator===l)return!1;if((!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const Hne=Bne;var Vne=(e,t,n)=>Hne(e,t,">",n);const Une=Bne;var Wne=(e,t,n)=>Une(e,t,"<",n);const Yne=mne();var Gne=(e,t,n)=>(e=new Yne(e,n),t=new Yne(t,n),e.intersects(t,n));const Kne=vne,Xne=Tte;const Jne=mne(),Zne=gne(),{ANY:Qne}=Zne,ere=vne,tre=Tte,nre=[new Zne(">=0.0.0-0")],rre=[new Zne(">=0.0.0")],ire=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===Qne){if(1===t.length&&t[0].semver===Qne)return!0;e=n.includePrerelease?nre:rre}if(1===t.length&&t[0].semver===Qne){if(n.includePrerelease)return!0;t=rre}const r=new Set;let i,o,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?i=ore(i,t,n):"<"===t.operator||"<="===t.operator?o=are(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=tre(i.semver,o.semver,n),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of r){if(i&&!ere(e,String(i),n))return null;if(o&&!ere(e,String(o),n))return null;for(const r of t)if(!ere(e,String(r),n))return!1;return!0}let d=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver,f=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;d&&1===d.prerelease.length&&"<"===o.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(u=u||">"===e.operator||">="===e.operator,c=c||"<"===e.operator||"<="===e.operator,i)if(f&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===f.major&&e.semver.minor===f.minor&&e.semver.patch===f.patch&&(f=!1),">"===e.operator||">="===e.operator){if(s=ore(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!ere(i.semver,String(e),n))return!1;if(o)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=are(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!ere(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&c&&!o&&0!==a)&&(!(o&&u&&!i&&0!==a)&&(!f&&!d))},ore=(e,t,n)=>{if(!e)return t;const r=tre(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},are=(e,t,n)=>{if(!e)return t;const r=tre(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var sre=(e,t,n={})=>{if(e===t)return!0;e=new Jne(e,n),t=new Jne(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=ire(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const lre=Gee,cre=Uee,ure=cte,dre=ete,fre=(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>Xne(e,t,n)));for(const e of a){Kne(e,t,n)?(o=e,i||(i=e)):(o&&r.push([i,o]),o=null,i=null)}i&&r.push([i,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push(`<=${t}`):s.push(`${e} - ${t}`):s.push(`>=${e}`):s.push("*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t};var hre=r({parse:dte,valid:hte,clean:mte,inc:yte,diff:bte,major:Ste,minor:Mte,patch:Ete,prerelease:Ote,compare:Tte,rcompare:Rte,compareLoose:Dte,compareBuild:Lte,sort:_te,rsort:Fte,gt:$te,lt:Hte,eq:Ute,neq:Yte,gte:Kte,lte:Jte,cmp:ine,coerce:cne,Comparator:gne(),Range:mne(),satisfies:vne,toComparators:xne,maxSatisfying:Mne,minSatisfying:Cne,minVersion:Ane,validRange:qne,outside:Bne,gtr:Vne,ltr:Wne,intersects:Gne,simplifyRange:fre,subset:sre,SemVer:ure,re:lre.re,src:lre.src,tokens:lre.t,SEMVER_SPEC_VERSION:cre.SEMVER_SPEC_VERSION,RELEASE_TYPES:cre.RELEASE_TYPES,compareIdentifiers:dre.compareIdentifiers,rcompareIdentifiers:dre.rcompareIdentifiers}),pre="0.23.1";const mre=e=>!e||hre.lt(hre.coerce(e),hre.coerce(pre)),gre=({layoutService:e})=>{const t=!mre(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[gd.BAR]:0,[gd.LINE]:0,[gd.MARKER]:0};return({series:r=vd},i)=>{const o=Hee(r,t),a=Ip(r);return{id:i,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${i}`,refIndex:i,isPrimary:o,scale:o?md.SCALE.MINOR.PRIMARY:md.SCALE.MINOR.SECONDARY,collection:o?md.COLLECTION.PRIMARY:md.COLLECTION.SECONDARY,options:Bee({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>Ip(e)===t)).length,i=n.filter((e=>e.isPrimary)),o=n.filter((e=>!e.isPrimary)),a=[!!i.length&&i[0],!!o.length&&o[0]].filter((e=>!!e)),s=r(n,gd.BAR),l=r(i,gd.BAR),c=r(o,gd.BAR),u=e=>n.filter((t=>Ip(t)===e)),d=u(gd.LINE).map((e=>th(md.COMPONENT.POINT,e))),f=u(gd.MARKER).map((e=>({key:th(md.COMPONENT.MARKER,e),type:e.options.marker}))),h=f.map((e=>e.key)),p=[];l>0&&p.push(`${md.COMPONENT.BAR}-${yd.PRIMARY}`),c>0&&p.push(`${md.COMPONENT.BAR}-${yd.SECONDARY}`);const m=[...p,...d,...h],{MINI_CHART:g}=md.COMPONENT,y=u(gd.LINE).map((e=>th(g.LINE,e))),v=u(gd.MARKER).map((e=>th(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${yd.PRIMARY}`,`${g.BAR}-${yd.SECONDARY}`,...y,...v]:[];return{meta:{allSeries:n,primarySeries:i,secondarySeries:o,barSeriesCount:s,primaryBarSeriesCount:l,secondaryBarSeriesCount:c,measureAxes:a,pointComponentKeys:d,markerComponentKeys:h,barComponentKeys:p,seriesComponentKeys:m,miniComponentKeys:b,markers:f},query:{all:()=>n,seriesByAxis:e=>e?i:o,series:u,isPrimary:Hee}}};function yre({layoutService:e}){const{dimensionCount:t,measureCount:n}=e.meta;return{qTop:0,qLeft:0,qWidth:t+n,qHeight:Math.min(2e3,1e4/(n+1))}}function vre({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(T).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=o?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,{path:"/qHyperCubeDef",rect:yre({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function bre({genericObjectModel:e,layoutService:t}){const{isSnapshot:n,isContinuous:r}=t.meta;return n?function({layoutService:e}){return function(){return Promise.resolve({reducedCube:e.getLayoutValue("reducedHyperCube")||e.getHyperCube()})}}({layoutService:t}):r?function({layoutService:e}){return function(){const t=e.getHyperCube();return Promise.resolve({reducedCube:{...t,qDataPages:[...t.qDataPages]}})}}({layoutService:t}):vre({genericObjectModel:e,layoutService:t})}const xre=e=>"number"==typeof e&&!Number.isNaN(e);function Sre({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),i=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),o=i.filter((e=>Ip(e.series)===gd.BAR)),a=i.filter((e=>Ip(e.series)===gd.LINE)),s=i.filter((e=>Ip(e.series)===gd.MARKER));return{min:Math.min(...i.filter((e=>xre(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>xre(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>xre(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>xre(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>xre(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>xre(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>xre(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>xre(e.qMax))).map((e=>e.qMax)))}}}}function wre({isPrimary:e,layoutService:t,seriesModel:n}){const r=Sre({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(gd.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:i}=n,o={min:NaN,max:NaN};return i.forEach((e=>{let t=0,n=0;e.slice(1).filter(((e,t)=>r.some((e=>e===t))&&"NaN"!==e.qNum)).forEach((e=>{e.qNum>=0?n+=e.qNum:t+=e.qNum})),o.min=Number.isNaN(o.min)?t:Math.min(t,o.min),o.max=Number.isNaN(o.max)?n:Math.max(n,o.max)})),o}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=i({dataPage:e}),t.min=Math.min(t.bar.min,t.line.min,t.marker.min),t.max=Math.max(t.bar.max,t.line.max,t.marker.max),t}}function Mre({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:i}){const o={min:NaN,max:NaN,implicit:{min:NaN,max:NaN,bar:{min:NaN,max:NaN},line:{min:NaN,max:NaN},marker:{min:NaN,max:NaN}},explicit:{min:NaN,max:NaN},meta:{hasExplicit:!1,hasExplicitMin:!1,hasExplicitMax:!1,includesZero:!1}},a=function({isPrimary:e,layoutService:t,seriesModel:n}){const{isBarSeriesStacked:r}=t.meta,i=n.query.series(gd.BAR).filter((t=>t.isPrimary===e)).length;return!r||i<2?Sre({isPrimary:e,layoutService:t,seriesModel:n}):wre({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:i});return{query:{getExtrema:()=>o},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,i=r("measureAxes."+(e?0:1),{});if(i.autoMinMax)return n;const{minMax:o,min:a,max:s}=i;return"min"!==o&&"minMax"!==o||(n.min=a),"max"!==o&&"minMax"!==o||(n.max=s),Number.isNaN(n.min)||Number.isNaN(n.max)||(n.min=Math.min(a,s),n.max=Math.max(a,s)),n}({isPrimary:e,layoutService:n});return o.explicit.min=s,o.explicit.max=l,o.meta.hasExplicitMin=!Number.isNaN(s),o.meta.hasExplicitMax=!Number.isNaN(l),o.meta.hasExplicit=o.meta.hasExplicitMin||o.meta.hasExplicitMax,function({continuousModel:e,layoutService:t,reducedModel:n}){const{isDiscrete:r}=t.meta;if(r){const e=n.query.getCube();return Promise.resolve({dataPage:e.qDataPages[0]})}return e.fetchMinMaxData().then((e=>({dataPage:e[0]})))}({continuousModel:t,layoutService:n,reducedModel:r}).then((({dataPage:t})=>{const{min:n,max:r,bar:s,line:l,marker:c}=a({dataPage:t}),u=i.query.seriesByAxis(e).some((e=>Ip(e)===gd.BAR)),d=Number((u?Math.min(n,0):n).toFixed(13)),f=Number((u?Math.max(r,0):r).toFixed(13)),h=Number((u?Math.min(s.min,0):s.min).toFixed(13)),p=Number((u?Math.max(s.max,0):s.max).toFixed(13)),m=Number((u?Math.min(l.min,0):l.min).toFixed(13)),g=Number((u?Math.max(l.max,0):l.max).toFixed(13)),y=Number((u?Math.min(c.min,0):c.min).toFixed(13)),v=Number((u?Math.max(c.max,0):c.max).toFixed(13));o.implicit.min=Number.isFinite(d)?d:0,o.implicit.max=Number.isFinite(f)?f:0,o.implicit.bar.min=Number.isFinite(h)?h:0,o.implicit.bar.max=Number.isFinite(p)?p:0,o.implicit.line.min=Number.isFinite(m)?m:0,o.implicit.line.max=Number.isFinite(g)?g:0,o.implicit.marker.min=Number.isFinite(y)?y:0,o.implicit.marker.max=Number.isFinite(v)?v:0,o.min=Number.isNaN(o.explicit.min)?o.implicit.min:o.explicit.min,o.max=Number.isNaN(o.explicit.max)?o.implicit.max:o.explicit.max,o.meta.hasExplicitMin&&!o.meta.hasExplicitMax&&(o.max=Math.max(o.min,o.max)),o.meta.hasExplicitMax&&!o.meta.hasExplicitMin&&(o.min=Math.min(o.min,o.max)),o.meta.includesZero=!!((0-o.min)*(0-o.max)<=0)}))}}}}function kre({extrema:e,ticks:t}){const n=e.meta.hasExplicit?2:3;return t.filter((t=>(t=>!e.meta.hasExplicitMin||t>=e.explicit.min)(t)&&(t=>!e.meta.hasExplicitMax||t<=e.explicit.max)(t))).length>=n}function Ere({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=bn().domain([e,t]);return r.nice(n),r}(e,t,n),a={start:!0,stop:!0};if(!a.start||!a.stop){const[e,t]=o.domain(),r=o.ticks(n),i=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;o.domain([a.start?e:e-i,a.stop?t:t+s]),o.nice(n)}return o}const Cre=50,Ore=100,Nre=200,Tre=125;function Are({config:{measureAxesRef:e},layoutService:t,size:n}){const r=(e=>{switch(e){case.5:return Cre;case 1:return Ore;case 2:return Nre;default:return e*Tre}})(t.getLayoutValue(`${e}.spacing`,1));return Math.max(1,Math.round(n/r))}function Rre({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:o,min:a,max:s}){const l=Are({config:e,layoutService:n,size:o}),c=Ere({min:a,max:s,count:l,threshold:.05,disable:!0}),u=c.domain(),d={roundedMin:u[0],roundedMax:u[1],ticks:c.ticks(l)},f="horizontal"===r.meta.major.orientation?"height":"width",h=e=>i(e)[f],p=t.formatter(e.formatter),m=()=>{const e=d.ticks.map(p),t=e.some(((t,n)=>e.indexOf(t)!==n));return!t&&(e=>{const t=o/d.ticks.length;return Math.max(...e.map(h))<=t})(e)};for(let e=l-1;e>0&&!m();e--)c.domain([a,s]),c.nice(e),[d.roundedMin,d.roundedMax]=c.domain(),d.ticks=c.ticks(e);return d}function qre({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function Dre({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}function Ire({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=Ere({min:r,max:i,count:10,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(10),l=function({ticks:e}){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?qre:Dre;o.ticks=s.filter(((e,t,n)=>c({tick:e,index:t,ticks:n})));o.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(o.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const u=t.formatter(e.formatter),d=o.ticks.map(u),f=d.some(((e,t)=>d.indexOf(e)!==t));return f&&(o.ticks=[o.ticks[0],o.ticks[o.ticks.length-1]]),o}function Lre({ticks:e,extrema:t}){let n=[...e];return t.meta.hasExplicit&&e.length?(t.meta.hasExplicitMin&&!e.some((e=>e===t.explicit.min))&&(n.unshift(t.explicit.min),n=n.filter((e=>e>=t.explicit.min))),t.meta.hasExplicitMax&&!e.some((e=>e===t.explicit.max))&&(n.push(t.explicit.max),n=n.filter((e=>e<=t.explicit.max))),n):n}function Pre({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){const{ticks:c,roundedMin:u,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){if("SPARK"===r.meta.chart.mode)return function({min:e,max:t}){return{roundedMin:e,roundedMax:t,ticks:[]}}({min:s,max:l});const c=Rre({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return kre({extrema:i,ticks:c.ticks})?c:Ire({config:e,chart:t,extrema:i,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}),f=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}({ticks:c,count:1}),h=[...Lre({ticks:c,extrema:i}).map((e=>({value:e,isMinor:!1}))),...f.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value));return{min:u,max:d,values:h}}function _re({config:e,chart:t,layoutService:n,dockService:r,measureText:i,extrema:o,size:a}){const{min:s,max:l}=function({extrema:e}){const{min:t,max:n}=e;return t!==n?{min:t,max:n}:0===t||1===t?{min:t-1,max:n+1}:{min:t-.2*t*Math.sign(t),max:n+.2*n*Math.sign(n)}}({extrema:o});return Pre({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function zre({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,c=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:i,seriesModel:o,themeService:a}){const{measureText:s}=QR.renderer("svg")();return()=>{const l=a.getStyles(),c=function({dockService:e,seriesModel:t,chart:n}){var r;const i=n.component(t.meta.seriesComponentKeys[0]),o=null!==(r=null==i?void 0:i.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?o.height:o.width}({chart:e,dockService:n,seriesModel:o}),u=r.query.getExtrema(),d=_re({config:t,chart:e,layoutService:i,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:u,size:c});return d}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}),u=()=>(s.locked&&s.resolved||(s.resolved=c()),s.resolved);return{query:{getValues:()=>u().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:u().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:u().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function Fre({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return O.snapshot(e)?Promise.resolve(null):t.getEffectiveProperties().then((e=>({properties:e})))}({layout:t.getLayout(),model:e}).then((e=>{const{properties:t}=null!=e?e:{};n.properties=t}))}}}function jre({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:i,fieldType:o}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===i?"measure"===o?()=>({type:gd.BAR}):()=>t.query.all()[0]:e=>t.query.all()[e.value];return{item:{shape:{type:({datum:e})=>{const{type:t,options:n}=s(e);switch(t){case"line":return a;case"marker":return n.marker;default:return"square"}},stroke:{},strokeWidth:({datum:e})=>{const{type:t,options:n}=s(e);return t===gd.LINE?2:t!==gd.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==gd.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function $re({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function Bre({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:i,genericObjectModel:o,layoutService:a,picasso:s,seriesModel:l,viewState:c,styleModel:u}){let d;const{theme:f,translator:h}=i,p={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=js({picasso:s,model:o,app:n,translator:h,layoutService:a,createConfig:()=>{const e=a.getHyperCubeValue("qMeasureInfo").map((e=>e.color));return{theme:f,colorProps:{measureOverrides:e},legendProps:a.getLayoutValue("legend"),hc:a.getHyperCube(),key:md.SCALE.COLOR}},config:{auto:$re,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>p.wrappedScales,legendComponents:()=>p.legendComponents,legendInteractions:()=>p.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:o}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:i,colorService:o,actions:a,styleModel:s}){const{options:l}=i,c={eventName:"legend-c",key:md.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",styleOverrides:{title:s.query.legend.title.getStyle(),label:s.query.legend.label.getStyle()},rtl:"rtl"===l.direction,settings:jre({layoutService:n,seriesModel:r,colorService:o})},{components:u,interactions:d}=o.getLegend(c,{actions:a,navigationDisabled:!a.interact.enabled()}),f=o.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=f[`${md.SCALE.COLOR}Range`];return!r||"right"!==n&&"left"!==n||(r.invert=!0),"legend-cat"===e.type&&(e.settings.item.shape.fill.scale=e.scale,e.settings.item.shape.stroke.scale=e.scale),e})),interactions:d,scales:f}}({viewState:c,chart:r,environment:i,colorService:d,seriesModel:l,layoutService:a,actions:e,styleModel:u});p.wrappedScales=o,p.legendComponents=t,p.legendInteractions=n}}}),d}const Hre="REJECTED",Vre=()=>{},Ure=2,Wre=20,Yre=200,Gre=10;var Kre={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),c=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-Gre<=t.qTop,i=n.qLeft+n.qWidth+Gre>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+Gre>=t.qTop+t.qHeight,a=n.qLeft-Gre<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var Xre={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-Gre<=t.qTop,i=n.qTop+n.qHeight+Gre>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var Jre={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const Zre="pages";const Qre="discretePan";function eie({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:Qre,pointers:1,threshold:10,enable(r,i){return this.started===Qre||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${Qre}start`](e){e.preventDefault(),this.started=Qre;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},[`${Qre}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},[`${Qre}end`](e){e.preventDefault(),this.started=!1},[`${Qre}cancel`](e){e.preventDefault(),this.started=!1}}}}function tie({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=100*Math.sign(-a);r.scroll(s)}}function nie({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(1e4/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(Yre,n));return{width:e,height:Math.max(Wre,Math.min(n*Ure,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function rie(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject(Hre),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(Hre),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(Hre),n=null)},i}const iie={command:{update:()=>{}}};function oie({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=iie,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,u=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:c}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&c&&c();const u=r(l);return o(i(u)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:nie({layoutService:r}),request:c({definitionPath:o}),process:rie(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=sl(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==Hre)throw e}))}),50);return function(e,{onProcessing:t=Vre,onDataPage:n=Vre}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var aie={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var sie={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function lie(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function cie(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function uie(e){return cie(e.qMatrix,(e=>e[0].qElemNumber))-1}var die={inTotal:function({layoutService:e}){const t=lie(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=lie(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=lie(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=uie(o),c=o.qArea.qHeight*i+l,u=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const fie=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function hie(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return fie(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n})(t.qMatrix,n);return r.successful?r.count:fie(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return fie(e,n);return cie(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var pie={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=hie(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:c}=n,u=hie(t).area(e(),l,a.qArea),d=uie(a),f=a.qArea.qHeight+d,h=c===o?(r.inView-f)*s/i:(c+(a.qArea.qTop+u)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function mie({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:h}=r[n.meta.chart.mode],p="horizontal"===n.meta.major.orientation,{axisDisplayMode:m="auto",maxVisibleItems:g=10,label:y}=s,v=p?t.width:t.height,b=v/l>=f;switch(m){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/h:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return f>o;const h=(90-d)*(Math.PI/180);return f>Math.cos(h)*o}({chart:e,isHorizontal:p,axisKey:i,renderer:o,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}function gie({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?aie:n?r?die:pie:sie}({layoutService:r}),h=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,p=e=>e?h()/e:0,m=(e,t)=>-(e-t)*p(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:mie({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(1e4/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return p(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,m(n,r))),o=r?Math.abs(r*i/h()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return m(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,Math.min(1,o+e/i)]}({viewSize:h(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:h(),upperBound:m(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&c?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=m(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*p(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(p(r)*n)}}}}function yie({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:f,rtl:h}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const p=gie({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:h}),m=()=>{const e=p.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=p.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=m(),a=g({pixelOffset:e,items:r}),s=p.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((p.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item})));f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item}))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=m();n.set("itemSize",p.getItemSize({items:a}));const c=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?p.getUpperBound({items:e}):0;if("number"==typeof n)return p.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return p.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),u=g({pixelOffset:c,items:a});f.preventSet("viewRange",p.getViewRange({pixelOffset:u.start.pixel,items:a}));const d=p.getArea({itemOffset:u.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",p.getScaleRange({offsets:u.start,items:a})),f.preventSet("scrollOffset",{start:u.start.item,end:u.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=p.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function vie({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:u="/qHyperCubeDef",getRect:d,axisKey:f,renderer:h,areaBuffer:p,processDataPage:m=()=>{}}={}}){const g=ol(),y=function({qMode:e}){switch(e){case"K":return Xre;case"T":return Jre;default:return Kre}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(Zre,[]),{add:t=>{const n=e.get(Zre);n.length=0,n.push(t)},getCurrent:()=>e.get(Zre)[0],getAll:()=>e.get(Zre),contains:n=>t(e.get(Zre)[0],n)}}({state:g,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:p}),x=oie({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:m}),S=yie({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,renderer:h,areaBuffer:b,viewState:l,rtl:c}),w=function({layoutService:e,dataStore:t}){return function(n){const r=nl(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),M=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[eie({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:tie({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:c,scroller:S});return{interactions:M,query:{getCanScroll:()=>S.enabled(),getItemSize:()=>S.itemSize(),getScaleRange:()=>S.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>S.initialize(),scrollTo:e=>S.scrollToRelative(e),setSnapshotData:e=>w(e)}}}var bie={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}};function xie({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:e,defaultValue:t})=>n&&Object.hasOwnProperty.call(n,e)?n[e]:t}function Sie({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:i,LINE:o,POINT:a}=fh,s=n.getStyles(),l=xie({layoutService:e,key:"bar"}),c=xie({layoutService:e,key:"line"}),u=()=>{const e=l({property:"strokeWidth",defaultValue:"none"});return e?i.STROKE.WIDTH[e.toUpperCase()]:0},d=t=>r.isEnabled("CLIENT_IM_3050")?e.getLayoutValue("components",[]).find((e=>e.key===t)):void 0;return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>l({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!u(),getStrokeWidth:()=>u(),getStrokeColor:()=>l({property:"strokeColor",defaultValue:{index:-1,color:i.STROKE.COLOR}}).color,label:{getStyle:()=>{var e,t,n,r,i,o,a,l;return{fill:null!==(e=null===(t=d("bar"))||void 0===t||null===(t=t.bar)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,useContrastColor:null===(n=null===(r=d("bar"))||void 0===r||null===(r=r.bar)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.useContrastColor)||void 0===n||n,fontSize:null!==(i=null===(o=d("bar"))||void 0===o||null===(o=o.bar)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:12,fontFamily:null!==(a=null===(l=d("bar"))||void 0===l||null===(l=l.bar)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l.fontFamily)&&void 0!==a?a:s.label.value.fontFamily}}}},line:{getCurveFn:()=>()=>c({property:"lineCurve",defaultValue:o.CURVE.LINEAR}),getStrokeWidthFn:()=>()=>c({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?o.WIDTH.FULL.DEFAULT:o.WIDTH.LESS.DEFAULT}),getStrokeDasharrayFn:()=>()=>{const e=c({property:"lineType",defaultValue:o.TYPE.SOLID});return e&&o.TYPE[e.toUpperCase()]}},point:{getSize:()=>c({property:"dataPointSize",defaultValue:a.SIZE.DEFAULT}),label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("line"))||void 0===t||null===(t=t.line)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("line"))||void 0===r||null===(r=r.line)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("line"))||void 0===o||null===(o=o.line)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},marker:{label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("marker"))||void 0===t||null===(t=t.marker)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("marker"))||void 0===r||null===(r=r.marker)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("marker"))||void 0===o||null===(o=o.marker)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},axis:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.axis.title.fontFamily,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.title.fontSize,color:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.axis.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.axis.label.name.color,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.label.name.fontSize,fontFamily:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.title.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.title.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.label.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.label)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.label.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.label.color}}}}}}}function wie({dataset:e,data:t,valueData:n}){var r;const{source:i,label:o,value:a}=n,s=e(i.key).field(i.field);return M.shouldUseFormat(s.raw())?"-"===o||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):o}function Mie({chart:e,actions:t,translator:n,rtl:r,dockService:i,seriesModel:o,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,f=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:h}=md.COMPONENT,{PRIMARY:p,SECONDARY:m}=yd,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:i,SLICED_HAT:o}=md.COMPONENT,{PRIMARY:a,SECONDARY:s}=yd,{orientation:l}=e.meta.chart,c="vertical"===l,u=[...t.meta.barComponentKeys,...t.meta.markerComponentKeys,...t.meta.pointComponentKeys];return[({chart:e,hovered:t,meta:l})=>{const[d]=t,{triggerer:f}=l,h=f===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${o}-max-${a}`||e.key===`${o}-max-${s}`)&&e.data&&e.data.value===h&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const p=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===`${i}-max`)&&e.data.major.value===h));if(c&&p)return{key:p.key,bounds:p.bounds};const m=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===`${i}-min`)&&e.data.major.value===h)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===h));if(c&&m&&!g.find((e=>{var t,n;return(null===(t=e.data.end)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=m.data.end)||void 0===n||null===(n=n.source)||void 0===n?void 0:n.field)}))&&!g.find((e=>{var t,n;return(null===(t=e.data.segment)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=m.data.source)||void 0===n?void 0:n.field)})))return{key:m.key,bounds:m.bounds};const y=p||m;return!(c||!y||g.find((e=>{var t,n;return(null===(t=e.data.end)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=y.data.end)||void 0===n||null===(n=n.source)||void 0===n?void 0:n.field)}))||g.find((e=>{var t,n;return(null===(t=e.data.segment)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=y.data.source)||void 0===n?void 0:n.field)})))&&{key:y.key,bounds:y.bounds}},"collectible"]}({dockService:i,seriesModel:o});return nd({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:md.COMPONENT.TOOLTIP,getGroupByValue:d,collectibles:[...o.meta.barComponentKeys.map((e=>({key:e,type:"bar",major:d}))),...o.meta.pointComponentKeys.map((e=>({key:e,type:"point",major:d}))),...o.meta.markers.map((e=>({key:e.key,type:e.type,major:d})))],triggers:[{keys:[md.COMPONENT.AXIS.MAJOR],collect:{from:"dimension",by:({data:e})=>e.value,filter:f},placement:g},{keys:[...o.meta.barComponentKeys,...o.meta.markerComponentKeys,`${h}-max-${p}`,`${h}-max-${m}`,`${h}-min-${p}`,`${h}-min-${m}`,`${md.COMPONENT.BAR_OOB}-max-${p}`,`${md.COMPONENT.BAR_OOB}-max-${m}`,`${md.COMPONENT.BAR_OOB}-min-${p}`,`${md.COMPONENT.BAR_OOB}-min-${m}`,`${md.COMPONENT.DATA_OOB_MARKER}-max`,`${md.COMPONENT.DATA_OOB_MARKER}-min`],collect:{from:"dimension",by:d,filter:f},placement:g},{keys:[...o.meta.pointComponentKeys],distance:3,collect:{from:"dimension",by:d,filter:f},placement:g}],section:({h:e,nodes:t,dataset:n,create:r,util:i})=>{const[o]=t,{title:a,description:s,measures:l}=c.isEnabled()?c.getAttributes({dataset:n,nodes:[o]}):{},u=[];a&&u.push(r.text({value:a,style:{bold:!0}})),s&&u.push(r.text({value:s}));const d=c.hideBasic();d&&!l.length&&(a||s)||u.push(r.text({value:o.data.label,style:{bold:!0}})),d||(u.push(r.color({nodes:t,property:md.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:o}=e.data,a=t||o,{key:s,field:l}=a.source;return r.measure({label:i.dataset.title(s,l),value:wie({dataset:n,data:e.data,valueData:a})})})))),l&&u.push(...l.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),c.chart.isEnabled()&&(c.chart.hasLimitation()?(c.chart.destroy(),u.push(r.raw({value:c.chart.createLimitationRow()}))):u.push(r.raw({value:c.chart.createContainer({h:e})})));const{customTooltipImages:f}=o.data;return c.isEnabled()&&f&&u.push(...f.map((t=>r.raw({value:c.createImageRow({value:t,h:e})})))),u},layout:{grouping:!0,single:()=>!(!c.isEnabled()||!c.hasImages())||c.chart.isEnabled()},events:{tooltip:{beforeShow:({collectNodes:e})=>c.isEnabled()&&c.hasImages()?c.addImages({nodes:e()}):Promise.resolve(),afterShow:({nodes:e})=>{c.chart.isEnabled()&&!c.chart.hasLimitation()&&c.chart.show({nodes:e,properties:l.query.getProperties()})}},interaction:{mouseleave:()=>{c.chart.isEnabled()&&c.chart.hasAlternateState()&&c.chart.hide()}}}},legend:{keys:{tooltip:md.COMPONENT.LEGEND_TOOLTIP,component:md.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:kie}=wg,Eie=({picasso:t,chart:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,selectionService:l})=>{var c;const u=e.useStaleLayout(),{width:d,height:f}=e.useRect(),[h,p]=e.useState(),[m,g]=e.useState(),y=e.useModel(),v=e.useApp(),b=e.useAppLayout(),S=e.usePlugins(),w=e.useEmbed(),M=zee({enable:!1===(null==h||null===(c=h.layoutService)||void 0===c||null===(c=c.meta)||void 0===c?void 0:c.isSnapshot)});e.useEffect((()=>{if(!(u&&null!=n&&n.update&&r&&o&&l))return;const e=function(e){var t=e.source,n=e.metaAdditionsFn,r=e.experimental,i=void 0===r?{filter:!1}:r,o=fa(!0,{},t),a=i.filter?function(e){var t=e.qHyperCube,n=cl(t,ll.DIMENSION),r=n.reduced,i=n.filtered;t[ll.DIMENSION]=r;var o=cl(t,ll.MEASURE),a=o.reduced,s=o.filtered;return t[ll.MEASURE]=a,{dimensions:i,measures:s}}(o):{dimensions:[],measures:[]},s=dl(o),l=function(){var e=function(e){var t=e.layout,n=e.additionsFn,r=void 0===n?function(){return{}}:n,i=e.additionsProps,o=void 0===i?{}:i,a=t.qHyperCube,s=a.qDimensionInfo,l=a.qMeasureInfo,c=a.qMode,u=s.length,d=l.length,f=Fo({mode:{S:"S"===c,P:"P"===c,K:"K"===c,T:"T"===c},dimensionCount:u,measureCount:d,hasMultipleDimensions:u>1,hasMultipleMeasures:d>1,isOneDimensional:1===u,isTwoDimensional:2===u},o);return Fo(Fo({},f),r({layout:t,meta:f}))}({layout:o,additionsFn:n,additionsProps:{size:s.size}});return e.filteredFields=a,e},c={refs:Fo({},s.refs),meta:l(),getLayout:function(){return o},getLayoutValue:function(e,t){return nl(o,e,t)},setLayoutValue:function(e,t){il(o,e,t),s=dl(o),c.meta=l()},getHyperCube:function(){return o.qHyperCube},getHyperCubeValue:function(e,t){return nl(o.qHyperCube,e,t)},setHyperCubeValue:function(e,t){il(o.qHyperCube,e,t),s=dl(o),c.meta=l()},getDataPages:function(){return nl(o,s.refs.dataPages)},setDataPages:function(e){il(o,s.refs.dataPages,e),c.meta=l()}};return c}({source:u,metaAdditionsFn:function({layout:e}){var t;const n=nl(e,"qHyperCube.qMeasureInfo",[]),r=n.some((({series:e=vd})=>Ip(e)===gd.LINE)),i=O.continuous(e,(()=>r&&x.isTime(!0,e))),o=!mre(nl(e,"version","")),a=n.filter((({series:e=vd})=>Ip(e)===gd.BAR)),s=a.length,l=a.filter((({series:e=vd})=>e.axis!==yd.SECONDARY)).length,c=a.filter((({series:e=vd})=>e.axis===yd.SECONDARY)).length,u=o?l>1||c>1:s>1,d=("grouped"!==nl(e,"barGrouping.grouping")||i)&&u,f=!d&&s>1,h=o&&d&&(l>0&&c>1||l>1&&c>0),p=!(null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qLocked);return{canBeContinuous:x.canBeContinuous(e),isDiscrete:!i,isContinuous:i,isTime:x.isTime(i,e),isSnapshot:O.snapshot(e),isBarSeriesStacked:d,isBarSeriesGrouped:f,isBarSeriesStackedInBothAxis:h,isGrouped:f||h,isGroupedByMeasure:f||h,isDimensionLocked:p,groupSize:h?2:s,hasLineSeries:r}}}),{options:c,translator:h}=r,{direction:m}=c,g="rtl"===m,M=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=bre({genericObjectModel:e,layoutService:t});return{query:{getCube:()=>n.cube,getIsReduced:()=>n.on},command:{initialize:()=>r().then((({reducedCube:e})=>{n.cube=e,n.on=!!(n.cube&&n.cube.qDataPages[0]&&n.cube.qDataPages[0].qIsReduced)})),setSnapshotData:e=>{e.reducedHyperCube=n.cube}}}}({genericObjectModel:y,layoutService:e}),k=function(e){var t,n=e.app,r=e.translator,i={initialized:!1,dimensions:[],measures:[]};return{initialize:(t=Po($o().mark((function e(t){var o,a,s,l,c,u,d;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.properties,!i.initialized){e.next=3;break}return e.abrupt("return");case 3:return s=[aa(a={app:n,translator:r,properties:o}),ca(a)],e.next=7,Promise.all(s);case 7:l=e.sent,c=Bo(l,2),u=c[0],d=c[1],i.dimensions=u,i.measures=d,i.initialized=!0;case 12:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),getAlternatives:function(){return{dimensions:Ho(i.dimensions),measures:Ho(i.measures)}}}}({app:v,translator:h}),E=tl({chart:n,layoutService:e,config:{logicalSize:{width:d,height:f},rtl:g},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),C=gre({layoutService:e}),N=e.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:i,viewState:o,rtl:a,actions:s,picasso:l}){return vie({chart:e,actions:s,componentKey:Mg(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:bie,options:{axisKey:md.COMPONENT.AXIS.MAJOR,renderer:l.renderer("svg")()}})}({chart:n,genericObjectModel:y,layoutService:e,dockService:E,seriesModel:C,viewState:o,rtl:"rtl"===r.options.direction,actions:s,picasso:t}):void 0,T=e.meta.isContinuous?kie({model:y,layoutService:e,viewState:o,viewCache:a}):void 0,A=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:ku(a),styles:void 0};return d.styles=Cu({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=Cu({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:r.theme,config:{id:"comboChart"}}),R=Sie({layoutService:e,dockService:E,themeService:A,flags:i}),q=Bre({actions:s,appLayoutModel:b,appModel:v,chart:n,environment:r,genericObjectModel:y,layoutService:e,picasso:t,seriesModel:C,viewState:o,styleModel:R}),D=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=`${r}:numeric`,o=t.meta.primarySeries.map((e=>e.ref)),a=t.meta.secondarySeries.map((e=>e.ref)),s=n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0;return{main:{major:r,majorNumeric:i,minorsPrimary:o,minorsSecondary:a},virtuals:s}}({layoutService:e,seriesModel:C}),I=Mre({isPrimary:!0,layoutService:e,reducedModel:M,seriesModel:C,continuousModel:T}),L=Mre({isPrimary:!1,layoutService:e,reducedModel:M,seriesModel:C,continuousModel:T}),P=function({layoutService:e}){return Us({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0}}})}({layoutService:e}),_=zre({config:{measureAxesRef:"measureAxes.0",formatter:md.FORMATTER.PRIMARY},chart:n,layoutService:e,extremumModel:I,dockService:E,seriesModel:C,themeService:A}),z=zre({config:{measureAxesRef:"measureAxes.1",formatter:md.FORMATTER.SECONDARY},chart:n,layoutService:e,extremumModel:L,dockService:E,seriesModel:C,themeService:A}),F=Fre({genericObjectModel:y,layoutService:e}),j=zd({flags:i,layout:u,app:v,model:y,picasso:t,chart:n,translator:h,localeInfo:b.qLocaleInfo,embed:w,options:c}),$=Mie({chart:n,actions:s,translator:h,rtl:g,dockService:E,seriesModel:C,colorService:q,themeService:A,propertiesModel:F,custom:j}),B=hd({layoutService:e,discreteModel:N}),H=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:md.SCALE.MAJOR,MAJOR_INNER:md.SCALE.MAJOR_INNER,MINOR:{PRIMARY:md.SCALE.MINOR.PRIMARY,SECONDARY:md.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${md.COMPONENT.BAR}-${yd.PRIMARY}`,BAR_SECONDARY:`${md.COMPONENT.BAR}-${yd.SECONDARY}`,AXIS:{MAJOR:md.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:md.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:md.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:md.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:md.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:md.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:md.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:md.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:md.COLLECTION.MAIN}}}}(e),V=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return Po($o().mark((function e(){var r,a,s,l;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=Po($o().mark((function e(n){var r;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(Fo({},i));case 4:if("object"===Vo(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(Fo({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,Ho(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=Bo(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=fa(!0,{},n.brush);fa(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===Vo(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=fl({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=fl({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:S,pluginArgs:H}),U=function({options:e,viewCache:t,layoutService:n}){const r={hasSlicedHats:!1,isPartialUpdating:!1,isSizeChanging:!1};return{enabled:()=>!(!1===e.chartAnimations||r.hasSlicedHats||r.isPartialUpdating||r.isSizeChanging||od.propertiesHaveChanged({viewCache:t,layout:n.getLayout()})),meta:r}}({options:c,viewCache:a,layoutService:e});p({alternativeService:k,selectionService:l,genericObjectModel:y,appModel:v,dockService:E,styleModel:R,layoutService:e,fieldModel:D,seriesModel:C,reducedModel:M,primaryExtremumModel:I,secondaryExtremumModel:L,primaryTickModel:_,secondaryTickModel:z,propertiesModel:F,colorService:q,themeService:A,appLayoutModel:b,tooltipService:$,disclaimerService:P,flags:i,...N&&{discreteModel:N},...T&&{continuousModel:T},refLineModel:B,pluginService:V,animationsModel:U})}),[u,y,v,b,r,null==n?void 0:n.update,o,l]);const[,k]=e.usePromise((()=>{if(!h)return Promise.resolve();const{alternativeService:e,layoutService:t,colorService:n,reducedModel:i,primaryExtremumModel:a,secondaryExtremumModel:c,propertiesModel:u,continuousModel:d,discreteModel:f,pluginService:p,disclaimerService:m}=h,v=d?()=>{var e;d.update(t.getLayout());const n=d.initialFetch(),i=!t.meta.isSnapshot&&(null==r||null===(e=r.options)||void 0===e||null===(e=e.viewState)||void 0===e?void 0:e.zoom);return i&&o.preventSet("zoom",i),n}:()=>Promise.resolve(),b=n.initialize().then((()=>{const e=n.getSettings().field;l&&l.setBrushAliases({colorField:e}),n.custom.updateLegend()}));return Promise.all([p.initialize(),i.command.initialize(),y?u.command.initialize():Promise.resolve(),b,v(),s.scroll.attachDiscreteModel(f)]).then((()=>Promise.all([a.command.initialize(),c.command.initialize()]).then((()=>{e.initialize({properties:u.query.getProperties()||{}}),m.initialize(),g({...h})}))))}),[h,M]);if(k)throw k;return m};function Cie(){const[t,n]=e.useState();return e.useEffect((()=>{n(function(e){var t=Fo({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({viewRange:[0,1],scrollOffset:void 0}))}),[]),t}const Oie={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"}}]};const Nie={query:{getCanScroll:()=>!0}};function Tie(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState(!1),[a,s]=e.useState(!1),l=function(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState({}),[a,s]=e.useState();return e.useEffect((()=>()=>{o({})}),[]),e.useEffect((()=>{t&&r(!t.select&&!t.active)}),[t]),{enabled:()=>n,emit:(e,...t)=>i[e].forEach((e=>e(...t))),removeListener:(e,t)=>{var n;const r=null===(n=i[e])||void 0===n?void 0:n.indexOf(t);r>-1&&i[e].splice(r,1)},on:(e,t)=>{Array.isArray(i[e])?i[e].push(t):i[e]=[t]},get brushSelectionIncludeMax(){return a},set brushSelectionIncludeMax(e){s(e)},getBrushOptions:void 0}}(),c=function(){var t;const n=e.useConstraints(),[r,i]=e.useState(!1),[o,a]=e.useState(!1),s=e.useLayout(),l=e.useTranslator(),c=!!s.qSelectionInfo.qInSelections,u=!(null===(t=s.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qIsOneAndOnlyOne);e.useEffect((()=>{n&&i(!n.select&&!n.active)}),[n]);const d=e=>{a("boolean"==typeof e?e:!o)};return e.useAction((()=>({key:"lasso",label:l.get(o?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:Oie,hidden:!r||!c||u,active:o,action:d})),[c,u,o,r,l.language()]),{action:d,enabled:()=>r,active:()=>o}}();let u=Nie;e.useEffect((()=>{t&&(r(!t.active),o(!t.active),s(!t.passive))}),[t]);const[d]=e.useState({});return d.scroll={enabled:()=>n&&u.query.getCanScroll(),attachDiscreteModel:e=>{u=e||Nie}},d.interact={enabled:()=>i},d.tooltip={enabled:()=>a},d.lasso=c,d.select=l,d}function Aie({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function Rie({setSelectionInfo:e,event:t,components:n,clear:r}){const i=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:i,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&i[0]===md.COMPONENT.LEGEND_CATEGORICAL}),r()}var qie={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Re});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=S({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e){return k="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},k(e)}var E=t().bind(null,!0),C={},O=Array.isArray;function N(e){return null!=e&&!Array.isArray(e)&&"object"===k(e)}function T(e){return void 0===e}function A(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function R(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?o:e[t],e=e[n||t]}})),e}function q(e,t){var n=!0;if(N(e)&&N(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){q(e[r],t[r])||(n=!1)})),n);if(O(e)&&O(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!q(e[r],t[r]))return!1;return!0}return e===t}C.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?E({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);q(o,a)||A(t,i)||(T(a)?r.push({op:"add",path:s,value:o}):N(o)&&N(a)?r=r.concat(C.generate(a,o,s)):O(o)&&O(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(q(t,i))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(C.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){T(t[i])&&!A(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},C.apply=function(e,t){t.forEach((function(t){var n,r,i=R(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(O(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(O(a)&&O(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return M(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(N(a)&&N(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!A(n,e)&&delete n[e]})),E(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=R(e,t.from);O(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(O(i)?i.splice(+o,1):delete i[o])}))},C.clone=function(e){return E({},e)},C.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},C.updateObject=function(e,t){Object.keys(e).length?C.apply(e,C.generate(e,t)):E(e,t)};const D=C,I=function(e,n,r){if(!e)return Promise.resolve();var i=D.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var L="accumulation";function P(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===L)return n[r]}function _(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===L)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),f=w.getAboveComp(n,l,u,d),h=w.getRangeComp("RangeSum",f);if(w.needDimension({modifier:n,properties:r,layout:i})){var p=w.getDimComp(c,1),m=w.getDimComp(c,0),g=w.getAggrComp(h,p,m);h=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(_(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(_(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=P(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=P(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(L))return!1;var o=P(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=w.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=w.getNumStepComp(r,c),p=w.getAboveComp(r,c,f,h);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",p);else{var m=w.getRangeComp("RangeSum",p),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(w.needDimension({modifier:r,properties:i,layout:a})){var v=w.getDimComp(u,1),b=w.getDimComp(u,0),x=w.getAggrComp(y,v,b);y=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=$(t,e);return o&&!o.disabled}};return n}};var U="timeSeriesDecomposition";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var G={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,G),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=W(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=W(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(U))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:i})){var h=w.getDimComp(c,1),p=w.getDimComp(c,0),m=w.getAggrComp(f,h,p);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Me="qDef.base.qLabel",ke="qDef.base.qLabelExpression",Ee="qDef.qAggrFunc",Ce="qDef.base.qAggrFunc",Oe={initBase:function(e,t){(t||Oe.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Me,o(e,Se)),n(e,ke,o(e,we)))},restoreBase:function(e){Oe.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,Se,o(e,Me)),n(e,we,o(e,ke)),o(e,Ee)&&o(e,Ce)&&n(e,Ee,o(e,Ce)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const Ne=Oe;function Te(e){return Te="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},Te(e)}var Ae={accumulation:F,movingAverage:V,difference:ee,normalization:ue,timeSeriesDecomposition:K};const Re={modifiers:Ae,apply:De,applyModifiers:Ie,cleanUpMeasure:Le,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:Pe,getActiveModifier:_e,initBase:Ne.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Ze({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var qe={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;qe[n.id]=qe[n.id]||{isFirstTime:!0};var c=qe[n.id].isFirstTime;if(qe[n.id].isFirstTime=!1,r&&"object"===Te(r))return Ie({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=qe[n.id].lastReloadTime;if(qe[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Pe({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var i=Qe(r);return Ge({model:n}).then((function(t){return Ke({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(n++,"object"!==Te(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ie({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Te(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Le(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ie(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),Be(i);var f=Qe(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Pe({measures:n,properties:r}))return n.forEach((function(e){return Le(e)})),Promise.resolve();var l=a?void 0:Qe(r);return Ge({model:i,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Ne.isValid(n)||Ne.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(s++,"object"!==Te(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ae[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Ae[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),He(n)):Le(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Le(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Ne.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Pe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function _e(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ae[r.type]&&!r.disabled)return r}}function ze(e){var t=_e(e);return!t||Ae[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function Be(e){Fe(e).forEach((function(e){return function(e){var n=_e(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ne.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!Ae[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Te(e)||e.disabled||!Ae[e.type])&&(void 0===i[e.type]&&(i[e.type]=Ae[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ge(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):I(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=Ue(t);o&&n.push(o),i=i||Ze({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(qe[t.id].masterItemSubscriber=qe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),qe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="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},i(e)}n.d(r,{default:()=>Be});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var S=n(229),w=n.n(S);function M(e,t){var n=w()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function k(e,t){return w()(!0,{},t,e)}function E(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var C=Math.pow(2,53)-1;function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const T=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},A=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},R=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},q=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},D=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},I=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=M(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=M(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},L=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=k(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=k(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},P=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=E(a.max,i.dimensions.length,C),l=E(a.min,i.dimensions.length,0);return{maxDimensions:E(o.max,s,C),minDimensions:E(o.min,l,0),maxMeasures:s,minMeasures:l}},_=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=w()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return O(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return N(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const U={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=P({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,S=b.minDimensions,w=b.maxMeasures,M=b.minMeasures,k=l.defaultDimension,E=void 0===k?q():k,C=l.defaultMeasure,O=void 0===C?D():C;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:M})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:M,newHyperCubeDef:v}),I({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:E}),L({exportFormat:t,maxMeasures:w,minMeasures:M,newHyperCubeDef:v,defaultMeasure:O}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),B({newProperties:g,dataDefinition:a,hypercubePath:c}),_({exportFormat:t,newHyperCubeDef:v}),A("qMaxStackedCells",y,v),A("qNoOfLeftDims",y,v),R("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),R("qMode",y,v,"S"),R("qReductionMode",y,v,"N"),R("qSortbyYValue",y,v),R("qIndentMode",y,v),R("qShowTotalsAbove",y,v),T(g,t,r),m.qProperty=g;var N=o.getValue(u||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:N}),f&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&V(m.qProperty,"dynamicScript"),m}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function G(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!W[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),G(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}o.auto=!1,o.mode=a}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=U.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=K.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",c),K.moveByIdFromGroup(a,[],"qAttributeExpressions",c),K.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=U.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Me(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function ke(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Me(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Me(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Ce="qHyperCubeDef.qMeasures",Oe="conditionalColoring",Ne="measures",Te="qDef.conditionalColoring";const Ae={quarantine:function(e){ke({properties:e,arrayPath:Ce,quarantineName:Oe,arrayName:Ne,itemPath:Te})},unquarantine:function(e){Ee({properties:e,arrayPath:Ce,itemPath:Te,arrayName:Ne,quarantineName:Oe})}};var Re="qHyperCubeDef.qMeasures",qe="measures",De="qHyperCubeDef.qDimensions",Ie="dimensions",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Pe="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){ke({properties:e,arrayPath:Re,quarantineName:je,arrayName:qe,itemPath:Fe}),ke({properties:e,arrayPath:De,quarantineName:je,arrayName:Ie,itemPath:Fe})},unquarantine:function(e){Ee({properties:e,arrayPath:Re,quarantineName:je,arrayName:qe,itemPath:Fe}),Ee({properties:e,arrayPath:De,quarantineName:je,arrayName:Ie,itemPath:Fe})},quarantineAlternative:function(e){ke({properties:e,arrayPath:Le,quarantineName:je,arrayName:Pe,itemPath:Fe}),ke({properties:e,arrayPath:_e,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ee({properties:e,arrayPath:Le,quarantineName:je,arrayName:Pe,itemPath:Fe}),Ee({properties:e,arrayPath:_e,quarantineName:je,arrayName:ze,itemPath:Fe})}},Be={hypercube:U,colorChart:ye,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:ke,unquarantineArrayProp:Ee,conditionalColoring:Ae,conditionalShow:$e}})(),r.default})()}(qie);var Die=r(qie.exports);const Iie={version:"1.32.0",qHyperCubeDef:{qAlwaysFullyExpanded:!0,qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},showTitles:!0,subtitle:"",title:"",footnote:"",barGrouping:{grouping:"grouped"},orientation:"vertical",scrollStartPos:0,nullMode:"gap",dataPoint:{show:!1,showLineLabels:!1,showBarLabels:!1},color:{auto:!0,mode:"primary",useBaseColors:"off",paletteColor:{index:6},useDimColVal:!0,useMeasureGradient:!0,persistent:!1,expressionIsColor:!0,expressionLabel:"",measureScheme:"sg",reverseScheme:!1,dimensionScheme:"12",autoMinMax:!0,measureMin:0,measureMax:10},legend:{dock:"auto",show:!0,showTitle:!0},components:[],dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},measureAxes:[{show:"all",dock:"near",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10},{show:"all",dock:"far",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10}],refLine:{refLines:[],refLines2:[],dimRefLines:[]},preferContinuousAxis:!0,showMiniChartForContinuousAxis:!0,tooltip:{auto:!0,hideBasic:!1,title:"",description:"",chart:void 0,imageComponents:void 0}};var Lie=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let i;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)i=Ip(n[e].qDef.series),i===gd.BAR?r[0]=1:i===gd.LINE?r[1]=1:r[2]=1;const o=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(o)},Pie=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===gd.LINE?"Visualizations.Descriptions.HeightLine":e===gd.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function _ie(e){var t,n;const r=e.qHyperCubeDef.qMeasures,i=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===i&&1===r.length&&Ip(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===gd.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function zie(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:Lie(t),added(e,t){qd.addCallbackCustomTooltip(t)},moved(e,t){qd.moveCallbackCustomTooltip(t,e)},removed(e,t){qd.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){qd.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:Pie(t),added({qDef:e},t){var n;_ie(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:gd.LINE,axis:yd.SECONDARY}:e.series={type:gd.BAR,axis:yd.PRIMARY})},moved(e,t){_ie(t)}}}}function Fie(e){const t=zie(e);return{properties:Iie,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=Die.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),o="linechart"===e.properties.visualization,a=[];i.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:o?"line":"bar",axis:0,marker:"circle",markerFill:!0}),a.indexOf(e.qDef.series.axis)<0&&a.push(e.qDef.series.axis)}));const s=a.sort().shift();return i.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&p(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>Die.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}const jie=e=>{const t=nl(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=vd})=>Ip(e)===gd.LINE));return O.continuous(e,(()=>t&&x.isTime(!0,e)))},$ie=(e,t,n)=>{let r;const i=n||0;var o,a;"function"==typeof(null==e?void 0:e.getMeasureLayouts)?r=e.getMeasureLayouts():r=null!==(o=null===(a=t.layout)||void 0===a||null===(a=a.qHyperCube)||void 0===a?void 0:a.qMeasureInfo)&&void 0!==o?o:[];return r.filter((e=>{const{series:t}=e||{};return 0===i?Hee(t,!0):!Hee(t,!0)}))},Bie=(e,t)=>{const n=$ie(e,t,0).filter((e=>e.series.type===gd.BAR)),r=$ie(e,t,1).filter((e=>e.series.type===gd.BAR)),i="stacked"===nl(t.layout,"barGrouping.grouping");return!O.continuous(t.layout)&&i&&(n.length>1||r.length>1)},Hie=(e,t,n,r,i=void 0)=>{const o=`${t}.fontFamily`,a=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(o),defaultValue:()=>n.getDefaultValue(o)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(a),defaultValue:()=>null!=i?i:n.getDefaultValue(a)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function Vie(e,t,n){const r=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=na({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:t,translator:n,flags:e,config:{id:"comboChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2431_COMBOCHART_BG"),items:{barSection:{translation:"Visualizations.Descriptions.Bars",component:"accordion",items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",show:(e,t)=>!jie(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue:.7,schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.barlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"bar",items:{...Hie("bar.label.value","label.value",r,t,"12px"),contrastColor:{component:"checkbox",type:"boolean",ref:"bar.label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0}},lineSection:{translation:"Visualizations.Descriptions.Lines",component:"accordion",items:{dataPointSection:{translation:"LayerStyleEditor.style.dataPointSize",component:"panel-section",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{translation:"Line options",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"Thickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"Type",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"Curve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.linelabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"line",items:Hie("line.label.value","label.value",r,t)}}}:void 0}},markerSection:{translation:"Visualizations.Descriptions.Markers",component:"accordion",items:{labelValueSection:{translation:"properties.dataPoints.markerlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"marker",items:Hie("marker.label.value","label.value",r,t)}}}}},axisTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:Hie("axis.title","axis.title",r,t)}}}:void 0,axisLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:Hie("axis.label.name","axis.label.name",r,t)}}}:void 0,legendTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:Hie("legend.title","legend.title",r,t)}}}:void 0,legendLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:Hie("legend.label","legend.label",r,t)}}}:void 0}}}const Uie={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barsSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barsHeader:{component:"header",translation:"Visualizations.Descriptions.Bars"},outlineSection:{component:"items",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891"},width:"auto",component:"color-picker"}}}}},widthSection:{component:"items",show:(e,t)=>!jie(t.layout),items:{barWidth:{component:"items",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:.7}}}}}}}}},linesSection:{component:"items",items:{wrapperItem:{component:"items",items:{linesHeader:{component:"header",translation:"Visualizations.Descriptions.Lines"},dataPointSection:{component:"items",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"LayerStyleEditor.style.lineType",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}},optionsSection:{component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollStartPos:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1}}}}}}};function Wie(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function Yie(e){var t,n;return Wie(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.mode)&&void 0!==t?t:"primary")}function Gie(e){var t;return Wie(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function Kie(e){var t,n,r,i,o;if(null!=e&&null!==(t=e.color)&&void 0!==t&&t.auto||"byExpression"!==(null==e||null===(n=e.color)||void 0===n?void 0:n.mode))return[];const a=null==e||null===(r=e.color)||void 0===r?void 0:r.colorExpression,s=null!==(i=null==e||null===(o=e.color)||void 0===o?void 0:o.expressionLabel)&&void 0!==i?i:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function Xie(e){return Gie(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function Jie(e){var t,n;(null!==(t=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qMeasures)&&void 0!==t?t:[]).forEach(((t,n)=>function(e,t,n){e.qAttributeExpressions=0===t?[...Kie(n),...Xie(e)]:Xie(e)}(t,n,e)))}function Zie(e){var t;const n={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||jie(e)?"stacked":"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.bar",value:"bar"},{icon:"line_chart_line",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.line",value:"line"},{icon:"shapes",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.marker",value:"marker"}]},r={ref:"qDef.series.marker",type:"string",component:"dropdown",defaultValue:"circle",options:[{translation:"properties.marker.circle",value:"circle"},{translation:"properties.marker.rect",value:"rect"},{translation:"properties.marker.diamond",value:"diamond"},{translation:"properties.marker.triangle",value:"triangle"},{translation:"properties.marker.line",value:"line"}],show(e){var t;return Ip(null===(t=e.qDef)||void 0===t?void 0:t.series)===gd.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return Ip(null===(t=e.qDef)||void 0===t?void 0:t.series)===gd.MARKER&&!["line"].includes(e.qDef.series.marker)}},o={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>Wie(...e)},a=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme,s={ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=a.getDataColorSpecials(),n=null===(e=a.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,r=n.indexOf(t);return{index:-1===r?Math.min(6,n.length-1):r}},show:Yie},l={translation:"properties.measure.moreProperties",title:"properties.measure.moreProperties",subTitle:(e,t,n)=>{var r;return null===(r=n.measureTitle)||void 0===r?void 0:r.call(n)},component:"sub-panel",type:"items",items:{groups:{type:"items",component:"expandable-items",items:{presentation:{type:"items",translation:"properties.presentation",items:{seriesType:n,seriesAxis:{ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}]},seriesMarker:r,seriesMarkerFill:i}},color:{type:"items",translation:"properties.color",items:{customColor:{ref:"qDef.color.on",translation:"properties.colors",type:"boolean",component:"switch",defaultValue:!1,trueOption:{value:!1,translation:"Common.Auto"},falseOption:{value:!0,translation:"Common.Custom"}},colorMode:o,paletteColor:s,attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:Gie}}}}}}};return{items:{series:{type:"items",items:{supPanel:l}}}}}const Qie=!0;function eoe(e){return e.qHyperCube.qMeasureInfo.filter((e=>Ip(e.series)===gd.LINE)).length>0}function toe(e,t){const n=e.qHyperCube.qMeasureInfo.filter((e=>Ip(e.series)===gd.BAR));return n.filter((e=>e.series.axis!==yd.SECONDARY)).length>t||n.filter((e=>e.series.axis===yd.SECONDARY)).length>t}function noe(e){return e.qHyperCube.qMeasureInfo.filter((e=>Ip(e.series)===gd.MARKER)).length>0}const roe=(e,t,n,r)=>{const i="vertical"===e.layout.orientation||jie(e.layout)?"y":"x",o=$ie(e,t,r).map((e=>e.qFallbackTitle));let a;return a=o.length?n.get(`properties.${i}AxisWithInfo`,[o.join(",")]):n.get(`properties.${i}Axis`),a};function ioe(e){var t,n,r;const{translator:i,flags:o,anything:a}=e,s=null==e||null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme,l=null==e||null===(n=e.anything)||void 0===n||null===(n=n.sense)||void 0===n||null===(r=n.isUnsupportedFeature)||void 0===r?void 0:r.call(n,"continuousData"),c={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>Jie(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>Wie(e)))}}},u=e=>e.qHyperCubeDef.qMeasures.some((e=>Wie(e))),d=(e,t)=>0!==e.filter((e=>e.series.axis===t)).length,f={items:{disclaimer:{show:(e,t)=>u(e),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;nl(t=e,"qDef.color.on",void 0)&&il(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!u(e)}}},h={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},barLabels:{component:"checkbox",ref:"dataPoint.showBarLabels",type:"boolean",translation:"Simple.Label.Bar",show:(e,t,n)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&toe(n.layout,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t,n)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&eoe(n.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,i){i.dataPoint.showLineLabels=e,i.dataPoint.show=e}},reset(e){il(e,"dataPoint.show",!1),il(e,"dataPoint.showLineLabels",!1)}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",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)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t,n)=>i.get($ie(t,n,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&$ie(e,t,0).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[0].show||"none"===r.measureAxes[0].show,set(e,t,n,r,i){i.measureAxes[0].show=e?"labels":"all"}}},secondaryMeasureTitle:{component:"checkbox",ref:"measureAxes.1.show",type:"string",translation:"Simple.Label.SecondaryMeasure.Hide",defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&$ie(e,t,1).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[1].show||"none"===r.measureAxes[1].show,set(e,t,n,r,i){i.measureAxes[1].show=e?"labels":"all"}}}}}}},p={uses:"settings",items:{simpleStyling:Uie,simpleLabels:h,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:Vie(o,s,i),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t,n)=>toe(n.layout,1)&&!jie(n.layout)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>jie(n.layout),convertFunctions:(m="vertical",{get:(e,t,n)=>jie(n.layout)?m:e(t.type),set(e,t,n,r){t(n.type,jie(r.layout)?m:e,m)}})},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!jie(n.layout)},nullMode:{type:"string",component:"dropdown",ref:"nullMode",translation:"properties.nullMode",options:[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],defaultValue:"gap",show:(e,t,n)=>eoe(n.layout)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint",show:e=>eoe(e)},show:(e,t,n)=>eoe(n.layout),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},barLabels:{type:"items",snapshot:{tid:"property-barLabels",show:e=>toe(e,0)},show:(e,t,n)=>toe(n.layout,0),items:{showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t,n)=>toe(n.layout,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showBarSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showBarLabels&&Bie(t,n)},showTotalLabels:{ref:"dataPoint.showBarTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showBarLabels&&Bie(t,n)}}},showMarkerLabels:{ref:"dataPoint.showMarkerLabels",type:"boolean",translation:"properties.dataPoints.markerlabelmode",component:"switch",snapshot:{tid:"property-markerLabels",show:e=>noe(e)},show:(e,t,n)=>noe(n.layout),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridLineAxis:{ref:"gridLine.axis",type:"integer",component:"dropdown",defaultValue:0,options(e,t,n){const r=[],i=n.layout.qHyperCube.qMeasureInfo,o=d(i,0),a=d(i,1);return o&&r.push({translation:"properties.axis.primary",value:0}),a&&r.push({translation:"properties.axis.secondary",value:1}),r},show:(e,t,n)=>e.gridLine&&!e.gridLine.auto&&0!==n.layout.qHyperCube.qMeasureInfo.length,convertFunctions:{get(e,t,n,r){var i;const o=null!==(i=r.gridLine.axis)&&void 0!==i?i:0,a=n.layout.qHyperCube.qMeasureInfo,s=d(a,0),l=d(a,1);return 0===o&&!s&&l?(il(r,"gridLine.axis",1),1):1===o&&s&&!l?(il(r,"gridLine.axis",0),0):o}}},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:c,simpleColors:f,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||jie(t.layout)?"x":"y",r=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,t).map((e=>e.qFallbackTitle||"")).join(", ");let o;return o=r?i.get(`properties.${n}AxisWithInfo`,[r]):i.get(`properties.${n}Axis`),o},items:{othersGroup:{items:{dock:{options(e,t){let n="Common.Bottom",r="Common.Top";return"vertical"===t.layout.orientation||jie(t.layout)||(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!jie(n.layout),items:{axisDisplayMode:{type:"string",translation:"properties.axis.displaymode",ref:"dimensionAxis.axisDisplayMode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{type:"integer",translation:"properties.axis.maxvisiblevalues",ref:"dimensionAxis.maxVisibleItems",expression:"optional",defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode,invalid(e){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;return r<0||r>1e4/(t.length+n.length)},globalChange(e){if("custom"===e.dimensionAxis.axisDisplayMode){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;r<1?e.dimensionAxis.maxVisibleItems=10:r>1e4/(t.length+n.length)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(t.length+n.length))))}}},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint.combochart",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}}},continuousGroup:{show:!l}},measureAxis:{uses:"axis.measureAxis",label:(e,t,n)=>roe(t,n,i,0),show:(e,t,n)=>$ie(t,n,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>roe(t,n,i,0),show:(e,t,n)=>$ie(t,n,0).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&Hee(null==e?void 0:e.series,Qie)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t,n)=>"none"!==e.measureAxes[0].show&&$ie(t,n,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||jie(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.0.spacing",show:(e,t,n)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&$ie(t,n,0).length>0}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t,n)=>$ie(t,n,0).length>0,readOnly:e=>!(e.measureAxes[0].autoMinMax||"min"===e.measureAxes[0].minMax&&0===e.measureAxes[0].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(il(i,"measureAxes.0.autoMinMax",!1),il(i,"measureAxes.0.minMax","min"),il(i,"measureAxes.0.min",0)):il(i,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t,n)=>roe(t,n,i,1),show:(e,t,n)=>$ie(t,n,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>roe(t,n,i,1),show:(e,t,n)=>$ie(t,n,1).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!Hee(null==e?void 0:e.series,Qie)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t,n)=>"none"!==e.measureAxes[1].show&&$ie(t,n,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||jie(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.1.spacing",show:(e,t,n)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&$ie(t,n,1).length>0}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t,n)=>$ie(t,n,1).length>0,readOnly:e=>!(e.measureAxes[1].autoMinMax||"min"===e.measureAxes[1].minMax&&0===e.measureAxes[1].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(il(i,"measureAxes.1.autoMinMax",!1),il(i,"measureAxes.1.minMax","min"),il(i,"measureAxes.1.min",0)):il(i,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var m;o.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(p.items.dimensionAxis.items.othersGroup.items.label={options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]});const g={uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,n){var r,i;if(null!=a&&null!==(r=a.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"includeZeroValues"))return!1;return!jie(n.layout)}}}},measures:Zie(e)}},y={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},primaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines",translation:"properties.primaryMeasureAxisReferenceLines",title:{translation:"properties.primaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>Hee(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,Qie)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!Hee(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,Qie)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:g,sorting:{uses:"sortingWithDisclaimer"},addons:y,settings:p}}}function ooe(e){return e.qHyperCubeDef.qMeasures.filter((e=>Ip(e.qDef.series)===gd.LINE)).length>0}function aoe(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer"},presentation:{uses:"presentation",type:"items",translation:"properties.presentation",grouped:!0,show:(e,t)=>ooe(e)||!jie(t),items:{grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){var n;return function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>Ip(e.qDef.series)===gd.BAR));return t?n.filter((e=>e.qDef.series.axis===yd.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===yd.SECONDARY)).length>1:n.length>1}(e,!mre(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!jie(t)}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!jie(t)},nullMode:{type:"string",component:"radio-list",ref:"nullMode",translation:"properties.nullMode",options:()=>[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],show:e=>ooe(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>ooe(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>Wie(e)))}}}}}}const soe={bar:{axis:0,icon:"bar-chart",tid:"as-bar",translation:"contextMenu.asBar"},line:{axis:1,icon:"line-chart",tid:"as-line",translation:"contextMenu.asLine"},marker:{axis:1,icon:"shapes",tid:"as-marker",translation:"contextMenu.asMarker"}};function loe(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=soe[i];t.addItem({icon:a,tid:s,translation:l,async select(){let t;t="measure"===e.type?await r.addLibraryMeasure(e.id):await r.addExpressionMeasure(e.name,""),t.qDef.series.type=i,t.qDef.series.axis=o,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path",`data.${t.qDef.cId}`)}})}function coe(e,t,n,r,i){!function(e,t,n){const{item:r}=e,i=["contextMenu.add",r.name];if(n.canAddMeasure()){const o=e.menu.addItem({translation:i,tid:"add-as"});loe(r,o,t,n,"bar"),loe(r,o,t,n,"line"),loe(r,o,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,i),e.ColorBy(n,t,i),r()}function uoe(e){const t={},{tooltip:n}=e;if(n){var r;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(r=r.object)||void 0===r?void 0:r.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const doe=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function foe(e){return{definition:ioe(e),softDefinition:aoe(),support:{snapshot:doe,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:coe,extendMetrics:uoe,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=Die.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:zie(e),defaultPropertyValues:a,hypercubePath:i,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,i=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),i.indexOf(e.qDef.series.axis)<0&&i.push(e.qDef.series.axis)}));const o=i.sort().shift();e.qProperty.measureAxes[o]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&p(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),Jie(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return Die.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(ze),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(ze)}(e),function(e){return mre(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=vd),void 0===t.series.type&&(t.series.type=vd.type),void 0===t.series.axis&&(t.series.axis=t.series.type===gd.BAR?yd.PRIMARY:yd.SECONDARY),t.series.type===gd.BAR&&t.series.axis===yd.SECONDARY&&(t.series.axis=yd.PRIMARY)})),e.version=pre),e}(e))}}}return function(t){var r;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(n).forEach((t=>{e.add(n[t])}))}}(t.translator);const{flags:i}=t,o=null===(r=t.anything)||void 0===r||null===(r=r.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=Iee();return{qae:Fie(t),ext:foe(t),component(){const t=function(){const[t,n]=e.useState();return e.useEffect((()=>n(ol())),[]),t}(),n=Cie(),r=function(){const t=e.useOptions(),n=e.useTranslator(),r=e.useEmbed(),i=e.useTheme(),[o,a]=e.useState(),s=e.useDeviceType();return e.useEffect((()=>{a({options:{direction:"ltr",...t},translator:n,theme:i,embed:r,deviceType:s})}),[t.direction,t.freeResize,n.language(),i.name(),s]),o}(),s=Tie(),l=function({picasso:t,environment:n}){const r=e.useElement(),[i,o]=e.useState();return e.useEffect((()=>{if(!n)return;r.style.overflow="hidden";const e=t({renderer:{prio:[n.options.renderer||"canvas"]}}).chart({element:r,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[n]),i}({picasso:a,environment:r}),c=function({chart:t,actions:n}){const r=e.useSelections(),i=e.useStaleLayout(),[o,a]=e.useState();return e.useEffect((()=>{if(null==t||!t.update||!t.scale)return null;const e=t.scale(md.SCALE.MAJOR),o=yu({chart:t,actions:n,selections:r,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:e,selectionActions:{reset(){t.brushSelectionIncludeMax=void 0,n.lasso.active()&&n.lasso.action(!1)},clear:Aie},selectionEvents:{start:Rie}}});o.setLayout(i);const{destroy:s}=o;return a(o),()=>{s()}}),[r,null==t?void 0:t.update,null==t?void 0:t.scale]),e.useEffect((()=>{null!=o&&o.setLayout&&i&&o.setLayout(i)}),[i]),o}({chart:l,actions:s}),u=Eie({picasso:a,chart:l,environment:r,flags:i,viewState:n,viewCache:t,actions:s,selectionService:c});!function({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l}){const{event:{onZoomIntercept:c,onZoomChange:u}}=wg,[,d]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&a&&s))return;const{layoutService:e,colorService:d,continuousModel:f,discreteModel:h,refLineModel:p,seriesModel:m,animationsModel:g}=r,{miniComponentKeys:y}=m.meta,{options:v}=i,{viewState:b={}}=v,{legendScrollOffset:x,scrollOffset:S}=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):b;a.preventSet("scrollOffset",S),a.preventSet("legendScrollOffset",x),a.preventSet("title",e.getLayoutValue("title"));const w=()=>{p&&p.update(),g.meta.isPartialUpdating=!0,n.update({partialData:!0,excludeFromUpdate:[...jg,...y]}),g.meta.isPartialUpdating=!1};function M(e=!1){const c=Fg({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l}),u=e&&[$g({models:r}),...Bg({models:r}),...d.getData()];e?(n.layoutComponents({settings:c,data:u}),g.meta.hasSlicedHats=c.components.filter((e=>"box-sliced-hat"===e.type)).length>0):n.update({settings:c,data:u})}a.onChanged("scrollOffset",w),e.meta.isContinuous&&(a.onChanged("zoom",u({layoutService:e,continuousDataModel:f},w)),a.intercept("zoom",c({viewCache:s})));const k=e.getDataPages();e.setDataPages([]),M(!0),e.setDataPages(k),e.meta.isContinuous||await h.command.initialize(),M(!1),od.cacheProperties({viewCache:s,layout:e.getLayout()})}),[null==n?void 0:n.update,r,i]);if(d)throw d}({picasso:a,chart:l,models:u,environment:r,flags:i,viewState:n,viewCache:t,actions:s}),(({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l,isUnsupportedFeature:c})=>{const{width:u,height:d}=e.useRect(),[,f]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&a))return;const{colorService:e,discreteModel:f,dockService:h,layoutService:p,refLineModel:m,animationsModel:g}=r;function y(){n.update({settings:Fg({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l,isUnsupportedFeature:c})})}h.update({width:u,height:d}),e.custom.updateLegend(),m.update({picasso:t,chart:n,models:r,environment:i,viewState:a,viewCache:s,actions:l});const v=p.getDataPages();g.meta.isSizeChanging=!0,p.setDataPages([]),y(),p.setDataPages(v),p.meta.isContinuous||await f.command.initialize(),y()}),[u,d]);if(f)throw f})({picasso:a,chart:l,models:u,environment:r,flags:i,viewState:n,viewCache:t,actions:s,isUnsupportedFeature:o}),(({models:t,chart:n,viewState:r})=>{e.onTakeSnapshot((e=>{if(!t)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:c}=t,{width:u,height:d}=o.meta.chart.size;return e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:u,h:d}},i.meta.isSnapshot?Promise.resolve():(e.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:N(n,md.COMPONENT.LEGEND_CATEGORICAL)},i.meta.isDiscrete?(s.command.setSnapshotData(e),c.command.setSnapshotData(e)):l.setSnapshotData(e),a.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{})))})),e.useImperativeHandle((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:N(n,md.COMPONENT.LEGEND_CATEGORICAL)}}})),[r,n])})({models:u,chart:l,viewState:n})}}}}));
122
+ `),p8.rippleVisible,S8,550,(({theme:e})=>e.transitions.easing.easeInOut),p8.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),p8.child,p8.childLeaving,w8,550,(({theme:e})=>e.transitions.easing.easeInOut),p8.childPulsate,M8,(({theme:e})=>e.transitions.easing.easeInOut)),C8=OI.forwardRef((function(e,t){const n=v6({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=IL(n,m8),[s,l]=OI.useState([]),c=OI.useRef(0),u=OI.useRef(null);OI.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=OI.useRef(!1),f=r4(),h=OI.useRef(null),p=OI.useRef(null),m=OI.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,X2.jsx(E8,{classes:{ripple:y3(i.ripple,p8.ripple),rippleVisible:y3(i.rippleVisible,p8.rippleVisible),ripplePulsate:y3(i.ripplePulsate,p8.ripplePulsate),child:y3(i.child,p8.child),childLeaving:y3(i.childLeaving,p8.childLeaving),childPulsate:y3(i.childPulsate,p8.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=OI.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=OI.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=OI.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return OI.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),X2.jsx(k8,wL({className:y3(p8.root,i.root,o),ref:p},a,{children:X2.jsx(VJ,{component:null,exit:!0,children:s})}))}));function O8(e){return b3("MuiButtonBase",e)}const N8=x3("MuiButtonBase",["root","disabled","focusVisible"]),T8=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],A8=K6("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${N8.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),R8=OI.forwardRef((function(e,t){const n=v6({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:M,onTouchEnd:k,onTouchMove:E,onTouchStart:C,tabIndex:O=0,TouchRippleProps:N,touchRippleRef:T,type:A}=n,R=IL(n,T8),q=OI.useRef(null),D=OI.useRef(null),I=Q3(D,T),{isFocusVisibleRef:L,onFocus:P,onBlur:_,ref:z}=f4(),[F,j]=OI.useState(!1);l&&F&&j(!1),OI.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),q.current.focus()}})),[]);const[$,B]=OI.useState(!1);OI.useEffect((()=>{B(!0)}),[]);const H=$&&!c&&!l;function V(e,t,n=u){return Z3((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}OI.useEffect((()=>{F&&d&&!c&&$&&D.current.pulsate()}),[c,d,F,$]);const U=V("start",S),W=V("stop",m),Y=V("stop",g),G=V("stop",M),K=V("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),X=V("start",C),J=V("stop",k),Z=V("stop",E),Q=V("stop",(e=>{_(e),!1===L.current&&j(!1),h&&h(e)}),!1),ee=Z3((e=>{q.current||(q.current=e.currentTarget),P(e),!0===L.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=OI.useRef(!1),re=Z3((e=>{d&&!ne.current&&F&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=Z3((e=>{d&&" "===e.key&&D.current&&F&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(R.href||R.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===A?"button":A,ae.disabled=l):(R.href||R.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=Q3(t,z,q),le=wL({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=h4({root:["root",t&&"disabled",n&&"focusVisible"]},O8,i);return n&&r&&(o.root+=` ${r}`),o})(le);return X2.jsxs(A8,wL({as:oe,className:y3(ce.root,a),ownerState:le,onBlur:Q,onClick:p,onContextMenu:W,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:U,onMouseLeave:K,onMouseUp:G,onDragLeave:Y,onTouchEnd:J,onTouchMove:Z,onTouchStart:X,ref:se,tabIndex:l?-1:O,type:A},ae,R,{children:[o,H?X2.jsx(C8,wL({ref:I,center:i},N)):null]}))}));function q8(e){return b3("MuiTypography",e)}x3("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const D8=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],I8=K6("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${u5(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>wL({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),L8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},P8={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_8=OI.forwardRef((function(e,t){const n=v6({props:e,name:"MuiTypography"}),r=(e=>P8[e]||e)(n.color),i=f3(wL({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=L8}=i,h=IL(i,D8),p=wL({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),m=s||(u?"p":f[d]||L8[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return h4({root:["root",o,"inherit"!==e.align&&`align${u5(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},q8,a)})(p);return X2.jsx(I8,wL({as:m,ref:t,ownerState:p,className:y3(g.root,a)},h))})),z8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function F8(e){const t=[],n=[];return Array.from(e.querySelectorAll(z8)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function j8(){return!0}function $8(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=F8,isEnabled:a=j8,open:s}=e,l=OI.useRef(!1),c=OI.useRef(null),u=OI.useRef(null),d=OI.useRef(null),f=OI.useRef(null),h=OI.useRef(!1),p=OI.useRef(null),m=Q3(t.ref,p),g=OI.useRef(null);OI.useEffect((()=>{s&&p.current&&(h.current=!n)}),[n,s]),OI.useEffect((()=>{if(!s||!p.current)return;const e=K3(p.current);return p.current.contains(e.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),OI.useEffect((()=>{if(!s||!p.current)return;const e=K3(p.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===p.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=p.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=o(p.current)),n.length>0){var i,s;const e=Boolean((null==(i=g.current)?void 0:i.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,a,s,o]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0};return X2.jsxs(OI.Fragment,{children:[X2.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),OI.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),X2.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const B8=OI.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=OI.useState(null),s=Q3(OI.isValidElement(n)?n.ref:null,t);if(W3((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),W3((()=>{if(o&&!i)return J3(t,o),()=>{J3(t,null)}}),[t,o,i]),i){if(OI.isValidElement(n)){const e={ref:s};return OI.cloneElement(n,e)}return X2.jsx(OI.Fragment,{children:n})}return X2.jsx(OI.Fragment,{children:o?bJ.createPortal(n,o):o})}));function H8(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function V8(e){return parseInt(X3(e).getComputedStyle(e).paddingRight,10)||0}function U8(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&H8(e,i)}))}function W8(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Y8(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=K3(e);return t.body===e?X3(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(K3(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${V8(r)+e}px`;const t=K3(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${V8(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=K3(r).body;else{const t=r.parentElement,n=X3(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const G8=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&H8(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);U8(t,e.mount,e.modalRef,r,!0);const i=W8(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=W8(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Y8(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=W8(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&H8(e.modalRef,t),U8(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&H8(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function K8(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=G8,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=OI.useRef({}),h=OI.useRef(null),p=OI.useRef(null),m=Q3(p,d),[g,y]=OI.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),S=()=>{i.mount(x(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},w=Z3((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||K3(h.current).body;i.add(x(),e),p.current&&S()})),M=OI.useCallback((()=>i.isTopModal(x())),[i]),k=Z3((e=>{h.current=e,e&&(u&&M()?S():p.current&&H8(p.current,b))})),E=OI.useCallback((()=>{i.remove(x(),b)}),[b,i]);OI.useEffect((()=>()=>{E()}),[E]),OI.useEffect((()=>{u?w():v&&o||E()}),[u,E,v,o,w]);const C=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&M()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},O=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=u8(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=wL({},n,t);return wL({role:"presentation"},r,{onKeyDown:C(r),ref:m})},getBackdropProps:(e={})=>wL({"aria-hidden":!0},e,{onClick:O(e),open:u}),getTransitionProps:()=>({onEnter:G3((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:G3((()=>{y(!0),s&&s(),o&&E()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:k,isTopModal:M,exited:g,hasTransition:v}}const X8=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],J8={entering:{opacity:1},entered:{opacity:1}},Z8=OI.forwardRef((function(e,t){const n=y6(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:p,style:m,timeout:g=r,TransitionComponent:y=zJ}=e,v=IL(e,X8),b=OI.useRef(null),x=Q3(b,a.ref,t),S=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},w=S(d),M=S(((e,t)=>{r8(e);const r=i8({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),k=S(u),E=S(p),C=S((e=>{const t=i8({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),O=S(h);return X2.jsx(y,wL({appear:o,in:l,nodeRef:b,onEnter:M,onEntered:k,onEntering:w,onExit:C,onExited:O,onExiting:E,addEndListener:e=>{i&&i(b.current,e)},timeout:g},v,{children:(e,t)=>OI.cloneElement(a,wL({style:wL({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},J8[e],m,a.props.style),ref:x},t))}))}));function Q8(e){return b3("MuiBackdrop",e)}x3("MuiBackdrop",["root","invisible"]);const e7=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],t7=K6("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>wL({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),n7=OI.forwardRef((function(e,t){var n,r,i;const o=v6({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:h={},slots:p={},TransitionComponent:m=Z8,transitionDuration:g}=o,y=IL(o,e7),v=wL({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return h4({root:["root",n&&"invisible"]},Q8,t)})(v),x=null!=(n=h.root)?n:u.root;return X2.jsx(m,wL({in:f,timeout:g},y,{children:X2.jsx(t7,wL({"aria-hidden":!0},x,{as:null!=(r=null!=(i=p.root)?i:c.Root)?r:l,className:y3(b.root,s,null==x?void 0:x.className),ownerState:wL({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function r7(e){return b3("MuiButton",e)}const i7=x3("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),o7=OI.createContext({}),a7=OI.createContext(void 0),s7=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],l7=e=>wL({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),c7=K6(R8,{shouldForwardProp:e=>G6(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${u5(n.color)}`],t[`size${u5(n.size)}`],t[`${n.variant}Size${u5(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return wL({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":wL({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:q4(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:q4(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:q4(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":wL({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${i7.focusVisible}`]:wL({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${i7.disabled}`]:wL({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${q4(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${i7.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${i7.disabled}`]:{boxShadow:"none"}})),u7=K6("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${u5(n.size)}`]]}})((({ownerState:e})=>wL({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},l7(e)))),d7=K6("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${u5(n.size)}`]]}})((({ownerState:e})=>wL({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},l7(e)))),f7=OI.forwardRef((function(e,t){const n=OI.useContext(o7),r=OI.useContext(a7),i=v6({props:V3(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=IL(i,s7),x=wL({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return wL({},a,h4({root:["root",o,`${o}${u5(t)}`,`size${u5(i)}`,`${o}Size${u5(i)}`,`color${u5(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${u5(i)}`],endIcon:["icon","endIcon",`iconSize${u5(i)}`]},r7,a))})(x),w=g&&X2.jsx(u7,{className:S.startIcon,ownerState:x,children:g}),M=f&&X2.jsx(d7,{className:S.endIcon,ownerState:x,children:f}),k=r||"";return X2.jsxs(c7,wL({ownerState:x,className:y3(n.className,S.root,l,k),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:y3(S.focusVisible,h),ref:t,type:y},b,{classes:S,children:[w,o,M]}))}));function h7(e){return b3("MuiModal",e)}x3("MuiModal",["root","hidden","backdrop"]);const p7=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],m7=K6("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>wL({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),g7=K6(n7,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),y7=OI.forwardRef((function(e,t){var n,r,i,o,a,s;const l=v6({name:"MuiModal",props:e}),{BackdropComponent:c=g7,BackdropProps:u,className:d,closeAfterTransition:f=!1,children:h,container:p,component:m,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:M=!1,hideBackdrop:k=!1,keepMounted:E=!1,onBackdropClick:C,open:O,slotProps:N,slots:T}=l,A=IL(l,p7),R=wL({},l,{closeAfterTransition:f,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:M,hideBackdrop:k,keepMounted:E}),{getRootProps:q,getBackdropProps:D,getTransitionProps:I,portalRef:L,isTopModal:P,exited:_,hasTransition:z}=K8(wL({},R,{rootRef:t})),F=wL({},R,{exited:_}),j=(e=>{const{open:t,exited:n,classes:r}=e;return h4({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},h7,r)})(F),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=I();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==T?void 0:T.root)?r:g.Root)?n:m7,H=null!=(i=null!=(o=null==T?void 0:T.backdrop)?o:g.Backdrop)?i:c,V=null!=(a=null==N?void 0:N.root)?a:y.root,U=null!=(s=null==N?void 0:N.backdrop)?s:y.backdrop,W=h8({elementType:B,externalSlotProps:V,externalForwardedProps:A,getSlotProps:q,additionalProps:{ref:t,as:m},ownerState:F,className:y3(d,null==V?void 0:V.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),Y=h8({elementType:H,externalSlotProps:U,additionalProps:u,getSlotProps:e=>D(wL({},e,{onClick:t=>{C&&C(t),null!=e&&e.onClick&&e.onClick(t)}})),className:y3(null==U?void 0:U.className,null==u?void 0:u.className,null==j?void 0:j.backdrop),ownerState:F});return E||O||z&&!_?X2.jsx(B8,{ref:L,container:p,disablePortal:S,children:X2.jsxs(B,wL({},W,{children:[!k&&c?X2.jsx(H,wL({},Y)):null,X2.jsx($8,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:P,open:O,children:OI.cloneElement(h,$)})]}))}):null}));function v7(e){return b3("MuiDivider",e)}x3("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const b7=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],x7=K6("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>wL({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:q4(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>wL({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>wL({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>wL({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>wL({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),S7=K6("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>wL({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),w7=OI.forwardRef((function(e,t){const n=v6({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,h=IL(n,b7),p=wL({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return h4({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},v7,r)})(p);return X2.jsx(x7,wL({as:a,className:y3(m.root,o),role:u,ref:t,ownerState:p},h,{children:i?X2.jsx(S7,{className:m.wrapper,ownerState:p,children:i}):null}))}));w7.muiSkipListHighlight=!0;const M7=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function k7(e){return`scale(${e}, ${e**2})`}const E7={entering:{opacity:1,transform:k7(1)},entered:{opacity:1,transform:"none"}},C7="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),O7=OI.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:f,style:h,timeout:p="auto",TransitionComponent:m=zJ}=e,g=IL(e,M7),y=r4(),v=OI.useRef(),b=y6(),x=OI.useRef(null),S=Q3(x,i.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},M=w(c),k=w(((e,t)=>{r8(e);const{duration:n,delay:r,easing:i}=i8({style:h,timeout:p,easing:o},{mode:"enter"});let a;"auto"===p?(a=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:C7?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)})),E=w(l),C=w(f),O=w((e=>{const{duration:t,delay:n,easing:r}=i8({style:h,timeout:p,easing:o},{mode:"exit"});let i;"auto"===p?(i=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=i):i=t,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:C7?i:.666*i,delay:C7?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=k7(.75),u&&u(e)})),N=w(d);return X2.jsx(m,wL({appear:r,in:a,nodeRef:x,onEnter:k,onEntered:E,onEntering:M,onExit:O,onExited:N,onExiting:C,addEndListener:e=>{"auto"===p&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===p?null:p},g,{children:(e,t)=>OI.cloneElement(i,wL({style:wL({opacity:0,transform:k7(.75),visibility:"exited"!==e||a?void 0:"hidden"},E7[e],h,i.props.style),ref:S},t))}))}));O7.muiSupportAuto=!0;const N7=OI.createContext({});function T7(e){return b3("MuiList",e)}x3("MuiList",["root","padding","dense","subheader"]);const A7=["children","className","component","dense","disablePadding","subheader"],R7=K6("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>wL({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),q7=OI.forwardRef((function(e,t){const n=v6({props:e,name:"MuiList"}),{children:r,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=IL(n,A7),u=OI.useMemo((()=>({dense:a})),[a]),d=wL({},n,{component:o,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return h4({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},T7,t)})(d);return X2.jsx(N7.Provider,{value:u,children:X2.jsxs(R7,wL({as:o,className:y3(f.root,i),ref:t,ownerState:d},c,{children:[l,r]}))})}));function D7(e){return b3("MuiListItemButton",e)}const I7=x3("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),L7=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],P7=K6(R8,{shouldForwardProp:e=>G6(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>wL({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${I7.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:q4(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${I7.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:q4(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${I7.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:q4(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:q4(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${I7.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${I7.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),_7=OI.forwardRef((function(e,t){const n=v6({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,h=IL(n,L7),p=OI.useContext(N7),m=OI.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=OI.useRef(null);W3((()=>{i&&g.current&&g.current.focus()}),[i]);const y=wL({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return wL({},n,h4({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},D7,n))})(y),b=Q3(g,t);return X2.jsx(N7.Provider,{value:m,children:X2.jsx(P7,wL({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:y3(v.focusVisible,u),ownerState:y,className:y3(v.root,f)},h,{classes:v,children:a}))})}));function z7(e){return b3("MuiListItemIcon",e)}x3("MuiListItemIcon",["root","alignItemsFlexStart"]);const F7=["className"],j7=K6("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>wL({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),$7=OI.forwardRef((function(e,t){const n=v6({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=IL(n,F7),o=wL({},n,{alignItems:OI.useContext(N7).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return h4({root:["root","flex-start"===t&&"alignItemsFlexStart"]},z7,n)})(o);return X2.jsx(j7,wL({className:y3(a.root,r),ownerState:o,ref:t},i))}));function B7(e){return b3("MuiListItemText",e)}const H7=x3("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),V7=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],U7=K6("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${H7.primary}`]:t.primary},{[`& .${H7.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>wL({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),W7=OI.forwardRef((function(e,t){const n=v6({props:e,name:"MuiListItemText"}),{children:r,className:i,disableTypography:o=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=IL(n,V7),{dense:f}=OI.useContext(N7);let h=null!=s?s:r,p=c;const m=wL({},n,{disableTypography:o,inset:a,primary:!!h,secondary:!!p,dense:f}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return h4({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},B7,t)})(m);return null==h||h.type===_8||o||(h=X2.jsx(_8,wL({variant:f?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:h}))),null==p||p.type===_8||o||(p=X2.jsx(_8,wL({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:p}))),X2.jsxs(U7,wL({className:y3(g.root,i),ownerState:m,ref:t},d,{children:[h,p]}))}));function Y7(e){return b3("MuiPopover",e)}x3("MuiPopover",["root","paper"]);const G7=["onEntering"],K7=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],X7=["slotProps"];function J7(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Z7(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Q7(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function e9(e){return"function"==typeof e?e():e}const t9=K6(y7,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),n9=K6(l8,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),r9=OI.forwardRef((function(e,t){var n,r,i;const o=v6({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:h,elevation:p=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=O7,transitionDuration:w="auto",TransitionProps:{onEntering:M}={},disableScrollLock:k=!1}=o,E=IL(o.TransitionProps,G7),C=IL(o,K7),O=null!=(n=null==b?void 0:b.paper)?n:y,N=OI.useRef(),T=Q3(N,O.ref),A=wL({},o,{anchorOrigin:l,anchorReference:u,elevation:p,marginThreshold:m,externalPaperSlotProps:O,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:E}),R=(e=>{const{classes:t}=e;return h4({root:["root"],paper:["paper"]},Y7,t)})(A),q=OI.useCallback((()=>{if("anchorPosition"===u)return c;const e=e9(s),t=(e&&1===e.nodeType?e:K3(N.current).body).getBoundingClientRect();return{top:t.top+J7(t,l.vertical),left:t.left+Z7(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),D=OI.useCallback((e=>({vertical:J7(e,x.vertical),horizontal:Z7(e,x.horizontal)})),[x.horizontal,x.vertical]),I=OI.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===u)return{top:null,left:null,transformOrigin:Q7(n)};const r=q();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,l=o+t.width,c=X3(e9(s)),d=c.innerHeight-m,f=c.innerWidth-m;if(null!==m&&i<m){const e=i-m;i-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;i-=e,n.vertical+=e}if(null!==m&&o<m){const e=o-m;o-=e,n.horizontal+=e}else if(l>f){const e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:Q7(n)}}),[s,u,q,D,m]),[L,P]=OI.useState(g),_=OI.useCallback((()=>{const e=N.current;if(!e)return;const t=I(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[I]);OI.useEffect((()=>(k&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[s,k,_]);OI.useEffect((()=>{g&&_()})),OI.useImperativeHandle(a,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),OI.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{_()})),t=X3(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,_]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const F=h||(s?K3(e9(s)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:t9,$=null!=(i=null==v?void 0:v.paper)?i:n9,B=h8({elementType:$,externalSlotProps:wL({},O,{style:L?O.style:wL({},O.style,{opacity:0})}),additionalProps:{elevation:p,ref:T},ownerState:A,className:y3(R.paper,null==O?void 0:O.className)}),H=h8({elementType:j,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:C,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:A,className:y3(R.root,f)}),{slotProps:V}=H,U=IL(H,X7);return X2.jsx(j,wL({},U,!c8(j)&&{slotProps:V,disableScrollLock:k},{children:X2.jsx(S,wL({appear:!0,in:g,onEntering:(e,t)=>{M&&M(e,t),_()},onExited:()=>{P(!1)},timeout:z},E,{children:X2.jsx($,wL({},B,{children:d}))}))}))}));function i9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o9(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function a9(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s9(){return s9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s9.apply(null,arguments)}function l9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l9(Object(n),!0).forEach((function(t){a9(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l9(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u9(){u9=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==n&&r.call(S,a)&&(b=S);var w=v.prototype=g.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=C(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(w,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},M(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},M(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;N(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function d9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||p9(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f9(e){return function(e){if(Array.isArray(e))return i9(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p9(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h9(e){return h9="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},h9(e)}function p9(e,t){if(e){if("string"==typeof e)return i9(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i9(e,t):void 0}}var m9=function(e){var t=e.className,n=e.title,r=e.path,i=e.fillRule;return NI.createElement(n8,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},NI.createElement("path",{d:r}),n?NI.createElement("title",null,n):void 0,i?NI.createElement("use",{fillRule:i}):void 0)},g9={STYLE:{ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}}},y9={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},v9=function(e){return y9.R.test(e)||y9.AL.test(e)};function b9(e){for(var t,n,r=e?e.length:0,i=0;i<r;i++){if(n=t=e[i],y9.L.test(n))return"ltr";if(v9(t))return"rtl"}return"ltr"}var x9,S9,w9=K6(f7,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"0px",maxWidth:"640px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),M9=K6((function(e){var t=e.className;return NI.createElement(m9,{className:t,path:"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",fillRule:"evenodd"})}))((function(){return{color:g9.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),k9=K6((function(e){var t=e.className;return NI.createElement(m9,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:g9.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:g9.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),E9=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,i=e.source,o=i.styling,a=i.info.text,s=i.layout.direction,l=i.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,f=l.hasMultiple,h=l.isCyclic,p=l.isLocked,m=i.resources.translator,g=i.services.focus,y=i.settings.isDisabled,v=i.state.inSelections,b=!(!c.change||!u),x=!(!c.reload||!h),S=(b||x)&&!v&&!y(),w={pointerEvents:S?"auto":"none"},M=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,i=e.direction,o=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=o&&t.reload;return"ltr"===i&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===i&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:b,canReload:x,direction:s,hasCyclic:d,hasMultiple:f,isLocked:p}),k=a9(a9({},"rtl"===s?"endIcon":"startIcon",p&&NI.createElement(M9,{height:12})),"rtl"===s?"startIcon":"endIcon",(b||x)&&NI.createElement(k9,{className:"".concat(v||y()?"disabled":"")})),E=OI.useRef(),C=OI.useRef();OI.useEffect((function(){t||g.get()&&(E.current.focus(),C.current.focusVisible(),g.set(!1))}));var O=b9(a),N="Accessibility.".concat(S?"Alternative":"Normal",".Instructions");return NI.createElement(w9,s9({action:C,"aria-describedby":r,"aria-label":m.get(N),color:"inherit",direction:s,disabled:!S||y()||v,onClick:function(e){S&&n(e)},padding:M,ref:E,style:w,styling:o.title,title:a},k),NI.createElement("span",{dir:O,style:g9.STYLE.ELLIPSIS},a))},C9=function(e){var t=e.className,n=e.title;return NI.createElement(m9,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})},O9=K6(f7,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,i=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:i,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:i,opacity:1}}})),N9=K6(C9,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:g9.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),T9=K6((function(e){var t=e.className,n=e.title;return NI.createElement(m9,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:g9.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:g9.STYLE.ICONS.COLOR.DISABLED}}})),A9=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=d9(OI.useState(!1),2),r=n[0],i=n[1],o=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,f=d.allowed,h=d.isFirst,p=d.isLast,m=t.settings.isDisabled,g=t.state.inSelections;return OI.useEffect((function(){r&&i(!1)}),[l]),f.reload?NI.createElement(O9,{direction:u,disabled:r||g||m(),isFirst:h,isLast:p,onClick:function(){return i(!0),void a()},styling:o.title,title:c,variant:"outlined"},NI.createElement(T9,{className:"".concat(r||g||m()?"disabled":"")})):NI.createElement(N9,{direction:u,isFirst:h,isLast:p,style:{flexShrink:0},title:c})},R9=function(e){var t=e.className,n=e.title;return NI.createElement(m9,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})},q9=K6(f7,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}})),D9={color:g9.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:g9.STYLE.ICONS.COLOR.DISABLED}},I9=K6((function(e){var t=e.className;return NI.createElement(m9,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return D9})),L9=K6((function(e){var t=e.className;return NI.createElement(m9,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return D9})),P9=K6(R9,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:g9.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),_9=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,i=t.info,o=i.breadcrumbs,a=i.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,f=t.state.inSelections,h=d()||f?"disabled":null,p=a9({},"rtl"===s?"startIcon":"endIcon","rtl"===s?NI.createElement(L9,{className:h}):NI.createElement(I9,{className:h})),m=o.map((function(e,t){var i=b9(e);return NI.createElement(q9,s9({disabled:d()||f,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:o.length-e})}(t)},styling:n.title,title:e},p),NI.createElement("span",{dir:i,style:g9.STYLE.ELLIPSIS},e))}));return NI.createElement(NI.Fragment,null,"rtl"===s?m.reverse():void 0,NI.createElement(P9,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:m)},z9=K6(_7,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":c9({},g9.STYLE.FOCUS)}})),F9=K6($7)((function(){return{marginRight:0,justifyContent:"center"}})),j9=K6((function(e){var t=e.className;return NI.createElement(m9,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:g9.STYLE.ICONS.COLOR.SECONDARY}})),$9=K6(C9)((function(){return{color:g9.STYLE.ICONS.COLOR.SECONDARY}})),B9=K6(R9)((function(){return{color:g9.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),H9=function(e){var t=e.id,n=e.meta,r=e.nested,i=e.onClick,o=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=c9({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},g9.STYLE.ELLIPSIS),d=b9(s),f=NI.createElement(F9,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?NI.createElement(j9,{height:12}):null!=t&&t.isCyclic?NI.createElement($9,{height:12}):null!=t&&t.isDrillDown?NI.createElement(B9,{height:12}):void 0}({meta:n,selected:o}));return NI.createElement(NI.Fragment,{key:t},NI.createElement(z9,{autoFocus:o,nested:r,onClick:function(e){return null==i?void 0:i(e)},rtl:c,title:s},c&&f,NI.createElement(W7,{dir:d,primaryTypographyProps:{style:u}},s),!c&&f))},V9=K6(w7)((function(){return{marginTop:"-1px"}})),U9=function(e){var t=e.anchor,n=e.id,r=e.onClose,i=e.open,o=e.source,a=o.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=o.info,d=u.breadcrumbs,f=u.group,h=u.id,p=u.text,m=o.data.alternatives,g=o.meta,y=g.isCyclic,v=g.isDrillDown,b=o.resources.translator,x=o.services.focus,S=y||v,w=NI.createElement(H9,{id:h,key:h,meta:o.meta,onClick:r,selected:!S,source:o,text:S?f.name:p}),M=S&&f.items.map((function(e){return NI.createElement(H9,{id:e.id,nested:!0,onClick:function(t){return function(e,t){y&&c({fieldIndex:t.index}),v&&l({steps:d.length-t.index}),r()}(0,e)},selected:e.current,source:o,text:e.text})})),k=m.map((function(e,t){return NI.createElement(NI.Fragment,{key:e.id},NI.createElement(H9,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,"keydown"===n.type&&x.set(!0),void s({id:r});var n,r},source:o,text:e.text}),t<m.length-1&&NI.createElement(V9,{key:"divider-".concat(e.id)}))}));return NI.createElement(r9,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},id:n,onClose:r,open:i,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},NI.createElement(q7,{"aria-label":b.get("Accessibility.Popover.Instructions"),dense:!0},w,M,NI.createElement(V9,{key:"divider-".concat(h)}),k))},W9=function(e){var t=e.source,n=d9(OI.useState(null),2),r=n[0],i=n[1],o={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.services.focus,l=NI.createElement(A9,{source:t}),c=NI.createElement(_9,{source:t});return NI.createElement(NI.Fragment,null,"rtl"===a?void 0:c,"rtl"===a?void 0:l,NI.createElement(E9,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&s.set(!0),i(t)},isOpen:o.isOpen,popoverId:o.id,source:t}),NI.createElement(U9,{anchor:r,id:o.id,onClose:function(){i(null)},open:o.isOpen,source:t}),"rtl"===a?c:void 0,"rtl"===a?l:void 0)};var Y9=function(){if(S9)return x9;S9=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return x9=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(p&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},x9}(),G9=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Y9);function K9(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function X9(e){return Array.isArray(e)}function J9(e){return null!=e&&!Array.isArray(e)&&"object"===h9(e)}function Z9(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Q9(e){return void 0===e}function eee(e,t){if(J9(e)&&J9(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,i=n.length;r<i;r+=1)if(!eee(e[n[r]],t[n[r]]))return!1;return!0}if(X9(e)&&X9(t)){if(e.length!==t.length)return!1;for(var o=0,a=e.length;o<a;o+=1)if(!eee(e[o],t[o]))return!1;return!0}return e===t}function tee(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,i=void 0===r?{}:r,o=e.basePath,a=void 0===o?"":o,s=[];return Object.keys(i).forEach((function(e){var t=function(e){return e?G9(!0,{},{value:e}).value:e}(i[e]),r=n[e],o="".concat(a,"/").concat(e);eee(t,r)||Z9(i,e)||(Q9(r)?s.push({op:"add",path:o,value:t}):J9(t)&&J9(r)?s.push.apply(s,f9(tee({oldData:r,newData:t,basePath:o}))):X9(t)&&X9(r)?s.push.apply(s,f9(function(e){var t=e.newArray,n=e.basePath,r=[];return eee(t,e.oldArray.slice())||(!Q9(t[0])&&Q9(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:o}))):s.push({op:"replace",path:o,value:t}))})),Object.keys(n).forEach((function(e){Q9(i[e])&&!Z9(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function nee(e){var t=e.model,n=tee({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function ree(e){return iee.apply(this,arguments)}function iee(){return(iee=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){o9(o,r,i,a,s,"next",e)}function s(e){o9(o,r,i,a,s,"throw",e)}a(void 0)}))}}(u9().mark((function e(t){var n,r,i,o,a,s,l,c,u,d,f,h;return u9().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.from,r=t.to,i=t.model,o=t.container,a=t.skipAttributeExpressions,s=t.onChange,e.next=3,i.getEffectiveProperties();case 3:return l=e.sent,c=l.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o].findIndex((function(e){return e.qDef.cId===r})),d=G9(!0,{},l),f=d.qHyperCubeDef[o][c],(h=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]).qAttributeDimensions=f.qAttributeDimensions,f.qAttributeDimensions=[],a||(h.qAttributeExpressions=f.qAttributeExpressions,f.qAttributeExpressions=[]),d.qHyperCubeDef[o][c]=h,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[o][u]=f,s({fromItem:f,toItem:h,oldProperties:l,newProperties:d,model:i}),e.next=17,K9({model:i,properties:d});case 17:i.colorSupport&&i.colorSupport.colorByUpdater(d,"qHyperCubeDef."),nee({model:i,oldProperties:l,newProperties:d});case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oee(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=i.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,i=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,f=e.qLocked,h=e.title,p="C"===r,m="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){p&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:p,isDrillDown:m,isLocked:!!f,isNormal:g},info:{id:n,text:g?d:i[a],position:a,breadcrumbs:i.slice(0,e.qGroupPos),group:{name:h,items:i.slice(0,m?e.qGroupPos+1:i.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(p?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return ree({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:o})},drillUp:function(e){var t=e.steps;m&&l&&(null==l||l.drillUp("/qHyperCubeDef",y,t))},stepCycle:function(){return v("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return v("setActiveField",t)}}}}))}function aee(e){var t=e.callbacks,n=e.data,r=e.resources,i=e.settings,o=t.onChange,a=n.infos,s=r.model,l=i.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,text:n},action:{changeTo:function(e){var n=e.id;return ree({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:o})}}}}))}function see(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:o}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,i=e.key,o=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=o.app,f=o.cache,h=o.model,p=a.forceAllowChange,m=a.isRTL,g=a.isSnapshot,y=a.type,v=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:m}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{get:function(){var e;return(null==t||null===(e=t.get)||void 0===e?void 0:e.call(t,n))||!1},set:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,e)}}}({cache:f,key:i}),x=("dimension"===y?oee:aee)({callbacks:t,data:n,resources:o,settings:a});"rtl"===v&&x.reverse();var S={allowed:{change:(!(!h.modifiers||!h.colorSupport)||p)&&!g,reload:!!d&&!g},hasAlternatives:!!c.length,hasCyclic:x.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return x.map((function(e,t){return c9(c9({data:n,layout:{direction:v},resources:{translator:o.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:c9(c9(c9({},S),e.meta),{},{isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:i,resources:a,settings:s,state:l,styling:c});return NI.createElement("div",{style:u},d.map((function(e){return NI.createElement(NI.Fragment,{key:e.info.id},NI.createElement(W9,{source:e}),!e.meta.isLast&&NI.createElement("span",{dir:e.layout.direction,style:c9(c9({},c.title),{},{lineHeight:"normal"})},", "))})))}var lee,cee='"Source Sans Pro", "Arial", "sans-serif"',uee="12px",dee=function(e){var t=e.rect,n=e.state,r=e.settings,i=r.callbacks,o=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return see({callbacks:i,data:o,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},fee={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{forceAllowChange:!1,isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:cee,fontSize:uee},popover:{color:"#595959CC",fontFamily:cee,fontSize:uee}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,i=t.alternatives,o=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=i.length||"measure"!==o?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(dee(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return dee(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},hee=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return NI.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},pee={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return NI.createElement("div",{dir:o,style:a},NI.createElement(hee,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},mee={},gee=function(){if(lee)return mee;lee=1;var e=xJ;return mee.createRoot=e.createRoot,mee.hydrateRoot=e.hydrateRoot,mee}(),yee=m6({spacing:8,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)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function vee(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function bee(){var e={rendererBox:vee(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=vee(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=gee.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return NI.createElement(NI.StrictMode,null,NI.createElement(J6,{theme:yee},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}var xee={require:["resolver","symbol"],defaultSettings:{settings:{type:"max",primaryExtremum:()=>{},secondaryExtremum:()=>{},primarySeries:[],secondarySeries:[],orientation:"horizontal",rtl:!1,major:{scale:"major-scale"},markerOffset:1,size:10},style:{fill:"#999"}},preferredSize(){return this.settings.settings.size},render(){const{items:e=[]}=this.data;if(!e.length)return[];const{type:t,orientation:n,rtl:r,markerOffset:i,size:o,major:a,primarySeries:s,secondarySeries:l}=this.settings.settings,c=this.settings.settings.primaryExtremum(),u=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==c,f=l.length&&void 0!==u;if(!d&&!f)return[];const h=s.map((e=>e.ref)),p=l.map((e=>e.ref)),m=e.filter((e=>h.includes(e.end.source.field))),g=e.filter((e=>p.includes(e.end.source.field))),y=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:i=[],primarySeries:o=[],secondarySeries:a=[]}){const s=[];[...o,...a].forEach((o=>{const a=o.isPrimary?t:n,l=o.isPrimary?r:i;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const i="max"===e?e=>e>t:e=>e<t,o=n?e=>i(e.point.value<0?e.start.value:e.end.value):e=>i(e.end.value);return r.filter(o)})({type:e,extremum:a,items:l}))}));const l=(({items:e})=>{const t=[],n=[];return e.forEach((e=>{const{value:r}=e.major;t[r]||(t[r]=!0,n.push(e))})),n})({items:s.reduce(((e,t)=>e.concat(t)),[])});return l}({type:t,primaryExtremum:c,secondaryExtremum:u,primaryItems:m,secondaryItems:g,primarySeries:s,secondarySeries:l});if(!y.length)return[];const v="horizontal"===n,b=this.rect[v?"width":"height"],x=this.resolver.resolve({data:{items:y},settings:{major:a},scaled:{major:b}}),S=("max"===t?90:-90)-(v?0:90)-(!v&&r?180:0),w=o/2*i,{fill:M}=this.settings.style,k=x.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:i,y:o,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:i,y:o,data:a})}({symbol:this.symbol,size:o,fill:M,startAngle:S,x:v?b*e.major:w,y:v?w:b*e.major,data:e.data})));return k}};function See({x:e,y:t,size:n,stroke:r,strokeWidth:i,fill:o}){return{type:"container",children:[{type:"line",stroke:r||o,strokeWidth:i,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:o,cx:e,cy:t,r:.25*n}]}}function wee({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))],i=e.findShapes("path").filter((e=>r.some((t=>t===e.key))));return i.reduce(((e,n)=>{const r=t.primary.some((e=>e.key===n.key))?e.primary:e.secondary;return r.paths.push(n),e}),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function Mee({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function kee({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(md.SCALE.MAJOR),i=r&&r.max&&r.max(),o="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===i?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&o(e,t.max)))}}function Eee({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:i,chart:o}){const a=e.brushes();if(!a.length)return[];const s=a[0],{minorRange:l,legendRange:c,legendTap:u}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let f=[c?e=>e.color.value:r[d]].filter(Boolean);if(i&&l&&f.push((e=>e.color.value)),!i&&u&&(f=[e=>e.color.value]),!f.length)return[];const h=function({brush:e,chart:t}){return("value"===e.type?Mee:kee)({brush:e,chart:t})}({brush:s,chart:o});return h?n.reduce(((e,t,n)=>(f.some((e=>h({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function Cee({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(md.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a),c=l-s,u=0===c?1:c,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e)))||i,offset:Math.min(1,Math.max(0,(e-s)/u))}))),f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function Oee({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(md.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a)-s,c=0===l?1:l,u=o.domain(),d=[];for(let e=0;e<u.length-1;e++){const t=u[e],n=o(t)||i;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/c))});const r=u[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/c))})}const f=d.map((e=>e.offset)),h=f.lastIndexOf(0),p=f.indexOf(1),m=d.slice(-1===h?0:h,-1===p?d.length:p+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:m}}function Nee({property:e,chart:t,connection:n,attrs:r,colorSettings:i,colorByData:o,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:c,orientation:u,rtl:d}){const f=r[e];if("gradient"!==f.type)return f;const{type:h,nil:p}=i;if(s||!o)return function({chart:e,selected:t,connection:n,gradient:r,fallback:i,orientation:o,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:c}){const u=e.scale(md.SCALE.MAJOR),d=e.scale(md.SCALE.COLOR),f=s?e=>u([e,0])+u.bandwidth()*l/2:e=>u(e),h=t.filter((e=>-1!==n.indexOf(e.index))),p=("vertical"===o&&c?h.reverse():h).map((e=>e.item)),m=p.map((e=>f(e.major.value))),g=Math.min(...m),y=Math.max(...m)-g,v=0===y?1:y,b=m.map(((e,t)=>0===t?0:t===m.length-1?1:(e-g)/v)),x=[];for(let e=0;e<p.length;e++){const t=p[e],n=a?t.color.value:d(t.color.value)||i,r=b[e];x.push({color:n,offset:0===e?0:Math.max(0,x[x.length-1].offset)}),x.push({color:n,offset:e===p.length-1?1:Math.max(0,parseFloat((r+(b[e+1]-r)/2).toFixed(5)))})}return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:x}}({chart:t,selected:a,connection:n,gradient:f,fallback:p,orientation:u,isColorCode:"color"===h,groupedByMeasure:l,itemsPerGroup:c,rtl:d});return("continuous"===h?Cee:Oee)({chart:t,selected:a,connection:n,gradient:f,fallback:p})}function Tee({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,lineKey:l,primary:c,selected:u,connections:d,rtl:f,count:h}){const p=t.getLine(l,c),{attrs:m}=p,g=function({d:e}){return e.replace("Z","").split(/(?=[LMC])/).map((e=>{const t=e.substring(0,1),n={letter:t,x:0,y:0,raw:e},r=e.substring(1).split(",");return"M"===t||"L"===t?([n.x]=r,[,n.y]=r):"C"===t&&([,,,,n.x]=r,[,,,,,n.y]=r),n}))}({d:m.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,selected:s,connection:l,commands:c,attrs:u,rtl:d,count:f}){const h=l.map(((e,t)=>{const n=c[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join("");return{path:h,attrs:u,stroke:Nee({property:"stroke",chart:e,connection:l,attrs:u,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,rtl:d})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,selected:u,connection:t,commands:g,attrs:m,rtl:f,count:h})))}function Aee({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:i,items:o,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:f,rtl:h}){const p=function({items:e,selectionInfo:t,seriesInfo:n}){return e.filter((e=>{if("NaN"===e.end.value||Number.isNaN(e.end.value))return!1;const{minorRange:r,minorRangePrimary:i}=t;return!r||(i?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:o,selectionInfo:i,seriesInfo:n}),m=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const i=n.typeIndex.value;var o;return e[i]||(e[i]={key:i,items:[],index:r,measureIx:null===(o=n.colorMeasureIdx)||void 0===o?void 0:o.value,primary:t.primary.some((e=>e.typeIndex===i))}),e[i].items.push(n),e}),{});return Object.keys(n).map((e=>n[e])).sort(((e,t)=>e.index-t.index)).map((e=>({lineKey:e.key,items:e.items,primary:e.primary,measureIx:e.measureIx})))}({items:p,seriesInfo:n}),{lines:g}=m.reduce(((n,o)=>{const p=Eee({brush:r,selectionInfo:i,items:o.items,selectionValues:a,colorByData:l,chart:e});if(p.length<2)return n;const m=function({selected:e}){return e.reduce(((e,t)=>{const{index:n}=t;if(e.length){const t=e[e.length-1];n===t[t.length-1]+1?t.push(n):e.push([n])}else e.push([n]);return e}),[]).filter((e=>e.length>1))}({selected:p});return m.length?(n.lines.push(...Tee({chart:e,pathModel:t,colorSettings:s(o.measureIx),colorByData:l(o.measureIx),hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:f,lineKey:o.lineKey,primary:o.primary,selected:p,connections:m,rtl:h,count:o.items.length})),n):n}),{lines:[]}),y=[];return g.forEach((e=>y.push({type:"path",d:e.path,stroke:e.stroke,strokeLinejoin:e.attrs["stroke-linejoin"],strokeWidth:e.attrs["stroke-width"],strokeDasharray:e.attrs["stroke-dasharray"],fill:"none"}))),y}var Ree={require:["chart","renderer"],defaultSettings:{settings:{seriesInfo:{primary:[],secondary:[]},selectionValues:{},colorSettings:void 0,colorByData:!1,isColorCode:!1,hasMultipleMeasures:!1,groupedByMeasure:!1,itemsPerGroup:1,orientation:"vertical",rtl:!1}},addListener(e,t){this.state.brush.addListener(e,t),this.state.listeners.push({type:e,fn:t})},removeListeners(){this.state.listeners.forEach((e=>this.state.brush.removeListener(e.type,e.fn))),this.state.listeners.length=0},created(){this.state={pathModel:wee({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),brush:this.chart.brush("selection"),listeners:[],selectionInfo:{minorRange:!1,minorRangePrimary:!1,legendRange:!1,legendTap:!1}}},mounted(){this.addListener("update",(()=>{this.state.selectionInfo=this.settings.settings.getSelectionInfo();const e=Aee({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl});this.renderer.render(e)})),this.addListener("end",(()=>{this.renderer.render([])}))},render(){this.state.pathModel=wee({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return Aee({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl})},destroyed(){this.removeListeners()}};const qee=()=>{const e=QR();return e.use($D),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",VD(e))};e.interaction("hammer",VD(Hammer))}(Vg)),e.use(iQ),e.use((function(e){e.renderer("react",nQ()),e.component("data-title",QZ(e.renderer("svg")()))})),e.renderer("react-qcm",bee),e.component("axis-title",fee),e.component("disclaimer",pee),e.component("scrollbar",Ef),e.component("point-label",p0),e.component("label-space",m0),e.component("time-axis",wg.picassoComponents.timeAxis),e.component("axis-overlay",wg.picassoComponents.axisOverlay),e.component("reference-line-labels",Do),e.component("box-sliced-hat",pQ),e.component("box-out-of-bounds",cQ),e.component("data-out-of-bounds-marker",xee),e.component("scroll-hint",qi),e.component("brush-highlighter",Ree),e.scale("time",wg.picassoScales.time),e.symbol("line-point",See),e},Dee=e=>"[object Object]"===Object.prototype.toString.call(e),Iee=e=>Array.isArray(e);function Lee(e,t){if(e===t)return!0;if(Iee(e)){if(!Iee(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Lee(e[n],t[n]))return!1;return!0}if(Dee(e)){if(!Dee(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!Lee(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function Pee({enable:t=!0}={}){const n=e.useModel(),r=()=>Date.now().toString()+Math.random(),[i,o]=e.useState(r()),a={properties:void 0};return e.useEffect((()=>{if(!n||!n.getEffectiveProperties||!t)return()=>{};const e=()=>{n.getEffectiveProperties().then((e=>{const t=p(!0,{},e);if(!a.properties)return void(a.properties=t);const n=function(e,t){var n,r,i,o;const a={properties:!1,exclude:!1};if(e===t)return a;const s=p(!0,{},e),l=p(!0,{},t);return a.exclude=!Lee(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,a.properties=!Lee(s,l),a}(a.properties,t);a.properties=t,n.exclude&&!n.properties&&o(r())}))};return n.on("changed",e),e(),()=>{n.removeListener("changed",e)}}),[t]),i}const _ee={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},zee=e=>void 0===e.marker?_ee.circle:_ee[e.marker],Fee=e=>void 0===e.markerFill||e.markerFill;function jee({series:e,layoutService:t}){switch(Ip(e)){case gd.MARKER:return(e=>({marker:zee(e),fill:Fee(e)}))(e);case gd.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case gd.BAR:return{showAsZeros:!0};default:return{}}}function $ee(e=vd,t=!0){return t?e.axis===yd.PRIMARY:e.axis===yd.PRIMARY||Ip(e)===gd.BAR}var Bee={exports:{}};var Hee={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Vee="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Uee=Vee;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Hee,o=Uee,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[f,r]],p=(e,t,n)=>{const r=(e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=d++;o(e,i,t),u[e]=i,l[i]=t,c[i]=r,a[i]=new RegExp(t,n?"g":void 0),s[i]=new RegExp(r,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),p("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${f}+`),p("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),p("FULL",`^${l[u.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),p("LOOSE",`^${l[u.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),p("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",l[u.COERCE],!0),p("COERCERTLFULL",l[u.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Bee,Bee.exports);var Wee=Bee.exports;const Yee=Object.freeze({loose:!0}),Gee=Object.freeze({});var Kee=e=>e?"object"!=typeof e?Yee:e:Gee;const Xee=/^[0-9]+$/,Jee=(e,t)=>{const n=Xee.test(e),r=Xee.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var Zee={compareIdentifiers:Jee,rcompareIdentifiers:(e,t)=>Jee(t,e)};const Qee=Uee,{MAX_LENGTH:ete,MAX_SAFE_INTEGER:tte}=Hee,{safeRe:nte,safeSrc:rte,t:ite}=Wee,ote=Kee,{compareIdentifiers:ate}=Zee;var ste=class e{constructor(t,n){if(n=ote(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>ete)throw new TypeError(`version is longer than ${ete} characters`);Qee("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?nte[ite.LOOSE]:nte[ite.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>tte||this.major<0)throw new TypeError("Invalid major version");if(this.minor>tte||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>tte||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<tte)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Qee("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),ate(this.major,t.major)||ate(this.minor,t.minor)||ate(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(Qee("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return ate(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(Qee("build compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return ate(e,r)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=new RegExp(`^${this.options.loose?rte[ite.PRERELEASELOOSE]:rte[ite.PRERELEASE]}$`),n=`-${t}`.match(e);if(!n||n[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===ate(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const lte=ste;var cte=(e,t,n=!1)=>{if(e instanceof lte)return e;try{return new lte(e,t)}catch(e){if(!n)return null;throw e}};const ute=cte;var dte=(e,t)=>{const n=ute(e,t);return n?n.version:null};const fte=cte;var hte=(e,t)=>{const n=fte(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const pte=ste;var mte=(e,t,n,r,i)=>{"string"==typeof n&&(i=r,r=n,n=void 0);try{return new pte(e instanceof pte?e.version:e,n).inc(t,r,i).version}catch(e){return null}};const gte=cte;var yte=(e,t)=>{const n=gte(e,null,!0),r=gte(t,null,!0),i=n.compare(r);if(0===i)return null;const o=i>0,a=o?n:r,s=o?r:n,l=!!a.prerelease.length;if(!!s.prerelease.length&&!l){if(!s.patch&&!s.minor)return"major";if(0===s.compareMain(a))return s.minor&&!s.patch?"minor":"patch"}const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const vte=ste;var bte=(e,t)=>new vte(e,t).major;const xte=ste;var Ste=(e,t)=>new xte(e,t).minor;const wte=ste;var Mte=(e,t)=>new wte(e,t).patch;const kte=cte;var Ete=(e,t)=>{const n=kte(e,t);return n&&n.prerelease.length?n.prerelease:null};const Cte=ste;var Ote=(e,t,n)=>new Cte(e,n).compare(new Cte(t,n));const Nte=Ote;var Tte=(e,t,n)=>Nte(t,e,n);const Ate=Ote;var Rte=(e,t)=>Ate(e,t,!0);const qte=ste;var Dte=(e,t,n)=>{const r=new qte(e,n),i=new qte(t,n);return r.compare(i)||r.compareBuild(i)};const Ite=Dte;var Lte=(e,t)=>e.sort(((e,n)=>Ite(e,n,t)));const Pte=Dte;var _te=(e,t)=>e.sort(((e,n)=>Pte(n,e,t)));const zte=Ote;var Fte=(e,t,n)=>zte(e,t,n)>0;const jte=Ote;var $te=(e,t,n)=>jte(e,t,n)<0;const Bte=Ote;var Hte=(e,t,n)=>0===Bte(e,t,n);const Vte=Ote;var Ute=(e,t,n)=>0!==Vte(e,t,n);const Wte=Ote;var Yte=(e,t,n)=>Wte(e,t,n)>=0;const Gte=Ote;var Kte=(e,t,n)=>Gte(e,t,n)<=0;const Xte=Hte,Jte=Ute,Zte=Fte,Qte=Yte,ene=$te,tne=Kte;var nne=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Xte(e,n,r);case"!=":return Jte(e,n,r);case">":return Zte(e,n,r);case">=":return Qte(e,n,r);case"<":return ene(e,n,r);case"<=":return tne(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const rne=ste,ine=cte,{safeRe:one,t:ane}=Wee;var sne=(e,t)=>{if(e instanceof rne)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?one[ane.COERCERTLFULL]:one[ane.COERCERTL];let i;for(;(i=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),r.lastIndex=i.index+i[1].length+i[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?one[ane.COERCEFULL]:one[ane.COERCE]);if(null===n)return null;const r=n[2],i=n[3]||"0",o=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",s=t.includePrerelease&&n[6]?`+${n[6]}`:"";return ine(`${r}.${i}.${o}${a}${s}`,t)};var lne,cne,une,dne,fne=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};function hne(){if(cne)return lne;cne=1;const e=/\s+/g;class t{constructor(n,o){if(o=r(o),n instanceof t)return n.loose===!!o.loose&&n.includePrerelease===!!o.includePrerelease?n:new t(n.raw,o);if(n instanceof i)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&h))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(m,O(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),o("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),o("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),o("caret trim",e);let g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));a&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),o("range list",g);const v=new Map,b=g.map((e=>new i(e,this.options)));for(const e of b){if(p(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const x=[...v.values()];return n.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(N(this.set[t],e,this.options))return!0;return!1}}lne=t;const n=new fne,r=Kee,i=pne(),o=Uee,a=ste,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=Wee,{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:h}=Hee,p=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},y=(e,t)=>(o("comp",e,t),e=S(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=M(e,t),o("xrange",e),e=E(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{o("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),v(n)?l="":v(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",l),l}))},M=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=v(i),u=c||v(a),d=u||v(s),f=d;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},E=(e,t)=>(o("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),C=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),O=e=>(t,n,r,i,o,a,s,l,c,u,d,f)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(u)?`<${+c+1}.0.0-0`:v(d)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${d}-${f}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),N=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return lne}function pne(){if(dne)return une;dne=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=t.match(n);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}une=t;const n=Kee,{safeRe:r,t:i}=Wee,o=nne,a=Uee,s=ste,l=hne();return une}const mne=hne();var gne=(e,t,n)=>{try{t=new mne(t,n)}catch(e){return!1}return t.test(e)};const yne=hne();var vne=(e,t)=>new yne(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const bne=ste,xne=hne();var Sne=(e,t,n)=>{let r=null,i=null,o=null;try{o=new xne(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new bne(r,n)))})),r};const wne=ste,Mne=hne();var kne=(e,t,n)=>{let r=null,i=null,o=null;try{o=new Mne(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new wne(r,n)))})),r};const Ene=ste,Cne=hne(),One=Fte;var Nne=(e,t)=>{e=new Cne(e,t);let n=new Ene("0.0.0");if(e.test(n))return n;if(n=new Ene("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let i=null;r.forEach((e=>{const t=new Ene(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!One(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!One(n,i)||(n=i)}return n&&e.test(n)?n:null};const Tne=hne();var Ane=(e,t)=>{try{return new Tne(e,t).range||"*"}catch(e){return null}};const Rne=ste,qne=pne(),{ANY:Dne}=qne,Ine=hne(),Lne=gne,Pne=Fte,_ne=$te,zne=Kte,Fne=Yte;var jne=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new Rne(e,r),t=new Ine(t,r),n){case">":i=Pne,o=zne,a=_ne,s=">",l=">=";break;case"<":i=_ne,o=Fne,a=Pne,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Lne(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const c=t.set[n];let u=null,d=null;if(c.forEach((e=>{e.semver===Dne&&(e=new qne(">=0.0.0")),u=u||e,d=d||e,i(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===s||u.operator===l)return!1;if((!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const $ne=jne;var Bne=(e,t,n)=>$ne(e,t,">",n);const Hne=jne;var Vne=(e,t,n)=>Hne(e,t,"<",n);const Une=hne();var Wne=(e,t,n)=>(e=new Une(e,n),t=new Une(t,n),e.intersects(t,n));const Yne=gne,Gne=Ote;const Kne=hne(),Xne=pne(),{ANY:Jne}=Xne,Zne=gne,Qne=Ote,ere=[new Xne(">=0.0.0-0")],tre=[new Xne(">=0.0.0")],nre=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===Jne){if(1===t.length&&t[0].semver===Jne)return!0;e=n.includePrerelease?ere:tre}if(1===t.length&&t[0].semver===Jne){if(n.includePrerelease)return!0;t=tre}const r=new Set;let i,o,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?i=rre(i,t,n):"<"===t.operator||"<="===t.operator?o=ire(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=Qne(i.semver,o.semver,n),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of r){if(i&&!Zne(e,String(i),n))return null;if(o&&!Zne(e,String(o),n))return null;for(const r of t)if(!Zne(e,String(r),n))return!1;return!0}let d=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver,f=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;d&&1===d.prerelease.length&&"<"===o.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(u=u||">"===e.operator||">="===e.operator,c=c||"<"===e.operator||"<="===e.operator,i)if(f&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===f.major&&e.semver.minor===f.minor&&e.semver.patch===f.patch&&(f=!1),">"===e.operator||">="===e.operator){if(s=rre(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!Zne(i.semver,String(e),n))return!1;if(o)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=ire(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!Zne(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&c&&!o&&0!==a)&&(!(o&&u&&!i&&0!==a)&&(!f&&!d))},rre=(e,t,n)=>{if(!e)return t;const r=Qne(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},ire=(e,t,n)=>{if(!e)return t;const r=Qne(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var ore=(e,t,n={})=>{if(e===t)return!0;e=new Kne(e,n),t=new Kne(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=nre(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const are=Wee,sre=Hee,lre=ste,cre=Zee,ure=(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>Gne(e,t,n)));for(const e of a){Yne(e,t,n)?(o=e,i||(i=e)):(o&&r.push([i,o]),o=null,i=null)}i&&r.push([i,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push(`<=${t}`):s.push(`${e} - ${t}`):s.push(`>=${e}`):s.push("*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t};var dre=r({parse:cte,valid:dte,clean:hte,inc:mte,diff:yte,major:bte,minor:Ste,patch:Mte,prerelease:Ete,compare:Ote,rcompare:Tte,compareLoose:Rte,compareBuild:Dte,sort:Lte,rsort:_te,gt:Fte,lt:$te,eq:Hte,neq:Ute,gte:Yte,lte:Kte,cmp:nne,coerce:sne,Comparator:pne(),Range:hne(),satisfies:gne,toComparators:vne,maxSatisfying:Sne,minSatisfying:kne,minVersion:Nne,validRange:Ane,outside:jne,gtr:Bne,ltr:Vne,intersects:Wne,simplifyRange:ure,subset:ore,SemVer:lre,re:are.re,src:are.src,tokens:are.t,SEMVER_SPEC_VERSION:sre.SEMVER_SPEC_VERSION,RELEASE_TYPES:sre.RELEASE_TYPES,compareIdentifiers:cre.compareIdentifiers,rcompareIdentifiers:cre.rcompareIdentifiers}),fre="0.23.1";const hre=e=>!e||dre.lt(dre.coerce(e),dre.coerce(fre)),pre=({layoutService:e})=>{const t=!hre(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[gd.BAR]:0,[gd.LINE]:0,[gd.MARKER]:0};return({series:r=vd},i)=>{const o=$ee(r,t),a=Ip(r);return{id:i,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${i}`,refIndex:i,isPrimary:o,scale:o?md.SCALE.MINOR.PRIMARY:md.SCALE.MINOR.SECONDARY,collection:o?md.COLLECTION.PRIMARY:md.COLLECTION.SECONDARY,options:jee({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>Ip(e)===t)).length,i=n.filter((e=>e.isPrimary)),o=n.filter((e=>!e.isPrimary)),a=[!!i.length&&i[0],!!o.length&&o[0]].filter((e=>!!e)),s=r(n,gd.BAR),l=r(i,gd.BAR),c=r(o,gd.BAR),u=e=>n.filter((t=>Ip(t)===e)),d=u(gd.LINE).map((e=>th(md.COMPONENT.POINT,e))),f=u(gd.MARKER).map((e=>({key:th(md.COMPONENT.MARKER,e),type:e.options.marker}))),h=f.map((e=>e.key)),p=[];l>0&&p.push(`${md.COMPONENT.BAR}-${yd.PRIMARY}`),c>0&&p.push(`${md.COMPONENT.BAR}-${yd.SECONDARY}`);const m=[...p,...d,...h],{MINI_CHART:g}=md.COMPONENT,y=u(gd.LINE).map((e=>th(g.LINE,e))),v=u(gd.MARKER).map((e=>th(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${yd.PRIMARY}`,`${g.BAR}-${yd.SECONDARY}`,...y,...v]:[];return{meta:{allSeries:n,primarySeries:i,secondarySeries:o,barSeriesCount:s,primaryBarSeriesCount:l,secondaryBarSeriesCount:c,measureAxes:a,pointComponentKeys:d,markerComponentKeys:h,barComponentKeys:p,seriesComponentKeys:m,miniComponentKeys:b,markers:f},query:{all:()=>n,seriesByAxis:e=>e?i:o,series:u,isPrimary:$ee}}};function mre({layoutService:e}){const{dimensionCount:t,measureCount:n}=e.meta;return{qTop:0,qLeft:0,qWidth:t+n,qHeight:Math.min(2e3,1e4/(n+1))}}function gre({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(T).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=o?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,{path:"/qHyperCubeDef",rect:mre({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function yre({genericObjectModel:e,layoutService:t}){const{isSnapshot:n,isContinuous:r}=t.meta;return n?function({layoutService:e}){return function(){return Promise.resolve({reducedCube:e.getLayoutValue("reducedHyperCube")||e.getHyperCube()})}}({layoutService:t}):r?function({layoutService:e}){return function(){const t=e.getHyperCube();return Promise.resolve({reducedCube:{...t,qDataPages:[...t.qDataPages]}})}}({layoutService:t}):gre({genericObjectModel:e,layoutService:t})}const vre=e=>"number"==typeof e&&!Number.isNaN(e);function bre({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),i=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),o=i.filter((e=>Ip(e.series)===gd.BAR)),a=i.filter((e=>Ip(e.series)===gd.LINE)),s=i.filter((e=>Ip(e.series)===gd.MARKER));return{min:Math.min(...i.filter((e=>vre(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>vre(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>vre(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>vre(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>vre(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>vre(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>vre(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>vre(e.qMax))).map((e=>e.qMax)))}}}}function xre({isPrimary:e,layoutService:t,seriesModel:n}){const r=bre({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(gd.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:i}=n,o={min:NaN,max:NaN};return i.forEach((e=>{let t=0,n=0;e.slice(1).filter(((e,t)=>r.some((e=>e===t))&&"NaN"!==e.qNum)).forEach((e=>{e.qNum>=0?n+=e.qNum:t+=e.qNum})),o.min=Number.isNaN(o.min)?t:Math.min(t,o.min),o.max=Number.isNaN(o.max)?n:Math.max(n,o.max)})),o}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=i({dataPage:e}),t.min=Math.min(t.bar.min,t.line.min,t.marker.min),t.max=Math.max(t.bar.max,t.line.max,t.marker.max),t}}function Sre({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:i}){const o={min:NaN,max:NaN,implicit:{min:NaN,max:NaN,bar:{min:NaN,max:NaN},line:{min:NaN,max:NaN},marker:{min:NaN,max:NaN}},explicit:{min:NaN,max:NaN},meta:{hasExplicit:!1,hasExplicitMin:!1,hasExplicitMax:!1,includesZero:!1}},a=function({isPrimary:e,layoutService:t,seriesModel:n}){const{isBarSeriesStacked:r}=t.meta,i=n.query.series(gd.BAR).filter((t=>t.isPrimary===e)).length;return!r||i<2?bre({isPrimary:e,layoutService:t,seriesModel:n}):xre({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:i});return{query:{getExtrema:()=>o},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,i=r("measureAxes."+(e?0:1),{});if(i.autoMinMax)return n;const{minMax:o,min:a,max:s}=i;return"min"!==o&&"minMax"!==o||(n.min=a),"max"!==o&&"minMax"!==o||(n.max=s),Number.isNaN(n.min)||Number.isNaN(n.max)||(n.min=Math.min(a,s),n.max=Math.max(a,s)),n}({isPrimary:e,layoutService:n});return o.explicit.min=s,o.explicit.max=l,o.meta.hasExplicitMin=!Number.isNaN(s),o.meta.hasExplicitMax=!Number.isNaN(l),o.meta.hasExplicit=o.meta.hasExplicitMin||o.meta.hasExplicitMax,function({continuousModel:e,layoutService:t,reducedModel:n}){const{isDiscrete:r}=t.meta;if(r){const e=n.query.getCube();return Promise.resolve({dataPage:e.qDataPages[0]})}return e.fetchMinMaxData().then((e=>({dataPage:e[0]})))}({continuousModel:t,layoutService:n,reducedModel:r}).then((({dataPage:t})=>{const{min:n,max:r,bar:s,line:l,marker:c}=a({dataPage:t}),u=i.query.seriesByAxis(e).some((e=>Ip(e)===gd.BAR)),d=Number((u?Math.min(n,0):n).toFixed(13)),f=Number((u?Math.max(r,0):r).toFixed(13)),h=Number((u?Math.min(s.min,0):s.min).toFixed(13)),p=Number((u?Math.max(s.max,0):s.max).toFixed(13)),m=Number((u?Math.min(l.min,0):l.min).toFixed(13)),g=Number((u?Math.max(l.max,0):l.max).toFixed(13)),y=Number((u?Math.min(c.min,0):c.min).toFixed(13)),v=Number((u?Math.max(c.max,0):c.max).toFixed(13));o.implicit.min=Number.isFinite(d)?d:0,o.implicit.max=Number.isFinite(f)?f:0,o.implicit.bar.min=Number.isFinite(h)?h:0,o.implicit.bar.max=Number.isFinite(p)?p:0,o.implicit.line.min=Number.isFinite(m)?m:0,o.implicit.line.max=Number.isFinite(g)?g:0,o.implicit.marker.min=Number.isFinite(y)?y:0,o.implicit.marker.max=Number.isFinite(v)?v:0,o.min=Number.isNaN(o.explicit.min)?o.implicit.min:o.explicit.min,o.max=Number.isNaN(o.explicit.max)?o.implicit.max:o.explicit.max,o.meta.hasExplicitMin&&!o.meta.hasExplicitMax&&(o.max=Math.max(o.min,o.max)),o.meta.hasExplicitMax&&!o.meta.hasExplicitMin&&(o.min=Math.min(o.min,o.max)),o.meta.includesZero=!!((0-o.min)*(0-o.max)<=0)}))}}}}function wre({extrema:e,ticks:t}){const n=e.meta.hasExplicit?2:3;return t.filter((t=>(t=>!e.meta.hasExplicitMin||t>=e.explicit.min)(t)&&(t=>!e.meta.hasExplicitMax||t<=e.explicit.max)(t))).length>=n}function Mre({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=bn().domain([e,t]);return r.nice(n),r}(e,t,n),a={start:!0,stop:!0};if(!a.start||!a.stop){const[e,t]=o.domain(),r=o.ticks(n),i=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;o.domain([a.start?e:e-i,a.stop?t:t+s]),o.nice(n)}return o}const kre=50,Ere=100,Cre=200,Ore=125;function Nre({config:{measureAxesRef:e},layoutService:t,size:n}){const r=(e=>{switch(e){case.5:return kre;case 1:return Ere;case 2:return Cre;default:return e*Ore}})(t.getLayoutValue(`${e}.spacing`,1));return Math.max(1,Math.round(n/r))}function Tre({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:o,min:a,max:s}){const l=Nre({config:e,layoutService:n,size:o}),c=Mre({min:a,max:s,count:l,threshold:.05,disable:!0}),u=c.domain(),d={roundedMin:u[0],roundedMax:u[1],ticks:c.ticks(l)},f="horizontal"===r.meta.major.orientation?"height":"width",h=e=>i(e)[f],p=t.formatter(e.formatter),m=()=>{const e=d.ticks.map(p),t=e.some(((t,n)=>e.indexOf(t)!==n));return!t&&(e=>{const t=o/d.ticks.length;return Math.max(...e.map(h))<=t})(e)};for(let e=l-1;e>0&&!m();e--)c.domain([a,s]),c.nice(e),[d.roundedMin,d.roundedMax]=c.domain(),d.ticks=c.ticks(e);return d}function Are({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function Rre({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}function qre({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=Mre({min:r,max:i,count:10,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(10),l=function({ticks:e}){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?Are:Rre;o.ticks=s.filter(((e,t,n)=>c({tick:e,index:t,ticks:n})));o.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(o.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const u=t.formatter(e.formatter),d=o.ticks.map(u),f=d.some(((e,t)=>d.indexOf(e)!==t));return f&&(o.ticks=[o.ticks[0],o.ticks[o.ticks.length-1]]),o}function Dre({ticks:e,extrema:t}){let n=[...e];return t.meta.hasExplicit&&e.length?(t.meta.hasExplicitMin&&!e.some((e=>e===t.explicit.min))&&(n.unshift(t.explicit.min),n=n.filter((e=>e>=t.explicit.min))),t.meta.hasExplicitMax&&!e.some((e=>e===t.explicit.max))&&(n.push(t.explicit.max),n=n.filter((e=>e<=t.explicit.max))),n):n}function Ire({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){const{ticks:c,roundedMin:u,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){if("SPARK"===r.meta.chart.mode)return function({min:e,max:t}){return{roundedMin:e,roundedMax:t,ticks:[]}}({min:s,max:l});const c=Tre({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return wre({extrema:i,ticks:c.ticks})?c:qre({config:e,chart:t,extrema:i,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}),f=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}({ticks:c,count:1}),h=[...Dre({ticks:c,extrema:i}).map((e=>({value:e,isMinor:!1}))),...f.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value));return{min:u,max:d,values:h}}function Lre({config:e,chart:t,layoutService:n,dockService:r,measureText:i,extrema:o,size:a}){const{min:s,max:l}=function({extrema:e}){const{min:t,max:n}=e;return t!==n?{min:t,max:n}:0===t||1===t?{min:t-1,max:n+1}:{min:t-.2*t*Math.sign(t),max:n+.2*n*Math.sign(n)}}({extrema:o});return Ire({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function Pre({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,c=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:i,seriesModel:o,themeService:a}){const{measureText:s}=QR.renderer("svg")();return()=>{const l=a.getStyles(),c=function({dockService:e,seriesModel:t,chart:n}){var r;const i=n.component(t.meta.seriesComponentKeys[0]),o=null!==(r=null==i?void 0:i.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?o.height:o.width}({chart:e,dockService:n,seriesModel:o}),u=r.query.getExtrema(),d=Lre({config:t,chart:e,layoutService:i,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:u,size:c});return d}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}),u=()=>(s.locked&&s.resolved||(s.resolved=c()),s.resolved);return{query:{getValues:()=>u().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:u().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:u().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function _re({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return O.snapshot(e)?Promise.resolve(null):t.getEffectiveProperties().then((e=>({properties:e})))}({layout:t.getLayout(),model:e}).then((e=>{const{properties:t}=null!=e?e:{};n.properties=t}))}}}function zre({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:i,fieldType:o}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===i?"measure"===o?()=>({type:gd.BAR}):()=>t.query.all()[0]:e=>t.query.all()[e.value];return{item:{shape:{type:({datum:e})=>{const{type:t,options:n}=s(e);switch(t){case"line":return a;case"marker":return n.marker;default:return"square"}},stroke:{},strokeWidth:({datum:e})=>{const{type:t,options:n}=s(e);return t===gd.LINE?2:t!==gd.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==gd.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function Fre({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function jre({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:i,genericObjectModel:o,layoutService:a,picasso:s,seriesModel:l,viewState:c,styleModel:u}){let d;const{theme:f,translator:h}=i,p={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=js({picasso:s,model:o,app:n,translator:h,layoutService:a,createConfig:()=>{const e=a.getHyperCubeValue("qMeasureInfo").map((e=>e.color));return{theme:f,colorProps:{measureOverrides:e},legendProps:a.getLayoutValue("legend"),hc:a.getHyperCube(),key:md.SCALE.COLOR}},config:{auto:Fre,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>p.wrappedScales,legendComponents:()=>p.legendComponents,legendInteractions:()=>p.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:o}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:i,colorService:o,actions:a,styleModel:s}){const{options:l}=i,c={eventName:"legend-c",key:md.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",styleOverrides:{title:s.query.legend.title.getStyle(),label:s.query.legend.label.getStyle()},rtl:"rtl"===l.direction,settings:zre({layoutService:n,seriesModel:r,colorService:o})},{components:u,interactions:d}=o.getLegend(c,{actions:a,navigationDisabled:!a.interact.enabled()}),f=o.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=f[`${md.SCALE.COLOR}Range`];return!r||"right"!==n&&"left"!==n||(r.invert=!0),"legend-cat"===e.type&&(e.settings.item.shape.fill.scale=e.scale,e.settings.item.shape.stroke.scale=e.scale),e})),interactions:d,scales:f}}({viewState:c,chart:r,environment:i,colorService:d,seriesModel:l,layoutService:a,actions:e,styleModel:u});p.wrappedScales=o,p.legendComponents=t,p.legendInteractions=n}}}),d}const $re="REJECTED",Bre=()=>{},Hre=2,Vre=20,Ure=200,Wre=10;var Yre={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),c=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-Wre<=t.qTop,i=n.qLeft+n.qWidth+Wre>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+Wre>=t.qTop+t.qHeight,a=n.qLeft-Wre<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var Gre={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-Wre<=t.qTop,i=n.qTop+n.qHeight+Wre>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var Kre={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const Xre="pages";const Jre="discretePan";function Zre({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:Jre,pointers:1,threshold:10,enable(r,i){return this.started===Jre||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${Jre}start`](e){e.preventDefault(),this.started=Jre;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},[`${Jre}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},[`${Jre}end`](e){e.preventDefault(),this.started=!1},[`${Jre}cancel`](e){e.preventDefault(),this.started=!1}}}}function Qre({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=100*Math.sign(-a);r.scroll(s)}}function eie({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(1e4/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(Ure,n));return{width:e,height:Math.max(Vre,Math.min(n*Hre,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function tie(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject($re),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject($re),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject($re),n=null)},i}const nie={command:{update:()=>{}}};function rie({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=nie,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,u=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:c}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&c&&c();const u=r(l);return o(i(u)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:eie({layoutService:r}),request:c({definitionPath:o}),process:tie(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=sl(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==$re)throw e}))}),50);return function(e,{onProcessing:t=Bre,onDataPage:n=Bre}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var iie={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var oie={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function aie(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function sie(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function lie(e){return sie(e.qMatrix,(e=>e[0].qElemNumber))-1}var cie={inTotal:function({layoutService:e}){const t=aie(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=aie(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=aie(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=lie(o),c=o.qArea.qHeight*i+l,u=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const uie=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function die(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return uie(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n})(t.qMatrix,n);return r.successful?r.count:uie(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return uie(e,n);return sie(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var fie={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=die(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:c}=n,u=die(t).area(e(),l,a.qArea),d=lie(a),f=a.qArea.qHeight+d,h=c===o?(r.inView-f)*s/i:(c+(a.qArea.qTop+u)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function hie({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:h}=r[n.meta.chart.mode],p="horizontal"===n.meta.major.orientation,{axisDisplayMode:m="auto",maxVisibleItems:g=10,label:y}=s,v=p?t.width:t.height,b=v/l>=f;switch(m){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/h:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return f>o;const h=(90-d)*(Math.PI/180);return f>Math.cos(h)*o}({chart:e,isHorizontal:p,axisKey:i,renderer:o,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}function pie({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?iie:n?r?cie:fie:oie}({layoutService:r}),h=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,p=e=>e?h()/e:0,m=(e,t)=>-(e-t)*p(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:hie({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(1e4/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return p(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,m(n,r))),o=r?Math.abs(r*i/h()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return m(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,Math.min(1,o+e/i)]}({viewSize:h(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:h(),upperBound:m(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&c?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=m(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*p(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(p(r)*n)}}}}function mie({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:f,rtl:h}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const p=pie({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:h}),m=()=>{const e=p.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=p.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=m(),a=g({pixelOffset:e,items:r}),s=p.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((p.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item})));f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item}))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=m();n.set("itemSize",p.getItemSize({items:a}));const c=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?p.getUpperBound({items:e}):0;if("number"==typeof n)return p.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return p.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),u=g({pixelOffset:c,items:a});f.preventSet("viewRange",p.getViewRange({pixelOffset:u.start.pixel,items:a}));const d=p.getArea({itemOffset:u.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",p.getScaleRange({offsets:u.start,items:a})),f.preventSet("scrollOffset",{start:u.start.item,end:u.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=p.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function gie({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:u="/qHyperCubeDef",getRect:d,axisKey:f,renderer:h,areaBuffer:p,processDataPage:m=()=>{}}={}}){const g=ol(),y=function({qMode:e}){switch(e){case"K":return Gre;case"T":return Kre;default:return Yre}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(Xre,[]),{add:t=>{const n=e.get(Xre);n.length=0,n.push(t)},getCurrent:()=>e.get(Xre)[0],getAll:()=>e.get(Xre),contains:n=>t(e.get(Xre)[0],n)}}({state:g,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:p}),x=rie({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:m}),S=mie({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,renderer:h,areaBuffer:b,viewState:l,rtl:c}),w=function({layoutService:e,dataStore:t}){return function(n){const r=nl(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),M=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[Zre({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:Qre({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:c,scroller:S});return{interactions:M,query:{getCanScroll:()=>S.enabled(),getItemSize:()=>S.itemSize(),getScaleRange:()=>S.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>S.initialize(),scrollTo:e=>S.scrollToRelative(e),setSnapshotData:e=>w(e)}}}var yie={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}};function vie({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:e,defaultValue:t})=>n&&Object.hasOwnProperty.call(n,e)?n[e]:t}function bie({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:i,LINE:o,POINT:a}=fh,s=n.getStyles(),l=vie({layoutService:e,key:"bar"}),c=vie({layoutService:e,key:"line"}),u=()=>{const e=l({property:"strokeWidth",defaultValue:"none"});return e?i.STROKE.WIDTH[e.toUpperCase()]:0},d=t=>r.isEnabled("CLIENT_IM_3050")?e.getLayoutValue("components",[]).find((e=>e.key===t)):void 0;return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>l({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!u(),getStrokeWidth:()=>u(),getStrokeColor:()=>l({property:"strokeColor",defaultValue:{index:-1,color:i.STROKE.COLOR}}).color,label:{getStyle:()=>{var e,t,n,r,i,o,a,l;return{fill:null!==(e=null===(t=d("bar"))||void 0===t||null===(t=t.bar)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,useContrastColor:null===(n=null===(r=d("bar"))||void 0===r||null===(r=r.bar)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.useContrastColor)||void 0===n||n,fontSize:null!==(i=null===(o=d("bar"))||void 0===o||null===(o=o.bar)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:12,fontFamily:null!==(a=null===(l=d("bar"))||void 0===l||null===(l=l.bar)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l.fontFamily)&&void 0!==a?a:s.label.value.fontFamily}}}},line:{getCurveFn:()=>()=>c({property:"lineCurve",defaultValue:o.CURVE.LINEAR}),getStrokeWidthFn:()=>()=>c({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?o.WIDTH.FULL.DEFAULT:o.WIDTH.LESS.DEFAULT}),getStrokeDasharrayFn:()=>()=>{const e=c({property:"lineType",defaultValue:o.TYPE.SOLID});return e&&o.TYPE[e.toUpperCase()]}},point:{getSize:()=>c({property:"dataPointSize",defaultValue:a.SIZE.DEFAULT}),label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("line"))||void 0===t||null===(t=t.line)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("line"))||void 0===r||null===(r=r.line)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("line"))||void 0===o||null===(o=o.line)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},marker:{label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("marker"))||void 0===t||null===(t=t.marker)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("marker"))||void 0===r||null===(r=r.marker)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("marker"))||void 0===o||null===(o=o.marker)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},axis:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.axis.title.fontFamily,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.title.fontSize,color:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.axis.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.axis.label.name.color,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.label.name.fontSize,fontFamily:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.title.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.title.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.label.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.label)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.label.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.label.color}}}}}}}function xie({dataset:e,data:t,valueData:n}){var r;const{source:i,label:o,value:a}=n,s=e(i.key).field(i.field);return M.shouldUseFormat(s.raw())?"-"===o||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):o}function Sie({chart:e,actions:t,translator:n,rtl:r,dockService:i,seriesModel:o,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,f=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:h}=md.COMPONENT,{PRIMARY:p,SECONDARY:m}=yd,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:i,SLICED_HAT:o}=md.COMPONENT,{PRIMARY:a,SECONDARY:s}=yd,{orientation:l}=e.meta.chart,c="vertical"===l,u=[...t.meta.barComponentKeys,...t.meta.markerComponentKeys,...t.meta.pointComponentKeys];return[({chart:e,hovered:t,meta:l})=>{const[d]=t,{triggerer:f}=l,h=f===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${o}-max-${a}`||e.key===`${o}-max-${s}`)&&e.data&&e.data.value===h&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const p=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===`${i}-max`)&&e.data.major.value===h));if(c&&p)return{key:p.key,bounds:p.bounds};const m=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===`${i}-min`)&&e.data.major.value===h)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===h));if(c&&m&&!g.find((e=>{var t,n;return(null===(t=e.data.end)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=m.data.end)||void 0===n||null===(n=n.source)||void 0===n?void 0:n.field)}))&&!g.find((e=>{var t,n;return(null===(t=e.data.segment)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=m.data.source)||void 0===n?void 0:n.field)})))return{key:m.key,bounds:m.bounds};const y=p||m;return!(c||!y||g.find((e=>{var t,n;return(null===(t=e.data.end)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=y.data.end)||void 0===n||null===(n=n.source)||void 0===n?void 0:n.field)}))||g.find((e=>{var t,n;return(null===(t=e.data.segment)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=y.data.source)||void 0===n?void 0:n.field)})))&&{key:y.key,bounds:y.bounds}},"collectible"]}({dockService:i,seriesModel:o});return nd({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:md.COMPONENT.TOOLTIP,getGroupByValue:d,collectibles:[...o.meta.barComponentKeys.map((e=>({key:e,type:"bar",major:d}))),...o.meta.pointComponentKeys.map((e=>({key:e,type:"point",major:d}))),...o.meta.markers.map((e=>({key:e.key,type:e.type,major:d})))],triggers:[{keys:[md.COMPONENT.AXIS.MAJOR],collect:{from:"dimension",by:({data:e})=>e.value,filter:f},placement:g},{keys:[...o.meta.barComponentKeys,...o.meta.markerComponentKeys,`${h}-max-${p}`,`${h}-max-${m}`,`${h}-min-${p}`,`${h}-min-${m}`,`${md.COMPONENT.BAR_OOB}-max-${p}`,`${md.COMPONENT.BAR_OOB}-max-${m}`,`${md.COMPONENT.BAR_OOB}-min-${p}`,`${md.COMPONENT.BAR_OOB}-min-${m}`,`${md.COMPONENT.DATA_OOB_MARKER}-max`,`${md.COMPONENT.DATA_OOB_MARKER}-min`],collect:{from:"dimension",by:d,filter:f},placement:g},{keys:[...o.meta.pointComponentKeys],distance:3,collect:{from:"dimension",by:d,filter:f},placement:g}],section:({h:e,nodes:t,dataset:n,create:r,util:i})=>{const[o]=t,{title:a,description:s,measures:l}=c.isEnabled()?c.getAttributes({dataset:n,nodes:[o]}):{},u=[];a&&u.push(r.text({value:a,style:{bold:!0}})),s&&u.push(r.text({value:s}));const d=c.hideBasic();d&&!l.length&&(a||s)||u.push(r.text({value:o.data.label,style:{bold:!0}})),d||(u.push(r.color({nodes:t,property:md.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:o}=e.data,a=t||o,{key:s,field:l}=a.source;return r.measure({label:i.dataset.title(s,l),value:xie({dataset:n,data:e.data,valueData:a})})})))),l&&u.push(...l.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),c.chart.isEnabled()&&(c.chart.hasLimitation()?(c.chart.destroy(),u.push(r.raw({value:c.chart.createLimitationRow()}))):u.push(r.raw({value:c.chart.createContainer({h:e})})));const{customTooltipImages:f}=o.data;return c.isEnabled()&&f&&u.push(...f.map((t=>r.raw({value:c.createImageRow({value:t,h:e})})))),u},layout:{grouping:!0,single:()=>!(!c.isEnabled()||!c.hasImages())||c.chart.isEnabled()},events:{tooltip:{beforeShow:({collectNodes:e})=>c.isEnabled()&&c.hasImages()?c.addImages({nodes:e()}):Promise.resolve(),afterShow:({nodes:e})=>{c.chart.isEnabled()&&!c.chart.hasLimitation()&&c.chart.show({nodes:e,properties:l.query.getProperties()})}},interaction:{mouseleave:()=>{c.chart.isEnabled()&&c.chart.hasAlternateState()&&c.chart.hide()}}}},legend:{keys:{tooltip:md.COMPONENT.LEGEND_TOOLTIP,component:md.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:wie}=wg,Mie=({picasso:t,chart:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,selectionService:l})=>{var c;const u=e.useStaleLayout(),{width:d,height:f}=e.useRect(),[h,p]=e.useState(),[m,g]=e.useState(),y=e.useModel(),v=e.useApp(),b=e.useAppLayout(),S=e.usePlugins(),w=e.useEmbed(),M=Pee({enable:!1===(null==h||null===(c=h.layoutService)||void 0===c||null===(c=c.meta)||void 0===c?void 0:c.isSnapshot)});e.useEffect((()=>{if(!(u&&null!=n&&n.update&&r&&o&&l))return;const e=function(e){var t=e.source,n=e.metaAdditionsFn,r=e.experimental,i=void 0===r?{filter:!1}:r,o=fa(!0,{},t),a=i.filter?function(e){var t=e.qHyperCube,n=cl(t,ll.DIMENSION),r=n.reduced,i=n.filtered;t[ll.DIMENSION]=r;var o=cl(t,ll.MEASURE),a=o.reduced,s=o.filtered;return t[ll.MEASURE]=a,{dimensions:i,measures:s}}(o):{dimensions:[],measures:[]},s=dl(o),l=function(){var e=function(e){var t=e.layout,n=e.additionsFn,r=void 0===n?function(){return{}}:n,i=e.additionsProps,o=void 0===i?{}:i,a=t.qHyperCube,s=a.qDimensionInfo,l=a.qMeasureInfo,c=a.qMode,u=s.length,d=l.length,f=Fo({mode:{S:"S"===c,P:"P"===c,K:"K"===c,T:"T"===c},dimensionCount:u,measureCount:d,hasMultipleDimensions:u>1,hasMultipleMeasures:d>1,isOneDimensional:1===u,isTwoDimensional:2===u},o);return Fo(Fo({},f),r({layout:t,meta:f}))}({layout:o,additionsFn:n,additionsProps:{size:s.size}});return e.filteredFields=a,e},c={refs:Fo({},s.refs),meta:l(),getLayout:function(){return o},getLayoutValue:function(e,t){return nl(o,e,t)},setLayoutValue:function(e,t){il(o,e,t),s=dl(o),c.meta=l()},getHyperCube:function(){return o.qHyperCube},getHyperCubeValue:function(e,t){return nl(o.qHyperCube,e,t)},setHyperCubeValue:function(e,t){il(o.qHyperCube,e,t),s=dl(o),c.meta=l()},getDataPages:function(){return nl(o,s.refs.dataPages)},setDataPages:function(e){il(o,s.refs.dataPages,e),c.meta=l()}};return c}({source:u,metaAdditionsFn:function({layout:e}){var t;const n=nl(e,"qHyperCube.qMeasureInfo",[]),r=n.some((({series:e=vd})=>Ip(e)===gd.LINE)),i=O.continuous(e,(()=>r&&x.isTime(!0,e))),o=!hre(nl(e,"version","")),a=n.filter((({series:e=vd})=>Ip(e)===gd.BAR)),s=a.length,l=a.filter((({series:e=vd})=>e.axis!==yd.SECONDARY)).length,c=a.filter((({series:e=vd})=>e.axis===yd.SECONDARY)).length,u=o?l>1||c>1:s>1,d=("grouped"!==nl(e,"barGrouping.grouping")||i)&&u,f=!d&&s>1,h=o&&d&&(l>0&&c>1||l>1&&c>0),p=!(null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qLocked);return{canBeContinuous:x.canBeContinuous(e),isDiscrete:!i,isContinuous:i,isTime:x.isTime(i,e),isSnapshot:O.snapshot(e),isBarSeriesStacked:d,isBarSeriesGrouped:f,isBarSeriesStackedInBothAxis:h,isGrouped:f||h,isGroupedByMeasure:f||h,isDimensionLocked:p,groupSize:h?2:s,hasLineSeries:r}}}),{options:c,translator:h}=r,{direction:m}=c,g="rtl"===m,M=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=yre({genericObjectModel:e,layoutService:t});return{query:{getCube:()=>n.cube,getIsReduced:()=>n.on},command:{initialize:()=>r().then((({reducedCube:e})=>{n.cube=e,n.on=!!(n.cube&&n.cube.qDataPages[0]&&n.cube.qDataPages[0].qIsReduced)})),setSnapshotData:e=>{e.reducedHyperCube=n.cube}}}}({genericObjectModel:y,layoutService:e}),k=function(e){var t,n=e.app,r=e.translator,i={initialized:!1,dimensions:[],measures:[]};return{initialize:(t=Po($o().mark((function e(t){var o,a,s,l,c,u,d;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.properties,!i.initialized){e.next=3;break}return e.abrupt("return");case 3:return s=[aa(a={app:n,translator:r,properties:o}),ca(a)],e.next=7,Promise.all(s);case 7:l=e.sent,c=Bo(l,2),u=c[0],d=c[1],i.dimensions=u,i.measures=d,i.initialized=!0;case 12:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),getAlternatives:function(){return{dimensions:Ho(i.dimensions),measures:Ho(i.measures)}}}}({app:v,translator:h}),E=tl({chart:n,layoutService:e,config:{logicalSize:{width:d,height:f},rtl:g},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),C=pre({layoutService:e}),N=e.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:i,viewState:o,rtl:a,actions:s,picasso:l}){return gie({chart:e,actions:s,componentKey:Mg(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:yie,options:{axisKey:md.COMPONENT.AXIS.MAJOR,renderer:l.renderer("svg")()}})}({chart:n,genericObjectModel:y,layoutService:e,dockService:E,seriesModel:C,viewState:o,rtl:"rtl"===r.options.direction,actions:s,picasso:t}):void 0,T=e.meta.isContinuous?wie({model:y,layoutService:e,viewState:o,viewCache:a}):void 0,A=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:ku(a),styles:void 0};return d.styles=Cu({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=Cu({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:r.theme,config:{id:"comboChart"}}),R=bie({layoutService:e,dockService:E,themeService:A,flags:i}),q=jre({actions:s,appLayoutModel:b,appModel:v,chart:n,environment:r,genericObjectModel:y,layoutService:e,picasso:t,seriesModel:C,viewState:o,styleModel:R}),D=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=`${r}:numeric`,o=t.meta.primarySeries.map((e=>e.ref)),a=t.meta.secondarySeries.map((e=>e.ref)),s=n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0;return{main:{major:r,majorNumeric:i,minorsPrimary:o,minorsSecondary:a},virtuals:s}}({layoutService:e,seriesModel:C}),I=Sre({isPrimary:!0,layoutService:e,reducedModel:M,seriesModel:C,continuousModel:T}),L=Sre({isPrimary:!1,layoutService:e,reducedModel:M,seriesModel:C,continuousModel:T}),P=function({layoutService:e}){return Us({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0}}})}({layoutService:e}),_=Pre({config:{measureAxesRef:"measureAxes.0",formatter:md.FORMATTER.PRIMARY},chart:n,layoutService:e,extremumModel:I,dockService:E,seriesModel:C,themeService:A}),z=Pre({config:{measureAxesRef:"measureAxes.1",formatter:md.FORMATTER.SECONDARY},chart:n,layoutService:e,extremumModel:L,dockService:E,seriesModel:C,themeService:A}),F=_re({genericObjectModel:y,layoutService:e}),j=zd({flags:i,layout:u,app:v,model:y,picasso:t,chart:n,translator:h,localeInfo:b.qLocaleInfo,embed:w,options:c}),$=Sie({chart:n,actions:s,translator:h,rtl:g,dockService:E,seriesModel:C,colorService:q,themeService:A,propertiesModel:F,custom:j}),B=hd({layoutService:e,discreteModel:N}),H=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:md.SCALE.MAJOR,MAJOR_INNER:md.SCALE.MAJOR_INNER,MINOR:{PRIMARY:md.SCALE.MINOR.PRIMARY,SECONDARY:md.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${md.COMPONENT.BAR}-${yd.PRIMARY}`,BAR_SECONDARY:`${md.COMPONENT.BAR}-${yd.SECONDARY}`,AXIS:{MAJOR:md.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:md.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:md.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:md.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:md.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:md.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:md.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:md.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:md.COLLECTION.MAIN}}}}(e),V=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return Po($o().mark((function e(){var r,a,s,l;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=Po($o().mark((function e(n){var r;return $o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(Fo({},i));case 4:if("object"===Vo(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(Fo({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,Ho(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=Bo(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=fa(!0,{},n.brush);fa(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===Vo(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=fl({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=fl({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:S,pluginArgs:H}),U=function({options:e,viewCache:t,layoutService:n}){const r={hasSlicedHats:!1,isPartialUpdating:!1,isSizeChanging:!1};return{enabled:()=>!(!1===e.chartAnimations||r.hasSlicedHats||r.isPartialUpdating||r.isSizeChanging||od.propertiesHaveChanged({viewCache:t,layout:n.getLayout()})),meta:r}}({options:c,viewCache:a,layoutService:e});p({alternativeService:k,selectionService:l,genericObjectModel:y,appModel:v,dockService:E,styleModel:R,layoutService:e,fieldModel:D,seriesModel:C,reducedModel:M,primaryExtremumModel:I,secondaryExtremumModel:L,primaryTickModel:_,secondaryTickModel:z,propertiesModel:F,colorService:q,themeService:A,appLayoutModel:b,tooltipService:$,disclaimerService:P,flags:i,...N&&{discreteModel:N},...T&&{continuousModel:T},refLineModel:B,pluginService:V,animationsModel:U})}),[u,y,v,b,r,null==n?void 0:n.update,o,l]);const[,k]=e.usePromise((()=>{if(!h)return Promise.resolve();const{alternativeService:e,layoutService:t,colorService:n,reducedModel:i,primaryExtremumModel:a,secondaryExtremumModel:c,propertiesModel:u,continuousModel:d,discreteModel:f,pluginService:p,disclaimerService:m}=h,v=d?()=>{var e;d.update(t.getLayout());const n=d.initialFetch(),i=!t.meta.isSnapshot&&(null==r||null===(e=r.options)||void 0===e||null===(e=e.viewState)||void 0===e?void 0:e.zoom);return i&&o.preventSet("zoom",i),n}:()=>Promise.resolve(),b=n.initialize().then((()=>{const e=n.getSettings().field;l&&l.setBrushAliases({colorField:e}),n.custom.updateLegend()}));return Promise.all([p.initialize(),i.command.initialize(),y?u.command.initialize():Promise.resolve(),b,v(),s.scroll.attachDiscreteModel(f)]).then((()=>Promise.all([a.command.initialize(),c.command.initialize()]).then((async()=>{await e.initialize({properties:u.query.getProperties()||{}}),m.initialize(),g({...h})}))))}),[h,M]);if(k)throw k;return m};function kie(){const[t,n]=e.useState();return e.useEffect((()=>{n(function(e){var t=Fo({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({viewRange:[0,1],scrollOffset:void 0}))}),[]),t}const Eie={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"}}]};const Cie={query:{getCanScroll:()=>!0}};function Oie(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState(!1),[a,s]=e.useState(!1),l=function(){const t=e.useConstraints(),[n,r]=e.useState(!1),[i,o]=e.useState({}),[a,s]=e.useState();return e.useEffect((()=>()=>{o({})}),[]),e.useEffect((()=>{t&&r(!t.select&&!t.active)}),[t]),{enabled:()=>n,emit:(e,...t)=>i[e].forEach((e=>e(...t))),removeListener:(e,t)=>{var n;const r=null===(n=i[e])||void 0===n?void 0:n.indexOf(t);r>-1&&i[e].splice(r,1)},on:(e,t)=>{Array.isArray(i[e])?i[e].push(t):i[e]=[t]},get brushSelectionIncludeMax(){return a},set brushSelectionIncludeMax(e){s(e)},getBrushOptions:void 0}}(),c=function(){var t;const n=e.useConstraints(),[r,i]=e.useState(!1),[o,a]=e.useState(!1),s=e.useLayout(),l=e.useTranslator(),c=!!s.qSelectionInfo.qInSelections,u=!(null===(t=s.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qIsOneAndOnlyOne);e.useEffect((()=>{n&&i(!n.select&&!n.active)}),[n]);const d=e=>{a("boolean"==typeof e?e:!o)};return e.useAction((()=>({key:"lasso",label:l.get(o?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:Eie,hidden:!r||!c||u,active:o,action:d})),[c,u,o,r,l.language()]),{action:d,enabled:()=>r,active:()=>o}}();let u=Cie;e.useEffect((()=>{t&&(r(!t.active),o(!t.active),s(!t.passive))}),[t]);const[d]=e.useState({});return d.scroll={enabled:()=>n&&u.query.getCanScroll(),attachDiscreteModel:e=>{u=e||Cie}},d.interact={enabled:()=>i},d.tooltip={enabled:()=>a},d.lasso=c,d.select=l,d}function Nie({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function Tie({setSelectionInfo:e,event:t,components:n,clear:r}){const i=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:i,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&i[0]===md.COMPONENT.LEGEND_CATEGORICAL}),r()}var Aie={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Re});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=S({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e){return k="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},k(e)}var E=t().bind(null,!0),C={},O=Array.isArray;function N(e){return null!=e&&!Array.isArray(e)&&"object"===k(e)}function T(e){return void 0===e}function A(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function R(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?o:e[t],e=e[n||t]}})),e}function q(e,t){var n=!0;if(N(e)&&N(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){q(e[r],t[r])||(n=!1)})),n);if(O(e)&&O(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!q(e[r],t[r]))return!1;return!0}return e===t}C.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?E({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);q(o,a)||A(t,i)||(T(a)?r.push({op:"add",path:s,value:o}):N(o)&&N(a)?r=r.concat(C.generate(a,o,s)):O(o)&&O(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(q(t,i))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(C.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){T(t[i])&&!A(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},C.apply=function(e,t){t.forEach((function(t){var n,r,i=R(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(O(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(O(a)&&O(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return M(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(N(a)&&N(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!A(n,e)&&delete n[e]})),E(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=R(e,t.from);O(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(O(i)?i.splice(+o,1):delete i[o])}))},C.clone=function(e){return E({},e)},C.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},C.updateObject=function(e,t){Object.keys(e).length?C.apply(e,C.generate(e,t)):E(e,t)};const D=C,I=function(e,n,r){if(!e)return Promise.resolve();var i=D.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var L="accumulation";function P(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===L)return n[r]}function _(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===L)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),f=w.getAboveComp(n,l,u,d),h=w.getRangeComp("RangeSum",f);if(w.needDimension({modifier:n,properties:r,layout:i})){var p=w.getDimComp(c,1),m=w.getDimComp(c,0),g=w.getAggrComp(h,p,m);h=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(_(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(_(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=P(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=P(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(L))return!1;var o=P(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=w.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=w.getNumStepComp(r,c),p=w.getAboveComp(r,c,f,h);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",p);else{var m=w.getRangeComp("RangeSum",p),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(w.needDimension({modifier:r,properties:i,layout:a})){var v=w.getDimComp(u,1),b=w.getDimComp(u,0),x=w.getAggrComp(y,v,b);y=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=$(t,e);return o&&!o.disabled}};return n}};var U="timeSeriesDecomposition";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var G={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,G),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=W(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=W(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(U))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:i})){var h=w.getDimComp(c,1),p=w.getDimComp(c,0),m=w.getAggrComp(f,h,p);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Me="qDef.base.qLabel",ke="qDef.base.qLabelExpression",Ee="qDef.qAggrFunc",Ce="qDef.base.qAggrFunc",Oe={initBase:function(e,t){(t||Oe.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Me,o(e,Se)),n(e,ke,o(e,we)))},restoreBase:function(e){Oe.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,Se,o(e,Me)),n(e,we,o(e,ke)),o(e,Ee)&&o(e,Ce)&&n(e,Ee,o(e,Ce)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const Ne=Oe;function Te(e){return Te="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},Te(e)}var Ae={accumulation:F,movingAverage:V,difference:ee,normalization:ue,timeSeriesDecomposition:K};const Re={modifiers:Ae,apply:De,applyModifiers:Ie,cleanUpMeasure:Le,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:Pe,getActiveModifier:_e,initBase:Ne.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Ze({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var qe={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;qe[n.id]=qe[n.id]||{isFirstTime:!0};var c=qe[n.id].isFirstTime;if(qe[n.id].isFirstTime=!1,r&&"object"===Te(r))return Ie({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=qe[n.id].lastReloadTime;if(qe[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Pe({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var i=Qe(r);return Ge({model:n}).then((function(t){return Ke({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(n++,"object"!==Te(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ie({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Te(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Le(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ie(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),Be(i);var f=Qe(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Pe({measures:n,properties:r}))return n.forEach((function(e){return Le(e)})),Promise.resolve();var l=a?void 0:Qe(r);return Ge({model:i,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Ne.isValid(n)||Ne.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(s++,"object"!==Te(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ae[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Ae[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),He(n)):Le(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Le(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Ne.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Pe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function _e(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ae[r.type]&&!r.disabled)return r}}function ze(e){var t=_e(e);return!t||Ae[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function Be(e){Fe(e).forEach((function(e){return function(e){var n=_e(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ne.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!Ae[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Te(e)||e.disabled||!Ae[e.type])&&(void 0===i[e.type]&&(i[e.type]=Ae[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ge(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):I(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=Ue(t);o&&n.push(o),i=i||Ze({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(qe[t.id].masterItemSubscriber=qe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),qe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="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},i(e)}n.d(r,{default:()=>Be});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var S=n(229),w=n.n(S);function M(e,t){var n=w()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function k(e,t){return w()(!0,{},t,e)}function E(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var C=Math.pow(2,53)-1;function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const T=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},A=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},R=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},q=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},D=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},I=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=M(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=M(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},L=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=k(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=k(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},P=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=E(a.max,i.dimensions.length,C),l=E(a.min,i.dimensions.length,0);return{maxDimensions:E(o.max,s,C),minDimensions:E(o.min,l,0),maxMeasures:s,minMeasures:l}},_=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=w()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return O(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return N(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const U={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=P({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,S=b.minDimensions,w=b.maxMeasures,M=b.minMeasures,k=l.defaultDimension,E=void 0===k?q():k,C=l.defaultMeasure,O=void 0===C?D():C;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:M})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:M,newHyperCubeDef:v}),I({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:E}),L({exportFormat:t,maxMeasures:w,minMeasures:M,newHyperCubeDef:v,defaultMeasure:O}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),B({newProperties:g,dataDefinition:a,hypercubePath:c}),_({exportFormat:t,newHyperCubeDef:v}),A("qMaxStackedCells",y,v),A("qNoOfLeftDims",y,v),R("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),R("qMode",y,v,"S"),R("qReductionMode",y,v,"N"),R("qSortbyYValue",y,v),R("qIndentMode",y,v),R("qShowTotalsAbove",y,v),T(g,t,r),m.qProperty=g;var N=o.getValue(u||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:N}),f&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&V(m.qProperty,"dynamicScript"),m}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function G(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!W[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),G(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}o.auto=!1,o.mode=a}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=U.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=K.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",c),K.moveByIdFromGroup(a,[],"qAttributeExpressions",c),K.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=U.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Me(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function ke(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Me(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Me(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Ce="qHyperCubeDef.qMeasures",Oe="conditionalColoring",Ne="measures",Te="qDef.conditionalColoring";const Ae={quarantine:function(e){ke({properties:e,arrayPath:Ce,quarantineName:Oe,arrayName:Ne,itemPath:Te})},unquarantine:function(e){Ee({properties:e,arrayPath:Ce,itemPath:Te,arrayName:Ne,quarantineName:Oe})}};var Re="qHyperCubeDef.qMeasures",qe="measures",De="qHyperCubeDef.qDimensions",Ie="dimensions",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Pe="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){ke({properties:e,arrayPath:Re,quarantineName:je,arrayName:qe,itemPath:Fe}),ke({properties:e,arrayPath:De,quarantineName:je,arrayName:Ie,itemPath:Fe})},unquarantine:function(e){Ee({properties:e,arrayPath:Re,quarantineName:je,arrayName:qe,itemPath:Fe}),Ee({properties:e,arrayPath:De,quarantineName:je,arrayName:Ie,itemPath:Fe})},quarantineAlternative:function(e){ke({properties:e,arrayPath:Le,quarantineName:je,arrayName:Pe,itemPath:Fe}),ke({properties:e,arrayPath:_e,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ee({properties:e,arrayPath:Le,quarantineName:je,arrayName:Pe,itemPath:Fe}),Ee({properties:e,arrayPath:_e,quarantineName:je,arrayName:ze,itemPath:Fe})}},Be={hypercube:U,colorChart:ye,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:ke,unquarantineArrayProp:Ee,conditionalColoring:Ae,conditionalShow:$e}})(),r.default})()}(Aie);var Rie=r(Aie.exports);const qie={version:"1.32.2",qHyperCubeDef:{qAlwaysFullyExpanded:!0,qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},showTitles:!0,subtitle:"",title:"",footnote:"",barGrouping:{grouping:"grouped"},orientation:"vertical",scrollStartPos:0,nullMode:"gap",dataPoint:{show:!1,showLineLabels:!1,showBarLabels:!1},color:{auto:!0,mode:"primary",useBaseColors:"off",paletteColor:{index:6},useDimColVal:!0,useMeasureGradient:!0,persistent:!1,expressionIsColor:!0,expressionLabel:"",measureScheme:"sg",reverseScheme:!1,dimensionScheme:"12",autoMinMax:!0,measureMin:0,measureMax:10},legend:{dock:"auto",show:!0,showTitle:!0},components:[],dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},measureAxes:[{show:"all",dock:"near",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10},{show:"all",dock:"far",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10}],refLine:{refLines:[],refLines2:[],dimRefLines:[]},preferContinuousAxis:!0,showMiniChartForContinuousAxis:!0,tooltip:{auto:!0,hideBasic:!1,title:"",description:"",chart:void 0,imageComponents:void 0}};var Die=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let i;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)i=Ip(n[e].qDef.series),i===gd.BAR?r[0]=1:i===gd.LINE?r[1]=1:r[2]=1;const o=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(o)},Iie=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===gd.LINE?"Visualizations.Descriptions.HeightLine":e===gd.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function Lie(e){var t,n;const r=e.qHyperCubeDef.qMeasures,i=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===i&&1===r.length&&Ip(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===gd.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function Pie(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:Die(t),added(e,t){qd.addCallbackCustomTooltip(t)},moved(e,t){qd.moveCallbackCustomTooltip(t,e)},removed(e,t){qd.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){qd.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:Iie(t),added({qDef:e},t){var n;Lie(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:gd.LINE,axis:yd.SECONDARY}:e.series={type:gd.BAR,axis:yd.PRIMARY})},moved(e,t){Lie(t)}}}}function _ie(e){const t=Pie(e);return{properties:qie,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=Rie.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),o="linechart"===e.properties.visualization,a=[];i.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:o?"line":"bar",axis:0,marker:"circle",markerFill:!0}),a.indexOf(e.qDef.series.axis)<0&&a.push(e.qDef.series.axis)}));const s=a.sort().shift();return i.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&p(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>Rie.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}const zie=e=>{const t=nl(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=vd})=>Ip(e)===gd.LINE));return O.continuous(e,(()=>t&&x.isTime(!0,e)))},Fie=(e,t,n)=>{let r;const i=n||0;var o,a;"function"==typeof(null==e?void 0:e.getMeasureLayouts)?r=e.getMeasureLayouts():r=null!==(o=null===(a=t.layout)||void 0===a||null===(a=a.qHyperCube)||void 0===a?void 0:a.qMeasureInfo)&&void 0!==o?o:[];return r.filter((e=>{const{series:t}=e||{};return 0===i?$ee(t,!0):!$ee(t,!0)}))},jie=(e,t)=>{const n=Fie(e,t,0).filter((e=>e.series.type===gd.BAR)),r=Fie(e,t,1).filter((e=>e.series.type===gd.BAR)),i="stacked"===nl(t.layout,"barGrouping.grouping");return!O.continuous(t.layout)&&i&&(n.length>1||r.length>1)},$ie=(e,t,n,r,i=void 0)=>{const o=`${t}.fontFamily`,a=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(o),defaultValue:()=>n.getDefaultValue(o)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(a),defaultValue:()=>null!=i?i:n.getDefaultValue(a)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function Bie(e,t,n){const r=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=na({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:t,translator:n,flags:e,config:{id:"comboChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2431_COMBOCHART_BG"),items:{barSection:{translation:"Visualizations.Descriptions.Bars",component:"accordion",items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",show:(e,t)=>!zie(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue:.7,schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.barlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"bar",items:{...$ie("bar.label.value","label.value",r,t,"12px"),contrastColor:{component:"checkbox",type:"boolean",ref:"bar.label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0}},lineSection:{translation:"Visualizations.Descriptions.Lines",component:"accordion",items:{dataPointSection:{translation:"LayerStyleEditor.style.dataPointSize",component:"panel-section",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{translation:"Line options",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"Thickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"Type",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"Curve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.linelabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"line",items:$ie("line.label.value","label.value",r,t)}}}:void 0}},markerSection:{translation:"Visualizations.Descriptions.Markers",component:"accordion",items:{labelValueSection:{translation:"properties.dataPoints.markerlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"marker",items:$ie("marker.label.value","label.value",r,t)}}}}},axisTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:$ie("axis.title","axis.title",r,t)}}}:void 0,axisLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:$ie("axis.label.name","axis.label.name",r,t)}}}:void 0,legendTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:$ie("legend.title","legend.title",r,t)}}}:void 0,legendLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:$ie("legend.label","legend.label",r,t)}}}:void 0}}}const Hie={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barsSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barsHeader:{component:"header",translation:"Visualizations.Descriptions.Bars"},outlineSection:{component:"items",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891"},width:"auto",component:"color-picker"}}}}},widthSection:{component:"items",show:(e,t)=>!zie(t.layout),items:{barWidth:{component:"items",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:.7}}}}}}}}},linesSection:{component:"items",items:{wrapperItem:{component:"items",items:{linesHeader:{component:"header",translation:"Visualizations.Descriptions.Lines"},dataPointSection:{component:"items",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"LayerStyleEditor.style.lineType",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}},optionsSection:{component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollStartPos:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1}}}}}}};function Vie(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function Uie(e){var t,n;return Vie(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.mode)&&void 0!==t?t:"primary")}function Wie(e){var t;return Vie(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function Yie(e){var t,n,r,i,o;if(null!=e&&null!==(t=e.color)&&void 0!==t&&t.auto||"byExpression"!==(null==e||null===(n=e.color)||void 0===n?void 0:n.mode))return[];const a=null==e||null===(r=e.color)||void 0===r?void 0:r.colorExpression,s=null!==(i=null==e||null===(o=e.color)||void 0===o?void 0:o.expressionLabel)&&void 0!==i?i:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function Gie(e){return Wie(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function Kie(e){var t,n;(null!==(t=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qMeasures)&&void 0!==t?t:[]).forEach(((t,n)=>function(e,t,n){e.qAttributeExpressions=0===t?[...Yie(n),...Gie(e)]:Gie(e)}(t,n,e)))}function Xie(e){var t;const n={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||zie(e)?"stacked":"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.bar",value:"bar"},{icon:"line_chart_line",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.line",value:"line"},{icon:"shapes",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.marker",value:"marker"}]},r={ref:"qDef.series.marker",type:"string",component:"dropdown",defaultValue:"circle",options:[{translation:"properties.marker.circle",value:"circle"},{translation:"properties.marker.rect",value:"rect"},{translation:"properties.marker.diamond",value:"diamond"},{translation:"properties.marker.triangle",value:"triangle"},{translation:"properties.marker.line",value:"line"}],show(e){var t;return Ip(null===(t=e.qDef)||void 0===t?void 0:t.series)===gd.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return Ip(null===(t=e.qDef)||void 0===t?void 0:t.series)===gd.MARKER&&!["line"].includes(e.qDef.series.marker)}},o={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>Vie(...e)},a=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme,s={ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=a.getDataColorSpecials(),n=null===(e=a.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,r=n.indexOf(t);return{index:-1===r?Math.min(6,n.length-1):r}},show:Uie},l={translation:"properties.measure.moreProperties",title:"properties.measure.moreProperties",subTitle:(e,t,n)=>{var r;return null===(r=n.measureTitle)||void 0===r?void 0:r.call(n)},component:"sub-panel",type:"items",items:{groups:{type:"items",component:"expandable-items",items:{presentation:{type:"items",translation:"properties.presentation",items:{seriesType:n,seriesAxis:{ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}]},seriesMarker:r,seriesMarkerFill:i}},color:{type:"items",translation:"properties.color",items:{customColor:{ref:"qDef.color.on",translation:"properties.colors",type:"boolean",component:"switch",defaultValue:!1,trueOption:{value:!1,translation:"Common.Auto"},falseOption:{value:!0,translation:"Common.Custom"}},colorMode:o,paletteColor:s,attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:Wie}}}}}}};return{items:{series:{type:"items",items:{supPanel:l}}}}}const Jie=!0;function Zie(e){return e.qHyperCube.qMeasureInfo.filter((e=>Ip(e.series)===gd.LINE)).length>0}function Qie(e,t){const n=e.qHyperCube.qMeasureInfo.filter((e=>Ip(e.series)===gd.BAR));return n.filter((e=>e.series.axis!==yd.SECONDARY)).length>t||n.filter((e=>e.series.axis===yd.SECONDARY)).length>t}function eoe(e){return e.qHyperCube.qMeasureInfo.filter((e=>Ip(e.series)===gd.MARKER)).length>0}const toe=(e,t,n,r)=>{const i="vertical"===e.layout.orientation||zie(e.layout)?"y":"x",o=Fie(e,t,r).map((e=>e.qFallbackTitle));let a;return a=o.length?n.get(`properties.${i}AxisWithInfo`,[o.join(",")]):n.get(`properties.${i}Axis`),a};function noe(e){var t,n,r;const{translator:i,flags:o,anything:a}=e,s=null==e||null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme,l=null==e||null===(n=e.anything)||void 0===n||null===(n=n.sense)||void 0===n||null===(r=n.isUnsupportedFeature)||void 0===r?void 0:r.call(n,"continuousData"),c={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>Kie(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>Vie(e)))}}},u=e=>e.qHyperCubeDef.qMeasures.some((e=>Vie(e))),d=(e,t)=>0!==e.filter((e=>e.series.axis===t)).length,f={items:{disclaimer:{show:(e,t)=>u(e),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;nl(t=e,"qDef.color.on",void 0)&&il(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!u(e)}}},h={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},barLabels:{component:"checkbox",ref:"dataPoint.showBarLabels",type:"boolean",translation:"Simple.Label.Bar",show:(e,t,n)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&Qie(n.layout,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t,n)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&Zie(n.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,i){i.dataPoint.showLineLabels=e,i.dataPoint.show=e}},reset(e){il(e,"dataPoint.show",!1),il(e,"dataPoint.showLineLabels",!1)}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",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)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t,n)=>i.get(Fie(t,n,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&Fie(e,t,0).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[0].show||"none"===r.measureAxes[0].show,set(e,t,n,r,i){i.measureAxes[0].show=e?"labels":"all"}}},secondaryMeasureTitle:{component:"checkbox",ref:"measureAxes.1.show",type:"string",translation:"Simple.Label.SecondaryMeasure.Hide",defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&Fie(e,t,1).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[1].show||"none"===r.measureAxes[1].show,set(e,t,n,r,i){i.measureAxes[1].show=e?"labels":"all"}}}}}}},p={uses:"settings",items:{simpleStyling:Hie,simpleLabels:h,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:Bie(o,s,i),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t,n)=>Qie(n.layout,1)&&!zie(n.layout)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>zie(n.layout),convertFunctions:(m="vertical",{get:(e,t,n)=>zie(n.layout)?m:e(t.type),set(e,t,n,r){t(n.type,zie(r.layout)?m:e,m)}})},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!zie(n.layout)},nullMode:{type:"string",component:"dropdown",ref:"nullMode",translation:"properties.nullMode",options:[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],defaultValue:"gap",show:(e,t,n)=>Zie(n.layout)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint",show:e=>Zie(e)},show:(e,t,n)=>Zie(n.layout),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},barLabels:{type:"items",snapshot:{tid:"property-barLabels",show:e=>Qie(e,0)},show:(e,t,n)=>Qie(n.layout,0),items:{showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t,n)=>Qie(n.layout,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showBarSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showBarLabels&&jie(t,n)},showTotalLabels:{ref:"dataPoint.showBarTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showBarLabels&&jie(t,n)}}},showMarkerLabels:{ref:"dataPoint.showMarkerLabels",type:"boolean",translation:"properties.dataPoints.markerlabelmode",component:"switch",snapshot:{tid:"property-markerLabels",show:e=>eoe(e)},show:(e,t,n)=>eoe(n.layout),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridLineAxis:{ref:"gridLine.axis",type:"integer",component:"dropdown",defaultValue:0,options(e,t,n){const r=[],i=n.layout.qHyperCube.qMeasureInfo,o=d(i,0),a=d(i,1);return o&&r.push({translation:"properties.axis.primary",value:0}),a&&r.push({translation:"properties.axis.secondary",value:1}),r},show:(e,t,n)=>e.gridLine&&!e.gridLine.auto&&0!==n.layout.qHyperCube.qMeasureInfo.length,convertFunctions:{get(e,t,n,r){var i;const o=null!==(i=r.gridLine.axis)&&void 0!==i?i:0,a=n.layout.qHyperCube.qMeasureInfo,s=d(a,0),l=d(a,1);return 0===o&&!s&&l?(il(r,"gridLine.axis",1),1):1===o&&s&&!l?(il(r,"gridLine.axis",0),0):o}}},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:c,simpleColors:f,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||zie(t.layout)?"x":"y",r=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,t).map((e=>e.qFallbackTitle||"")).join(", ");let o;return o=r?i.get(`properties.${n}AxisWithInfo`,[r]):i.get(`properties.${n}Axis`),o},items:{othersGroup:{items:{dock:{options(e,t){let n="Common.Bottom",r="Common.Top";return"vertical"===t.layout.orientation||zie(t.layout)||(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!zie(n.layout),items:{axisDisplayMode:{type:"string",translation:"properties.axis.displaymode",ref:"dimensionAxis.axisDisplayMode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{type:"integer",translation:"properties.axis.maxvisiblevalues",ref:"dimensionAxis.maxVisibleItems",expression:"optional",defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode,invalid(e){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;return r<0||r>1e4/(t.length+n.length)},globalChange(e){if("custom"===e.dimensionAxis.axisDisplayMode){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;r<1?e.dimensionAxis.maxVisibleItems=10:r>1e4/(t.length+n.length)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(t.length+n.length))))}}},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint.combochart",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}}},continuousGroup:{show:!l}},measureAxis:{uses:"axis.measureAxis",label:(e,t,n)=>toe(t,n,i,0),show:(e,t,n)=>Fie(t,n,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>toe(t,n,i,0),show:(e,t,n)=>Fie(t,n,0).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&$ee(null==e?void 0:e.series,Jie)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t,n)=>"none"!==e.measureAxes[0].show&&Fie(t,n,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||zie(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.0.spacing",show:(e,t,n)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&Fie(t,n,0).length>0}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t,n)=>Fie(t,n,0).length>0,readOnly:e=>!(e.measureAxes[0].autoMinMax||"min"===e.measureAxes[0].minMax&&0===e.measureAxes[0].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(il(i,"measureAxes.0.autoMinMax",!1),il(i,"measureAxes.0.minMax","min"),il(i,"measureAxes.0.min",0)):il(i,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t,n)=>toe(t,n,i,1),show:(e,t,n)=>Fie(t,n,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>toe(t,n,i,1),show:(e,t,n)=>Fie(t,n,1).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!$ee(null==e?void 0:e.series,Jie)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t,n)=>"none"!==e.measureAxes[1].show&&Fie(t,n,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||zie(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.1.spacing",show:(e,t,n)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&Fie(t,n,1).length>0}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t,n)=>Fie(t,n,1).length>0,readOnly:e=>!(e.measureAxes[1].autoMinMax||"min"===e.measureAxes[1].minMax&&0===e.measureAxes[1].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(il(i,"measureAxes.1.autoMinMax",!1),il(i,"measureAxes.1.minMax","min"),il(i,"measureAxes.1.min",0)):il(i,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var m;o.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(p.items.dimensionAxis.items.othersGroup.items.label={options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]});const g={uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,n){var r,i;if(null!=a&&null!==(r=a.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"includeZeroValues"))return!1;return!zie(n.layout)}}}},measures:Xie(e)}},y={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},primaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines",translation:"properties.primaryMeasureAxisReferenceLines",title:{translation:"properties.primaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>$ee(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,Jie)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!$ee(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,Jie)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:g,sorting:{uses:"sortingWithDisclaimer"},addons:y,settings:p}}}function roe(e){return e.qHyperCubeDef.qMeasures.filter((e=>Ip(e.qDef.series)===gd.LINE)).length>0}function ioe(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer"},presentation:{uses:"presentation",type:"items",translation:"properties.presentation",grouped:!0,show:(e,t)=>roe(e)||!zie(t),items:{grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){var n;return function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>Ip(e.qDef.series)===gd.BAR));return t?n.filter((e=>e.qDef.series.axis===yd.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===yd.SECONDARY)).length>1:n.length>1}(e,!hre(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!zie(t)}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!zie(t)},nullMode:{type:"string",component:"radio-list",ref:"nullMode",translation:"properties.nullMode",options:()=>[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],show:e=>roe(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>roe(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>Vie(e)))}}}}}}const ooe={bar:{axis:0,icon:"bar-chart",tid:"as-bar",translation:"contextMenu.asBar"},line:{axis:1,icon:"line-chart",tid:"as-line",translation:"contextMenu.asLine"},marker:{axis:1,icon:"shapes",tid:"as-marker",translation:"contextMenu.asMarker"}};function aoe(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=ooe[i];t.addItem({icon:a,tid:s,translation:l,async select(){let t;t="measure"===e.type?await r.addLibraryMeasure(e.id):await r.addExpressionMeasure(e.name,""),t.qDef.series.type=i,t.qDef.series.axis=o,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path",`data.${t.qDef.cId}`)}})}function soe(e,t,n,r,i){!function(e,t,n){const{item:r}=e,i=["contextMenu.add",r.name];if(n.canAddMeasure()){const o=e.menu.addItem({translation:i,tid:"add-as"});aoe(r,o,t,n,"bar"),aoe(r,o,t,n,"line"),aoe(r,o,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,i),e.ColorBy(n,t,i),r()}function loe(e){const t={},{tooltip:n}=e;if(n){var r;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(r=r.object)||void 0===r?void 0:r.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const coe=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function uoe(e){return{definition:noe(e),softDefinition:ioe(),support:{snapshot:coe,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:soe,extendMetrics:loe,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=Rie.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Pie(e),defaultPropertyValues:a,hypercubePath:i,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,i=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),i.indexOf(e.qDef.series.axis)<0&&i.push(e.qDef.series.axis)}));const o=i.sort().shift();e.qProperty.measureAxes[o]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&p(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),Kie(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return Rie.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(ze),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(ze)}(e),function(e){return hre(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=vd),void 0===t.series.type&&(t.series.type=vd.type),void 0===t.series.axis&&(t.series.axis=t.series.type===gd.BAR?yd.PRIMARY:yd.SECONDARY),t.series.type===gd.BAR&&t.series.axis===yd.SECONDARY&&(t.series.axis=yd.PRIMARY)})),e.version=fre),e}(e))}}}return function(t){var r;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(n).forEach((t=>{e.add(n[t])}))}}(t.translator);const{flags:i}=t,o=null===(r=t.anything)||void 0===r||null===(r=r.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=qee();return{qae:_ie(t),ext:uoe(t),component(){const t=function(){const[t,n]=e.useState();return e.useEffect((()=>n(ol())),[]),t}(),n=kie(),r=function(){const t=e.useOptions(),n=e.useTranslator(),r=e.useEmbed(),i=e.useTheme(),[o,a]=e.useState(),s=e.useDeviceType();return e.useEffect((()=>{a({options:{direction:"ltr",...t},translator:n,theme:i,embed:r,deviceType:s})}),[t.direction,t.freeResize,n.language(),i.name(),s]),o}(),s=Oie(),l=function({picasso:t,environment:n}){const r=e.useElement(),[i,o]=e.useState();return e.useEffect((()=>{if(!n)return;r.style.overflow="hidden";const e=t({renderer:{prio:[n.options.renderer||"canvas"]}}).chart({element:r,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[n]),i}({picasso:a,environment:r}),c=function({chart:t,actions:n}){const r=e.useSelections(),i=e.useStaleLayout(),[o,a]=e.useState();return e.useEffect((()=>{if(null==t||!t.update||!t.scale)return null;const e=t.scale(md.SCALE.MAJOR),o=yu({chart:t,actions:n,selections:r,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:e,selectionActions:{reset(){t.brushSelectionIncludeMax=void 0,n.lasso.active()&&n.lasso.action(!1)},clear:Nie},selectionEvents:{start:Tie}}});o.setLayout(i);const{destroy:s}=o;return a(o),()=>{s()}}),[r,null==t?void 0:t.update,null==t?void 0:t.scale]),e.useEffect((()=>{null!=o&&o.setLayout&&i&&o.setLayout(i)}),[i]),o}({chart:l,actions:s}),u=Mie({picasso:a,chart:l,environment:r,flags:i,viewState:n,viewCache:t,actions:s,selectionService:c});!function({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l}){const{event:{onZoomIntercept:c,onZoomChange:u}}=wg,[,d]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&a&&s))return;const{layoutService:e,colorService:d,continuousModel:f,discreteModel:h,refLineModel:p,seriesModel:m,animationsModel:g}=r,{miniComponentKeys:y}=m.meta,{options:v}=i,{viewState:b={}}=v,{legendScrollOffset:x,scrollOffset:S}=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):b;a.preventSet("scrollOffset",S),a.preventSet("legendScrollOffset",x),a.preventSet("title",e.getLayoutValue("title"));const w=()=>{p&&p.update(),g.meta.isPartialUpdating=!0,n.update({partialData:!0,excludeFromUpdate:[...jg,...y]}),g.meta.isPartialUpdating=!1};function M(e=!1){const c=Fg({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l}),u=e&&[$g({models:r}),...Bg({models:r}),...d.getData()];e?(n.layoutComponents({settings:c,data:u}),g.meta.hasSlicedHats=c.components.filter((e=>"box-sliced-hat"===e.type)).length>0):n.update({settings:c,data:u})}a.onChanged("scrollOffset",w),e.meta.isContinuous&&(a.onChanged("zoom",u({layoutService:e,continuousDataModel:f},w)),a.intercept("zoom",c({viewCache:s})));const k=e.getDataPages();e.setDataPages([]),M(!0),e.setDataPages(k),e.meta.isContinuous||await h.command.initialize(),M(!1),od.cacheProperties({viewCache:s,layout:e.getLayout()})}),[null==n?void 0:n.update,r,i]);if(d)throw d}({picasso:a,chart:l,models:u,environment:r,flags:i,viewState:n,viewCache:t,actions:s}),(({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l,isUnsupportedFeature:c})=>{const{width:u,height:d}=e.useRect(),[,f]=e.usePromise((async()=>{if(!(null!=n&&n.update&&r&&i&&a))return;const{colorService:e,discreteModel:f,dockService:h,layoutService:p,refLineModel:m,animationsModel:g}=r;function y(){n.update({settings:Fg({picasso:t,chart:n,models:r,environment:i,flags:o,viewState:a,viewCache:s,actions:l,isUnsupportedFeature:c})})}h.update({width:u,height:d}),e.custom.updateLegend(),m.update({picasso:t,chart:n,models:r,environment:i,viewState:a,viewCache:s,actions:l});const v=p.getDataPages();g.meta.isSizeChanging=!0,p.setDataPages([]),y(),p.setDataPages(v),p.meta.isContinuous||await f.command.initialize(),y()}),[u,d]);if(f)throw f})({picasso:a,chart:l,models:u,environment:r,flags:i,viewState:n,viewCache:t,actions:s,isUnsupportedFeature:o}),(({models:t,chart:n,viewState:r})=>{e.onTakeSnapshot((e=>{if(!t)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:c}=t,{width:u,height:d}=o.meta.chart.size;return e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:u,h:d}},i.meta.isSnapshot?Promise.resolve():(e.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:N(n,md.COMPONENT.LEGEND_CATEGORICAL)},i.meta.isDiscrete?(s.command.setSnapshotData(e),c.command.setSnapshotData(e)):l.setSnapshotData(e),a.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{})))})),e.useImperativeHandle((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:N(n,md.COMPONENT.LEGEND_CATEGORICAL)}}})),[r,n])})({models:u,chart:l,viewState:n})}}}}));