@nebula.js/sn-combo-chart 1.32.2 → 1.32.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-combo-chart.js +10 -10
- package/dist/sn-combo-chart.systemjs.js +6 -6
- package/package.json +1 -1
- package/sn-combo-chart-ext/dist/sn-combo-chart.js +10 -10
- package/sn-combo-chart-ext/sn-combo-chart.qext +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-combo-chart v1.32.
|
|
2
|
+
* @nebula.js/sn-combo-chart v1.32.3
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["@nebula.js/stardust","qlik-chart-modules","hammerjs","picasso.js","picasso-plugin-q","react","react-dom","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,m,p,f,h,g,y,v,b,x,S,E,M,C,w,T,O,k,R,A,N,L,I,P,D,q,z,$,j,F,_,B,H,V,U,Y,W,G,X,K,J,Z,Q;return{setters:[function(e){t=e.useElement,n=e.useState,r=e.useEffect,o=e.useRect,i=e.usePromise,a=e.useModel,s=e.useStaleLayout,l=e.useApp,c=e.useAppLayout,u=e.usePlugins,d=e.useEmbed,m=e.useOptions,p=e.useTranslator,f=e.useTheme,h=e.useDeviceType,g=e.useConstraints,y=e.useLayout,v=e.useAction,b=e.useSelections,x=e.onTakeSnapshot,S=e.useImperativeHandle},function(e){E=e.getValue,M=e.setValue,C=e.cache,w=e.debouncer,T=e.throttler,O=e.colorService,k=e.disclaimerService,R=e.tooltipService,A=e.layoutService,N=e.alternativeService,L=e.dockService,I=e.themeService,P=e.pluginService,D=e.storage,q=e.selectionService,z=e.fontResolver},function(e){$=e.default},function(e){j=e.default},function(e){F=e.default},function(e){_=e.default,B=e,H=e.isValidElement,V=e.cloneElement,U=e.Children,Y=e.forwardRef,W=e.useContext,G=e.useState,X=e.useEffect,K=e.useRef},function(e){J=e,Z=e.default},function(e){Q=e.default}],execute:function(){e("default",(function(e){var o;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(ee).forEach((t=>{e.add(ee[t])}))}}(e.translator);const{flags:a}=e,s=null===(o=e.anything)||void 0===o||null===(o=o.sense)||void 0===o?void 0:o.isUnsupportedFeature,l=MN();return{qae:TD(e),ext:tq(e),component(){const e=function(){const[e,t]=n();return r((()=>t(C())),[]),e}(),o=function(){const[e,t]=n();return r((()=>{t(D({viewRange:[0,1],scrollOffset:void 0}))}),[]),e}(),c=function(){const e=m(),t=p(),o=d(),i=f(),[a,s]=n(),l=h();return r((()=>{s({options:{direction:"ltr",...e},translator:t,theme:i,embed:o,deviceType:l})}),[e.direction,e.freeResize,t.language(),i.name(),l]),a}(),u=function(){const e=g(),[t,o]=n(!1),[i,a]=n(!1),[s,l]=n(!1),c=function(){const e=g(),[t,o]=n(!1),[i,a]=n({}),[s,l]=n();return r((()=>()=>{a({})}),[]),r((()=>{e&&o(!e.select&&!e.active)}),[e]),{enabled:()=>t,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 s},set brushSelectionIncludeMax(e){l(e)},getBrushOptions:void 0}}(),u=function(){var e;const t=g(),[o,i]=n(!1),[a,s]=n(!1),l=y(),c=p(),u=!!l.qSelectionInfo.qInSelections,d=!(null===(e=l.qHyperCube)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e||null===(e=e[0])||void 0===e||!e.qIsOneAndOnlyOne);r((()=>{t&&i(!t.select&&!t.active)}),[t]);const m=e=>{s("boolean"==typeof e?e:!a)};return v((()=>({key:"lasso",label:c.get(a?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:gD,hidden:!o||!u||d,active:a,action:m})),[u,d,a,o,c.language()]),{action:m,enabled:()=>o,active:()=>a}}();let d=yD;r((()=>{e&&(o(!e.active),a(!e.active),l(!e.passive))}),[e]);const[m]=n({});return m.scroll={enabled:()=>t&&d.query.getCanScroll(),attachDiscreteModel:e=>{d=e||yD}},m.interact={enabled:()=>i},m.tooltip={enabled:()=>s},m.lasso=u,m.select=c,m}(),b=function({picasso:e,environment:o}){const i=t(),[a,s]=n();return r((()=>{if(!o)return;i.style.overflow="hidden";const t=e({renderer:{prio:[o.options.renderer||"canvas"]}}).chart({element:i,data:[],settings:{}});s(t);const{destroy:n}=t;return()=>{n()}}),[o]),a}({picasso:l,environment:c}),x=xD({chart:b,actions:u}),S=hD({picasso:l,chart:b,environment:c,flags:a,viewState:o,viewCache:e,actions:u,selectionService:x});!function({picasso:e,chart:t,models:n,environment:r,flags:o,viewState:a,viewCache:s,actions:l}){const{event:{onZoomIntercept:c,onZoomChange:u}}=Jd,[,d]=i((async()=>{if(!(null!=t&&t.update&&n&&r&&a&&s))return;const{layoutService:i,colorService:d,continuousModel:m,discreteModel:p,refLineModel:f,seriesModel:h,animationsModel:g}=n,{miniComponentKeys:y}=h.meta,{options:v}=r,{viewState:b={}}=v,{legendScrollOffset:x,scrollOffset:S}=i.meta.isSnapshot?i.getLayoutValue("snapshotData.content.chartData",{}):b;a.preventSet("scrollOffset",S),a.preventSet("legendScrollOffset",x),a.preventSet("title",i.getLayoutValue("title"));const E=()=>{f&&f.update(),g.meta.isPartialUpdating=!0,t.update({partialData:!0,excludeFromUpdate:[...bm,...y]}),g.meta.isPartialUpdating=!1};function M(i=!1){const c=ym({picasso:e,chart:t,models:n,environment:r,flags:o,viewState:a,viewCache:s,actions:l}),u=i&&[xm({models:n}),...Sm({models:n}),...d.getData()];i?(t.layoutComponents({settings:c,data:u}),g.meta.hasSlicedHats=c.components.filter((e=>"box-sliced-hat"===e.type)).length>0):t.update({settings:c,data:u})}a.onChanged("scrollOffset",E),i.meta.isContinuous&&(a.onChanged("zoom",u({layoutService:i,continuousDataModel:m},E)),a.intercept("zoom",c({viewCache:s})));const C=i.getDataPages();i.setDataPages([]),M(!0),i.setDataPages(C),i.meta.isContinuous||await p.command.initialize(),M(!1),Pa.cacheProperties({viewCache:s,layout:i.getLayout()})}),[null==t?void 0:t.update,n,r]);if(d)throw d}({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:o,viewCache:e,actions:u}),vm({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:o,viewCache:e,actions:u,isUnsupportedFeature:s}),OD({models:S,chart:b,viewState:o})}}}));var ee={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 te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ne(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 re=Object.prototype.hasOwnProperty,oe=Object.prototype.toString,ie=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,se=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===oe.call(e)},le=function(e){if(!e||"[object Object]"!==oe.call(e))return!1;var t,n=re.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&re.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||re.call(e,t)},ce=function(e,t){ie&&"__proto__"===t.name?ie(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ue=function(e,t){if("__proto__"===t){if(!re.call(e,t))return;if(ae)return ae(e,t).value}return e[t]},de=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ue(s,n),s!==(o=ue(t,n))&&(u&&o&&(le(o)||(i=se(o)))?(i?(i=!1,a=r&&se(r)?r:[]):a=r&&le(r)?r:{},ce(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&ce(s,{name:n,newValue:o}));return s},me=te(de);const pe=[["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}]],fe={};pe.forEach((([e,{width:t,height:n}])=>{fe[e]={width:t,height:n}}));const he={getLayoutModes:()=>fe,getLayoutMode(e,t){let n;for(n=0;n<pe.length;++n)if(e>=pe[n][1].width&&t>=pe[n][1].height)return pe[n][0];return"SPARK"}};const ge=["$date","$timestamp","$time"],ye=["D","TS","T"],ve={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>ge.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&ye.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(ve.hasTimeTag(t)&&ve.hasUnknownFormat(t)||ve.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&ve.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)&&ve.canBeContinuousDimension(r[0])},maxNumberOfLines:12},be=/^[A-Z][A-z0-9_]*$/i,xe={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,"")}},Se={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},getValue:(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i},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||be.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>xe.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},Ee=e=>Se.getValue(e,"qHyperCube.qDimensionInfo",[]),Me=e=>Se.getValue(e,"qHyperCube.qMeasureInfo",[]),Ce=e=>Se.getValue(e,"barGrouping.grouping"),we={continuous:(e,t=!1)=>!!ve.canBeContinuous(e)&&(Se.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!Ee(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===Ce(e)&&(Ee(e).length>1||Me(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&Ee(e).length>1&&1===Me(e).length},groupedByMeasure(e){return this.grouped(e)&&1===Ee(e).length&&Me(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==Ce(e)&&"butterfly"!==Ce(e)||this.continuous(e))&&(Ee(e).length>1||Me(e).length>1)},stackedByDimension(e){return this.stacked(e)&&Ee(e).length>1&&1===Me(e).length},stackedByMeasure(e){return this.stacked(e)&&1===Ee(e).length&&Me(e).length>1},simple:e=>0===Ee(e).length||1===Ee(e).length&&1===Me(e).length,snapshot:e=>!!Se.getValue(e,"snapshotData")};function Te(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Oe=e=>{throw e.isHandled=!0,e};const ke={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?ke.getVerticalDock(t):n?ke.getOppositeDock(ke.getHorizontalDock(t)):ke.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},Re=166/26,Ae=12/11,Ne={stringWidthOverMWidth:e=>(12*Math.min(e,3)+Math.max(e-3,0)*Re)/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 o=t+n+r;return{latin:e.length-o,cjk:o}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let o;void 0===t?e.forEach((e=>{o=Ne.getCharacterRatios(e[n]),r.latin+=o.latin,r.cjk+=o.cjk})):e.forEach((e=>{o=Ne.getCharacterRatios(e[t][n]),r.latin+=o.latin,r.cjk+=o.cjk}));const i=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/i,r.cjkRatio=r.cjk/i,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const o=Ne.getTotalCharacterRatios(t,n,r),i=o.latinRatio*e,a=o.cjkRatio*e;return Math.ceil(Ne.stringWidthOverMWidth(i)+a*Ae)}},Le=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Ie=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Pe=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),De={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Le.test(e),isRtlChar:e=>Ie.test(e)||Pe.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],De.isLtrChar(r))return"ltr";if(De.isRtlChar(r))return"rtl"}return"ltr"}},qe={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?qe.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=De.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=De.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:De.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=De.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=De.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,qe.getColorSymbol(e,t)]:[qe.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=De.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=De.detectTextDirection(e.value);let l;return l=o?r?[e.value,qe.getColorSymbol(t,n)]:[qe.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function ze(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $e(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function je(){}var Fe=.7,_e=1/Fe,Be="\\s*([+-]?\\d+)\\s*",He="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ue=/^#([0-9a-f]{3,8})$/,Ye=new RegExp(`^rgb\\(${Be},${Be},${Be}\\)$`),We=new RegExp(`^rgb\\(${Ve},${Ve},${Ve}\\)$`),Ge=new RegExp(`^rgba\\(${Be},${Be},${Be},${He}\\)$`),Xe=new RegExp(`^rgba\\(${Ve},${Ve},${Ve},${He}\\)$`),Ke=new RegExp(`^hsl\\(${He},${Ve},${Ve}\\)$`),Je=new RegExp(`^hsla\\(${He},${Ve},${Ve},${He}\\)$`),Ze={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Qe(){return this.rgb().formatHex()}function et(){return this.rgb().formatRgb()}function tt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?nt(t):3===n?new at(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?rt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?rt(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=Ye.exec(e))?new at(t[1],t[2],t[3],1):(t=We.exec(e))?new at(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ge.exec(e))?rt(t[1],t[2],t[3],t[4]):(t=Xe.exec(e))?rt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ke.exec(e))?mt(t[1],t[2]/100,t[3]/100,1):(t=Je.exec(e))?mt(t[1],t[2]/100,t[3]/100,t[4]):Ze.hasOwnProperty(e)?nt(Ze[e]):"transparent"===e?new at(NaN,NaN,NaN,0):null}function nt(e){return new at(e>>16&255,e>>8&255,255&e,1)}function rt(e,t,n,r){return r<=0&&(e=t=n=NaN),new at(e,t,n,r)}function ot(e){return e instanceof je||(e=tt(e)),e?new at((e=e.rgb()).r,e.g,e.b,e.opacity):new at}function it(e,t,n,r){return 1===arguments.length?ot(e):new at(e,t,n,null==r?1:r)}function at(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function st(){return`#${dt(this.r)}${dt(this.g)}${dt(this.b)}`}function lt(){const e=ct(this.opacity);return`${1===e?"rgb(":"rgba("}${ut(this.r)}, ${ut(this.g)}, ${ut(this.b)}${1===e?")":`, ${e})`}`}function ct(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ut(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dt(e){return((e=ut(e))<16?"0":"")+e.toString(16)}function mt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ft(e,t,n,r)}function pt(e){if(e instanceof ft)return new ft(e.h,e.s,e.l,e.opacity);if(e instanceof je||(e=tt(e)),!e)return new ft;if(e instanceof ft)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new ft(a,s,l,e.opacity)}function ft(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ht(e){return(e=(e||0)%360)<0?e+360:e}function gt(e){return Math.max(0,Math.min(1,e||0))}function yt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ze(je,tt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qe,formatHex:Qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return pt(this).formatHsl()},formatRgb:et,toString:et}),ze(at,it,$e(je,{brighter(e){return e=null==e?_e:Math.pow(_e,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Fe:Math.pow(Fe,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new at(ut(this.r),ut(this.g),ut(this.b),ct(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:st,formatHex:st,formatHex8:function(){return`#${dt(this.r)}${dt(this.g)}${dt(this.b)}${dt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lt,toString:lt})),ze(ft,(function(e,t,n,r){return 1===arguments.length?pt(e):new ft(e,t,n,null==r?1:r)}),$e(je,{brighter(e){return e=null==e?_e:Math.pow(_e,e),new ft(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Fe:Math.pow(Fe,e),new ft(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new at(yt(e>=240?e-240:e+120,o,r),yt(e,o,r),yt(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ft(ht(this.h),gt(this.s),gt(this.l),ct(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=ct(this.opacity);return`${1===e?"hsl(":"hsla("}${ht(this.h)}, ${100*gt(this.s)}%, ${100*gt(this.l)}%${1===e?")":`, ${e})`}`}}));const vt=Math.PI/180,bt=180/Math.PI,xt=.96422,St=.82521,Et=4/29,Mt=6/29,Ct=3*Mt*Mt,wt=Mt*Mt*Mt;function Tt(e){if(e instanceof Ot)return new Ot(e.l,e.a,e.b,e.opacity);if(e instanceof It)return Pt(e);e instanceof at||(e=ot(e));var t,n,r=Nt(e.r),o=Nt(e.g),i=Nt(e.b),a=kt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=kt((.4360747*r+.3850649*o+.1430804*i)/xt),n=kt((.0139322*r+.0971045*o+.7141733*i)/St)),new Ot(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ot(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function kt(e){return e>wt?Math.pow(e,1/3):e/Ct+Et}function Rt(e){return e>Mt?e*e*e:Ct*(e-Et)}function At(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Nt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Lt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof It)return new It(e.h,e.c,e.l,e.opacity);if(e instanceof Ot||(e=Tt(e)),0===e.a&&0===e.b)return new It(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*bt;return new It(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new It(e,t,n,null==r?1:r)}function It(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Pt(e){if(isNaN(e.h))return new Ot(e.l,0,0,e.opacity);var t=e.h*vt;return new Ot(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ze(Ot,(function(e,t,n,r){return 1===arguments.length?Tt(e):new Ot(e,t,n,null==r?1:r)}),$e(je,{brighter(e){return new Ot(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ot(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 at(At(3.1338561*(t=xt*Rt(t))-1.6168667*(e=1*Rt(e))-.4906146*(n=St*Rt(n))),At(-.9787684*t+1.9161415*e+.033454*n),At(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ze(It,Lt,$e(je,{brighter(e){return new It(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new It(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Pt(this).rgb()}}));var Dt={isDark:function(e){return Lt(e).l<70}};function qt(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function zt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function $t(e){return 1===e.length&&(e=function(e){return function(t,n){return zt(e(t),n)}}(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}var jt=$t(zt).right,Ft=Math.sqrt(50),_t=Math.sqrt(10),Bt=Math.sqrt(2);function Ht(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=Ft?10:i>=_t?5:i>=Bt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Ft?10:i>=_t?5:i>=Bt?2:1)}function Vt(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Ft?o*=10:i>=_t?o*=5:i>=Bt&&(o*=2),t<e?-o:o}function Ut(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Yt="$";function Wt(){}function Gt(e,t){var n=new Wt;if(e instanceof Wt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Xt(){}Wt.prototype=Gt.prototype={constructor:Wt,has:function(e){return Yt+e in this},get:function(e){return this[Yt+e]},set:function(e,t){return this[Yt+e]=t,this},remove:function(e){var t=Yt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Yt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Yt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Yt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Yt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Yt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Yt)return!1;return!0},each:function(e){for(var t in this)t[0]===Yt&&e(this[t],t.slice(1),this)}};var Kt=Gt.prototype;Xt.prototype={constructor:Xt,has:Kt.has,add:function(e){return this[Yt+(e+="")]=e,this},remove:Kt.remove,clear:Kt.clear,values:Kt.keys,size:Kt.size,empty:Kt.empty,each:Kt.each};var Jt=Array.prototype,Zt=Jt.map,Qt=Jt.slice;function en(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function tn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function nn(){}var rn=.7,on=1/rn,an="\\s*([+-]?\\d+)\\s*",sn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ln="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cn=/^#([0-9a-f]{3,8})$/,un=new RegExp("^rgb\\("+[an,an,an]+"\\)$"),dn=new RegExp("^rgb\\("+[ln,ln,ln]+"\\)$"),mn=new RegExp("^rgba\\("+[an,an,an,sn]+"\\)$"),pn=new RegExp("^rgba\\("+[ln,ln,ln,sn]+"\\)$"),fn=new RegExp("^hsl\\("+[sn,ln,ln]+"\\)$"),hn=new RegExp("^hsla\\("+[sn,ln,ln,sn]+"\\)$"),gn={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 yn(){return this.rgb().formatHex()}function vn(){return this.rgb().formatRgb()}function bn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xn(t):3===n?new Mn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Sn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Sn(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=un.exec(e))?new Mn(t[1],t[2],t[3],1):(t=dn.exec(e))?new Mn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=mn.exec(e))?Sn(t[1],t[2],t[3],t[4]):(t=pn.exec(e))?Sn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fn.exec(e))?On(t[1],t[2]/100,t[3]/100,1):(t=hn.exec(e))?On(t[1],t[2]/100,t[3]/100,t[4]):gn.hasOwnProperty(e)?xn(gn[e]):"transparent"===e?new Mn(NaN,NaN,NaN,0):null}function xn(e){return new Mn(e>>16&255,e>>8&255,255&e,1)}function Sn(e,t,n,r){return r<=0&&(e=t=n=NaN),new Mn(e,t,n,r)}function En(e,t,n,r){return 1===arguments.length?((o=e)instanceof nn||(o=bn(o)),o?new Mn((o=o.rgb()).r,o.g,o.b,o.opacity):new Mn):new Mn(e,t,n,null==r?1:r);var o}function Mn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Cn(){return"#"+Tn(this.r)+Tn(this.g)+Tn(this.b)}function wn(){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 Tn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function On(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rn(e,t,n,r)}function kn(e){if(e instanceof Rn)return new Rn(e.h,e.s,e.l,e.opacity);if(e instanceof nn||(e=bn(e)),!e)return new Rn;if(e instanceof Rn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Rn(a,s,l,e.opacity)}function Rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function An(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 Nn(e){return function(){return e}}function Ln(e){return 1==(e=+e)?In: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):Nn(isNaN(t)?n:t)}}function In(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Nn(isNaN(e)?t:e)}en(nn,bn,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:yn,formatHex:yn,formatHsl:function(){return kn(this).formatHsl()},formatRgb:vn,toString:vn}),en(Mn,En,tn(nn,{brighter:function(e){return e=null==e?on:Math.pow(on,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?rn:Math.pow(rn,e),new Mn(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:Cn,formatHex:Cn,formatRgb:wn,toString:wn})),en(Rn,(function(e,t,n,r){return 1===arguments.length?kn(e):new Rn(e,t,n,null==r?1:r)}),tn(nn,{brighter:function(e){return e=null==e?on:Math.pow(on,e),new Rn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?rn:Math.pow(rn,e),new Rn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Mn(An(e>=240?e-240:e+120,o,r),An(e,o,r),An(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},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 Pn=function e(t){var n=Ln(t);function r(e,t){var r=n((e=En(e)).r,(t=En(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=In(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Dn(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function qn(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Hn(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function zn(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function $n(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function jn(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Hn(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var Fn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_n=new RegExp(Fn.source,"g");function Bn(e,t){var n,r,o,i=Fn.lastIndex=_n.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Fn.exec(e))&&(r=_n.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:$n(n,r)})),i=_n.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),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 Hn(e,t){var n,r=typeof t;return null==t||"boolean"===r?Nn(t):("number"===r?$n:"string"===r?(n=bn(t))?(t=n,Pn):Bn:t instanceof bn?Pn:t instanceof Date?zn:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Dn:Array.isArray(t)?qn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?jn:$n)(e,t)}function Vn(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Un(e){return+e}var Yn=[0,1];function Wn(e){return e}function Gn(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Xn(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 Kn(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Gn(o,r),i=n(a,i)):(r=Gn(r,o),i=n(i,a)),function(e){return i(r(e))}}function Jn(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=Gn(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=jt(e,t,1,r)-1;return i[n](o[n](t))}}function Zn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Qn(e,t){return function(){var e,t,n,r,o,i,a=Yn,s=Yn,l=Hn,c=Wn;function u(){return r=Math.min(a.length,s.length)>2?Jn:Kn,o=i=null,d}function d(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(s,a.map(e),$n)))(n)))},d.domain=function(e){return arguments.length?(a=Zt.call(e,Un),c===Wn||(c=Xn(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=Qt.call(e),u()):s.slice()},d.rangeRound=function(e){return s=Qt.call(e),l=Vn,u()},d.clamp=function(e){return arguments.length?(c=e?Xn(a):Wn,d):c!==Wn},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 er(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 tr(e){return(e=er(Math.abs(e)))?e[1]:NaN}var nr,rr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function or(e){if(!(t=rr.exec(e)))throw new Error("invalid format: "+e);var t;return new ir({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 ir(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 ar(e,t){var n=er(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}or.prototype=ir.prototype,ir.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 sr={"%":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 ar(100*e,t)},r:ar,s:function(e,t){var n=er(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(nr=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+er(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function lr(e){return e}var cr,ur,dr,mr=Array.prototype.map,pr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fr(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?lr:(t=mr.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=e.decimal+"",s=void 0===e.numerals?lr:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(mr.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=or(e)).fill,n=e.align,d=e.sign,m=e.symbol,p=e.zero,f=e.width,h=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(h=!0,v="g"):sr[v]||(void 0===g&&(g=12),y=!0,v="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===m?o:"#"===m&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===m?i:/[%p]/.test(v)?l:"",S=sr[v],E=/[defgprs%]/.test(v);function M(e){var o,i,l,m=b,M=x;if("c"===v)M=S(e)+M,e="";else{var C=(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,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==d&&(C=!1),m=(C?"("===d?d:c:"-"===d||"("===d?"":d)+m,M=("s"===v?pr[8+nr/3]:"")+M+(C&&"("===d?")":""),E)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){M=(46===l?a+e.slice(o+1):e.slice(o))+M,e=e.slice(0,o);break}}h&&!p&&(e=r(e,1/0));var w=m.length+e.length+M.length,T=w<f?new Array(f-w+1).join(t):"";switch(h&&p&&(e=r(T+e,T.length?f-M.length:1/0),T=""),n){case"<":e=m+e+M+T;break;case"=":e=m+T+e+M;break;case"^":e=T.slice(0,w=T.length>>1)+m+e+M+T.slice(w);break;default:e=T+m+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=or(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(tr(t)/3))),o=Math.pow(10,-r),i=pr[8+r/3];return function(e){return n(o*e)+i}}}}function hr(e,t,n,r){var o,i=Vt(e,t,n);switch((r=or(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tr(t)/3)))-tr(Math.abs(e)))}(i,a))||(r.precision=o),dr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,tr(t)-tr(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-tr(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return ur(r)}function gr(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,o,i,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=Ht(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++s<o;)i[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),i=new Array(o=Math.ceil(e-t+1));++s<o;)i[s]=(e-s)/a;return r&&i.reverse(),i}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return hr(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],l=o[a];return l<s&&(r=s,s=l,l=r,r=i,i=a,a=r),(r=Ht(s,l,n))>0?r=Ht(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Ht(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(l/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(l*r)/r,t(o)),e},e}function yr(){var e=Qn(Wn,Wn);return e.copy=function(){return Zn(e,yr())},Ut.apply(e,arguments),gr(e)}cr=fr({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ur=cr.format,dr=cr.formatPrefix;var vr=new Date,br=new Date;function xr(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return xr((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return vr.setTime(+t),br.setTime(+r),e(vr),e(br),Math.floor(n(vr,br))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Sr=xr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Sr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?xr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Sr:null},Sr.range;var Er=6e4,Mr=36e5,Cr=864e5,wr=6048e5,Tr=xr((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()}));Tr.range;var Or=xr((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())*Er)/Cr}),(function(e){return e.getDate()-1}));function kr(e){return xr((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())*Er)/wr}))}Or.range;var Rr=kr(0),Ar=kr(1),Nr=kr(2),Lr=kr(3),Ir=kr(4),Pr=kr(5),Dr=kr(6);Rr.range,Ar.range,Nr.range,Lr.range,Ir.range,Pr.range,Dr.range;var qr=xr((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()}));qr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?xr((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},qr.range;var zr=xr((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Er)}),(function(e,t){return(t-e)/Er}),(function(e){return e.getUTCMinutes()}));zr.range;var $r=xr((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Mr)}),(function(e,t){return(t-e)/Mr}),(function(e){return e.getUTCHours()}));$r.range;var jr=xr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Cr}),(function(e){return e.getUTCDate()-1}));function Fr(e){return xr((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)/wr}))}jr.range;var _r=Fr(0),Br=Fr(1),Hr=Fr(2),Vr=Fr(3),Ur=Fr(4),Yr=Fr(5),Wr=Fr(6);_r.range,Br.range,Hr.range,Vr.range,Ur.range,Yr.range,Wr.range;var Gr=xr((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()}));Gr.range;var Xr=xr((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 Kr(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 Jr(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 Zr(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}Xr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?xr((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},Xr.range;var Qr,eo,to={"-":"",_:" ",0:"0"},no=/^\s*\d+/,ro=/^%/,oo=/[\\^$*+?|[\]().{}]/g;function io(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function ao(e){return e.replace(oo,"\\$&")}function so(e){return new RegExp("^(?:"+e.map(ao).join("|")+")","i")}function lo(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function co(e,t,n){var r=no.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function uo(e,t,n){var r=no.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function mo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function po(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function fo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ho(e,t,n){var r=no.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function go(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yo(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 vo(e,t,n){var r=no.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function bo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function xo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function So(e,t,n){var r=no.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Eo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Mo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Co(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wo(e,t,n){var r=no.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function To(e,t,n){var r=no.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Oo(e,t,n){var r=ro.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ko(e,t,n){var r=no.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ro(e,t,n){var r=no.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Ao(e,t){return io(e.getDate(),t,2)}function No(e,t){return io(e.getHours(),t,2)}function Lo(e,t){return io(e.getHours()%12||12,t,2)}function Io(e,t){return io(1+Or.count(qr(e),e),t,3)}function Po(e,t){return io(e.getMilliseconds(),t,3)}function Do(e,t){return Po(e,t)+"000"}function qo(e,t){return io(e.getMonth()+1,t,2)}function zo(e,t){return io(e.getMinutes(),t,2)}function $o(e,t){return io(e.getSeconds(),t,2)}function jo(e){var t=e.getDay();return 0===t?7:t}function Fo(e,t){return io(Rr.count(qr(e)-1,e),t,2)}function _o(e){var t=e.getDay();return t>=4||0===t?Ir(e):Ir.ceil(e)}function Bo(e,t){return e=_o(e),io(Ir.count(qr(e),e)+(4===qr(e).getDay()),t,2)}function Ho(e){return e.getDay()}function Vo(e,t){return io(Ar.count(qr(e)-1,e),t,2)}function Uo(e,t){return io(e.getFullYear()%100,t,2)}function Yo(e,t){return io((e=_o(e)).getFullYear()%100,t,2)}function Wo(e,t){return io(e.getFullYear()%1e4,t,4)}function Go(e,t){var n=e.getDay();return io((e=n>=4||0===n?Ir(e):Ir.ceil(e)).getFullYear()%1e4,t,4)}function Xo(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+io(t/60|0,"0",2)+io(t%60,"0",2)}function Ko(e,t){return io(e.getUTCDate(),t,2)}function Jo(e,t){return io(e.getUTCHours(),t,2)}function Zo(e,t){return io(e.getUTCHours()%12||12,t,2)}function Qo(e,t){return io(1+jr.count(Xr(e),e),t,3)}function ei(e,t){return io(e.getUTCMilliseconds(),t,3)}function ti(e,t){return ei(e,t)+"000"}function ni(e,t){return io(e.getUTCMonth()+1,t,2)}function ri(e,t){return io(e.getUTCMinutes(),t,2)}function oi(e,t){return io(e.getUTCSeconds(),t,2)}function ii(e){var t=e.getUTCDay();return 0===t?7:t}function ai(e,t){return io(_r.count(Xr(e)-1,e),t,2)}function si(e){var t=e.getUTCDay();return t>=4||0===t?Ur(e):Ur.ceil(e)}function li(e,t){return e=si(e),io(Ur.count(Xr(e),e)+(4===Xr(e).getUTCDay()),t,2)}function ci(e){return e.getUTCDay()}function ui(e,t){return io(Br.count(Xr(e)-1,e),t,2)}function di(e,t){return io(e.getUTCFullYear()%100,t,2)}function mi(e,t){return io((e=si(e)).getUTCFullYear()%100,t,2)}function pi(e,t){return io(e.getUTCFullYear()%1e4,t,4)}function fi(e,t){var n=e.getUTCDay();return io((e=n>=4||0===n?Ur(e):Ur.ceil(e)).getUTCFullYear()%1e4,t,4)}function hi(){return"+0000"}function gi(){return"%"}function yi(e){return+e}function vi(e){return Math.floor(+e/1e3)}!function(e){Qr=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=so(o),u=lo(o),d=so(i),m=lo(i),p=so(a),f=lo(a),h=so(s),g=lo(s),y=so(l),v=lo(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Ao,e:Ao,f:Do,g:Yo,G:Go,H:No,I:Lo,j:Io,L:Po,m:qo,M:zo,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:yi,s:vi,S:$o,u:jo,U:Fo,V:Bo,w:Ho,W:Vo,x:null,X:null,y:Uo,Y:Wo,Z:Xo,"%":gi},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Ko,e:Ko,f:ti,g:mi,G:fi,H:Jo,I:Zo,j:Qo,L:ei,m:ni,M:ri,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:yi,s:vi,S:oi,u:ii,U:ai,V:li,w:ci,W:ui,x:null,X:null,y:di,Y:pi,Z:hi,"%":gi},S={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=m[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=h.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:xo,e:xo,f:To,g:go,G:ho,H:Eo,I:Eo,j:So,L:wo,m:bo,M:Mo,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:vo,Q:ko,s:Ro,S:Co,u:uo,U:mo,V:po,w:co,W:fo,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:go,Y:ho,Z:yo,"%":Oo};function E(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=to[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function M(e,t){return function(n){var r,o,i=Zr(1900,void 0,1);if(C(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Jr(Zr(i.y,0,1))).getUTCDay(),r=o>4||0===o?Br.ceil(r):Br(r),r=jr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Kr(Zr(i.y,0,1))).getDay(),r=o>4||0===o?Ar.ceil(r):Ar(r),r=Or.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Jr(Zr(i.y,0,1)).getUTCDay():Kr(Zr(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Jr(i)):Kr(i)}}function C(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=S[o in to?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=E(n,b),b.X=E(r,b),b.c=E(t,b),x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=M(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=M(e+="",!0);return t.toString=function(){return e},t}}}(e),Qr.format,Qr.parse,eo=Qr.utcFormat,Qr.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 bi=1e3,xi=6e4,Si=36e5,Ei=864e5,Mi=2592e6,Ci=31536e6;function wi(e){return new Date(e)}function Ti(e){return e instanceof Date?+e:+new Date(+e)}function Oi(e,t,n,r,o,i,a,s,l){var c=Qn(Wn,Wn),u=c.invert,d=c.domain,m=l(".%L"),p=l(":%S"),f=l("%I:%M"),h=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,bi],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,xi],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Si],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Ei],[r,2,1728e5],[n,1,6048e5],[t,1,Mi],[t,3,7776e6],[e,1,Ci]];function S(s){return(a(s)<s?m:i(s)<s?p:o(s)<s?f:r(s)<s?h:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function E(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var i=Math.abs(r-n)/t,a=$t((function(e){return e[2]})).right(x,i);a===x.length?(o=Vt(n/Ci,r/Ci,t),t=e):a?(o=(a=x[i/x[a-1][2]<x[a][2]/i?a-1:a])[1],t=a[0]):(o=Math.max(Vt(n,r,t),1),t=s)}return null==o?t:t.every(o)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(Zt.call(e,Ti)):d().map(wi)},c.ticks=function(e,t){var n,r=d(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=E(e,o,i,t))?n.range(o,i+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=E(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}(n,e)):c},c.copy=function(){return Zn(c,Oi(e,t,n,r,o,i,a,s,l))},c}function ki(){return Ut.apply(Oi(Xr,Gr,_r,jr,$r,zr,Tr,Sr,eo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Ri={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"}}},Ai=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Ni={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[o,i]=t(),a=Math.abs(o)<1e-15,s=Math.abs(i-1)<1e-15,l=(e=>{const t=Ri[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Ai(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Ai(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 Li({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:o}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:o,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),o=t.get("continuousMax");return[(n.min-r)/(o-r),(n.max-r)/(o-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let Ii;function Pi(){Ii=Ii||document.createElement("canvas").getContext("2d")}const Di={measureTextWidth(e){Pi();const{width:t}=Ii.measureText(e);return t},lineWrap(e,t,n,r){let o,i;Pi();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,m=e?e.split(/\s+/):[],p=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),i=0;i<a.length;i++){for(d=a[i]||"",m=d.split(/\s+/),[p]=m,u="",o=1;o<m.length;o++)if(l=`${p} ${m[o]}`,c=Di.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(p),p=m[o]):p=l,"number"==typeof r&&s.length>=r){u=m.slice(o+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(p):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${p} ${u}`}return s},wordWrap(e,t,n,r,o){if(Pi(),!e||!e.length)return[];n&&(Ii.font=n);let i=[];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||Di.measureTextWidth(c)<=t?i.push(c):(s=Di.splitWord(c,t,void 0,r-i.length),s.length<=1?i.push(s[0]):(l=s.pop(),i=i.concat(s),a[u+1]?Di.measureTextWidth(`${l} ${a[u+1]}`)>t&&i.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return i.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),i.length>r?(i=i.splice(0,r),i[i.length-1]=Di.truncate(i[i.length-1],t,n,o).text):(c=i[i.length-1],c&&c.length>1&&Di.measureTextWidth(c)>t&&(i[i.length-1]=Di.truncate(c,t,n,o).text)),i},truncate(e,t,n,r="…"){Pi();let o,i,a,s,l=e;const c=Di.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Ii.font=n),e&&t){if(Di.measureTextWidth(l)>t){for(o=Math.min(u,l.length);o>0;o--)if(i=l.substring(0,o-1),a=i.trim()+r,Di.measureTextWidth(a)<=t){s=l.substring(o-1),l=a;break}o||(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 o;Pi();let i,a=e,s="",l=[];if(Di.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(o=Math.min(e.length,c);o>0&&(a=e.substring(0,o),i=e.substring(o-1,o)," "===i?a=e.substring(0,o-1):a+="-",s=e.substring(o),!(Di.measureTextWidth(a)<=t));o--);return(!o&&!a||Di.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Di.measureTextWidth(s)>t?(s=Di.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Pi(),e&&t?(n&&(Ii.font=n),Di.explodeWord(e,t,r,Math.max(1,Di.measureTextWidth("i")))):[]),wrapText(e,t,n,r,o){let i;return Number.isNaN(t)?[e]:(i=r>1?Di.lineWrap(e,t,n,r):[e],i=Di.wordWrap(i,t,n,r,o),i)},getFontHeight:e=>(Pi(),e&&(Ii.font=e),1.5*Di.measureTextWidth("m")),tokenize(e,t,n,r,o,i,a=1){Pi(),t&&(Ii.font=t);const s=Di.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(i<s)return[];const m=i?Math.max(1,Math.floor(i/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?m-u:e)}))):c=[Number.isNaN(r)||r<=0?m:Math.min(m,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<m&&(d=d.concat(Di.wrapText(e,o,t,c[n])))})):d=Di.wrapText(e,o,t,c[0],n),d}},qi={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:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(me({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},zi=me.bind(null,!0),$i={},{isArray:ji}=Array;function Fi(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function _i(e){return void 0===e}function Bi(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Hi(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=_i(e[r||t])?i:e[t],e=e[r||t]})),e}function Vi(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function Ui(e,t,n){let r=!0;if(Fi(e)&&Fi(t))return Vi(e,n)===Vi(t,n)&&(Object.keys(e).forEach((o=>{Ui(e[o],t[o],n)||(r=!1)})),r);if(ji(e)&&ji(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!Ui(e[r],t[r],n))return!1;return!0}return e===t}$i.compare=Ui,$i.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?zi({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;Ui(i,a)||Bi(t,o)||(_i(a)?r.push({op:"add",path:s,value:i}):Fi(i)&&Fi(a)?r=r.concat($i.generate(a,i,s)):ji(i)&&ji(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&_i(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(Ui(t,o))return r;if(!_i(t[0])&&_i(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat($i.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{_i(t[o])&&!Bi(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},$i.apply=function(e,t){t.forEach((t=>{let n=Hi(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(ji(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(ji(o)&&ji(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Fi(o)&&Fi(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Bi(a,e)&&delete a[e]})),zi(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=Hi(e,t.from);ji(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(ji(n)?n.splice(+r,1):delete n[r]);var a}))},$i.clone=function(e){return zi({},e)},$i.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},$i.updateObject=function(e,t){Object.keys(e).length?$i.apply(e,$i.generate(e,t)):zi(e,t)};const Yi=[[2,4,6],[2,4],[3]],Wi=[,[,,[[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 Gi(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function Xi(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Gi(e[r],t,n)}!function(){let e,t;for(Xi(Yi,1,10),e=0;e<Wi.length;e++)if(Wi[e])for(t=0;t<Wi[e].length;t++)Array.isArray(Wi[e][t])&&Xi(Wi[e][t])}();const Ki={isInside(e,t,n,r){if(!r)return!0;const o=e.position-e.radius,i=e.position+e.radius;return o>=t&&i<=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=Ki.findSegmentPositionMeetMin(e,t);return Ki.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=Ki.findSegmentPositionMeetMax(e,n);return Ki.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const o=e.length-1;let i,a,s=t;for(let t=0;t<o;t++)i=e[t],a=e[t+1],i.position=Ki.findSegmentPositionMeetMaxThenMin(i,s,(i.center+a.center-r)/2),s=i.position+i.radius+r/2;a.position=Ki.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const o=e.length-1;let i,a,s;const l=Math.max(0,e[o].position+e[o].radius-n);if(0===l)return;let c,u=0;for(i=o;i>0&&(a=e[i],s=e[i-1],c=Math.max(0,Ki.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));i--);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,i=0;i<=o;i++)a=e[i],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const o=e.length-1;if(!(o<0))if(0!==o)Ki.layoutPositionFromMin(e,t,n,r),Ki.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=Ki.findSegmentPositionMeetMaxThenMin(r,t,n)}}},Ji=(e,t,n,r=1)=>{const o=e.bandwidth();return n?"start"===t?o:"end"===t?o*(1-r):o*(2-r)/2:"start"===t?0:"end"===t?o*r:o*r/2},Zi=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,Qi=e=>e.filter(Zi),ea=(e,t)=>Qi(Se.getValue(e,t,[])),ta=e=>Zi(e)&&(!1!==e.showValue||!1!==e.showLabel),na=e=>e.filter(ta),ra=(e,t)=>na(Se.getValue(e,t,[])),oa=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,ia=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},aa=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},sa=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+o},la=({value:e,qMin:t})=>"NaN"!==t&&e<t,ca=({value:e,qMax:t})=>"NaN"!==t&&e>t,ua={isRefLineVisible:Zi,getVisibleRefLines:Qi,getRefLines:ea,getMeasureRefLines:e=>ea(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:ea(e,"refLine.dimRefLines"),isRefLineLabelVisible:ta,getVisibleRefLineLabels:na,getRefLineLabels:ra,getMeasureRefLineLabels:e=>ra(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:ra(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:o,invert:i=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=Ji(s,o,i,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=Ji(s,o,i,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:o})=>{const i=(({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-i*(s-o)}})({pxScale:s,value:n,innerValues:e,invert:i,minOrder:a})),(void 0===c?s(n):c)+l}return l=Ji(s,o,i),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:o}=r.meta,i={},a=Se.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():Se.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=Se.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),m=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+m,r=t[d];i[r]||(i[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})():o?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],o=t+m,a=n[d];i[a]?(i[a].minOrder=Math.min(i[a].minOrder,o),i[a].maxOrder=Math.max(i[a].maxOrder,o),i[a].innerValues[i[a].innerValues.length]={id:r.qElemNumber,order:o}):i[a]={id:n.qElemNumber,qText:n.qText,minOrder:o,maxOrder:o,innerValues:[{id:r.qElemNumber,order:o}],dataNode:u[t]},0===t?0===o&&(i[a].isMinOrderOk=!0):a!==e&&(i[a].isMinOrderOk=!0,i[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+m,r=t[d];i[r]||(i[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})(),i},getInputValue:oa,extractInfoFromInputValue:ia,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=oa({refLineLayout:e,layoutService:n});return ia(r,t,"id")},isDiscreteMinOutOfBounds:aa,isDiscreteMaxOutOfBounds:sa,isContinuousMinOutOfBounds:la,isContinuousMaxOutOfBounds:ca,isOutOfRange:({value:e,qMin:t,qMax:n})=>la({value:e,qMin:t})||ca({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&sa({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&aa({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},da=({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 ma(e){return e.showValue?`… ${e.valueString}`:"…"}function pa(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=da({label:o,labelStyle:t});o.lines=Di.tokenize(o.title,i,ma(o),3,n),o.maxNumLines=o.lines.length}}function fa({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=Di.tokenize(e,t,n,r,o),a=i.length;let s="";if(a){[s]=i;for(let e=1;e<a;e++)s=`${s}\n${i[e]}`}return s}function ha({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=e.map((e=>fa({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:o}))),a=i.length;let s="";if(a){[s]=i;for(let e=1;e<a;e++)s=`${s}\n\n${i[e]}`}return s}function ga(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const ya=3,va=2;function ba({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 xa=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(ua.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(ua.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return ua.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:ua.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},Sa={hasEngineFormat:ba,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:o,rtl:i,isContinuous:a,isDimension:s}){const l=ua.getInvert({orientation:o,rtl:i,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let m,p;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");m=e.qMin,p=e.qMax}for(let o=0;o<e.length;o++){const i=e[o],{value:s,align:c,valueInfo:d}=i,f=xa({label:i,dataPages:u,qMin:m,qMax:p});i.scaledValue=1===f?l?-.1:1.1:-1===f?l?1.1:-.1:ua.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),i.center=i.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:o}){let i;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;i=ba({inputValue:s,inputValueLabel:l,localeInfo:o})?l:t?t(a):a,r.valueString=`${De.lrm}(${i})${De.lrm}`,r.title=Sa.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;i=ba({inputValue:a,inputValueLabel:s,localeInfo:o})?s:r,n.valueString=`${De.lrm}(${i})${De.lrm}`,n.title=Sa.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];i=n.valueText,n.valueString=`${De.lrm}(${i})${De.lrm}`,n.title=Sa.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 o=e.length-1;if(o<0)return;let i,a;if([i]=e,i.cMin=t,0!==o){for(let t=0;t<o;t++)i=e[t],a=e[t+1],i.cMax=(i.center+a.center-r)/2,a.cMin=i.cMax+r;a.cMax=n}else i.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,o=e.filter((e=>e.maxNumLines===t)),i=Math.min(n,o.length);for(let e=o.length-1;e>=o.length-i;e--)o[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let o=3;do{const t=Sa.getTotalNumLines(e)-r;if(t<=0)return;Sa.reduceLabelsHavingMaxNumLines(e,o,t),o--}while(o>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const o=e[r];o.maxNumLines=Math.max(1,Math.min(o.maxNumLines,Math.floor((Math.max(0,o.cMax-o.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let o=0;o<e.length;o++){const i=e[o];i.width=Math.min(t,Sa.measureLabelMaxLineWidth(i,r)),i.height=i.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:o}=r,i=r[t],a=i/2;r.segment={center:o,range:i,min:o-a,max:o+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:o,gap:i,labelStyle:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:m,layoutService:p,isContinuous:f,isDimension:h}){const g=e.map((e=>e)),y=n;Sa.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:u,rtl:m,isContinuous:f,isDimension:h}),ga(e,"center"),Sa.addLabelsNeighborInfo(e,r,o,i),pa(e,a,s),Sa.reduceTotalMaxNumLines(g,l,o-(g.length-1)*i),"vertical"===u&&(Sa.reduceMaxNumLines(e,l,.05*i),function(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=da({label:o,labelStyle:t});o.lines.length>o.maxNumLines&&(o.lines=Di.tokenize(o.title,i,ma(o),o.maxNumLines,n))}}(e,a,s)),Sa.addLabelsSize(e,s,l,d),Sa.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:o,lineHeight:i=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=o,{fontSize:d,fontFamily:m,fontStyle:p,fontWeight:f,textDecoration:h,background:g}=t;let y=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,o=t.map(((t,o)=>{const g={type:"text",text:t,title:fa({title:e.title,font:a,ellipsis:ma(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||m,fontStyle:e.fontStyle||p,fontWeight:e.fontWeight||f,textDecoration:e.textDecoration||h,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return g[l]=u,g[s]=e.segment.position,g.y+=(o-(r-1)/2)*i,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:o,lineHeight:i,background:a}){const{lines:s}=o,{borderRadius:l=ya,padding:c={}}=a,{top:u=va,bottom:d=va,left:m=va,right:p=va}=c,f=s.length,h={type:"rect",rx:l,ry:l,fill:o.background.fill,width:o.width+(m+p),height:o.height+(u+d),value:o.value,dock:r};return h[n]=e,h[t]=o.segment.position,h.x-=o.width/2+m,h.y-=f*i/2+u,h}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:i,background:g})),y=y.concat(o)})),y}};function Ea(e,t,n){let r;const o=typeof t;if("string"===o||"object"===o)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 Ma(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{lineHeight:n,top:r,bottom:o,maxLabelWidth:i}=t;let a=1;return Sa.getMaxTextWidth(e)>i&&(pa(e,t,i),a=Math.max(...e.map((e=>e.lines.length)))),a*n+r+o}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:o}=t;return Math.min(o,Sa.getMaxTextWidth(e))+n+r}(t,n)}function Ca(e,t){return t?e.domain():[0,1]}function wa(e,t,n,r="value"){let o=e.filter((e=>e[r]>=t));o=o.filter((e=>e[r]<=n));const i=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:o,minOobs:i,maxOobs:a,numMinOobs:i.length,numMaxOobs:a.length}}function Ta(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 Oa(e,t){return e>9?t[1]:t[0]}function ka({alignment:e,dockValue:t,oobs:n,style:r,rect:o,symbol:i,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:m,minorAxis:p,minorDimension:f,dock:h}=s,g=o[f],y=qi.createOob({oob:qi.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:o.width,rendHeight:o.height,flipXY:d,symbol:i});y.dock=h;const v=`c${m}`,b=`c${p}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:h};x[b]=g/2,x[v]=a;const S={type:"text",text:u>9?"9+":u,title:ha({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:h};return S[p]=g/2,S[m]=a,[y,x,S]}const Ra=e=>{const t=da({labelStyle:e}),n=Di.getFontHeight(t)*(e.lineHeightMultiplicator||1),r=e.gap||12,o=e.maxWidth||75,i=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:o,top:i,bottom:a,left:s,right:l}},Aa=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 Na={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:o}=this.settings,i=!!r||n.meta.canBeContinuous,a=Aa(this.settings.labels),s=Ea(this.chart,this.settings.formatter,e);Sa.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:i,localeInfo:o});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:o})=>{if(n){const[r,o]=Ca(t,n);return wa(e,r,o)}if(r){const t=o.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return wa(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:i,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:o,fontWeight:i}=n||{};return this.renderer.measureText({text:e,fontWeight:i||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:o||t.label.fontFamily})},u&&u.length){const e=Ra(t.label),{dock:n}=this.settings.layout;return Sa.measureLabelsWidth(u,this.measureText),d=Ma(n,u,e),d}const m=Ta(this.measureText),p=l?Oa(l,m):0,f=c?Oa(c,m):0;return d=Math.max(p,f),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:o,isContinuous:i,isDimension:a,localeInfo:s}=this.settings,l=!!i||r.meta.canBeContinuous,c=Aa(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:m}=n.label,p=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),f=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,p,m),{orientation:h,majorDimension:g}=p,{majorSize:y}=f,v=Ra(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:E}=v,M=Ea(this.chart,this.settings.formatter,e),C=y;Sa.addLabelTitles({labels:c,formatter:M,isContinuous:i,canBeContinuous:l,localeInfo:s}),Sa.calculateLabelPositions({labels:c,scale:e,size:C,layoutService:r,orientation:h,rtl:d,isContinuous:i,isDimension:a});const[w,T]=Ca(e,i),{filteredLabels:O,lowerOobs:k,upperOobs:R,lowerCircleSize:A,upperCircleSize:N,lowerOobSpace:L,upperOobSpace:I}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:o,isContinuous:i,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:m}=wa(e,t,n,c),p="scaledValue"!==c&&ua.getInvert({orientation:r,rtl:o,isContinuous:i}),f=function(e,t,n){return n?t:e}(d,u,p),h=function(e,t,n){return n?e:t}(d,u,p),g=f.length,y=h.length,v=Ta(l),b=Oa(g,v),x=Oa(y,v),S=function(e,t,n,r,o){return("vertical"===r?o.top:o.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),E=function(e,t,n,r,o){return("vertical"===r?o.bottom:o.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:m,lowerOobs:f,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:E}}({labels:c,minValue:w,maxValue:T,orientation:h,rtl:d,isContinuous:i,style:n,padding:m,measureText:this.measureText,prop:i?"value":"scaledValue"}),P=L,D=y-I;ga(k),ga(R);const q=ka({alignment:0,dockValue:0,oobs:k,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+A/2,areaProps:p,radius:A/2,font:b}),z=ka({alignment:1,dockValue:1,oobs:R,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+N/2),areaProps:p,radius:N/2,font:b});Sa.addLabelsInfo({labels:O,scale:e,majorSize:y,lowerLimit:P,upperLimit:D,labelStyle:v,lineHeight:x,gap:S,maxLabelWidth:E,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:i,isDimension:a}),Ki.layout(O.map((e=>e.segment)),P,D,n.label.gap);const $=O.filter((e=>Ki.isInside(e.segment,P,D,i)));return Sa.createLabels({labels:$,style:n.label,maxLabelWidth:E,areaProps:p,area:f,lineHeight:x,font:b,theme:o}).concat([...q,...z])}};var La={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 Ia(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:o,qStackedDataPages:i,qTreeDataPages:a,...s}=t,l=me(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=La;return c.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==E(l,e)&&M(l,e,null);else{const e=t[0],n=t[1].split("].")[1];E(l,e,[]).forEach((e=>{void 0!==E(e,n)&&M(e,n,null)}))}})),l}var Pa={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return o=>{if(e||t||n){var i;if("line"===o.type)return null!==(i=o.tickValue)&&void 0!==i?i:"axis";if("text"===o.type)return`${o.tickValue} ${o.text}`;if("container"===o.type){const e=o.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${o.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===o.type&&void 0===o.tickValue)return"axis";const e=o.transform&&o.transform.match(/rotate/gi)?"rotated":"horizontal";return`${o.data.group?`${o.data.group.value} `:""}${o.data.value} ${o.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:o}){return({currentNodes:i,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==o&&"bottom"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?i.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?i.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.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,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=o):e.transform=`translate(${-r}, ${-o})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=r):(e.x-=r,e.y-=o)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=o,e.y2-=o):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:o/e.major.size,n="y"===e.minor.p?o/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},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,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=o;break;case"rect":e.x-=r,e.y-=o;break;case"path":e.transform=`translate(${-r}, ${-o})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.cx-=r,e.cy-=o}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y,i=t.width-n.width,a=t.height-n.height;let s=-r,l=-o;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":i<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":o>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=Ia(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Ia(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:Da,extractInfoFromInputValue:qa,resolveValue:za}=ua;var $a={resolveValue:za,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Da({refLineLayout:e,layoutService:n});return qa(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Da({refLineLayout:e,layoutService:n});return qa(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:o}=n.meta,i=Da({refLineLayout:e,layoutService:n});return r[i]&&o?r[i].qText:i},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Da({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:o}=t;return o[r]}};const ja=({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:o,dockService:i,chart:a,scale:s,axis:l,invert:c,component:u,isContinuous:d})=>{var m,p;const f={dir:l,line:{strokeWidth:(null==t||null===(m=t.style)||void 0===m?void 0:m.lineThickness)||2,strokeDasharray:null==t||null===(p=t.style)||void 0===p?void 0:p.lineType,stroke:o.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(f.scale=s,f.value=t.refLineExpr.value):(f.valueInfo=$a.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),f.value=()=>{var e;const o=ua.getScaledPosition({scale:a.scale(s),value:$a.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:f.valueInfo,size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===i.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(o)?void 0:o}),f};function Fa({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:o,animationsEnabled:i,chart:a,scale:s,axis:l,rtl:c,key:u,mainComponentKey:d,path:m,minimumLayoutMode:p}){const f=e?t.dimensionRefLines:m?t.query.getRefLines(m):t.measureRefLines;if(!f.length)return!1;const h={key:u,type:"ref-line",layout:{minimumLayoutMode:p},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:i,trackBy:Pa.lines.trackBy,compensateForLayoutChanges:Pa.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==o.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return f.forEach((i=>{h.lines[l].push(ja({isDimension:e,refLineLayout:i,refLineModel:t,layoutService:n,colorModel:r,dockService:o,chart:a,scale:s,axis:l,invert:g,component:d,isContinuous:y}))})),h}const _a={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},Ba=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:o,scale:i,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:m})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:o,formatter:a,scale:i,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:m,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:Pa.refLineLabels.trackBy,compensateForLayoutChanges:Pa.refLineLabels.compensateForLayoutChanges}}),Ha=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:o,theme:i,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),{align:l,style:c}=e,{fontSize:u,fontFamily:d,fontStyle:m,fontWeight:p,textDecoration:f}=c||{},h={align:l,text:e.label,fill:e.coloredBackground?i.getContrastingColorTo(s):s,fontSize:u,fontFamily:d,fontStyle:m,fontWeight:p,textDecoration:f,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(h.background={fill:s}),a?(h.scale=o,h.value=e.refLineExpr.value):(h.value=()=>$a.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueText=()=>$a.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueInfo=()=>$a.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),h};function Va({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:o,dock:i,scale:a,style:s,formatter:l,theme:c,localeInfo:u,rtl:d,key:m,path:p}){const f=e?t.dimensionRefLineLabels:p?t.query.getRefLineLabels(p):t.measureRefLineLabels;if(!f.length)return[];const h=[],g=!e||n.meta.isContinuous,y=f.map((e=>Ha({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push(Ba({isDimension:e,rtl:d,style:me(!0,_a,s),dock:i,key:m,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:o,theme:c,isContinuous:g,localeInfo:u})),h}function Ua({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:o}=e.meta,i=e.getLayout(),a="K"===i.qHyperCube.qMode,s=we.dimensionless(i),l=ua.getMeasureRefLines(i),c=ua.getDimensionRefLines(i,s),u=ua.getMeasureRefLineLabels(i),d=ua.getDimensionRefLineLabels(i,s);let m={},p={};const f=()=>!(!c||!c.length)&&!c.every((t=>{const i=ua.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:o}=n;return ua.isOutOfRange({value:t,qMin:r,qMax:o})}return!1})(i)||(t=>{if(!p[t])return!1;if(!n&&o){const n={valueInfo:p[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",o=e.getHyperCubeValue(r);return ua.isOutOfDataPages({label:n,dataPages:o})}return!0})(i)})),h={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:p,dimensionValuesInfo:m,query:{getRefLines:e=>ua.getRefLines(i,e),getRefLineLabels:e=>ua.getRefLineLabels(i,e)},update:()=>{p=h.dimensionRefLineInfo,f()&&(m=ua.getDimensionValuesInfo({layout:i,canBeContinuous:r,discreteModel:t,layoutService:e}),h.dimensionValuesInfo=m,c.forEach((t=>{const n=ua.getInputValue({refLineLayout:t,layoutService:e});m[n]&&(p[n]?(p[n].innerValues=m[n].innerValues,p[n].minOrder=Math.min(p[n].minOrder,m[n].minOrder),p[n].maxOrder=Math.max(p[n].maxOrder,m[n].maxOrder),p[n].isMinOrderOk=p[n].isMinOrderOk||m[n].isMinOrderOk,p[n].isMaxOrderOk=p[n].isMaxOrderOk||m[n].isMaxOrderOk):p[n]={id:m[n].id,qText:m[n].qText,innerValues:m[n].innerValues,minOrder:m[n].minOrder,maxOrder:m[n].maxOrder,isMinOrderOk:m[n].isMinOrderOk,isMaxOrderOk:m[n].isMaxOrderOk},p[n].numInnerValues=(p[n].maxOrder||0)-(p[n].minOrder||0)+1)})))}};return h.update(),h}function Ya(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 Wa={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"}},Ga={TYPE:{LINE:"line",BAR:"bar",MARKER:"marker"},AXIS:{PRIMARY:0,SECONDARY:1},NOPE_SERIES:{type:"bar",axis:0}};const Xa={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 Ka(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Ja={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function Za(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,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(o=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!o){var d;o=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(o.url);o.host=t.hostname,o.port=t.port,o.isSecure="wss:"===t.protocol}return c=void 0!==o.secure?o.secure:o.isSecure,i=c?"https://":"http://",a=o.host||"localhost",s=o.port?`:${o.port}`:"",l=o.prefix?o.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),i+a+s+l}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await Ja.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function Qa(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",m=u.type||"media";let p=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){p=e;break}const f=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let h;if(-1!==p&&f[p]&&(h=f[p]),"media"===m&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return Za(u,d,s);if("url"===m)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Ka(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await Ja.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Ja.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===m&&h&&h.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Ka(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await Ja.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[p],d,h)}return[]}const es={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(Qa(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t;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}},ts={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await es.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>es.checkIfPromisesExist({customTooltipModel:e})};const ns=(e,t)=>{var n,r,o;const i=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:Xa.CHART.CHART_PARENT_TYPE,qId:Xa.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},rs=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:Xa.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const os={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 o=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",i=Xa.CHART.STYLE[o];return[{content:[e.h("div",{style:{display:"flex",width:i,height:i,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:Xa.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a;const s=o,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 os.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=Xa.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=Xa.CHART.STATE,a=ns(t,i),s=await e.createSessionObject(a),l=rs(t);if(s.id!==Xa.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,m;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 p,f;const e=null!==(p=n[0].data.selectionOuterDimension)&&void 0!==p?p:n[0].data.selectionDimension;if(null!=e&&null!==(f=e.source)&&void 0!==f&&f.field){var h;const t=null==e||null===(h=e.source)||void 0===h?void 0:h.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(Xa.CHART.CONTAINER_ID),g={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await o.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===(m=s.miniChartToken.model)||void 0===m?void 0:m.genericType})}}catch(t){await os.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(os.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Xa.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=Xa.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 is(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function as(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=Xa.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function ss(e){const t=as();return e.filter((e=>t[e.id]))}const ls={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=ls.getAttrExprData(a);i.length||n.length?ts.handlePromises({customTooltipModel:o,nodes:ls.getDataNodes(s,i.length>0?i:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&os.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>ts.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[t])||void 0===i?void 0:i.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[Xa.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[Xa.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[Xa.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(ss(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[Xa.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[Xa.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=is(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===ss(o).length){var i;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(i=i.quarantine)||void 0===i?void 0:i.customTooltip)||[],n=[...o,...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 o=is(e)||[];[...o,t].forEach((e=>{const t=ss(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=as(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:De.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=De.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function cs(e,t,n,r){var o;const i=(null===(o=t.qHyperCube)||void 0===o||null===(o=o[n])||void 0===o||null===(o=o[r])||void 0===o?void 0:o.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(i.forEach(((e,t)=>{const o=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case Xa.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Xa.CUSTOM.TITLE:case Xa.CUSTOM.DESCRIPTION:case Xa.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),a):a}const us={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>cs(t,e,r,n)}}};const ds={getCustomAttrExps(e,t,n){var r;const o={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},i=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(i))return o;return function(e,t,n,r){const o={[Xa.CUSTOM.TITLE]:!0,[Xa.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=ls.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===Xa.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===Xa.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>qe.getMeasure(e,t))),e,o)}};function ms({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(ds.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:ps}=Xa;function fs({flags:e,layout:t,app:n,model:r,picasso:o,chart:i,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:ls,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:o,chart:i,translator:a,localeInfo:s,embed:l}),m="rtl"===c.direction,p=()=>{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:()=>p(),hideBasic:()=>p()&&E(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=ms({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===ps.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===ps.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>ls.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>ls.getImageRow(e,{h:t,rtl:m}),addImages:({nodes:r})=>{const o=ls.getDataNodes(i,r),{attrExps:a}=ls.getAttrExprData(t);return ts.handlePromises({customTooltipModel:d,nodes:o,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(p()&&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})=>os.createContainer({layout:t,ctx:{h:e,rtl:m}}),createLimitationRow:()=>ls.getFooterRow(a.get("properties.tooltip.notselectedmessage"),m),show:({nodes:e,properties:t})=>os.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:m}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>os.hide({app:n,customTooltipModel:d}),destroy:()=>os.destroyVisualization({customTooltipModel:d})}}}function hs({key:e,source:t,layoutService:n,fieldModel:r,colorService:o,series:i}){const{meta:a}=n;if(a.isBarSeriesStacked){const{major:a,majorNumeric:s}=r.main,l=i.filter((e=>e.type===Ga.TYPE.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:i})=>({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,...o.getDatumProps(i),customTooltipAttrExps:us.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 gs({key:e,series:t,source:n,fieldModel:r,colorService:o,layoutService:i,forceCreate:a=!1}){if(t.length||a){const{major:a,majorNumeric:s}=r.main,l=e=>"NaN"!==e.qNum?e.qNum:0,c=i.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:i.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:us.getNode(i.getLayout(),i.meta),...o.getDatumProps(t)}})))}}]}return[]}function ys({key:e,layoutService:t,fieldModel:n,series:r}){const{meta:o}=t;if(o.isBarSeriesStacked){const{major:t,majorNumeric:i}=n.main,a=r.filter((e=>e.type===Ga.TYPE.BAR)),s=o.isContinuous?{field:i,value:e=>e.qNum,reduceLabel:"none"}:[];return[{key:e,data:{extract:{field:0,props:{major:{field:o.isContinuous?i: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:o.isContinuous?e=>e.qNum:void 0}}}]}return[]}const vs={MINI_CHART:{value:"miniChart"},BAR:{value:"bar"},NONE:{value:"none"}};var bs={OPTIONS:vs,DEFAULT:vs.MINI_CHART};function xs({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:o,minThumbSize:i})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===o,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<i){const e=(i-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=i}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 Ss({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),o=t.get("continuousMax");return[(n.min-r)/(o-r),(n.max-r)/(o-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const Es=e=>({miniChart:e===bs.OPTIONS.MINI_CHART.value,bar:e===bs.OPTIONS.BAR.value,none:e===bs.OPTIONS.NONE.value}),Ms=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return Es(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return Es(bs.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return Es(!n&&(r||!r&&o)?bs.OPTIONS.NONE.value:bs.OPTIONS.MINI_CHART.value)};function Cs({layoutService:e,override:t}){const n=Ms({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===bs.OPTIONS.MINI_CHART.value,n.bar=t.value===bs.OPTIONS.BAR.value,n.none=t.value===bs.OPTIONS.NONE.value),n}function ws({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),m="horizontal"===i.meta.major.orientation,p=m?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,f=m?d.rect.computedInner.width:d.rect.computedInner.height,h=m&&a?f-p:p,g=Math.max(0,Math.min(h/f,1)),[y,v]=Ss({layoutService:o,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*f:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function Ts({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i}){return()=>{const a=t.component(e),{orientation:s}=i.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,m]=Ss({layoutService:o,viewState:n,viewCache:r});return{size:u,thumbSize:(m-d)*u}}}function Os({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=ws({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=Ts({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,o)=>!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,i-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 ks="data-scrollbar-handle";function Rs({e:e}){return(e.srcEvent||e).srcElement.getAttribute(ks)||""}const As="scrollbarResize",Ns=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function Ls({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s}){const l=ws({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s});return{type:"Pan",key:`event:${As}`,options:{event:As,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[As]=this[As]||{},Ns(t)&&Rs({e:t})&&(this[As].panningEvent=t.srcEvent),!!this[As].panningEvent))}},events:{[`${As}start`](n){n.preventDefault(),this[As]=this[As]||{},this[As].panningEvent&&t.component(e).emit("dragStart",this[As].panningEvent)},[`${As}move`](n){if(n.preventDefault(),this[As]=this[As]||{},!this[As].panningEvent)return;const i=r.get("zoom"),a=o.get("continuousMin"),s=o.get("continuousMax"),c=o.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=Rs({e:this[As].panningEvent});let m="start"===d?Math.min(u,i.max):i.min,p="end"===d?Math.max(u,i.min):i.max;m===p&&(m-="start"===d?c:0,p+="end"===d?c:0),r.set("zoom",{min:m,max:p}),t.component(e).emit("render")},[`${As}end`](n){n.preventDefault(),this[As]=this[As]||{},delete this[As].panningEvent,t.component(e).emit("dragEnd")},[`${As}cancel`](n){n.preventDefault(),this[As]=this[As]||{},delete this[As].panningEvent,t.component(e).emit("dragEnd")}}}}const Is="scrollbarPan";function Ps({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=ws({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=Ts({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:`event:${Is}`,options:{event:Is,threshold:0,enable(r,o){return this[Is]=this[Is]||{},!(o&&!this[Is].isPanning)||!!n.scroll.enabled()&&((!o||o.target===t.element)&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e)))}},events:{[`${Is}start`](n){n.preventDefault();const a=c(n);if(this[Is]=this[Is]||{},this[Is].isPanning=!0,t.component(e).emit("lockState"),i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,i-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,i-t),max:Math.max(s,n+t)}),this[Is].relative=a.relative,this[Is].zoom=r.get("zoom"),this[Is].zoom.span=this[Is].zoom.max-this[Is].zoom.min,this[Is].zoom.fullSpan=i-n}else if(a.onThumb)this[Is].offset=a.thumb;else{const e=u();this[Is].offset=a.beforeThumb?0:e.thumbSize}},[`${Is}move`](n){n.preventDefault();const a=c(n);if(this[Is]=this[Is]||{},i.meta.isContinuous){const e=a.relative-this[Is].relative,{fullSpan:t,span:n,min:i,max:s}=this[Is].zoom,l=o.get("continuousMin"),c=o.get("continuousMax");r.set("zoom",{min:Math.min(i+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[Is].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${Is}end`](n){n.preventDefault(),this[Is]=this[Is]||{},this[Is].isPanning=!1,t.component(e).emit("unlockState")},[`${Is}cancel`](n){n.preventDefault(),this[Is]=this[Is]||{},this[Is].isPanning=!1,t.component(e).emit("unlockState")}}}}function Ds({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[Os({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),Ls({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),Ps({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})]}function qs({componentKey:e,chart:t,actions:n,layoutService:r}){const o=(o,i)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(o,i)};return{type:"native",events:{mousemove:e=>o("hover",e),mouseleave:()=>o("leave")}}}const zs={background:"rgba(0, 0, 0, 0.1)"},$s={top:-1,bottom:-1,width:6},js={width:2,background:"#595959"};var Fs={before:zs,after:zs,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:$s,endHandle:$s,startHandleBorder:js,endHandleBorder:js};const _s={background:"rgba(0, 0, 0, 0.1)"},Bs={top:-1,bottom:-1,width:6},Hs={width:2,background:"#595959"};var Vs={before:_s,after:_s,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:Bs,endHandle:Bs,startHandleBorder:Hs,endHandleBorder:Hs};const Us={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},Ys={pointerEvents:"initial"},Ws={pointerEvents:"none"};const Gs="ew-resize",Xs="default";function Ks(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,o=t.range(),i=n&&t.rtl;return{size:r,start:(i?1-o[1]:o[0])*r,end:(i?1-o[0]:o[1])*r}}function Js(){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?Gs:Xs}function Zs(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const o=(r-(n-t))/2,i=Math.max(0,0-(t-o))-Math.max(0,n+o-e);return{size:e,start:t-o+i,end:n+o+i}}return{size:e,start:t,end:n}}function Qs(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function el(){const{size:e,start:t,end:n}=Ks.call(this);this.renderer.render(this.elements(this.h,Zs.call(this,e,t,n)))}function tl(){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?Vs:Fs;return{container:{...Us},before:{...Us,...n.before,...t.before},after:{...Us,...n.after,...t.after},thumb:{...Us,...n.thumb,...t.thumb},startHandle:{...Us,...Ys,...n.startHandle},endHandle:{...Us,...Ys,...n.endHandle},startHandleBorder:{...Us,...Ws,...n.startHandleBorder},endHandleBorder:{...Us,...Ws,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var nl={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(){el.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||!Qs.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=Rs({e:e});t&&(this.state.hover[t]=!0),Js.call(this),el.call(this)},leave(){this.state.locked||(this.state.hover.reset(),Js.call(this),el.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=Rs({e:e});t&&(this.state.drag[t]=!0),Js.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),Js.call(this),el.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,o="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[o]*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}=Ks.call(this);return this.elements(e,Zs.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:o}=this.settings,i=o.injections().map((t=>t({h:e,rect:this.rect,orientation:o.orientation,minThumbSize:o.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:o,startHandleActive:i,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[o.end]:t-n},m={[o.start]:r},p={left:-3},f={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?m:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:m},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:p},class:"scrollbar--start-handle",[ks]:"start"},i?e("div",{style:{...s.startHandleBorder,...c?g:f}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?p:h},class:"scrollbar--end-handle",[ks]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?f:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[o.start]:n,[o.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:tl.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};function rl({layoutService:e}){return e.meta.isContinuous&&Cs({layoutService:e}).miniChart}function ol({models:e}){const{layoutService:t,fieldModel:n,seriesModel:r,colorService:o}=e,{primarySeries:i,secondarySeries:a}=r.meta,s=r.query.series(Ga.TYPE.LINE),l=[...gs({forceCreate:!0,key:Wa.COLLECTION.PRIMARY,series:i,fieldModel:n,colorService:o,layoutService:t}),...gs({key:Wa.COLLECTION.SECONDARY,series:a,fieldModel:n,colorService:o,layoutService:t}),...gs({key:Wa.COLLECTION.LINE,series:s,fieldModel:n,colorService:o,layoutService:t}),...hs({key:Wa.COLLECTION.STACKED_PRIMARY,layoutService:t,fieldModel:n,colorService:o,series:i}),...hs({key:Wa.COLLECTION.STACKED_SECONDARY,layoutService:t,fieldModel:n,colorService:o,series:a}),...ys({key:Wa.COLLECTION.STACKED_TOTAL_PRIMARY,layoutService:t,fieldModel:n,series:i}),...ys({key:Wa.COLLECTION.STACKED_TOTAL_SECONDARY,layoutService:t,fieldModel:n,series:a})];return rl(e)&&(l.push(...gs({key:Wa.COLLECTION.REDUCED,source:Wa.DATA.REDUCED,series:r.query.all(),fieldModel:n,colorService:o,layoutService:t})),l.push(...gs({key:Wa.COLLECTION.REDUCED_PRIMARY,source:Wa.DATA.REDUCED,series:i,fieldModel:n,colorService:o,layoutService:t})),l.push(...gs({key:Wa.COLLECTION.REDUCED_SECONDARY,source:Wa.DATA.REDUCED,series:a,fieldModel:n,colorService:o,layoutService:t})),l.push(...hs({key:Wa.COLLECTION.REDUCED_STACKED_PRIMARY,source:Wa.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.primarySeries.filter((e=>e.type===Ga.TYPE.BAR)),colorService:o})),l.push(...hs({key:Wa.COLLECTION.REDUCED_STACKED_SECONDARY,source:Wa.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.secondarySeries.filter((e=>e.type===Ga.TYPE.BAR)),colorService:o}))),l}const il=({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 al({models:e}){const{dockService:t,seriesModel:n,layoutService:r}=e,o=2===n.meta.measureAxes.length;if(o)return.5;const i=n.meta.measureAxes[0].isPrimary?t.meta.minor.dock:t.meta.minorSecondary.dock;if(!o){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"===i||"bottom"===i?1:0:"near"===i||"left"===i?0:1}const sl=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:o,dockService:i}=e,{orientation:a}=i.meta.major;return{data:{extract:{field:n.main.major,props:{selectionDimension:{field:n.main.major}}}},maxPxStep:il({layoutService:o,dockService:i}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:al({models:e})}},ll=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:o,dockService:i}=e,{orientation:a}=i.meta.major;return{type:"group-by-measure",data:{extract:{field:n.main.major}},measureCount:o.meta.groupSize,maxPxStep:il({layoutService:o,dockService:i}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:al({models:e})}};function cl({viewState:e,models:t,environment:n}){const{fieldModel:r,dockService:o}=t,{orientation:i}=o.meta.major;return{type:"linear",invert:"horizontal"===i&&"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 ul({viewCache:e,mainMajor:t}){return me(!0,{},t,{min:()=>e.get("continuousMin"),max:()=>e.get("continuousMax")})}function dl({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:o,max:i}=e.get("zoom"),a=(i-o)/(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 ml({picasso:e,viewState:t,viewCache:n,models:r,environment:o}){const{layoutService:i,fieldModel:a,appLayoutModel:s,themeService:l}=r,{measureText:c}=e.renderer("svg")(),{majorNumeric:u}=a.main,d=l.getStyles(),m={type:"time",data:{field:u},qAxis:()=>i.getHyperCubeValue("qAxisData.qAxis",[]),field:u,min:()=>t.get("zoom").min,max:()=>t.get("zoom").max,invert:"rtl"===o.options.direction,formatter:{fn:e.formatter("q-time"),localeInfo:s.qLocaleInfo,qNumFormat:i.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:dl({viewState:t,viewCache:n,layoutService:i})};return{[Wa.SCALE.MAJOR]:me(!0,{},m,{ticks:{level:"outer"}}),[Wa.SCALE.MAJOR_INNER]:me(!0,{},m,{ticks:{level:"inner"}})}}function pl({picasso:e,models:t,viewState:n,viewCache:r,environment:o}){const{meta:i}=t.layoutService,a=i.isTime?{...ml({picasso:e,viewState:n,viewCache:r,models:t,environment:o})}:i.isContinuous?{[Wa.SCALE.MAJOR]:cl({models:t,viewState:n,environment:o})}:i.isBarSeriesGrouped?{[Wa.SCALE.MAJOR]:ll({models:t,environment:o})}:{[Wa.SCALE.MAJOR]:i.isBarSeriesStackedInBothAxis?ll({models:t,environment:o}):sl({models:t,environment:o})};return rl(t)?{...a,[Wa.SCALE.REDUCED]:ul({viewCache:r,mainMajor:a[Wa.SCALE.MAJOR]})}:a}function fl({fields:e,tickModel:t,dockService:n,environment:r}){const o="rtl"===r.options.direction,{orientation:i}=n.meta.minor;return{data:{source:"qHyperCube",fields:e},invert:"vertical"===i||o,ticks:{values:t.query.getValues},min:t.query.getMin,max:t.query.getMax}}function hl({layoutService:e,tickModel:t,dockService:n,environment:r}){if(!rl({layoutService:e}))return;const o="rtl"===r.options.direction,{orientation:i}=n.meta.minor;return{type:"linear",invert:"vertical"===i||o,min:t.query.getMin,max:t.query.getMax}}function gl({picasso:e,models:t,viewState:n,viewCache:r,environment:o}){const{layoutService:i,fieldModel:a,primaryTickModel:s,secondaryTickModel:l,colorService:c,dockService:u}=t;return{...pl({picasso:e,models:t,viewState:n,viewCache:r,environment:o}),[Wa.SCALE.MINOR.PRIMARY]:fl({fields:a.main.minorsPrimary,tickModel:s,dockService:u,environment:o}),[Wa.SCALE.MINOR.SECONDARY]:fl({fields:a.main.minorsSecondary,tickModel:l,dockService:u,environment:o}),[Wa.SCALE.MINOR.REDUCED_PRIMARY]:hl({layoutService:i,tickModel:s,dockService:u,environment:o}),[Wa.SCALE.MINOR.REDUCED_SECONDARY]:hl({layoutService:i,tickModel:l,dockService:u,environment:o}),...c.custom.wrappedScales()}}var yl={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 vl=["all","labels"];function bl({models:e,flags:t}){const{layoutService:n,dockService:r,seriesModel:o,themeService:i,styleModel:a,animationsModel:s}=e,l=n.getLayoutValue("measureAxes");if(!l||!l.length)return[];const c=i.getStyles(),u=a.query.axis.label.getStyle(),{measureAxes:d}=o.meta;return d.filter((e=>{const t=e.isPrimary?0:1;return vl.some((e=>l[t].show===e))})).map((e=>({type:"axis",key:e.isPrimary?Wa.COMPONENT.AXIS.MINOR.PRIMARY:Wa.COMPONENT.AXIS.MINOR.SECONDARY,renderer:Ya(t),scale:e.scale,layout:{dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock,minimumLayoutMode:yl.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:Pa.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:Pa.axes.compensateForLayoutChanges({isMeasure:!0,dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock})}})))}var xl={INACTIVE:.5},Sl={LOWER:3,UPPER:13};const El=({layoutService:e})=>{const t=e.getHyperCubeValue("qDimensionInfo.0.qApprMaxGlyphCount"),[n]=e.getDataPages(),r=n?n.qMatrix:[];return Ne.getAdjustedMaxGlyphCount(t,r,0,"qText")};function Ml({models:e,environment:t,flags:n}){const{layoutService:r,dockService:o,styleModel:i,themeService:a,animationsModel:s}=e,l="rtl"===t.options.direction,c=r.getLayoutValue("dimensionAxis"),u=i.query.axis.label.getStyle(),d=El({layoutService:r}),{orientation:m}=o.meta.major,p="horizontal"===m,f=p?c.label:"auto",h=a.getStyles(),{auto:g,spacing:y}=r.getLayoutValue("gridLine",{});return{type:"axis",key:Wa.COMPONENT.AXIS.MAJOR,renderer:Ya(n),scale:Wa.SCALE.MAJOR,layout:{dock:o.meta.major.dock,minimumLayoutMode:yl.AXIS.MAJOR[m.toUpperCase()]},settings:{labels:{mode:c.label,tiltAngle:l?-40:40,maxEdgeBleed:50,maxLengthPx:"horizontal"===f?void 0:o.meta.minor.size/4,maxGlyphCount:d,tiltThreshold:d>Sl.LOWER&&d<Sl.UPPER?1:void 0,fontFamily:u.fontFamily,fontSize:u.fontSize,fill:u.fill},line:{show:!g&&0===y,stroke:h.axis.line.major.color},paddingEnd:4},brush:{consume:[{context:"selection",style:{inactive:{opacity:xl.INACTIVE}}}]},animations:{enabled:s.enabled,trackBy:Pa.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:Pa.axes.compensateForLayoutChanges({isHorizontal:p})}}}function Cl({models:e,flags:t}){const{dockService:n,styleModel:r,themeService:o,layoutService:i,animationsModel:a}=e,{orientation:s}=n.meta.major,l=r.query.axis.label.getStyle(),c=o.getStyles(),{auto:u,spacing:d}=i.getLayoutValue("gridLine",{});return{type:"axis",key:Wa.COMPONENT.AXIS.MAJOR_CONTINUOUS,renderer:Ya(t),scale:Wa.SCALE.MAJOR,layout:{dock:n.meta.major.dock,minimumLayoutMode:yl.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:Pa.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:Pa.axes.compensateForLayoutChanges({isContinuous:!0})}}}function wl({models:e,environment:t,flags:n}){const{layoutService:r}=e,o=r.getLayoutValue("dimensionAxis");if(!o)return[];const{show:i}=o;return"none"===i||"title"===i?[]:r.meta.isTime?function({models:e,environment:t}){const{dockService:n,themeService:r,styleModel:o,layoutService:i,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=o.query.axis.label.getStyle(),m=s?1:0,{auto:p,spacing:f}=i.getLayoutValue("gridLine",{}),h={type:"time-axis",renderer:"svg",layout:{dock:n.meta.major.dock,minimumLayoutMode:yl.AXIS.MAJOR[l]},preferredSize:()=>({size:2*parseFloat(d.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:s?"end":"start",label:{align:c,justify:m},guideLine:{major:{justify:m},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:Pa.axes.trackBy({isTime:!0}),compensateForLayoutChanges:Pa.axes.compensateForLayoutChanges({isTime:!0})}};return[me(!0,{},h,{key:Wa.COMPONENT.AXIS.TIME_INNER,scale:Wa.SCALE.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!p&&0===f}},style:{majorGuideLine:{stroke:u.axis.line.minor.color},minorGuideLine:{stroke:u.axis.line.major.color},line:{stroke:u.axis.line.major.color}}}),me(!0,{},h,{key:Wa.COMPONENT.AXIS.TIME_OUTER,scale:Wa.SCALE.MAJOR,settings:{guideLine:{minor:{show:!1}}}})]}({models:e,environment:t}):r.meta.isContinuous?[Cl({models:e,flags:n})]:[Ml({models:e,environment:t,flags:n})]}const Tl=({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,Ol=({layoutService:e,seriesModel:t,rtl:n,orientation:r})=>e.meta.isContinuous?null:e.meta.isBarSeriesGrouped?({scale:e,datum:o})=>e([o.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 kl({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:xl.INACTIVE},...n}}}]}}var Rl="max",Al="min";function Nl(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 Ll=(e,t)=>`${e}-${t.id}`,Il=4,Pl=12,Dl=4;function ql({chart:e,layoutService:t,dockService:n,markerKey:r,markerType:o}){if(t.meta.isContinuous)return()=>`${Dl}px`;const i={size:void 0},a="horizontal"===n.meta.major.orientation?"width":"height";return t=>{if(!i.size){const n=e.component(r),s=t.resources.scale(Wa.SCALE.MAJOR),l=n.rect[a]*s.bandwidth()*.25,c=Math.max(Il,Math.min(Pl,l));i.size=`${"bar"===o?2*c:c}px`}return i.size}}const zl=({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:$l}=Dt;const jl=({chart:e,models:t,series:n,environment:r})=>{const{layoutService:o,seriesModel:i,colorService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,animationsModel:u}=t,d=a.getColor(),{fill:m,marker:p}=n.options,{isContinuous:f}=o.meta,h="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 Nl(t,v)},x=Ll(Wa.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:Wa.SCALE.MAJOR,fn:Ol({layoutService:o,seriesModel:i,rtl:h,orientation:g}),ref:f?"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:m||"bar"===p?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 m?$l(t)?function(e){return it(e).brighter(.5).toString()}(t):function(e){return it(e).darker().toString()}(t):t},size:ql({chart:e,layoutService:o,dockService:s,markerKey:x,markerType:p}),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:p,horizontal:y,rtl:h})},brush:kl({layoutService:o,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:xl.INACTIVE}}}),animations:{enabled:u.enabled,isMainComponent:zl({series:n}),trackBy:Pa.markers.trackBy,compensateForLayoutChanges:Pa.markers.compensateForLayoutChanges}}};function Fl({property:e="end",isHorizontal:t,isColor:n,fallback:r,rtl:o}){return function(i){const{datum:a,resources:{scale:s}}=i,l=s(Wa.SCALE.MAJOR),c=s(Wa.SCALE.COLOR),u=t&&o?[...a.points].reverse():a.points,d=u.reduce(((t,n,r)=>{const o="NaN"===n[e].value||Number.isNaN(n[e].value),i=u[r+1],a=i&&"NaN"!==i[e].value&&!Number.isNaN(i[e].value);return o?t.length&&a&&t.push(n):t.push(n),t}),[]),m="group-by-measure"===l.type?e=>l([e.major.value,e.typeIndex.value]):e=>l(e.major.value),p=d.map(m),f=Math.min(...p),h=Math.max(...p)-f,g=0===h?1:h,y=p.map(((e,t)=>0===t?0:t===p.length-1?1:(e-f)/g)),v=[];for(let t=0;t<d.length;t++){const o=d[t],i=o.color&&o.color.value,a=n?i||r:c(i)||r,s=0===t,l=t===d.length-1,u=y[t];if("NaN"===o[e].value||Number.isNaN(o[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],o=t.offset+(r.offset-t.offset)/2;e.push({color:t.color,offset:o},{color:r.color,offset:o})}else e.push(t);return e}),[]);return{type:"gradient",x1:0,x2:t?1:0,y1:0,y2:t?0:1,stops:b}}}function _l({environment:e,models:t,measureIndex:n}){const{layoutService:r,colorService:o,dockService:i}=t,a="rtl"===e.options.direction,{hasMultipleMeasures:s}=r.meta,{mode:l,type:c,nil:u}=o.getSettingsForMeasure(n),d="horizontal"===i.meta.major.orientation;if(!l||"constant"===c)return o.getColor();if("measure"===l&&"categorical"===c)return o.getColor();const m=r.getHyperCubeValue(`qMeasureInfo.${n}.color`);if(null!=m&&m.on)return"byExpression"===m.mode?Fl({isHorizontal:d,isColor:!0,fallback:u,rtl:a}):o.getColor();const p=r.getLayoutValue("color",{}),f=!p.auto&&"byExpression"===p.mode,h=!!p.colorExpression;if(f&&!h)return u;const g=!p.auto&&"byMeasure"===p.mode&&p.byMeasureDef&&void 0!==p.byMeasureDef.activeMeasureIndex;return s||!g?Fl({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:o}}=n,i=o(Wa.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=i.domain().map((e=>({color:i(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(o){const{datum:{points:i},resources:{scale:a}}=o,s=a(Wa.SCALE.COLOR),l=i.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,m=(t?Math.max(0,u):u)-d,p=0===m?1:m,f=s.domain(),h=[];for(let e=0;e<f.length-1;e++){const t=f[e],r=s(t)||n;h.push({color:r,offset:Math.min(1,Math.max(0,(t-d)/p))});const o=f[e+1];h.push({color:r,offset:Math.min(1,Math.max(0,(o-d)/p))})}return{type:"gradient",x1:!e&&r?1:0,x2:e||r?0:1,y1:e?1:0,y2:0,stops:h}}}({isHorizontal:d,fallback:u,rtl:a})}const Bl=({models:e,environment:t,series:n})=>{const{layoutService:r,seriesModel:o,dockService:i,styleModel:a,animationsModel:s}=e,l="rtl"===t.options.direction,{orientation:c}=i.meta.major,u=Ol({layoutService:r,seriesModel:o,rtl:l,orientation:c});return{key:Ll(Wa.COMPONENT.LINE,n),type:"line",data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{coordinates:{major:{scale:Wa.SCALE.MAJOR,fn:u},minor:{scale:n.scale,ref:"end"}},layers:{curve:a.query.line.getCurveFn(),line:{stroke:_l({models:e,environment:t,measureIndex:n.refIndex}),strokeWidth:a.query.line.getStrokeWidthFn(),strokeDasharray:a.query.line.getStrokeDasharrayFn(),strokeLinejoin:"round"}},connect:n.options.showAsConnections,orientation:i.meta.major.orientation},brush:kl({layoutService:r,active:{stroke:void 0,strokeWidth:void 0,opacity:xl.INACTIVE},inactive:{opacity:xl.INACTIVE}}),animations:{enabled:s.enabled,isMainComponent:!!zl({series:n})&&{filterFn:e=>e.commonPoints.length>0},trackBy:Pa.lines.trackBy,compensateForLayoutChanges:Pa.lines.compensateForLayoutChanges}}};var Hl={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 Vl({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}),o=n?(e,t)=>0!==e&&t.slice(0,e).reverse().some((e=>!r({item:e}))):(e,t)=>0!==e&&!r({item:t[e-1]}),i=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:o(e,t),after:i(e,t)})}const Ul=3,Yl=20;function Wl({models:e,series:t,environment:n}){const{layoutService:r,colorService:o,seriesModel:i,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,selectionService:u,animationsModel:d}=e,m=r.getLayoutValue("dataPoint.show",!1),{orientation:p}=a.meta.major,f="horizontal"===p,h="SPARK"===a.meta.chart.mode,g=o.getColor(),{POINT:y}=Hl,v=function({layoutService:e,series:t}){const n={key:void 0,map:void 0},r=Vl({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:o}=e.line,i=n.map[o],a=`${e.major.value}-${o}`,s=i.keys.indexOf(a),{before:l,after:c}=r({index:s,items:i.items});return!l&&!c}}({series:t,layoutService:r}),b="rtl"===n.options.direction,x=(t.isPrimary?l:c).query.getExtrema(),{isContinuous:S}=r.meta,E=({end:e})=>{const{value:t}=e;return Nl(t,x)};return{type:"point",key:Ll(Wa.COMPONENT.POINT,t),data:{filter:e=>t.ref===e.end.source.field,collection:t.collection},preferredSize:()=>({edgeBleed:{top:f?y.SIZE.DEFAULT/2:0}}),settings:{[f?"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))}},[f?"x":"y"]:{scale:Wa.SCALE.MAJOR,fn:Ol({layoutService:r,seriesModel:i,rtl:b,orientation:p}),ref:"major"},sizeLimits:{minPx:Ul,maxPx:Yl},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||E(e)?0:h?v({item:e,items:t.items})?1:0:m||v({item:e,items:t.items})?1:0}},brush:kl({layoutService:r,active:{r:e=>e.r+Hl.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)||E(e.data))return 0;if(!S||m)return 1;const{event:n,components:r=[]}=(null==u?void 0:u.getSelectionInfo())||{};if("continuousRange"===n)return 0;if("tap"!==n)return 1;const o=[Wa.COMPONENT.AXIS_OVERLAY.CONTINUOUS,Wa.COMPONENT.AXIS_OVERLAY.TIME_INNER,Wa.COMPONENT.AXIS_OVERLAY.TIME_OUTER].some((e=>r.indexOf(e)>=0));return o?0:1}},inactive:{opacity:e=>1===e.opacity?.5:0}}),animations:{enabled:d.enabled,trackBy:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.points.compensateForLayoutChanges}}}const Gl=(e,{dataset:t},n=!1)=>{const{value:r,label:o,source:i}=n?e.segment:e.end,a=t(i.key).field(i.field);return Se.shouldUseFormat(a.raw())?a.formatter()(r):o};function Xl({chart:e,models:t,environment:n,flags:r,lineSeries:o}){const{layoutService:i,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,animationsModel:u}=t,d="rtl"===n.options.direction,m=i.getLayoutValue("dataPoint");if(!m)return!1;if(!m.show||!m.showLineLabels)return!1;if(!o.length)return!1;const p=s.query.point.label.getStyle();return{type:"point-label",key:Wa.COMPONENT.POINT_LABEL,renderer:Ya(r),layout:{displayOrder:2,minimumLayoutMode:yl.VALUE_LABEL},settings:{orientation:a.meta.major.orientation,rtl:d,label:t=>Gl(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,lineId:e=>e.data.typeIndex.value,configs:o.map((e=>({key:`${Wa.COMPONENT.POINT}-${e.id}`,labels:!0,lines:!0}))),showLabel:e=>{const t=parseInt(e.key.substr(e.key.length-1),10),n=(o.find((e=>e.id===t)).isPrimary?l:c).query.getExtrema();return!Nl(e.data.end.value,n)},labelSpace:{use:()=>{const t=e.component(Wa.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10}},style:{fontFamily:p.fontFamily,fontSize:p.fontSize,fill:p.fill},animations:{enabled:u.enabled,trackBy:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.labels.compensateForLayoutChanges}}}const Kl=({chart:e,models:t,environment:n,flags:r,markerSeries:o})=>{const{layoutService:i,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,animationsModel:u}=t,d="rtl"===n.options.direction,m=s.query.marker.label.getStyle(),p=i.getLayoutValue("dataPoint");return!(null==p||!p.showMarkerLabels)&&(!!o.length&&{type:"point-label",key:Wa.COMPONENT.MARKER_LABEL,renderer:Ya(r),layout:{displayOrder:2,minimumLayoutMode:yl.VALUE_LABEL},settings:{orientation:a.meta.major.orientation,rtl:d,label:t=>Gl(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,lineId:e=>e.data.typeIndex.value,configs:o.map((e=>({key:`${Wa.COMPONENT.MARKER}-${e.id}`,labels:!0,lines:!1,fixed:!0}))),showLabel:e=>{const t=parseInt(e.key.substr(e.key.length-1),10),n=(o.find((e=>e.id===t)).isPrimary?l:c).query.getExtrema();return!Nl(e.data.end.value,n)},labelSpace:{use:()=>{const t=e.component(Wa.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10}},style:{fontFamily:m.fontFamily,fontSize:m.fontSize,fill:m.fill},animations:{enabled:u.enabled,trackBy:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.labels.compensateForLayoutChanges}})},Jl=({chart:e,dock:t})=>{let n=t;const r=e.component(`${Wa.COMPONENT.SLICED_HAT}-${Rl}`),o=e.component(`${Wa.COMPONENT.SLICED_HAT}-${Rl}-${Ga.AXIS.PRIMARY}`),i=e.component(`${Wa.COMPONENT.SLICED_HAT}-${Rl}-${Ga.AXIS.SECONDARY}`);return r?n=`@${Wa.COMPONENT.SLICED_HAT}-${Rl}`:o?n=`@${Wa.COMPONENT.SLICED_HAT}-${Rl}-${Ga.AXIS.PRIMARY}`:i&&(n=`@${Wa.COMPONENT.SLICED_HAT}-${Rl}-${Ga.AXIS.SECONDARY}`),n},Zl=({dockPosition:e,orientation:t,rtl:n})=>{let r=1;return e!==`@${Wa.COMPONENT.SLICED_HAT}-${Rl}`&&e!==`@${Wa.COMPONENT.SLICED_HAT}-${Rl}-${Ga.AXIS.PRIMARY}`&&e!==`@${Wa.COMPONENT.SLICED_HAT}-${Rl}-${Ga.AXIS.SECONDARY}`||!("horizontal"===t||"vertical"===t&&n)||(r=4),e!==`@${Wa.COMPONENT.SLICED_HAT}-${Al}`&&e!==`@${Wa.COMPONENT.SLICED_HAT}-${Al}-${Ga.AXIS.PRIMARY}`&&e!==`@${Wa.COMPONENT.SLICED_HAT}-${Al}-${Ga.AXIS.SECONDARY}`||"vertical"!==t||n||(r=4),r};function Ql({chart:e,models:t,environment:n,lineSeries:r}){const{layoutService:o,dockService:i,primaryExtremumModel:a,secondaryExtremumModel:s}=t,l=o.getLayoutValue("dataPoint",{}),c="rtl"===n.options.direction;if(!r.length)return!1;if(!l.show||!l.showLineLabels)return!1;const u="horizontal"===i.meta.major.orientation,{show:d}=o.getLayoutValue("dimensionAxis",{});if("none"!==d){const{dock:e}=i.meta.major;if(u&&"top"===e)return!1;if(!u&&e===(c?"left":"right"))return!1}const m=c?"left":"right";return{type:"label-space",key:Wa.COMPONENT.LABEL_SPACE,layout:{minimumLayoutMode:yl.LABEL_SPACE,dock:Jl({chart:e,dock:u?"top":m})},settings:{size:10},preferredSize:()=>{const t=e.component(`${Wa.COMPONENT.LINE}-${r[0].id}`);if(null==t||!t.rect)return 0;const n=(u?17:34)/t.rect[u?"height":"width"],o=a.query.getExtrema(),i=e.scale(Wa.SCALE.MINOR.PRIMARY)(o.implicit.line.max),l=u||c?i:1-i,d=r.filter((e=>e.isPrimary)).length>0,m=s.query.getExtrema(),p=e.scale(Wa.SCALE.MINOR.SECONDARY)(m.implicit.line.max),f=u||c?p:1-p,h=r.filter((e=>!e.isPrimary)).length>0;return d&&l<n||h&&f<n?10:0}}}const ec={min:"Min",max:"Max"};function tc(e,t,n){const{hasExplicitMax:r}=n.meta,{max:o}=n.explicit;return!!r&&Math.max(e,t)>o&&o<=Math.min(e,t)}function nc(e,t,n){const{hasExplicitMin:r}=n.meta,{min:o}=n.explicit;return!!r&&Math.min(e,t)<o&&o>=Math.max(e,t)}function rc(e,t,n){return tc(e,t,n)||nc(e,t,n)}function oc(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r<=0}function ic(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r>=0}function ac(e,t){return oc(e,t)||ic(e,t)}function sc({extrema:e,type:t}){return!(function({extrema:e,type:t}){return!e.meta[`hasExplicit${ec[t]}`]}({extrema:e,type:t})||function({extrema:e,type:t}){const n=t===Rl?e.implicit.bar.max:e.implicit.bar.min,r=Number(n.toFixed(13));return t===Rl?!oc(r,e):!ic(r,e)}({extrema:e,type:t}))}var lc=Object.freeze({__proto__:null,isMaxOutOfBounds:oc,isMinOutOfBounds:ic,isOutOfBounds:ac,isSegmentMaxOutOfBounds:tc,isSegmentMinOutOfBounds:nc,isSegmentOutOfBounds:rc,shouldShowOob:sc});const cc={min:"Min",max:"Max"},uc=({chart:e,models:t,markerSeries:n,lineSeries:r,barSeries:o,environment:i,type:a})=>{const{dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,primaryTickModel:u,secondaryTickModel:d,layoutService:m,seriesModel:p,themeService:f,fieldModel:h,animationsModel:g}=t,y="rtl"===i.options.direction,{dock:v,opposite:b,orientation:x}=s.meta.major,S=l.query.getExtrema(),E=c.query.getExtrema(),M=a===Rl,{isBarSeriesGrouped:C}=m.meta,w=(({chart:e,type:t,opposite:n,dock:r})=>{let o=t===Rl?n:r;const i=e.component(`${Wa.COMPONENT.SLICED_HAT}-${t}`),a=e.component(`${Wa.COMPONENT.SLICED_HAT}-${t}-${Ga.AXIS.PRIMARY}`),s=e.component(`${Wa.COMPONENT.SLICED_HAT}-${t}-${Ga.AXIS.SECONDARY}`),l=e.component(Wa.COMPONENT.LABEL_SPACE),c=e.component(`${Wa.COMPONENT.BAR_OOB}-${t}`),u=e.component(`${Wa.COMPONENT.BAR_OOB}-${t}-${Ga.AXIS.PRIMARY}`),d=e.component(`${Wa.COMPONENT.BAR_OOB}-${t}-${Ga.AXIS.SECONDARY}`);return i?o=`@${Wa.COMPONENT.SLICED_HAT}-${t}`:a?o=`@${Wa.COMPONENT.SLICED_HAT}-${t}-${Ga.AXIS.PRIMARY}`:s?o=`@${Wa.COMPONENT.SLICED_HAT}-${t}-${Ga.AXIS.SECONDARY}`:c||u||d?l&&t===Rl?o=`@${Wa.COMPONENT.LABEL_SPACE}`:c?o=`@${Wa.COMPONENT.BAR_OOB}-${t}`:u?o=`@${Wa.COMPONENT.BAR_OOB}-${t}-${Ga.AXIS.PRIMARY}`:d&&(o=`@${Wa.COMPONENT.BAR_OOB}-${t}-${Ga.AXIS.SECONDARY}`):l&&t===Rl&&(o=`@${Wa.COMPONENT.LABEL_SPACE}`),o})({chart:e,type:a,opposite:b,dock:v}),T=Ol({layoutService:m,seriesModel:p,rtl:y,orientation:x}),O=r.concat(n);if(!O.length)return!1;const k=M?S.implicit.bar.max:S.implicit.bar.min,R=Number(k.toFixed(13));if(!C&&o.length&&lc[`is${cc[a]}OutOfBounds`](R,S))return!1;if(!S.meta.hasExplicit&&!E.meta.hasExplicit)return!1;const A=M?"max":"min",N=Math[A](Number(S.implicit.line[A].toFixed(13)),Number(S.implicit.marker[A].toFixed(13))),L=Math[A](Number(E.implicit.line[A].toFixed(13)),Number(E.implicit.marker[A].toFixed(13))),I=O.filter((e=>e.isPrimary)),P=O.filter((e=>!e.isPrimary)),D=I.length>0,q=P.length>0,{major:z,majorNumeric:$}=h.main,j=e=>"NaN"!==e.qNum?e.qNum:0,F=m.meta.isContinuous?$:z;return{type:"data-out-of-bounds-marker",key:`${Wa.COMPONENT.DATA_OOB_MARKER}-${a}`,layout:{dock:w,minimumLayoutMode:yl.OUT_OF_BOUNDS_MARKER},data:{extract:O.map((({ref:e,typeIndex:t,options:n})=>({field:z,value:m.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:F},end:{field:e,value:n.showAsZeros?j: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:I,secondarySeries:P,orientation:x,rtl:y,major:{scale:Wa.SCALE.MAJOR,fn:T},markerOffset:Zl({dockPosition:w,orientation:x,rtl:y})},brush:kl({layoutService:m}),show:()=>{if(M){if(D&&N>u.query.getMax())return!0;if(q&&L>d.query.getMax())return!0}if(!M){if(D&&N<u.query.getMin())return!0;if(q&&L<d.query.getMin())return!0}return!1},style:{fill:f.getStyles().outOfRange.color},animations:{enabled:g.enabled,compensateForLayoutChanges:Pa.lineOobs.compensateForLayoutChanges}}},dc={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function mc({chart:e,models:t,viewState:n,viewCache:r,axis:o}){const i=C(),{dockService:a}=t;return({data:t})=>(({items:t})=>{const{rect:n}=e.component(`${Wa.COMPONENT.BAR}-${o}`)||{};return(!t.length||!n)&&2})(t)||(()=>{const{min:e,max:t}=n.get("zoom");return i.get([e,t])||i.empty()&&!1})()||(()=>{const e=dc[a.meta.chart.mode];return 0===Math.abs(r.get("continuousMax")-r.get("continuousMin"))&&e})()||(()=>{const{min:e,max:t}=n.get("zoom"),o=Math.abs(r.get("continuousMax")-r.get("continuousMin")),s=Math.abs(t-e),l=dc[a.meta.chart.mode],c=function(e,t,n){return e*(1-n)+t*n}(2,l,1-Math.min(s/o/.2,1));return i.set([e,t],Math.max(2,Math.min(l,c)))})()}const pc=({isContinuous:e,isBarSeriesGrouped:t,styleModel:n,discreteModel:r,isBarSeriesStackedInBothAxis:o})=>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()(),o=t+e;return o>1?t-(o-1):t}:n.query.bar.getWidthFn():t||o?.9:.7;function fc(e){return Math.min(Math.max(0,e),1)}const hc=({chart:e,models:t,viewState:n,viewCache:r,isPrimary:o})=>{const{layoutService:i,dockService:a,colorService:s,seriesModel:l,styleModel:c,discreteModel:u,primaryExtremumModel:d,secondaryExtremumModel:m,animationsModel:p}=t,{isContinuous:f,isBarSeriesStacked:h,isBarSeriesGrouped:g,isBarSeriesStackedInBothAxis:y}=i.meta,v=e=>e.datum.start?e.datum.start.value:e.scale.min(),b=o?Ga.AXIS.PRIMARY:Ga.AXIS.SECONDARY,x=o?Wa.SCALE.MINOR.PRIMARY:Wa.SCALE.MINOR.SECONDARY;if(!(o?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount))return!1;const S=h?{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return fc(e.scale(t))}},end:{ref:"end",fn:e=>{const t=(e=>e.datum.end?e.datum.end.value:v(e))(e);return fc(e.scale(t))}}}:{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return fc(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 fc(e.scale(n))}}},E=(o?d:m).query.getExtrema(),M=h?({start:e,end:t})=>rc(e.value,t.value,E):({end:e})=>ac(e.value,E);return{type:"box",key:`${Wa.COMPONENT.BAR}-${b}`,data:{filter:(()=>{if(h)return;const e=l.query.series(Ga.TYPE.BAR).filter((e=>e.isPrimary===o)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:h?o?Wa.COLLECTION.STACKED_PRIMARY:Wa.COLLECTION.STACKED_SECONDARY:o?Wa.COLLECTION.PRIMARY:Wa.COLLECTION.SECONDARY},preferredSize:f?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,settings:{orientation:a.meta.minor.orientation,major:{scale:Wa.SCALE.MAJOR,fn:Tl({layoutService:i,axis:b}),ref:f?{start:"major",end:"major"}:void 0},minor:S,box:{width:pc({isContinuous:f,isBarSeriesGrouped:g,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:y}),minWidthPx:f?mc({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:kl({layoutService:i,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:xl.INACTIVE}}}),animations:{enabled:p.enabled,isMainComponent:zl({isPrimary:o,seriesModel:l}),trackBy:Pa.bars.trackBy,compensateForLayoutChanges:Pa.bars.compensateForLayoutChanges}}},gc=({chart:e,models:t,viewState:n,viewCache:r,isPrimary:o})=>{const{layoutService:i,dockService:a,colorService:s,seriesModel:l,styleModel:c,discreteModel:u}=t,{isBarSeriesStacked:d,isContinuous:m,isBarSeriesGrouped:p,isBarSeriesStackedInBothAxis:f}=i.meta,h=o?Ga.AXIS.PRIMARY:Ga.AXIS.SECONDARY,g=o?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount;if(!d||0===g)return!1;return{key:`${Wa.COMPONENT.STACK_BAR}-${h}`,type:"box",data:{collection:o?Wa.COLLECTION.STACKED_TOTAL_PRIMARY:Wa.COLLECTION.STACKED_TOTAL_SECONDARY},settings:{major:{scale:Wa.SCALE.MAJOR,fn:Tl({layoutService:i,axis:h}),ref:m?{start:"timeStart",end:"timeEnd"}:void 0},minor:{scale:o?Wa.SCALE.MINOR.PRIMARY:Wa.SCALE.MINOR.SECONDARY,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:a.meta.minor.orientation,box:{width:pc({isContinuous:m,isBarSeriesGrouped:p,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:f}),minWidthPx:m?mc({chart:e,models:t,viewState:n,viewCache:r,axis:h}):2,opacity:0,fill:s.getColor()},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}};function yc(e,t){const n="horizontal"===e.dockService.meta.major.orientation,{style:r}=t,o=e.styleModel.query.bar.label.getStyle();return{placements:t.simplifiedPlacements.map((e=>{const t=o.useContrastColor&&!e.onBackground?function({style:e,simplifiedPlacement:t}){return n=>Dt.isDark(t.background?t.background.fill:n.node.attrs.fill)?e.lightColor:e.darkColor}({style:r,simplifiedPlacement:e}):o.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 vc(e,t,n,r){const o=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 i="up";return"vertical"===t&&o<0?i="down":"horizontal"===t&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}const bc=(e,t)=>{const{showBarLabels:n,showBarSegmentLabels:r}=e;if(!n)return!1;const{isBarSeriesStacked:o,isContinuous:i}=t;return!o||!i&&!!r},xc=(e,t)=>{const{showBarLabels:n,showBarTotalLabels:r}=e;if(!n)return!1;const{isBarSeriesStacked:o,isContinuous:i}=t;return!!o&&(!!i||!1!==r)};function Sc(e,t,n,r){const o=[];return void 0!==e&&(o[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(o[t]={position:"inside",onBackground:!1,justify:n}),o}const Ec=({models:e,environment:t,flags:n,isPrimary:r})=>{const{layoutService:o,seriesModel:i,styleModel:a,themeService:s,animationsModel:l}=e,{meta:c}=o,{isBarSeriesStacked:u}=c,d="rtl"===t.options.direction,m=s.getStyles(),p=a.query.bar.label.getStyle(),f=e.layoutService.getLayoutValue("dataPoint",{}),h=r?Ga.AXIS.PRIMARY:Ga.AXIS.SECONDARY;if(!(r?i.meta.primaryBarSeriesCount:i.meta.secondaryBarSeriesCount)||!bc(f,c))return!1;let g;!u&&(g=u?1:0);const y={label:e=>Gl(e.data,e,u),simplifiedPlacements:Sc(g,0===g?1:0,u?.5:1,c.isContinuous),style:m.label.value},v=[yc(e,y)],b={component:`${Wa.COMPONENT.BAR}-${h}`,selector:"rect",strategy:{type:"bar",settings:{direction:t=>vc(t.data.end.value,e.dockService.meta.minor.orientation,d,0),labels:v,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily}}},x=[b];return{type:"labels",key:`${Wa.COMPONENT.BAR_LABEL}-${h}`,renderer:Ya(n),layout:{minimumLayoutMode:yl.VALUE_LABEL},settings:{sources:x},animations:{enabled:l.enabled,trackBy:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.labels.compensateForLayoutChanges}}};function Mc(e,t,n,r){const o=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#cce6e6e6",padding:{left:2,right:2,top:2,bottom:2}};o.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return o}function Cc({chart:e,models:t,environment:n,flags:r,isPrimary:o}){const{meta:i}=t.layoutService,a="rtl"===n.options.direction,s=t.themeService.getStyles(),l=t.styleModel.query.bar.label.getStyle(),c=t.layoutService.getLayoutValue("dataPoint",{}),u=o?Ga.AXIS.PRIMARY:Ga.AXIS.SECONDARY;if(0===(o?t.seriesModel.meta.primaryBarSeriesCount:t.seriesModel.meta.secondaryBarSeriesCount)||!xc(c,i))return!1;const d=!bc(c,i),m=l.useContrastColor,p=e.formatter(o?Wa.FORMATTER.PRIMARY:Wa.FORMATTER.SECONDARY)||(e=>e),f=e=>p(e),h={label:e=>0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":f(e.data.sumOfPositives.value),simplifiedPlacements:Mc("outside",d,m,i.isContinuous),style:s.label.value},g={label:e=>0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":f(e.data.sumOfNegatives.value),simplifiedPlacements:Mc("opposite",d,m,i.isContinuous),style:s.label.value},y=[yc(t,h),yc(t,g)];return{type:"labels",key:`${Wa.COMPONENT.STACK_BAR_LABEL}-${u}`,renderer:Ya(r),layout:{displayOrder:2,minimumLayoutMode:yl.VALUE_LABEL},settings:{sources:[{component:`${Wa.COMPONENT.STACK_BAR}-${u}`,selector:"rect",strategy:{type:"bar",settings:{direction:e=>vc(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:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.labels.compensateForLayoutChanges}}}var wc=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 Tc={min:"Min",max:"Max"};function Oc({chart:e,models:t,type:n,viewCache:r,viewState:o,isPrimary:i}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,styleModel:u,discreteModel:d}=t,{isBarSeriesStacked:m,isContinuous:p,isBarSeriesGrouped:f,isBarSeriesStackedInBothAxis:h}=a.meta,g=m?gc({chart:e,models:t,viewCache:r,viewState:o,isPrimary:i}):hc({chart:e,models:t,viewCache:r,viewState:o,isPrimary:i}),y=i?l.query.getExtrema():c.query.getExtrema(),v=n===Rl,b=i?Ga.AXIS.PRIMARY:Ga.AXIS.SECONDARY;if(!g)return!1;if(function(e,t){return!e.meta[`hasExplicit${Tc[t]}`]}(y,n)||function(e,t,n){const r=n?e.implicit.bar.max:e.implicit.bar.min,o=Number(r.toFixed(13));return!wc[`has${Tc[t]}Hat`](o,e)}(y,n,v)||function(e,t,n){const r=n?e=>e<0:e=>e>0;return e.meta[`hasExplicit${Tc[t]}`]&&r(e.explicit[t])}(y,n,v))return!1;let x="end";m&&(x=v?"sumOfPositives":"sumOfNegatives");const S=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.scale(i?Wa.SCALE.MINOR.PRIMARY:Wa.SCALE.MINOR.SECONDARY)[n]()));const E=(({chart:e,type:t,isPrimary:n,dock:r})=>{let o=r;const i=e.component(`${Wa.COMPONENT.SLICED_HAT}-${t}-${Ga.AXIS.PRIMARY}`),a=e.component(`${Wa.COMPONENT.SLICED_HAT}-${t}-${Ga.AXIS.SECONDARY}`);return i&&a&&(o=n?r:`@${Wa.COMPONENT.SLICED_HAT}-${t}-${Ga.AXIS.PRIMARY}`),o})({chart:e,type:n,isPrimary:i,dock:v?s.meta.minor.end:s.meta.minor.start}),M={type:"box-sliced-hat",key:`${Wa.COMPONENT.SLICED_HAT}-${n}-${b}`,layout:{dock:E},data:g.data,settings:{orientation:g.settings.orientation,major:g.settings.major,minor:g.settings.minor,hat:me({},g.settings.box,{fill:m?"#999":g.settings.box.fill,alignment:1,opacity:1,show:function(e){const t=S(),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[x].value);return v?n>t:n<t},width:pc({isContinuous:p,isBarSeriesGrouped:f,styleModel:u,discreteModel:d,isBarSeriesStackedInBothAxis:h}),strokeWidth:u.query.bar.getStrokeWidth(),stroke:u.query.bar.getStrokeColor()})},brush:kl({layoutService:a})};return M}const kc={min:"Min",max:"Max"},Rc={sumOfPositives:"sumOfNegatives",sumOfNegatives:"sumOfPositives"};function Ac({chart:e,models:t,type:n,viewCache:r,viewState:o,isPrimary:i}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,themeService:u,animationsModel:d}=t,{end:m,start:p}=s.meta.minor,{isBarSeriesStacked:f}=a.meta,h=f?gc({chart:e,models:t,viewCache:r,viewState:o,isPrimary:i}):hc({chart:e,models:t,viewCache:r,viewState:o,isPrimary:i}),g=i?l.query.getExtrema():c.query.getExtrema(),y=n===Rl?g.implicit.bar.max:g.implicit.bar.min,v=Number(y.toFixed(13)),b=i?Ga.AXIS.PRIMARY:Ga.AXIS.SECONDARY;if(!h)return!1;if(!lc[`is${kc[n]}OutOfBounds`](v,g))return!1;const x=(({chart:e,type:t,end:n,start:r,isPrimary:o})=>{let i=t===Rl?n:r;const a=e.component(Wa.COMPONENT.LABEL_SPACE),s=e.component(`${Wa.COMPONENT.SLICED_HAT}-${t}-${Ga.AXIS.PRIMARY}`),l=e.component(`${Wa.COMPONENT.SLICED_HAT}-${t}-${Ga.AXIS.SECONDARY}`),c=e.component(`${Wa.COMPONENT.BAR_OOB}-${t}-${Ga.AXIS.PRIMARY}`),u=e.component(`${Wa.COMPONENT.BAR_OOB}-${t}-${Ga.AXIS.SECONDARY}`);return s?i=`@${Wa.COMPONENT.SLICED_HAT}-${t}-${Ga.AXIS.PRIMARY}`:l?i=`@${Wa.COMPONENT.SLICED_HAT}-${t}-${Ga.AXIS.SECONDARY}`:c&&u&&!o?i=`@${Wa.COMPONENT.BAR_OOB}-${t}-${Ga.AXIS.PRIMARY}`:a&&t===Rl&&(i=`@${Wa.COMPONENT.LABEL_SPACE}`),i})({chart:e,type:n,end:m,start:p,isPrimary:i});let S="end";f&&(S=n===Rl?"sumOfPositives":"sumOfNegatives");const E={type:"box-out-of-bounds",key:`${Wa.COMPONENT.BAR_OOB}-${n}-${b}`,layout:{dock:x},data:h.data,settings:{orientation:h.settings.orientation,major:h.settings.major,minor:h.settings.minor,dockValue:ke.getDockValue(n===Rl?m:p),oob:me({},h.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=f&&0===e.datum[S].value,o=lc[`is${kc[n]}OutOfBounds`](e.datum[S].value,g,n),i=(!r||function({type:e,item:t,prop:n,extrema:r}){const o=t.datum[Rc[n]].value;return 0!==o&&lc[`is${kc[e]}OutOfBounds`](o,r,e)}({type:n,item:e,prop:S,extrema:g}))&&o;return i}})},brush:kl({layoutService:a}),animations:{enabled:d.enabled,compensateForLayoutChanges:Pa.barOobs.compensateForLayoutChanges}};return E}function Nc(e){return Math.min(Math.max(0,e),1)}const Lc=({chart:e,models:t,type:n,isPrimary:r})=>{const{discreteModel:o,styleModel:i,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,m=e.scale(r?Wa.SCALE.MINOR.PRIMARY:Wa.SCALE.MINOR.SECONDARY),p=r?Ga.AXIS.PRIMARY:Ga.AXIS.SECONDARY,f=r?t.primaryExtremumModel.query.getExtrema():t.secondaryExtremumModel.query.getExtrema(),h=n===Rl;if(!sc({extrema:f,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:`${Wa.COMPONENT.GHOST_BAR_OOB}-${n}-${p}`,data:{filter:(()=>{if(l)return;const e=a.query.series(Ga.TYPE.BAR).filter((e=>e.isPrimary===r)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:l?r?Wa.COLLECTION.STACKED_TOTAL_PRIMARY:Wa.COLLECTION.STACKED_TOTAL_SECONDARY:r?Wa.COLLECTION.PRIMARY:Wa.COLLECTION.SECONDARY},settings:{orientation:t.dockService.meta.minor.orientation,major:{scale:Wa.SCALE.MAJOR,fn:Tl({layoutService:s,axis:p}),ref:c?{start:"major",end:"major"}:void 0},minor:{scale:r?Wa.SCALE.MINOR.PRIMARY:Wa.SCALE.MINOR.SECONDARY,start:{ref:"start",fn:e=>{const t=g(e);return Nc(e.scale(t))}},end:l?"max"===n?{ref:"sumOfPositives",fn:e=>{const t=y(e,"sumOfPositives");return Nc(e.scale(t))}}:{ref:"sumOfNegatives",fn:e=>{const t=y(e,"sumOfNegatives");return Nc(e.scale(t))}}:{ref:"end",fn:e=>{const t=y(e);return Nc(e.scale(t))}}},box:{width:pc({isContinuous:c,isBarSeriesGrouped:u,styleModel:i,discreteModel:o,isBarSeriesStackedInBothAxis:d}),stroke:"transparent",fill:"none",opacity:0,show:e=>{let t="end";l&&(t=h?"sumOfPositives":"sumOfNegatives");const n=e.datum[t]?e.datum[t].value:m.max();return h?n>m.max():n<m.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return v};function Ic(e,t,n,r,o){const i=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return i.push({position:"inside",onBackground:!1,justify:r||o?0:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),i}const Pc=({chart:e,models:t,type:n,environment:r,flags:o,isPrimary:i})=>{const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,styleModel:u,seriesModel:d,themeService:m,animationsModel:p}=t,f=m.getStyles(),h=u.query.bar.label.getStyle(),{meta:g}=a,{isBarSeriesStacked:y}=g,v=e.formatter(i?Wa.FORMATTER.PRIMARY:Wa.FORMATTER.SECONDARY),b=a.getLayoutValue("dataPoint",{}),x="horizontal"===s.meta.major.orientation,S="rtl"===r.options.direction;if(!(i?d.meta.primaryBarSeriesCount:d.meta.secondaryBarSeriesCount)||!y&&!bc(b,g)||y&&!xc(b,g))return!1;const E=i?l.query.getExtrema():c.query.getExtrema();if(!E.meta.hasExplicit)return!1;const M=n===Rl?E.implicit.bar.max:E.implicit.bar.min;if(!(n===Rl?oc(M,E):ic(M,E)))return!1;let C=e=>Gl(e.data,e);g.isBarSeriesStacked&&(C=n===Rl?function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(oc(e.data.sumOfNegatives.value,E)){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(ic(e.data.sumOfPositives.value,E)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value;return v?v(t):t}return""});const w={label:C,simplifiedPlacements:Ic("outside",0,g.isContinuous,x,S),style:f.label.value},T={label:C,simplifiedPlacements:Ic("opposite",0,g.isContinuous,x,S),style:f.label.value},O=[yc(t,w),yc(t,T)],k=i?Ga.AXIS.PRIMARY:Ga.AXIS.SECONDARY,R="horizontal"===s.meta.major.orientation?"down":"right",A=[{component:`${Wa.COMPONENT.GHOST_BAR_OOB}-${n}-${k}`,selector:"rect",strategy:{type:"bar",settings:{direction:R,labels:O,fontSize:parseInt(h.fontSize,10),fontFamily:h.fontFamily}}}];return{key:`${Wa.COMPONENT.BAR_OOB_LABEL}-${n}-${k}`,type:"labels",renderer:Ya(o),layout:{minimumLayoutMode:yl.VALUE_LABEL},settings:{sources:A},animations:{enabled:p.enabled,trackBy:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.labels.compensateForLayoutChanges}}},Dc=({chart:e,models:t,viewState:n,viewCache:r})=>[hc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),hc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],qc=({chart:e,models:t,viewState:n,viewCache:r})=>[gc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),gc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],zc=({chart:e,models:t,environment:n,flags:r})=>{const o=Cc({chart:e,models:t,environment:n,flags:r,isPrimary:!0}),i=Cc({chart:e,models:t,environment:n,flags:r,isPrimary:!1});return[Ec({models:t,environment:n,flags:r,isPrimary:!0}),Ec({models:t,environment:n,flags:r,isPrimary:!1}),o,i]},$c=({chart:e,models:t,viewCache:n,viewState:r})=>[Oc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Oc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Oc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Oc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],jc=({chart:e,models:t,viewCache:n,viewState:r})=>[Ac({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Ac({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Ac({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Ac({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],Fc=({chart:e,models:t})=>[Lc({chart:e,models:t,type:"max",isPrimary:!0}),Lc({chart:e,models:t,type:"min",isPrimary:!0}),Lc({chart:e,models:t,type:"max",isPrimary:!1}),Lc({chart:e,models:t,type:"min",isPrimary:!1})],_c=({chart:e,models:t,environment:n,flags:r})=>[Pc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!0}),Pc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!0}),Pc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!1}),Pc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!1})],Bc=({chart:e,environment:t,flags:n,models:r,viewState:o,viewCache:i})=>{const{seriesModel:a}=r,s=a.query.series(Ga.TYPE.BAR).slice(-1),l=a.query.series(Ga.TYPE.LINE),c=a.query.series(Ga.TYPE.MARKER);return[...Dc({chart:e,models:r,viewState:o,viewCache:i}),...qc({chart:e,models:r,viewState:o,viewCache:i}),...l.map((e=>Bl({models:r,environment:t,series:e}))),...l.map((e=>Wl({models:r,series:e,environment:t}))),...c.map((n=>jl({chart:e,models:r,series:n,environment:t}))),Xl({chart:e,models:r,environment:t,flags:n,lineSeries:l}),Kl({chart:e,models:r,environment:t,flags:n,markerSeries:c}),...zc({chart:e,models:r,environment:t,flags:n}),...$c({chart:e,models:r,viewCache:i,viewState:o}),...jc({chart:e,models:r,viewCache:i,viewState:o}),...Fc({chart:e,models:r}),..._c({chart:e,models:r,environment:t,flags:n}),uc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"max"}),uc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"min"}),Ql({chart:e,models:r,environment:t,lineSeries:l})]},Hc={NONE:0,WIDE:1,NARROW:3};function Vc({models:e}){const{dockService:t,seriesModel:n,layoutService:r,themeService:o,animationsModel:i}=e,{auto:a,spacing:s,axis:l}=r.getLayoutValue("gridLine",{});if(!a&&s===Hc.NONE)return!1;const c=o.getStyles(),u=n.meta.primarySeries.length>0;return{key:Wa.COMPONENT.GRID_LINE,type:"grid-line",layout:{minimumLayoutMode:yl.GRID_LINE},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!(!a&&s===Hc.WIDE)||((e,t)=>t%2==0),stroke:c.grid.line.major.color},minorTicks:{show:!a&&s===Hc.NARROW,stroke:c.grid.line.minor.color},["horizontal"===t.meta.major.orientation?"y":"x"]:0===(null!=l?l:0)&&u?Wa.SCALE.MINOR.PRIMARY:Wa.SCALE.MINOR.SECONDARY,animations:{enabled:i.enabled,trackBy:Pa.lines.trackBy,compensateForLayoutChanges:Pa.lines.compensateForLayoutChanges}}}function Uc({models:e}){var t,n;const{primaryExtremumModel:r,primaryTickModel:o,themeService:i,dockService:a,seriesModel:s,secondaryExtremumModel:l,secondaryTickModel:c,layoutService:u,animationsModel:d}=e,m=0===(null!==(t=null===(n=u.getLayoutValue("gridLine",{}))||void 0===n?void 0:n.axis)&&void 0!==t?t:0),p=r.query.getExtrema(),f=l.query.getExtrema();if(!p.meta.includesZero&&!f.meta.includesZero)return!1;return{key:Wa.COMPONENT.ZERO_LINE,type:"ref-line",layout:{minimumLayoutMode:yl.GRID_LINE},show:()=>(()=>{const e=s.meta.primarySeries.length>0,t=s.meta.secondarySeries.length>0;return m&&e&&o.query.getMin()<=0&&o.query.getMax()>=0||!m&&t&&c.query.getMin()<=0&&c.query.getMax()>=0})(),lines:{["horizontal"===a.meta.minor.orientation?"x":"y"]:[{value:0,scale:m?Wa.SCALE.MINOR.PRIMARY:Wa.SCALE.MINOR.SECONDARY,line:{stroke:i.getStyles().grid.line.highContrast.color}}]},animations:{enabled:d.enabled,trackBy:Pa.lines.trackBy,compensateForLayoutChanges:Pa.lines.compensateForLayoutChanges}}}function Yc({models:e}){const{layoutService:t,themeService:n,animationsModel:r}=e,{isContinuous:o,isTime:i}=t.meta;if(!o)return[];const a=n.getStyles(),s={type:"grid-line",layout:{minimumLayoutMode:yl.GRID_LINE},ticks:{stroke:a.grid.line.major.color},minorTicks:{show:!1,stroke:a.grid.line.minor.color},animations:{enabled:r.enabled,trackBy:Pa.lines.trackBy,compensateForLayoutChanges:Pa.lines.compensateForLayoutChanges}};return i?[me(!0,{},s,{key:"time-inner-grid",x:{scale:Wa.SCALE.MAJOR_INNER},ticks:{stroke:a.grid.line.minor.color}}),me(!0,{},s,{key:"time-outer-grid",x:{scale:Wa.SCALE.MAJOR}})]:[me(!0,{},s,{key:"continuous-grid",x:{scale:Wa.SCALE.MAJOR},minorTicks:{show:!0}})]}function Wc({models:e}){return[Vc({models:e}),Uc({models:e}),...Yc({models:e})]}function Gc({models:e,environment:t,actions:n,flags:r}){const{layoutService:o,dockService:i,propertiesModel:a,appModel:s,genericObjectModel:l,selectionService:c,styleModel:u}=e,d=a.query.getProperties(),m=o.getLayoutValue("dimensionAxis");if(!m)return!1;const{show:p}=m;if("all"!==p&&"title"!==p)return!1;const{orientation:f}=i.meta.major,h=u.query.axis.title.getStyle();return{type:"data-title",key:Wa.COMPONENT.AXIS_TITLE.MAJOR,layout:{dock:i.meta.major.dock,minimumLayoutMode:yl.AXIS_TITLE.MAJOR[f.toUpperCase()]},settings:{hyperCube:o.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:h.fontFamily,fontSize:h.fontSize,color:h.color}}}const Xc=(e,t,n)=>e.query.seriesByAxis(n).map((e=>({...t[e.refIndex],explicitColumn:e.refIndex})));function Kc({models:e,environment:t,actions:n,flags:r}){const{layoutService:o,dockService:i,seriesModel:a,propertiesModel:s,appModel:l,genericObjectModel:c,selectionService:u,styleModel:d}=e,m=s.query.getProperties(),p=o.getLayoutValue("measureAxes");if(!p||!p.length)return[];const f=d.query.axis.title.getStyle(),{measureAxes:h}=a.meta;return h.filter((e=>e.isPrimary?"all"===p[0].show||"title"===p[0].show:"all"===p[1].show||"title"===p[1].show)).map((e=>{const s=o.getHyperCube(),{isPrimary:d}=e,p=a.query.seriesByAxis(d).length>1,h={type:"data-title",key:d?Wa.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:Wa.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,layout:{dock:d?i.meta.minor.dock:i.meta.minorSecondary.dock,minimumLayoutMode:yl.AXIS_TITLE.MINOR},settings:{hyperCube:s,hyperCubeDef:m&&m.qHyperCubeDef,isDimension:!1,explicitItemInfos:Xc(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:f.fontFamily,fontSize:f.fontSize,color:f.color}};return p&&(h.settings.padding="0",h.settings.minWidth="auto"),h}))}function Jc({models:e,environment:t,actions:n,flags:r}){return r.isEnabled("IM_5788_DATA_TITLE_REFACTOR")?[]:[Gc({models:e,environment:t,actions:n,flags:r}),...Kc({models:e,environment:t,actions:n,flags:r})]}function Zc({models:e,environment:t,actions:n,viewCache:r}){const{alternativeService:o,layoutService:i,dockService:a,appModel:s,genericObjectModel:l,selectionService:c,styleModel:u}=e,d=i.getLayoutValue("dimensionAxis");if(!d)return!1;const{show:m}=d;if("all"!==m&&"title"!==m)return!1;const p=o.getAlternatives(),{orientation:f}=a.meta.major,h=u.query.axis.title.getStyle();return{type:"axis-title",key:Wa.COMPONENT.AXIS_TITLE.MAJOR,renderer:"react-qcm",layout:{dock:a.meta.major.dock,minimumLayoutMode:yl.AXIS_TITLE.MAJOR[f.toUpperCase()]},data:{infos:i.getHyperCubeValue("qDimensionInfo"),alternatives:p.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:i.meta.isSnapshot,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:h.color,fontFamily:h.fontFamily,fontSize:h.fontSize}}}}function Qc({models:e,environment:t,actions:n,viewCache:r}){const{alternativeService:o,layoutService:i,dockService:a,seriesModel:s,appModel:l,genericObjectModel:c,selectionService:u,styleModel:d}=e,m=i.getLayoutValue("measureAxes");if(!m||!m.length)return[];const p=o.getAlternatives(),f=d.query.axis.title.getStyle(),{measureAxes:h}=s.meta;return h.filter((e=>e.isPrimary?"all"===m[0].show||"title"===m[0].show:"all"===m[1].show||"title"===m[1].show)).map((e=>{const o=i.getHyperCube(),{isPrimary:d}=e;return{type:"axis-title",key:d?Wa.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:Wa.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,renderer:"react-qcm",layout:{dock:d?a.meta.minor.dock:a.meta.minorSecondary.dock,minimumLayoutMode:yl.AXIS_TITLE.MINOR},data:{infos:Xc(s,o.qMeasureInfo,d),alternatives:p.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:i.meta.isSnapshot,skipAttributeExpressions:!0,type:"measure"},style:{title:{fontFamily:f.fontFamily,fontSize:f.fontSize,color:f.color}}}}))}function eu({models:e,environment:t,actions:n,viewCache:r,flags:o}){return o.isEnabled("IM_5788_DATA_TITLE_REFACTOR")?[Zc({models:e,environment:t,actions:n,viewCache:r}),...Qc({models:e,environment:t,actions:n,viewCache:r})]:[]}function tu({models:e,environment:t,viewState:n,viewCache:r}){const{discreteModel:o,layoutService:i,dockService:a,continuousModel:s,themeService:l}=e,{isSnapshot:c,isDiscrete:u,isContinuous:d}=i.meta,m="rtl"===t.options.direction;return!(c&&!d)&&function({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:o,viewCache:i,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=Cs({layoutService:e,override:l});if(d.none)return!1;const{orientation:m}=t.meta.major,p={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===m?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:m,rtl:s,isContinuous:e.meta.isContinuous,range:()=>Ss({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(p.settings.style="slim",p.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(p.settings.size.thumb={min:4}));const f=a.getStyles();return f.color&&(p.style={standard:{thumb:{"border-color":f.color,opacity:.4},before:{background:f.color,opacity:.1},after:{background:f.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(p.settings.injections=()=>[xs({layoutService:e,discrete:n})]),p}({viewState:n,viewCache:r,discrete:o,continuousDataModel:s,layoutService:i,dockService:a,themeService:l,rtl:m,scrollbarOverride:{predicate:()=>u,value:bs.OPTIONS.BAR.value},deviceType:t.deviceType})}function nu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:o}){const{layoutService:i}=t,a=hc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:o});if(!a)return!1;const s=o?Ga.AXIS.PRIMARY:Ga.AXIS.SECONDARY;return a.key=`${Wa.COMPONENT.MINI_CHART.BAR}-${s}`,a.data.collection=i.meta.isBarSeriesStacked?o?Wa.COLLECTION.REDUCED_STACKED_PRIMARY:Wa.COLLECTION.REDUCED_STACKED_SECONDARY:o?Wa.COLLECTION.REDUCED_PRIMARY:Wa.COLLECTION.REDUCED_SECONDARY,a.settings.box.minWidthPx=void 0,a.settings.minor.scale=o?Wa.SCALE.MINOR.REDUCED_PRIMARY:Wa.SCALE.MINOR.REDUCED_SECONDARY,a.settings.major.scale=Wa.SCALE.REDUCED,a.layout={dock:"@scrollbar"},a}function ru({environment:e,models:t}){const n=t.styleModel.query.line.getStrokeDasharrayFn();return t.seriesModel.query.series(Ga.TYPE.LINE).map((r=>{const o=Bl({models:t,environment:e,series:r});return o.key=Ll(Wa.COMPONENT.MINI_CHART.LINE,r),o.data.collection=Wa.COLLECTION.REDUCED,o.settings.coordinates.minor.scale=r.isPrimary?Wa.SCALE.MINOR.REDUCED_PRIMARY:Wa.SCALE.MINOR.REDUCED_SECONDARY,o.settings.coordinates.major.scale=Wa.SCALE.REDUCED,o.settings.layers.line.strokeWidth=1,o.settings.layers.line.strokeDasharray=(...e)=>void 0===n(...e)?void 0:"1, 1",o.layout={dock:"@scrollbar"},o}))}function ou({models:e,environment:t}){return e.seriesModel.query.series(Ga.TYPE.MARKER).map((n=>{const r=jl({models:e,environment:t,series:n});return r.key=Ll(Wa.COMPONENT.MINI_CHART.MARKER,n),r.data.collection=Wa.COLLECTION.REDUCED,r.settings.y.scale=n.isPrimary?Wa.SCALE.MINOR.REDUCED_PRIMARY:Wa.SCALE.MINOR.REDUCED_SECONDARY,r.settings.x.scale=Wa.SCALE.REDUCED,r.layout={dock:"@scrollbar"},r}))}function iu({chart:e,models:t,viewState:n,viewCache:r,environment:o}){return rl(t)?[nu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),nu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1}),...ru({environment:o,models:t}),...ou({models:t,environment:o})]:[]}function au({models:e}){const{layoutService:t,dockService:n}=e,{isContinuous:r,isTime:o}=t.meta,i=t.getLayoutValue("dimensionAxis");if(!i||"none"===i.show||"title"===i.show)return[!1];if(!r)return[!1];const a=yl.AXIS.MAJOR[n.meta.major.orientation.toUpperCase()];return o?[{type:"axis-overlay",key:Wa.COMPONENT.AXIS_OVERLAY.TIME_INNER,scale:Wa.SCALE.MAJOR_INNER,layout:{dock:`@${Wa.COMPONENT.AXIS.TIME_INNER}`,minimumLayoutMode:a}},{type:"axis-overlay",key:Wa.COMPONENT.AXIS_OVERLAY.TIME_OUTER,scale:Wa.SCALE.MAJOR,layout:{dock:`@${Wa.COMPONENT.AXIS.TIME_OUTER}`,minimumLayoutMode:a}}]:[{type:"axis-overlay",key:Wa.COMPONENT.AXIS_OVERLAY.CONTINUOUS,scale:Wa.SCALE.MAJOR,layout:{dock:`@${Wa.COMPONENT.AXIS.MAJOR_CONTINUOUS}`,minimumLayoutMode:a}}]}function su({chart:e,models:t,environment:n}){const{refLineModel:r,layoutService:o,colorService:i,dockService:a,themeService:s,appLayoutModel:l,seriesModel:c,animationsModel:u}=t,d=l.qLocaleInfo,{options:m,theme:p}=n,f="rtl"===m.direction,h=c.query.series(Ga.TYPE.BAR).filter((e=>e.isPrimary)),g=c.query.series(Ga.TYPE.BAR).filter((e=>!e.isPrimary)),y=c.query.series(Ga.TYPE.LINE),v=c.query.series(Ga.TYPE.MARKER),b=c.query.all(),x=b.some((e=>e.isPrimary)),S=b.some((e=>!e.isPrimary)),E=x&&S,M={resolveUIColor:i.getPaletteColor},C=u.enabled,w=x?Va({refLineModel:r,layoutService:o,colorModel:M,dock:E?a.meta.minor.dock:a.meta.minor.opposite,scale:Wa.SCALE.MINOR.PRIMARY,style:s.getStyles(),formatter:Wa.FORMATTER.PRIMARY,theme:p,localeInfo:d,rtl:f,key:Wa.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE_LABEL,animationsEnabled:C}):[],T=S?Va({refLineModel:r,layoutService:o,colorModel:M,dock:E?a.meta.minor.opposite:a.meta.minor.dock,scale:Wa.SCALE.MINOR.SECONDARY,style:s.getStyles(),formatter:Wa.FORMATTER.SECONDARY,theme:p,localeInfo:d,rtl:f,key:Wa.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE_LABEL,path:"refLine.refLines2",animationsEnabled:C}):[];return[!!x&&Fa({refLineModel:r,layoutService:o,colorModel:M,dockService:a,chart:e,scale:Wa.SCALE.MINOR.PRIMARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:Wa.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE,minimumLayoutMode:yl.REFERENCE_LINE,animationsEnabled:C}),!!S&&Fa({refLineModel:r,layoutService:o,colorModel:M,dockService:a,chart:e,scale:Wa.SCALE.MINOR.SECONDARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:Wa.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE,path:"refLine.refLines2",minimumLayoutMode:yl.REFERENCE_LINE,animationsEnabled:C}),Fa({isDimension:!0,refLineModel:r,layoutService:o,colorModel:M,dockService:a,chart:e,scale:Wa.SCALE.MAJOR,axis:"horizontal"===a.meta.major.orientation?"x":"y",rtl:f,key:Wa.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:h.length?`${Wa.COMPONENT.BAR}-${Ga.AXIS.PRIMARY}`:g.length?`${Wa.COMPONENT.BAR}-${Ga.AXIS.SECONDARY}`:y.length?`${Wa.COMPONENT.LINE}-${y[0].id}`:v.length?`${Wa.COMPONENT.MARKER}-${v[0].id}`:`${Wa.COMPONENT.BAR}-${Ga.AXIS.PRIMARY}`,minimumLayoutMode:yl.REFERENCE_LINE,animationsEnabled:C}),...w,...T,...Va({isDimension:!0,refLineModel:r,layoutService:o,colorModel:M,dock:a.meta.major.opposite,scale:Wa.SCALE.MAJOR,style:s.getStyles(),theme:p,localeInfo:d,rtl:f,key:Wa.COMPONENT.DIMENSION_REF_LINE_LABEL,animationsEnabled:C})]}function lu({layoutService:e}){return!!rl({layoutService:e})&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:Wa.SCALE.REDUCED,brush:"selection",fill:"#6CB33F",opacity:.2}}}function cu(e){return(null==e?void 0:e.type)||Ga.TYPE.BAR}function uu({models:e,environment:t}){const{layoutService:n,colorService:r,dockService:o,seriesModel:i,selectionService:a}=e,{hasLineSeries:s,isContinuous:l,hasMultipleMeasures:c,isGroupedByMeasure:u}=n.meta;if(!s)return!1;const{options:d}=t,m=n.getLayoutValue("color",{}),p=e=>e.filter((e=>cu(e)===Ga.TYPE.LINE)).map((e=>({key:Ll(Wa.COMPONENT.LINE,e),typeIndex:e.typeIndex}))),f=!m.auto&&"byMeasure"===m.mode&&m.byMeasureDef&&void 0!==m.byMeasureDef.activeMeasureIndex,h=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:Wa.COLLECTION.LINE},settings:{getSelectionInfo:()=>{var e;return(null==a||null===(e=a.getSelectionInfo)||void 0===e?void 0:e.call(a))||{}},seriesInfo:{primary:p(i.meta.primarySeries),secondary:p(i.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=>!h[e]&&f,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:i.meta.barSeriesCount,orientation:o.meta.major.orientation,rtl:"rtl"===d.direction}}}function du({models:{fieldModel:e}}){return{[Wa.FORMATTER.PRIMARY]:{data:{fields:e.main.minorsPrimary}},[Wa.FORMATTER.SECONDARY]:{data:{fields:e.main.minorsSecondary}}}}var mu={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:pu}=mu;function fu({layoutService:e,largeDataService:t}){const{maxNumPoints:n=pu}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:hu}=mu,gu=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=hu}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!fu({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:yu}=mu,{MAX_NUM_POINTS:vu,DEFAULT_NUM_POINTS:bu,DEFAULT_NUM_LINES:xu}=mu,{DEFAULT_NUM_POINTS:Su}=mu,Eu=({layoutService:e,largeDataService:t})=>{if(!fu({layoutService:e,largeDataService:t})){const{maxNumPoints:e=Su}=(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:o=xu,maxNumPoints:i=bu,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(gu({layoutService:e,largeDataService:t})*r[0]<=i)return r[0];const s=Math.max(1,Math.min(o,r[1])),l=i/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>xu||i>bu)?Math.min(c,Math.ceil(vu/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=yu}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},o=4+2*(r-1);return Math.floor(n/(r*o))})({layoutService:e,largeDataService:t})};function Mu({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>fu({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>Eu({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>gu({layoutService:t,largeDataService:n}),fetch:(o,i)=>(({start:e,end:t,model:n,layoutService:r,largeDataService:o,definitionPath:i})=>{const a={qStart:e,qEnd:t,qNbrPoints:Eu({layoutService:r,largeDataService:o}),qMaxNbrTicks:300,qMaxNumberLines:gu({layoutService:r,largeDataService:o})};return n.getHyperCubeContinuousData(i,a,!1)})({start:o,end:i,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Cu(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function wu({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,o=r+t;return 1===t&&0===e&&(r=n-.5,o=n+.5),{zoom:{min:r,max:o}}}(n,t.get("continuousMin"))}}}function Tu(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const o=t.indexOf(e);o>-1&&t.splice(o,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 Ou(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=Tu(),i=Tu();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?o.set(l,s):s[0].qNum>t&&(i.has(l)||i.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o.forEach(((e,t)=>r.splice(t,0,e))),i.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let o,i;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?o=s:s[0].qNum>t&&(i||(i=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o&&r.unshift(o),i&&r.push(i),r}({start:e,end:t,matrix:n})}function ku(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Ru(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Ou(e,t,n.qMatrix),o=ku(n.qArea,r);return{...n,qArea:o,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 Au=2**.5,Nu=1/Au,Lu=Nu**44;function Iu(e){return e.qIsOtherCell}function Pu({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Iu)){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(Iu)||t++})),t}(n)}const Du={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var qu={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],o=t[e+1];r.data={},o||1===r.end?o?(r.data.start=r.value,r.data.end=o.value,r.end=o.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 zu(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function $u(e,t){const{localProps:{size:n},props:{anchor:r}}=t,o=function({props:e,localProps:{size:t},style:n,renderer:r}){const o=e.label.padding,i=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*o,1===e.end&&(u-=d));const m={x:u+o,y:o,width:d-2*o,height:t.height-2*o},p=s(`${l[0]}…`).width,f=Math.max(0,m.width-c.width),h=Math.max(0,m.height-c.height),g=i*f,y=a*h;return{show:m.width>=Math.min(p,c.width),text:l,dx:g,dy:y,rect:m,style:n.label,segment:{x:u+g,width:c.width+2*o},tickValue:e.value}}}}(t),i=function({localProps:{size:e},style:t,scale:n,props:r}){const[o,i]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=zu(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:zu(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:o.resolve(e,t),guideLine:i.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],o=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&&(i=n.segment,a=o.segment,!(i.x<a.x?i.x+i.width>=a.x:a.x+a.width>=i.x))}var i,a}(e,a),a}function ju(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const o=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),i=zu(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:zu(o,n.minorGuideLine.strokeWidth),x2:i,y2:zu(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function Fu(e){return e.filter((e=>e.show)).map((e=>me({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var _u={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=zu(1,t.line.strokeWidth);return{show:n.line.show,x1:zu(0,t.line.strokeWidth),y1:r,x2:zu(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=$u(n,this),this.state.minor=ju(r,this)},render(){return[...Fu([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>me({},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})))),...Fu(this.state.major.map((e=>e.guideLine))),...Fu(this.state.minor.map((e=>e.guideLine)))];var e}};function Bu(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 Hu(e){return e.qTags.indexOf("$qualified")>-1}function Vu({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];Bu(i,a)?(Hu(a)?(t.push(o),n.push(r)):(t.push(r),n.push(o)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function Uu({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,o=NaN,i=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(o=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){i="auto",s=!0;break}if(e&&e.queries.inner(n)){i=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(o)&&Number.isNaN(i)&&"auto"!==i){i=o,o=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(o)&&(o="auto",i="auto");return{outer:o,inner:i,minor:a,isDayOrShorter:s}}}}function Yu({qTicks:e,measureText:t=()=>({width:0}),cache:n={},scale:r}){const o=n;return{isDayOrShorter:()=>(o.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,o.isDayOrShorter),count:()=>e.length,maxRange:()=>(o.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,o.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),o.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+16}))),r.clamp(n),o.rangeAndWidth}}}function Wu({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 Gu({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=Yu,queryFactory:s=Wu}={attributesFactory:Yu,queryFactory:Wu}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:i});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:o})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function Xu({qAxis:e=[],measureText:t=()=>({width:0}),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=Gu,mapper:a=Vu,resolver:s=Uu}={metaFactory:Gu,mapper:Vu,resolver:Uu}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=i({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:o}),m=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 o=m.resolve(t);return n.set(r,o),o}}}function Ku(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}const Ju=Ku(0).getTime();function Zu(e){return(e.getTime()-Ju)/86400/1e3}const Qu=new Date,ed=new Date;function td(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>td((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&&(o.count=(t,r)=>(Qu.setTime(+t),ed.setTime(+r),e(Qu),e(ed),Math.floor(n(Qu,ed))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const nd=1e3,rd=6e4,od=36e5,id=864e5,ad=6048e5,sd=td((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*nd)}),((e,t)=>(t-e)/nd),(e=>e.getUTCSeconds()));sd.range;const ld=td((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*nd)}),((e,t)=>{e.setTime(+e+t*rd)}),((e,t)=>(t-e)/rd),(e=>e.getMinutes()));ld.range;const cd=td((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*rd)}),((e,t)=>(t-e)/rd),(e=>e.getUTCMinutes()));cd.range;const ud=td((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*nd-e.getMinutes()*rd)}),((e,t)=>{e.setTime(+e+t*od)}),((e,t)=>(t-e)/od),(e=>e.getHours()));ud.range;const dd=td((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*od)}),((e,t)=>(t-e)/od),(e=>e.getUTCHours()));dd.range;const md=td((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*rd)/id),(e=>e.getDate()-1));md.range;const pd=td((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/id),(e=>e.getUTCDate()-1));pd.range;const fd=td((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/id),(e=>Math.floor(e/id)));function hd(e){return td((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())*rd)/ad))}fd.range;const gd=hd(0),yd=hd(1),vd=hd(2),bd=hd(3),xd=hd(4),Sd=hd(5),Ed=hd(6);function Md(e){return td((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)/ad))}gd.range,yd.range,vd.range,bd.range,xd.range,Sd.range,Ed.range;const Cd=Md(0),wd=Md(1),Td=Md(2),Od=Md(3),kd=Md(4),Rd=Md(5),Ad=Md(6);Cd.range,wd.range,Td.range,Od.range,kd.range,Rd.range,Ad.range;const Nd=td((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()));Nd.range;const Ld=td((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()));Ld.range;const Id=td((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()));Id.every=e=>isFinite(e=Math.floor(e))&&e>0?td((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,Id.range;const Pd=td((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()));Pd.every=e=>isFinite(e=Math.floor(e))&&e>0?td((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,Pd.range;const Dd=1,qd=2,zd=3,$d=4,jd=5,Fd=6;function _d({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:o,timeOnly:i,initialMin:a}){const[s,l]=e.domain(),c=o.key({distance:n});let u;o.get(c,1)?u=o.get(c,1):(u=function(e,t,n,r,o,i){function a(e){return Pd.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=sd.count(e,t),l=cd.count(e,t),c=dd.count(e,t),u=pd.count(e,t),d=Cd.count(e,t),m=Ld.count(e,t),p=Pd.count(e,t),f=n/r.second.width-1,h=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:p,interval:Pd.every(1),formatter:r.year.formatter,offset:e=>Pd.offset(e,-1),floor:Pd.floor};if(s<=f)v.type=Dd,v.desc="second",v.count=s,v.interval=sd.every(1),v.formatter=r.second.formatter,v.offset=e=>sd.offset(e,-1),v.floor=sd.floor;else if(s/2<=f)v.type=Dd,v.desc="every other second",v.count=s/2,v.interval=sd.every(2),v.formatter=r.second.formatter,v.offset=e=>sd.offset(e,-2),v.floor=sd.floor;else if(s/5<=f)v.type=Dd,v.desc="every 5 second",v.count=s/5,v.interval=sd.every(5),v.formatter=r.second.formatter,v.offset=e=>sd.offset(e,-5),v.floor=sd.floor;else if(s/15<=f)v.type=Dd,v.desc="every 15 second",v.count=s/15,v.interval=sd.every(15),v.formatter=r.second.formatter,v.offset=e=>sd.offset(e,-15),v.floor=sd.floor;else if(s/30<=f)v.type=Dd,v.desc="every 30 second",v.count=s/30,v.interval=sd.every(30),v.formatter=r.second.formatter,v.offset=e=>sd.offset(e,-30),v.floor=sd.floor;else if(l<=h)v.type=qd,v.desc="minute",v.count=l,v.interval=cd.every(1),v.formatter=r.minute.formatter,v.offset=e=>cd.offset(e,-1),v.floor=cd.floor;else if(l/2<=h)v.type=qd,v.desc="every 2 minute",v.count=l/2,v.interval=cd.every(2),v.formatter=r.minute.formatter,v.offset=e=>cd.offset(e,-2),v.floor=cd.floor;else if(l/5<=h)v.type=qd,v.desc="every 5 minute",v.count=l/5,v.interval=cd.every(5),v.formatter=r.minute.formatter,v.offset=e=>cd.offset(e,-5),v.floor=cd.floor;else if(l/10<=h)v.type=qd,v.desc="every 10 minute",v.count=l/10,v.interval=cd.every(10),v.formatter=r.minute.formatter,v.offset=e=>cd.offset(e,-10),v.floor=cd.floor;else if(l/15<=h)v.type=qd,v.desc="every 15 minute",v.count=l/15,v.interval=cd.every(15),v.formatter=r.minute.formatter,v.offset=e=>cd.offset(e,-15),v.floor=cd.floor;else if(l/30<=h)v.type=qd,v.desc="every 30 minute",v.count=l/30,v.interval=cd.every(30),v.formatter=r.minute.formatter,v.offset=e=>cd.offset(e,-30),v.floor=cd.floor;else if(c<=h)v.type=zd,v.desc="hour",v.count=c,v.interval=dd.every(1),v.formatter=r.minute.formatter,v.offset=e=>dd.offset(e,-1),v.floor=dd.floor;else if(c/2<=h)v.type=zd,v.desc="every 2 hour",v.count=c/2,v.interval=dd.every(2),v.formatter=r.minute.formatter,v.offset=e=>dd.offset(e,-2),v.floor=dd.floor;else if(c/3<=h)v.type=zd,v.desc="every 3 hour",v.count=c/3,v.interval=dd.every(3),v.formatter=r.minute.formatter,v.offset=e=>dd.offset(e,-3),v.floor=dd.floor;else if(c/6<=h)v.type=zd,v.desc="every 6 hour",v.count=c/6,v.interval=dd.every(6),v.formatter=r.minute.formatter,v.offset=e=>dd.offset(e,-6),v.floor=dd.floor;else if(c/12<=h||o)v.type=zd,v.desc="every 12 hour",v.count=c/12,v.interval=dd.every(12),v.formatter=r.minute.formatter,v.offset=e=>dd.offset(e,-12),v.floor=dd.floor;else if(u<=g)v.type=$d,v.desc="day",v.count=u,v.interval=pd.every(1),v.formatter=r.date.formatter,v.offset=e=>pd.offset(e,-1),v.floor=pd.floor;else if(u/2<=g)v.type=$d,v.desc="every 2 day",v.count=u/2,v.interval=pd.every(2),v.formatter=r.date.formatter,v.offset=e=>pd.offset(e,-2),v.floor=pd.floor;else if(u/3<=g)v.type=$d,v.desc="every 3 day",v.count=u/3,v.interval=pd.every(3),v.formatter=r.date.formatter,v.offset=e=>pd.offset(e,-3),v.floor=pd.floor;else if(d<=g)v.type=$d,v.desc="week",v.count=d,v.interval=Cd.every(1),v.formatter=r.date.formatter,v.offset=e=>Cd.offset(e,-1),v.floor=pd.floor;else if(d/2<=g)v.type=$d,v.desc="every 2 week",v.count=d/2,v.interval=Cd.every(2),v.formatter=r.date.formatter,v.offset=e=>Cd.offset(e,-2),v.floor=pd.floor;else if(m<=g)v.type=jd,v.desc="month",v.count=m,v.interval=Ld.every(1),v.formatter=r.date.formatter,v.offset=e=>Ld.offset(e,-1),v.floor=pd.floor;else if(m/3<=g)v.type=jd,v.desc="quarter",v.count=m/3,v.interval=Ld.every(3),v.formatter=r.date.formatter,v.offset=e=>Ld.offset(e,-3),v.floor=pd.floor;else if(m/6<=g)v.type=jd,v.desc="half year",v.count=m/6,v.interval=Ld.every(6),v.formatter=r.date.formatter,v.offset=e=>Ld.offset(e,-6),v.floor=pd.floor;else if(p<=y)v.type=Fd,v.desc="year",v.count=p,v.interval=Pd.every(1),v.formatter=r.year.formatter,v.offset=e=>Pd.offset(e,-1),v.floor=Pd.floor;else if(p/2<=y)v.type=Fd,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>Pd.offset(e,-2),v.floor=Pd.floor;else if(p/5<=y)v.type=Fd,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>Pd.offset(e,-5),v.floor=Pd.floor;else if(p/10<=y)v.type=Fd,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>Pd.offset(e,-10),v.floor=Pd.floor;else{const e=Math.max(1,Math.floor(p/y));v.type=Fd,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>Pd.offset(t,-e),v.floor=Pd.floor}return v}(s,l,n,t.all(),r,a),o.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 m=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 p=[];if(!i&&u.type<=zd){const n=t.getFormat("date"),r=e.ticks(pd.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(pd.offset(r[0],-1)),p=(r.length?r:[pd.floor(s)]).map(((e,t,r)=>{const o=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+o),formatter:n.formatter}}))}return{inner:m,outer:p}}const Bd=86400,Hd=1440,Vd={};function Ud(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function Yd(e,t,n){const{generator:r,anchor:o,clamp:i,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(i);const[l,c]=e.domain(),u=ki().domain([Ku(l),Ku(c)]);u.clamp(i),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let m;m="d3"===d.type?(e,o)=>_d({timeScale:u,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:Ku(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(Vd[[t,n,r,r,i]])return Vd[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=Ku(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,m=t/(o-r),p=m/1440,f=m/Bd,h=366*m,g=3*m*30,y=a.second.width/f,v=a.minute.width/p,b=a.date.width/g,x=a.year.width/h;let S,E,M,C=0,w=0,T=null,O=null,k=null,R=null,A=null,N=null;const L={outer:[],inner:[]};for(y<1?(T=1,w=1/Bd):y<2?(T=2,w=1/Bd*2):y<5?(T=5,w=1/Bd*5):y<10?(T=10,w=1/Bd*10):y<30?(T=30,w=1/Bd*30):v<1?(O=1,w=1/Hd):v<2?(O=2,w=1/Hd*2):v<5?(O=5,w=1/Hd*5):v<10?(O=10,w=.006944444444444445):v<30?(O=30,w=.020833333333333336):v<60?(k=1,w=1/24):v<120?(k=2,w=2/24):v<360?(k=6,w=.25):v<720?(k=12,w=.5):b<1/90?(w=1,R=1):b<2/90?(w=2,R=2):b<7/90?(w=7,R=7):b<31/90?(A=1,w=31):b<1?(A=3,w=90):x<1?(N=1,w=366):x<2?(N=2,w=732):x<5?(N=5,w=1826.25):(N=10,w=3652.5),E=Math.floor((d+n%1)/w);C<o;){M=E+1,S=N?Ud("year",[l+E*N,0,1],[l+M*N,0,1],a.year.formatter):A?Ud("month",[l,c+E*A,1],[l,c+M*A,1],a.date.formatter):R?Ud("day",[l,c,u+E*R],[l,c,u+M*R],a.date.formatter):k?Ud("hour",[l,c,u,0+E*k],[l,c,u,0+M*k],a.minute.formatter):O?Ud("minute",[l,c,u,0,0+E*O],[l,c,u,0,0+M*O],a.minute.formatter):Ud("second",[l,c,u,0,0,0+E*T],[l,c,u,0,0,0+M*T],a.second.formatter),C=Zu(S.start),L.inner.push(S);const e=Math.floor(C);if(!(i||N||A||R)){const t={type:"day",start:Ku(e),end:Ku(e+1),formatter:a.date.formatter,qStart:e};L.outer[L.outer.length-1]&&L.outer[L.outer.length-1].qStart===t.qStart||L.outer.push(t)}E++}return L.min=r,L.max=o,Vd[[t,n,r,r,i]]=L,L}(n,e,d.min,l,c,"T"===s.qType);const p={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===o?t.qStart:"end"===o?t.qEnd:(t.qStart+t.qEnd)/2;const i=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(i),{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)=>m(t,n)[a].map((t=>{let n;return n="start"===o?Zu(t.start):"end"===o?Zu(t.end):(Zu(t.start)+Zu(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:Zu(t.start),end:Zu(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const Wd=/t+/i;const Gd={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 Xd(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 Kd="continuousPan";var Jd={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=Du,viewCache:o,viewState:i,definitionPath:a},s={}){const{engineFetcherFactory:l=Mu,snapshotFetcherFactory:c=wu,cacheFetcherFactory:u=Cu,cache:d={initial:{},merged:{}}}=s,m=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),p=c({layoutService:t,viewCache:o}),f=u({cache:d}),h=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){var n,r;({initialMin:y,initialMax:v}=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])),o.set("continuousMin",y),o.set("continuousMax",v),o.set("minimiumZoomSpan",(n=y,r=v,Math.max(1e-6,(r-n)*Lu))),g=t.meta.isSnapshot?p:m,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=p.getSnapshotData()),i.preventSet("zoom",{min:y,max:v})},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 g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=ku(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=>Ru(y,v,e))).then((e=>this.updateLayout(e))).catch(h)},fetch:(e,t)=>g.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,o=[],i=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?o.push(e[t]):a.qNum>r&&i.push(e[t])}return[...o,...t,...i]}(e.qMatrix,t.qDataPages[n].qMatrix),o=ku(e.qArea,r);return{...e,qArea:o,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}))),o=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,i=e.qAxis.length;t<i;t++){const i=e.qAxis[t],a=n.indexOf(i.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=i.qTicks.length;n<r;n++){const r=i.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}o[a].qTicks=[...s,...o[a].qTicks,...l]}}return{qAxis:o}}(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=>Ru(e,t,n))).catch(h),fetchFromCache:(e,t)=>f.fetch(e,t).then((n=>Ru(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return me({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return me({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Pu(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 o(e,n,o){return r[e](n,o).then((e=>(r.updateLayout(e),t(),e)))}const i=w(((e,t)=>o("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):o("fetchFromCache",e,t).then((n=>(i(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(o,i)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(o.max-o.min)<r?i:{min:Math.min(o.max,Math.max(t,o.min)),max:Math.max(o.min,Math.min(n,o.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:o=!1,targetKey:i}){const a=e.get("continuousMin"),s=e.get("continuousMax");return T(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===i))[0])(e);if(l){const i=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=o?1-i:i,{min:u,max:d}=t.get("zoom"),m=Math.abs(d-u),p=m-(r>0?Nu:Au)*m,f=u+p*c,h=d-p*(1-c),g=f<a?a-f:0,y=h>s?h-s:0;t.set("zoom",{min:Math.max(f-y,a),max:Math.min(h+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o}){return{type:"Pan",key:"continuous:pan",options:{event:Kd,pointers:1,threshold:10,enable(r,o){return this.started===Kd||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{[`${Kd}start`](n){n.preventDefault(),this.started=Kd;const{min:o,max:i}=r.get("zoom");this[Kd]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},[`${Kd}move`](e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[Kd],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,o.get("continuousMax")-t),max:Math.max(i+s*t,o.get("continuousMin")+t)})},[`${Kd}end`](e){e.preventDefault(),this.started=!1},[`${Kd}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:qu,timeAxis:_u},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((o=>{const i=e[o],a=typeof i;"function"===a?r[o]=i(n):"object"!==a||Array.isArray(i)?r[o]="undefined"===a?t[o]:i:r[o]=me(!0,{},t[o],i)})),r}(t,Gd,n),{qAxis:o}=r,i=yr(),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,o);let c,u,d=[];const m=function(e){return Number.isNaN(+e)?NaN:i(e)};m.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),i=n[r.ticks.level];if(Number.isNaN(+i)||(d=u.transform(o[i].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=u.transform(o[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===i&&(d=u.generate(e,n.isDayOrShorter)),d},m.invert=e=>i.invert(e),m.domain=e=>Array.isArray(e)?i.domain(e):i.domain(),m.range=e=>Array.isArray(e)?i.range(e):i.range(),m.norm=e=>(Xd(a,m),a.instance(e)),m.normInvert=e=>(Xd(a,m),a.instance.invert(e)),m.copy=()=>e(t,n),m.clamp=(e=!0)=>(i.clamp(e),i.clamp()),m.min=()=>Math.min(s,l),m.max=()=>Math.max(s,l),i.range(r.invert?[1,0]:[0,1]),i.domain([s,l]),a.invert=r.invert;const p=function(e){const t={},{measureText:n,fn:r,localeInfo:o}=e.formatter,i={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 o&&Wd.test(o.qTimestampFmt)&&(i.minute.pattern+=" tt",i.second.pattern+=" tt"),i.date.pattern=o&&o.qDateFmt?o.qDateFmt:i.date.pattern,Object.keys(i).forEach((e=>{i[e].formatter=r(i[e].pattern),i[e].width=Math.max(i[e].width,n(i[e].formatter(41000.2343433)).width+16)})),t.getFormat=e=>i[e],t.all=()=>i,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return i.date;const r=Ku(t[0].data.start),o=Ku(t[n-1].data.start);return pd.count(r,o)/n>=1?i.date:dd.count(r,o)/n>0?i.minute:cd.count(r,o)/n>0?i.second:i.date},t}(r);return u=Yd(i.copy(),r,p),c=Xu({qAxis:o,measureText:r.formatter.measureText,reqAutoFitWidth:2*p.getFormat("minute").width,cache:r.cache,scale:m}),m.data=()=>({fields:[{formatter:m.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:E(n,"fields.0.raw",(()=>({})))}]}),m.formatter=()=>p.getFormatFromTicks(d).formatter,m}}};const Zd=e=>e.meta.seriesComponentKeys[0],Qd=(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()}};function em({chart:e,models:t,actions:n,viewState:r,viewCache:o,environment:i}){const{event:{onZoom:a}}=Jd,{layoutService:s,seriesModel:l}=t,c=Zd(l),u=s.meta.isContinuous?a({chart:e,viewState:r,viewCache:o},{rtl:"rtl"===i.options.direction,threshold:50,targetKey:c}):()=>{};return{type:"native",events:{wheel(t){const r={x:t.clientX,y:t.clientY},o=e.componentsFromPoint(r);if(n.interact.enabled()){const[e]=o.filter((e=>e.key===Wa.COMPONENT.LEGEND_CATEGORICAL));Qd(t,e)}if(n.scroll.enabled()){const[e]=o.filter((e=>e.key===c));e&&(u(r,Math.sign(-t.deltaY)),t.preventDefault())}}}}}const tm="continuousPinchZoom";function nm({chart:e,models:t,environment:n,viewState:r,viewCache:o,actions:i,selectables:a}){const s=Jd.interactions.areaPan,{layoutService:l,dockService:c,discreteModel:u,colorService:d,tooltipService:m}=t,p="rtl"===n.options.direction,f=m.getInteractions(),h=function({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...Ds({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:qs({componentKey:e,chart:t,actions:n,layoutService:i})}}({componentKey:"scrollbar",chart:e,actions:i,viewState:r,viewCache:o,discrete:u,layoutService:l,dockService:c,rtl:p}),g={type:"hammer",enable:!0,gestures:[...d.custom.legendInteractions(),...a.gestures.sort(((e,t)=>(t.prio||0)-(e.prio||0))),...h.gestures,...f.gestures]},y=[em({chart:e,models:t,actions:i,viewState:r,viewCache:o,environment:n}),h.native,f.native];return l.meta.isDiscrete&&(g.gestures.push(...u.interactions.gestures),y.push(u.interactions.native)),l.meta.isContinuous&&g.gestures.push(s({targetKey:Zd(t.seriesModel),chart:e,actions:i,viewState:r,viewCache:o}),function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o,rtl:i}){const a={last:0},s=Jd.event.onZoom({viewCache:o,viewState:r,chart:t},{threshold:100,rtl:i,targetKey:e});return{type:"Pinch",key:"continuous:pinch-zoom",options:{event:tm,pointers:2,threshold:0,enable:(r,o)=>!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))},events:{[`${tm}start`](e){a.last=e.scale,e.preventDefault()},[`${tm}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:Zd(t.seriesModel),chart:e,actions:i,viewState:r,viewCache:o,rtl:p})),[g,...y]}const rm=({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}}}),om="lasso",im=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:om,enable(e,n){if(this.started===om||!n)return!0;if(!o.actions.select.enabled()||!o.actions.lasso.enabled()||!o.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!==om&&(o.actions.select.emit("start",om),this.chart.component(e).emit("lassoStart",t),this.started=om)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),o.actions.select.emit("end",om),"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});const am=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:o="tap"},i)=>{let a;const s=i.customTooltipModel?i.customTooltipModel.utils:void 0,l=s?i.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:o,interval:10,pointers:1,enable(t,n){return!n||!(!i.actions.select.enabled()&&!i.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:{[o](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}(t,this.chart),c=i.hitRadius?i.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=i.shapesAt?i.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),m=this.chart.component("tooltip"),p="mouse"!==t.pointerType&&m&&m.show;if(!i.isLocked(a)&&!i.tooltipOnly&&i.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,i.actions.select.brushSelectionIncludeMax=!1,i.actions.select.emit("start",o,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,i.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),i.actions.select.emit("end",o),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:i.largeDataService,chart:this.chart})}}if(m&&i.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=i;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,m,{nodes:n,opts:i,customTooltipModel:e})}else m.emit("show",t,{nodes:d})}else p&&m.emit("hide")}}}};const sm=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},o)=>({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&&(!!o.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 lm=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:o},i,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:o,options:{event:e,enable(r,o){if(this.started===e||!o)return!0;if(!i.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:o.center.x,y:o.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}-`))}(o,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),i.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 i.updateOnMove&&i.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),i.actions.select.emit("end",e),this.started=!1,"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});function cm(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:o,targetFillSelector:i,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:m}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:m?{bubbleEnd(){m()}}:{},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:o,fillSelector:i,fill:"rgba(82,204,82,0.2)"}}}}(e),r=lm(e,t,"range");return{interactions:[e.onEdited?sm(e,t):null,r].filter(Boolean),components:[n]}}const um=/axis|legend/,dm=e=>e.some((e=>um.test(e.type)));function mm({actions:e,models:t}){const{seriesModel:n,layoutService:r,colorService:o,flags:i}=t,a=r.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),s={targets:[`${Wa.COMPONENT.BAR}-${Ga.AXIS.PRIMARY}`,`${Wa.COMPONENT.BAR}-${Ga.AXIS.SECONDARY}`,...n.query.series(Ga.TYPE.MARKER).map((e=>Ll(Wa.COMPONENT.MARKER,e))),...n.query.series(Ga.TYPE.LINE).map((e=>Ll(Wa.COMPONENT.POINT,e))),Wa.COMPONENT.AXIS.MAJOR,Wa.COMPONENT.AXIS_OVERLAY.TIME_INNER,Wa.COMPONENT.AXIS_OVERLAY.TIME_OUTER,Wa.COMPONENT.AXIS_OVERLAY.CONTINUOUS,Wa.COMPONENT.LEGEND_CATEGORICAL],components:(e,t)=>{const[n]=t,{key:r}=n,o={key:r,action:e.srcEvent.ctrlKey||a?"set":"toggle",contexts:["selection"]};return-1===[Wa.COMPONENT.AXIS.MAJOR,Wa.COMPONENT.AXIS_OVERLAY.TIME_INNER,Wa.COMPONENT.AXIS_OVERLAY.TIME_OUTER,Wa.COMPONENT.AXIS_OVERLAY.CONTINUOUS,Wa.COMPONENT.LEGEND_CATEGORICAL].indexOf(r)&&(o.data=["selectionDimension"]),[o]}},l={actions:e,isLocked:e=>e.some((e=>"legend-cat"===e.type))?o.isSelectionLocked({isMeasureSelectionLocked:r.meta.isDimensionLocked}):r.meta.isDimensionLocked,hitRadius:e=>dm(e)?0:3,debouncer:w,flags:i};return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[am(e,t)],components:[]}}(s,l)}function pm({actions:e,models:t}){const{layoutService:n,dockService:r,seriesModel:o}=t,{isDiscrete:i,isDimensionLocked:a}=n.meta;if(!i||a)return!1;const s=[...o.meta.seriesComponentKeys,Wa.COMPONENT.AXIS.MAJOR];return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:o,dock:i}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"inside"},target:{components:o,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[lm(e,t,"area")],components:[n]}}({eventName:"discreteRange",key:"discrete-range-brush",components:[{key:s[0],contexts:["selection"],action:"set",data:["selectionDimension"]}],targets:s,fillTargets:[Wa.COMPONENT.AXIS.MAJOR],dock:r.meta.major.dock},{actions:e})}const fm={components:[],interactions:[]};function hm({actions:e,chart:t,models:n,isUnsupportedFeature:r}){const o=function({actions:e,models:t,isUnsupportedFeature:n}){const{dockService:r,seriesModel:o,layoutService:i}=t;return!(i.meta.isDimensionLocked||i.meta.isBarSeriesStacked||null!=n&&n("rangeSelections"))&&cm({eventName:"minorRange",key:"minor-range-brush",targets:[Wa.COMPONENT.AXIS.MINOR.PRIMARY,`${Wa.COMPONENT.BAR}-${Ga.AXIS.PRIMARY}`,...o.query.series(Ga.TYPE.MARKER).filter((e=>e.isPrimary)).map((e=>Ll(Wa.COMPONENT.MARKER,e))),...o.query.series(Ga.TYPE.LINE).filter((e=>e.isPrimary)).map((e=>Ll(Wa.COMPONENT.POINT,e)))],fillTargets:[Wa.COMPONENT.AXIS.MINOR.PRIMARY],dock:r.meta.minor.dock,scale:Wa.SCALE.MINOR.PRIMARY,onEdited(){e.select.emit("end","minorRange")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||fm,i=function({actions:e,models:t,isUnsupportedFeature:n}){const{dockService:r,seriesModel:o,layoutService:i}=t;return!(i.meta.isDimensionLocked||i.meta.isBarSeriesStacked||null!=n&&n("rangeSelections"))&&cm({eventName:"minorRange-secondary",key:"minor-secondary-range-brush",targets:[Wa.COMPONENT.AXIS.MINOR.SECONDARY,`${Wa.COMPONENT.BAR}-${Ga.AXIS.SECONDARY}`,...o.query.series(Ga.TYPE.MARKER).filter((e=>!e.isPrimary)).map((e=>Ll(Wa.COMPONENT.MARKER,e))),...o.query.series(Ga.TYPE.LINE).filter((e=>!e.isPrimary)).map((e=>Ll(Wa.COMPONENT.POINT,e)))],fillTargets:[Wa.COMPONENT.AXIS.MINOR.SECONDARY],dock:r.meta.minorSecondary.dock,scale:Wa.SCALE.MINOR.SECONDARY,onEdited(){e.select.emit("end","minorRange-secondary")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||fm,a=pm({actions:e,models:n})||fm,s=function({actions:e,chart:t,models:n}){const{layoutService:r,dockService:o,seriesModel:i}=n,{isContinuous:a,isTime:s}=r.meta;if(!a)return!1;const l=s?[Wa.COMPONENT.AXIS_OVERLAY.TIME_INNER,Wa.COMPONENT.AXIS_OVERLAY.TIME_OUTER]:[Wa.COMPONENT.AXIS_OVERLAY.CONTINUOUS];return cm({eventName:"continuousRange",key:"continuous-range-brush",targets:[`${Wa.COMPONENT.BAR}-${Ga.AXIS.PRIMARY}`,`${Wa.COMPONENT.BAR}-${Ga.AXIS.SECONDARY}`,...i.query.series(Ga.TYPE.MARKER).map((e=>Ll(Wa.COMPONENT.MARKER,e))),...i.query.series(Ga.TYPE.LINE).map((e=>Ll(Wa.COMPONENT.POINT,e))),...l],fillTargets:l,dock:o.meta.major.dock,scale:s?Wa.SCALE.MAJOR_INNER:Wa.SCALE.MAJOR,observeBrush:!0,multiple:!0,toLabel({datum:e,data:n,scale:r}){const o=s?r.formatter():t.formatter(Wa.FORMATTER.PRIMARY),i=t.scale(Wa.SCALE.MAJOR).max(),a=t.brushSelectionIncludeMax&&e===i;return`${e!==Math.max(...n)||a?"":"<"}${o(e)}`}},{actions:e})}({actions:e,chart:t,models:n})||fm,l=function({actions:e,models:t}){const{colorService:n,layoutService:r}=t,[o]=n.custom.legendComponents(),i=n.custom.wrappedScales(),{isDimensionLocked:a}=r.meta;if(a||!o)return!1;const s=`${Wa.SCALE.COLOR}Range`,{type:l,key:c}=o,u=i[s];return!("legend-seq"!==l||!u||u.min>=u.max)&&cm({eventName:"legendRange",key:"legend-range-brush",targets:[c],fillTargets:[c],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:o.layout.dock,scale:s,bubblesPlacement:"outside",onEdited:()=>{e.select.emit("end","legendRange")}},{actions:e})}({actions:e,models:n})||fm;return{components:[...o.components,...i.components,...a.components,...s.components,...l.components],interactions:[...o.interactions,...i.interactions,...a.interactions,...s.interactions,...l.interactions]}}function gm({actions:e,models:t}){const{layoutService:n,seriesModel:r}=t,{seriesComponentKeys:o}=r.meta;if(n.meta.isDimensionLocked)return{components:[],interactions:[]};const i={key:"lasso",componentTargetKey:o[0],components:o.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=rm(n);return{interactions:[im(n,t)],components:[r]}}(i,{actions:e})}function ym({picasso:e,chart:t,models:n,environment:r,flags:o,viewState:i,viewCache:a,actions:s,isUnsupportedFeature:l}){const{colorService:c,pluginService:u}=n,d=n.layoutService.getLayout(),{options:m}=r,p=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:m}),f=(h={logicalSize:p,minCenterRatio:0},{layoutModes:he.getLayoutModes(),center:void 0!==h.minCenterRatio?{minWidthRatio:h.minCenterRatio,minHeightRatio:h.minCenterRatio}:void 0,logicalSize:h.logicalSize?{align:.5,preserveAspectRatio:!0,...h.logicalSize}:void 0});var h;const g=function({chart:e,models:t,environment:n,flags:r,viewState:o,viewCache:i,actions:a}){const{colorService:s,layoutService:l,dockService:c,tooltipService:u,disclaimerService:d}=t,m=function({environment:e,models:t}){const{translator:n,options:r}=e,{themeService:o,disclaimerService:i}=t,a=i.getDisclaimer();if(!a)return!1;const{fontFamily:s}=o.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()?[m]:[...Wc({models:t}),...bl({models:t,flags:r}),...Bc({chart:e,models:t,environment:n,flags:r,viewState:o,viewCache:i}),uu({models:t,environment:n}),...wl({models:t,environment:n,flags:r}),...Jc({models:t,environment:n,actions:a,flags:r}),...eu({models:t,environment:n,actions:a,viewCache:i,flags:r}),Li({viewState:o,viewCache:i,layoutService:l,dockService:c}),...au({models:t}),...su({chart:e,models:t,environment:n}),tu({models:t,environment:n,viewState:o,viewCache:i}),...s.custom.legendComponents(),lu(t),...iu({chart:e,models:t,viewState:o,viewCache:i,environment:n}),...u.getComponents(),m].filter(Boolean)}({chart:t,models:n,environment:r,flags:o,viewState:i,viewCache:a,actions:s}),y=function({actions:e,chart:t,models:n,isUnsupportedFeature:r}){const{layoutService:o}=n,i=o.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),a=mm({actions:e,models:n});if(i)return{components:[...a.components],gestures:[...a.interactions]};const s=hm({actions:e,chart:t,models:n,isUnsupportedFeature:r}),l=gm({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}),v=u.extendComponents([...g,...y.components]);return{collections:ol({models:n}),scales:gl({picasso:e,models:n,viewState:i,viewCache:a,environment:r}),components:v,formatters:du({models:n}),interactions:nm({chart:t,models:n,environment:r,viewState:i,viewCache:a,actions:s,selectables:y}),strategy:f,palettes:c.getPalettes()}}const vm=({picasso:e,chart:t,models:n,environment:r,flags:a,viewState:s,viewCache:l,actions:c,isUnsupportedFeature:u})=>{const{width:d,height:m}=o(),[,p]=i((async()=>{if(!(null!=t&&t.update&&n&&r&&s))return;const{colorService:o,discreteModel:i,dockService:p,layoutService:f,refLineModel:h,animationsModel:g}=n;function y(){t.update({settings:ym({picasso:e,chart:t,models:n,environment:r,flags:a,viewState:s,viewCache:l,actions:c,isUnsupportedFeature:u})})}p.update({width:d,height:m}),o.custom.updateLegend(),h.update({picasso:e,chart:t,models:n,environment:r,viewState:s,viewCache:l,actions:c});const v=f.getDataPages();g.meta.isSizeChanging=!0,f.setDataPages([]),y(),f.setDataPages(v),f.meta.isContinuous||await i.command.initialize(),y()}),[d,m]);if(p)throw p},bm=[Wa.COMPONENT.AXIS_TITLE.MAJOR,Wa.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,Wa.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,Wa.COMPONENT.GRID_LINE,Wa.COMPONENT.ZERO_LINE],xm=({models:{layoutService:e,fieldModel:t,appLayoutModel:n}})=>({type:"q",key:Wa.DATA.MAIN,data:e.getHyperCube(),config:{virtualFields:t.virtuals,localeInfo:n.qLocaleInfo}}),Sm=({models:{layoutService:e,fieldModel:t,continuousModel:n,appLayoutModel:r}})=>e.meta.isContinuous?[{type:"q",key:Wa.DATA.REDUCED,data:n.getInitialCube(),config:{virtualFields:t.virtuals,localeInfo:r.qLocaleInfo}}]:[];const Em={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Mm(e){return Em[e]||e}function Cm(e){return function(t,n,r){let o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=Mm(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((t=>{const n=Mm(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,o=e,i={chart:t,mediator:n,settings:o},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}const wm={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},Tm={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},Om={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},km={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},Rm="m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z",Am={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},Nm={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"},Lm="N",Im="H",Pm="C",Dm={N:void 0,H:wm,C:Om},qm=(e,t)=>{switch(e.qGrouping){case Lm:return;case Im:return{path:wm,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case Pm:return{path:t?Tm:Om,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function zm(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=$i.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function $m(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=me(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),zm(e,a,c)}))}function jm(e){return e.qGrouping===Lm?e.qFallbackTitle||"":e.title||""}const Fm=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))},_m=async(e,t,n,r,o)=>{const i=await Fm(e,n),a=n.filter((e=>!i.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const i=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===Lm&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const o=e.qDef.qLabelExpression;if(o)return t.evaluate(o);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(n,e,r,i),s=(null==i?void 0:i.qDim.qGrouping)||n.qDef.qGrouping,l=Dm[s],c=s!==Lm;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){$m(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function Bm({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===Lm,d=l.qGrouping===Im;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await(async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case Im:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.drillUp(o,r,e.qGroupPos-i)}})));return{id:e.cId,icon:wm,groupItem:!0,title:e.title,selected:!1,children:n}}case Pm:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=null!=t&&t.setActiveField?e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}}))):[];return{id:e.cId,icon:Om,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:jm(e)}}})(l,o,a,e),n=c?await _m(a,o,r,i,s):[];return(u||d||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function Hm(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Im?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:qm(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===Lm?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:jm(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function Vm({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await Fm(n,t),u=t.filter((e=>!o.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){$m(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function Um(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function Ym(){return Ym=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},Ym.apply(null,arguments)}var Wm={exports:{}};function Gm(){}function Xm(){}Xm.resetWarningCache=Gm;Wm.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Xm,resetWarningCache:Gm};return n.PropTypes=n,n}();var Km=te(Wm.exports),Jm={black:"#000",white:"#fff"},Zm="#e57373",Qm="#f44336",ep="#d32f2f",tp="#ff4081",np="#f50057",rp="#c51162",op="#7986cb",ip="#3f51b5",ap="#303f9f",sp="#64b5f6",lp="#2196f3",cp="#1976d2",up="#81c784",dp="#4caf50",mp="#388e3c",pp="#ffb74d",fp="#ff9800",hp="#f57c00",gp={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function yp(){return yp=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},yp.apply(null,arguments)}function vp(e){return vp="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},vp(e)}function bp(e){return e&&"object"===vp(e)&&e.constructor===Object}function xp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?yp({},e):e;return bp(e)&&bp(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(bp(t[o])&&o in e?r[o]=xp(e[o],t[o],n):r[o]=t[o])})),r}function Sp(e){var t=function(e,t){if("object"!=vp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=vp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vp(t)?t:t+""}function Ep(e,t,n){return(t=Sp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mp(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function Cp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function wp(e){if(e.type)return e;if("#"===e.charAt(0))return wp(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Mp(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Tp(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Op(e){var t="hsl"===(e=wp(e)).type?wp(function(e){var t=(e=wp(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Tp({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function kp(e,t){return e=wp(e),t=Cp(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Tp(e)}function Rp(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}function Ap(e,t){if(null==e)return{};var n,r,o=Rp(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Np=["xs","sm","md","lg","xl"];function Lp(e,t,n){var r;return yp({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),yp({paddingLeft:t(2),paddingRight:t(2)},n,Ep({},e.up("sm"),yp({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Ep(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Ep(r,e.up("sm"),{minHeight:64}),r)},n)}var Ip={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Jm.white,default:gp[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Pp={text:{primary:Jm.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:gp[800],default:"#303030"},action:{active:Jm.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 Dp(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=wp(e),t=Cp(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Tp(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=wp(e),t=Cp(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Tp(e)}(e.main,i)))}function qp(e){var t=e.primary,n=void 0===t?{light:op,main:ip,dark:ap}:t,r=e.secondary,o=void 0===r?{light:tp,main:np,dark:rp}:r,i=e.error,a=void 0===i?{light:Zm,main:Qm,dark:ep}:i,s=e.warning,l=void 0===s?{light:pp,main:fp,dark:hp}:s,c=e.info,u=void 0===c?{light:sp,main:lp,dark:cp}:c,d=e.success,m=void 0===d?{light:up,main:dp,dark:mp}:d,p=e.type,f=void 0===p?"light":p,h=e.contrastThreshold,g=void 0===h?3:h,y=e.tonalOffset,v=void 0===y?.2:y,b=Ap(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Op(e),r=Op(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Pp.text.primary)>=g?Pp.text.primary:Ip.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=yp({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Mp(4,t));if("string"!=typeof e.main)throw new Error(Mp(5,JSON.stringify(e.main)));return Dp(e,"light",n,v),Dp(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},E={dark:Pp,light:Ip};return xp(yp({common:Jm,type:f,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(m),grey:gp,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},E[f]),b)}function zp(e){return Math.round(1e5*e)/1e5}function $p(e){return zp(e)}var jp={textTransform:"uppercase"},Fp='"Roboto", "Helvetica", "Arial", sans-serif';function _p(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?Fp:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,m=void 0===d?500:d,p=n.fontWeightBold,f=void 0===p?700:p,h=n.htmlFontSize,g=void 0===h?16:h,y=n.allVariants,v=n.pxToRem,b=Ap(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},E=function(e,t,n,r,i){return yp({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===Fp?{letterSpacing:"".concat(zp(r/t),"em")}:{},i,y)},M={h1:E(l,96,1.167,-1.5),h2:E(l,60,1.2,-.5),h3:E(u,48,1.167,0),h4:E(u,34,1.235,.25),h5:E(u,24,1.334,0),h6:E(m,20,1.6,.15),subtitle1:E(u,16,1.75,.15),subtitle2:E(m,14,1.57,.1),body1:E(u,16,1.5,.15),body2:E(u,14,1.43,.15),button:E(m,14,1.75,.4,jp),caption:E(u,12,1.66,.4),overline:E(u,12,2.66,1,jp)};return xp(yp({htmlFontSize:g,pxToRem:S,round:$p,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:m,fontWeightBold:f},M),b,{clone:!1})}function Bp(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var Hp=["none",Bp(0,2,1,-1,0,1,1,0,0,1,3,0),Bp(0,3,1,-2,0,2,2,0,0,1,5,0),Bp(0,3,3,-2,0,3,4,0,0,1,8,0),Bp(0,2,4,-1,0,4,5,0,0,1,10,0),Bp(0,3,5,-1,0,5,8,0,0,1,14,0),Bp(0,3,5,-1,0,6,10,0,0,1,18,0),Bp(0,4,5,-2,0,7,10,1,0,2,16,1),Bp(0,5,5,-3,0,8,10,1,0,3,14,2),Bp(0,5,6,-3,0,9,12,1,0,3,16,2),Bp(0,6,6,-3,0,10,14,1,0,4,18,3),Bp(0,6,7,-4,0,11,15,1,0,4,20,3),Bp(0,7,8,-4,0,12,17,2,0,5,22,4),Bp(0,7,8,-4,0,13,19,2,0,5,24,4),Bp(0,7,9,-4,0,14,21,2,0,5,26,4),Bp(0,8,9,-5,0,15,22,2,0,6,28,5),Bp(0,8,10,-5,0,16,24,2,0,6,30,5),Bp(0,8,11,-5,0,17,26,2,0,6,32,5),Bp(0,9,11,-5,0,18,28,2,0,7,34,6),Bp(0,9,12,-6,0,19,29,2,0,7,36,6),Bp(0,10,13,-6,0,20,31,3,0,8,38,7),Bp(0,10,13,-6,0,21,33,3,0,8,40,7),Bp(0,10,14,-6,0,22,35,3,0,8,42,7),Bp(0,11,14,-7,0,23,36,3,0,9,44,8),Bp(0,11,15,-7,0,24,38,3,0,9,46,8)],Vp={borderRadius:4};function Up(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 Yp(e,t){if(e){if("string"==typeof e)return Up(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)?Up(e,t):void 0}}function Wp(e){return function(e){if(Array.isArray(e))return Up(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Yp(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 Gp(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Yp(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 Xp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var Kp={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)"},Jp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Zp(e){return"".concat(Math.round(e),"ms")}var Qp={easing:Kp,duration:Jp,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Jp.standard:n,o=t.easing,i=void 0===o?Kp.easeInOut:o,a=t.delay,s=void 0===a?0:a;return Ap(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Zp(r)," ").concat(i," ").concat("string"==typeof s?s:Zp(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},ef={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function tf(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=Ap(e,["breakpoints","mixins","palette","spacing","typography"]),d=qp(a),m=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=Ap(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=Np.indexOf(t);return r===Np.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Np[r+1]]?n[Np[r+1]]:t)-a/100).concat(o,")")}return yp({keys:Np,values:n,up:l,down:function(e){var t=Np.indexOf(e)+1,r=n[Np[t]];return t===Np.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),p=Xp(s),f=xp({breakpoints:m,direction:"ltr",mixins:Lp(m,p,o),overrides:{},palette:d,props:{},shadows:Hp,typography:_p(d,c),spacing:p,shape:Vp,transitions:Qp,zIndex:ef},u),h=arguments.length,g=new Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return f=g.reduce((function(e,t){return xp(e,t)}),f)}var nf="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",rf=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function of(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==rf.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[nf]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function af(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var sf="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},lf="object"===("undefined"==typeof window?"undefined":sf(window))&&"object"===("undefined"==typeof document?"undefined":sf(document))&&9===document.nodeType;function cf(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sp(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uf(e,t){return uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uf(e,t)}function df(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,uf(e,t)}function mf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var pf={}.constructor;function ff(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(ff);if(e.constructor!==pf)return e;var t={};for(var n in e)t[n]=ff(e[n]);return t}function hf(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=ff(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var gf=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},yf=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=gf(e[n]," ");else t=gf(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function vf(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function bf(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function xf(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=vf(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var m in d){var p=d[m];null!=p&&(r&&(r+=l),r+=bf(m+":"+c+yf(p)+";",i))}}else for(var f in a){var h=a[f];null!=h&&(r&&(r+=l),r+=bf(f+":"+c+yf(h)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=bf(g+":"+c+yf(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),bf(""+e+c+"{"+r,--i)+bf("}",i)):r}var Sf=/([[\].#*$><+~=|^:(),"'`\s])/g,Ef="undefined"!=typeof CSS&&CSS.escape,Mf=function(e){return Ef?Ef(e):e.replace(Sf,"\\$1")},Cf=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),wf=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(mf(mf(o)),s),o.selectorText="."+Mf(o.id)),o}df(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=yf(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?yp({},e,{allowEmpty:!0}):e;return xf(this.selectorText,this.style,n)},cf(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Cf),Tf={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new wf(e,t,n)}},Of={indent:1,children:!0},kf=/@([\w-]+)/,Rf=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(kf);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Qf(yp({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Of);var t=vf(e).linebreak;if(null==e.indent&&(e.indent=Of.indent),null==e.children&&(e.children=Of.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Af=/@container|@media|@supports\s+/,Nf={onCreateRule:function(e,t,n){return Af.test(e)?new Rf(e,t,n):null}},Lf={indent:1,children:!0},If=/@keyframes\s+([\w-]+)/,Pf=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(If);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:Mf(a(this,i)),this.rules=new Qf(yp({},n,{parent:this})),t)this.rules.add(s,t[s],yp({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Lf);var t=vf(e).linebreak;if(null==e.indent&&(e.indent=Lf.indent),null==e.children&&(e.children=Lf.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Df=/@keyframes\s+/,qf=/\$([\w-]+)/g,zf=function(e,t){return"string"==typeof e?e.replace(qf,(function(e,n){return n in t?t[n]:e})):e},$f=function(e,t,n){var r=e[t],o=zf(r,n);o!==r&&(e[t]=o)},jf={onCreateRule:function(e,t,n){return"string"==typeof e&&Df.test(e)?new Pf(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&$f(e,"animation-name",n.keyframes),"animation"in e&&$f(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return zf(e,r.keyframes);default:return e}}},Ff=function(e){function t(){return e.apply(this,arguments)||this}return df(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?yp({},e,{allowEmpty:!0}):e;return xf(this.key,this.style,n)},t}(Cf),_f={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Ff(e,t,n):null}},Bf=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=vf(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=xf(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return xf(this.at,this.style,e)},e}(),Hf=/@font-face/,Vf={onCreateRule:function(e,t,n){return Hf.test(e)?new Bf(e,t,n):null}},Uf=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return xf(this.key,this.style,e)},e}(),Yf={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Uf(e,t,n):null}},Wf=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Gf={"@charset":!0,"@import":!0,"@namespace":!0},Xf={onCreateRule:function(e,t,n){return e in Gf?new Wf(e,t,n):null}},Kf=[Tf,Nf,jf,_f,Vf,Yf,Xf],Jf={process:!0},Zf={force:!0,process:!0},Qf=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=yp({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Mf(this.classes[d]));var m=hf(d,t,u);if(!m)return null;this.register(m);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,m),m},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=yp({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof wf?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Pf&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof wf?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Pf&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Jf);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Zf)}for(var u in s){var d=t.style[u],m=s[u];null==d&&d!==m&&t.prop(u,null,Zf)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=vf(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),eh=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=yp({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Qf(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),th=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),nh=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Rp(t,["attached"]),o=vf(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},cf(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),rh=new nh,oh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ih="2f1acc6c3a606b082e5eef5e54414ffb";null==oh[ih]&&(oh[ih]=0);var ah=oh[ih]++,sh=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ah+o+t:i+n.key+"-"+ah+(o?"-"+o:"")+"-"+t}},lh=function(e){var t;return function(){return t||(t=e()),t}},ch=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},uh=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=yf(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},dh=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},mh=function(e,t){return e.selectorText=t,e.selectorText===t},ph=lh((function(){return document.querySelector("head")}));function fh(e){var t=rh.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=ph(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var hh=lh((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),gh=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},yh=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},vh=function(){function e(e){this.getPropertyValue=ch,this.setProperty=uh,this.removeProperty=dh,this.setSelector=mh,this.hasInsertedRules=!1,this.cssRules=[],e&&rh.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=hh();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=fh(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else ph().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=yh(n,t);if(!1===(o=gh(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=yh(n,t),l=gh(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof eh&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),bh=0,xh=function(){function e(e){this.id=bh++,this.version="10.10.0",this.plugins=new th,this.options={id:{minify:!1},createGenerateId:sh,Renderer:lf?vh:null,plugins:[]},this.generateId=sh({minify:!1});for(var t=0;t<Kf.length;t++)this.plugins.use(Kf[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=yp({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===rh.index?0:rh.index+1);var r=new eh(e,yp({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),rh.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=yp({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=hf(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Sh=function(e){return new xh(e)},Eh="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Mh(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Mh(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
7
|
+
System.register(["@nebula.js/stardust","qlik-chart-modules","hammerjs","picasso.js","picasso-plugin-q","react","react-dom","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,m,p,f,h,g,y,v,b,x,S,E,M,C,w,O,T,k,R,A,N,L,I,P,D,q,z,$,F,j,_,B,H,V,U,Y,W,G,X,K,J,Z,Q;return{setters:[function(e){t=e.useElement,n=e.useState,r=e.useEffect,o=e.useRect,i=e.usePromise,a=e.useModel,s=e.useStaleLayout,l=e.useApp,c=e.useAppLayout,u=e.usePlugins,d=e.useEmbed,m=e.useOptions,p=e.useTranslator,f=e.useTheme,h=e.useDeviceType,g=e.useConstraints,y=e.useLayout,v=e.useAction,b=e.useSelections,x=e.onTakeSnapshot,S=e.useImperativeHandle},function(e){E=e.getValue,M=e.setValue,C=e.cache,w=e.debouncer,O=e.throttler,T=e.colorService,k=e.disclaimerService,R=e.tooltipService,A=e.layoutService,N=e.alternativeService,L=e.dockService,I=e.themeService,P=e.pluginService,D=e.storage,q=e.selectionService,z=e.fontResolver},function(e){$=e.default},function(e){F=e.default},function(e){j=e.default},function(e){_=e.default,B=e,H=e.isValidElement,V=e.cloneElement,U=e.Children,Y=e.forwardRef,W=e.useContext,G=e.useState,X=e.useEffect,K=e.useRef},function(e){J=e,Z=e.default},function(e){Q=e.default}],execute:function(){e("default",(function(e){var o;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(ee).forEach((t=>{e.add(ee[t])}))}}(e.translator);const{flags:a}=e,s=null===(o=e.anything)||void 0===o||null===(o=o.sense)||void 0===o?void 0:o.isUnsupportedFeature,l=MN();return{qae:OD(e),ext:tq(e),component(){const e=function(){const[e,t]=n();return r((()=>t(C())),[]),e}(),o=function(){const[e,t]=n();return r((()=>{t(D({viewRange:[0,1],scrollOffset:void 0}))}),[]),e}(),c=function(){const e=m(),t=p(),o=d(),i=f(),[a,s]=n(),l=h();return r((()=>{s({options:{direction:"ltr",...e},translator:t,theme:i,embed:o,deviceType:l})}),[e.direction,e.freeResize,t.language(),i.name(),l]),a}(),u=function(){const e=g(),[t,o]=n(!1),[i,a]=n(!1),[s,l]=n(!1),c=function(){const e=g(),[t,o]=n(!1),[i,a]=n({}),[s,l]=n();return r((()=>()=>{a({})}),[]),r((()=>{e&&o(!e.select&&!e.active)}),[e]),{enabled:()=>t,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 s},set brushSelectionIncludeMax(e){l(e)},getBrushOptions:void 0}}(),u=function(){var e;const t=g(),[o,i]=n(!1),[a,s]=n(!1),l=y(),c=p(),u=!!l.qSelectionInfo.qInSelections,d=!(null===(e=l.qHyperCube)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e||null===(e=e[0])||void 0===e||!e.qIsOneAndOnlyOne);r((()=>{t&&i(!t.select&&!t.active)}),[t]);const m=e=>{s("boolean"==typeof e?e:!a)};return v((()=>({key:"lasso",label:c.get(a?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:gD,hidden:!o||!u||d,active:a,action:m})),[u,d,a,o,c.language()]),{action:m,enabled:()=>o,active:()=>a}}();let d=yD;r((()=>{e&&(o(!e.active),a(!e.active),l(!e.passive))}),[e]);const[m]=n({});return m.scroll={enabled:()=>t&&d.query.getCanScroll(),attachDiscreteModel:e=>{d=e||yD}},m.interact={enabled:()=>i},m.tooltip={enabled:()=>s},m.lasso=u,m.select=c,m}(),b=function({picasso:e,environment:o}){const i=t(),[a,s]=n();return r((()=>{if(!o)return;i.style.overflow="hidden";const t=e({renderer:{prio:[o.options.renderer||"canvas"]}}).chart({element:i,data:[],settings:{}});s(t);const{destroy:n}=t;return()=>{n()}}),[o]),a}({picasso:l,environment:c}),x=xD({chart:b,actions:u}),S=hD({picasso:l,chart:b,environment:c,flags:a,viewState:o,viewCache:e,actions:u,selectionService:x});!function({picasso:e,chart:t,models:n,environment:r,flags:o,viewState:a,viewCache:s,actions:l}){const{event:{onZoomIntercept:c,onZoomChange:u}}=Kd,[,d]=i((async()=>{if(!(null!=t&&t.update&&n&&r&&a&&s))return;const{layoutService:i,colorService:d,continuousModel:m,discreteModel:p,refLineModel:f,seriesModel:h,animationsModel:g}=n,{miniComponentKeys:y}=h.meta,{options:v}=r,{viewState:b={}}=v,{legendScrollOffset:x,scrollOffset:S}=i.meta.isSnapshot?i.getLayoutValue("snapshotData.content.chartData",{}):b;a.preventSet("scrollOffset",S),a.preventSet("legendScrollOffset",x),a.preventSet("title",i.getLayoutValue("title"));const E=()=>{f&&f.update(),g.meta.isPartialUpdating=!0,t.update({partialData:!0,excludeFromUpdate:[...vm,...y]}),g.meta.isPartialUpdating=!1};function M(i=!1){const c=gm({picasso:e,chart:t,models:n,environment:r,flags:o,viewState:a,viewCache:s,actions:l}),u=i&&[bm({models:n}),...xm({models:n}),...d.getData()];i?(t.layoutComponents({settings:c,data:u}),g.meta.hasSlicedHats=c.components.filter((e=>"box-sliced-hat"===e.type)).length>0):t.update({settings:c,data:u})}a.onChanged("scrollOffset",E),i.meta.isContinuous&&(a.onChanged("zoom",u({layoutService:i,continuousDataModel:m},E)),a.intercept("zoom",c({viewCache:s})));const C=i.getDataPages();i.setDataPages([]),M(!0),i.setDataPages(C),i.meta.isContinuous||await p.command.initialize(),M(!1),Pa.cacheProperties({viewCache:s,layout:i.getLayout()})}),[null==t?void 0:t.update,n,r]);if(d)throw d}({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:o,viewCache:e,actions:u}),ym({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:o,viewCache:e,actions:u,isUnsupportedFeature:s}),TD({models:S,chart:b,viewState:o})}}}));var ee={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 te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ne(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 re=Object.prototype.hasOwnProperty,oe=Object.prototype.toString,ie=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,se=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===oe.call(e)},le=function(e){if(!e||"[object Object]"!==oe.call(e))return!1;var t,n=re.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&re.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||re.call(e,t)},ce=function(e,t){ie&&"__proto__"===t.name?ie(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ue=function(e,t){if("__proto__"===t){if(!re.call(e,t))return;if(ae)return ae(e,t).value}return e[t]},de=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ue(s,n),s!==(o=ue(t,n))&&(u&&o&&(le(o)||(i=se(o)))?(i?(i=!1,a=r&&se(r)?r:[]):a=r&&le(r)?r:{},ce(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&ce(s,{name:n,newValue:o}));return s},me=te(de);const pe=[["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}]],fe={};pe.forEach((([e,{width:t,height:n}])=>{fe[e]={width:t,height:n}}));const he={getLayoutModes:()=>fe,getLayoutMode(e,t){let n;for(n=0;n<pe.length;++n)if(e>=pe[n][1].width&&t>=pe[n][1].height)return pe[n][0];return"SPARK"}};const ge=["$date","$timestamp","$time"],ye=["D","TS","T"],ve={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>ge.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&ye.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(ve.hasTimeTag(t)&&ve.hasUnknownFormat(t)||ve.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&ve.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)&&ve.canBeContinuousDimension(r[0])},maxNumberOfLines:12},be=/^[A-Z][A-z0-9_]*$/i,xe={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,"")}},Se={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},getValue:(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i},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||be.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>xe.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},Ee=e=>Se.getValue(e,"qHyperCube.qDimensionInfo",[]),Me=e=>Se.getValue(e,"qHyperCube.qMeasureInfo",[]),Ce=e=>Se.getValue(e,"barGrouping.grouping"),we={continuous:(e,t=!1)=>!!ve.canBeContinuous(e)&&(Se.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!Ee(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===Ce(e)&&(Ee(e).length>1||Me(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&Ee(e).length>1&&1===Me(e).length},groupedByMeasure(e){return this.grouped(e)&&1===Ee(e).length&&Me(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==Ce(e)&&"butterfly"!==Ce(e)||this.continuous(e))&&(Ee(e).length>1||Me(e).length>1)},stackedByDimension(e){return this.stacked(e)&&Ee(e).length>1&&1===Me(e).length},stackedByMeasure(e){return this.stacked(e)&&1===Ee(e).length&&Me(e).length>1},simple:e=>0===Ee(e).length||1===Ee(e).length&&1===Me(e).length,snapshot:e=>!!Se.getValue(e,"snapshotData")};function Oe(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Te=e=>{throw e.isHandled=!0,e};const ke={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?ke.getVerticalDock(t):n?ke.getOppositeDock(ke.getHorizontalDock(t)):ke.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},Re=166/26,Ae=12/11,Ne={stringWidthOverMWidth:e=>(12*Math.min(e,3)+Math.max(e-3,0)*Re)/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 o=t+n+r;return{latin:e.length-o,cjk:o}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let o;void 0===t?e.forEach((e=>{o=Ne.getCharacterRatios(e[n]),r.latin+=o.latin,r.cjk+=o.cjk})):e.forEach((e=>{o=Ne.getCharacterRatios(e[t][n]),r.latin+=o.latin,r.cjk+=o.cjk}));const i=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/i,r.cjkRatio=r.cjk/i,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const o=Ne.getTotalCharacterRatios(t,n,r),i=o.latinRatio*e,a=o.cjkRatio*e;return Math.ceil(Ne.stringWidthOverMWidth(i)+a*Ae)}},Le=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Ie=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Pe=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),De={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Le.test(e),isRtlChar:e=>Ie.test(e)||Pe.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],De.isLtrChar(r))return"ltr";if(De.isRtlChar(r))return"rtl"}return"ltr"}},qe={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?qe.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=De.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=De.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:De.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=De.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=De.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,qe.getColorSymbol(e,t)]:[qe.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=De.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=De.detectTextDirection(e.value);let l;return l=o?r?[e.value,qe.getColorSymbol(t,n)]:[qe.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function ze(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $e(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Fe(){}var je=.7,_e=1/je,Be="\\s*([+-]?\\d+)\\s*",He="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ue=/^#([0-9a-f]{3,8})$/,Ye=new RegExp(`^rgb\\(${Be},${Be},${Be}\\)$`),We=new RegExp(`^rgb\\(${Ve},${Ve},${Ve}\\)$`),Ge=new RegExp(`^rgba\\(${Be},${Be},${Be},${He}\\)$`),Xe=new RegExp(`^rgba\\(${Ve},${Ve},${Ve},${He}\\)$`),Ke=new RegExp(`^hsl\\(${He},${Ve},${Ve}\\)$`),Je=new RegExp(`^hsla\\(${He},${Ve},${Ve},${He}\\)$`),Ze={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Qe(){return this.rgb().formatHex()}function et(){return this.rgb().formatRgb()}function tt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?nt(t):3===n?new at(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?rt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?rt(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=Ye.exec(e))?new at(t[1],t[2],t[3],1):(t=We.exec(e))?new at(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ge.exec(e))?rt(t[1],t[2],t[3],t[4]):(t=Xe.exec(e))?rt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ke.exec(e))?mt(t[1],t[2]/100,t[3]/100,1):(t=Je.exec(e))?mt(t[1],t[2]/100,t[3]/100,t[4]):Ze.hasOwnProperty(e)?nt(Ze[e]):"transparent"===e?new at(NaN,NaN,NaN,0):null}function nt(e){return new at(e>>16&255,e>>8&255,255&e,1)}function rt(e,t,n,r){return r<=0&&(e=t=n=NaN),new at(e,t,n,r)}function ot(e){return e instanceof Fe||(e=tt(e)),e?new at((e=e.rgb()).r,e.g,e.b,e.opacity):new at}function it(e,t,n,r){return 1===arguments.length?ot(e):new at(e,t,n,null==r?1:r)}function at(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function st(){return`#${dt(this.r)}${dt(this.g)}${dt(this.b)}`}function lt(){const e=ct(this.opacity);return`${1===e?"rgb(":"rgba("}${ut(this.r)}, ${ut(this.g)}, ${ut(this.b)}${1===e?")":`, ${e})`}`}function ct(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ut(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dt(e){return((e=ut(e))<16?"0":"")+e.toString(16)}function mt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ft(e,t,n,r)}function pt(e){if(e instanceof ft)return new ft(e.h,e.s,e.l,e.opacity);if(e instanceof Fe||(e=tt(e)),!e)return new ft;if(e instanceof ft)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new ft(a,s,l,e.opacity)}function ft(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ht(e){return(e=(e||0)%360)<0?e+360:e}function gt(e){return Math.max(0,Math.min(1,e||0))}function yt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ze(Fe,tt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qe,formatHex:Qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return pt(this).formatHsl()},formatRgb:et,toString:et}),ze(at,it,$e(Fe,{brighter(e){return e=null==e?_e:Math.pow(_e,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?je:Math.pow(je,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new at(ut(this.r),ut(this.g),ut(this.b),ct(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:st,formatHex:st,formatHex8:function(){return`#${dt(this.r)}${dt(this.g)}${dt(this.b)}${dt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lt,toString:lt})),ze(ft,(function(e,t,n,r){return 1===arguments.length?pt(e):new ft(e,t,n,null==r?1:r)}),$e(Fe,{brighter(e){return e=null==e?_e:Math.pow(_e,e),new ft(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?je:Math.pow(je,e),new ft(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new at(yt(e>=240?e-240:e+120,o,r),yt(e,o,r),yt(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ft(ht(this.h),gt(this.s),gt(this.l),ct(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=ct(this.opacity);return`${1===e?"hsl(":"hsla("}${ht(this.h)}, ${100*gt(this.s)}%, ${100*gt(this.l)}%${1===e?")":`, ${e})`}`}}));const vt=Math.PI/180,bt=180/Math.PI,xt=.96422,St=.82521,Et=4/29,Mt=6/29,Ct=3*Mt*Mt,wt=Mt*Mt*Mt;function Ot(e){if(e instanceof Tt)return new Tt(e.l,e.a,e.b,e.opacity);if(e instanceof It)return Pt(e);e instanceof at||(e=ot(e));var t,n,r=Nt(e.r),o=Nt(e.g),i=Nt(e.b),a=kt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=kt((.4360747*r+.3850649*o+.1430804*i)/xt),n=kt((.0139322*r+.0971045*o+.7141733*i)/St)),new Tt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Tt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function kt(e){return e>wt?Math.pow(e,1/3):e/Ct+Et}function Rt(e){return e>Mt?e*e*e:Ct*(e-Et)}function At(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Nt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Lt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof It)return new It(e.h,e.c,e.l,e.opacity);if(e instanceof Tt||(e=Ot(e)),0===e.a&&0===e.b)return new It(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*bt;return new It(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new It(e,t,n,null==r?1:r)}function It(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Pt(e){if(isNaN(e.h))return new Tt(e.l,0,0,e.opacity);var t=e.h*vt;return new Tt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ze(Tt,(function(e,t,n,r){return 1===arguments.length?Ot(e):new Tt(e,t,n,null==r?1:r)}),$e(Fe,{brighter(e){return new Tt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Tt(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 at(At(3.1338561*(t=xt*Rt(t))-1.6168667*(e=1*Rt(e))-.4906146*(n=St*Rt(n))),At(-.9787684*t+1.9161415*e+.033454*n),At(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ze(It,Lt,$e(Fe,{brighter(e){return new It(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new It(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Pt(this).rgb()}}));var Dt={isDark:function(e){return Lt(e).l<70}};function qt(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function zt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function $t(e){return 1===e.length&&(e=function(e){return function(t,n){return zt(e(t),n)}}(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}var Ft=$t(zt).right,jt=Math.sqrt(50),_t=Math.sqrt(10),Bt=Math.sqrt(2);function Ht(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=jt?10:i>=_t?5:i>=Bt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=jt?10:i>=_t?5:i>=Bt?2:1)}function Vt(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=jt?o*=10:i>=_t?o*=5:i>=Bt&&(o*=2),t<e?-o:o}function Ut(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Yt="$";function Wt(){}function Gt(e,t){var n=new Wt;if(e instanceof Wt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Xt(){}Wt.prototype=Gt.prototype={constructor:Wt,has:function(e){return Yt+e in this},get:function(e){return this[Yt+e]},set:function(e,t){return this[Yt+e]=t,this},remove:function(e){var t=Yt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Yt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Yt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Yt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Yt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Yt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Yt)return!1;return!0},each:function(e){for(var t in this)t[0]===Yt&&e(this[t],t.slice(1),this)}};var Kt=Gt.prototype;Xt.prototype={constructor:Xt,has:Kt.has,add:function(e){return this[Yt+(e+="")]=e,this},remove:Kt.remove,clear:Kt.clear,values:Kt.keys,size:Kt.size,empty:Kt.empty,each:Kt.each};var Jt=Array.prototype,Zt=Jt.map,Qt=Jt.slice;function en(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function tn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function nn(){}var rn=.7,on=1/rn,an="\\s*([+-]?\\d+)\\s*",sn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ln="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cn=/^#([0-9a-f]{3,8})$/,un=new RegExp("^rgb\\("+[an,an,an]+"\\)$"),dn=new RegExp("^rgb\\("+[ln,ln,ln]+"\\)$"),mn=new RegExp("^rgba\\("+[an,an,an,sn]+"\\)$"),pn=new RegExp("^rgba\\("+[ln,ln,ln,sn]+"\\)$"),fn=new RegExp("^hsl\\("+[sn,ln,ln]+"\\)$"),hn=new RegExp("^hsla\\("+[sn,ln,ln,sn]+"\\)$"),gn={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 yn(){return this.rgb().formatHex()}function vn(){return this.rgb().formatRgb()}function bn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xn(t):3===n?new Mn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Sn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Sn(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=un.exec(e))?new Mn(t[1],t[2],t[3],1):(t=dn.exec(e))?new Mn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=mn.exec(e))?Sn(t[1],t[2],t[3],t[4]):(t=pn.exec(e))?Sn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fn.exec(e))?Tn(t[1],t[2]/100,t[3]/100,1):(t=hn.exec(e))?Tn(t[1],t[2]/100,t[3]/100,t[4]):gn.hasOwnProperty(e)?xn(gn[e]):"transparent"===e?new Mn(NaN,NaN,NaN,0):null}function xn(e){return new Mn(e>>16&255,e>>8&255,255&e,1)}function Sn(e,t,n,r){return r<=0&&(e=t=n=NaN),new Mn(e,t,n,r)}function En(e,t,n,r){return 1===arguments.length?((o=e)instanceof nn||(o=bn(o)),o?new Mn((o=o.rgb()).r,o.g,o.b,o.opacity):new Mn):new Mn(e,t,n,null==r?1:r);var o}function Mn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Cn(){return"#"+On(this.r)+On(this.g)+On(this.b)}function wn(){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 On(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Tn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rn(e,t,n,r)}function kn(e){if(e instanceof Rn)return new Rn(e.h,e.s,e.l,e.opacity);if(e instanceof nn||(e=bn(e)),!e)return new Rn;if(e instanceof Rn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Rn(a,s,l,e.opacity)}function Rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function An(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 Nn(e){return function(){return e}}function Ln(e){return 1==(e=+e)?In: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):Nn(isNaN(t)?n:t)}}function In(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Nn(isNaN(e)?t:e)}en(nn,bn,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:yn,formatHex:yn,formatHsl:function(){return kn(this).formatHsl()},formatRgb:vn,toString:vn}),en(Mn,En,tn(nn,{brighter:function(e){return e=null==e?on:Math.pow(on,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?rn:Math.pow(rn,e),new Mn(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:Cn,formatHex:Cn,formatRgb:wn,toString:wn})),en(Rn,(function(e,t,n,r){return 1===arguments.length?kn(e):new Rn(e,t,n,null==r?1:r)}),tn(nn,{brighter:function(e){return e=null==e?on:Math.pow(on,e),new Rn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?rn:Math.pow(rn,e),new Rn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Mn(An(e>=240?e-240:e+120,o,r),An(e,o,r),An(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},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 Pn=function e(t){var n=Ln(t);function r(e,t){var r=n((e=En(e)).r,(t=En(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=In(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Dn(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function qn(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Hn(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function zn(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function $n(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Fn(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Hn(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var jn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_n=new RegExp(jn.source,"g");function Bn(e,t){var n,r,o,i=jn.lastIndex=_n.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=jn.exec(e))&&(r=_n.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:$n(n,r)})),i=_n.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),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 Hn(e,t){var n,r=typeof t;return null==t||"boolean"===r?Nn(t):("number"===r?$n:"string"===r?(n=bn(t))?(t=n,Pn):Bn:t instanceof bn?Pn:t instanceof Date?zn:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Dn:Array.isArray(t)?qn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Fn:$n)(e,t)}function Vn(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Un(e){return+e}var Yn=[0,1];function Wn(e){return e}function Gn(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Xn(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 Kn(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Gn(o,r),i=n(a,i)):(r=Gn(r,o),i=n(i,a)),function(e){return i(r(e))}}function Jn(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=Gn(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Ft(e,t,1,r)-1;return i[n](o[n](t))}}function Zn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Qn(e,t){return function(){var e,t,n,r,o,i,a=Yn,s=Yn,l=Hn,c=Wn;function u(){return r=Math.min(a.length,s.length)>2?Jn:Kn,o=i=null,d}function d(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(s,a.map(e),$n)))(n)))},d.domain=function(e){return arguments.length?(a=Zt.call(e,Un),c===Wn||(c=Xn(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=Qt.call(e),u()):s.slice()},d.rangeRound=function(e){return s=Qt.call(e),l=Vn,u()},d.clamp=function(e){return arguments.length?(c=e?Xn(a):Wn,d):c!==Wn},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 er(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 tr(e){return(e=er(Math.abs(e)))?e[1]:NaN}var nr,rr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function or(e){if(!(t=rr.exec(e)))throw new Error("invalid format: "+e);var t;return new ir({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 ir(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 ar(e,t){var n=er(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}or.prototype=ir.prototype,ir.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 sr={"%":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 ar(100*e,t)},r:ar,s:function(e,t){var n=er(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(nr=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+er(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function lr(e){return e}var cr,ur,dr,mr=Array.prototype.map,pr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fr(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?lr:(t=mr.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=e.decimal+"",s=void 0===e.numerals?lr:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(mr.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=or(e)).fill,n=e.align,d=e.sign,m=e.symbol,p=e.zero,f=e.width,h=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(h=!0,v="g"):sr[v]||(void 0===g&&(g=12),y=!0,v="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===m?o:"#"===m&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===m?i:/[%p]/.test(v)?l:"",S=sr[v],E=/[defgprs%]/.test(v);function M(e){var o,i,l,m=b,M=x;if("c"===v)M=S(e)+M,e="";else{var C=(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,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==d&&(C=!1),m=(C?"("===d?d:c:"-"===d||"("===d?"":d)+m,M=("s"===v?pr[8+nr/3]:"")+M+(C&&"("===d?")":""),E)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){M=(46===l?a+e.slice(o+1):e.slice(o))+M,e=e.slice(0,o);break}}h&&!p&&(e=r(e,1/0));var w=m.length+e.length+M.length,O=w<f?new Array(f-w+1).join(t):"";switch(h&&p&&(e=r(O+e,O.length?f-M.length:1/0),O=""),n){case"<":e=m+e+M+O;break;case"=":e=m+O+e+M;break;case"^":e=O.slice(0,w=O.length>>1)+m+e+M+O.slice(w);break;default:e=O+m+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=or(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(tr(t)/3))),o=Math.pow(10,-r),i=pr[8+r/3];return function(e){return n(o*e)+i}}}}function hr(e,t,n,r){var o,i=Vt(e,t,n);switch((r=or(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tr(t)/3)))-tr(Math.abs(e)))}(i,a))||(r.precision=o),dr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,tr(t)-tr(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-tr(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return ur(r)}function gr(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,o,i,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=Ht(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++s<o;)i[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),i=new Array(o=Math.ceil(e-t+1));++s<o;)i[s]=(e-s)/a;return r&&i.reverse(),i}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return hr(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],l=o[a];return l<s&&(r=s,s=l,l=r,r=i,i=a,a=r),(r=Ht(s,l,n))>0?r=Ht(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Ht(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(l/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(l*r)/r,t(o)),e},e}function yr(){var e=Qn(Wn,Wn);return e.copy=function(){return Zn(e,yr())},Ut.apply(e,arguments),gr(e)}cr=fr({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ur=cr.format,dr=cr.formatPrefix;var vr=new Date,br=new Date;function xr(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return xr((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return vr.setTime(+t),br.setTime(+r),e(vr),e(br),Math.floor(n(vr,br))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Sr=xr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Sr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?xr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Sr:null},Sr.range;var Er=6e4,Mr=36e5,Cr=864e5,wr=6048e5,Or=xr((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()}));Or.range;var Tr=xr((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())*Er)/Cr}),(function(e){return e.getDate()-1}));function kr(e){return xr((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())*Er)/wr}))}Tr.range;var Rr=kr(0),Ar=kr(1),Nr=kr(2),Lr=kr(3),Ir=kr(4),Pr=kr(5),Dr=kr(6);Rr.range,Ar.range,Nr.range,Lr.range,Ir.range,Pr.range,Dr.range;var qr=xr((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()}));qr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?xr((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},qr.range;var zr=xr((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Er)}),(function(e,t){return(t-e)/Er}),(function(e){return e.getUTCMinutes()}));zr.range;var $r=xr((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Mr)}),(function(e,t){return(t-e)/Mr}),(function(e){return e.getUTCHours()}));$r.range;var Fr=xr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Cr}),(function(e){return e.getUTCDate()-1}));function jr(e){return xr((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)/wr}))}Fr.range;var _r=jr(0),Br=jr(1),Hr=jr(2),Vr=jr(3),Ur=jr(4),Yr=jr(5),Wr=jr(6);_r.range,Br.range,Hr.range,Vr.range,Ur.range,Yr.range,Wr.range;var Gr=xr((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()}));Gr.range;var Xr=xr((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 Kr(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 Jr(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 Zr(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}Xr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?xr((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},Xr.range;var Qr,eo,to={"-":"",_:" ",0:"0"},no=/^\s*\d+/,ro=/^%/,oo=/[\\^$*+?|[\]().{}]/g;function io(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function ao(e){return e.replace(oo,"\\$&")}function so(e){return new RegExp("^(?:"+e.map(ao).join("|")+")","i")}function lo(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function co(e,t,n){var r=no.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function uo(e,t,n){var r=no.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function mo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function po(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function fo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ho(e,t,n){var r=no.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function go(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yo(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 vo(e,t,n){var r=no.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function bo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function xo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function So(e,t,n){var r=no.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Eo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Mo(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Co(e,t,n){var r=no.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wo(e,t,n){var r=no.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Oo(e,t,n){var r=no.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function To(e,t,n){var r=ro.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ko(e,t,n){var r=no.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ro(e,t,n){var r=no.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Ao(e,t){return io(e.getDate(),t,2)}function No(e,t){return io(e.getHours(),t,2)}function Lo(e,t){return io(e.getHours()%12||12,t,2)}function Io(e,t){return io(1+Tr.count(qr(e),e),t,3)}function Po(e,t){return io(e.getMilliseconds(),t,3)}function Do(e,t){return Po(e,t)+"000"}function qo(e,t){return io(e.getMonth()+1,t,2)}function zo(e,t){return io(e.getMinutes(),t,2)}function $o(e,t){return io(e.getSeconds(),t,2)}function Fo(e){var t=e.getDay();return 0===t?7:t}function jo(e,t){return io(Rr.count(qr(e)-1,e),t,2)}function _o(e){var t=e.getDay();return t>=4||0===t?Ir(e):Ir.ceil(e)}function Bo(e,t){return e=_o(e),io(Ir.count(qr(e),e)+(4===qr(e).getDay()),t,2)}function Ho(e){return e.getDay()}function Vo(e,t){return io(Ar.count(qr(e)-1,e),t,2)}function Uo(e,t){return io(e.getFullYear()%100,t,2)}function Yo(e,t){return io((e=_o(e)).getFullYear()%100,t,2)}function Wo(e,t){return io(e.getFullYear()%1e4,t,4)}function Go(e,t){var n=e.getDay();return io((e=n>=4||0===n?Ir(e):Ir.ceil(e)).getFullYear()%1e4,t,4)}function Xo(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+io(t/60|0,"0",2)+io(t%60,"0",2)}function Ko(e,t){return io(e.getUTCDate(),t,2)}function Jo(e,t){return io(e.getUTCHours(),t,2)}function Zo(e,t){return io(e.getUTCHours()%12||12,t,2)}function Qo(e,t){return io(1+Fr.count(Xr(e),e),t,3)}function ei(e,t){return io(e.getUTCMilliseconds(),t,3)}function ti(e,t){return ei(e,t)+"000"}function ni(e,t){return io(e.getUTCMonth()+1,t,2)}function ri(e,t){return io(e.getUTCMinutes(),t,2)}function oi(e,t){return io(e.getUTCSeconds(),t,2)}function ii(e){var t=e.getUTCDay();return 0===t?7:t}function ai(e,t){return io(_r.count(Xr(e)-1,e),t,2)}function si(e){var t=e.getUTCDay();return t>=4||0===t?Ur(e):Ur.ceil(e)}function li(e,t){return e=si(e),io(Ur.count(Xr(e),e)+(4===Xr(e).getUTCDay()),t,2)}function ci(e){return e.getUTCDay()}function ui(e,t){return io(Br.count(Xr(e)-1,e),t,2)}function di(e,t){return io(e.getUTCFullYear()%100,t,2)}function mi(e,t){return io((e=si(e)).getUTCFullYear()%100,t,2)}function pi(e,t){return io(e.getUTCFullYear()%1e4,t,4)}function fi(e,t){var n=e.getUTCDay();return io((e=n>=4||0===n?Ur(e):Ur.ceil(e)).getUTCFullYear()%1e4,t,4)}function hi(){return"+0000"}function gi(){return"%"}function yi(e){return+e}function vi(e){return Math.floor(+e/1e3)}!function(e){Qr=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=so(o),u=lo(o),d=so(i),m=lo(i),p=so(a),f=lo(a),h=so(s),g=lo(s),y=so(l),v=lo(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Ao,e:Ao,f:Do,g:Yo,G:Go,H:No,I:Lo,j:Io,L:Po,m:qo,M:zo,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:yi,s:vi,S:$o,u:Fo,U:jo,V:Bo,w:Ho,W:Vo,x:null,X:null,y:Uo,Y:Wo,Z:Xo,"%":gi},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Ko,e:Ko,f:ti,g:mi,G:fi,H:Jo,I:Zo,j:Qo,L:ei,m:ni,M:ri,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:yi,s:vi,S:oi,u:ii,U:ai,V:li,w:ci,W:ui,x:null,X:null,y:di,Y:pi,Z:hi,"%":gi},S={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=m[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=h.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:xo,e:xo,f:Oo,g:go,G:ho,H:Eo,I:Eo,j:So,L:wo,m:bo,M:Mo,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:vo,Q:ko,s:Ro,S:Co,u:uo,U:mo,V:po,w:co,W:fo,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:go,Y:ho,Z:yo,"%":To};function E(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=to[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function M(e,t){return function(n){var r,o,i=Zr(1900,void 0,1);if(C(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Jr(Zr(i.y,0,1))).getUTCDay(),r=o>4||0===o?Br.ceil(r):Br(r),r=Fr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Kr(Zr(i.y,0,1))).getDay(),r=o>4||0===o?Ar.ceil(r):Ar(r),r=Tr.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Jr(Zr(i.y,0,1)).getUTCDay():Kr(Zr(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Jr(i)):Kr(i)}}function C(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=S[o in to?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=E(n,b),b.X=E(r,b),b.c=E(t,b),x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=M(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=M(e+="",!0);return t.toString=function(){return e},t}}}(e),Qr.format,Qr.parse,eo=Qr.utcFormat,Qr.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 bi=1e3,xi=6e4,Si=36e5,Ei=864e5,Mi=2592e6,Ci=31536e6;function wi(e){return new Date(e)}function Oi(e){return e instanceof Date?+e:+new Date(+e)}function Ti(e,t,n,r,o,i,a,s,l){var c=Qn(Wn,Wn),u=c.invert,d=c.domain,m=l(".%L"),p=l(":%S"),f=l("%I:%M"),h=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,bi],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,xi],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Si],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Ei],[r,2,1728e5],[n,1,6048e5],[t,1,Mi],[t,3,7776e6],[e,1,Ci]];function S(s){return(a(s)<s?m:i(s)<s?p:o(s)<s?f:r(s)<s?h:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function E(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var i=Math.abs(r-n)/t,a=$t((function(e){return e[2]})).right(x,i);a===x.length?(o=Vt(n/Ci,r/Ci,t),t=e):a?(o=(a=x[i/x[a-1][2]<x[a][2]/i?a-1:a])[1],t=a[0]):(o=Math.max(Vt(n,r,t),1),t=s)}return null==o?t:t.every(o)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(Zt.call(e,Oi)):d().map(wi)},c.ticks=function(e,t){var n,r=d(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=E(e,o,i,t))?n.range(o,i+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=E(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}(n,e)):c},c.copy=function(){return Zn(c,Ti(e,t,n,r,o,i,a,s,l))},c}function ki(){return Ut.apply(Ti(Xr,Gr,_r,Fr,$r,zr,Or,Sr,eo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Ri={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"}}},Ai=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Ni={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[o,i]=t(),a=Math.abs(o)<1e-15,s=Math.abs(i-1)<1e-15,l=(e=>{const t=Ri[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Ai(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Ai(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 Li({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:o}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:o,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),o=t.get("continuousMax");return[(n.min-r)/(o-r),(n.max-r)/(o-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let Ii;function Pi(){Ii=Ii||document.createElement("canvas").getContext("2d")}const Di={measureTextWidth(e){Pi();const{width:t}=Ii.measureText(e);return t},lineWrap(e,t,n,r){let o,i;Pi();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,m=e?e.split(/\s+/):[],p=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),i=0;i<a.length;i++){for(d=a[i]||"",m=d.split(/\s+/),[p]=m,u="",o=1;o<m.length;o++)if(l=`${p} ${m[o]}`,c=Di.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(p),p=m[o]):p=l,"number"==typeof r&&s.length>=r){u=m.slice(o+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(p):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${p} ${u}`}return s},wordWrap(e,t,n,r,o){if(Pi(),!e||!e.length)return[];n&&(Ii.font=n);let i=[];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||Di.measureTextWidth(c)<=t?i.push(c):(s=Di.splitWord(c,t,void 0,r-i.length),s.length<=1?i.push(s[0]):(l=s.pop(),i=i.concat(s),a[u+1]?Di.measureTextWidth(`${l} ${a[u+1]}`)>t&&i.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return i.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),i.length>r?(i=i.splice(0,r),i[i.length-1]=Di.truncate(i[i.length-1],t,n,o).text):(c=i[i.length-1],c&&c.length>1&&Di.measureTextWidth(c)>t&&(i[i.length-1]=Di.truncate(c,t,n,o).text)),i},truncate(e,t,n,r="…"){Pi();let o,i,a,s,l=e;const c=Di.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Ii.font=n),e&&t){if(Di.measureTextWidth(l)>t){for(o=Math.min(u,l.length);o>0;o--)if(i=l.substring(0,o-1),a=i.trim()+r,Di.measureTextWidth(a)<=t){s=l.substring(o-1),l=a;break}o||(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 o;Pi();let i,a=e,s="",l=[];if(Di.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(o=Math.min(e.length,c);o>0&&(a=e.substring(0,o),i=e.substring(o-1,o)," "===i?a=e.substring(0,o-1):a+="-",s=e.substring(o),!(Di.measureTextWidth(a)<=t));o--);return(!o&&!a||Di.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Di.measureTextWidth(s)>t?(s=Di.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Pi(),e&&t?(n&&(Ii.font=n),Di.explodeWord(e,t,r,Math.max(1,Di.measureTextWidth("i")))):[]),wrapText(e,t,n,r,o){let i;return Number.isNaN(t)?[e]:(i=r>1?Di.lineWrap(e,t,n,r):[e],i=Di.wordWrap(i,t,n,r,o),i)},getFontHeight:e=>(Pi(),e&&(Ii.font=e),1.5*Di.measureTextWidth("m")),tokenize(e,t,n,r,o,i,a=1){Pi(),t&&(Ii.font=t);const s=Di.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(i<s)return[];const m=i?Math.max(1,Math.floor(i/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?m-u:e)}))):c=[Number.isNaN(r)||r<=0?m:Math.min(m,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<m&&(d=d.concat(Di.wrapText(e,o,t,c[n])))})):d=Di.wrapText(e,o,t,c[0],n),d}},qi={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:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(me({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},zi=me.bind(null,!0),$i={},{isArray:Fi}=Array;function ji(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function _i(e){return void 0===e}function Bi(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Hi(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=_i(e[r||t])?i:e[t],e=e[r||t]})),e}function Vi(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function Ui(e,t,n){let r=!0;if(ji(e)&&ji(t))return Vi(e,n)===Vi(t,n)&&(Object.keys(e).forEach((o=>{Ui(e[o],t[o],n)||(r=!1)})),r);if(Fi(e)&&Fi(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!Ui(e[r],t[r],n))return!1;return!0}return e===t}$i.compare=Ui,$i.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?zi({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;Ui(i,a)||Bi(t,o)||(_i(a)?r.push({op:"add",path:s,value:i}):ji(i)&&ji(a)?r=r.concat($i.generate(a,i,s)):Fi(i)&&Fi(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&_i(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(Ui(t,o))return r;if(!_i(t[0])&&_i(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat($i.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{_i(t[o])&&!Bi(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},$i.apply=function(e,t){t.forEach((t=>{let n=Hi(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Fi(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Fi(o)&&Fi(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(ji(o)&&ji(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Bi(a,e)&&delete a[e]})),zi(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=Hi(e,t.from);Fi(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Fi(n)?n.splice(+r,1):delete n[r]);var a}))},$i.clone=function(e){return zi({},e)},$i.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},$i.updateObject=function(e,t){Object.keys(e).length?$i.apply(e,$i.generate(e,t)):zi(e,t)};const Yi=[[2,4,6],[2,4],[3]],Wi=[,[,,[[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 Gi(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function Xi(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Gi(e[r],t,n)}!function(){let e,t;for(Xi(Yi,1,10),e=0;e<Wi.length;e++)if(Wi[e])for(t=0;t<Wi[e].length;t++)Array.isArray(Wi[e][t])&&Xi(Wi[e][t])}();const Ki={isInside(e,t,n,r){if(!r)return!0;const o=e.position-e.radius,i=e.position+e.radius;return o>=t&&i<=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=Ki.findSegmentPositionMeetMin(e,t);return Ki.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=Ki.findSegmentPositionMeetMax(e,n);return Ki.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const o=e.length-1;let i,a,s=t;for(let t=0;t<o;t++)i=e[t],a=e[t+1],i.position=Ki.findSegmentPositionMeetMaxThenMin(i,s,(i.center+a.center-r)/2),s=i.position+i.radius+r/2;a.position=Ki.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const o=e.length-1;let i,a,s;const l=Math.max(0,e[o].position+e[o].radius-n);if(0===l)return;let c,u=0;for(i=o;i>0&&(a=e[i],s=e[i-1],c=Math.max(0,Ki.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));i--);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,i=0;i<=o;i++)a=e[i],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const o=e.length-1;if(!(o<0))if(0!==o)Ki.layoutPositionFromMin(e,t,n,r),Ki.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=Ki.findSegmentPositionMeetMaxThenMin(r,t,n)}}},Ji=(e,t,n,r=1)=>{const o=e.bandwidth();return n?"start"===t?o:"end"===t?o*(1-r):o*(2-r)/2:"start"===t?0:"end"===t?o*r:o*r/2},Zi=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,Qi=e=>e.filter(Zi),ea=(e,t)=>Qi(Se.getValue(e,t,[])),ta=e=>Zi(e)&&(!1!==e.showValue||!1!==e.showLabel),na=e=>e.filter(ta),ra=(e,t)=>na(Se.getValue(e,t,[])),oa=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,ia=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},aa=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},sa=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+o},la=({value:e,qMin:t})=>"NaN"!==t&&e<t,ca=({value:e,qMax:t})=>"NaN"!==t&&e>t,ua={isRefLineVisible:Zi,getVisibleRefLines:Qi,getRefLines:ea,getMeasureRefLines:e=>ea(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:ea(e,"refLine.dimRefLines"),isRefLineLabelVisible:ta,getVisibleRefLineLabels:na,getRefLineLabels:ra,getMeasureRefLineLabels:e=>ra(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:ra(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:o,invert:i=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=Ji(s,o,i,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=Ji(s,o,i,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:o})=>{const i=(({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-i*(s-o)}})({pxScale:s,value:n,innerValues:e,invert:i,minOrder:a})),(void 0===c?s(n):c)+l}return l=Ji(s,o,i),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:o}=r.meta,i={},a=Se.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():Se.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=Se.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),m=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+m,r=t[d];i[r]||(i[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})():o?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],o=t+m,a=n[d];i[a]?(i[a].minOrder=Math.min(i[a].minOrder,o),i[a].maxOrder=Math.max(i[a].maxOrder,o),i[a].innerValues[i[a].innerValues.length]={id:r.qElemNumber,order:o}):i[a]={id:n.qElemNumber,qText:n.qText,minOrder:o,maxOrder:o,innerValues:[{id:r.qElemNumber,order:o}],dataNode:u[t]},0===t?0===o&&(i[a].isMinOrderOk=!0):a!==e&&(i[a].isMinOrderOk=!0,i[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+m,r=t[d];i[r]||(i[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})(),i},getInputValue:oa,extractInfoFromInputValue:ia,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=oa({refLineLayout:e,layoutService:n});return ia(r,t,"id")},isDiscreteMinOutOfBounds:aa,isDiscreteMaxOutOfBounds:sa,isContinuousMinOutOfBounds:la,isContinuousMaxOutOfBounds:ca,isOutOfRange:({value:e,qMin:t,qMax:n})=>la({value:e,qMin:t})||ca({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&sa({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&aa({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},da=({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 ma(e){return e.showValue?`… ${e.valueString}`:"…"}function pa(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=da({label:o,labelStyle:t});o.lines=Di.tokenize(o.title,i,ma(o),3,n),o.maxNumLines=o.lines.length}}function fa({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=Di.tokenize(e,t,n,r,o),a=i.length;let s="";if(a){[s]=i;for(let e=1;e<a;e++)s=`${s}\n${i[e]}`}return s}function ha({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=e.map((e=>fa({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:o}))),a=i.length;let s="";if(a){[s]=i;for(let e=1;e<a;e++)s=`${s}\n\n${i[e]}`}return s}function ga(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const ya=3,va=2;function ba({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 xa=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(ua.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(ua.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return ua.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:ua.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},Sa={hasEngineFormat:ba,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:o,rtl:i,isContinuous:a,isDimension:s}){const l=ua.getInvert({orientation:o,rtl:i,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let m,p;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");m=e.qMin,p=e.qMax}for(let o=0;o<e.length;o++){const i=e[o],{value:s,align:c,valueInfo:d}=i,f=xa({label:i,dataPages:u,qMin:m,qMax:p});i.scaledValue=1===f?l?-.1:1.1:-1===f?l?1.1:-.1:ua.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),i.center=i.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:o}){let i;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;i=ba({inputValue:s,inputValueLabel:l,localeInfo:o})?l:t?t(a):a,r.valueString=`${De.lrm}(${i})${De.lrm}`,r.title=Sa.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;i=ba({inputValue:a,inputValueLabel:s,localeInfo:o})?s:r,n.valueString=`${De.lrm}(${i})${De.lrm}`,n.title=Sa.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];i=n.valueText,n.valueString=`${De.lrm}(${i})${De.lrm}`,n.title=Sa.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 o=e.length-1;if(o<0)return;let i,a;if([i]=e,i.cMin=t,0!==o){for(let t=0;t<o;t++)i=e[t],a=e[t+1],i.cMax=(i.center+a.center-r)/2,a.cMin=i.cMax+r;a.cMax=n}else i.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,o=e.filter((e=>e.maxNumLines===t)),i=Math.min(n,o.length);for(let e=o.length-1;e>=o.length-i;e--)o[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let o=3;do{const t=Sa.getTotalNumLines(e)-r;if(t<=0)return;Sa.reduceLabelsHavingMaxNumLines(e,o,t),o--}while(o>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const o=e[r];o.maxNumLines=Math.max(1,Math.min(o.maxNumLines,Math.floor((Math.max(0,o.cMax-o.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let o=0;o<e.length;o++){const i=e[o];i.width=Math.min(t,Sa.measureLabelMaxLineWidth(i,r)),i.height=i.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:o}=r,i=r[t],a=i/2;r.segment={center:o,range:i,min:o-a,max:o+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:o,gap:i,labelStyle:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:m,layoutService:p,isContinuous:f,isDimension:h}){const g=e.map((e=>e)),y=n;Sa.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:u,rtl:m,isContinuous:f,isDimension:h}),ga(e,"center"),Sa.addLabelsNeighborInfo(e,r,o,i),pa(e,a,s),Sa.reduceTotalMaxNumLines(g,l,o-(g.length-1)*i),"vertical"===u&&(Sa.reduceMaxNumLines(e,l,.05*i),function(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=da({label:o,labelStyle:t});o.lines.length>o.maxNumLines&&(o.lines=Di.tokenize(o.title,i,ma(o),o.maxNumLines,n))}}(e,a,s)),Sa.addLabelsSize(e,s,l,d),Sa.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:o,lineHeight:i=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=o,{fontSize:d,fontFamily:m,fontStyle:p,fontWeight:f,textDecoration:h,background:g}=t;let y=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,o=t.map(((t,o)=>{const g={type:"text",text:t,title:fa({title:e.title,font:a,ellipsis:ma(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||m,fontStyle:e.fontStyle||p,fontWeight:e.fontWeight||f,textDecoration:e.textDecoration||h,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return g[l]=u,g[s]=e.segment.position,g.y+=(o-(r-1)/2)*i,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:o,lineHeight:i,background:a}){const{lines:s}=o,{borderRadius:l=ya,padding:c={}}=a,{top:u=va,bottom:d=va,left:m=va,right:p=va}=c,f=s.length,h={type:"rect",rx:l,ry:l,fill:o.background.fill,width:o.width+(m+p),height:o.height+(u+d),value:o.value,dock:r};return h[n]=e,h[t]=o.segment.position,h.x-=o.width/2+m,h.y-=f*i/2+u,h}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:i,background:g})),y=y.concat(o)})),y}};function Ea(e,t,n){let r;const o=typeof t;if("string"===o||"object"===o)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 Ma(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{lineHeight:n,top:r,bottom:o,maxLabelWidth:i}=t;let a=1;return Sa.getMaxTextWidth(e)>i&&(pa(e,t,i),a=Math.max(...e.map((e=>e.lines.length)))),a*n+r+o}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:o}=t;return Math.min(o,Sa.getMaxTextWidth(e))+n+r}(t,n)}function Ca(e,t){return t?e.domain():[0,1]}function wa(e,t,n,r="value"){let o=e.filter((e=>e[r]>=t));o=o.filter((e=>e[r]<=n));const i=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:o,minOobs:i,maxOobs:a,numMinOobs:i.length,numMaxOobs:a.length}}function Oa(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 Ta(e,t){return e>9?t[1]:t[0]}function ka({alignment:e,dockValue:t,oobs:n,style:r,rect:o,symbol:i,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:m,minorAxis:p,minorDimension:f,dock:h}=s,g=o[f],y=qi.createOob({oob:qi.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:o.width,rendHeight:o.height,flipXY:d,symbol:i});y.dock=h;const v=`c${m}`,b=`c${p}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:h};x[b]=g/2,x[v]=a;const S={type:"text",text:u>9?"9+":u,title:ha({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:h};return S[p]=g/2,S[m]=a,[y,x,S]}const Ra=e=>{const t=da({labelStyle:e}),n=Di.getFontHeight(t)*(e.lineHeightMultiplicator||1),r=e.gap||12,o=e.maxWidth||75,i=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:o,top:i,bottom:a,left:s,right:l}},Aa=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 Na={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:o}=this.settings,i=!!r||n.meta.canBeContinuous,a=Aa(this.settings.labels),s=Ea(this.chart,this.settings.formatter,e);Sa.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:i,localeInfo:o});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:o})=>{if(n){const[r,o]=Ca(t,n);return wa(e,r,o)}if(r){const t=o.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return wa(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:i,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:o,fontWeight:i}=n||{};return this.renderer.measureText({text:e,fontWeight:i||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:o||t.label.fontFamily})},u&&u.length){const e=Ra(t.label),{dock:n}=this.settings.layout;return Sa.measureLabelsWidth(u,this.measureText),d=Ma(n,u,e),d}const m=Oa(this.measureText),p=l?Ta(l,m):0,f=c?Ta(c,m):0;return d=Math.max(p,f),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:o,isContinuous:i,isDimension:a,localeInfo:s}=this.settings,l=!!i||r.meta.canBeContinuous,c=Aa(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:m}=n.label,p=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),f=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,p,m),{orientation:h,majorDimension:g}=p,{majorSize:y}=f,v=Ra(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:E}=v,M=Ea(this.chart,this.settings.formatter,e),C=y;Sa.addLabelTitles({labels:c,formatter:M,isContinuous:i,canBeContinuous:l,localeInfo:s}),Sa.calculateLabelPositions({labels:c,scale:e,size:C,layoutService:r,orientation:h,rtl:d,isContinuous:i,isDimension:a});const[w,O]=Ca(e,i),{filteredLabels:T,lowerOobs:k,upperOobs:R,lowerCircleSize:A,upperCircleSize:N,lowerOobSpace:L,upperOobSpace:I}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:o,isContinuous:i,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:m}=wa(e,t,n,c),p="scaledValue"!==c&&ua.getInvert({orientation:r,rtl:o,isContinuous:i}),f=function(e,t,n){return n?t:e}(d,u,p),h=function(e,t,n){return n?e:t}(d,u,p),g=f.length,y=h.length,v=Oa(l),b=Ta(g,v),x=Ta(y,v),S=function(e,t,n,r,o){return("vertical"===r?o.top:o.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),E=function(e,t,n,r,o){return("vertical"===r?o.bottom:o.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:m,lowerOobs:f,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:E}}({labels:c,minValue:w,maxValue:O,orientation:h,rtl:d,isContinuous:i,style:n,padding:m,measureText:this.measureText,prop:i?"value":"scaledValue"}),P=L,D=y-I;ga(k),ga(R);const q=ka({alignment:0,dockValue:0,oobs:k,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+A/2,areaProps:p,radius:A/2,font:b}),z=ka({alignment:1,dockValue:1,oobs:R,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+N/2),areaProps:p,radius:N/2,font:b});Sa.addLabelsInfo({labels:T,scale:e,majorSize:y,lowerLimit:P,upperLimit:D,labelStyle:v,lineHeight:x,gap:S,maxLabelWidth:E,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:i,isDimension:a}),Ki.layout(T.map((e=>e.segment)),P,D,n.label.gap);const $=T.filter((e=>Ki.isInside(e.segment,P,D,i)));return Sa.createLabels({labels:$,style:n.label,maxLabelWidth:E,areaProps:p,area:f,lineHeight:x,font:b,theme:o}).concat([...q,...z])}};var La={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 Ia(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:o,qStackedDataPages:i,qTreeDataPages:a,...s}=t,l=me(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=La;return c.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==E(l,e)&&M(l,e,null);else{const e=t[0],n=t[1].split("].")[1];E(l,e,[]).forEach((e=>{void 0!==E(e,n)&&M(e,n,null)}))}})),l}var Pa={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return o=>{if(e||t||n){var i;if("line"===o.type)return null!==(i=o.tickValue)&&void 0!==i?i:"axis";if("text"===o.type)return`${o.tickValue} ${o.text}`;if("container"===o.type){const e=o.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${o.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===o.type&&void 0===o.tickValue)return"axis";const e=o.transform&&o.transform.match(/rotate/gi)?"rotated":"horizontal";return`${o.data.group?`${o.data.group.value} `:""}${o.data.value} ${o.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:o}){return({currentNodes:i,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==o&&"bottom"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?i.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?i.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.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,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=o):e.transform=`translate(${-r}, ${-o})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=r):(e.x-=r,e.y-=o)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=o,e.y2-=o):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:o/e.major.size,n="y"===e.minor.p?o/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},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,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=o;break;case"rect":e.x-=r,e.y-=o;break;case"path":e.transform=`translate(${-r}, ${-o})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.cx-=r,e.cy-=o}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y,i=t.width-n.width,a=t.height-n.height;let s=-r,l=-o;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":i<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":o>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=Ia(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Ia(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:Da,extractInfoFromInputValue:qa,resolveValue:za}=ua;var $a={resolveValue:za,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Da({refLineLayout:e,layoutService:n});return qa(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Da({refLineLayout:e,layoutService:n});return qa(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:o}=n.meta,i=Da({refLineLayout:e,layoutService:n});return r[i]&&o?r[i].qText:i},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Da({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:o}=t;return o[r]}};const Fa=({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:o,dockService:i,chart:a,scale:s,axis:l,invert:c,component:u,isContinuous:d})=>{var m,p;const f={dir:l,line:{strokeWidth:(null==t||null===(m=t.style)||void 0===m?void 0:m.lineThickness)||2,strokeDasharray:null==t||null===(p=t.style)||void 0===p?void 0:p.lineType,stroke:o.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(f.scale=s,f.value=t.refLineExpr.value):(f.valueInfo=$a.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),f.value=()=>{var e;const o=ua.getScaledPosition({scale:a.scale(s),value:$a.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:f.valueInfo,size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===i.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(o)?void 0:o}),f};function ja({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:o,animationsEnabled:i,chart:a,scale:s,axis:l,rtl:c,key:u,mainComponentKey:d,path:m,minimumLayoutMode:p}){const f=e?t.dimensionRefLines:m?t.query.getRefLines(m):t.measureRefLines;if(!f.length)return!1;const h={key:u,type:"ref-line",layout:{minimumLayoutMode:p},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:i,trackBy:Pa.lines.trackBy,compensateForLayoutChanges:Pa.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==o.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return f.forEach((i=>{h.lines[l].push(Fa({isDimension:e,refLineLayout:i,refLineModel:t,layoutService:n,colorModel:r,dockService:o,chart:a,scale:s,axis:l,invert:g,component:d,isContinuous:y}))})),h}const _a=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:o,scale:i,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:m})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:o,formatter:a,scale:i,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:m,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:Pa.refLineLabels.trackBy,compensateForLayoutChanges:Pa.refLineLabels.compensateForLayoutChanges}}),Ba=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:o,theme:i,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),{align:l,style:c}=e,{fontSize:u,fontFamily:d,fontStyle:m,fontWeight:p,textDecoration:f}=c||{},h={align:l,text:e.label,fill:e.coloredBackground?i.getContrastingColorTo(s):s,fontSize:u,fontFamily:d,fontStyle:m,fontWeight:p,textDecoration:f,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(h.background={fill:s}),a?(h.scale=o,h.value=e.refLineExpr.value):(h.value=()=>$a.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueText=()=>$a.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueInfo=()=>$a.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),h};function Ha({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:o,dock:i,scale:a,style:s,formatter:l,theme:c,localeInfo:u,rtl:d,key:m,path:p}){const f=e?t.dimensionRefLineLabels:p?t.query.getRefLineLabels(p):t.measureRefLineLabels;if(!f.length)return[];const h=[],g=!e||n.meta.isContinuous,y=f.map((e=>Ba({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push(_a({isDimension:e,rtl:d,style:s,dock:i,key:m,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:o,theme:c,isContinuous:g,localeInfo:u})),h}function Va({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:o}=e.meta,i=e.getLayout(),a="K"===i.qHyperCube.qMode,s=we.dimensionless(i),l=ua.getMeasureRefLines(i),c=ua.getDimensionRefLines(i,s),u=ua.getMeasureRefLineLabels(i),d=ua.getDimensionRefLineLabels(i,s);let m={},p={};const f=()=>!(!c||!c.length)&&!c.every((t=>{const i=ua.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:o}=n;return ua.isOutOfRange({value:t,qMin:r,qMax:o})}return!1})(i)||(t=>{if(!p[t])return!1;if(!n&&o){const n={valueInfo:p[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",o=e.getHyperCubeValue(r);return ua.isOutOfDataPages({label:n,dataPages:o})}return!0})(i)})),h={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:p,dimensionValuesInfo:m,query:{getRefLines:e=>ua.getRefLines(i,e),getRefLineLabels:e=>ua.getRefLineLabels(i,e)},update:()=>{p=h.dimensionRefLineInfo,f()&&(m=ua.getDimensionValuesInfo({layout:i,canBeContinuous:r,discreteModel:t,layoutService:e}),h.dimensionValuesInfo=m,c.forEach((t=>{const n=ua.getInputValue({refLineLayout:t,layoutService:e});m[n]&&(p[n]?(p[n].innerValues=m[n].innerValues,p[n].minOrder=Math.min(p[n].minOrder,m[n].minOrder),p[n].maxOrder=Math.max(p[n].maxOrder,m[n].maxOrder),p[n].isMinOrderOk=p[n].isMinOrderOk||m[n].isMinOrderOk,p[n].isMaxOrderOk=p[n].isMaxOrderOk||m[n].isMaxOrderOk):p[n]={id:m[n].id,qText:m[n].qText,innerValues:m[n].innerValues,minOrder:m[n].minOrder,maxOrder:m[n].maxOrder,isMinOrderOk:m[n].isMinOrderOk,isMaxOrderOk:m[n].isMaxOrderOk},p[n].numInnerValues=(p[n].maxOrder||0)-(p[n].minOrder||0)+1)})))}};return h.update(),h}function Ua(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 Ya={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"}},Wa={TYPE:{LINE:"line",BAR:"bar",MARKER:"marker"},AXIS:{PRIMARY:0,SECONDARY:1},NOPE_SERIES:{type:"bar",axis:0}};const Ga={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 Xa(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Ka={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function Ja(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,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(o=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!o){var d;o=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(o.url);o.host=t.hostname,o.port=t.port,o.isSecure="wss:"===t.protocol}return c=void 0!==o.secure?o.secure:o.isSecure,i=c?"https://":"http://",a=o.host||"localhost",s=o.port?`:${o.port}`:"",l=o.prefix?o.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),i+a+s+l}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await Ka.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function Za(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",m=u.type||"media";let p=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){p=e;break}const f=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let h;if(-1!==p&&f[p]&&(h=f[p]),"media"===m&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return Ja(u,d,s);if("url"===m)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Xa(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await Ka.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Ka.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===m&&h&&h.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Xa(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await Ka.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[p],d,h)}return[]}const Qa={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(Za(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t;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}},es={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await Qa.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>Qa.checkIfPromisesExist({customTooltipModel:e})};const ts=(e,t)=>{var n,r,o;const i=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:Ga.CHART.CHART_PARENT_TYPE,qId:Ga.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},ns=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:Ga.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const rs={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 o=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",i=Ga.CHART.STYLE[o];return[{content:[e.h("div",{style:{display:"flex",width:i,height:i,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:Ga.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a;const s=o,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 rs.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=Ga.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=Ga.CHART.STATE,a=ts(t,i),s=await e.createSessionObject(a),l=ns(t);if(s.id!==Ga.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,m;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 p,f;const e=null!==(p=n[0].data.selectionOuterDimension)&&void 0!==p?p:n[0].data.selectionDimension;if(null!=e&&null!==(f=e.source)&&void 0!==f&&f.field){var h;const t=null==e||null===(h=e.source)||void 0===h?void 0:h.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(Ga.CHART.CONTAINER_ID),g={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await o.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===(m=s.miniChartToken.model)||void 0===m?void 0:m.genericType})}}catch(t){await rs.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(rs.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Ga.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=Ga.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 os(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function is(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=Ga.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function as(e){const t=is();return e.filter((e=>t[e.id]))}const ss={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=ss.getAttrExprData(a);i.length||n.length?es.handlePromises({customTooltipModel:o,nodes:ss.getDataNodes(s,i.length>0?i:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&rs.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>es.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[t])||void 0===i?void 0:i.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[Ga.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[Ga.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[Ga.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(as(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[Ga.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[Ga.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=os(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===as(o).length){var i;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(i=i.quarantine)||void 0===i?void 0:i.customTooltip)||[],n=[...o,...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 o=os(e)||[];[...o,t].forEach((e=>{const t=as(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=is(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:De.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=De.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function ls(e,t,n,r){var o;const i=(null===(o=t.qHyperCube)||void 0===o||null===(o=o[n])||void 0===o||null===(o=o[r])||void 0===o?void 0:o.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(i.forEach(((e,t)=>{const o=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case Ga.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Ga.CUSTOM.TITLE:case Ga.CUSTOM.DESCRIPTION:case Ga.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),a):a}const cs={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>ls(t,e,r,n)}}};const us={getCustomAttrExps(e,t,n){var r;const o={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},i=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(i))return o;return function(e,t,n,r){const o={[Ga.CUSTOM.TITLE]:!0,[Ga.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=ss.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===Ga.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===Ga.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>qe.getMeasure(e,t))),e,o)}};function ds({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(us.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:ms}=Ga;function ps({flags:e,layout:t,app:n,model:r,picasso:o,chart:i,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:ss,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:o,chart:i,translator:a,localeInfo:s,embed:l}),m="rtl"===c.direction,p=()=>{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:()=>p(),hideBasic:()=>p()&&E(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=ds({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===ms.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===ms.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>ss.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>ss.getImageRow(e,{h:t,rtl:m}),addImages:({nodes:r})=>{const o=ss.getDataNodes(i,r),{attrExps:a}=ss.getAttrExprData(t);return es.handlePromises({customTooltipModel:d,nodes:o,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(p()&&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})=>rs.createContainer({layout:t,ctx:{h:e,rtl:m}}),createLimitationRow:()=>ss.getFooterRow(a.get("properties.tooltip.notselectedmessage"),m),show:({nodes:e,properties:t})=>rs.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:m}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>rs.hide({app:n,customTooltipModel:d}),destroy:()=>rs.destroyVisualization({customTooltipModel:d})}}}function fs({key:e,source:t,layoutService:n,fieldModel:r,colorService:o,series:i}){const{meta:a}=n;if(a.isBarSeriesStacked){const{major:a,majorNumeric:s}=r.main,l=i.filter((e=>e.type===Wa.TYPE.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:i})=>({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,...o.getDatumProps(i),customTooltipAttrExps:cs.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 hs({key:e,series:t,source:n,fieldModel:r,colorService:o,layoutService:i,forceCreate:a=!1}){if(t.length||a){const{major:a,majorNumeric:s}=r.main,l=e=>"NaN"!==e.qNum?e.qNum:0,c=i.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:i.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:cs.getNode(i.getLayout(),i.meta),...o.getDatumProps(t)}})))}}]}return[]}function gs({key:e,layoutService:t,fieldModel:n,series:r}){const{meta:o}=t;if(o.isBarSeriesStacked){const{major:t,majorNumeric:i}=n.main,a=r.filter((e=>e.type===Wa.TYPE.BAR)),s=o.isContinuous?{field:i,value:e=>e.qNum,reduceLabel:"none"}:[];return[{key:e,data:{extract:{field:0,props:{major:{field:o.isContinuous?i: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:o.isContinuous?e=>e.qNum:void 0}}}]}return[]}const ys={MINI_CHART:{value:"miniChart"},BAR:{value:"bar"},NONE:{value:"none"}};var vs={OPTIONS:ys,DEFAULT:ys.MINI_CHART};function bs({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:o,minThumbSize:i})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===o,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<i){const e=(i-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=i}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 xs({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),o=t.get("continuousMax");return[(n.min-r)/(o-r),(n.max-r)/(o-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const Ss=e=>({miniChart:e===vs.OPTIONS.MINI_CHART.value,bar:e===vs.OPTIONS.BAR.value,none:e===vs.OPTIONS.NONE.value}),Es=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return Ss(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return Ss(vs.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return Ss(!n&&(r||!r&&o)?vs.OPTIONS.NONE.value:vs.OPTIONS.MINI_CHART.value)};function Ms({layoutService:e,override:t}){const n=Es({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===vs.OPTIONS.MINI_CHART.value,n.bar=t.value===vs.OPTIONS.BAR.value,n.none=t.value===vs.OPTIONS.NONE.value),n}function Cs({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),m="horizontal"===i.meta.major.orientation,p=m?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,f=m?d.rect.computedInner.width:d.rect.computedInner.height,h=m&&a?f-p:p,g=Math.max(0,Math.min(h/f,1)),[y,v]=xs({layoutService:o,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*f:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function ws({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i}){return()=>{const a=t.component(e),{orientation:s}=i.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,m]=xs({layoutService:o,viewState:n,viewCache:r});return{size:u,thumbSize:(m-d)*u}}}function Os({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=Cs({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=ws({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,o)=>!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,i-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 Ts="data-scrollbar-handle";function ks({e:e}){return(e.srcEvent||e).srcElement.getAttribute(Ts)||""}const Rs="scrollbarResize",As=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function Ns({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s}){const l=Cs({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s});return{type:"Pan",key:`event:${Rs}`,options:{event:Rs,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[Rs]=this[Rs]||{},As(t)&&ks({e:t})&&(this[Rs].panningEvent=t.srcEvent),!!this[Rs].panningEvent))}},events:{[`${Rs}start`](n){n.preventDefault(),this[Rs]=this[Rs]||{},this[Rs].panningEvent&&t.component(e).emit("dragStart",this[Rs].panningEvent)},[`${Rs}move`](n){if(n.preventDefault(),this[Rs]=this[Rs]||{},!this[Rs].panningEvent)return;const i=r.get("zoom"),a=o.get("continuousMin"),s=o.get("continuousMax"),c=o.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=ks({e:this[Rs].panningEvent});let m="start"===d?Math.min(u,i.max):i.min,p="end"===d?Math.max(u,i.min):i.max;m===p&&(m-="start"===d?c:0,p+="end"===d?c:0),r.set("zoom",{min:m,max:p}),t.component(e).emit("render")},[`${Rs}end`](n){n.preventDefault(),this[Rs]=this[Rs]||{},delete this[Rs].panningEvent,t.component(e).emit("dragEnd")},[`${Rs}cancel`](n){n.preventDefault(),this[Rs]=this[Rs]||{},delete this[Rs].panningEvent,t.component(e).emit("dragEnd")}}}}const Ls="scrollbarPan";function Is({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=Cs({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=ws({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:`event:${Ls}`,options:{event:Ls,threshold:0,enable(r,o){return this[Ls]=this[Ls]||{},!(o&&!this[Ls].isPanning)||!!n.scroll.enabled()&&((!o||o.target===t.element)&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e)))}},events:{[`${Ls}start`](n){n.preventDefault();const a=c(n);if(this[Ls]=this[Ls]||{},this[Ls].isPanning=!0,t.component(e).emit("lockState"),i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,i-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,i-t),max:Math.max(s,n+t)}),this[Ls].relative=a.relative,this[Ls].zoom=r.get("zoom"),this[Ls].zoom.span=this[Ls].zoom.max-this[Ls].zoom.min,this[Ls].zoom.fullSpan=i-n}else if(a.onThumb)this[Ls].offset=a.thumb;else{const e=u();this[Ls].offset=a.beforeThumb?0:e.thumbSize}},[`${Ls}move`](n){n.preventDefault();const a=c(n);if(this[Ls]=this[Ls]||{},i.meta.isContinuous){const e=a.relative-this[Ls].relative,{fullSpan:t,span:n,min:i,max:s}=this[Ls].zoom,l=o.get("continuousMin"),c=o.get("continuousMax");r.set("zoom",{min:Math.min(i+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[Ls].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${Ls}end`](n){n.preventDefault(),this[Ls]=this[Ls]||{},this[Ls].isPanning=!1,t.component(e).emit("unlockState")},[`${Ls}cancel`](n){n.preventDefault(),this[Ls]=this[Ls]||{},this[Ls].isPanning=!1,t.component(e).emit("unlockState")}}}}function Ps({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[Os({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),Ns({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),Is({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})]}function Ds({componentKey:e,chart:t,actions:n,layoutService:r}){const o=(o,i)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(o,i)};return{type:"native",events:{mousemove:e=>o("hover",e),mouseleave:()=>o("leave")}}}const qs={background:"rgba(0, 0, 0, 0.1)"},zs={top:-1,bottom:-1,width:6},$s={width:2,background:"#595959"};var Fs={before:qs,after:qs,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:zs,endHandle:zs,startHandleBorder:$s,endHandleBorder:$s};const js={background:"rgba(0, 0, 0, 0.1)"},_s={top:-1,bottom:-1,width:6},Bs={width:2,background:"#595959"};var Hs={before:js,after:js,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:_s,endHandle:_s,startHandleBorder:Bs,endHandleBorder:Bs};const Vs={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},Us={pointerEvents:"initial"},Ys={pointerEvents:"none"};const Ws="ew-resize",Gs="default";function Xs(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,o=t.range(),i=n&&t.rtl;return{size:r,start:(i?1-o[1]:o[0])*r,end:(i?1-o[0]:o[1])*r}}function Ks(){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?Ws:Gs}function Js(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const o=(r-(n-t))/2,i=Math.max(0,0-(t-o))-Math.max(0,n+o-e);return{size:e,start:t-o+i,end:n+o+i}}return{size:e,start:t,end:n}}function Zs(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function Qs(){const{size:e,start:t,end:n}=Xs.call(this);this.renderer.render(this.elements(this.h,Js.call(this,e,t,n)))}function el(){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?Hs:Fs;return{container:{...Vs},before:{...Vs,...n.before,...t.before},after:{...Vs,...n.after,...t.after},thumb:{...Vs,...n.thumb,...t.thumb},startHandle:{...Vs,...Us,...n.startHandle},endHandle:{...Vs,...Us,...n.endHandle},startHandleBorder:{...Vs,...Ys,...n.startHandleBorder},endHandleBorder:{...Vs,...Ys,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var tl={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(){Qs.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||!Zs.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=ks({e:e});t&&(this.state.hover[t]=!0),Ks.call(this),Qs.call(this)},leave(){this.state.locked||(this.state.hover.reset(),Ks.call(this),Qs.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=ks({e:e});t&&(this.state.drag[t]=!0),Ks.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),Ks.call(this),Qs.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,o="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[o]*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}=Xs.call(this);return this.elements(e,Js.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:o}=this.settings,i=o.injections().map((t=>t({h:e,rect:this.rect,orientation:o.orientation,minThumbSize:o.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:o,startHandleActive:i,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[o.end]:t-n},m={[o.start]:r},p={left:-3},f={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?m:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:m},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:p},class:"scrollbar--start-handle",[Ts]:"start"},i?e("div",{style:{...s.startHandleBorder,...c?g:f}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?p:h},class:"scrollbar--end-handle",[Ts]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?f:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[o.start]:n,[o.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:el.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};function nl({layoutService:e}){return e.meta.isContinuous&&Ms({layoutService:e}).miniChart}function rl({models:e}){const{layoutService:t,fieldModel:n,seriesModel:r,colorService:o}=e,{primarySeries:i,secondarySeries:a}=r.meta,s=r.query.series(Wa.TYPE.LINE),l=[...hs({forceCreate:!0,key:Ya.COLLECTION.PRIMARY,series:i,fieldModel:n,colorService:o,layoutService:t}),...hs({key:Ya.COLLECTION.SECONDARY,series:a,fieldModel:n,colorService:o,layoutService:t}),...hs({key:Ya.COLLECTION.LINE,series:s,fieldModel:n,colorService:o,layoutService:t}),...fs({key:Ya.COLLECTION.STACKED_PRIMARY,layoutService:t,fieldModel:n,colorService:o,series:i}),...fs({key:Ya.COLLECTION.STACKED_SECONDARY,layoutService:t,fieldModel:n,colorService:o,series:a}),...gs({key:Ya.COLLECTION.STACKED_TOTAL_PRIMARY,layoutService:t,fieldModel:n,series:i}),...gs({key:Ya.COLLECTION.STACKED_TOTAL_SECONDARY,layoutService:t,fieldModel:n,series:a})];return nl(e)&&(l.push(...hs({key:Ya.COLLECTION.REDUCED,source:Ya.DATA.REDUCED,series:r.query.all(),fieldModel:n,colorService:o,layoutService:t})),l.push(...hs({key:Ya.COLLECTION.REDUCED_PRIMARY,source:Ya.DATA.REDUCED,series:i,fieldModel:n,colorService:o,layoutService:t})),l.push(...hs({key:Ya.COLLECTION.REDUCED_SECONDARY,source:Ya.DATA.REDUCED,series:a,fieldModel:n,colorService:o,layoutService:t})),l.push(...fs({key:Ya.COLLECTION.REDUCED_STACKED_PRIMARY,source:Ya.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.primarySeries.filter((e=>e.type===Wa.TYPE.BAR)),colorService:o})),l.push(...fs({key:Ya.COLLECTION.REDUCED_STACKED_SECONDARY,source:Ya.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.secondarySeries.filter((e=>e.type===Wa.TYPE.BAR)),colorService:o}))),l}const ol=({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 il({models:e}){const{dockService:t,seriesModel:n,layoutService:r}=e,o=2===n.meta.measureAxes.length;if(o)return.5;const i=n.meta.measureAxes[0].isPrimary?t.meta.minor.dock:t.meta.minorSecondary.dock;if(!o){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"===i||"bottom"===i?1:0:"near"===i||"left"===i?0:1}const al=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:o,dockService:i}=e,{orientation:a}=i.meta.major;return{data:{extract:{field:n.main.major,props:{selectionDimension:{field:n.main.major}}}},maxPxStep:ol({layoutService:o,dockService:i}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:il({models:e})}},sl=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:o,dockService:i}=e,{orientation:a}=i.meta.major;return{type:"group-by-measure",data:{extract:{field:n.main.major}},measureCount:o.meta.groupSize,maxPxStep:ol({layoutService:o,dockService:i}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:il({models:e})}};function ll({viewState:e,models:t,environment:n}){const{fieldModel:r,dockService:o}=t,{orientation:i}=o.meta.major;return{type:"linear",invert:"horizontal"===i&&"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 cl({viewCache:e,mainMajor:t}){return me(!0,{},t,{min:()=>e.get("continuousMin"),max:()=>e.get("continuousMax")})}function ul({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:o,max:i}=e.get("zoom"),a=(i-o)/(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 dl({picasso:e,viewState:t,viewCache:n,models:r,environment:o}){const{layoutService:i,fieldModel:a,appLayoutModel:s,themeService:l}=r,{measureText:c}=e.renderer("svg")(),{majorNumeric:u}=a.main,d=l.getStyles(),m={type:"time",data:{field:u},qAxis:()=>i.getHyperCubeValue("qAxisData.qAxis",[]),field:u,min:()=>t.get("zoom").min,max:()=>t.get("zoom").max,invert:"rtl"===o.options.direction,formatter:{fn:e.formatter("q-time"),localeInfo:s.qLocaleInfo,qNumFormat:i.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:ul({viewState:t,viewCache:n,layoutService:i})};return{[Ya.SCALE.MAJOR]:me(!0,{},m,{ticks:{level:"outer"}}),[Ya.SCALE.MAJOR_INNER]:me(!0,{},m,{ticks:{level:"inner"}})}}function ml({picasso:e,models:t,viewState:n,viewCache:r,environment:o}){const{meta:i}=t.layoutService,a=i.isTime?{...dl({picasso:e,viewState:n,viewCache:r,models:t,environment:o})}:i.isContinuous?{[Ya.SCALE.MAJOR]:ll({models:t,viewState:n,environment:o})}:i.isBarSeriesGrouped?{[Ya.SCALE.MAJOR]:sl({models:t,environment:o})}:{[Ya.SCALE.MAJOR]:i.isBarSeriesStackedInBothAxis?sl({models:t,environment:o}):al({models:t,environment:o})};return nl(t)?{...a,[Ya.SCALE.REDUCED]:cl({viewCache:r,mainMajor:a[Ya.SCALE.MAJOR]})}:a}function pl({fields:e,tickModel:t,dockService:n,environment:r}){const o="rtl"===r.options.direction,{orientation:i}=n.meta.minor;return{data:{source:"qHyperCube",fields:e},invert:"vertical"===i||o,ticks:{values:t.query.getValues},min:t.query.getMin,max:t.query.getMax}}function fl({layoutService:e,tickModel:t,dockService:n,environment:r}){if(!nl({layoutService:e}))return;const o="rtl"===r.options.direction,{orientation:i}=n.meta.minor;return{type:"linear",invert:"vertical"===i||o,min:t.query.getMin,max:t.query.getMax}}function hl({picasso:e,models:t,viewState:n,viewCache:r,environment:o}){const{layoutService:i,fieldModel:a,primaryTickModel:s,secondaryTickModel:l,colorService:c,dockService:u}=t;return{...ml({picasso:e,models:t,viewState:n,viewCache:r,environment:o}),[Ya.SCALE.MINOR.PRIMARY]:pl({fields:a.main.minorsPrimary,tickModel:s,dockService:u,environment:o}),[Ya.SCALE.MINOR.SECONDARY]:pl({fields:a.main.minorsSecondary,tickModel:l,dockService:u,environment:o}),[Ya.SCALE.MINOR.REDUCED_PRIMARY]:fl({layoutService:i,tickModel:s,dockService:u,environment:o}),[Ya.SCALE.MINOR.REDUCED_SECONDARY]:fl({layoutService:i,tickModel:l,dockService:u,environment:o}),...c.custom.wrappedScales()}}var gl={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 yl=["all","labels"];function vl({models:e,flags:t}){const{layoutService:n,dockService:r,seriesModel:o,themeService:i,styleModel:a,animationsModel:s}=e,l=n.getLayoutValue("measureAxes");if(!l||!l.length)return[];const c=i.getStyles(),u=a.query.axis.label.getStyle(),{measureAxes:d}=o.meta;return d.filter((e=>{const t=e.isPrimary?0:1;return yl.some((e=>l[t].show===e))})).map((e=>({type:"axis",key:e.isPrimary?Ya.COMPONENT.AXIS.MINOR.PRIMARY:Ya.COMPONENT.AXIS.MINOR.SECONDARY,renderer:Ua(t),scale:e.scale,layout:{dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock,minimumLayoutMode:gl.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:Pa.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:Pa.axes.compensateForLayoutChanges({isMeasure:!0,dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock})}})))}var bl={INACTIVE:.5},xl={LOWER:3,UPPER:13};const Sl=({layoutService:e})=>{const t=e.getHyperCubeValue("qDimensionInfo.0.qApprMaxGlyphCount"),[n]=e.getDataPages(),r=n?n.qMatrix:[];return Ne.getAdjustedMaxGlyphCount(t,r,0,"qText")};function El({models:e,environment:t,flags:n}){const{layoutService:r,dockService:o,styleModel:i,themeService:a,animationsModel:s}=e,l="rtl"===t.options.direction,c=r.getLayoutValue("dimensionAxis"),u=i.query.axis.label.getStyle(),d=Sl({layoutService:r}),{orientation:m}=o.meta.major,p="horizontal"===m,f=p?c.label:"auto",h=a.getStyles(),{auto:g,spacing:y}=r.getLayoutValue("gridLine",{});return{type:"axis",key:Ya.COMPONENT.AXIS.MAJOR,renderer:Ua(n),scale:Ya.SCALE.MAJOR,layout:{dock:o.meta.major.dock,minimumLayoutMode:gl.AXIS.MAJOR[m.toUpperCase()]},settings:{labels:{mode:c.label,tiltAngle:l?-40:40,maxEdgeBleed:50,maxLengthPx:"horizontal"===f?void 0:o.meta.minor.size/4,maxGlyphCount:d,tiltThreshold:d>xl.LOWER&&d<xl.UPPER?1:void 0,fontFamily:u.fontFamily,fontSize:u.fontSize,fill:u.fill},line:{show:!g&&0===y,stroke:h.axis.line.major.color},paddingEnd:4},brush:{consume:[{context:"selection",style:{inactive:{opacity:bl.INACTIVE}}}]},animations:{enabled:s.enabled,trackBy:Pa.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:Pa.axes.compensateForLayoutChanges({isHorizontal:p})}}}function Ml({models:e,flags:t}){const{dockService:n,styleModel:r,themeService:o,layoutService:i,animationsModel:a}=e,{orientation:s}=n.meta.major,l=r.query.axis.label.getStyle(),c=o.getStyles(),{auto:u,spacing:d}=i.getLayoutValue("gridLine",{});return{type:"axis",key:Ya.COMPONENT.AXIS.MAJOR_CONTINUOUS,renderer:Ua(t),scale:Ya.SCALE.MAJOR,layout:{dock:n.meta.major.dock,minimumLayoutMode:gl.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:Pa.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:Pa.axes.compensateForLayoutChanges({isContinuous:!0})}}}function Cl({models:e,environment:t,flags:n}){const{layoutService:r}=e,o=r.getLayoutValue("dimensionAxis");if(!o)return[];const{show:i}=o;return"none"===i||"title"===i?[]:r.meta.isTime?function({models:e,environment:t}){const{dockService:n,themeService:r,styleModel:o,layoutService:i,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=o.query.axis.label.getStyle(),m=s?1:0,{auto:p,spacing:f}=i.getLayoutValue("gridLine",{}),h={type:"time-axis",renderer:"svg",layout:{dock:n.meta.major.dock,minimumLayoutMode:gl.AXIS.MAJOR[l]},preferredSize:()=>({size:2*parseFloat(d.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:s?"end":"start",label:{align:c,justify:m},guideLine:{major:{justify:m},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:Pa.axes.trackBy({isTime:!0}),compensateForLayoutChanges:Pa.axes.compensateForLayoutChanges({isTime:!0})}};return[me(!0,{},h,{key:Ya.COMPONENT.AXIS.TIME_INNER,scale:Ya.SCALE.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!p&&0===f}},style:{majorGuideLine:{stroke:u.axis.line.minor.color},minorGuideLine:{stroke:u.axis.line.major.color},line:{stroke:u.axis.line.major.color}}}),me(!0,{},h,{key:Ya.COMPONENT.AXIS.TIME_OUTER,scale:Ya.SCALE.MAJOR,settings:{guideLine:{minor:{show:!1}}}})]}({models:e,environment:t}):r.meta.isContinuous?[Ml({models:e,flags:n})]:[El({models:e,environment:t,flags:n})]}const wl=({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,Ol=({layoutService:e,seriesModel:t,rtl:n,orientation:r})=>e.meta.isContinuous?null:e.meta.isBarSeriesGrouped?({scale:e,datum:o})=>e([o.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 Tl({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:bl.INACTIVE},...n}}}]}}var kl="max",Rl="min";function Al(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 Nl=(e,t)=>`${e}-${t.id}`,Ll=4,Il=12,Pl=4;function Dl({chart:e,layoutService:t,dockService:n,markerKey:r,markerType:o}){if(t.meta.isContinuous)return()=>`${Pl}px`;const i={size:void 0},a="horizontal"===n.meta.major.orientation?"width":"height";return t=>{if(!i.size){const n=e.component(r),s=t.resources.scale(Ya.SCALE.MAJOR),l=n.rect[a]*s.bandwidth()*.25,c=Math.max(Ll,Math.min(Il,l));i.size=`${"bar"===o?2*c:c}px`}return i.size}}const ql=({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:zl}=Dt;const $l=({chart:e,models:t,series:n,environment:r})=>{const{layoutService:o,seriesModel:i,colorService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,animationsModel:u}=t,d=a.getColor(),{fill:m,marker:p}=n.options,{isContinuous:f}=o.meta,h="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 Al(t,v)},x=Nl(Ya.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:Ya.SCALE.MAJOR,fn:Ol({layoutService:o,seriesModel:i,rtl:h,orientation:g}),ref:f?"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:m||"bar"===p?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 m?zl(t)?function(e){return it(e).brighter(.5).toString()}(t):function(e){return it(e).darker().toString()}(t):t},size:Dl({chart:e,layoutService:o,dockService:s,markerKey:x,markerType:p}),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:p,horizontal:y,rtl:h})},brush:Tl({layoutService:o,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:bl.INACTIVE}}}),animations:{enabled:u.enabled,isMainComponent:ql({series:n}),trackBy:Pa.markers.trackBy,compensateForLayoutChanges:Pa.markers.compensateForLayoutChanges}}};function Fl({property:e="end",isHorizontal:t,isColor:n,fallback:r,rtl:o}){return function(i){const{datum:a,resources:{scale:s}}=i,l=s(Ya.SCALE.MAJOR),c=s(Ya.SCALE.COLOR),u=t&&o?[...a.points].reverse():a.points,d=u.reduce(((t,n,r)=>{const o="NaN"===n[e].value||Number.isNaN(n[e].value),i=u[r+1],a=i&&"NaN"!==i[e].value&&!Number.isNaN(i[e].value);return o?t.length&&a&&t.push(n):t.push(n),t}),[]),m="group-by-measure"===l.type?e=>l([e.major.value,e.typeIndex.value]):e=>l(e.major.value),p=d.map(m),f=Math.min(...p),h=Math.max(...p)-f,g=0===h?1:h,y=p.map(((e,t)=>0===t?0:t===p.length-1?1:(e-f)/g)),v=[];for(let t=0;t<d.length;t++){const o=d[t],i=o.color&&o.color.value,a=n?i||r:c(i)||r,s=0===t,l=t===d.length-1,u=y[t];if("NaN"===o[e].value||Number.isNaN(o[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],o=t.offset+(r.offset-t.offset)/2;e.push({color:t.color,offset:o},{color:r.color,offset:o})}else e.push(t);return e}),[]);return{type:"gradient",x1:0,x2:t?1:0,y1:0,y2:t?0:1,stops:b}}}function jl({environment:e,models:t,measureIndex:n}){const{layoutService:r,colorService:o,dockService:i}=t,a="rtl"===e.options.direction,{hasMultipleMeasures:s}=r.meta,{mode:l,type:c,nil:u}=o.getSettingsForMeasure(n),d="horizontal"===i.meta.major.orientation;if(!l||"constant"===c)return o.getColor();if("measure"===l&&"categorical"===c)return o.getColor();const m=r.getHyperCubeValue(`qMeasureInfo.${n}.color`);if(null!=m&&m.on)return"byExpression"===m.mode?Fl({isHorizontal:d,isColor:!0,fallback:u,rtl:a}):o.getColor();const p=r.getLayoutValue("color",{}),f=!p.auto&&"byExpression"===p.mode,h=!!p.colorExpression;if(f&&!h)return u;const g=!p.auto&&"byMeasure"===p.mode&&p.byMeasureDef&&void 0!==p.byMeasureDef.activeMeasureIndex;return s||!g?Fl({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:o}}=n,i=o(Ya.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=i.domain().map((e=>({color:i(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(o){const{datum:{points:i},resources:{scale:a}}=o,s=a(Ya.SCALE.COLOR),l=i.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,m=(t?Math.max(0,u):u)-d,p=0===m?1:m,f=s.domain(),h=[];for(let e=0;e<f.length-1;e++){const t=f[e],r=s(t)||n;h.push({color:r,offset:Math.min(1,Math.max(0,(t-d)/p))});const o=f[e+1];h.push({color:r,offset:Math.min(1,Math.max(0,(o-d)/p))})}return{type:"gradient",x1:!e&&r?1:0,x2:e||r?0:1,y1:e?1:0,y2:0,stops:h}}}({isHorizontal:d,fallback:u,rtl:a})}const _l=({models:e,environment:t,series:n})=>{const{layoutService:r,seriesModel:o,dockService:i,styleModel:a,animationsModel:s}=e,l="rtl"===t.options.direction,{orientation:c}=i.meta.major,u=Ol({layoutService:r,seriesModel:o,rtl:l,orientation:c});return{key:Nl(Ya.COMPONENT.LINE,n),type:"line",data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{coordinates:{major:{scale:Ya.SCALE.MAJOR,fn:u},minor:{scale:n.scale,ref:"end"}},layers:{curve:a.query.line.getCurveFn(),line:{stroke:jl({models:e,environment:t,measureIndex:n.refIndex}),strokeWidth:a.query.line.getStrokeWidthFn(),strokeDasharray:a.query.line.getStrokeDasharrayFn(),strokeLinejoin:"round"}},connect:n.options.showAsConnections,orientation:i.meta.major.orientation},brush:Tl({layoutService:r,active:{stroke:void 0,strokeWidth:void 0,opacity:bl.INACTIVE},inactive:{opacity:bl.INACTIVE}}),animations:{enabled:s.enabled,isMainComponent:!!ql({series:n})&&{filterFn:e=>e.commonPoints.length>0},trackBy:Pa.lines.trackBy,compensateForLayoutChanges:Pa.lines.compensateForLayoutChanges}}};var Bl={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 Hl({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}),o=n?(e,t)=>0!==e&&t.slice(0,e).reverse().some((e=>!r({item:e}))):(e,t)=>0!==e&&!r({item:t[e-1]}),i=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:o(e,t),after:i(e,t)})}const Vl=3,Ul=20;function Yl({models:e,series:t,environment:n}){const{layoutService:r,colorService:o,seriesModel:i,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,selectionService:u,animationsModel:d}=e,m=r.getLayoutValue("dataPoint.show",!1),{orientation:p}=a.meta.major,f="horizontal"===p,h="SPARK"===a.meta.chart.mode,g=o.getColor(),{POINT:y}=Bl,v=function({layoutService:e,series:t}){const n={key:void 0,map:void 0},r=Hl({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:o}=e.line,i=n.map[o],a=`${e.major.value}-${o}`,s=i.keys.indexOf(a),{before:l,after:c}=r({index:s,items:i.items});return!l&&!c}}({series:t,layoutService:r}),b="rtl"===n.options.direction,x=(t.isPrimary?l:c).query.getExtrema(),{isContinuous:S}=r.meta,E=({end:e})=>{const{value:t}=e;return Al(t,x)};return{type:"point",key:Nl(Ya.COMPONENT.POINT,t),data:{filter:e=>t.ref===e.end.source.field,collection:t.collection},preferredSize:()=>({edgeBleed:{top:f?y.SIZE.DEFAULT/2:0}}),settings:{[f?"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))}},[f?"x":"y"]:{scale:Ya.SCALE.MAJOR,fn:Ol({layoutService:r,seriesModel:i,rtl:b,orientation:p}),ref:"major"},sizeLimits:{minPx:Vl,maxPx:Ul},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||E(e)?0:h?v({item:e,items:t.items})?1:0:m||v({item:e,items:t.items})?1:0}},brush:Tl({layoutService:r,active:{r:e=>e.r+Bl.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)||E(e.data))return 0;if(!S||m)return 1;const{event:n,components:r=[]}=(null==u?void 0:u.getSelectionInfo())||{};if("continuousRange"===n)return 0;if("tap"!==n)return 1;const o=[Ya.COMPONENT.AXIS_OVERLAY.CONTINUOUS,Ya.COMPONENT.AXIS_OVERLAY.TIME_INNER,Ya.COMPONENT.AXIS_OVERLAY.TIME_OUTER].some((e=>r.indexOf(e)>=0));return o?0:1}},inactive:{opacity:e=>1===e.opacity?.5:0}}),animations:{enabled:d.enabled,trackBy:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.points.compensateForLayoutChanges}}}const Wl=(e,{dataset:t},n=!1)=>{const{value:r,label:o,source:i}=n?e.segment:e.end,a=t(i.key).field(i.field);return Se.shouldUseFormat(a.raw())?a.formatter()(r):o};function Gl({chart:e,models:t,environment:n,flags:r,lineSeries:o}){const{layoutService:i,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,animationsModel:u}=t,d="rtl"===n.options.direction,m=i.getLayoutValue("dataPoint");if(!m)return!1;if(!m.show||!m.showLineLabels)return!1;if(!o.length)return!1;const p=s.query.point.label.getStyle();return{type:"point-label",key:Ya.COMPONENT.POINT_LABEL,renderer:Ua(r),layout:{displayOrder:2,minimumLayoutMode:gl.VALUE_LABEL},settings:{orientation:a.meta.major.orientation,rtl:d,label:t=>Wl(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,lineId:e=>e.data.typeIndex.value,configs:o.map((e=>({key:`${Ya.COMPONENT.POINT}-${e.id}`,labels:!0,lines:!0}))),showLabel:e=>{const t=parseInt(e.key.substr(e.key.length-1),10),n=(o.find((e=>e.id===t)).isPrimary?l:c).query.getExtrema();return!Al(e.data.end.value,n)},labelSpace:{use:()=>{const t=e.component(Ya.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10}},style:{fontFamily:p.fontFamily,fontSize:p.fontSize,fill:p.fill},animations:{enabled:u.enabled,trackBy:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.labels.compensateForLayoutChanges}}}const Xl=({chart:e,models:t,environment:n,flags:r,markerSeries:o})=>{const{layoutService:i,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,animationsModel:u}=t,d="rtl"===n.options.direction,m=s.query.marker.label.getStyle(),p=i.getLayoutValue("dataPoint");return!(null==p||!p.showMarkerLabels)&&(!!o.length&&{type:"point-label",key:Ya.COMPONENT.MARKER_LABEL,renderer:Ua(r),layout:{displayOrder:2,minimumLayoutMode:gl.VALUE_LABEL},settings:{orientation:a.meta.major.orientation,rtl:d,label:t=>Wl(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,lineId:e=>e.data.typeIndex.value,configs:o.map((e=>({key:`${Ya.COMPONENT.MARKER}-${e.id}`,labels:!0,lines:!1,fixed:!0}))),showLabel:e=>{const t=parseInt(e.key.substr(e.key.length-1),10),n=(o.find((e=>e.id===t)).isPrimary?l:c).query.getExtrema();return!Al(e.data.end.value,n)},labelSpace:{use:()=>{const t=e.component(Ya.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10}},style:{fontFamily:m.fontFamily,fontSize:m.fontSize,fill:m.fill},animations:{enabled:u.enabled,trackBy:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.labels.compensateForLayoutChanges}})},Kl=({chart:e,dock:t})=>{let n=t;const r=e.component(`${Ya.COMPONENT.SLICED_HAT}-${kl}`),o=e.component(`${Ya.COMPONENT.SLICED_HAT}-${kl}-${Wa.AXIS.PRIMARY}`),i=e.component(`${Ya.COMPONENT.SLICED_HAT}-${kl}-${Wa.AXIS.SECONDARY}`);return r?n=`@${Ya.COMPONENT.SLICED_HAT}-${kl}`:o?n=`@${Ya.COMPONENT.SLICED_HAT}-${kl}-${Wa.AXIS.PRIMARY}`:i&&(n=`@${Ya.COMPONENT.SLICED_HAT}-${kl}-${Wa.AXIS.SECONDARY}`),n},Jl=({dockPosition:e,orientation:t,rtl:n})=>{let r=1;return e!==`@${Ya.COMPONENT.SLICED_HAT}-${kl}`&&e!==`@${Ya.COMPONENT.SLICED_HAT}-${kl}-${Wa.AXIS.PRIMARY}`&&e!==`@${Ya.COMPONENT.SLICED_HAT}-${kl}-${Wa.AXIS.SECONDARY}`||!("horizontal"===t||"vertical"===t&&n)||(r=4),e!==`@${Ya.COMPONENT.SLICED_HAT}-${Rl}`&&e!==`@${Ya.COMPONENT.SLICED_HAT}-${Rl}-${Wa.AXIS.PRIMARY}`&&e!==`@${Ya.COMPONENT.SLICED_HAT}-${Rl}-${Wa.AXIS.SECONDARY}`||"vertical"!==t||n||(r=4),r};function Zl({chart:e,models:t,environment:n,lineSeries:r}){const{layoutService:o,dockService:i,primaryExtremumModel:a,secondaryExtremumModel:s}=t,l=o.getLayoutValue("dataPoint",{}),c="rtl"===n.options.direction;if(!r.length)return!1;if(!l.show||!l.showLineLabels)return!1;const u="horizontal"===i.meta.major.orientation,{show:d}=o.getLayoutValue("dimensionAxis",{});if("none"!==d){const{dock:e}=i.meta.major;if(u&&"top"===e)return!1;if(!u&&e===(c?"left":"right"))return!1}const m=c?"left":"right";return{type:"label-space",key:Ya.COMPONENT.LABEL_SPACE,layout:{minimumLayoutMode:gl.LABEL_SPACE,dock:Kl({chart:e,dock:u?"top":m})},settings:{size:10},preferredSize:()=>{const t=e.component(`${Ya.COMPONENT.LINE}-${r[0].id}`);if(null==t||!t.rect)return 0;const n=(u?17:34)/t.rect[u?"height":"width"],o=a.query.getExtrema(),i=e.scale(Ya.SCALE.MINOR.PRIMARY)(o.implicit.line.max),l=u||c?i:1-i,d=r.filter((e=>e.isPrimary)).length>0,m=s.query.getExtrema(),p=e.scale(Ya.SCALE.MINOR.SECONDARY)(m.implicit.line.max),f=u||c?p:1-p,h=r.filter((e=>!e.isPrimary)).length>0;return d&&l<n||h&&f<n?10:0}}}const Ql={min:"Min",max:"Max"};function ec(e,t,n){const{hasExplicitMax:r}=n.meta,{max:o}=n.explicit;return!!r&&Math.max(e,t)>o&&o<=Math.min(e,t)}function tc(e,t,n){const{hasExplicitMin:r}=n.meta,{min:o}=n.explicit;return!!r&&Math.min(e,t)<o&&o>=Math.max(e,t)}function nc(e,t,n){return ec(e,t,n)||tc(e,t,n)}function rc(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r<=0}function oc(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r>=0}function ic(e,t){return rc(e,t)||oc(e,t)}function ac({extrema:e,type:t}){return!(function({extrema:e,type:t}){return!e.meta[`hasExplicit${Ql[t]}`]}({extrema:e,type:t})||function({extrema:e,type:t}){const n=t===kl?e.implicit.bar.max:e.implicit.bar.min,r=Number(n.toFixed(13));return t===kl?!rc(r,e):!oc(r,e)}({extrema:e,type:t}))}var sc=Object.freeze({__proto__:null,isMaxOutOfBounds:rc,isMinOutOfBounds:oc,isOutOfBounds:ic,isSegmentMaxOutOfBounds:ec,isSegmentMinOutOfBounds:tc,isSegmentOutOfBounds:nc,shouldShowOob:ac});const lc={min:"Min",max:"Max"},cc=({chart:e,models:t,markerSeries:n,lineSeries:r,barSeries:o,environment:i,type:a})=>{const{dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,primaryTickModel:u,secondaryTickModel:d,layoutService:m,seriesModel:p,themeService:f,fieldModel:h,animationsModel:g}=t,y="rtl"===i.options.direction,{dock:v,opposite:b,orientation:x}=s.meta.major,S=l.query.getExtrema(),E=c.query.getExtrema(),M=a===kl,{isBarSeriesGrouped:C}=m.meta,w=(({chart:e,type:t,opposite:n,dock:r})=>{let o=t===kl?n:r;const i=e.component(`${Ya.COMPONENT.SLICED_HAT}-${t}`),a=e.component(`${Ya.COMPONENT.SLICED_HAT}-${t}-${Wa.AXIS.PRIMARY}`),s=e.component(`${Ya.COMPONENT.SLICED_HAT}-${t}-${Wa.AXIS.SECONDARY}`),l=e.component(Ya.COMPONENT.LABEL_SPACE),c=e.component(`${Ya.COMPONENT.BAR_OOB}-${t}`),u=e.component(`${Ya.COMPONENT.BAR_OOB}-${t}-${Wa.AXIS.PRIMARY}`),d=e.component(`${Ya.COMPONENT.BAR_OOB}-${t}-${Wa.AXIS.SECONDARY}`);return i?o=`@${Ya.COMPONENT.SLICED_HAT}-${t}`:a?o=`@${Ya.COMPONENT.SLICED_HAT}-${t}-${Wa.AXIS.PRIMARY}`:s?o=`@${Ya.COMPONENT.SLICED_HAT}-${t}-${Wa.AXIS.SECONDARY}`:c||u||d?l&&t===kl?o=`@${Ya.COMPONENT.LABEL_SPACE}`:c?o=`@${Ya.COMPONENT.BAR_OOB}-${t}`:u?o=`@${Ya.COMPONENT.BAR_OOB}-${t}-${Wa.AXIS.PRIMARY}`:d&&(o=`@${Ya.COMPONENT.BAR_OOB}-${t}-${Wa.AXIS.SECONDARY}`):l&&t===kl&&(o=`@${Ya.COMPONENT.LABEL_SPACE}`),o})({chart:e,type:a,opposite:b,dock:v}),O=Ol({layoutService:m,seriesModel:p,rtl:y,orientation:x}),T=r.concat(n);if(!T.length)return!1;const k=M?S.implicit.bar.max:S.implicit.bar.min,R=Number(k.toFixed(13));if(!C&&o.length&&sc[`is${lc[a]}OutOfBounds`](R,S))return!1;if(!S.meta.hasExplicit&&!E.meta.hasExplicit)return!1;const A=M?"max":"min",N=Math[A](Number(S.implicit.line[A].toFixed(13)),Number(S.implicit.marker[A].toFixed(13))),L=Math[A](Number(E.implicit.line[A].toFixed(13)),Number(E.implicit.marker[A].toFixed(13))),I=T.filter((e=>e.isPrimary)),P=T.filter((e=>!e.isPrimary)),D=I.length>0,q=P.length>0,{major:z,majorNumeric:$}=h.main,F=e=>"NaN"!==e.qNum?e.qNum:0,j=m.meta.isContinuous?$:z;return{type:"data-out-of-bounds-marker",key:`${Ya.COMPONENT.DATA_OOB_MARKER}-${a}`,layout:{dock:w,minimumLayoutMode:gl.OUT_OF_BOUNDS_MARKER},data:{extract:T.map((({ref:e,typeIndex:t,options:n})=>({field:z,value:m.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:I,secondarySeries:P,orientation:x,rtl:y,major:{scale:Ya.SCALE.MAJOR,fn:O},markerOffset:Jl({dockPosition:w,orientation:x,rtl:y})},brush:Tl({layoutService:m}),show:()=>{if(M){if(D&&N>u.query.getMax())return!0;if(q&&L>d.query.getMax())return!0}if(!M){if(D&&N<u.query.getMin())return!0;if(q&&L<d.query.getMin())return!0}return!1},style:{fill:f.getStyles().outOfRange.color},animations:{enabled:g.enabled,compensateForLayoutChanges:Pa.lineOobs.compensateForLayoutChanges}}},uc={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function dc({chart:e,models:t,viewState:n,viewCache:r,axis:o}){const i=C(),{dockService:a}=t;return({data:t})=>(({items:t})=>{const{rect:n}=e.component(`${Ya.COMPONENT.BAR}-${o}`)||{};return(!t.length||!n)&&2})(t)||(()=>{const{min:e,max:t}=n.get("zoom");return i.get([e,t])||i.empty()&&!1})()||(()=>{const e=uc[a.meta.chart.mode];return 0===Math.abs(r.get("continuousMax")-r.get("continuousMin"))&&e})()||(()=>{const{min:e,max:t}=n.get("zoom"),o=Math.abs(r.get("continuousMax")-r.get("continuousMin")),s=Math.abs(t-e),l=uc[a.meta.chart.mode],c=function(e,t,n){return e*(1-n)+t*n}(2,l,1-Math.min(s/o/.2,1));return i.set([e,t],Math.max(2,Math.min(l,c)))})()}const mc=({isContinuous:e,isBarSeriesGrouped:t,styleModel:n,discreteModel:r,isBarSeriesStackedInBothAxis:o})=>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()(),o=t+e;return o>1?t-(o-1):t}:n.query.bar.getWidthFn():t||o?.9:.7;function pc(e){return Math.min(Math.max(0,e),1)}const fc=({chart:e,models:t,viewState:n,viewCache:r,isPrimary:o})=>{const{layoutService:i,dockService:a,colorService:s,seriesModel:l,styleModel:c,discreteModel:u,primaryExtremumModel:d,secondaryExtremumModel:m,animationsModel:p}=t,{isContinuous:f,isBarSeriesStacked:h,isBarSeriesGrouped:g,isBarSeriesStackedInBothAxis:y}=i.meta,v=e=>e.datum.start?e.datum.start.value:e.scale.min(),b=o?Wa.AXIS.PRIMARY:Wa.AXIS.SECONDARY,x=o?Ya.SCALE.MINOR.PRIMARY:Ya.SCALE.MINOR.SECONDARY;if(!(o?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount))return!1;const S=h?{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return pc(e.scale(t))}},end:{ref:"end",fn:e=>{const t=(e=>e.datum.end?e.datum.end.value:v(e))(e);return pc(e.scale(t))}}}:{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return pc(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 pc(e.scale(n))}}},E=(o?d:m).query.getExtrema(),M=h?({start:e,end:t})=>nc(e.value,t.value,E):({end:e})=>ic(e.value,E);return{type:"box",key:`${Ya.COMPONENT.BAR}-${b}`,data:{filter:(()=>{if(h)return;const e=l.query.series(Wa.TYPE.BAR).filter((e=>e.isPrimary===o)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:h?o?Ya.COLLECTION.STACKED_PRIMARY:Ya.COLLECTION.STACKED_SECONDARY:o?Ya.COLLECTION.PRIMARY:Ya.COLLECTION.SECONDARY},preferredSize:f?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,settings:{orientation:a.meta.minor.orientation,major:{scale:Ya.SCALE.MAJOR,fn:wl({layoutService:i,axis:b}),ref:f?{start:"major",end:"major"}:void 0},minor:S,box:{width:mc({isContinuous:f,isBarSeriesGrouped:g,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:y}),minWidthPx:f?dc({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:Tl({layoutService:i,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:bl.INACTIVE}}}),animations:{enabled:p.enabled,isMainComponent:ql({isPrimary:o,seriesModel:l}),trackBy:Pa.bars.trackBy,compensateForLayoutChanges:Pa.bars.compensateForLayoutChanges}}},hc=({chart:e,models:t,viewState:n,viewCache:r,isPrimary:o})=>{const{layoutService:i,dockService:a,colorService:s,seriesModel:l,styleModel:c,discreteModel:u}=t,{isBarSeriesStacked:d,isContinuous:m,isBarSeriesGrouped:p,isBarSeriesStackedInBothAxis:f}=i.meta,h=o?Wa.AXIS.PRIMARY:Wa.AXIS.SECONDARY,g=o?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount;if(!d||0===g)return!1;return{key:`${Ya.COMPONENT.STACK_BAR}-${h}`,type:"box",data:{collection:o?Ya.COLLECTION.STACKED_TOTAL_PRIMARY:Ya.COLLECTION.STACKED_TOTAL_SECONDARY},settings:{major:{scale:Ya.SCALE.MAJOR,fn:wl({layoutService:i,axis:h}),ref:m?{start:"timeStart",end:"timeEnd"}:void 0},minor:{scale:o?Ya.SCALE.MINOR.PRIMARY:Ya.SCALE.MINOR.SECONDARY,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:a.meta.minor.orientation,box:{width:mc({isContinuous:m,isBarSeriesGrouped:p,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:f}),minWidthPx:m?dc({chart:e,models:t,viewState:n,viewCache:r,axis:h}):2,opacity:0,fill:s.getColor()},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}};function gc(e,t){const n="horizontal"===e.dockService.meta.major.orientation,{style:r}=t,o=e.styleModel.query.bar.label.getStyle();return{placements:t.simplifiedPlacements.map((e=>{const t=o.useContrastColor&&!e.onBackground?function({style:e,simplifiedPlacement:t}){return n=>Dt.isDark(t.background?t.background.fill:n.node.attrs.fill)?e.lightColor:e.darkColor}({style:r,simplifiedPlacement:e}):o.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 yc(e,t,n,r){const o=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 i="up";return"vertical"===t&&o<0?i="down":"horizontal"===t&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}const vc=(e,t)=>{const{showBarLabels:n,showBarSegmentLabels:r}=e;if(!n)return!1;const{isBarSeriesStacked:o,isContinuous:i}=t;return!o||!i&&!!r},bc=(e,t)=>{const{showBarLabels:n,showBarTotalLabels:r}=e;if(!n)return!1;const{isBarSeriesStacked:o,isContinuous:i}=t;return!!o&&(!!i||!1!==r)};function xc(e,t,n,r){const o=[];return void 0!==e&&(o[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(o[t]={position:"inside",onBackground:!1,justify:n}),o}const Sc=({models:e,environment:t,flags:n,isPrimary:r})=>{const{layoutService:o,seriesModel:i,styleModel:a,themeService:s,animationsModel:l}=e,{meta:c}=o,{isBarSeriesStacked:u}=c,d="rtl"===t.options.direction,m=s.getStyles(),p=a.query.bar.label.getStyle(),f=e.layoutService.getLayoutValue("dataPoint",{}),h=r?Wa.AXIS.PRIMARY:Wa.AXIS.SECONDARY;if(!(r?i.meta.primaryBarSeriesCount:i.meta.secondaryBarSeriesCount)||!vc(f,c))return!1;let g;!u&&(g=u?1:0);const y={label:e=>Wl(e.data,e,u),simplifiedPlacements:xc(g,0===g?1:0,u?.5:1,c.isContinuous),style:m.label.value},v=[gc(e,y)],b={component:`${Ya.COMPONENT.BAR}-${h}`,selector:"rect",strategy:{type:"bar",settings:{direction:t=>yc(t.data.end.value,e.dockService.meta.minor.orientation,d,0),labels:v,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily}}},x=[b];return{type:"labels",key:`${Ya.COMPONENT.BAR_LABEL}-${h}`,renderer:Ua(n),layout:{minimumLayoutMode:gl.VALUE_LABEL},settings:{sources:x},animations:{enabled:l.enabled,trackBy:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.labels.compensateForLayoutChanges}}};function Ec(e,t,n,r){const o=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#cce6e6e6",padding:{left:2,right:2,top:2,bottom:2}};o.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return o}function Mc({chart:e,models:t,environment:n,flags:r,isPrimary:o}){const{meta:i}=t.layoutService,a="rtl"===n.options.direction,s=t.themeService.getStyles(),l=t.styleModel.query.bar.label.getStyle(),c=t.layoutService.getLayoutValue("dataPoint",{}),u=o?Wa.AXIS.PRIMARY:Wa.AXIS.SECONDARY;if(0===(o?t.seriesModel.meta.primaryBarSeriesCount:t.seriesModel.meta.secondaryBarSeriesCount)||!bc(c,i))return!1;const d=!vc(c,i),m=l.useContrastColor,p=e.formatter(o?Ya.FORMATTER.PRIMARY:Ya.FORMATTER.SECONDARY)||(e=>e),f=e=>p(e),h={label:e=>0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":f(e.data.sumOfPositives.value),simplifiedPlacements:Ec("outside",d,m,i.isContinuous),style:s.label.value},g={label:e=>0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":f(e.data.sumOfNegatives.value),simplifiedPlacements:Ec("opposite",d,m,i.isContinuous),style:s.label.value},y=[gc(t,h),gc(t,g)];return{type:"labels",key:`${Ya.COMPONENT.STACK_BAR_LABEL}-${u}`,renderer:Ua(r),layout:{displayOrder:2,minimumLayoutMode:gl.VALUE_LABEL},settings:{sources:[{component:`${Ya.COMPONENT.STACK_BAR}-${u}`,selector:"rect",strategy:{type:"bar",settings:{direction:e=>yc(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:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.labels.compensateForLayoutChanges}}}var Cc=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 wc={min:"Min",max:"Max"};function Oc({chart:e,models:t,type:n,viewCache:r,viewState:o,isPrimary:i}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,styleModel:u,discreteModel:d}=t,{isBarSeriesStacked:m,isContinuous:p,isBarSeriesGrouped:f,isBarSeriesStackedInBothAxis:h}=a.meta,g=m?hc({chart:e,models:t,viewCache:r,viewState:o,isPrimary:i}):fc({chart:e,models:t,viewCache:r,viewState:o,isPrimary:i}),y=i?l.query.getExtrema():c.query.getExtrema(),v=n===kl,b=i?Wa.AXIS.PRIMARY:Wa.AXIS.SECONDARY;if(!g)return!1;if(function(e,t){return!e.meta[`hasExplicit${wc[t]}`]}(y,n)||function(e,t,n){const r=n?e.implicit.bar.max:e.implicit.bar.min,o=Number(r.toFixed(13));return!Cc[`has${wc[t]}Hat`](o,e)}(y,n,v)||function(e,t,n){const r=n?e=>e<0:e=>e>0;return e.meta[`hasExplicit${wc[t]}`]&&r(e.explicit[t])}(y,n,v))return!1;let x="end";m&&(x=v?"sumOfPositives":"sumOfNegatives");const S=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.scale(i?Ya.SCALE.MINOR.PRIMARY:Ya.SCALE.MINOR.SECONDARY)[n]()));const E=(({chart:e,type:t,isPrimary:n,dock:r})=>{let o=r;const i=e.component(`${Ya.COMPONENT.SLICED_HAT}-${t}-${Wa.AXIS.PRIMARY}`),a=e.component(`${Ya.COMPONENT.SLICED_HAT}-${t}-${Wa.AXIS.SECONDARY}`);return i&&a&&(o=n?r:`@${Ya.COMPONENT.SLICED_HAT}-${t}-${Wa.AXIS.PRIMARY}`),o})({chart:e,type:n,isPrimary:i,dock:v?s.meta.minor.end:s.meta.minor.start}),M={type:"box-sliced-hat",key:`${Ya.COMPONENT.SLICED_HAT}-${n}-${b}`,layout:{dock:E},data:g.data,settings:{orientation:g.settings.orientation,major:g.settings.major,minor:g.settings.minor,hat:me({},g.settings.box,{fill:m?"#999":g.settings.box.fill,alignment:1,opacity:1,show:function(e){const t=S(),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[x].value);return v?n>t:n<t},width:mc({isContinuous:p,isBarSeriesGrouped:f,styleModel:u,discreteModel:d,isBarSeriesStackedInBothAxis:h}),strokeWidth:u.query.bar.getStrokeWidth(),stroke:u.query.bar.getStrokeColor()})},brush:Tl({layoutService:a})};return M}const Tc={min:"Min",max:"Max"},kc={sumOfPositives:"sumOfNegatives",sumOfNegatives:"sumOfPositives"};function Rc({chart:e,models:t,type:n,viewCache:r,viewState:o,isPrimary:i}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,themeService:u,animationsModel:d}=t,{end:m,start:p}=s.meta.minor,{isBarSeriesStacked:f}=a.meta,h=f?hc({chart:e,models:t,viewCache:r,viewState:o,isPrimary:i}):fc({chart:e,models:t,viewCache:r,viewState:o,isPrimary:i}),g=i?l.query.getExtrema():c.query.getExtrema(),y=n===kl?g.implicit.bar.max:g.implicit.bar.min,v=Number(y.toFixed(13)),b=i?Wa.AXIS.PRIMARY:Wa.AXIS.SECONDARY;if(!h)return!1;if(!sc[`is${Tc[n]}OutOfBounds`](v,g))return!1;const x=(({chart:e,type:t,end:n,start:r,isPrimary:o})=>{let i=t===kl?n:r;const a=e.component(Ya.COMPONENT.LABEL_SPACE),s=e.component(`${Ya.COMPONENT.SLICED_HAT}-${t}-${Wa.AXIS.PRIMARY}`),l=e.component(`${Ya.COMPONENT.SLICED_HAT}-${t}-${Wa.AXIS.SECONDARY}`),c=e.component(`${Ya.COMPONENT.BAR_OOB}-${t}-${Wa.AXIS.PRIMARY}`),u=e.component(`${Ya.COMPONENT.BAR_OOB}-${t}-${Wa.AXIS.SECONDARY}`);return s?i=`@${Ya.COMPONENT.SLICED_HAT}-${t}-${Wa.AXIS.PRIMARY}`:l?i=`@${Ya.COMPONENT.SLICED_HAT}-${t}-${Wa.AXIS.SECONDARY}`:c&&u&&!o?i=`@${Ya.COMPONENT.BAR_OOB}-${t}-${Wa.AXIS.PRIMARY}`:a&&t===kl&&(i=`@${Ya.COMPONENT.LABEL_SPACE}`),i})({chart:e,type:n,end:m,start:p,isPrimary:i});let S="end";f&&(S=n===kl?"sumOfPositives":"sumOfNegatives");const E={type:"box-out-of-bounds",key:`${Ya.COMPONENT.BAR_OOB}-${n}-${b}`,layout:{dock:x},data:h.data,settings:{orientation:h.settings.orientation,major:h.settings.major,minor:h.settings.minor,dockValue:ke.getDockValue(n===kl?m:p),oob:me({},h.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=f&&0===e.datum[S].value,o=sc[`is${Tc[n]}OutOfBounds`](e.datum[S].value,g,n),i=(!r||function({type:e,item:t,prop:n,extrema:r}){const o=t.datum[kc[n]].value;return 0!==o&&sc[`is${Tc[e]}OutOfBounds`](o,r,e)}({type:n,item:e,prop:S,extrema:g}))&&o;return i}})},brush:Tl({layoutService:a}),animations:{enabled:d.enabled,compensateForLayoutChanges:Pa.barOobs.compensateForLayoutChanges}};return E}function Ac(e){return Math.min(Math.max(0,e),1)}const Nc=({chart:e,models:t,type:n,isPrimary:r})=>{const{discreteModel:o,styleModel:i,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,m=e.scale(r?Ya.SCALE.MINOR.PRIMARY:Ya.SCALE.MINOR.SECONDARY),p=r?Wa.AXIS.PRIMARY:Wa.AXIS.SECONDARY,f=r?t.primaryExtremumModel.query.getExtrema():t.secondaryExtremumModel.query.getExtrema(),h=n===kl;if(!ac({extrema:f,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:`${Ya.COMPONENT.GHOST_BAR_OOB}-${n}-${p}`,data:{filter:(()=>{if(l)return;const e=a.query.series(Wa.TYPE.BAR).filter((e=>e.isPrimary===r)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:l?r?Ya.COLLECTION.STACKED_TOTAL_PRIMARY:Ya.COLLECTION.STACKED_TOTAL_SECONDARY:r?Ya.COLLECTION.PRIMARY:Ya.COLLECTION.SECONDARY},settings:{orientation:t.dockService.meta.minor.orientation,major:{scale:Ya.SCALE.MAJOR,fn:wl({layoutService:s,axis:p}),ref:c?{start:"major",end:"major"}:void 0},minor:{scale:r?Ya.SCALE.MINOR.PRIMARY:Ya.SCALE.MINOR.SECONDARY,start:{ref:"start",fn:e=>{const t=g(e);return Ac(e.scale(t))}},end:l?"max"===n?{ref:"sumOfPositives",fn:e=>{const t=y(e,"sumOfPositives");return Ac(e.scale(t))}}:{ref:"sumOfNegatives",fn:e=>{const t=y(e,"sumOfNegatives");return Ac(e.scale(t))}}:{ref:"end",fn:e=>{const t=y(e);return Ac(e.scale(t))}}},box:{width:mc({isContinuous:c,isBarSeriesGrouped:u,styleModel:i,discreteModel:o,isBarSeriesStackedInBothAxis:d}),stroke:"transparent",fill:"none",opacity:0,show:e=>{let t="end";l&&(t=h?"sumOfPositives":"sumOfNegatives");const n=e.datum[t]?e.datum[t].value:m.max();return h?n>m.max():n<m.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return v};function Lc(e,t,n,r,o){const i=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return i.push({position:"inside",onBackground:!1,justify:r||o?0:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),i}const Ic=({chart:e,models:t,type:n,environment:r,flags:o,isPrimary:i})=>{const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,styleModel:u,seriesModel:d,themeService:m,animationsModel:p}=t,f=m.getStyles(),h=u.query.bar.label.getStyle(),{meta:g}=a,{isBarSeriesStacked:y}=g,v=e.formatter(i?Ya.FORMATTER.PRIMARY:Ya.FORMATTER.SECONDARY),b=a.getLayoutValue("dataPoint",{}),x="horizontal"===s.meta.major.orientation,S="rtl"===r.options.direction;if(!(i?d.meta.primaryBarSeriesCount:d.meta.secondaryBarSeriesCount)||!y&&!vc(b,g)||y&&!bc(b,g))return!1;const E=i?l.query.getExtrema():c.query.getExtrema();if(!E.meta.hasExplicit)return!1;const M=n===kl?E.implicit.bar.max:E.implicit.bar.min;if(!(n===kl?rc(M,E):oc(M,E)))return!1;let C=e=>Wl(e.data,e);g.isBarSeriesStacked&&(C=n===kl?function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(rc(e.data.sumOfNegatives.value,E)){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(oc(e.data.sumOfPositives.value,E)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value;return v?v(t):t}return""});const w={label:C,simplifiedPlacements:Lc("outside",0,g.isContinuous,x,S),style:f.label.value},O={label:C,simplifiedPlacements:Lc("opposite",0,g.isContinuous,x,S),style:f.label.value},T=[gc(t,w),gc(t,O)],k=i?Wa.AXIS.PRIMARY:Wa.AXIS.SECONDARY,R="horizontal"===s.meta.major.orientation?"down":"right",A=[{component:`${Ya.COMPONENT.GHOST_BAR_OOB}-${n}-${k}`,selector:"rect",strategy:{type:"bar",settings:{direction:R,labels:T,fontSize:parseInt(h.fontSize,10),fontFamily:h.fontFamily}}}];return{key:`${Ya.COMPONENT.BAR_OOB_LABEL}-${n}-${k}`,type:"labels",renderer:Ua(o),layout:{minimumLayoutMode:gl.VALUE_LABEL},settings:{sources:A},animations:{enabled:p.enabled,trackBy:Pa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Pa.labels.compensateForLayoutChanges}}},Pc=({chart:e,models:t,viewState:n,viewCache:r})=>[fc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),fc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],Dc=({chart:e,models:t,viewState:n,viewCache:r})=>[hc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),hc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],qc=({chart:e,models:t,environment:n,flags:r})=>{const o=Mc({chart:e,models:t,environment:n,flags:r,isPrimary:!0}),i=Mc({chart:e,models:t,environment:n,flags:r,isPrimary:!1});return[Sc({models:t,environment:n,flags:r,isPrimary:!0}),Sc({models:t,environment:n,flags:r,isPrimary:!1}),o,i]},zc=({chart:e,models:t,viewCache:n,viewState:r})=>[Oc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Oc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Oc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Oc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],$c=({chart:e,models:t,viewCache:n,viewState:r})=>[Rc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Rc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Rc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Rc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],Fc=({chart:e,models:t})=>[Nc({chart:e,models:t,type:"max",isPrimary:!0}),Nc({chart:e,models:t,type:"min",isPrimary:!0}),Nc({chart:e,models:t,type:"max",isPrimary:!1}),Nc({chart:e,models:t,type:"min",isPrimary:!1})],jc=({chart:e,models:t,environment:n,flags:r})=>[Ic({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!0}),Ic({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!0}),Ic({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!1}),Ic({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!1})],_c=({chart:e,environment:t,flags:n,models:r,viewState:o,viewCache:i})=>{const{seriesModel:a}=r,s=a.query.series(Wa.TYPE.BAR).slice(-1),l=a.query.series(Wa.TYPE.LINE),c=a.query.series(Wa.TYPE.MARKER);return[...Pc({chart:e,models:r,viewState:o,viewCache:i}),...Dc({chart:e,models:r,viewState:o,viewCache:i}),...l.map((e=>_l({models:r,environment:t,series:e}))),...l.map((e=>Yl({models:r,series:e,environment:t}))),...c.map((n=>$l({chart:e,models:r,series:n,environment:t}))),Gl({chart:e,models:r,environment:t,flags:n,lineSeries:l}),Xl({chart:e,models:r,environment:t,flags:n,markerSeries:c}),...qc({chart:e,models:r,environment:t,flags:n}),...zc({chart:e,models:r,viewCache:i,viewState:o}),...$c({chart:e,models:r,viewCache:i,viewState:o}),...Fc({chart:e,models:r}),...jc({chart:e,models:r,environment:t,flags:n}),cc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"max"}),cc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"min"}),Zl({chart:e,models:r,environment:t,lineSeries:l})]},Bc={NONE:0,WIDE:1,NARROW:3};function Hc({models:e}){const{dockService:t,seriesModel:n,layoutService:r,themeService:o,animationsModel:i}=e,{auto:a,spacing:s,axis:l}=r.getLayoutValue("gridLine",{});if(!a&&s===Bc.NONE)return!1;const c=o.getStyles(),u=n.meta.primarySeries.length>0;return{key:Ya.COMPONENT.GRID_LINE,type:"grid-line",layout:{minimumLayoutMode:gl.GRID_LINE},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!(!a&&s===Bc.WIDE)||((e,t)=>t%2==0),stroke:c.grid.line.major.color},minorTicks:{show:!a&&s===Bc.NARROW,stroke:c.grid.line.minor.color},["horizontal"===t.meta.major.orientation?"y":"x"]:0===(null!=l?l:0)&&u?Ya.SCALE.MINOR.PRIMARY:Ya.SCALE.MINOR.SECONDARY,animations:{enabled:i.enabled,trackBy:Pa.lines.trackBy,compensateForLayoutChanges:Pa.lines.compensateForLayoutChanges}}}function Vc({models:e}){var t,n;const{primaryExtremumModel:r,primaryTickModel:o,themeService:i,dockService:a,seriesModel:s,secondaryExtremumModel:l,secondaryTickModel:c,layoutService:u,animationsModel:d}=e,m=0===(null!==(t=null===(n=u.getLayoutValue("gridLine",{}))||void 0===n?void 0:n.axis)&&void 0!==t?t:0),p=r.query.getExtrema(),f=l.query.getExtrema();if(!p.meta.includesZero&&!f.meta.includesZero)return!1;return{key:Ya.COMPONENT.ZERO_LINE,type:"ref-line",layout:{minimumLayoutMode:gl.GRID_LINE},show:()=>(()=>{const e=s.meta.primarySeries.length>0,t=s.meta.secondarySeries.length>0;return m&&e&&o.query.getMin()<=0&&o.query.getMax()>=0||!m&&t&&c.query.getMin()<=0&&c.query.getMax()>=0})(),lines:{["horizontal"===a.meta.minor.orientation?"x":"y"]:[{value:0,scale:m?Ya.SCALE.MINOR.PRIMARY:Ya.SCALE.MINOR.SECONDARY,line:{stroke:i.getStyles().grid.line.highContrast.color}}]},animations:{enabled:d.enabled,trackBy:Pa.lines.trackBy,compensateForLayoutChanges:Pa.lines.compensateForLayoutChanges}}}function Uc({models:e}){const{layoutService:t,themeService:n,animationsModel:r}=e,{isContinuous:o,isTime:i}=t.meta;if(!o)return[];const a=n.getStyles(),s={type:"grid-line",layout:{minimumLayoutMode:gl.GRID_LINE},ticks:{stroke:a.grid.line.major.color},minorTicks:{show:!1,stroke:a.grid.line.minor.color},animations:{enabled:r.enabled,trackBy:Pa.lines.trackBy,compensateForLayoutChanges:Pa.lines.compensateForLayoutChanges}};return i?[me(!0,{},s,{key:"time-inner-grid",x:{scale:Ya.SCALE.MAJOR_INNER},ticks:{stroke:a.grid.line.minor.color}}),me(!0,{},s,{key:"time-outer-grid",x:{scale:Ya.SCALE.MAJOR}})]:[me(!0,{},s,{key:"continuous-grid",x:{scale:Ya.SCALE.MAJOR},minorTicks:{show:!0}})]}function Yc({models:e}){return[Hc({models:e}),Vc({models:e}),...Uc({models:e})]}function Wc({models:e,environment:t,actions:n,flags:r}){const{layoutService:o,dockService:i,propertiesModel:a,appModel:s,genericObjectModel:l,selectionService:c,styleModel:u}=e,d=a.query.getProperties(),m=o.getLayoutValue("dimensionAxis");if(!m)return!1;const{show:p}=m;if("all"!==p&&"title"!==p)return!1;const{orientation:f}=i.meta.major,h=u.query.axis.title.getStyle();return{type:"data-title",key:Ya.COMPONENT.AXIS_TITLE.MAJOR,layout:{dock:i.meta.major.dock,minimumLayoutMode:gl.AXIS_TITLE.MAJOR[f.toUpperCase()]},settings:{hyperCube:o.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:h.fontFamily,fontSize:h.fontSize,color:h.color}}}const Gc=(e,t,n)=>e.query.seriesByAxis(n).map((e=>({...t[e.refIndex],explicitColumn:e.refIndex})));function Xc({models:e,environment:t,actions:n,flags:r}){const{layoutService:o,dockService:i,seriesModel:a,propertiesModel:s,appModel:l,genericObjectModel:c,selectionService:u,styleModel:d}=e,m=s.query.getProperties(),p=o.getLayoutValue("measureAxes");if(!p||!p.length)return[];const f=d.query.axis.title.getStyle(),{measureAxes:h}=a.meta;return h.filter((e=>e.isPrimary?"all"===p[0].show||"title"===p[0].show:"all"===p[1].show||"title"===p[1].show)).map((e=>{const s=o.getHyperCube(),{isPrimary:d}=e,p=a.query.seriesByAxis(d).length>1,h={type:"data-title",key:d?Ya.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:Ya.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,layout:{dock:d?i.meta.minor.dock:i.meta.minorSecondary.dock,minimumLayoutMode:gl.AXIS_TITLE.MINOR},settings:{hyperCube:s,hyperCubeDef:m&&m.qHyperCubeDef,isDimension:!1,explicitItemInfos:Gc(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:f.fontFamily,fontSize:f.fontSize,color:f.color}};return p&&(h.settings.padding="0",h.settings.minWidth="auto"),h}))}function Kc({models:e,environment:t,actions:n,flags:r}){return r.isEnabled("IM_5788_DATA_TITLE_REFACTOR")?[]:[Wc({models:e,environment:t,actions:n,flags:r}),...Xc({models:e,environment:t,actions:n,flags:r})]}function Jc({models:e,environment:t,actions:n,viewCache:r}){const{alternativeService:o,layoutService:i,dockService:a,appModel:s,genericObjectModel:l,selectionService:c,styleModel:u}=e,d=i.getLayoutValue("dimensionAxis");if(!d)return!1;const{show:m}=d;if("all"!==m&&"title"!==m)return!1;const p=o.getAlternatives(),{orientation:f}=a.meta.major,h=u.query.axis.title.getStyle();return{type:"axis-title",key:Ya.COMPONENT.AXIS_TITLE.MAJOR,renderer:"react-qcm",layout:{dock:a.meta.major.dock,minimumLayoutMode:gl.AXIS_TITLE.MAJOR[f.toUpperCase()]},data:{infos:i.getHyperCubeValue("qDimensionInfo"),alternatives:p.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:i.meta.isSnapshot,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:h.color,fontFamily:h.fontFamily,fontSize:h.fontSize}}}}function Zc({models:e,environment:t,actions:n,viewCache:r}){const{alternativeService:o,layoutService:i,dockService:a,seriesModel:s,appModel:l,genericObjectModel:c,selectionService:u,styleModel:d}=e,m=i.getLayoutValue("measureAxes");if(!m||!m.length)return[];const p=o.getAlternatives(),f=d.query.axis.title.getStyle(),{measureAxes:h}=s.meta;return h.filter((e=>e.isPrimary?"all"===m[0].show||"title"===m[0].show:"all"===m[1].show||"title"===m[1].show)).map((e=>{const o=i.getHyperCube(),{isPrimary:d}=e;return{type:"axis-title",key:d?Ya.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:Ya.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,renderer:"react-qcm",layout:{dock:d?a.meta.minor.dock:a.meta.minorSecondary.dock,minimumLayoutMode:gl.AXIS_TITLE.MINOR},data:{infos:Gc(s,o.qMeasureInfo,d),alternatives:p.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:i.meta.isSnapshot,skipAttributeExpressions:!0,type:"measure"},style:{title:{fontFamily:f.fontFamily,fontSize:f.fontSize,color:f.color}}}}))}function Qc({models:e,environment:t,actions:n,viewCache:r,flags:o}){return o.isEnabled("IM_5788_DATA_TITLE_REFACTOR")?[Jc({models:e,environment:t,actions:n,viewCache:r}),...Zc({models:e,environment:t,actions:n,viewCache:r})]:[]}function eu({models:e,environment:t,viewState:n,viewCache:r}){const{discreteModel:o,layoutService:i,dockService:a,continuousModel:s,themeService:l}=e,{isSnapshot:c,isDiscrete:u,isContinuous:d}=i.meta,m="rtl"===t.options.direction;return!(c&&!d)&&function({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:o,viewCache:i,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=Ms({layoutService:e,override:l});if(d.none)return!1;const{orientation:m}=t.meta.major,p={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===m?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:m,rtl:s,isContinuous:e.meta.isContinuous,range:()=>xs({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(p.settings.style="slim",p.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(p.settings.size.thumb={min:4}));const f=a.getStyles();return f.color&&(p.style={standard:{thumb:{"border-color":f.color,opacity:.4},before:{background:f.color,opacity:.1},after:{background:f.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(p.settings.injections=()=>[bs({layoutService:e,discrete:n})]),p}({viewState:n,viewCache:r,discrete:o,continuousDataModel:s,layoutService:i,dockService:a,themeService:l,rtl:m,scrollbarOverride:{predicate:()=>u,value:vs.OPTIONS.BAR.value},deviceType:t.deviceType})}function tu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:o}){const{layoutService:i}=t,a=fc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:o});if(!a)return!1;const s=o?Wa.AXIS.PRIMARY:Wa.AXIS.SECONDARY;return a.key=`${Ya.COMPONENT.MINI_CHART.BAR}-${s}`,a.data.collection=i.meta.isBarSeriesStacked?o?Ya.COLLECTION.REDUCED_STACKED_PRIMARY:Ya.COLLECTION.REDUCED_STACKED_SECONDARY:o?Ya.COLLECTION.REDUCED_PRIMARY:Ya.COLLECTION.REDUCED_SECONDARY,a.settings.box.minWidthPx=void 0,a.settings.minor.scale=o?Ya.SCALE.MINOR.REDUCED_PRIMARY:Ya.SCALE.MINOR.REDUCED_SECONDARY,a.settings.major.scale=Ya.SCALE.REDUCED,a.layout={dock:"@scrollbar"},a}function nu({environment:e,models:t}){const n=t.styleModel.query.line.getStrokeDasharrayFn();return t.seriesModel.query.series(Wa.TYPE.LINE).map((r=>{const o=_l({models:t,environment:e,series:r});return o.key=Nl(Ya.COMPONENT.MINI_CHART.LINE,r),o.data.collection=Ya.COLLECTION.REDUCED,o.settings.coordinates.minor.scale=r.isPrimary?Ya.SCALE.MINOR.REDUCED_PRIMARY:Ya.SCALE.MINOR.REDUCED_SECONDARY,o.settings.coordinates.major.scale=Ya.SCALE.REDUCED,o.settings.layers.line.strokeWidth=1,o.settings.layers.line.strokeDasharray=(...e)=>void 0===n(...e)?void 0:"1, 1",o.layout={dock:"@scrollbar"},o}))}function ru({models:e,environment:t}){return e.seriesModel.query.series(Wa.TYPE.MARKER).map((n=>{const r=$l({models:e,environment:t,series:n});return r.key=Nl(Ya.COMPONENT.MINI_CHART.MARKER,n),r.data.collection=Ya.COLLECTION.REDUCED,r.settings.y.scale=n.isPrimary?Ya.SCALE.MINOR.REDUCED_PRIMARY:Ya.SCALE.MINOR.REDUCED_SECONDARY,r.settings.x.scale=Ya.SCALE.REDUCED,r.layout={dock:"@scrollbar"},r}))}function ou({chart:e,models:t,viewState:n,viewCache:r,environment:o}){return nl(t)?[tu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),tu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1}),...nu({environment:o,models:t}),...ru({models:t,environment:o})]:[]}function iu({models:e}){const{layoutService:t,dockService:n}=e,{isContinuous:r,isTime:o}=t.meta,i=t.getLayoutValue("dimensionAxis");if(!i||"none"===i.show||"title"===i.show)return[!1];if(!r)return[!1];const a=gl.AXIS.MAJOR[n.meta.major.orientation.toUpperCase()];return o?[{type:"axis-overlay",key:Ya.COMPONENT.AXIS_OVERLAY.TIME_INNER,scale:Ya.SCALE.MAJOR_INNER,layout:{dock:`@${Ya.COMPONENT.AXIS.TIME_INNER}`,minimumLayoutMode:a}},{type:"axis-overlay",key:Ya.COMPONENT.AXIS_OVERLAY.TIME_OUTER,scale:Ya.SCALE.MAJOR,layout:{dock:`@${Ya.COMPONENT.AXIS.TIME_OUTER}`,minimumLayoutMode:a}}]:[{type:"axis-overlay",key:Ya.COMPONENT.AXIS_OVERLAY.CONTINUOUS,scale:Ya.SCALE.MAJOR,layout:{dock:`@${Ya.COMPONENT.AXIS.MAJOR_CONTINUOUS}`,minimumLayoutMode:a}}]}function au({chart:e,models:t,environment:n}){const{refLineModel:r,layoutService:o,colorService:i,dockService:a,themeService:s,appLayoutModel:l,seriesModel:c,animationsModel:u}=t,d=l.qLocaleInfo,{options:m,theme:p}=n,f="rtl"===m.direction,h=c.query.series(Wa.TYPE.BAR).filter((e=>e.isPrimary)),g=c.query.series(Wa.TYPE.BAR).filter((e=>!e.isPrimary)),y=c.query.series(Wa.TYPE.LINE),v=c.query.series(Wa.TYPE.MARKER),b=c.query.all(),x=b.some((e=>e.isPrimary)),S=b.some((e=>!e.isPrimary)),E=x&&S,M={resolveUIColor:i.getPaletteColor},C=u.enabled,w=x?Ha({refLineModel:r,layoutService:o,colorModel:M,dock:E?a.meta.minor.dock:a.meta.minor.opposite,scale:Ya.SCALE.MINOR.PRIMARY,style:s.getStyles(),formatter:Ya.FORMATTER.PRIMARY,theme:p,localeInfo:d,rtl:f,key:Ya.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE_LABEL,animationsEnabled:C}):[],O=S?Ha({refLineModel:r,layoutService:o,colorModel:M,dock:E?a.meta.minor.opposite:a.meta.minor.dock,scale:Ya.SCALE.MINOR.SECONDARY,style:s.getStyles(),formatter:Ya.FORMATTER.SECONDARY,theme:p,localeInfo:d,rtl:f,key:Ya.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE_LABEL,path:"refLine.refLines2",animationsEnabled:C}):[];return[!!x&&ja({refLineModel:r,layoutService:o,colorModel:M,dockService:a,chart:e,scale:Ya.SCALE.MINOR.PRIMARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:Ya.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE,minimumLayoutMode:gl.REFERENCE_LINE,animationsEnabled:C}),!!S&&ja({refLineModel:r,layoutService:o,colorModel:M,dockService:a,chart:e,scale:Ya.SCALE.MINOR.SECONDARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:Ya.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE,path:"refLine.refLines2",minimumLayoutMode:gl.REFERENCE_LINE,animationsEnabled:C}),ja({isDimension:!0,refLineModel:r,layoutService:o,colorModel:M,dockService:a,chart:e,scale:Ya.SCALE.MAJOR,axis:"horizontal"===a.meta.major.orientation?"x":"y",rtl:f,key:Ya.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:h.length?`${Ya.COMPONENT.BAR}-${Wa.AXIS.PRIMARY}`:g.length?`${Ya.COMPONENT.BAR}-${Wa.AXIS.SECONDARY}`:y.length?`${Ya.COMPONENT.LINE}-${y[0].id}`:v.length?`${Ya.COMPONENT.MARKER}-${v[0].id}`:`${Ya.COMPONENT.BAR}-${Wa.AXIS.PRIMARY}`,minimumLayoutMode:gl.REFERENCE_LINE,animationsEnabled:C}),...w,...O,...Ha({isDimension:!0,refLineModel:r,layoutService:o,colorModel:M,dock:a.meta.major.opposite,scale:Ya.SCALE.MAJOR,style:s.getStyles(),theme:p,localeInfo:d,rtl:f,key:Ya.COMPONENT.DIMENSION_REF_LINE_LABEL,animationsEnabled:C})]}function su({layoutService:e}){return!!nl({layoutService:e})&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:Ya.SCALE.REDUCED,brush:"selection",fill:"#6CB33F",opacity:.2}}}function lu(e){return(null==e?void 0:e.type)||Wa.TYPE.BAR}function cu({models:e,environment:t}){const{layoutService:n,colorService:r,dockService:o,seriesModel:i,selectionService:a}=e,{hasLineSeries:s,isContinuous:l,hasMultipleMeasures:c,isGroupedByMeasure:u}=n.meta;if(!s)return!1;const{options:d}=t,m=n.getLayoutValue("color",{}),p=e=>e.filter((e=>lu(e)===Wa.TYPE.LINE)).map((e=>({key:Nl(Ya.COMPONENT.LINE,e),typeIndex:e.typeIndex}))),f=!m.auto&&"byMeasure"===m.mode&&m.byMeasureDef&&void 0!==m.byMeasureDef.activeMeasureIndex,h=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:Ya.COLLECTION.LINE},settings:{getSelectionInfo:()=>{var e;return(null==a||null===(e=a.getSelectionInfo)||void 0===e?void 0:e.call(a))||{}},seriesInfo:{primary:p(i.meta.primarySeries),secondary:p(i.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=>!h[e]&&f,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:i.meta.barSeriesCount,orientation:o.meta.major.orientation,rtl:"rtl"===d.direction}}}function uu({models:{fieldModel:e}}){return{[Ya.FORMATTER.PRIMARY]:{data:{fields:e.main.minorsPrimary}},[Ya.FORMATTER.SECONDARY]:{data:{fields:e.main.minorsSecondary}}}}var du={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:mu}=du;function pu({layoutService:e,largeDataService:t}){const{maxNumPoints:n=mu}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:fu}=du,hu=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=fu}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!pu({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:gu}=du,{MAX_NUM_POINTS:yu,DEFAULT_NUM_POINTS:vu,DEFAULT_NUM_LINES:bu}=du,{DEFAULT_NUM_POINTS:xu}=du,Su=({layoutService:e,largeDataService:t})=>{if(!pu({layoutService:e,largeDataService:t})){const{maxNumPoints:e=xu}=(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:o=bu,maxNumPoints:i=vu,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(hu({layoutService:e,largeDataService:t})*r[0]<=i)return r[0];const s=Math.max(1,Math.min(o,r[1])),l=i/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>bu||i>vu)?Math.min(c,Math.ceil(yu/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=gu}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},o=4+2*(r-1);return Math.floor(n/(r*o))})({layoutService:e,largeDataService:t})};function Eu({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>pu({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>Su({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>hu({layoutService:t,largeDataService:n}),fetch:(o,i)=>(({start:e,end:t,model:n,layoutService:r,largeDataService:o,definitionPath:i})=>{const a={qStart:e,qEnd:t,qNbrPoints:Su({layoutService:r,largeDataService:o}),qMaxNbrTicks:300,qMaxNumberLines:hu({layoutService:r,largeDataService:o})};return n.getHyperCubeContinuousData(i,a,!1)})({start:o,end:i,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Mu(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Cu({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,o=r+t;return 1===t&&0===e&&(r=n-.5,o=n+.5),{zoom:{min:r,max:o}}}(n,t.get("continuousMin"))}}}function wu(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const o=t.indexOf(e);o>-1&&t.splice(o,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 Ou(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=wu(),i=wu();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?o.set(l,s):s[0].qNum>t&&(i.has(l)||i.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o.forEach(((e,t)=>r.splice(t,0,e))),i.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let o,i;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?o=s:s[0].qNum>t&&(i||(i=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o&&r.unshift(o),i&&r.push(i),r}({start:e,end:t,matrix:n})}function Tu(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function ku(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Ou(e,t,n.qMatrix),o=Tu(n.qArea,r);return{...n,qArea:o,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 Ru=2**.5,Au=1/Ru,Nu=Au**44;function Lu(e){return e.qIsOtherCell}function Iu({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Lu)){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(Lu)||t++})),t}(n)}const Pu={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var Du={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],o=t[e+1];r.data={},o||1===r.end?o?(r.data.start=r.value,r.data.end=o.value,r.end=o.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 qu(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function zu(e,t){const{localProps:{size:n},props:{anchor:r}}=t,o=function({props:e,localProps:{size:t},style:n,renderer:r}){const o=e.label.padding,i=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*o,1===e.end&&(u-=d));const m={x:u+o,y:o,width:d-2*o,height:t.height-2*o},p=s(`${l[0]}…`).width,f=Math.max(0,m.width-c.width),h=Math.max(0,m.height-c.height),g=i*f,y=a*h;return{show:m.width>=Math.min(p,c.width),text:l,dx:g,dy:y,rect:m,style:n.label,segment:{x:u+g,width:c.width+2*o},tickValue:e.value}}}}(t),i=function({localProps:{size:e},style:t,scale:n,props:r}){const[o,i]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=qu(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:qu(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:o.resolve(e,t),guideLine:i.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],o=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&&(i=n.segment,a=o.segment,!(i.x<a.x?i.x+i.width>=a.x:a.x+a.width>=i.x))}var i,a}(e,a),a}function $u(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const o=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),i=qu(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:qu(o,n.minorGuideLine.strokeWidth),x2:i,y2:qu(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function Fu(e){return e.filter((e=>e.show)).map((e=>me({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var ju={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=qu(1,t.line.strokeWidth);return{show:n.line.show,x1:qu(0,t.line.strokeWidth),y1:r,x2:qu(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=zu(n,this),this.state.minor=$u(r,this)},render(){return[...Fu([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>me({},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})))),...Fu(this.state.major.map((e=>e.guideLine))),...Fu(this.state.minor.map((e=>e.guideLine)))];var e}};function _u(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 Bu(e){return e.qTags.indexOf("$qualified")>-1}function Hu({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];_u(i,a)?(Bu(a)?(t.push(o),n.push(r)):(t.push(r),n.push(o)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function Vu({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,o=NaN,i=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(o=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){i="auto",s=!0;break}if(e&&e.queries.inner(n)){i=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(o)&&Number.isNaN(i)&&"auto"!==i){i=o,o=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(o)&&(o="auto",i="auto");return{outer:o,inner:i,minor:a,isDayOrShorter:s}}}}function Uu({qTicks:e,measureText:t=()=>({width:0}),cache:n={},scale:r}){const o=n;return{isDayOrShorter:()=>(o.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,o.isDayOrShorter),count:()=>e.length,maxRange:()=>(o.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,o.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),o.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+16}))),r.clamp(n),o.rangeAndWidth}}}function Yu({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 Wu({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=Uu,queryFactory:s=Yu}={attributesFactory:Uu,queryFactory:Yu}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:i});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:o})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function Gu({qAxis:e=[],measureText:t=()=>({width:0}),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=Wu,mapper:a=Hu,resolver:s=Vu}={metaFactory:Wu,mapper:Hu,resolver:Vu}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=i({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:o}),m=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 o=m.resolve(t);return n.set(r,o),o}}}function Xu(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}const Ku=Xu(0).getTime();function Ju(e){return(e.getTime()-Ku)/86400/1e3}const Zu=new Date,Qu=new Date;function ed(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>ed((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&&(o.count=(t,r)=>(Zu.setTime(+t),Qu.setTime(+r),e(Zu),e(Qu),Math.floor(n(Zu,Qu))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const td=1e3,nd=6e4,rd=36e5,od=864e5,id=6048e5,ad=ed((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*td)}),((e,t)=>(t-e)/td),(e=>e.getUTCSeconds()));ad.range;const sd=ed((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*td)}),((e,t)=>{e.setTime(+e+t*nd)}),((e,t)=>(t-e)/nd),(e=>e.getMinutes()));sd.range;const ld=ed((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*nd)}),((e,t)=>(t-e)/nd),(e=>e.getUTCMinutes()));ld.range;const cd=ed((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*td-e.getMinutes()*nd)}),((e,t)=>{e.setTime(+e+t*rd)}),((e,t)=>(t-e)/rd),(e=>e.getHours()));cd.range;const ud=ed((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*rd)}),((e,t)=>(t-e)/rd),(e=>e.getUTCHours()));ud.range;const dd=ed((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*nd)/od),(e=>e.getDate()-1));dd.range;const md=ed((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/od),(e=>e.getUTCDate()-1));md.range;const pd=ed((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/od),(e=>Math.floor(e/od)));function fd(e){return ed((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())*nd)/id))}pd.range;const hd=fd(0),gd=fd(1),yd=fd(2),vd=fd(3),bd=fd(4),xd=fd(5),Sd=fd(6);function Ed(e){return ed((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)/id))}hd.range,gd.range,yd.range,vd.range,bd.range,xd.range,Sd.range;const Md=Ed(0),Cd=Ed(1),wd=Ed(2),Od=Ed(3),Td=Ed(4),kd=Ed(5),Rd=Ed(6);Md.range,Cd.range,wd.range,Od.range,Td.range,kd.range,Rd.range;const Ad=ed((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()));Ad.range;const Nd=ed((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()));Nd.range;const Ld=ed((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()));Ld.every=e=>isFinite(e=Math.floor(e))&&e>0?ed((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,Ld.range;const Id=ed((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()));Id.every=e=>isFinite(e=Math.floor(e))&&e>0?ed((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,Id.range;const Pd=1,Dd=2,qd=3,zd=4,$d=5,Fd=6;function jd({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:o,timeOnly:i,initialMin:a}){const[s,l]=e.domain(),c=o.key({distance:n});let u;o.get(c,1)?u=o.get(c,1):(u=function(e,t,n,r,o,i){function a(e){return Id.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=ad.count(e,t),l=ld.count(e,t),c=ud.count(e,t),u=md.count(e,t),d=Md.count(e,t),m=Nd.count(e,t),p=Id.count(e,t),f=n/r.second.width-1,h=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:p,interval:Id.every(1),formatter:r.year.formatter,offset:e=>Id.offset(e,-1),floor:Id.floor};if(s<=f)v.type=Pd,v.desc="second",v.count=s,v.interval=ad.every(1),v.formatter=r.second.formatter,v.offset=e=>ad.offset(e,-1),v.floor=ad.floor;else if(s/2<=f)v.type=Pd,v.desc="every other second",v.count=s/2,v.interval=ad.every(2),v.formatter=r.second.formatter,v.offset=e=>ad.offset(e,-2),v.floor=ad.floor;else if(s/5<=f)v.type=Pd,v.desc="every 5 second",v.count=s/5,v.interval=ad.every(5),v.formatter=r.second.formatter,v.offset=e=>ad.offset(e,-5),v.floor=ad.floor;else if(s/15<=f)v.type=Pd,v.desc="every 15 second",v.count=s/15,v.interval=ad.every(15),v.formatter=r.second.formatter,v.offset=e=>ad.offset(e,-15),v.floor=ad.floor;else if(s/30<=f)v.type=Pd,v.desc="every 30 second",v.count=s/30,v.interval=ad.every(30),v.formatter=r.second.formatter,v.offset=e=>ad.offset(e,-30),v.floor=ad.floor;else if(l<=h)v.type=Dd,v.desc="minute",v.count=l,v.interval=ld.every(1),v.formatter=r.minute.formatter,v.offset=e=>ld.offset(e,-1),v.floor=ld.floor;else if(l/2<=h)v.type=Dd,v.desc="every 2 minute",v.count=l/2,v.interval=ld.every(2),v.formatter=r.minute.formatter,v.offset=e=>ld.offset(e,-2),v.floor=ld.floor;else if(l/5<=h)v.type=Dd,v.desc="every 5 minute",v.count=l/5,v.interval=ld.every(5),v.formatter=r.minute.formatter,v.offset=e=>ld.offset(e,-5),v.floor=ld.floor;else if(l/10<=h)v.type=Dd,v.desc="every 10 minute",v.count=l/10,v.interval=ld.every(10),v.formatter=r.minute.formatter,v.offset=e=>ld.offset(e,-10),v.floor=ld.floor;else if(l/15<=h)v.type=Dd,v.desc="every 15 minute",v.count=l/15,v.interval=ld.every(15),v.formatter=r.minute.formatter,v.offset=e=>ld.offset(e,-15),v.floor=ld.floor;else if(l/30<=h)v.type=Dd,v.desc="every 30 minute",v.count=l/30,v.interval=ld.every(30),v.formatter=r.minute.formatter,v.offset=e=>ld.offset(e,-30),v.floor=ld.floor;else if(c<=h)v.type=qd,v.desc="hour",v.count=c,v.interval=ud.every(1),v.formatter=r.minute.formatter,v.offset=e=>ud.offset(e,-1),v.floor=ud.floor;else if(c/2<=h)v.type=qd,v.desc="every 2 hour",v.count=c/2,v.interval=ud.every(2),v.formatter=r.minute.formatter,v.offset=e=>ud.offset(e,-2),v.floor=ud.floor;else if(c/3<=h)v.type=qd,v.desc="every 3 hour",v.count=c/3,v.interval=ud.every(3),v.formatter=r.minute.formatter,v.offset=e=>ud.offset(e,-3),v.floor=ud.floor;else if(c/6<=h)v.type=qd,v.desc="every 6 hour",v.count=c/6,v.interval=ud.every(6),v.formatter=r.minute.formatter,v.offset=e=>ud.offset(e,-6),v.floor=ud.floor;else if(c/12<=h||o)v.type=qd,v.desc="every 12 hour",v.count=c/12,v.interval=ud.every(12),v.formatter=r.minute.formatter,v.offset=e=>ud.offset(e,-12),v.floor=ud.floor;else if(u<=g)v.type=zd,v.desc="day",v.count=u,v.interval=md.every(1),v.formatter=r.date.formatter,v.offset=e=>md.offset(e,-1),v.floor=md.floor;else if(u/2<=g)v.type=zd,v.desc="every 2 day",v.count=u/2,v.interval=md.every(2),v.formatter=r.date.formatter,v.offset=e=>md.offset(e,-2),v.floor=md.floor;else if(u/3<=g)v.type=zd,v.desc="every 3 day",v.count=u/3,v.interval=md.every(3),v.formatter=r.date.formatter,v.offset=e=>md.offset(e,-3),v.floor=md.floor;else if(d<=g)v.type=zd,v.desc="week",v.count=d,v.interval=Md.every(1),v.formatter=r.date.formatter,v.offset=e=>Md.offset(e,-1),v.floor=md.floor;else if(d/2<=g)v.type=zd,v.desc="every 2 week",v.count=d/2,v.interval=Md.every(2),v.formatter=r.date.formatter,v.offset=e=>Md.offset(e,-2),v.floor=md.floor;else if(m<=g)v.type=$d,v.desc="month",v.count=m,v.interval=Nd.every(1),v.formatter=r.date.formatter,v.offset=e=>Nd.offset(e,-1),v.floor=md.floor;else if(m/3<=g)v.type=$d,v.desc="quarter",v.count=m/3,v.interval=Nd.every(3),v.formatter=r.date.formatter,v.offset=e=>Nd.offset(e,-3),v.floor=md.floor;else if(m/6<=g)v.type=$d,v.desc="half year",v.count=m/6,v.interval=Nd.every(6),v.formatter=r.date.formatter,v.offset=e=>Nd.offset(e,-6),v.floor=md.floor;else if(p<=y)v.type=Fd,v.desc="year",v.count=p,v.interval=Id.every(1),v.formatter=r.year.formatter,v.offset=e=>Id.offset(e,-1),v.floor=Id.floor;else if(p/2<=y)v.type=Fd,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>Id.offset(e,-2),v.floor=Id.floor;else if(p/5<=y)v.type=Fd,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>Id.offset(e,-5),v.floor=Id.floor;else if(p/10<=y)v.type=Fd,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>Id.offset(e,-10),v.floor=Id.floor;else{const e=Math.max(1,Math.floor(p/y));v.type=Fd,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>Id.offset(t,-e),v.floor=Id.floor}return v}(s,l,n,t.all(),r,a),o.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 m=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 p=[];if(!i&&u.type<=qd){const n=t.getFormat("date"),r=e.ticks(md.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(md.offset(r[0],-1)),p=(r.length?r:[md.floor(s)]).map(((e,t,r)=>{const o=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+o),formatter:n.formatter}}))}return{inner:m,outer:p}}const _d=86400,Bd=1440,Hd={};function Vd(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function Ud(e,t,n){const{generator:r,anchor:o,clamp:i,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(i);const[l,c]=e.domain(),u=ki().domain([Xu(l),Xu(c)]);u.clamp(i),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let m;m="d3"===d.type?(e,o)=>jd({timeScale:u,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:Xu(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(Hd[[t,n,r,r,i]])return Hd[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=Xu(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,m=t/(o-r),p=m/1440,f=m/_d,h=366*m,g=3*m*30,y=a.second.width/f,v=a.minute.width/p,b=a.date.width/g,x=a.year.width/h;let S,E,M,C=0,w=0,O=null,T=null,k=null,R=null,A=null,N=null;const L={outer:[],inner:[]};for(y<1?(O=1,w=1/_d):y<2?(O=2,w=1/_d*2):y<5?(O=5,w=1/_d*5):y<10?(O=10,w=1/_d*10):y<30?(O=30,w=1/_d*30):v<1?(T=1,w=1/Bd):v<2?(T=2,w=1/Bd*2):v<5?(T=5,w=1/Bd*5):v<10?(T=10,w=.006944444444444445):v<30?(T=30,w=.020833333333333336):v<60?(k=1,w=1/24):v<120?(k=2,w=2/24):v<360?(k=6,w=.25):v<720?(k=12,w=.5):b<1/90?(w=1,R=1):b<2/90?(w=2,R=2):b<7/90?(w=7,R=7):b<31/90?(A=1,w=31):b<1?(A=3,w=90):x<1?(N=1,w=366):x<2?(N=2,w=732):x<5?(N=5,w=1826.25):(N=10,w=3652.5),E=Math.floor((d+n%1)/w);C<o;){M=E+1,S=N?Vd("year",[l+E*N,0,1],[l+M*N,0,1],a.year.formatter):A?Vd("month",[l,c+E*A,1],[l,c+M*A,1],a.date.formatter):R?Vd("day",[l,c,u+E*R],[l,c,u+M*R],a.date.formatter):k?Vd("hour",[l,c,u,0+E*k],[l,c,u,0+M*k],a.minute.formatter):T?Vd("minute",[l,c,u,0,0+E*T],[l,c,u,0,0+M*T],a.minute.formatter):Vd("second",[l,c,u,0,0,0+E*O],[l,c,u,0,0,0+M*O],a.second.formatter),C=Ju(S.start),L.inner.push(S);const e=Math.floor(C);if(!(i||N||A||R)){const t={type:"day",start:Xu(e),end:Xu(e+1),formatter:a.date.formatter,qStart:e};L.outer[L.outer.length-1]&&L.outer[L.outer.length-1].qStart===t.qStart||L.outer.push(t)}E++}return L.min=r,L.max=o,Hd[[t,n,r,r,i]]=L,L}(n,e,d.min,l,c,"T"===s.qType);const p={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===o?t.qStart:"end"===o?t.qEnd:(t.qStart+t.qEnd)/2;const i=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(i),{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)=>m(t,n)[a].map((t=>{let n;return n="start"===o?Ju(t.start):"end"===o?Ju(t.end):(Ju(t.start)+Ju(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:Ju(t.start),end:Ju(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const Yd=/t+/i;const Wd={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 Gd(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 Xd="continuousPan";var Kd={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=Pu,viewCache:o,viewState:i,definitionPath:a},s={}){const{engineFetcherFactory:l=Eu,snapshotFetcherFactory:c=Cu,cacheFetcherFactory:u=Mu,cache:d={initial:{},merged:{}}}=s,m=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),p=c({layoutService:t,viewCache:o}),f=u({cache:d}),h=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){var n,r;({initialMin:y,initialMax:v}=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])),o.set("continuousMin",y),o.set("continuousMax",v),o.set("minimiumZoomSpan",(n=y,r=v,Math.max(1e-6,(r-n)*Nu))),g=t.meta.isSnapshot?p:m,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=p.getSnapshotData()),i.preventSet("zoom",{min:y,max:v})},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 g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=Tu(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=>ku(y,v,e))).then((e=>this.updateLayout(e))).catch(h)},fetch:(e,t)=>g.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,o=[],i=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?o.push(e[t]):a.qNum>r&&i.push(e[t])}return[...o,...t,...i]}(e.qMatrix,t.qDataPages[n].qMatrix),o=Tu(e.qArea,r);return{...e,qArea:o,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}))),o=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,i=e.qAxis.length;t<i;t++){const i=e.qAxis[t],a=n.indexOf(i.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=i.qTicks.length;n<r;n++){const r=i.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}o[a].qTicks=[...s,...o[a].qTicks,...l]}}return{qAxis:o}}(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=>ku(e,t,n))).catch(h),fetchFromCache:(e,t)=>f.fetch(e,t).then((n=>ku(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return me({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return me({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Iu(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 o(e,n,o){return r[e](n,o).then((e=>(r.updateLayout(e),t(),e)))}const i=w(((e,t)=>o("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):o("fetchFromCache",e,t).then((n=>(i(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(o,i)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(o.max-o.min)<r?i:{min:Math.min(o.max,Math.max(t,o.min)),max:Math.max(o.min,Math.min(n,o.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:o=!1,targetKey:i}){const a=e.get("continuousMin"),s=e.get("continuousMax");return O(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===i))[0])(e);if(l){const i=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=o?1-i:i,{min:u,max:d}=t.get("zoom"),m=Math.abs(d-u),p=m-(r>0?Au:Ru)*m,f=u+p*c,h=d-p*(1-c),g=f<a?a-f:0,y=h>s?h-s:0;t.set("zoom",{min:Math.max(f-y,a),max:Math.min(h+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o}){return{type:"Pan",key:"continuous:pan",options:{event:Xd,pointers:1,threshold:10,enable(r,o){return this.started===Xd||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{[`${Xd}start`](n){n.preventDefault(),this.started=Xd;const{min:o,max:i}=r.get("zoom");this[Xd]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},[`${Xd}move`](e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[Xd],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,o.get("continuousMax")-t),max:Math.max(i+s*t,o.get("continuousMin")+t)})},[`${Xd}end`](e){e.preventDefault(),this.started=!1},[`${Xd}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:Du,timeAxis:ju},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((o=>{const i=e[o],a=typeof i;"function"===a?r[o]=i(n):"object"!==a||Array.isArray(i)?r[o]="undefined"===a?t[o]:i:r[o]=me(!0,{},t[o],i)})),r}(t,Wd,n),{qAxis:o}=r,i=yr(),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,o);let c,u,d=[];const m=function(e){return Number.isNaN(+e)?NaN:i(e)};m.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),i=n[r.ticks.level];if(Number.isNaN(+i)||(d=u.transform(o[i].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=u.transform(o[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===i&&(d=u.generate(e,n.isDayOrShorter)),d},m.invert=e=>i.invert(e),m.domain=e=>Array.isArray(e)?i.domain(e):i.domain(),m.range=e=>Array.isArray(e)?i.range(e):i.range(),m.norm=e=>(Gd(a,m),a.instance(e)),m.normInvert=e=>(Gd(a,m),a.instance.invert(e)),m.copy=()=>e(t,n),m.clamp=(e=!0)=>(i.clamp(e),i.clamp()),m.min=()=>Math.min(s,l),m.max=()=>Math.max(s,l),i.range(r.invert?[1,0]:[0,1]),i.domain([s,l]),a.invert=r.invert;const p=function(e){const t={},{measureText:n,fn:r,localeInfo:o}=e.formatter,i={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 o&&Yd.test(o.qTimestampFmt)&&(i.minute.pattern+=" tt",i.second.pattern+=" tt"),i.date.pattern=o&&o.qDateFmt?o.qDateFmt:i.date.pattern,Object.keys(i).forEach((e=>{i[e].formatter=r(i[e].pattern),i[e].width=Math.max(i[e].width,n(i[e].formatter(41000.2343433)).width+16)})),t.getFormat=e=>i[e],t.all=()=>i,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return i.date;const r=Xu(t[0].data.start),o=Xu(t[n-1].data.start);return md.count(r,o)/n>=1?i.date:ud.count(r,o)/n>0?i.minute:ld.count(r,o)/n>0?i.second:i.date},t}(r);return u=Ud(i.copy(),r,p),c=Gu({qAxis:o,measureText:r.formatter.measureText,reqAutoFitWidth:2*p.getFormat("minute").width,cache:r.cache,scale:m}),m.data=()=>({fields:[{formatter:m.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:E(n,"fields.0.raw",(()=>({})))}]}),m.formatter=()=>p.getFormatFromTicks(d).formatter,m}}};const Jd=e=>e.meta.seriesComponentKeys[0],Zd=(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()}};function Qd({chart:e,models:t,actions:n,viewState:r,viewCache:o,environment:i}){const{event:{onZoom:a}}=Kd,{layoutService:s,seriesModel:l}=t,c=Jd(l),u=s.meta.isContinuous?a({chart:e,viewState:r,viewCache:o},{rtl:"rtl"===i.options.direction,threshold:50,targetKey:c}):()=>{};return{type:"native",events:{wheel(t){const r={x:t.clientX,y:t.clientY},o=e.componentsFromPoint(r);if(n.interact.enabled()){const[e]=o.filter((e=>e.key===Ya.COMPONENT.LEGEND_CATEGORICAL));Zd(t,e)}if(n.scroll.enabled()){const[e]=o.filter((e=>e.key===c));e&&(u(r,Math.sign(-t.deltaY)),t.preventDefault())}}}}}const em="continuousPinchZoom";function tm({chart:e,models:t,environment:n,viewState:r,viewCache:o,actions:i,selectables:a}){const s=Kd.interactions.areaPan,{layoutService:l,dockService:c,discreteModel:u,colorService:d,tooltipService:m}=t,p="rtl"===n.options.direction,f=m.getInteractions(),h=function({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...Ps({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:Ds({componentKey:e,chart:t,actions:n,layoutService:i})}}({componentKey:"scrollbar",chart:e,actions:i,viewState:r,viewCache:o,discrete:u,layoutService:l,dockService:c,rtl:p}),g={type:"hammer",enable:!0,gestures:[...d.custom.legendInteractions(),...a.gestures.sort(((e,t)=>(t.prio||0)-(e.prio||0))),...h.gestures,...f.gestures]},y=[Qd({chart:e,models:t,actions:i,viewState:r,viewCache:o,environment:n}),h.native,f.native];return l.meta.isDiscrete&&(g.gestures.push(...u.interactions.gestures),y.push(u.interactions.native)),l.meta.isContinuous&&g.gestures.push(s({targetKey:Jd(t.seriesModel),chart:e,actions:i,viewState:r,viewCache:o}),function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o,rtl:i}){const a={last:0},s=Kd.event.onZoom({viewCache:o,viewState:r,chart:t},{threshold:100,rtl:i,targetKey:e});return{type:"Pinch",key:"continuous:pinch-zoom",options:{event:em,pointers:2,threshold:0,enable:(r,o)=>!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))},events:{[`${em}start`](e){a.last=e.scale,e.preventDefault()},[`${em}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:Jd(t.seriesModel),chart:e,actions:i,viewState:r,viewCache:o,rtl:p})),[g,...y]}const nm=({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}}}),rm="lasso",om=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:rm,enable(e,n){if(this.started===rm||!n)return!0;if(!o.actions.select.enabled()||!o.actions.lasso.enabled()||!o.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!==rm&&(o.actions.select.emit("start",rm),this.chart.component(e).emit("lassoStart",t),this.started=rm)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),o.actions.select.emit("end",rm),"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});const im=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:o="tap"},i)=>{let a;const s=i.customTooltipModel?i.customTooltipModel.utils:void 0,l=s?i.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:o,interval:10,pointers:1,enable(t,n){return!n||!(!i.actions.select.enabled()&&!i.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:{[o](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}(t,this.chart),c=i.hitRadius?i.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=i.shapesAt?i.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),m=this.chart.component("tooltip"),p="mouse"!==t.pointerType&&m&&m.show;if(!i.isLocked(a)&&!i.tooltipOnly&&i.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,i.actions.select.brushSelectionIncludeMax=!1,i.actions.select.emit("start",o,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,i.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),i.actions.select.emit("end",o),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:i.largeDataService,chart:this.chart})}}if(m&&i.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=i;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,m,{nodes:n,opts:i,customTooltipModel:e})}else m.emit("show",t,{nodes:d})}else p&&m.emit("hide")}}}};const am=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},o)=>({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&&(!!o.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 sm=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:o},i,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:o,options:{event:e,enable(r,o){if(this.started===e||!o)return!0;if(!i.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:o.center.x,y:o.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}-`))}(o,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),i.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 i.updateOnMove&&i.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),i.actions.select.emit("end",e),this.started=!1,"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});function lm(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:o,targetFillSelector:i,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:m}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:m?{bubbleEnd(){m()}}:{},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:o,fillSelector:i,fill:"rgba(82,204,82,0.2)"}}}}(e),r=sm(e,t,"range");return{interactions:[e.onEdited?am(e,t):null,r].filter(Boolean),components:[n]}}const cm=/axis|legend/,um=e=>e.some((e=>cm.test(e.type)));function dm({actions:e,models:t}){const{seriesModel:n,layoutService:r,colorService:o,flags:i}=t,a=r.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),s={targets:[`${Ya.COMPONENT.BAR}-${Wa.AXIS.PRIMARY}`,`${Ya.COMPONENT.BAR}-${Wa.AXIS.SECONDARY}`,...n.query.series(Wa.TYPE.MARKER).map((e=>Nl(Ya.COMPONENT.MARKER,e))),...n.query.series(Wa.TYPE.LINE).map((e=>Nl(Ya.COMPONENT.POINT,e))),Ya.COMPONENT.AXIS.MAJOR,Ya.COMPONENT.AXIS_OVERLAY.TIME_INNER,Ya.COMPONENT.AXIS_OVERLAY.TIME_OUTER,Ya.COMPONENT.AXIS_OVERLAY.CONTINUOUS,Ya.COMPONENT.LEGEND_CATEGORICAL],components:(e,t)=>{const[n]=t,{key:r}=n,o={key:r,action:e.srcEvent.ctrlKey||a?"set":"toggle",contexts:["selection"]};return-1===[Ya.COMPONENT.AXIS.MAJOR,Ya.COMPONENT.AXIS_OVERLAY.TIME_INNER,Ya.COMPONENT.AXIS_OVERLAY.TIME_OUTER,Ya.COMPONENT.AXIS_OVERLAY.CONTINUOUS,Ya.COMPONENT.LEGEND_CATEGORICAL].indexOf(r)&&(o.data=["selectionDimension"]),[o]}},l={actions:e,isLocked:e=>e.some((e=>"legend-cat"===e.type))?o.isSelectionLocked({isMeasureSelectionLocked:r.meta.isDimensionLocked}):r.meta.isDimensionLocked,hitRadius:e=>um(e)?0:3,debouncer:w,flags:i};return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[im(e,t)],components:[]}}(s,l)}function mm({actions:e,models:t}){const{layoutService:n,dockService:r,seriesModel:o}=t,{isDiscrete:i,isDimensionLocked:a}=n.meta;if(!i||a)return!1;const s=[...o.meta.seriesComponentKeys,Ya.COMPONENT.AXIS.MAJOR];return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:o,dock:i}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"inside"},target:{components:o,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[sm(e,t,"area")],components:[n]}}({eventName:"discreteRange",key:"discrete-range-brush",components:[{key:s[0],contexts:["selection"],action:"set",data:["selectionDimension"]}],targets:s,fillTargets:[Ya.COMPONENT.AXIS.MAJOR],dock:r.meta.major.dock},{actions:e})}const pm={components:[],interactions:[]};function fm({actions:e,chart:t,models:n,isUnsupportedFeature:r}){const o=function({actions:e,models:t,isUnsupportedFeature:n}){const{dockService:r,seriesModel:o,layoutService:i}=t;return!(i.meta.isDimensionLocked||i.meta.isBarSeriesStacked||null!=n&&n("rangeSelections"))&&lm({eventName:"minorRange",key:"minor-range-brush",targets:[Ya.COMPONENT.AXIS.MINOR.PRIMARY,`${Ya.COMPONENT.BAR}-${Wa.AXIS.PRIMARY}`,...o.query.series(Wa.TYPE.MARKER).filter((e=>e.isPrimary)).map((e=>Nl(Ya.COMPONENT.MARKER,e))),...o.query.series(Wa.TYPE.LINE).filter((e=>e.isPrimary)).map((e=>Nl(Ya.COMPONENT.POINT,e)))],fillTargets:[Ya.COMPONENT.AXIS.MINOR.PRIMARY],dock:r.meta.minor.dock,scale:Ya.SCALE.MINOR.PRIMARY,onEdited(){e.select.emit("end","minorRange")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||pm,i=function({actions:e,models:t,isUnsupportedFeature:n}){const{dockService:r,seriesModel:o,layoutService:i}=t;return!(i.meta.isDimensionLocked||i.meta.isBarSeriesStacked||null!=n&&n("rangeSelections"))&&lm({eventName:"minorRange-secondary",key:"minor-secondary-range-brush",targets:[Ya.COMPONENT.AXIS.MINOR.SECONDARY,`${Ya.COMPONENT.BAR}-${Wa.AXIS.SECONDARY}`,...o.query.series(Wa.TYPE.MARKER).filter((e=>!e.isPrimary)).map((e=>Nl(Ya.COMPONENT.MARKER,e))),...o.query.series(Wa.TYPE.LINE).filter((e=>!e.isPrimary)).map((e=>Nl(Ya.COMPONENT.POINT,e)))],fillTargets:[Ya.COMPONENT.AXIS.MINOR.SECONDARY],dock:r.meta.minorSecondary.dock,scale:Ya.SCALE.MINOR.SECONDARY,onEdited(){e.select.emit("end","minorRange-secondary")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||pm,a=mm({actions:e,models:n})||pm,s=function({actions:e,chart:t,models:n}){const{layoutService:r,dockService:o,seriesModel:i}=n,{isContinuous:a,isTime:s}=r.meta;if(!a)return!1;const l=s?[Ya.COMPONENT.AXIS_OVERLAY.TIME_INNER,Ya.COMPONENT.AXIS_OVERLAY.TIME_OUTER]:[Ya.COMPONENT.AXIS_OVERLAY.CONTINUOUS];return lm({eventName:"continuousRange",key:"continuous-range-brush",targets:[`${Ya.COMPONENT.BAR}-${Wa.AXIS.PRIMARY}`,`${Ya.COMPONENT.BAR}-${Wa.AXIS.SECONDARY}`,...i.query.series(Wa.TYPE.MARKER).map((e=>Nl(Ya.COMPONENT.MARKER,e))),...i.query.series(Wa.TYPE.LINE).map((e=>Nl(Ya.COMPONENT.POINT,e))),...l],fillTargets:l,dock:o.meta.major.dock,scale:s?Ya.SCALE.MAJOR_INNER:Ya.SCALE.MAJOR,observeBrush:!0,multiple:!0,toLabel({datum:e,data:n,scale:r}){const o=s?r.formatter():t.formatter(Ya.FORMATTER.PRIMARY),i=t.scale(Ya.SCALE.MAJOR).max(),a=t.brushSelectionIncludeMax&&e===i;return`${e!==Math.max(...n)||a?"":"<"}${o(e)}`}},{actions:e})}({actions:e,chart:t,models:n})||pm,l=function({actions:e,models:t}){const{colorService:n,layoutService:r}=t,[o]=n.custom.legendComponents(),i=n.custom.wrappedScales(),{isDimensionLocked:a}=r.meta;if(a||!o)return!1;const s=`${Ya.SCALE.COLOR}Range`,{type:l,key:c}=o,u=i[s];return!("legend-seq"!==l||!u||u.min>=u.max)&&lm({eventName:"legendRange",key:"legend-range-brush",targets:[c],fillTargets:[c],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:o.layout.dock,scale:s,bubblesPlacement:"outside",onEdited:()=>{e.select.emit("end","legendRange")}},{actions:e})}({actions:e,models:n})||pm;return{components:[...o.components,...i.components,...a.components,...s.components,...l.components],interactions:[...o.interactions,...i.interactions,...a.interactions,...s.interactions,...l.interactions]}}function hm({actions:e,models:t}){const{layoutService:n,seriesModel:r}=t,{seriesComponentKeys:o}=r.meta;if(n.meta.isDimensionLocked)return{components:[],interactions:[]};const i={key:"lasso",componentTargetKey:o[0],components:o.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=nm(n);return{interactions:[om(n,t)],components:[r]}}(i,{actions:e})}function gm({picasso:e,chart:t,models:n,environment:r,flags:o,viewState:i,viewCache:a,actions:s,isUnsupportedFeature:l}){const{colorService:c,pluginService:u}=n,d=n.layoutService.getLayout(),{options:m}=r,p=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:m}),f=(h={logicalSize:p,minCenterRatio:0},{layoutModes:he.getLayoutModes(),center:void 0!==h.minCenterRatio?{minWidthRatio:h.minCenterRatio,minHeightRatio:h.minCenterRatio}:void 0,logicalSize:h.logicalSize?{align:.5,preserveAspectRatio:!0,...h.logicalSize}:void 0});var h;const g=function({chart:e,models:t,environment:n,flags:r,viewState:o,viewCache:i,actions:a}){const{colorService:s,layoutService:l,dockService:c,tooltipService:u,disclaimerService:d}=t,m=function({environment:e,models:t}){const{translator:n,options:r}=e,{themeService:o,disclaimerService:i}=t,a=i.getDisclaimer();if(!a)return!1;const{fontFamily:s}=o.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()?[m]:[...Yc({models:t}),...vl({models:t,flags:r}),..._c({chart:e,models:t,environment:n,flags:r,viewState:o,viewCache:i}),cu({models:t,environment:n}),...Cl({models:t,environment:n,flags:r}),...Kc({models:t,environment:n,actions:a,flags:r}),...Qc({models:t,environment:n,actions:a,viewCache:i,flags:r}),Li({viewState:o,viewCache:i,layoutService:l,dockService:c}),...iu({models:t}),...au({chart:e,models:t,environment:n}),eu({models:t,environment:n,viewState:o,viewCache:i}),...s.custom.legendComponents(),su(t),...ou({chart:e,models:t,viewState:o,viewCache:i,environment:n}),...u.getComponents(),m].filter(Boolean)}({chart:t,models:n,environment:r,flags:o,viewState:i,viewCache:a,actions:s}),y=function({actions:e,chart:t,models:n,isUnsupportedFeature:r}){const{layoutService:o}=n,i=o.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),a=dm({actions:e,models:n});if(i)return{components:[...a.components],gestures:[...a.interactions]};const s=fm({actions:e,chart:t,models:n,isUnsupportedFeature:r}),l=hm({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}),v=u.extendComponents([...g,...y.components]);return{collections:rl({models:n}),scales:hl({picasso:e,models:n,viewState:i,viewCache:a,environment:r}),components:v,formatters:uu({models:n}),interactions:tm({chart:t,models:n,environment:r,viewState:i,viewCache:a,actions:s,selectables:y}),strategy:f,palettes:c.getPalettes()}}const ym=({picasso:e,chart:t,models:n,environment:r,flags:a,viewState:s,viewCache:l,actions:c,isUnsupportedFeature:u})=>{const{width:d,height:m}=o(),[,p]=i((async()=>{if(!(null!=t&&t.update&&n&&r&&s))return;const{colorService:o,discreteModel:i,dockService:p,layoutService:f,refLineModel:h,animationsModel:g}=n;function y(){t.update({settings:gm({picasso:e,chart:t,models:n,environment:r,flags:a,viewState:s,viewCache:l,actions:c,isUnsupportedFeature:u})})}p.update({width:d,height:m}),o.custom.updateLegend(),h.update({picasso:e,chart:t,models:n,environment:r,viewState:s,viewCache:l,actions:c});const v=f.getDataPages();g.meta.isSizeChanging=!0,f.setDataPages([]),y(),f.setDataPages(v),f.meta.isContinuous||await i.command.initialize(),y()}),[d,m]);if(p)throw p},vm=[Ya.COMPONENT.AXIS_TITLE.MAJOR,Ya.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,Ya.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,Ya.COMPONENT.GRID_LINE,Ya.COMPONENT.ZERO_LINE],bm=({models:{layoutService:e,fieldModel:t,appLayoutModel:n}})=>({type:"q",key:Ya.DATA.MAIN,data:e.getHyperCube(),config:{virtualFields:t.virtuals,localeInfo:n.qLocaleInfo}}),xm=({models:{layoutService:e,fieldModel:t,continuousModel:n,appLayoutModel:r}})=>e.meta.isContinuous?[{type:"q",key:Ya.DATA.REDUCED,data:n.getInitialCube(),config:{virtualFields:t.virtuals,localeInfo:r.qLocaleInfo}}]:[];const Sm={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Em(e){return Sm[e]||e}function Mm(e){return function(t,n,r){let o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=Em(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((t=>{const n=Em(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,o=e,i={chart:t,mediator:n,settings:o},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}const Cm={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},wm={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},Om={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},Tm={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},km="m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z",Rm={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},Am={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"},Nm="N",Lm="H",Im="C",Pm={N:void 0,H:Cm,C:Om},Dm=(e,t)=>{switch(e.qGrouping){case Nm:return;case Lm:return{path:Cm,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case Im:return{path:t?wm:Om,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function qm(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=$i.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function zm(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=me(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),qm(e,a,c)}))}function $m(e){return e.qGrouping===Nm?e.qFallbackTitle||"":e.title||""}const Fm=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))},jm=async(e,t,n,r,o)=>{const i=await Fm(e,n),a=n.filter((e=>!i.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const i=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===Nm&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const o=e.qDef.qLabelExpression;if(o)return t.evaluate(o);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(n,e,r,i),s=(null==i?void 0:i.qDim.qGrouping)||n.qDef.qGrouping,l=Pm[s],c=s!==Nm;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){zm(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function _m({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===Nm,d=l.qGrouping===Lm;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await(async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case Lm:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.drillUp(o,r,e.qGroupPos-i)}})));return{id:e.cId,icon:Cm,groupItem:!0,title:e.title,selected:!1,children:n}}case Im:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=null!=t&&t.setActiveField?e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}}))):[];return{id:e.cId,icon:Om,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:$m(e)}}})(l,o,a,e),n=c?await jm(a,o,r,i,s):[];return(u||d||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function Bm(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Lm?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:Dm(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===Nm?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:$m(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function Hm({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await Fm(n,t),u=t.filter((e=>!o.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){zm(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function Vm(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function Um(){return Um=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},Um.apply(null,arguments)}var Ym={exports:{}};function Wm(){}function Gm(){}Gm.resetWarningCache=Wm;Ym.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Gm,resetWarningCache:Wm};return n.PropTypes=n,n}();var Xm=te(Ym.exports),Km={black:"#000",white:"#fff"},Jm="#e57373",Zm="#f44336",Qm="#d32f2f",ep="#ff4081",tp="#f50057",np="#c51162",rp="#7986cb",op="#3f51b5",ip="#303f9f",ap="#64b5f6",sp="#2196f3",lp="#1976d2",cp="#81c784",up="#4caf50",dp="#388e3c",mp="#ffb74d",pp="#ff9800",fp="#f57c00",hp={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function gp(){return gp=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},gp.apply(null,arguments)}function yp(e){return yp="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},yp(e)}function vp(e){return e&&"object"===yp(e)&&e.constructor===Object}function bp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?gp({},e):e;return vp(e)&&vp(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(vp(t[o])&&o in e?r[o]=bp(e[o],t[o],n):r[o]=t[o])})),r}function xp(e){var t=function(e,t){if("object"!=yp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=yp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yp(t)?t:t+""}function Sp(e,t,n){return(t=xp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ep(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function Mp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Cp(e){if(e.type)return e;if("#"===e.charAt(0))return Cp(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Ep(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function wp(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Op(e){var t="hsl"===(e=Cp(e)).type?Cp(function(e){var t=(e=Cp(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),wp({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Tp(e,t){return e=Cp(e),t=Mp(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,wp(e)}function kp(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}function Rp(e,t){if(null==e)return{};var n,r,o=kp(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ap=["xs","sm","md","lg","xl"];function Np(e,t,n){var r;return gp({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),gp({paddingLeft:t(2),paddingRight:t(2)},n,Sp({},e.up("sm"),gp({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Sp(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Sp(r,e.up("sm"),{minHeight:64}),r)},n)}var Lp={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Km.white,default:hp[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ip={text:{primary:Km.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:hp[800],default:"#303030"},action:{active:Km.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 Pp(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Cp(e),t=Mp(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return wp(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Cp(e),t=Mp(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return wp(e)}(e.main,i)))}function Dp(e){var t=e.primary,n=void 0===t?{light:rp,main:op,dark:ip}:t,r=e.secondary,o=void 0===r?{light:ep,main:tp,dark:np}:r,i=e.error,a=void 0===i?{light:Jm,main:Zm,dark:Qm}:i,s=e.warning,l=void 0===s?{light:mp,main:pp,dark:fp}:s,c=e.info,u=void 0===c?{light:ap,main:sp,dark:lp}:c,d=e.success,m=void 0===d?{light:cp,main:up,dark:dp}:d,p=e.type,f=void 0===p?"light":p,h=e.contrastThreshold,g=void 0===h?3:h,y=e.tonalOffset,v=void 0===y?.2:y,b=Rp(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Op(e),r=Op(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Ip.text.primary)>=g?Ip.text.primary:Lp.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=gp({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Ep(4,t));if("string"!=typeof e.main)throw new Error(Ep(5,JSON.stringify(e.main)));return Pp(e,"light",n,v),Pp(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},E={dark:Ip,light:Lp};return bp(gp({common:Km,type:f,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(m),grey:hp,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},E[f]),b)}function qp(e){return Math.round(1e5*e)/1e5}function zp(e){return qp(e)}var $p={textTransform:"uppercase"},Fp='"Roboto", "Helvetica", "Arial", sans-serif';function jp(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?Fp:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,m=void 0===d?500:d,p=n.fontWeightBold,f=void 0===p?700:p,h=n.htmlFontSize,g=void 0===h?16:h,y=n.allVariants,v=n.pxToRem,b=Rp(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},E=function(e,t,n,r,i){return gp({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===Fp?{letterSpacing:"".concat(qp(r/t),"em")}:{},i,y)},M={h1:E(l,96,1.167,-1.5),h2:E(l,60,1.2,-.5),h3:E(u,48,1.167,0),h4:E(u,34,1.235,.25),h5:E(u,24,1.334,0),h6:E(m,20,1.6,.15),subtitle1:E(u,16,1.75,.15),subtitle2:E(m,14,1.57,.1),body1:E(u,16,1.5,.15),body2:E(u,14,1.43,.15),button:E(m,14,1.75,.4,$p),caption:E(u,12,1.66,.4),overline:E(u,12,2.66,1,$p)};return bp(gp({htmlFontSize:g,pxToRem:S,round:zp,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:m,fontWeightBold:f},M),b,{clone:!1})}function _p(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var Bp=["none",_p(0,2,1,-1,0,1,1,0,0,1,3,0),_p(0,3,1,-2,0,2,2,0,0,1,5,0),_p(0,3,3,-2,0,3,4,0,0,1,8,0),_p(0,2,4,-1,0,4,5,0,0,1,10,0),_p(0,3,5,-1,0,5,8,0,0,1,14,0),_p(0,3,5,-1,0,6,10,0,0,1,18,0),_p(0,4,5,-2,0,7,10,1,0,2,16,1),_p(0,5,5,-3,0,8,10,1,0,3,14,2),_p(0,5,6,-3,0,9,12,1,0,3,16,2),_p(0,6,6,-3,0,10,14,1,0,4,18,3),_p(0,6,7,-4,0,11,15,1,0,4,20,3),_p(0,7,8,-4,0,12,17,2,0,5,22,4),_p(0,7,8,-4,0,13,19,2,0,5,24,4),_p(0,7,9,-4,0,14,21,2,0,5,26,4),_p(0,8,9,-5,0,15,22,2,0,6,28,5),_p(0,8,10,-5,0,16,24,2,0,6,30,5),_p(0,8,11,-5,0,17,26,2,0,6,32,5),_p(0,9,11,-5,0,18,28,2,0,7,34,6),_p(0,9,12,-6,0,19,29,2,0,7,36,6),_p(0,10,13,-6,0,20,31,3,0,8,38,7),_p(0,10,13,-6,0,21,33,3,0,8,40,7),_p(0,10,14,-6,0,22,35,3,0,8,42,7),_p(0,11,14,-7,0,23,36,3,0,9,44,8),_p(0,11,15,-7,0,24,38,3,0,9,46,8)],Hp={borderRadius:4};function Vp(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 Up(e,t){if(e){if("string"==typeof e)return Vp(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)?Vp(e,t):void 0}}function Yp(e){return function(e){if(Array.isArray(e))return Vp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Up(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 Wp(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Up(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 Gp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var Xp={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)"},Kp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jp(e){return"".concat(Math.round(e),"ms")}var Zp={easing:Xp,duration:Kp,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Kp.standard:n,o=t.easing,i=void 0===o?Xp.easeInOut:o,a=t.delay,s=void 0===a?0:a;return Rp(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Jp(r)," ").concat(i," ").concat("string"==typeof s?s:Jp(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Qp={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ef(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=Rp(e,["breakpoints","mixins","palette","spacing","typography"]),d=Dp(a),m=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=Rp(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=Ap.indexOf(t);return r===Ap.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Ap[r+1]]?n[Ap[r+1]]:t)-a/100).concat(o,")")}return gp({keys:Ap,values:n,up:l,down:function(e){var t=Ap.indexOf(e)+1,r=n[Ap[t]];return t===Ap.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),p=Gp(s),f=bp({breakpoints:m,direction:"ltr",mixins:Np(m,p,o),overrides:{},palette:d,props:{},shadows:Bp,typography:jp(d,c),spacing:p,shape:Hp,transitions:Zp,zIndex:Qp},u),h=arguments.length,g=new Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return f=g.reduce((function(e,t){return bp(e,t)}),f)}var tf="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",nf=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function rf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==nf.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[tf]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function of(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var af="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},sf="object"===("undefined"==typeof window?"undefined":af(window))&&"object"===("undefined"==typeof document?"undefined":af(document))&&9===document.nodeType;function lf(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xp(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cf(e,t)}function uf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cf(e,t)}function df(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var mf={}.constructor;function pf(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(pf);if(e.constructor!==mf)return e;var t={};for(var n in e)t[n]=pf(e[n]);return t}function ff(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=pf(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var hf=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},gf=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=hf(e[n]," ");else t=hf(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function yf(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function vf(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function bf(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=yf(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var m in d){var p=d[m];null!=p&&(r&&(r+=l),r+=vf(m+":"+c+gf(p)+";",i))}}else for(var f in a){var h=a[f];null!=h&&(r&&(r+=l),r+=vf(f+":"+c+gf(h)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=vf(g+":"+c+gf(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),vf(""+e+c+"{"+r,--i)+vf("}",i)):r}var xf=/([[\].#*$><+~=|^:(),"'`\s])/g,Sf="undefined"!=typeof CSS&&CSS.escape,Ef=function(e){return Sf?Sf(e):e.replace(xf,"\\$1")},Mf=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Cf=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(df(df(o)),s),o.selectorText="."+Ef(o.id)),o}uf(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=gf(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?gp({},e,{allowEmpty:!0}):e;return bf(this.selectorText,this.style,n)},lf(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Mf),wf={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Cf(e,t,n)}},Of={indent:1,children:!0},Tf=/@([\w-]+)/,kf=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Tf);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Zf(gp({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Of);var t=yf(e).linebreak;if(null==e.indent&&(e.indent=Of.indent),null==e.children&&(e.children=Of.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Rf=/@container|@media|@supports\s+/,Af={onCreateRule:function(e,t,n){return Rf.test(e)?new kf(e,t,n):null}},Nf={indent:1,children:!0},Lf=/@keyframes\s+([\w-]+)/,If=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Lf);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:Ef(a(this,i)),this.rules=new Zf(gp({},n,{parent:this})),t)this.rules.add(s,t[s],gp({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Nf);var t=yf(e).linebreak;if(null==e.indent&&(e.indent=Nf.indent),null==e.children&&(e.children=Nf.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Pf=/@keyframes\s+/,Df=/\$([\w-]+)/g,qf=function(e,t){return"string"==typeof e?e.replace(Df,(function(e,n){return n in t?t[n]:e})):e},zf=function(e,t,n){var r=e[t],o=qf(r,n);o!==r&&(e[t]=o)},$f={onCreateRule:function(e,t,n){return"string"==typeof e&&Pf.test(e)?new If(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&zf(e,"animation-name",n.keyframes),"animation"in e&&zf(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return qf(e,r.keyframes);default:return e}}},Ff=function(e){function t(){return e.apply(this,arguments)||this}return uf(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?gp({},e,{allowEmpty:!0}):e;return bf(this.key,this.style,n)},t}(Mf),jf={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Ff(e,t,n):null}},_f=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=yf(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=bf(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return bf(this.at,this.style,e)},e}(),Bf=/@font-face/,Hf={onCreateRule:function(e,t,n){return Bf.test(e)?new _f(e,t,n):null}},Vf=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return bf(this.key,this.style,e)},e}(),Uf={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Vf(e,t,n):null}},Yf=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Wf={"@charset":!0,"@import":!0,"@namespace":!0},Gf={onCreateRule:function(e,t,n){return e in Wf?new Yf(e,t,n):null}},Xf=[wf,Af,$f,jf,Hf,Uf,Gf],Kf={process:!0},Jf={force:!0,process:!0},Zf=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=gp({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Ef(this.classes[d]));var m=ff(d,t,u);if(!m)return null;this.register(m);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,m),m},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=gp({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Cf?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof If&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Cf?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof If&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Kf);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Jf)}for(var u in s){var d=t.style[u],m=s[u];null==d&&d!==m&&t.prop(u,null,Jf)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=yf(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),Qf=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=gp({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Zf(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),eh=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),th=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=kp(t,["attached"]),o=yf(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},lf(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),nh=new th,rh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),oh="2f1acc6c3a606b082e5eef5e54414ffb";null==rh[oh]&&(rh[oh]=0);var ih=rh[oh]++,ah=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ih+o+t:i+n.key+"-"+ih+(o?"-"+o:"")+"-"+t}},sh=function(e){var t;return function(){return t||(t=e()),t}},lh=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ch=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=gf(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},uh=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},dh=function(e,t){return e.selectorText=t,e.selectorText===t},mh=sh((function(){return document.querySelector("head")}));function ph(e){var t=nh.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=mh(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var fh=sh((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),hh=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},gh=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},yh=function(){function e(e){this.getPropertyValue=lh,this.setProperty=ch,this.removeProperty=uh,this.setSelector=dh,this.hasInsertedRules=!1,this.cssRules=[],e&&nh.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=fh();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ph(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else mh().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=gh(n,t);if(!1===(o=hh(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=gh(n,t),l=hh(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Qf&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),vh=0,bh=function(){function e(e){this.id=vh++,this.version="10.10.0",this.plugins=new eh,this.options={id:{minify:!1},createGenerateId:ah,Renderer:sf?yh:null,plugins:[]},this.generateId=ah({minify:!1});for(var t=0;t<Xf.length;t++)this.plugins.use(Xf[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=gp({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===nh.index?0:nh.index+1);var r=new Qf(e,gp({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),nh.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=gp({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=ff(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),xh=function(e){return new bh(e)},Sh="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Eh(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Eh(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
8
8
|
/**
|
|
9
9
|
* A better abstraction over CSS.
|
|
10
10
|
*
|
|
11
11
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
12
12
|
* @website https://github.com/cssinjs/jss
|
|
13
13
|
* @license MIT
|
|
14
|
-
*/Sh();var Ch=Date.now(),wh="fnValues"+Ch,Th="fnStyle"+ ++Ch,Oh="@global",kh="@global ",Rh=function(){function e(e,t,n){for(var r in this.type="global",this.at=Oh,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Qf(yp({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ah=function(){function e(e,t,n){this.type="global",this.at=Oh,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,yp({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Nh=/\s*,\s*/g;function Lh(e,t){for(var n=e.split(Nh),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Ih(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Oh)return new Rh(e,t,n);if("@"===e[0]&&e.substr(0,8)===kh)return new Ah(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Oh]:null;if(o){for(var i in o)t.addRule(i,o[i],yp({},n,{selector:Lh(i,e.selector)}));delete r[Oh]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Oh){var i=Lh(o.substr(7),e.selector);t.addRule(i,r[o],yp({},n,{selector:i})),delete r[o]}}(e,t))}}}var Ph=/\s*,\s*/g,Dh=/&/g,qh=/\$([\w-]+)/g;function zh(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Ph),r=e.split(Ph),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Dh,a):a+" "+l}return o}function n(e,t,n){if(n)return yp({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=yp({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),m="@"===u[0];if(d||m){if(a=n(l,c,a),d){var p=t(u,l.selector);s||(s=e(c,i)),p=p.replace(qh,s);var f=l.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],yp({},a,{selector:p})):c.addRule(f,r[u],yp({},a,{selector:p}))}else m&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var $h=/[A-Z]/g,jh=/^ms-/,Fh={};function _h(e){return"-"+e.toLowerCase()}function Bh(e){if(Fh.hasOwnProperty(e))return Fh[e];var t=e.replace($h,_h);return Fh[e]=jh.test(t)?"-"+t:t}function Hh(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Bh(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Hh):t.fallbacks=Hh(e.fallbacks)),t}var Vh=Eh&&CSS?CSS.px:"px",Uh=Eh&&CSS?CSS.ms:"ms",Yh=Eh&&CSS?CSS.percent:"%";function Wh(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Gh=Wh({"animation-delay":Uh,"animation-duration":Uh,"background-position":Vh,"background-position-x":Vh,"background-position-y":Vh,"background-size":Vh,border:Vh,"border-bottom":Vh,"border-bottom-left-radius":Vh,"border-bottom-right-radius":Vh,"border-bottom-width":Vh,"border-left":Vh,"border-left-width":Vh,"border-radius":Vh,"border-right":Vh,"border-right-width":Vh,"border-top":Vh,"border-top-left-radius":Vh,"border-top-right-radius":Vh,"border-top-width":Vh,"border-width":Vh,"border-block":Vh,"border-block-end":Vh,"border-block-end-width":Vh,"border-block-start":Vh,"border-block-start-width":Vh,"border-block-width":Vh,"border-inline":Vh,"border-inline-end":Vh,"border-inline-end-width":Vh,"border-inline-start":Vh,"border-inline-start-width":Vh,"border-inline-width":Vh,"border-start-start-radius":Vh,"border-start-end-radius":Vh,"border-end-start-radius":Vh,"border-end-end-radius":Vh,margin:Vh,"margin-bottom":Vh,"margin-left":Vh,"margin-right":Vh,"margin-top":Vh,"margin-block":Vh,"margin-block-end":Vh,"margin-block-start":Vh,"margin-inline":Vh,"margin-inline-end":Vh,"margin-inline-start":Vh,padding:Vh,"padding-bottom":Vh,"padding-left":Vh,"padding-right":Vh,"padding-top":Vh,"padding-block":Vh,"padding-block-end":Vh,"padding-block-start":Vh,"padding-inline":Vh,"padding-inline-end":Vh,"padding-inline-start":Vh,"mask-position-x":Vh,"mask-position-y":Vh,"mask-size":Vh,height:Vh,width:Vh,"min-height":Vh,"max-height":Vh,"min-width":Vh,"max-width":Vh,bottom:Vh,left:Vh,top:Vh,right:Vh,inset:Vh,"inset-block":Vh,"inset-block-end":Vh,"inset-block-start":Vh,"inset-inline":Vh,"inset-inline-end":Vh,"inset-inline-start":Vh,"box-shadow":Vh,"text-shadow":Vh,"column-gap":Vh,"column-rule":Vh,"column-rule-width":Vh,"column-width":Vh,"font-size":Vh,"font-size-delta":Vh,"letter-spacing":Vh,"text-decoration-thickness":Vh,"text-indent":Vh,"text-stroke":Vh,"text-stroke-width":Vh,"word-spacing":Vh,motion:Vh,"motion-offset":Vh,outline:Vh,"outline-offset":Vh,"outline-width":Vh,perspective:Vh,"perspective-origin-x":Yh,"perspective-origin-y":Yh,"transform-origin":Yh,"transform-origin-x":Yh,"transform-origin-y":Yh,"transform-origin-z":Yh,"transition-delay":Uh,"transition-duration":Uh,"vertical-align":Vh,"flex-basis":Vh,"shape-margin":Vh,size:Vh,gap:Vh,grid:Vh,"grid-gap":Vh,"row-gap":Vh,"grid-row-gap":Vh,"grid-column-gap":Vh,"grid-template-rows":Vh,"grid-template-columns":Vh,"grid-auto-rows":Vh,"grid-auto-columns":Vh,"box-shadow-x":Vh,"box-shadow-y":Vh,"box-shadow-blur":Vh,"box-shadow-spread":Vh,"font-line-height":Vh,"text-shadow-x":Vh,"text-shadow-y":Vh,"text-shadow-blur":Vh});function Xh(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Xh(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Xh(o,t[o],n);else for(var i in t)t[i]=Xh(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Gh[e];return!a||0===t&&a===Vh?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Kh(e){void 0===e&&(e={});var t=Wh(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Xh(r,e[r],t);return e},onChangeValue:function(e,n){return Xh(n,e,t)}}}var Jh="",Zh="",Qh="",eg="",tg=lf&&"ontouchstart"in document.documentElement;if(lf){var ng={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},rg=document.createElement("p").style;for(var og in ng)if(og+"Transform"in rg){Jh=og,Zh=ng[og];break}"Webkit"===Jh&&"msHyphens"in rg&&(Jh="ms",Zh=ng.ms,eg="edge"),"Webkit"===Jh&&"-apple-trailing-word"in rg&&(Qh="apple")}var ig=Jh,ag=Zh,sg=Qh,lg=eg,cg=tg;var ug={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ig?"-webkit-"+e:ag+e)}},dg={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ig?ag+"print-"+e:e)}},mg=/[-\s]+(.)?/g;function pg(e,t){return t?t.toUpperCase():""}function fg(e){return e.replace(mg,pg)}function hg(e){return fg("-"+e)}var gg,yg={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ig){var n="mask-image";if(fg(n)in t)return e;if(ig+hg(n)in t)return ag+e}return e}},vg={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==sg||cg?e:ag+e)}},bg={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:ag+e)}},xg={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:ag+e)}},Sg={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ig||"ms"===ig&&"edge"!==lg?ag+e:e)}},Eg={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ig||"ms"===ig||"apple"===sg?ag+e:e)}},Mg={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ig?"WebkitColumn"+hg(e)in t&&ag+"column-"+e:"Moz"===ig&&("page"+hg(e)in t&&"page-"+e))}},Cg={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ig)return e;var n=e.replace("-inline","");return ig+hg(n)in t&&ag+n}},wg={supportedProperty:function(e,t){return fg(e)in t&&e}},Tg={supportedProperty:function(e,t){var n=hg(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ig+n in t?ag+e:"Webkit"!==ig&&"Webkit"+n in t&&"-webkit-"+e}},Og={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ig?""+ag+e:e)}},kg={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ig?ag+"scroll-chaining":e)}},Rg={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Ag={supportedProperty:function(e,t){var n=Rg[e];return!!n&&(ig+hg(n)in t&&ag+n)}},Ng={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Lg=Object.keys(Ng),Ig=function(e){return ag+e},Pg={supportedProperty:function(e,t,n){var r=n.multiple;if(Lg.indexOf(e)>-1){var o=Ng[e];if(!Array.isArray(o))return ig+hg(o)in t&&ag+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(ig+hg(o[0])in t))return!1;return o.map(Ig)}return!1}},Dg=[ug,dg,yg,vg,bg,xg,Sg,Eg,Mg,Cg,wg,Tg,Og,kg,Ag,Pg],qg=Dg.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),zg=Dg.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Wp(t.noPrefill)),e}),[]),$g={};if(lf){gg=document.createElement("p");var jg=window.getComputedStyle(document.documentElement,"");for(var Fg in jg)isNaN(Fg)||($g[jg[Fg]]=jg[Fg]);zg.forEach((function(e){return delete $g[e]}))}function _g(e,t){if(void 0===t&&(t={}),!gg)return e;if(null!=$g[e])return $g[e];"transition"!==e&&"transform"!==e||(t[e]=e in gg.style);for(var n=0;n<qg.length&&($g[e]=qg[n](e,gg.style,t),!$g[e]);n++);try{gg.style[e]=""}catch(e){return!1}return $g[e]}var Bg,Hg={},Vg={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ug=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Yg(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?_g(t):", "+_g(n);return r||(t||n)}function Wg(e,t){var n=t;if(!Bg||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Hg[r])return Hg[r];try{Bg.style[e]=n}catch(e){return Hg[r]=!1,!1}if(Vg[e])n=n.replace(Ug,Yg);else if(""===Bg.style[e]&&("-ms-flex"===(n=ag+n)&&(Bg.style[e]="-ms-flexbox"),Bg.style[e]=n,""===Bg.style[e]))return Hg[r]=!1,!1;return Bg.style[e]="",Hg[r]=n,Hg[r]}function Gg(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=_g(n);i&&i!==n&&(o=!0);var a=!1,s=Wg(i,yf(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===ig?e:"@"+ag+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Wg(t,yf(e))||e}}}function Xg(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}}function Kg(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=hf(e,{},n);return r[Th]=t,r},onProcessStyle:function(e,t){if(wh in t||Th in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[wh]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Th];i&&(o.style=i(e)||{});var a=o[wh];if(a)for(var s in a)o.prop(s,a[s](e),r)}},Ih(),zh(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Hh(e[t]);return e}return Hh(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Bh(t);return t===r?e:(n.prop(r,e),null)}},Kh(),"undefined"==typeof window?null:Gg(),Xg()]}}function Jg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=yp({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}lf&&(Bg=document.createElement("p"));var Zg=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},Qg=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},ey=function(e,t,n){e.get(t).delete(n)},ty=_.createContext(null);function ny(){return _.useContext(ty)}var ry,oy=Sh(Kg()),iy={disableGeneration:!1,generateClassName:of(),jss:oy,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},ay=_.createContext(iy);function sy(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=Ap(e,["children","injectFirst","disableGeneration"]),s=yp({},_.useContext(ay),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!ry){var l=document.head;ry=document.createComment("mui-inject-first"),l.insertBefore(ry,l.firstChild)}s.jss=Sh({plugins:Kg().plugins,insertionPoint:ry})}return _.createElement(ay.Provider,{value:s},t)}var ly=-1e9;var cy={};function uy(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Qg(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Zg(o.sheetsManager,i,r,s));var l=yp({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=Qg(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,yp({link:!1},l))).attach(),o.sheetsCache&&Zg(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Mh(d)}if(s.dynamicStyles){var m=o.jss.createStyleSheet(s.dynamicStyles,yp({link:!0},l));m.update(t),m.attach(),n.dynamicSheet=m,n.classes=Jg({baseClasses:s.staticSheet.classes,newClasses:m.classes}),c&&c.add(m)}else n.classes=s.staticSheet.classes;s.refs+=1}}function dy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?cy:i,s=Ap(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=yp({},o);return Object.keys(i).forEach((function(e){a[e]=xp(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:ly+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ny()||a,r=yp({},_.useContext(ay),s),i=_.useRef(),c=_.useRef();!function(e,t){var n,r=_.useRef([]),o=_.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),_.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return uy(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Qg(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(ey(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),_.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Jg({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function my(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=my(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function py(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=my(e))&&(r&&(r+=" "),r+=t);return r}var fy={exports:{}},hy={},gy="function"==typeof Symbol&&Symbol.for,yy=gy?Symbol.for("react.element"):60103,vy=gy?Symbol.for("react.portal"):60106,by=gy?Symbol.for("react.fragment"):60107,xy=gy?Symbol.for("react.strict_mode"):60108,Sy=gy?Symbol.for("react.profiler"):60114,Ey=gy?Symbol.for("react.provider"):60109,My=gy?Symbol.for("react.context"):60110,Cy=gy?Symbol.for("react.async_mode"):60111,wy=gy?Symbol.for("react.concurrent_mode"):60111,Ty=gy?Symbol.for("react.forward_ref"):60112,Oy=gy?Symbol.for("react.suspense"):60113,ky=gy?Symbol.for("react.suspense_list"):60120,Ry=gy?Symbol.for("react.memo"):60115,Ay=gy?Symbol.for("react.lazy"):60116,Ny=gy?Symbol.for("react.block"):60121,Ly=gy?Symbol.for("react.fundamental"):60117,Iy=gy?Symbol.for("react.responder"):60118,Py=gy?Symbol.for("react.scope"):60119;function Dy(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case yy:switch(e=e.type){case Cy:case wy:case by:case Sy:case xy:case Oy:return e;default:switch(e=e&&e.$$typeof){case My:case Ty:case Ay:case Ry:case Ey:return e;default:return t}}case vy:return t}}}function qy(e){return Dy(e)===wy}hy.AsyncMode=Cy,hy.ConcurrentMode=wy,hy.ContextConsumer=My,hy.ContextProvider=Ey,hy.Element=yy,hy.ForwardRef=Ty,hy.Fragment=by,hy.Lazy=Ay,hy.Memo=Ry,hy.Portal=vy,hy.Profiler=Sy,hy.StrictMode=xy,hy.Suspense=Oy,hy.isAsyncMode=function(e){return qy(e)||Dy(e)===Cy},hy.isConcurrentMode=qy,hy.isContextConsumer=function(e){return Dy(e)===My},hy.isContextProvider=function(e){return Dy(e)===Ey},hy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===yy},hy.isForwardRef=function(e){return Dy(e)===Ty},hy.isFragment=function(e){return Dy(e)===by},hy.isLazy=function(e){return Dy(e)===Ay},hy.isMemo=function(e){return Dy(e)===Ry},hy.isPortal=function(e){return Dy(e)===vy},hy.isProfiler=function(e){return Dy(e)===Sy},hy.isStrictMode=function(e){return Dy(e)===xy},hy.isSuspense=function(e){return Dy(e)===Oy},hy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===by||e===wy||e===Sy||e===xy||e===Oy||e===ky||"object"==typeof e&&null!==e&&(e.$$typeof===Ay||e.$$typeof===Ry||e.$$typeof===Ey||e.$$typeof===My||e.$$typeof===Ty||e.$$typeof===Ly||e.$$typeof===Iy||e.$$typeof===Py||e.$$typeof===Ny)},hy.typeOf=Dy,fy.exports=hy;var zy=fy.exports,$y={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},jy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_y={};function By(e){return zy.isMemo(e)?Fy:_y[e.$$typeof]||$y}_y[zy.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_y[zy.Memo]=Fy;var Hy=Object.defineProperty,Vy=Object.getOwnPropertyNames,Uy=Object.getOwnPropertySymbols,Yy=Object.getOwnPropertyDescriptor,Wy=Object.getPrototypeOf,Gy=Object.prototype;var Xy=function e(t,n,r){if("string"!=typeof n){if(Gy){var o=Wy(n);o&&o!==Gy&&e(t,o,r)}var i=Vy(n);Uy&&(i=i.concat(Uy(n)));for(var a=By(t),s=By(n),l=0;l<i.length;++l){var c=i[l];if(!(jy[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Yy(n,c);try{Hy(t,c,u)}catch(e){}}}}return t},Ky=te(Xy);function Jy(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=Ap(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(yp({theme:e},n))}}}:{root:t},l=dy(s,yp({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=_.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,m=Ap(t,["children","className","clone","component"]),p=py(l(t).root,c),f=m;if(n&&(o=f,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),f=a),u)return _.cloneElement(s,yp({className:py(s.props.className,p)},f));if("function"==typeof s)return s(yp({className:p},f));var h=d||e;return _.createElement(h,yp({ref:r,className:p},f),s)}));return Ky(c,e),c}}function Zy(e){var t=e.children,n=e.theme,r=ny(),o=_.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):yp({},e,t)}(r,n);return null!=e&&(e[nf]=null!==r),e}),[n,r]);return _.createElement(ty.Provider,{value:o},t)}var Qy=tf(),ev=function(e){var t=Jy(e);return function(e,n){return t(e,yp({defaultTheme:Qy},n))}};function tv(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=Ap(t,["defaultTheme","withTheme","name"]),l=a,c=dy(e,yp({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=_.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=Ap(e,["classes","innerRef"]),u=c(yp({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=ny()||r,a&&(d=af({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),_.createElement(n,yp({ref:s||t,classes:u},d))}));return Ky(u,n),u}}(e,yp({defaultTheme:Qy},t))}function nv(e){if("string"!=typeof e)throw new Error(Mp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function rv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function ov(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ov(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function iv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ov(e))&&(r&&(r+=" "),r+=t);return r}function av(e){return e&&e.ownerDocument||document}function sv(e){return av(e).defaultView||window}function lv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var cv="undefined"!=typeof window?B.useLayoutEffect:B.useEffect;function uv(e){var t=B.useRef(e);return cv((function(){t.current=e})),B.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function dv(e,t){return B.useMemo((function(){return null==e&&null==t?null:function(n){lv(e,n),lv(t,n)}}),[e,t])}var mv=!0,pv=!1,fv=null,hv={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 gv(e){e.metaKey||e.altKey||e.ctrlKey||(mv=!0)}function yv(){mv=!1}function vv(){"hidden"===this.visibilityState&&pv&&(mv=!0)}function bv(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return mv||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!hv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function xv(){pv=!0,window.clearTimeout(fv),fv=window.setTimeout((function(){pv=!1}),100)}function Sv(){var e=B.useCallback((function(e){var t,n=J.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",gv,!0),t.addEventListener("mousedown",yv,!0),t.addEventListener("pointerdown",yv,!0),t.addEventListener("touchstart",yv,!0),t.addEventListener("visibilitychange",vv,!0))}),[]);return{isFocusVisible:bv,onBlurVisible:xv,ref:e}}var Ev=!1,Mv=_.createContext(null),Cv="unmounted",wv="exited",Tv="entering",Ov="entered",kv="exiting",Rv=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=wv,r.appearStatus=Tv):o=Ov:o=t.unmountOnExit||t.mountOnEnter?Cv:wv,r.state={status:o},r.nextCallback=null,r}df(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Cv?{status:wv}: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!==Tv&&n!==Ov&&(t=Tv):n!==Tv&&n!==Ov||(t=kv)}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===Tv){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Z.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wv&&this.setState({status:Cv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Z.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ev?this.safeSetState({status:Ov},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Tv},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ov},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Z.findDOMNode(this);t&&!Ev?(this.props.onExit(r),this.safeSetState({status:kv},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:wv},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:wv},(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:Z.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Cv)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=Rp(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(Mv.Provider,{value:null},"function"==typeof n?n(e,r):_.cloneElement(_.Children.only(n),r))},t}(_.Component);function Av(){}function Nv(e,t){var n=Object.create(null);return e&&U.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&H(e)?t(e):e}(e)})),n}function Lv(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Iv(e,t,n){var r=Nv(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(H(a)){var s=i in t,l=i in r,c=t[i],u=H(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&H(c)&&(o[i]=V(a,{onExited:n.bind(null,a),in:c.props.in,exit:Lv(a,"exit",e),enter:Lv(a,"enter",e)})):o[i]=V(a,{in:!1}):o[i]=V(a,{onExited:n.bind(null,a),in:!0,exit:Lv(a,"exit",e),enter:Lv(a,"enter",e)})}})),o}Rv.contextType=Mv,Rv.propTypes={},Rv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Av,onEntering:Av,onEntered:Av,onExit:Av,onExiting:Av,onExited:Av},Rv.UNMOUNTED=Cv,Rv.EXITED=wv,Rv.ENTERING=Tv,Rv.ENTERED=Ov,Rv.EXITING=kv;var Pv=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Dv=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(mf(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}df(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Nv(n.children,(function(e){return V(e,{onExited:r.bind(null,e),in:!0,appear:Lv(e,"appear",n),enter:Lv(e,"enter",n),exit:Lv(e,"exit",n)})}))):Iv(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Nv(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=yp({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Rp(e,["component","childFactory"]),o=this.state.contextValue,i=Pv(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?_.createElement(Mv.Provider,{value:o},i):_.createElement(Mv.Provider,{value:o},_.createElement(t,r,i))},t}(_.Component);Dv.propTypes={},Dv.defaultProps={component:"div",childFactory:function(e){return e}};function qv(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var zv=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,m=Ap(e,["classes","className","component","square","elevation","variant"]);return B.createElement(i,yp({className:iv(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},m))})),$v=tv((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),yp({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"})(zv),jv="undefined"==typeof window?B.useEffect:B.useLayoutEffect;function Fv(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=B.useState(!1),m=d[0],p=d[1],f=iv(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=iv(t.child,m&&t.childLeaving,r&&t.childPulsate),y=uv(c);return jv((function(){if(!s){p(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),B.createElement("span",{className:f,style:h},B.createElement("span",{className:g}))}var _v=B.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=Ap(e,["center","classes","className"]),s=B.useState([]),l=s[0],c=s[1],u=B.useRef(0),d=B.useRef(null);B.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var m=B.useRef(!1),p=B.useRef(null),f=B.useRef(null),h=B.useRef(null);B.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var g=B.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(Wp(e),[B.createElement(Fv,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),y=B.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,d,y,v=c?null:h.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,E=x.clientY;u=Math.round(S-b.left),d=Math.round(E-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,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(C,2))}e.touches?null===f.current&&(f.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})},p.current=setTimeout((function(){f.current&&(f.current(),f.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=B.useCallback((function(){y({},{pulsate:!0})}),[y]),b=B.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&f.current)return e.persist(),f.current(),f.current=null,void(p.current=setTimeout((function(){b(e,t)})));f.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return B.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),B.createElement("span",yp({className:iv(o.root,i),ref:h},a),B.createElement(Dv,{component:null,exit:!0},l))})),Bv=tv((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"})(B.memo(_v)),Hv=B.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,m=void 0!==d&&d,p=e.disableRipple,f=void 0!==p&&p,h=e.disableTouchRipple,g=void 0!==h&&h,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,S=e.onClick,E=e.onFocus,M=e.onFocusVisible,C=e.onKeyDown,w=e.onKeyUp,T=e.onMouseDown,O=e.onMouseLeave,k=e.onMouseUp,R=e.onTouchEnd,A=e.onTouchMove,N=e.onTouchStart,L=e.onDragLeave,I=e.tabIndex,P=void 0===I?0:I,D=e.TouchRippleProps,q=e.type,z=void 0===q?"button":q,$=Ap(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"]),j=B.useRef(null);var F=B.useRef(null),_=B.useState(!1),H=_[0],V=_[1];m&&H&&V(!1);var U=Sv(),Y=U.isFocusVisible,W=U.onBlurVisible,G=U.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return uv((function(r){return t&&t(r),!n&&F.current&&F.current[e](r),!0}))}B.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),j.current.focus()}}}),[]),B.useEffect((function(){H&&v&&!f&&F.current.pulsate()}),[f,v,H]);var K=X("start",T),Z=X("stop",L),Q=X("stop",k),ee=X("stop",(function(e){H&&e.preventDefault(),O&&O(e)})),te=X("start",N),ne=X("stop",R),re=X("stop",A),oe=X("stop",(function(e){H&&(W(e),V(!1)),x&&x(e)}),!1),ie=uv((function(e){j.current||(j.current=e.currentTarget),Y(e)&&(V(!0),M&&M(e)),E&&E(e)})),ae=function(){var e=J.findDOMNode(j.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=B.useRef(!1),le=uv((function(e){v&&!se.current&&H&&F.current&&" "===e.key&&(se.current=!0,e.persist(),F.current.stop(e,(function(){F.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!m&&(e.preventDefault(),S&&S(e))})),ce=uv((function(e){v&&" "===e.key&&F.current&&H&&!e.defaultPrevented&&(se.current=!1,e.persist(),F.current.stop(e,(function(){F.current.pulsate(e)}))),w&&w(e),S&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&S(e)})),ue=u;"button"===ue&&$.href&&(ue="a");var de={};"button"===ue?(de.type=z,de.disabled=m):("a"===ue&&$.href||(de.role="button"),de["aria-disabled"]=m);var me=dv(r,t),pe=dv(G,j),fe=dv(me,pe),he=B.useState(!1),ge=he[0],ye=he[1];B.useEffect((function(){ye(!0)}),[]);var ve=ge&&!f&&!m;return B.createElement(ue,yp({className:iv(s.root,l,H&&[s.focusVisible,b],m&&s.disabled),onBlur:oe,onClick:S,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:K,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:m?-1:P},de,$),a,ve?B.createElement(Bv,yp({ref:F,center:i},D)):null)})),Vv=tv({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"})(Hv),Uv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Yv=B.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,m=void 0!==d&&d,p=e.noWrap,f=void 0!==p&&p,h=e.paragraph,g=void 0!==h&&h,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?Uv:b,S=Ap(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=l||(g?"p":x[v]||Uv[v])||"span";return B.createElement(E,yp({className:iv(o.root,i,"inherit"!==v&&o[v],"initial"!==s&&o["color".concat(nv(s))],f&&o.noWrap,m&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(nv(r))],"initial"!==u&&o["display".concat(nv(u))]),ref:t},S))})),Wv=tv((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"})(Yv),Gv=B.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,m=void 0!==d&&d,p=e.disableFocusRipple,f=void 0!==p&&p,h=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,E=e.type,M=void 0===E?"button":E,C=e.variant,w=void 0===C?"text":C,T=Ap(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),O=S&&B.createElement("span",{className:iv(r.startIcon,r["iconSize".concat(nv(x))])},S),k=h&&B.createElement("span",{className:iv(r.endIcon,r["iconSize".concat(nv(x))])},h);return B.createElement(Vv,yp({className:iv(r.root,r[w],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(w).concat(nv(a))],"medium"!==x&&[r["".concat(w,"Size").concat(nv(x))],r["size".concat(nv(x))]],m&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:iv(r.focusVisible,g),ref:t,type:M},T),B.createElement("span",{className:r.label},O,n,k))})),Xv=tv((function(e){return{root:yp({},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:kp(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:kp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:kp(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(kp(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:kp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(kp(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:kp(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"})(Gv);var Kv="undefined"!=typeof window?B.useLayoutEffect:B.useEffect,Jv=B.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=B.useState(null),l=s[0],c=s[1],u=dv(B.isValidElement(n)?n.ref:null,t);return Kv((function(){i||c(function(e){return e="function"==typeof e?e():e,J.findDOMNode(e)}(r)||document.body)}),[r,i]),Kv((function(){if(l&&!i)return lv(t,l),function(){lv(t,null)}}),[t,l,i]),Kv((function(){a&&(l||i)&&a()}),[a,l,i]),i?B.isValidElement(n)?B.cloneElement(n,{ref:u}):n:l?J.createPortal(n,l):l}));function Zv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Qv(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function eb(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Wp(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&Zv(e,r)}))}function tb(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function nb(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=av(e);return t.body===e?sv(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){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:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(Qv(i)+a,"px"),n=av(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(Qv(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var rb=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 cf(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&&Zv(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);eb(t,e.mountNode,e.modalRef,r,!0);var o=tb(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=tb(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=nb(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=tb(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&&Zv(e.modalRef,!0),eb(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&Zv(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function ob(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=B.useRef(),m=B.useRef(null),p=B.useRef(null),f=B.useRef(),h=B.useRef(null),g=B.useCallback((function(e){h.current=J.findDOMNode(e)}),[]),y=dv(t.ref,g),v=B.useRef();return B.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(f.current=l().activeElement),B.useEffect((function(){if(u){var e=av(h.current);r||!h.current||h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),h.current.focus());var t=function(){null!==h.current&&(e.hasFocus()&&!i&&c()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?p.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(f.current&&f.current.focus&&f.current.focus(),f.current=null)}}}),[r,i,s,c,u]),B.createElement(B.Fragment,null,B.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),B.cloneElement(t,{ref:y}),B.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))}var ib={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"}},ab=B.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=Ap(e,["invisible","open"]);return o?B.createElement("div",yp({"aria-hidden":!0,ref:t},i,{style:yp({},ib.root,r?ib.invisible:{},i.style)})):null}));var sb=new rb,lb=B.forwardRef((function(e,t){var n=ny(),r=af({name:"MuiModal",props:yp({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?ab:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,m=void 0!==d&&d,p=r.disableBackdropClick,f=void 0!==p&&p,h=r.disableEnforceFocus,g=void 0!==h&&h,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,S=r.disableRestoreFocus,E=void 0!==S&&S,M=r.disableScrollLock,C=void 0!==M&&M,w=r.hideBackdrop,T=void 0!==w&&w,O=r.keepMounted,k=void 0!==O&&O,R=r.manager,A=void 0===R?sb:R,N=r.onBackdropClick,L=r.onClose,I=r.onEscapeKeyDown,P=r.onRendered,D=r.open,q=Ap(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),z=B.useState(!0),$=z[0],j=z[1],F=B.useRef({}),_=B.useRef(null),H=B.useRef(null),V=dv(H,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return av(_.current)},W=function(){return F.current.modalRef=H.current,F.current.mountNode=_.current,F.current},G=function(){A.mount(W(),{disableScrollLock:C}),H.current.scrollTop=0},X=uv((function(){var e=function(e){return e="function"==typeof e?e():e,J.findDOMNode(e)}(u)||Y().body;A.add(W(),e),H.current&&G()})),K=B.useCallback((function(){return A.isTopModal(W())}),[A]),Z=uv((function(e){_.current=e,e&&(P&&P(),D&&K()?G():Zv(H.current,!0))})),Q=B.useCallback((function(){A.remove(W())}),[A]);if(B.useEffect((function(){return function(){Q()}}),[Q]),B.useEffect((function(){D?X():U&&c||Q()}),[D,Q,U,c,X]),!k&&!D&&(!U||$))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:ef}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=rv((function(){j(!1)}),s.props.onEnter),te.onExited=rv((function(){j(!0),c&&Q()}),s.props.onExited)),B.createElement(Jv,{ref:Z,container:u,disablePortal:x},B.createElement("div",yp({ref:V,onKeyDown:function(e){"Escape"===e.key&&K()&&(I&&I(e),v||(e.stopPropagation(),L&&L(e,"escapeKeyDown")))},role:"presentation"},q,{style:yp({},ee.root,!D&&$?ee.hidden:{},q.style)}),T?null:B.createElement(i,yp({open:D,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),!f&&L&&L(e,"backdropClick"))}},a)),B.createElement(ob,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:E,getDoc:Y,isEnabled:K,open:D},B.cloneElement(s,te))))})),cb=B.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,m=e.orientation,p=void 0===m?"horizontal":m,f=e.role,h=void 0===f?"hr"!==s?"separator":void 0:f,g=e.variant,y=void 0===g?"fullWidth":g,v=Ap(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return B.createElement(s,yp({className:iv(o.root,i,"fullWidth"!==y&&o[y],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===p&&o.vertical),role:h,ref:t},v))})),ub=tv((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:kp(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"})(cb);function db(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var mb={entering:{opacity:1,transform:db(1)},entered:{opacity:1,transform:"none"}},pb=B.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,m=e.style,p=e.timeout,f=void 0===p?"auto":p,h=e.TransitionComponent,g=void 0===h?Rv:h,y=Ap(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=B.useRef(),b=B.useRef(),x=ny()||Qy,S=x.unstable_strictMode&&!o,E=B.useRef(null),M=dv(n.ref,t),C=dv(S?E:void 0,M),w=function(e){return function(t,n){if(e){var r=Gp(S?[E.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},T=w(l),O=w((function(e,t){!function(e){e.scrollTop}(e);var n,r=qv({style:m,timeout:f},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===f?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=o,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:i}),x.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),k=w(s),R=w(d),A=w((function(e){var t,n=qv({style:m,timeout:f},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===f?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:o}),x.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=db(.75),c&&c(e)})),N=w(u);return B.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),B.createElement(g,yp({appear:!0,in:i,nodeRef:S?E:void 0,onEnter:O,onEntered:k,onEntering:T,onExit:A,onExited:N,onExiting:R,addEndListener:function(e,t){var n=S?e:t;"auto"===f&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===f?null:f},y),(function(e,t){return B.cloneElement(n,yp({style:yp({opacity:0,transform:db(.75),visibility:"exited"!==e||i?void 0:"hidden"},mb[e],m,n.props.style),ref:C},t))}))}));pb.muiSupportAuto=!0;var fb=B.createContext({}),hb=B.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,m=Ap(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=B.useMemo((function(){return{dense:l}}),[l]);return B.createElement(fb.Provider,{value:p},B.createElement(a,yp({className:iv(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},m),d,n))})),gb=tv({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(hb),yb="undefined"==typeof window?B.useEffect:B.useLayoutEffect,vb=B.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,m=e.ContainerComponent,p=void 0===m?"li":m,f=e.ContainerProps,h=(f=void 0===f?{}:f).className,g=Ap(f,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,S=e.disableGutters,E=void 0!==S&&S,M=e.divider,C=void 0!==M&&M,w=e.focusVisibleClassName,T=e.selected,O=void 0!==T&&T,k=Ap(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),R=B.useContext(fb),A={dense:v||R.dense||!1,alignItems:r},N=B.useRef(null);yb((function(){i&&N.current&&N.current.focus()}),[i]);var L,I,P=B.Children.toArray(l),D=P.length&&(L=P[P.length-1],I=["ListItemSecondaryAction"],B.isValidElement(L)&&-1!==I.indexOf(L.type.muiName)),q=dv(B.useCallback((function(e){N.current=J.findDOMNode(e)}),[]),t),z=yp({className:iv(c.root,u,A.dense&&c.dense,!E&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,D&&c.secondaryAction,O&&c.selected),disabled:x},k),$=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=iv(c.focusVisible,w),$=Vv),D?($=z.component||d?$:"div","li"===p&&("li"===$?$="div":"li"===z.component&&(z.component="div")),B.createElement(fb.Provider,{value:A},B.createElement(p,yp({className:iv(c.container,h),ref:q},g),B.createElement($,z,P),P.pop()))):B.createElement(fb.Provider,{value:A},B.createElement($,yp({ref:q},z),P))})),bb=tv((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"})(vb),xb=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Ap(e,["classes","className"]),i=B.useContext(fb);return B.createElement("div",yp({className:iv(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),Sb=tv((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(xb),Eb=B.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,m=e.secondaryTypographyProps,p=Ap(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=B.useContext(fb).dense,h=null!=c?c:n;null==h||h.type===Wv||a||(h=B.createElement(Wv,yp({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===Wv||a||(g=B.createElement(Wv,yp({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},m),g)),B.createElement("div",yp({className:iv(r.root,o,f&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),Mb=tv({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Eb);function Cb(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function wb(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Tb(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Ob(e){return"function"==typeof e?e():e}var kb=B.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,m=e.container,p=e.elevation,f=void 0===p?8:p,h=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,S=e.onExit,E=e.onExited,M=e.onExiting,C=e.open,w=e.PaperProps,T=void 0===w?{}:w,O=e.transformOrigin,k=void 0===O?{vertical:"top",horizontal:"left"}:O,R=e.TransitionComponent,A=void 0===R?pb:R,N=e.transitionDuration,L=void 0===N?"auto":N,I=e.TransitionProps,P=void 0===I?{}:I,D=Ap(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"]),q=B.useRef(),z=B.useCallback((function(e){if("anchorPosition"===l)return a;var t=Ob(r),n=(t&&1===t.nodeType?t:av(q.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Cb(n,o),left:n.left+wb(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),$=B.useCallback((function(e){var t=0;if(h&&"anchorEl"===l){var n=h(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,l,h]),j=B.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Cb(e,k.vertical)+t,horizontal:wb(e,k.horizontal)}}),[k.horizontal,k.vertical]),F=B.useCallback((function(e){var t=$(e),n={width:e.offsetWidth,height:e.offsetHeight},o=j(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Tb(o)};var i=z(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=sv(Ob(r)),m=d.innerHeight-y,p=d.innerWidth-y;if(a<y){var f=a-y;a-=f,o.vertical+=f}else if(c>m){var h=c-m;a-=h,o.vertical+=h}if(s<y){var g=s-y;s-=g,o.horizontal+=g}else if(u>p){var v=u-p;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Tb(o)}}),[r,l,z,$,j,y]),_=B.useCallback((function(){var e=q.current;if(e){var t=F(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[F]),H=B.useCallback((function(e){q.current=J.findDOMNode(e)}),[]);B.useEffect((function(){C&&_()})),B.useImperativeHandle(n,(function(){return C?{updatePosition:function(){_()}}:null}),[C,_]),B.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){_()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,_]);var V=L;"auto"!==L||A.muiSupportAuto||(V=void 0);var U=m||(r?av(Ob(r)).body:void 0);return B.createElement(lb,yp({container:U,open:C,ref:t,BackdropProps:{invisible:!0},className:iv(u.root,d)},D),B.createElement(A,yp({appear:!0,in:C,onEnter:v,onEntered:b,onExit:S,onExited:E,onExiting:M,timeout:V},P,{onEntering:rv((function(e,t){x&&x(e,t),_()}),P.onEntering)}),B.createElement($v,yp({elevation:f,ref:H},T,{className:iv(u.paper,T.className)}),c)))})),Rb=tv({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(kb);function Ab(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Nb({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Ab(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return _.createElement("i",{style:o},_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},_.createElement("path",{d:e})))}const Lb="alternative-menu-item",Ib=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>dy((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 _.createElement(bb,Ym({className:`${o.root} ${n}`},r))},Pb=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Lb}`);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 Db({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=De.detectTextDirection(e);return _.createElement(Ib,{nested:r,role:"menuitem",button:!0,onClick:n,className:Lb,onKeyDown:Pb,dir:a,autoFocus:t},_.createElement(Mb,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),_.createElement(Sb,{style:{minWidth:16}},_.createElement(Nb,{d:t?Rm:""})),o&&_.createElement(Sb,{style:{minWidth:16}},_.createElement(Nb,{d:o.d})))}Db.propTypes={title:Km.string.isRequired,selected:Km.bool,onClick:Km.func.isRequired,nested:Km.bool,icon:Km.shape({d:Km.string.isRequired}),bold:Km.bool,dir:Km.string.isRequired},Db.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Ib.propTypes={nested:Km.bool,className:Km.string},Ib.defaultProps={nested:!1,className:Lb};const qb={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 zb({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const c=i.map(((t,o)=>{var s;return _.createElement(_.Fragment,{key:t.id},_.createElement(Db,{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&&_.createElement(gb,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>_.createElement(Db,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&_.createElement(ub,{key:`divider-${t.id}`}))}));return _.createElement(Rb,Ym({anchorEl:t,open:s,onClose:a},qb[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),_.createElement(gb,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}zb.propTypes={chartId:Km.string.isRequired,alignTo:Km.any,currentId:Km.string.isRequired,dir:Km.string.isRequired,dock:Km.string.isRequired,list:Km.array,onClose:Km.func.isRequired,show:Km.bool.isRequired,instruction:Km.string.isRequired},zb.defaultProps={list:[],alignTo:null};const $b="title-button",jb="active-title-button",Fb=ev((({children:e,...t})=>_.createElement(Xv,Ym({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),_b=ev(Xv)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class Bb extends _.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=_.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:o}=this.props;n&&(r||o)&&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(`.${$b}`);t&&(t.focus(),t.classList.add(jb))}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(`.${$b}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${jb}`);e&&(e.classList.remove(jb),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,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},m=t.breadcrumbs.length,p=o||Boolean(!t.drillUp)||this.state.inSelection,f=t.breadcrumbs.map(((e,n)=>_.createElement(Fb,{style:{display:"flex",alignItems:"center",color:p&&"rgba(89, 89, 89, 0.8)",pointerEvents:p?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>p?void 0:t.drillUp(m-n),title:e},_.createElement("span",{style:d},e),_.createElement(Nb,Ym({},Nm,{size:"small",style:{margin:"0 8px"}}))))),h=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||o||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&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=De.detectTextDirection(t.text),S=_.createElement(Fb,{"aria-label":r.get(`Accessibility.${n&&h?"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:`${$b} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&_.createElement(Nb,Ym({},km,{size:"small",title:r.get("Tooltip.selections.locked")})),_.createElement("span",{style:d,dir:x},t.text),n&&h&&_.createElement(Nb,Ym({},Am,{size:"small",style:{margin:"0 8px"}})));return _.createElement(_.Fragment,null,t.icon&&t.icon.onClick&&_.createElement(_b,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:b})},_.createElement(Nb,Ym({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&_.createElement(Nb,Ym({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),f,_.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},S),n&&h&&_.createElement(zb,{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 Hb(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function Vb(e){function t(e){return!e.isDimension&&Se.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:o,hyperCubeDef:i,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:m,skipAttributeExpressions:p,translator:f,supportConditional:h=!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=i&&i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],S=r||o[a?"qDimensionInfo":"qMeasureInfo"],E=a?Bm:Vm,M=a?Hm:Um,C=Boolean(l&&l.colorSupport&&l.modifiers),w=C&&((T=this.settings.settings).isDimension&&Se.getValue(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var T;const O=S.map(((t,r)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:r,y=M(t,i,l,e),v=r===S.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,T=C||b?E({column:i,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:Hb(g),model:l,onChange:c,skipAttributeExpressions:p,translator:f,allowChangeOfAlternatives:C}):void 0;return _.createElement(_.Fragment,{key:t.cId},_.createElement(Bb,{chartId:null!==(o=null==l?void 0:l.id)&&void 0!==o?o:"",showGroupDimOptions:b,popover:T,titleData:y,model:l,translator:f,selections:m,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:w,supportConditional:h}),!v&&_.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return _.createElement("div",{style:v,dir:y},O)}}}Bb.propTypes={chartId:Km.string.isRequired,disabled:Km.bool.isRequired,padding:Km.string,minWidth:Km.string,titleData:Km.shape({breadcrumbs:Km.arrayOf(Km.string).isRequired,icon:Km.shape({path:Km.shape({d:Km.string.isRequired}),tooltip:Km.string.isRequired,onClick:Km.func}),index:Km.number.isRequired,locked:Km.bool.isRequired,text:Km.string.isRequired,popoverText:Km.string.isRequired,drillUp:Km.func,id:Km.string.isRequired}).isRequired,popover:Km.shape({dir:Km.string.isRequired,dock:Km.string.isRequired,getPopoverOptions:Km.func.isRequired}),translator:Km.shape({get:Km.func.isRequired}).isRequired,selections:Km.shape({isActive:Km.func,addListener:Km.func,removeListener:Km.func}),style:Km.shape({fontSize:Km.string,color:Km.string,fontFamily:Km.string}).isRequired,isDimension:Km.bool.isRequired,hasAlternative:Km.bool.isRequired,supportConditional:Km.bool.isRequired,showGroupDimOptions:Km.bool.isRequired},Bb.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const Ub=tf({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 Yb=of({productionPrefix:"qc65b",disableGlobal:!0,seed:""});function Wb(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,o=e();const i={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=o.scaleRatio.x,n=o.scaleRatio.y;return r.style.left=`${Math.round(o.margin.left+o.x*t)}px`,r.style.top=`${Math.round(o.margin.top+o.y*n)}px`,r.style.width=`${Math.round(o.width)}px`,r.style.height=`${Math.round(o.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",Z.render(function(e,t){return _.createElement(sy,{generateClassName:t},_.createElement(Zy,{theme:Ub},e))}(e,Yb),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&Z.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(Z.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}function Gb(e,t,n,r){const o=function(t){const n=String(t);return e(n)};return o.ticks=()=>t.map((t=>{const i=o([t.data.value,r?n-1:0]),a=o([t.data.value,r?0:n-1])+e.bandwidth();return{position:(i+a)/2,label:t.label,data:t.data,start:i,end:a}})),o.bandwidth=()=>e.bandwidth(),o.data=()=>e.data(),o.domain=()=>e.domain(),o.pxScale=function(r){const o=e.pxScale(r);return o===e?this:Gb(o,t,n)},o}function Xb(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const o=t(e,n,r),i=o.domain(),a=o.ticks(),s=[],l=e.measureCount;return i.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),o.domain(s),Gb(o,a,l,e.invert)}))}const Kb={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:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(me({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function Jb({i:e,width:t,height:n,resolved:r,keys:o,flipXY:i,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=me({},{major:l,majorEnd:c},r.minor.items[e]);o.forEach((t=>{d[t]=r[t].items[e]}));const m=i?n:t,p=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:o}){const i=e>=0?1:-1;let a=Math.min(i*e*t,Number.isNaN(Number(r))?o:r/o);return a=Number.isNaN(Number(n))?a:Math.max(n/o,a),a*i}({bandwidth:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:m}),f=(u-p)/2,h=f+d.major+p/2;return{item:d,boxCenter:h,boxWidth:p,boxPadding:f,rendWidth:t,rendHeight:n}}function Zb({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=me(!0,{},n||{},r||{}),c={major:"horizontal"===o.orientation?a:i,minor:"horizontal"===o.orientation?i:a},u=o.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:me(!0,{},{binStart:{scale:o.major.scale,ref:o.major.ref.start},binEnd:{scale:o.major.scale,ref:o.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:me(!0,{},{binStart:{scale:o.major.scale,ref:"binStart"},binEnd:{scale:o.major.scale,ref:"binEnd"}},o.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:o.major}});const m=o.minor||{};let p;const f={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:me(!0,{},{start:{scale:m.scale,ref:"start"},end:{scale:m.scale,ref:"end"},min:{scale:m.scale,ref:"min"},max:{scale:m.scale,ref:"max"},med:{scale:m.scale,ref:"med"}},m)})};for(let n=0,r=e.length;n<r;n++)p=e[n],f[p]=s.resolve({data:t,defaults:l[p],settings:o[p],scaled:c});return f}const Qb=["oob"];const ex={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:o,style:i,resolver:a,symbol:s}=this,l=Zb({keys:Qb,data:o,defaultSettings:{oob:Kb.getDefaultSettings()},style:i,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:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=Jb}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:m,rendWidth:p,rendHeight:f}=s({i:u,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(Kb.createOob({oob:d.oob,dockValue:a,boxCenter:m,rendWidth:p,rendHeight:f,flipXY:n,symbol:i}));const e={type:"container",data:h,collider:{type:"bounds"},children:g};l.push(e)}}return l}({width:e,height:t,flipXY:r,resolved:l,keys:Qb,symbol:s,dockValue:n});return d}},tx={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},nx=["hat"];function rx(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 ox({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:o,flipXY:i}){let a="x",s="y",l=r,c=o,u=e.hat.alignment||0;i&&(a="y",s="x",l=o,c=r,u=1-u);const d=(n+e.major)*l;let m=[{[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 p=me({},e.hat,{type:"path",d:rx(m)});m=[{[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[p,me({},e.hat,{type:"path",d:rx(m)})]}const ix={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:o,resolver:i}=this,a=Zb({keys:nx,data:r,defaultSettings:tx,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=Jb}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:m,rendHeight:p}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),f=s[l].data,h=[];c.hat.show&&h.push(...ox({item:c,boxWidth:u,boxPadding:d,rendWidth:m,rendHeight:p,flipXY:n}));const g={type:"container",data:f,collider:{type:"bounds"},children:h};a.push(g)}return a}({width:e,height:t,flipXY:n,resolved:a,keys:nx});return c}};var ax="unclassified",sx="equal-equal",lx="equal-higher",cx="equal-lower",ux="equal-void",dx="higher-equal",mx="higher-higher-acute",px="higher-higher-obtuse",fx="higher-lower-negative",hx="higher-lower-positive",gx="higher-void",yx="lower-equal",vx="lower-higher-negative",bx="lower-higher-positive",xx="lower-lower-acute",Sx="lower-lower-obtuse",Ex="lower-void",Mx="void-equal",Cx="void-higher",wx="void-lower",Tx="void-void";function Ox(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function kx(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),o=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),i=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((o*o+r*r-i*i)/(2*o*r))*(180/Math.PI)}function Rx({previous:e,current:t,next:n}){const r=e&&e.value,o=t&&t.value,i=n&&n.value;return e||n?e?n?r===o?o===i?sx:o<i?lx:cx:o===i?r>o?dx:yx:r>o?o<i?kx(e,t,n)>90?px:mx:Ox(e,t)>Ox(e,n)?hx:fx:o>i?kx(e,t,n)>90?Sx:xx:Ox(e,t)>Ox(e,n)?bx:vx:r===o?ux:r>o?gx:Ex:o===i?Mx:o<i?Cx:wx:Tx}var Ax={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 Nx({bounds:e,size:t}){const{x:n,y:r,width:o,height:i}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+o/2)>=0&&Math.ceil(n+o/2)<=t.width&&Math.floor(r+i/2)>=0&&Math.ceil(r+i/2)<=t.height:Math.floor(n+o)>0&&Math.ceil(n)<t.width&&Math.floor(r+i/2)>=0&&Math.ceil(r+i/2)<=t.height}function Lx({config:e,node:t,line:n,groupIndex:r,extract:o,style:i,measureText:a,size:s,horizontal:l,rtl:c,meta:u,showLabel:d}){var m,p;const f=o.label(t.data);if("string"!=typeof f&&"number"!=typeof f||""===f)return!1;const h=(()=>{var e,n;const r=a({fontFamily:i.fontFamily,fontSize:i.fontSize,text:f});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 o=`${i.fontSize} ${i.fontFamily}`,s=Di.tokenize(f,o,"…",3,t.data.value.maxLabelWidth);return r.lines=s.map((e=>({text:e,size:a({fontFamily:i.fontFamily,fontSize:i.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=o.pointValue(t.data),b=!(null===(m=t.data)||void 0===m||null===(m=m.value)||void 0===m||!m.hasBackground),x=b?{X:3,Y:2}:{X:1,Y:0},S=b?{X:2,Y:2}:{X:0,Y:0},E={x:g.x+g.width/2,y:g.y+g.height/2,width:h.width+2*x.X+2*S.X,height:h.height+2*x.Y+2*S.Y},M=`${E.x}-${E.y}`,C=!l&&!c,w=l?s.height:s.width,T=(l?E.y:E.x)/w,O=(C?1-T:T)<=(w<=200?.25:.1),k=null===(p=t.data)||void 0===p||null===(p=p.value)||void 0===p||null===(p=p.label)||void 0===p?void 0:p.placement,R=Object.keys(Ax).map((e=>Ax[e])),A={key:M,config:e,node:t,line:n,group:r,value:v,labelMeasurements:h,bounds:E,inside:Nx({bounds:g,size:s}),border:y?y/2:0,classification:ax,setClassification(e){A.classification=e},preferences:[],setPreferences(e){A.preferences.push(...e)},fixedPlacement:R.includes(k)?k: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 Ix({configs:e,nodes:t,extract:n,style:r,measureText:o,size:i,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:o,left:i}=t;return[n,r,o,i].some((t=>-1!==t.indexOf(e)))}}}({nodes:t}),u=function({nodes:e,by:t,lineId:n}){const r=e.reduce(((e,r,o)=>{const i=t(r.data);return e[i]||(e[i]={items:[],index:o}),e[i].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)=>t.map((t=>({line:t.line,item:Lx({config:e.get(t.node.key),node:t.node,line:t.line,groupIndex:u,extract:n,style:r,measureText:o,size:i,horizontal:a,rtl:s,meta:c,showLabel:l})}))).filter((e=>e.item)).reduce(((e,t)=>(e[t.line]=t.item,e)),{})));return u.filter((e=>Object.keys(e).length))}var Px={[sx]:[Ax.TOP,Ax.BOTTOM],[lx]:[Ax.BOTTOM,Ax.BOTTOM_RIGHT],[cx]:[Ax.TOP,Ax.TOP_RIGHT],[ux]:[Ax.TOP,Ax.BOTTOM],[dx]:[Ax.LEFT,Ax.BOTTOM_LEFT,Ax.TOP,Ax.TOP_RIGHT],[mx]:[Ax.BOTTOM,Ax.BOTTOM_LEFT,Ax.LEFT,Ax.TOP_RIGHT],[px]:[Ax.BOTTOM,Ax.TOP],[fx]:[Ax.TOP,Ax.TOP_RIGHT,Ax.RIGHT],[hx]:[Ax.BOTTOM,Ax.BOTTOM_LEFT,Ax.LEFT],[gx]:[Ax.TOP],[yx]:[Ax.TOP],[vx]:[Ax.TOP,Ax.TOP_LEFT],[bx]:[Ax.BOTTOM_RIGHT],[xx]:[Ax.TOP,Ax.TOP_LEFT,Ax.LEFT,Ax.TOP_RIGHT,Ax.RIGHT],[Sx]:[Ax.TOP,Ax.BOTTOM],[Ex]:[Ax.TOP],[Mx]:[Ax.TOP],[Cx]:[Ax.TOP,Ax.BOTTOM],[wx]:[Ax.TOP,Ax.BOTTOM,Ax.LEFT],[Tx]:[Ax.TOP],[ax]:[Ax.TOP,Ax.BOTTOM,Ax.RIGHT,Ax.LEFT,Ax.TOP_RIGHT,Ax.BOTTOM_RIGHT,Ax.BOTTOM_LEFT,Ax.TOP_LEFT]};function Dx({configs:e,nodes:t,extract:n,style:r,measureText:o,size:i,horizontal:a,rtl:s,showLabel:l}){const c=Ix({configs:e,nodes:t,extract:n,style:r,measureText:o,size:i,horizontal:a,rtl:s,showLabel:l}),u=[...c.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[d]=u,m=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 o=Object.keys(r).map((e=>r[e])),i=[];for(let e=0;e<o.length;e++)for(let n=0;n<o[e].length-1;n++){const r=o[e][n],a=o[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&&i.push(s)}return i}({groups:c,threshold:null==d?void 0:d.node.localBounds.height}),p={getItems:()=>u,getLines:()=>m};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 o=n[r];if(!o.config.fixed){const n=Rx({previous:e[t-1]&&e[t-1][o.line],current:o,next:e[t+1]&&e[t+1][o.line]});o.setClassification(n)}}}}({groups:c}),p.getItems().forEach((e=>{e.setPreferences(Px[e.classification])})),p}function qx({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 zx({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,o=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&o>=0&&o<=1}function $x({candidate:e,lines:t,rects:n}){return!!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})))||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},o={x:t.x+t.width,y:t.y+t.height},i={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:o.x,y2:o.y},s={x1:o.x,y1:o.y,x2:i.x,y2:i.y},l={x1:i.x,y1:i.y,x2:n.x,y2:n.y};return zx({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||zx({line1:e,line2:a})||zx({line1:e,line2:s})||zx({line1:e,line2:l})}({line:t,rect:e})))}const jx={x:0,width:0,y:0,height:0};const Fx=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),_x=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),Bx=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),Hx=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),Vx=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),Ux=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),Yx=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),Wx=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var Gx=2.5,Xx=4;const Kx=[Ax.TOP,Ax.TOP_LEFT,Ax.TOP_RIGHT],Jx=[Ax.BOTTOM,Ax.BOTTOM_LEFT,Ax.BOTTOM_RIGHT];function Zx({position:e}){const t={x:Gx,width:-5,y:0,height:0},n=Kx.indexOf(e)>-1,r=Jx.indexOf(e)>-1;return n&&(t.y=Xx,t.height=-4),r&&(t.height=-4),t}function Qx({cx:e,cy:t,r:n,degrees:r}){const o=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(o)),y:Math.round(t+n*-Math.cos(o))}}function eS({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 tS({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),o=e.bounds.x,i=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=eS({coordinates:Qx({cx:o,cy:i,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=eS({coordinates:Qx({cx:o,cy:i,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const nS=void 0;function rS({item:e,validator:t,force:n=!1}){const r={[Ax.TOP]:Fx,[Ax.TOP_RIGHT]:_x,[Ax.RIGHT]:Bx,[Ax.BOTTOM_RIGHT]:Hx,[Ax.BOTTOM]:Vx,[Ax.BOTTOM_LEFT]:Ux,[Ax.LEFT]:Yx,[Ax.TOP_LEFT]:Wx};if(e.fixedPlacement)return r[e.fixedPlacement]({item:e});const o=[...e.preferences,...Object.keys(Ax).map((e=>Ax[e])).filter((t=>-1===e.preferences.indexOf(t)))],i=[];for(let a=0;a<o.length;a++){const s=o[a],l=r[s]({item:e}),c=Zx({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&i.push(l),u.valid)return l}const a=()=>tS({item:e,validator:t,force:n});if(n){const e=a();return e||(i[0]||nS)}return(e.extreme||e.elite)&&a()||nS}function oS({model:e,size:t,all:n}){const r={},o=e.getItems(),i=[...o.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();o.forEach((e=>{const{data:o}=e.node;if(!e.show||!e.inside||o.null&&o.null.value||o.interpolated&&o.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:o,adjustment:i=jx,ignoreLines:a=!1}){const s={inside:qx({item:r,placement:o,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=$x({candidate:{x:o.x+i.x,y:o.y+i.y,width:r.bounds.width+i.width,height:r.bounds.height+i.height},lines:a?[]:t,rects:n}),s.valid=!s.collides,s):s}}({size:t,lines:s,placements:i}),u=rS({item:e,validator:c});u?(u.height=e.bounds.height,u.width=e.bounds.width,i.push(u),e.setPlacement(u)):n&&a.push({item:e,validator:c})})),a.forEach((e=>{const{item:t,validator:n}=e,r=rS({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,i.push(r),t.setPlacement(r))}))}var iS={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:o,size:i}=r;if(o()){const r="horizontal"===t;e.edgeBleed.top=r?i:0,e.edgeBleed[n?"left":"right"]=r?0:i}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 o=this.chart.findShapes("circle, path, rect").filter((e=>n.meta.allKeys.includes(e.key)));if(!o.length)return[];const i="horizontal"===e.orientation,a=i?"x":"y";o.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:m}=this,p=Dx({configs:n,nodes:o,extract:s,style:m,measureText:this.renderer.measureText,size:d,horizontal:i,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:p}),oS({model:p,size:d,all:e.all});const f=p.getItems(),h=[];f.filter((e=>e.placement)).forEach((e=>{var t,n;const r=null!==(t=e.node.data.value)&&void 0!==t&&t.hasBackground?2:0,o=null!==(n=e.node.data.value)&&void 0!==n&&n.hasBackground?2:0;e.labelMeasurements.lines?e.labelMeasurements.lines.forEach(((t,n)=>{h.push({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+(n+.5)*t.size.height+r+o,fontSize:m.fontSize,fontFamily:m.fontFamily,fill:m.fill,text:t.text,data:e.node.data.value,baseline:"central",anchor:"middle"})})):h.push({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2+r+o,fontSize:m.fontSize,fontFamily:m.fontFamily,fill:m.fill,text:s.label(e.node.data),data:e.node.data.value,baseline:"central",anchor:"middle"})}));return[...f.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}})),...h]}},aS={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};const sS={black:"#000",white:"#fff"},lS="#e57373",cS="#ef5350",uS="#f44336",dS="#d32f2f",mS="#c62828",pS="#f3e5f5",fS="#ce93d8",hS="#ba68c8",gS="#ab47bc",yS="#9c27b0",vS="#7b1fa2",bS="#e3f2fd",xS="#90caf9",SS="#42a5f5",ES="#1976d2",MS="#1565c0",CS="#4fc3f7",wS="#29b6f6",TS="#03a9f4",OS="#0288d1",kS="#01579b",RS="#81c784",AS="#66bb6a",NS="#4caf50",LS="#388e3c",IS="#2e7d32",PS="#1b5e20",DS="#ffb74d",qS="#ffa726",zS="#ff9800",$S="#f57c00",jS="#e65100",FS={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 _S(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 BS=Object.freeze({__proto__:null,default:_S}),HS="$$material";var VS=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}(),US="-ms-",YS="-moz-",WS="-webkit-",GS="comm",XS="rule",KS="decl",JS="@keyframes",ZS=Math.abs,QS=String.fromCharCode,eE=Object.assign;function tE(e){return e.trim()}function nE(e,t,n){return e.replace(t,n)}function rE(e,t){return e.indexOf(t)}function oE(e,t){return 0|e.charCodeAt(t)}function iE(e,t,n){return e.slice(t,n)}function aE(e){return e.length}function sE(e){return e.length}function lE(e,t){return t.push(e),e}var cE=1,uE=1,dE=0,mE=0,pE=0,fE="";function hE(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cE,column:uE,length:a,return:""}}function gE(e,t){return eE(hE("",null,null,"",null,null,0),e,{length:-e.length},t)}function yE(){return pE=mE>0?oE(fE,--mE):0,uE--,10===pE&&(uE=1,cE--),pE}function vE(){return pE=mE<dE?oE(fE,mE++):0,uE++,10===pE&&(uE=1,cE++),pE}function bE(){return oE(fE,mE)}function xE(){return mE}function SE(e,t){return iE(fE,e,t)}function EE(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 ME(e){return cE=uE=1,dE=aE(fE=e),mE=0,[]}function CE(e){return fE="",e}function wE(e){return tE(SE(mE-1,kE(91===e?e+2:40===e?e+1:e)))}function TE(e){for(;(pE=bE())&&pE<33;)vE();return EE(e)>2||EE(pE)>3?"":" "}function OE(e,t){for(;--t&&vE()&&!(pE<48||pE>102||pE>57&&pE<65||pE>70&&pE<97););return SE(e,xE()+(t<6&&32==bE()&&32==vE()))}function kE(e){for(;vE();)switch(pE){case e:return mE;case 34:case 39:34!==e&&39!==e&&kE(pE);break;case 40:41===e&&kE(e);break;case 92:vE()}return mE}function RE(e,t){for(;vE()&&e+pE!==57&&(e+pE!==84||47!==bE()););return"/*"+SE(t,mE-1)+"*"+QS(47===e?e:vE())}function AE(e){for(;!EE(bE());)vE();return SE(e,mE)}function NE(e){return CE(LE("",null,null,null,[""],e=ME(e),0,[0],e))}function LE(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,m=0,p=0,f=0,h=1,g=1,y=1,v=0,b="",x=o,S=i,E=r,M=b;g;)switch(f=v,v=vE()){case 40:if(108!=f&&58==oE(M,d-1)){-1!=rE(M+=nE(wE(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=wE(v);break;case 9:case 10:case 13:case 32:M+=TE(f);break;case 92:M+=OE(xE()-1,7);continue;case 47:switch(bE()){case 42:case 47:lE(PE(RE(vE(),xE()),t,n),l);break;default:M+="/"}break;case 123*h:s[c++]=aE(M)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(M=nE(M,/\f/g,"")),p>0&&aE(M)-d&&lE(p>32?DE(M+";",r,n,d-1):DE(nE(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(lE(E=IE(M,t,n,c,u,o,s,b,x=[],S=[],d),i),123===v)if(0===u)LE(M,t,E,E,x,i,d,s,S);else switch(99===m&&110===oE(M,3)?100:m){case 100:case 108:case 109:case 115:LE(e,E,E,r&&lE(IE(e,E,E,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:LE(M,E,E,E,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=M="",d=a;break;case 58:d=1+aE(M),p=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==yE())continue;switch(M+=QS(v),v*h){case 38:y=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(aE(M)-1)*y,y=1;break;case 64:45===bE()&&(M+=wE(vE())),m=bE(),u=d=aE(b=M+=AE(xE())),v++;break;case 45:45===f&&2==aE(M)&&(h=0)}}return i}function IE(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,m=0===o?i:[""],p=sE(m),f=0,h=0,g=0;f<r;++f)for(var y=0,v=iE(e,d+1,d=ZS(h=a[f])),b=e;y<p;++y)(b=tE(h>0?m[y]+" "+v:nE(v,/&\f/g,m[y])))&&(l[g++]=b);return hE(e,t,n,0===o?XS:s,l,c,u)}function PE(e,t,n){return hE(e,t,n,GS,QS(pE),iE(e,2,-2),0)}function DE(e,t,n,r){return hE(e,t,n,KS,iE(e,0,r),iE(e,r+1,-1),r)}function qE(e,t){for(var n="",r=sE(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function zE(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case KS:return e.return=e.return||e.value;case GS:return"";case JS:return e.return=e.value+"{"+qE(e.children,r)+"}";case XS:e.value=e.props.join(",")}return aE(n=qE(e.children,r))?e.return=e.value+"{"+n+"}":""}function $E(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var jE=function(e,t,n){for(var r=0,o=0;r=o,o=bE(),38===r&&12===o&&(t[n]=1),!EE(o);)vE();return SE(e,mE)},FE=function(e,t){return CE(function(e,t){var n=-1,r=44;do{switch(EE(r)){case 0:38===r&&12===bE()&&(t[n]=1),e[n]+=jE(mE-1,t,n);break;case 2:e[n]+=wE(r);break;case 4:if(44===r){e[++n]=58===bE()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=QS(r)}}while(r=vE());return e}(ME(e),t))},_E=new WeakMap,BE=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)||_E.get(n))&&!r){_E.set(e,!0);for(var o=[],i=FE(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},HE=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function VE(e,t){switch(function(e,t){return 45^oE(e,0)?(((t<<2^oE(e,0))<<2^oE(e,1))<<2^oE(e,2))<<2^oE(e,3):0}(e,t)){case 5103:return WS+"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 WS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return WS+e+YS+e+US+e+e;case 6828:case 4268:return WS+e+US+e+e;case 6165:return WS+e+US+"flex-"+e+e;case 5187:return WS+e+nE(e,/(\w+).+(:[^]+)/,WS+"box-$1$2"+US+"flex-$1$2")+e;case 5443:return WS+e+US+"flex-item-"+nE(e,/flex-|-self/,"")+e;case 4675:return WS+e+US+"flex-line-pack"+nE(e,/align-content|flex-|-self/,"")+e;case 5548:return WS+e+US+nE(e,"shrink","negative")+e;case 5292:return WS+e+US+nE(e,"basis","preferred-size")+e;case 6060:return WS+"box-"+nE(e,"-grow","")+WS+e+US+nE(e,"grow","positive")+e;case 4554:return WS+nE(e,/([^-])(transform)/g,"$1"+WS+"$2")+e;case 6187:return nE(nE(nE(e,/(zoom-|grab)/,WS+"$1"),/(image-set)/,WS+"$1"),e,"")+e;case 5495:case 3959:return nE(e,/(image-set\([^]*)/,WS+"$1$`$1");case 4968:return nE(nE(e,/(.+:)(flex-)?(.*)/,WS+"box-pack:$3"+US+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WS+e+e;case 4095:case 3583:case 4068:case 2532:return nE(e,/(.+)-inline(.+)/,WS+"$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(aE(e)-1-t>6)switch(oE(e,t+1)){case 109:if(45!==oE(e,t+4))break;case 102:return nE(e,/(.+:)(.+)-([^]+)/,"$1"+WS+"$2-$3$1"+YS+(108==oE(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rE(e,"stretch")?VE(nE(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==oE(e,t+1))break;case 6444:switch(oE(e,aE(e)-3-(~rE(e,"!important")&&10))){case 107:return nE(e,":",":"+WS)+e;case 101:return nE(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WS+(45===oE(e,14)?"inline-":"")+"box$3$1"+WS+"$2$3$1"+US+"$2box$3")+e}break;case 5936:switch(oE(e,t+11)){case 114:return WS+e+US+nE(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WS+e+US+nE(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WS+e+US+nE(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WS+e+US+e+e}return e}var UE=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case KS:e.return=VE(e.value,e.length);break;case JS:return qE([gE(e,{value:nE(e.value,"@","@"+WS)})],r);case XS: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 qE([gE(e,{props:[nE(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return qE([gE(e,{props:[nE(t,/:(plac\w+)/,":"+WS+"input-$1")]}),gE(e,{props:[nE(t,/:(plac\w+)/,":-moz-$1")]}),gE(e,{props:[nE(t,/:(plac\w+)/,US+"input-$1")]})],r)}return""}))}}],YE=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,o,i=e.stylisPlugins||UE,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=[zE,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=sE(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([BE,HE].concat(i,u));o=function(e,t,n,r){l=n,function(e){qE(NE(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new VS({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return m.sheet.hydrate(s),m};function WE(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var GE=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},XE=function(e,t,n){GE(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var KE={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},JE=/[A-Z]|^ms/g,ZE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,QE=function(e){return 45===e.charCodeAt(1)},eM=function(e){return null!=e&&"boolean"!=typeof e},tM=$E((function(e){return QE(e)?e:e.replace(JE,"-$&").toLowerCase()})),nM=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ZE,(function(e,t,n){return oM={name:t,styles:n,next:oM},t}))}return 1===KE[e]||QE(e)||"number"!=typeof t||0===t?t:t+"px"};function rM(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 o=n;if(1===o.anim)return oM={name:o.name,styles:o.styles,next:oM},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)oM={name:a.name,styles:a.styles,next:oM},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=rM(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":eM(s)&&(r+=tM(i)+":"+nM(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=rM(e,t,a);switch(i){case"animation":case"animationName":r+=tM(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)eM(a[c])&&(r+=tM(i)+":"+nM(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=oM,l=n(e);return oM=s,rM(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var oM,iM=/label:\s*([^\s;{]+)\s*(;|$)/g;function aM(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,o="";oM=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=rM(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=rM(n,t,e[a]),r)o+=i[a]}iM.lastIndex=0;for(var s,l="";null!==(s=iM.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=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(o){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)}(o)+l;return{name:c,styles:o,next:oM}}var sM,lM,cM=!!B.useInsertionEffect&&B.useInsertionEffect,uM=cM||function(e){return e()},dM=cM||B.useLayoutEffect,mM=B.createContext("undefined"!=typeof HTMLElement?YE({key:"css"}):null),pM=mM.Provider,fM=function(e){return Y((function(t,n){var r=W(mM);return e(t,r,n)}))},hM=B.createContext({}),gM={}.hasOwnProperty,yM="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return GE(t,n,r),uM((function(){return XE(t,n,r)})),null},bM=fM((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[yM],i=[r],a="";"string"==typeof e.className?a=WE(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=aM(i,void 0,B.useContext(hM));a+=t.key+"-"+s.name;var l={};for(var c in e)gM.call(e,c)&&"css"!==c&&c!==yM&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),B.createElement(B.Fragment,null,B.createElement(vM,{cache:t,serialized:s,isStringTag:"string"==typeof o}),B.createElement(o,l))})),xM=bM,SM=function(e,t){var n=arguments;if(null==t||!gM.call(t,"css"))return B.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=xM,o[1]=function(e,t){var n={};for(var r in t)gM.call(t,r)&&(n[r]=t[r]);return n[yM]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return B.createElement.apply(null,o)};sM=SM||(SM={}),lM||(lM=sM.JSX||(sM.JSX={}));var EM=fM((function(e,t){var n=aM([e.styles],void 0,B.useContext(hM)),r=B.useRef();return dM((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),dM((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&XE(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function MM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return aM(t)}function CM(){var e=MM.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 wM=/^((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)-.*))$/,TM=$E((function(e){return wM.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),OM=function(e){return"theme"!==e},kM=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?TM:OM},RM=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},AM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return GE(t,n,r),uM((function(){return XE(t,n,r)})),null},NM=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=RM(t,n,i),l=s||kM(a),c=!l("as");return function(){var u=arguments,d=i&&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 m=u[0];d.push(m[0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],m[f])}var h=fM((function(e,t,n){var r=c&&e.as||a,i="",u=[],m=e;if(null==e.theme){for(var p in m={},e)m[p]=e[p];m.theme=B.useContext(hM)}"string"==typeof e.className?i=WE(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var f=aM(d.concat(u),t.registered,m);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?kM(r):l,g={};for(var y in e)c&&"as"===y||h(y)&&(g[y]=e[y]);return g.className=i,n&&(g.ref=n),B.createElement(B.Fragment,null,B.createElement(AM,{cache:t,serialized:f,isStringTag:"string"==typeof r}),B.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,yp({},n,r,{shouldForwardProp:RM(h,r,!0)})).apply(void 0,d)},h}}.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){NM[e]=NM(e)}));var LM={exports:{}},IM={},PM=_,DM=Symbol.for("react.element"),qM=Symbol.for("react.fragment"),zM=Object.prototype.hasOwnProperty,$M=PM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jM={key:!0,ref:!0,__self:!0,__source:!0};function FM(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)zM.call(t,r)&&!jM.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:DM,type:e,key:i,ref:a,props:o,_owner:$M.current}}IM.Fragment=qM,IM.jsx=FM,IM.jsxs=FM,LM.exports=IM;var _M=LM.exports;let BM;"object"==typeof document&&(BM=YE({key:"css",prepend:!0}));var HM=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 _M.jsx(EM,{styles:r})}
|
|
14
|
+
*/xh();var Mh=Date.now(),Ch="fnValues"+Mh,wh="fnStyle"+ ++Mh,Oh="@global",Th="@global ",kh=function(){function e(e,t,n){for(var r in this.type="global",this.at=Oh,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Zf(gp({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Rh=function(){function e(e,t,n){this.type="global",this.at=Oh,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,gp({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ah=/\s*,\s*/g;function Nh(e,t){for(var n=e.split(Ah),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Lh(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Oh)return new kh(e,t,n);if("@"===e[0]&&e.substr(0,8)===Th)return new Rh(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Oh]:null;if(o){for(var i in o)t.addRule(i,o[i],gp({},n,{selector:Nh(i,e.selector)}));delete r[Oh]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Oh){var i=Nh(o.substr(7),e.selector);t.addRule(i,r[o],gp({},n,{selector:i})),delete r[o]}}(e,t))}}}var Ih=/\s*,\s*/g,Ph=/&/g,Dh=/\$([\w-]+)/g;function qh(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Ih),r=e.split(Ih),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Ph,a):a+" "+l}return o}function n(e,t,n){if(n)return gp({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=gp({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),m="@"===u[0];if(d||m){if(a=n(l,c,a),d){var p=t(u,l.selector);s||(s=e(c,i)),p=p.replace(Dh,s);var f=l.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],gp({},a,{selector:p})):c.addRule(f,r[u],gp({},a,{selector:p}))}else m&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var zh=/[A-Z]/g,$h=/^ms-/,Fh={};function jh(e){return"-"+e.toLowerCase()}function _h(e){if(Fh.hasOwnProperty(e))return Fh[e];var t=e.replace(zh,jh);return Fh[e]=$h.test(t)?"-"+t:t}function Bh(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:_h(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Bh):t.fallbacks=Bh(e.fallbacks)),t}var Hh=Sh&&CSS?CSS.px:"px",Vh=Sh&&CSS?CSS.ms:"ms",Uh=Sh&&CSS?CSS.percent:"%";function Yh(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Wh=Yh({"animation-delay":Vh,"animation-duration":Vh,"background-position":Hh,"background-position-x":Hh,"background-position-y":Hh,"background-size":Hh,border:Hh,"border-bottom":Hh,"border-bottom-left-radius":Hh,"border-bottom-right-radius":Hh,"border-bottom-width":Hh,"border-left":Hh,"border-left-width":Hh,"border-radius":Hh,"border-right":Hh,"border-right-width":Hh,"border-top":Hh,"border-top-left-radius":Hh,"border-top-right-radius":Hh,"border-top-width":Hh,"border-width":Hh,"border-block":Hh,"border-block-end":Hh,"border-block-end-width":Hh,"border-block-start":Hh,"border-block-start-width":Hh,"border-block-width":Hh,"border-inline":Hh,"border-inline-end":Hh,"border-inline-end-width":Hh,"border-inline-start":Hh,"border-inline-start-width":Hh,"border-inline-width":Hh,"border-start-start-radius":Hh,"border-start-end-radius":Hh,"border-end-start-radius":Hh,"border-end-end-radius":Hh,margin:Hh,"margin-bottom":Hh,"margin-left":Hh,"margin-right":Hh,"margin-top":Hh,"margin-block":Hh,"margin-block-end":Hh,"margin-block-start":Hh,"margin-inline":Hh,"margin-inline-end":Hh,"margin-inline-start":Hh,padding:Hh,"padding-bottom":Hh,"padding-left":Hh,"padding-right":Hh,"padding-top":Hh,"padding-block":Hh,"padding-block-end":Hh,"padding-block-start":Hh,"padding-inline":Hh,"padding-inline-end":Hh,"padding-inline-start":Hh,"mask-position-x":Hh,"mask-position-y":Hh,"mask-size":Hh,height:Hh,width:Hh,"min-height":Hh,"max-height":Hh,"min-width":Hh,"max-width":Hh,bottom:Hh,left:Hh,top:Hh,right:Hh,inset:Hh,"inset-block":Hh,"inset-block-end":Hh,"inset-block-start":Hh,"inset-inline":Hh,"inset-inline-end":Hh,"inset-inline-start":Hh,"box-shadow":Hh,"text-shadow":Hh,"column-gap":Hh,"column-rule":Hh,"column-rule-width":Hh,"column-width":Hh,"font-size":Hh,"font-size-delta":Hh,"letter-spacing":Hh,"text-decoration-thickness":Hh,"text-indent":Hh,"text-stroke":Hh,"text-stroke-width":Hh,"word-spacing":Hh,motion:Hh,"motion-offset":Hh,outline:Hh,"outline-offset":Hh,"outline-width":Hh,perspective:Hh,"perspective-origin-x":Uh,"perspective-origin-y":Uh,"transform-origin":Uh,"transform-origin-x":Uh,"transform-origin-y":Uh,"transform-origin-z":Uh,"transition-delay":Vh,"transition-duration":Vh,"vertical-align":Hh,"flex-basis":Hh,"shape-margin":Hh,size:Hh,gap:Hh,grid:Hh,"grid-gap":Hh,"row-gap":Hh,"grid-row-gap":Hh,"grid-column-gap":Hh,"grid-template-rows":Hh,"grid-template-columns":Hh,"grid-auto-rows":Hh,"grid-auto-columns":Hh,"box-shadow-x":Hh,"box-shadow-y":Hh,"box-shadow-blur":Hh,"box-shadow-spread":Hh,"font-line-height":Hh,"text-shadow-x":Hh,"text-shadow-y":Hh,"text-shadow-blur":Hh});function Gh(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Gh(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Gh(o,t[o],n);else for(var i in t)t[i]=Gh(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Wh[e];return!a||0===t&&a===Hh?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Xh(e){void 0===e&&(e={});var t=Yh(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Gh(r,e[r],t);return e},onChangeValue:function(e,n){return Gh(n,e,t)}}}var Kh="",Jh="",Zh="",Qh="",eg=sf&&"ontouchstart"in document.documentElement;if(sf){var tg={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ng=document.createElement("p").style;for(var rg in tg)if(rg+"Transform"in ng){Kh=rg,Jh=tg[rg];break}"Webkit"===Kh&&"msHyphens"in ng&&(Kh="ms",Jh=tg.ms,Qh="edge"),"Webkit"===Kh&&"-apple-trailing-word"in ng&&(Zh="apple")}var og=Kh,ig=Jh,ag=Zh,sg=Qh,lg=eg;var cg={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===og?"-webkit-"+e:ig+e)}},ug={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===og?ig+"print-"+e:e)}},dg=/[-\s]+(.)?/g;function mg(e,t){return t?t.toUpperCase():""}function pg(e){return e.replace(dg,mg)}function fg(e){return pg("-"+e)}var hg,gg={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===og){var n="mask-image";if(pg(n)in t)return e;if(og+fg(n)in t)return ig+e}return e}},yg={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==ag||lg?e:ig+e)}},vg={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:ig+e)}},bg={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:ig+e)}},xg={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===og||"ms"===og&&"edge"!==sg?ig+e:e)}},Sg={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===og||"ms"===og||"apple"===ag?ig+e:e)}},Eg={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===og?"WebkitColumn"+fg(e)in t&&ig+"column-"+e:"Moz"===og&&("page"+fg(e)in t&&"page-"+e))}},Mg={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===og)return e;var n=e.replace("-inline","");return og+fg(n)in t&&ig+n}},Cg={supportedProperty:function(e,t){return pg(e)in t&&e}},wg={supportedProperty:function(e,t){var n=fg(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:og+n in t?ig+e:"Webkit"!==og&&"Webkit"+n in t&&"-webkit-"+e}},Og={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===og?""+ig+e:e)}},Tg={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===og?ig+"scroll-chaining":e)}},kg={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Rg={supportedProperty:function(e,t){var n=kg[e];return!!n&&(og+fg(n)in t&&ig+n)}},Ag={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Ng=Object.keys(Ag),Lg=function(e){return ig+e},Ig={supportedProperty:function(e,t,n){var r=n.multiple;if(Ng.indexOf(e)>-1){var o=Ag[e];if(!Array.isArray(o))return og+fg(o)in t&&ig+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(og+fg(o[0])in t))return!1;return o.map(Lg)}return!1}},Pg=[cg,ug,gg,yg,vg,bg,xg,Sg,Eg,Mg,Cg,wg,Og,Tg,Rg,Ig],Dg=Pg.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),qg=Pg.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Yp(t.noPrefill)),e}),[]),zg={};if(sf){hg=document.createElement("p");var $g=window.getComputedStyle(document.documentElement,"");for(var Fg in $g)isNaN(Fg)||(zg[$g[Fg]]=$g[Fg]);qg.forEach((function(e){return delete zg[e]}))}function jg(e,t){if(void 0===t&&(t={}),!hg)return e;if(null!=zg[e])return zg[e];"transition"!==e&&"transform"!==e||(t[e]=e in hg.style);for(var n=0;n<Dg.length&&(zg[e]=Dg[n](e,hg.style,t),!zg[e]);n++);try{hg.style[e]=""}catch(e){return!1}return zg[e]}var _g,Bg={},Hg={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Vg=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ug(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?jg(t):", "+jg(n);return r||(t||n)}function Yg(e,t){var n=t;if(!_g||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Bg[r])return Bg[r];try{_g.style[e]=n}catch(e){return Bg[r]=!1,!1}if(Hg[e])n=n.replace(Vg,Ug);else if(""===_g.style[e]&&("-ms-flex"===(n=ig+n)&&(_g.style[e]="-ms-flexbox"),_g.style[e]=n,""===_g.style[e]))return Bg[r]=!1,!1;return _g.style[e]="",Bg[r]=n,Bg[r]}function Wg(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=jg(n);i&&i!==n&&(o=!0);var a=!1,s=Yg(i,gf(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===og?e:"@"+ig+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Yg(t,gf(e))||e}}}function Gg(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}}function Xg(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=ff(e,{},n);return r[wh]=t,r},onProcessStyle:function(e,t){if(Ch in t||wh in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[Ch]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[wh];i&&(o.style=i(e)||{});var a=o[Ch];if(a)for(var s in a)o.prop(s,a[s](e),r)}},Lh(),qh(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Bh(e[t]);return e}return Bh(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=_h(t);return t===r?e:(n.prop(r,e),null)}},Xh(),"undefined"==typeof window?null:Wg(),Gg()]}}function Kg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=gp({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}sf&&(_g=document.createElement("p"));var Jg=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},Zg=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},Qg=function(e,t,n){e.get(t).delete(n)},ey=_.createContext(null);function ty(){return _.useContext(ey)}var ny,ry=xh(Xg()),oy={disableGeneration:!1,generateClassName:rf(),jss:ry,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},iy=_.createContext(oy);function ay(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=Rp(e,["children","injectFirst","disableGeneration"]),s=gp({},_.useContext(iy),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!ny){var l=document.head;ny=document.createComment("mui-inject-first"),l.insertBefore(ny,l.firstChild)}s.jss=xh({plugins:Xg().plugins,insertionPoint:ny})}return _.createElement(iy.Provider,{value:s},t)}var sy=-1e9;var ly={};function cy(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Zg(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Jg(o.sheetsManager,i,r,s));var l=gp({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=Zg(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,gp({link:!1},l))).attach(),o.sheetsCache&&Jg(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Eh(d)}if(s.dynamicStyles){var m=o.jss.createStyleSheet(s.dynamicStyles,gp({link:!0},l));m.update(t),m.attach(),n.dynamicSheet=m,n.classes=Kg({baseClasses:s.staticSheet.classes,newClasses:m.classes}),c&&c.add(m)}else n.classes=s.staticSheet.classes;s.refs+=1}}function uy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?ly:i,s=Rp(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=gp({},o);return Object.keys(i).forEach((function(e){a[e]=bp(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:sy+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ty()||a,r=gp({},_.useContext(iy),s),i=_.useRef(),c=_.useRef();!function(e,t){var n,r=_.useRef([]),o=_.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),_.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return cy(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Zg(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Qg(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),_.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Kg({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function dy(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=dy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function my(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=dy(e))&&(r&&(r+=" "),r+=t);return r}var py={exports:{}},fy={},hy="function"==typeof Symbol&&Symbol.for,gy=hy?Symbol.for("react.element"):60103,yy=hy?Symbol.for("react.portal"):60106,vy=hy?Symbol.for("react.fragment"):60107,by=hy?Symbol.for("react.strict_mode"):60108,xy=hy?Symbol.for("react.profiler"):60114,Sy=hy?Symbol.for("react.provider"):60109,Ey=hy?Symbol.for("react.context"):60110,My=hy?Symbol.for("react.async_mode"):60111,Cy=hy?Symbol.for("react.concurrent_mode"):60111,wy=hy?Symbol.for("react.forward_ref"):60112,Oy=hy?Symbol.for("react.suspense"):60113,Ty=hy?Symbol.for("react.suspense_list"):60120,ky=hy?Symbol.for("react.memo"):60115,Ry=hy?Symbol.for("react.lazy"):60116,Ay=hy?Symbol.for("react.block"):60121,Ny=hy?Symbol.for("react.fundamental"):60117,Ly=hy?Symbol.for("react.responder"):60118,Iy=hy?Symbol.for("react.scope"):60119;function Py(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case gy:switch(e=e.type){case My:case Cy:case vy:case xy:case by:case Oy:return e;default:switch(e=e&&e.$$typeof){case Ey:case wy:case Ry:case ky:case Sy:return e;default:return t}}case yy:return t}}}function Dy(e){return Py(e)===Cy}fy.AsyncMode=My,fy.ConcurrentMode=Cy,fy.ContextConsumer=Ey,fy.ContextProvider=Sy,fy.Element=gy,fy.ForwardRef=wy,fy.Fragment=vy,fy.Lazy=Ry,fy.Memo=ky,fy.Portal=yy,fy.Profiler=xy,fy.StrictMode=by,fy.Suspense=Oy,fy.isAsyncMode=function(e){return Dy(e)||Py(e)===My},fy.isConcurrentMode=Dy,fy.isContextConsumer=function(e){return Py(e)===Ey},fy.isContextProvider=function(e){return Py(e)===Sy},fy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===gy},fy.isForwardRef=function(e){return Py(e)===wy},fy.isFragment=function(e){return Py(e)===vy},fy.isLazy=function(e){return Py(e)===Ry},fy.isMemo=function(e){return Py(e)===ky},fy.isPortal=function(e){return Py(e)===yy},fy.isProfiler=function(e){return Py(e)===xy},fy.isStrictMode=function(e){return Py(e)===by},fy.isSuspense=function(e){return Py(e)===Oy},fy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===vy||e===Cy||e===xy||e===by||e===Oy||e===Ty||"object"==typeof e&&null!==e&&(e.$$typeof===Ry||e.$$typeof===ky||e.$$typeof===Sy||e.$$typeof===Ey||e.$$typeof===wy||e.$$typeof===Ny||e.$$typeof===Ly||e.$$typeof===Iy||e.$$typeof===Ay)},fy.typeOf=Py,py.exports=fy;var qy=py.exports,zy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$y={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jy={};function _y(e){return qy.isMemo(e)?Fy:jy[e.$$typeof]||zy}jy[qy.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jy[qy.Memo]=Fy;var By=Object.defineProperty,Hy=Object.getOwnPropertyNames,Vy=Object.getOwnPropertySymbols,Uy=Object.getOwnPropertyDescriptor,Yy=Object.getPrototypeOf,Wy=Object.prototype;var Gy=function e(t,n,r){if("string"!=typeof n){if(Wy){var o=Yy(n);o&&o!==Wy&&e(t,o,r)}var i=Hy(n);Vy&&(i=i.concat(Vy(n)));for(var a=_y(t),s=_y(n),l=0;l<i.length;++l){var c=i[l];if(!($y[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Uy(n,c);try{By(t,c,u)}catch(e){}}}}return t},Xy=te(Gy);function Ky(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=Rp(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(gp({theme:e},n))}}}:{root:t},l=uy(s,gp({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=_.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,m=Rp(t,["children","className","clone","component"]),p=my(l(t).root,c),f=m;if(n&&(o=f,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),f=a),u)return _.cloneElement(s,gp({className:my(s.props.className,p)},f));if("function"==typeof s)return s(gp({className:p},f));var h=d||e;return _.createElement(h,gp({ref:r,className:p},f),s)}));return Xy(c,e),c}}function Jy(e){var t=e.children,n=e.theme,r=ty(),o=_.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):gp({},e,t)}(r,n);return null!=e&&(e[tf]=null!==r),e}),[n,r]);return _.createElement(ey.Provider,{value:o},t)}var Zy=ef(),Qy=function(e){var t=Ky(e);return function(e,n){return t(e,gp({defaultTheme:Zy},n))}};function ev(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=Rp(t,["defaultTheme","withTheme","name"]),l=a,c=uy(e,gp({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=_.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=Rp(e,["classes","innerRef"]),u=c(gp({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=ty()||r,a&&(d=of({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),_.createElement(n,gp({ref:s||t,classes:u},d))}));return Xy(u,n),u}}(e,gp({defaultTheme:Zy},t))}function tv(e){if("string"!=typeof e)throw new Error(Ep(7));return e.charAt(0).toUpperCase()+e.slice(1)}function nv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function rv(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=rv(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ov(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=rv(e))&&(r&&(r+=" "),r+=t);return r}function iv(e){return e&&e.ownerDocument||document}function av(e){return iv(e).defaultView||window}function sv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var lv="undefined"!=typeof window?B.useLayoutEffect:B.useEffect;function cv(e){var t=B.useRef(e);return lv((function(){t.current=e})),B.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function uv(e,t){return B.useMemo((function(){return null==e&&null==t?null:function(n){sv(e,n),sv(t,n)}}),[e,t])}var dv=!0,mv=!1,pv=null,fv={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 hv(e){e.metaKey||e.altKey||e.ctrlKey||(dv=!0)}function gv(){dv=!1}function yv(){"hidden"===this.visibilityState&&mv&&(dv=!0)}function vv(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return dv||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!fv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function bv(){mv=!0,window.clearTimeout(pv),pv=window.setTimeout((function(){mv=!1}),100)}function xv(){var e=B.useCallback((function(e){var t,n=J.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",hv,!0),t.addEventListener("mousedown",gv,!0),t.addEventListener("pointerdown",gv,!0),t.addEventListener("touchstart",gv,!0),t.addEventListener("visibilitychange",yv,!0))}),[]);return{isFocusVisible:vv,onBlurVisible:bv,ref:e}}var Sv=!1,Ev=_.createContext(null),Mv="unmounted",Cv="exited",wv="entering",Ov="entered",Tv="exiting",kv=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Cv,r.appearStatus=wv):o=Ov:o=t.unmountOnExit||t.mountOnEnter?Mv:Cv,r.state={status:o},r.nextCallback=null,r}uf(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Mv?{status:Cv}: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!==wv&&n!==Ov&&(t=wv):n!==wv&&n!==Ov||(t=Tv)}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===wv){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Z.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cv&&this.setState({status:Mv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Z.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Sv?this.safeSetState({status:Ov},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:wv},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ov},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Z.findDOMNode(this);t&&!Sv?(this.props.onExit(r),this.safeSetState({status:Tv},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Cv},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Cv},(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:Z.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Mv)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=kp(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(Ev.Provider,{value:null},"function"==typeof n?n(e,r):_.cloneElement(_.Children.only(n),r))},t}(_.Component);function Rv(){}function Av(e,t){var n=Object.create(null);return e&&U.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&H(e)?t(e):e}(e)})),n}function Nv(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Lv(e,t,n){var r=Av(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(H(a)){var s=i in t,l=i in r,c=t[i],u=H(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&H(c)&&(o[i]=V(a,{onExited:n.bind(null,a),in:c.props.in,exit:Nv(a,"exit",e),enter:Nv(a,"enter",e)})):o[i]=V(a,{in:!1}):o[i]=V(a,{onExited:n.bind(null,a),in:!0,exit:Nv(a,"exit",e),enter:Nv(a,"enter",e)})}})),o}kv.contextType=Ev,kv.propTypes={},kv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rv,onEntering:Rv,onEntered:Rv,onExit:Rv,onExiting:Rv,onExited:Rv},kv.UNMOUNTED=Mv,kv.EXITED=Cv,kv.ENTERING=wv,kv.ENTERED=Ov,kv.EXITING=Tv;var Iv=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Pv=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(df(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}uf(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Av(n.children,(function(e){return V(e,{onExited:r.bind(null,e),in:!0,appear:Nv(e,"appear",n),enter:Nv(e,"enter",n),exit:Nv(e,"exit",n)})}))):Lv(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Av(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=gp({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=kp(e,["component","childFactory"]),o=this.state.contextValue,i=Iv(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?_.createElement(Ev.Provider,{value:o},i):_.createElement(Ev.Provider,{value:o},_.createElement(t,r,i))},t}(_.Component);Pv.propTypes={},Pv.defaultProps={component:"div",childFactory:function(e){return e}};function Dv(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var qv=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,m=Rp(e,["classes","className","component","square","elevation","variant"]);return B.createElement(i,gp({className:ov(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},m))})),zv=ev((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),gp({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"})(qv),$v="undefined"==typeof window?B.useEffect:B.useLayoutEffect;function Fv(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=B.useState(!1),m=d[0],p=d[1],f=ov(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=ov(t.child,m&&t.childLeaving,r&&t.childPulsate),y=cv(c);return $v((function(){if(!s){p(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),B.createElement("span",{className:f,style:h},B.createElement("span",{className:g}))}var jv=B.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=Rp(e,["center","classes","className"]),s=B.useState([]),l=s[0],c=s[1],u=B.useRef(0),d=B.useRef(null);B.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var m=B.useRef(!1),p=B.useRef(null),f=B.useRef(null),h=B.useRef(null);B.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var g=B.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(Yp(e),[B.createElement(Fv,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),y=B.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,d,y,v=c?null:h.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,E=x.clientY;u=Math.round(S-b.left),d=Math.round(E-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,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(C,2))}e.touches?null===f.current&&(f.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})},p.current=setTimeout((function(){f.current&&(f.current(),f.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=B.useCallback((function(){y({},{pulsate:!0})}),[y]),b=B.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&f.current)return e.persist(),f.current(),f.current=null,void(p.current=setTimeout((function(){b(e,t)})));f.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return B.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),B.createElement("span",gp({className:ov(o.root,i),ref:h},a),B.createElement(Pv,{component:null,exit:!0},l))})),_v=ev((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"})(B.memo(jv)),Bv=B.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,m=void 0!==d&&d,p=e.disableRipple,f=void 0!==p&&p,h=e.disableTouchRipple,g=void 0!==h&&h,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,S=e.onClick,E=e.onFocus,M=e.onFocusVisible,C=e.onKeyDown,w=e.onKeyUp,O=e.onMouseDown,T=e.onMouseLeave,k=e.onMouseUp,R=e.onTouchEnd,A=e.onTouchMove,N=e.onTouchStart,L=e.onDragLeave,I=e.tabIndex,P=void 0===I?0:I,D=e.TouchRippleProps,q=e.type,z=void 0===q?"button":q,$=Rp(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=B.useRef(null);var j=B.useRef(null),_=B.useState(!1),H=_[0],V=_[1];m&&H&&V(!1);var U=xv(),Y=U.isFocusVisible,W=U.onBlurVisible,G=U.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return cv((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}B.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),B.useEffect((function(){H&&v&&!f&&j.current.pulsate()}),[f,v,H]);var K=X("start",O),Z=X("stop",L),Q=X("stop",k),ee=X("stop",(function(e){H&&e.preventDefault(),T&&T(e)})),te=X("start",N),ne=X("stop",R),re=X("stop",A),oe=X("stop",(function(e){H&&(W(e),V(!1)),x&&x(e)}),!1),ie=cv((function(e){F.current||(F.current=e.currentTarget),Y(e)&&(V(!0),M&&M(e)),E&&E(e)})),ae=function(){var e=J.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=B.useRef(!1),le=cv((function(e){v&&!se.current&&H&&j.current&&" "===e.key&&(se.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!m&&(e.preventDefault(),S&&S(e))})),ce=cv((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(se.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),w&&w(e),S&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&S(e)})),ue=u;"button"===ue&&$.href&&(ue="a");var de={};"button"===ue?(de.type=z,de.disabled=m):("a"===ue&&$.href||(de.role="button"),de["aria-disabled"]=m);var me=uv(r,t),pe=uv(G,F),fe=uv(me,pe),he=B.useState(!1),ge=he[0],ye=he[1];B.useEffect((function(){ye(!0)}),[]);var ve=ge&&!f&&!m;return B.createElement(ue,gp({className:ov(s.root,l,H&&[s.focusVisible,b],m&&s.disabled),onBlur:oe,onClick:S,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:K,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:m?-1:P},de,$),a,ve?B.createElement(_v,gp({ref:j,center:i},D)):null)})),Hv=ev({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"})(Bv),Vv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Uv=B.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,m=void 0!==d&&d,p=e.noWrap,f=void 0!==p&&p,h=e.paragraph,g=void 0!==h&&h,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?Vv:b,S=Rp(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=l||(g?"p":x[v]||Vv[v])||"span";return B.createElement(E,gp({className:ov(o.root,i,"inherit"!==v&&o[v],"initial"!==s&&o["color".concat(tv(s))],f&&o.noWrap,m&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(tv(r))],"initial"!==u&&o["display".concat(tv(u))]),ref:t},S))})),Yv=ev((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"})(Uv),Wv=B.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,m=void 0!==d&&d,p=e.disableFocusRipple,f=void 0!==p&&p,h=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,E=e.type,M=void 0===E?"button":E,C=e.variant,w=void 0===C?"text":C,O=Rp(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),T=S&&B.createElement("span",{className:ov(r.startIcon,r["iconSize".concat(tv(x))])},S),k=h&&B.createElement("span",{className:ov(r.endIcon,r["iconSize".concat(tv(x))])},h);return B.createElement(Hv,gp({className:ov(r.root,r[w],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(w).concat(tv(a))],"medium"!==x&&[r["".concat(w,"Size").concat(tv(x))],r["size".concat(tv(x))]],m&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:ov(r.focusVisible,g),ref:t,type:M},O),B.createElement("span",{className:r.label},T,n,k))})),Gv=ev((function(e){return{root:gp({},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:Tp(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:Tp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Tp(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(Tp(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Tp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Tp(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Tp(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"})(Wv);var Xv="undefined"!=typeof window?B.useLayoutEffect:B.useEffect,Kv=B.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=B.useState(null),l=s[0],c=s[1],u=uv(B.isValidElement(n)?n.ref:null,t);return Xv((function(){i||c(function(e){return e="function"==typeof e?e():e,J.findDOMNode(e)}(r)||document.body)}),[r,i]),Xv((function(){if(l&&!i)return sv(t,l),function(){sv(t,null)}}),[t,l,i]),Xv((function(){a&&(l||i)&&a()}),[a,l,i]),i?B.isValidElement(n)?B.cloneElement(n,{ref:u}):n:l?J.createPortal(n,l):l}));function Jv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Zv(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Qv(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Yp(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&Jv(e,r)}))}function eb(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function tb(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=iv(e);return t.body===e?av(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){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:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(Zv(i)+a,"px"),n=iv(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(Zv(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var nb=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 lf(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&&Jv(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);Qv(t,e.mountNode,e.modalRef,r,!0);var o=eb(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=eb(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=tb(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=eb(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&&Jv(e.modalRef,!0),Qv(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&Jv(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function rb(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=B.useRef(),m=B.useRef(null),p=B.useRef(null),f=B.useRef(),h=B.useRef(null),g=B.useCallback((function(e){h.current=J.findDOMNode(e)}),[]),y=uv(t.ref,g),v=B.useRef();return B.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(f.current=l().activeElement),B.useEffect((function(){if(u){var e=iv(h.current);r||!h.current||h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),h.current.focus());var t=function(){null!==h.current&&(e.hasFocus()&&!i&&c()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?p.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(f.current&&f.current.focus&&f.current.focus(),f.current=null)}}}),[r,i,s,c,u]),B.createElement(B.Fragment,null,B.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),B.cloneElement(t,{ref:y}),B.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))}var ob={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"}},ib=B.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=Rp(e,["invisible","open"]);return o?B.createElement("div",gp({"aria-hidden":!0,ref:t},i,{style:gp({},ob.root,r?ob.invisible:{},i.style)})):null}));var ab=new nb,sb=B.forwardRef((function(e,t){var n=ty(),r=of({name:"MuiModal",props:gp({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?ib:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,m=void 0!==d&&d,p=r.disableBackdropClick,f=void 0!==p&&p,h=r.disableEnforceFocus,g=void 0!==h&&h,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,S=r.disableRestoreFocus,E=void 0!==S&&S,M=r.disableScrollLock,C=void 0!==M&&M,w=r.hideBackdrop,O=void 0!==w&&w,T=r.keepMounted,k=void 0!==T&&T,R=r.manager,A=void 0===R?ab:R,N=r.onBackdropClick,L=r.onClose,I=r.onEscapeKeyDown,P=r.onRendered,D=r.open,q=Rp(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),z=B.useState(!0),$=z[0],F=z[1],j=B.useRef({}),_=B.useRef(null),H=B.useRef(null),V=uv(H,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return iv(_.current)},W=function(){return j.current.modalRef=H.current,j.current.mountNode=_.current,j.current},G=function(){A.mount(W(),{disableScrollLock:C}),H.current.scrollTop=0},X=cv((function(){var e=function(e){return e="function"==typeof e?e():e,J.findDOMNode(e)}(u)||Y().body;A.add(W(),e),H.current&&G()})),K=B.useCallback((function(){return A.isTopModal(W())}),[A]),Z=cv((function(e){_.current=e,e&&(P&&P(),D&&K()?G():Jv(H.current,!0))})),Q=B.useCallback((function(){A.remove(W())}),[A]);if(B.useEffect((function(){return function(){Q()}}),[Q]),B.useEffect((function(){D?X():U&&c||Q()}),[D,Q,U,c,X]),!k&&!D&&(!U||$))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Qp}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=nv((function(){F(!1)}),s.props.onEnter),te.onExited=nv((function(){F(!0),c&&Q()}),s.props.onExited)),B.createElement(Kv,{ref:Z,container:u,disablePortal:x},B.createElement("div",gp({ref:V,onKeyDown:function(e){"Escape"===e.key&&K()&&(I&&I(e),v||(e.stopPropagation(),L&&L(e,"escapeKeyDown")))},role:"presentation"},q,{style:gp({},ee.root,!D&&$?ee.hidden:{},q.style)}),O?null:B.createElement(i,gp({open:D,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),!f&&L&&L(e,"backdropClick"))}},a)),B.createElement(rb,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:E,getDoc:Y,isEnabled:K,open:D},B.cloneElement(s,te))))})),lb=B.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,m=e.orientation,p=void 0===m?"horizontal":m,f=e.role,h=void 0===f?"hr"!==s?"separator":void 0:f,g=e.variant,y=void 0===g?"fullWidth":g,v=Rp(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return B.createElement(s,gp({className:ov(o.root,i,"fullWidth"!==y&&o[y],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===p&&o.vertical),role:h,ref:t},v))})),cb=ev((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:Tp(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"})(lb);function ub(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var db={entering:{opacity:1,transform:ub(1)},entered:{opacity:1,transform:"none"}},mb=B.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,m=e.style,p=e.timeout,f=void 0===p?"auto":p,h=e.TransitionComponent,g=void 0===h?kv:h,y=Rp(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=B.useRef(),b=B.useRef(),x=ty()||Zy,S=x.unstable_strictMode&&!o,E=B.useRef(null),M=uv(n.ref,t),C=uv(S?E:void 0,M),w=function(e){return function(t,n){if(e){var r=Wp(S?[E.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},O=w(l),T=w((function(e,t){!function(e){e.scrollTop}(e);var n,r=Dv({style:m,timeout:f},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===f?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=o,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:i}),x.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),k=w(s),R=w(d),A=w((function(e){var t,n=Dv({style:m,timeout:f},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===f?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:o}),x.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=ub(.75),c&&c(e)})),N=w(u);return B.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),B.createElement(g,gp({appear:!0,in:i,nodeRef:S?E:void 0,onEnter:T,onEntered:k,onEntering:O,onExit:A,onExited:N,onExiting:R,addEndListener:function(e,t){var n=S?e:t;"auto"===f&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===f?null:f},y),(function(e,t){return B.cloneElement(n,gp({style:gp({opacity:0,transform:ub(.75),visibility:"exited"!==e||i?void 0:"hidden"},db[e],m,n.props.style),ref:C},t))}))}));mb.muiSupportAuto=!0;var pb=B.createContext({}),fb=B.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,m=Rp(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=B.useMemo((function(){return{dense:l}}),[l]);return B.createElement(pb.Provider,{value:p},B.createElement(a,gp({className:ov(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},m),d,n))})),hb=ev({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(fb),gb="undefined"==typeof window?B.useEffect:B.useLayoutEffect,yb=B.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,m=e.ContainerComponent,p=void 0===m?"li":m,f=e.ContainerProps,h=(f=void 0===f?{}:f).className,g=Rp(f,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,S=e.disableGutters,E=void 0!==S&&S,M=e.divider,C=void 0!==M&&M,w=e.focusVisibleClassName,O=e.selected,T=void 0!==O&&O,k=Rp(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),R=B.useContext(pb),A={dense:v||R.dense||!1,alignItems:r},N=B.useRef(null);gb((function(){i&&N.current&&N.current.focus()}),[i]);var L,I,P=B.Children.toArray(l),D=P.length&&(L=P[P.length-1],I=["ListItemSecondaryAction"],B.isValidElement(L)&&-1!==I.indexOf(L.type.muiName)),q=uv(B.useCallback((function(e){N.current=J.findDOMNode(e)}),[]),t),z=gp({className:ov(c.root,u,A.dense&&c.dense,!E&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,D&&c.secondaryAction,T&&c.selected),disabled:x},k),$=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=ov(c.focusVisible,w),$=Hv),D?($=z.component||d?$:"div","li"===p&&("li"===$?$="div":"li"===z.component&&(z.component="div")),B.createElement(pb.Provider,{value:A},B.createElement(p,gp({className:ov(c.container,h),ref:q},g),B.createElement($,z,P),P.pop()))):B.createElement(pb.Provider,{value:A},B.createElement($,gp({ref:q},z),P))})),vb=ev((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"})(yb),bb=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Rp(e,["classes","className"]),i=B.useContext(pb);return B.createElement("div",gp({className:ov(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),xb=ev((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(bb),Sb=B.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,m=e.secondaryTypographyProps,p=Rp(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=B.useContext(pb).dense,h=null!=c?c:n;null==h||h.type===Yv||a||(h=B.createElement(Yv,gp({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===Yv||a||(g=B.createElement(Yv,gp({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},m),g)),B.createElement("div",gp({className:ov(r.root,o,f&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),Eb=ev({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Sb);function Mb(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Cb(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function wb(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Ob(e){return"function"==typeof e?e():e}var Tb=B.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,m=e.container,p=e.elevation,f=void 0===p?8:p,h=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,S=e.onExit,E=e.onExited,M=e.onExiting,C=e.open,w=e.PaperProps,O=void 0===w?{}:w,T=e.transformOrigin,k=void 0===T?{vertical:"top",horizontal:"left"}:T,R=e.TransitionComponent,A=void 0===R?mb:R,N=e.transitionDuration,L=void 0===N?"auto":N,I=e.TransitionProps,P=void 0===I?{}:I,D=Rp(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"]),q=B.useRef(),z=B.useCallback((function(e){if("anchorPosition"===l)return a;var t=Ob(r),n=(t&&1===t.nodeType?t:iv(q.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Mb(n,o),left:n.left+Cb(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),$=B.useCallback((function(e){var t=0;if(h&&"anchorEl"===l){var n=h(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,l,h]),F=B.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Mb(e,k.vertical)+t,horizontal:Cb(e,k.horizontal)}}),[k.horizontal,k.vertical]),j=B.useCallback((function(e){var t=$(e),n={width:e.offsetWidth,height:e.offsetHeight},o=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:wb(o)};var i=z(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=av(Ob(r)),m=d.innerHeight-y,p=d.innerWidth-y;if(a<y){var f=a-y;a-=f,o.vertical+=f}else if(c>m){var h=c-m;a-=h,o.vertical+=h}if(s<y){var g=s-y;s-=g,o.horizontal+=g}else if(u>p){var v=u-p;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:wb(o)}}),[r,l,z,$,F,y]),_=B.useCallback((function(){var e=q.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]),H=B.useCallback((function(e){q.current=J.findDOMNode(e)}),[]);B.useEffect((function(){C&&_()})),B.useImperativeHandle(n,(function(){return C?{updatePosition:function(){_()}}:null}),[C,_]),B.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){_()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,_]);var V=L;"auto"!==L||A.muiSupportAuto||(V=void 0);var U=m||(r?iv(Ob(r)).body:void 0);return B.createElement(sb,gp({container:U,open:C,ref:t,BackdropProps:{invisible:!0},className:ov(u.root,d)},D),B.createElement(A,gp({appear:!0,in:C,onEnter:v,onEntered:b,onExit:S,onExited:E,onExiting:M,timeout:V},P,{onEntering:nv((function(e,t){x&&x(e,t),_()}),P.onEntering)}),B.createElement(zv,gp({elevation:f,ref:H},O,{className:ov(u.paper,O.className)}),c)))})),kb=ev({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Tb);function Rb(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Ab({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Rb(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return _.createElement("i",{style:o},_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},_.createElement("path",{d:e})))}const Nb="alternative-menu-item",Lb=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>uy((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 _.createElement(vb,Um({className:`${o.root} ${n}`},r))},Ib=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Nb}`);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 Pb({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=De.detectTextDirection(e);return _.createElement(Lb,{nested:r,role:"menuitem",button:!0,onClick:n,className:Nb,onKeyDown:Ib,dir:a,autoFocus:t},_.createElement(Eb,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),_.createElement(xb,{style:{minWidth:16}},_.createElement(Ab,{d:t?km:""})),o&&_.createElement(xb,{style:{minWidth:16}},_.createElement(Ab,{d:o.d})))}Pb.propTypes={title:Xm.string.isRequired,selected:Xm.bool,onClick:Xm.func.isRequired,nested:Xm.bool,icon:Xm.shape({d:Xm.string.isRequired}),bold:Xm.bool,dir:Xm.string.isRequired},Pb.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Lb.propTypes={nested:Xm.bool,className:Xm.string},Lb.defaultProps={nested:!1,className:Nb};const Db={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 qb({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const c=i.map(((t,o)=>{var s;return _.createElement(_.Fragment,{key:t.id},_.createElement(Pb,{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&&_.createElement(hb,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>_.createElement(Pb,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&_.createElement(cb,{key:`divider-${t.id}`}))}));return _.createElement(kb,Um({anchorEl:t,open:s,onClose:a},Db[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),_.createElement(hb,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}qb.propTypes={chartId:Xm.string.isRequired,alignTo:Xm.any,currentId:Xm.string.isRequired,dir:Xm.string.isRequired,dock:Xm.string.isRequired,list:Xm.array,onClose:Xm.func.isRequired,show:Xm.bool.isRequired,instruction:Xm.string.isRequired},qb.defaultProps={list:[],alignTo:null};const zb="title-button",$b="active-title-button",Fb=Qy((({children:e,...t})=>_.createElement(Gv,Um({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),jb=Qy(Gv)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class _b extends _.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=_.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:o}=this.props;n&&(r||o)&&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(`.${zb}`);t&&(t.focus(),t.classList.add($b))}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(`.${zb}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${$b}`);e&&(e.classList.remove($b),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,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},m=t.breadcrumbs.length,p=o||Boolean(!t.drillUp)||this.state.inSelection,f=t.breadcrumbs.map(((e,n)=>_.createElement(Fb,{style:{display:"flex",alignItems:"center",color:p&&"rgba(89, 89, 89, 0.8)",pointerEvents:p?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>p?void 0:t.drillUp(m-n),title:e},_.createElement("span",{style:d},e),_.createElement(Ab,Um({},Am,{size:"small",style:{margin:"0 8px"}}))))),h=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||o||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&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=De.detectTextDirection(t.text),S=_.createElement(Fb,{"aria-label":r.get(`Accessibility.${n&&h?"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:`${zb} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&_.createElement(Ab,Um({},Tm,{size:"small",title:r.get("Tooltip.selections.locked")})),_.createElement("span",{style:d,dir:x},t.text),n&&h&&_.createElement(Ab,Um({},Rm,{size:"small",style:{margin:"0 8px"}})));return _.createElement(_.Fragment,null,t.icon&&t.icon.onClick&&_.createElement(jb,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:b})},_.createElement(Ab,Um({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&_.createElement(Ab,Um({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),f,_.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},S),n&&h&&_.createElement(qb,{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 Bb(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function Hb(e){function t(e){return!e.isDimension&&Se.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:o,hyperCubeDef:i,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:m,skipAttributeExpressions:p,translator:f,supportConditional:h=!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=i&&i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],S=r||o[a?"qDimensionInfo":"qMeasureInfo"],E=a?_m:Hm,M=a?Bm:Vm,C=Boolean(l&&l.colorSupport&&l.modifiers),w=C&&((O=this.settings.settings).isDimension&&Se.getValue(O,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var O;const T=S.map(((t,r)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:r,y=M(t,i,l,e),v=r===S.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,O=C||b?E({column:i,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:Bb(g),model:l,onChange:c,skipAttributeExpressions:p,translator:f,allowChangeOfAlternatives:C}):void 0;return _.createElement(_.Fragment,{key:t.cId},_.createElement(_b,{chartId:null!==(o=null==l?void 0:l.id)&&void 0!==o?o:"",showGroupDimOptions:b,popover:O,titleData:y,model:l,translator:f,selections:m,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:w,supportConditional:h}),!v&&_.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return _.createElement("div",{style:v,dir:y},T)}}}_b.propTypes={chartId:Xm.string.isRequired,disabled:Xm.bool.isRequired,padding:Xm.string,minWidth:Xm.string,titleData:Xm.shape({breadcrumbs:Xm.arrayOf(Xm.string).isRequired,icon:Xm.shape({path:Xm.shape({d:Xm.string.isRequired}),tooltip:Xm.string.isRequired,onClick:Xm.func}),index:Xm.number.isRequired,locked:Xm.bool.isRequired,text:Xm.string.isRequired,popoverText:Xm.string.isRequired,drillUp:Xm.func,id:Xm.string.isRequired}).isRequired,popover:Xm.shape({dir:Xm.string.isRequired,dock:Xm.string.isRequired,getPopoverOptions:Xm.func.isRequired}),translator:Xm.shape({get:Xm.func.isRequired}).isRequired,selections:Xm.shape({isActive:Xm.func,addListener:Xm.func,removeListener:Xm.func}),style:Xm.shape({fontSize:Xm.string,color:Xm.string,fontFamily:Xm.string}).isRequired,isDimension:Xm.bool.isRequired,hasAlternative:Xm.bool.isRequired,supportConditional:Xm.bool.isRequired,showGroupDimOptions:Xm.bool.isRequired},_b.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const Vb=ef({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 Ub=rf({productionPrefix:"qfed4",disableGlobal:!0,seed:""});function Yb(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,o=e();const i={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=o.scaleRatio.x,n=o.scaleRatio.y;return r.style.left=`${Math.round(o.margin.left+o.x*t)}px`,r.style.top=`${Math.round(o.margin.top+o.y*n)}px`,r.style.width=`${Math.round(o.width)}px`,r.style.height=`${Math.round(o.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",Z.render(function(e,t){return _.createElement(ay,{generateClassName:t},_.createElement(Jy,{theme:Vb},e))}(e,Ub),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&Z.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(Z.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}function Wb(e,t,n,r){const o=function(t){const n=String(t);return e(n)};return o.ticks=()=>t.map((t=>{const i=o([t.data.value,r?n-1:0]),a=o([t.data.value,r?0:n-1])+e.bandwidth();return{position:(i+a)/2,label:t.label,data:t.data,start:i,end:a}})),o.bandwidth=()=>e.bandwidth(),o.data=()=>e.data(),o.domain=()=>e.domain(),o.pxScale=function(r){const o=e.pxScale(r);return o===e?this:Wb(o,t,n)},o}function Gb(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const o=t(e,n,r),i=o.domain(),a=o.ticks(),s=[],l=e.measureCount;return i.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),o.domain(s),Wb(o,a,l,e.invert)}))}const Xb={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:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(me({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function Kb({i:e,width:t,height:n,resolved:r,keys:o,flipXY:i,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=me({},{major:l,majorEnd:c},r.minor.items[e]);o.forEach((t=>{d[t]=r[t].items[e]}));const m=i?n:t,p=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:o}){const i=e>=0?1:-1;let a=Math.min(i*e*t,Number.isNaN(Number(r))?o:r/o);return a=Number.isNaN(Number(n))?a:Math.max(n/o,a),a*i}({bandwidth:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:m}),f=(u-p)/2,h=f+d.major+p/2;return{item:d,boxCenter:h,boxWidth:p,boxPadding:f,rendWidth:t,rendHeight:n}}function Jb({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=me(!0,{},n||{},r||{}),c={major:"horizontal"===o.orientation?a:i,minor:"horizontal"===o.orientation?i:a},u=o.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:me(!0,{},{binStart:{scale:o.major.scale,ref:o.major.ref.start},binEnd:{scale:o.major.scale,ref:o.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:me(!0,{},{binStart:{scale:o.major.scale,ref:"binStart"},binEnd:{scale:o.major.scale,ref:"binEnd"}},o.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:o.major}});const m=o.minor||{};let p;const f={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:me(!0,{},{start:{scale:m.scale,ref:"start"},end:{scale:m.scale,ref:"end"},min:{scale:m.scale,ref:"min"},max:{scale:m.scale,ref:"max"},med:{scale:m.scale,ref:"med"}},m)})};for(let n=0,r=e.length;n<r;n++)p=e[n],f[p]=s.resolve({data:t,defaults:l[p],settings:o[p],scaled:c});return f}const Zb=["oob"];const Qb={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:o,style:i,resolver:a,symbol:s}=this,l=Jb({keys:Zb,data:o,defaultSettings:{oob:Xb.getDefaultSettings()},style:i,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:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=Kb}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:m,rendWidth:p,rendHeight:f}=s({i:u,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(Xb.createOob({oob:d.oob,dockValue:a,boxCenter:m,rendWidth:p,rendHeight:f,flipXY:n,symbol:i}));const e={type:"container",data:h,collider:{type:"bounds"},children:g};l.push(e)}}return l}({width:e,height:t,flipXY:r,resolved:l,keys:Zb,symbol:s,dockValue:n});return d}},ex={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},tx=["hat"];function nx(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 rx({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:o,flipXY:i}){let a="x",s="y",l=r,c=o,u=e.hat.alignment||0;i&&(a="y",s="x",l=o,c=r,u=1-u);const d=(n+e.major)*l;let m=[{[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 p=me({},e.hat,{type:"path",d:nx(m)});m=[{[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[p,me({},e.hat,{type:"path",d:nx(m)})]}const ox={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:o,resolver:i}=this,a=Jb({keys:tx,data:r,defaultSettings:ex,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=Kb}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:m,rendHeight:p}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),f=s[l].data,h=[];c.hat.show&&h.push(...rx({item:c,boxWidth:u,boxPadding:d,rendWidth:m,rendHeight:p,flipXY:n}));const g={type:"container",data:f,collider:{type:"bounds"},children:h};a.push(g)}return a}({width:e,height:t,flipXY:n,resolved:a,keys:tx});return c}},ix="point-label-cross-placement";var ax="unclassified",sx="equal-equal",lx="equal-higher",cx="equal-lower",ux="equal-void",dx="higher-equal",mx="higher-higher-acute",px="higher-higher-obtuse",fx="higher-lower-negative",hx="higher-lower-positive",gx="higher-void",yx="lower-equal",vx="lower-higher-negative",bx="lower-higher-positive",xx="lower-lower-acute",Sx="lower-lower-obtuse",Ex="lower-void",Mx="void-equal",Cx="void-higher",wx="void-lower",Ox="void-void";function Tx(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function kx(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),o=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),i=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((o*o+r*r-i*i)/(2*o*r))*(180/Math.PI)}function Rx({previous:e,current:t,next:n}){const r=e&&e.value,o=t&&t.value,i=n&&n.value;return e||n?e?n?r===o?o===i?sx:o<i?lx:cx:o===i?r>o?dx:yx:r>o?o<i?kx(e,t,n)>90?px:mx:Tx(e,t)>Tx(e,n)?hx:fx:o>i?kx(e,t,n)>90?Sx:xx:Tx(e,t)>Tx(e,n)?bx:vx:r===o?ux:r>o?gx:Ex:o===i?Mx:o<i?Cx:wx:Ox}var Ax={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 Nx({bounds:e,size:t}){const{x:n,y:r,width:o,height:i}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+o/2)>=0&&Math.ceil(n+o/2)<=t.width&&Math.floor(r+i/2)>=0&&Math.ceil(r+i/2)<=t.height:Math.floor(n+o)>0&&Math.ceil(n)<t.width&&Math.floor(r+i/2)>=0&&Math.ceil(r+i/2)<=t.height}function Lx({config:e,crossPlacements:t,node:n,line:r,groupIndex:o,extract:i,style:a,measureText:s,size:l,horizontal:c,rtl:u,meta:d,showLabel:m}){var p,f;const h=i.label(n.data);if("string"!=typeof h&&"number"!=typeof h||""===h)return!1;const g=(()=>{var e,t;const r=s({fontFamily:a.fontFamily,fontSize:a.fontSize,text:h});if(null===(e=n.data)||void 0===e||null===(e=e.value)||void 0===e||!e.maxLabelWidth||r.width<=(null===(t=n.data)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.maxLabelWidth))return r;const o=`${a.fontSize} ${a.fontFamily}`,i=Di.tokenize(h,o,"…",3,n.data.value.maxLabelWidth);return r.lines=i.map((e=>({text:e,size:s({fontFamily:a.fontFamily,fontSize:a.fontSize,text:e})}))),r.width=Math.max(...r.lines.map((e=>e.size.width))),r.height*=i.length,r})(),{localBounds:y}=n,{"stroke-width":v}=n.attrs,b=i.pointValue(n.data),x=!(null===(p=n.data)||void 0===p||null===(p=p.value)||void 0===p||!p.hasBackground),S=x?{X:3,Y:2}:{X:1,Y:0},E=x?{X:2,Y:2}:{X:0,Y:0},M={x:y.x+y.width/2,y:y.y+y.height/2,width:g.width+2*S.X+2*E.X,height:g.height+2*S.Y+2*E.Y},C=`${M.x}-${M.y}`,w=!c&&!u,O=c?l.height:l.width,T=(c?M.y:M.x)/O,k=(w?1-T:T)<=(O<=200?.25:.1),R=null===(f=n.data)||void 0===f||null===(f=f.value)||void 0===f||null===(f=f.label)||void 0===f?void 0:f.placement,A=Object.keys(Ax).map((e=>Ax[e])),N={key:C,config:e,node:n,line:r,group:o,value:b,labelMeasurements:g,bounds:M,inside:Nx({bounds:y,size:l}),border:v?v/2:0,classification:ax,setClassification(e){N.classification=e},preferences:[],setPreferences(e){N.preferences.push(...e)},fixedPlacement:A.includes(R)?R:void 0,placement:void 0,setPlacement(e){N.placement=e,t.setPlacement(e)},duplicate:!1,setDuplicate(){N.duplicate=!0},extreme:d.getExtreme(C),elite:k,show:e.labels&&m(n)};return N}function Ix({configs:e,crossPlacements:t,nodes:n,extract:r,style:o,measureText:i,size:a,horizontal:s,rtl:l,showLabel:c}){const u=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:o,left:i}=t;return[n,r,o,i].some((t=>-1!==t.indexOf(e)))}}}({nodes:n}),d=function({nodes:e,by:t,lineId:n}){const r=e.reduce(((e,r,o)=>{const i=t(r.data);return e[i]||(e[i]={items:[],index:o}),e[i].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:n,by:r.majorValue,lineId:r.lineId}).map(((n,d)=>n.map((n=>({line:n.line,item:Lx({config:e.get(n.node.key),crossPlacements:t,node:n.node,line:n.line,groupIndex:d,extract:r,style:o,measureText:i,size:a,horizontal:s,rtl:l,meta:u,showLabel:c})}))).filter((e=>e.item)).reduce(((e,t)=>(e[t.line]=t.item,e)),{})));return d.filter((e=>Object.keys(e).length))}var Px={[sx]:[Ax.TOP,Ax.BOTTOM],[lx]:[Ax.BOTTOM,Ax.BOTTOM_RIGHT],[cx]:[Ax.TOP,Ax.TOP_RIGHT],[ux]:[Ax.TOP,Ax.BOTTOM],[dx]:[Ax.LEFT,Ax.BOTTOM_LEFT,Ax.TOP,Ax.TOP_RIGHT],[mx]:[Ax.BOTTOM,Ax.BOTTOM_LEFT,Ax.LEFT,Ax.TOP_RIGHT],[px]:[Ax.BOTTOM,Ax.TOP],[fx]:[Ax.TOP,Ax.TOP_RIGHT,Ax.RIGHT],[hx]:[Ax.BOTTOM,Ax.BOTTOM_LEFT,Ax.LEFT],[gx]:[Ax.TOP],[yx]:[Ax.TOP],[vx]:[Ax.TOP,Ax.TOP_LEFT],[bx]:[Ax.BOTTOM_RIGHT],[xx]:[Ax.TOP,Ax.TOP_LEFT,Ax.LEFT,Ax.TOP_RIGHT,Ax.RIGHT],[Sx]:[Ax.TOP,Ax.BOTTOM],[Ex]:[Ax.TOP],[Mx]:[Ax.TOP],[Cx]:[Ax.TOP,Ax.BOTTOM],[wx]:[Ax.TOP,Ax.BOTTOM,Ax.LEFT],[Ox]:[Ax.TOP],[ax]:[Ax.TOP,Ax.BOTTOM,Ax.RIGHT,Ax.LEFT,Ax.TOP_RIGHT,Ax.BOTTOM_RIGHT,Ax.BOTTOM_LEFT,Ax.TOP_LEFT]};function Dx({configs:e,crossPlacements:t,nodes:n,extract:r,style:o,measureText:i,size:a,horizontal:s,rtl:l,showLabel:c}){const u=Ix({configs:e,crossPlacements:t,nodes:n,extract:r,style:o,measureText:i,size:a,horizontal:s,rtl:l,showLabel:c}),d=[...u.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[m]=d,p=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 o=Object.keys(r).map((e=>r[e])),i=[];for(let e=0;e<o.length;e++)for(let n=0;n<o[e].length-1;n++){const r=o[e][n],a=o[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&&i.push(s)}return i}({groups:u,threshold:null==m?void 0:m.node.localBounds.height}),f={getItems:()=>d,getLines:()=>p};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 o=n[r];if(!o.config.fixed){const n=Rx({previous:e[t-1]&&e[t-1][o.line],current:o,next:e[t+1]&&e[t+1][o.line]});o.setClassification(n)}}}}({groups:u}),f.getItems().forEach((e=>{e.setPreferences(Px[e.classification])})),f}function qx({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 zx({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,o=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&o>=0&&o<=1}function $x({candidate:e,lines:t,rects:n}){return!!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})))||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},o={x:t.x+t.width,y:t.y+t.height},i={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:o.x,y2:o.y},s={x1:o.x,y1:o.y,x2:i.x,y2:i.y},l={x1:i.x,y1:i.y,x2:n.x,y2:n.y};return zx({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||zx({line1:e,line2:a})||zx({line1:e,line2:s})||zx({line1:e,line2:l})}({line:t,rect:e})))}const Fx={x:0,width:0,y:0,height:0};const jx=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),_x=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),Bx=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),Hx=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),Vx=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),Ux=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),Yx=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),Wx=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var Gx=2.5,Xx=4;const Kx=[Ax.TOP,Ax.TOP_LEFT,Ax.TOP_RIGHT],Jx=[Ax.BOTTOM,Ax.BOTTOM_LEFT,Ax.BOTTOM_RIGHT];function Zx({position:e}){const t={x:Gx,width:-5,y:0,height:0},n=Kx.indexOf(e)>-1,r=Jx.indexOf(e)>-1;return n&&(t.y=Xx,t.height=-4),r&&(t.height=-4),t}function Qx({cx:e,cy:t,r:n,degrees:r}){const o=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(o)),y:Math.round(t+n*-Math.cos(o))}}function eS({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 tS({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),o=e.bounds.x,i=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=eS({coordinates:Qx({cx:o,cy:i,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=eS({coordinates:Qx({cx:o,cy:i,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const nS=void 0;function rS({item:e,validator:t,force:n=!1}){const r={[Ax.TOP]:jx,[Ax.TOP_RIGHT]:_x,[Ax.RIGHT]:Bx,[Ax.BOTTOM_RIGHT]:Hx,[Ax.BOTTOM]:Vx,[Ax.BOTTOM_LEFT]:Ux,[Ax.LEFT]:Yx,[Ax.TOP_LEFT]:Wx};if(e.fixedPlacement)return r[e.fixedPlacement]({item:e});const o=[...e.preferences,...Object.keys(Ax).map((e=>Ax[e])).filter((t=>-1===e.preferences.indexOf(t)))],i=[];for(let a=0;a<o.length;a++){const s=o[a],l=r[s]({item:e}),c=Zx({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&i.push(l),u.valid)return l}const a=()=>tS({item:e,validator:t,force:n});if(n){const e=a();return e||(i[0]||nS)}return(e.extreme||e.elite)&&a()||nS}function oS({configs:e,crossPlacements:t,model:n,size:r,all:o}){const i={},a=n.getItems(),s=[...a.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}))),...t.getPlacements({configs:e})],l=[],c=n.getLines();a.forEach((e=>{const{data:t}=e.node;if(!e.show||!e.inside||t.null&&t.null.value||t.interpolated&&t.interpolated.value)return;const{key:n}=e;if(i[n]&&!e.config.duplicates)return void e.setDuplicate();i[n]=!0;const a=function({size:e,lines:t,placements:n}){return function({item:r,placement:o,adjustment:i=Fx,ignoreLines:a=!1}){const s={inside:qx({item:r,placement:o,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=$x({candidate:{x:o.x+i.x,y:o.y+i.y,width:r.bounds.width+i.width,height:r.bounds.height+i.height},lines:a?[]:t,rects:n}),s.valid=!s.collides,s):s}}({size:r,lines:c,placements:s}),u=rS({item:e,validator:a});u?(u.height=e.bounds.height,u.width=e.bounds.width,s.push(u),e.setPlacement(u)):o&&l.push({item:e,validator:a})})),l.forEach((e=>{const{item:t,validator:n}=e,r=rS({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,s.push(r),t.setPlacement(r))}))}var iS={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},cache:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',fontSize:"12px",fill:"#333"}},created(){this.crossPlacements=function({cache:e,key:t}){var n;const r={isPrimary:!1};var o;return null!=e&&null!==(n=e.has)&&void 0!==n&&n.call(e,ix)||(r.isPrimary=!0,null==e||null===(o=e.set)||void 0===o||o.call(e,ix,{})),{reset:()=>{var n;const o=null==e||null===(n=e.get)||void 0===n?void 0:n.call(e,ix);o&&(r.isPrimary&&Object.keys(o).forEach((e=>delete o[e])),o[t]=[])},setPlacement:n=>{var r;const o=null==e||null===(r=e.get)||void 0===r?void 0:r.call(e,ix);o&&o[t].push(n)},getPlacements:({configs:n})=>{var r;const o=null==e||null===(r=e.get)||void 0===r?void 0:r.call(e,ix);if(!o)return[];const i=[],a=n.getCollection().filter((e=>!e.labels&&!!e.labelKeys.length)).reduce(((e,t)=>(e.push(...t.labelKeys),e)),[]);return Object.keys(o).forEach((e=>{e!==t&&a.some((t=>t===e))&&i.push(...o[e])})),i}}}({cache:this.settings.settings.cache,key:this.settings.key})},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},{orientation:t,rtl:n,labelSpace:r}=this.settings.settings,{use:o,size:i}=r;if(o()){const r="horizontal"===t;e.edgeBleed.top=r?i:0,e.edgeBleed[n?"left":"right"]=r?0:i}return e},render(){this.crossPlacements.reset();const{settings:e}=this.settings,{enabled:t}=e;if(!t())return[];const n=function({configs:e=[]}={}){const t={},n=[];return e.forEach((e=>{const{key:r}=e;t[r]={labels:void 0===e.labels||e.labels,labelKeys:Array.isArray(e.labelKeys)?e.labelKeys:[],lines:void 0===e.lines||e.lines,fixed:void 0!==e.fixed&&e.fixed,duplicates:void 0!==e.duplicates&&e.duplicates},n.push(t[r])})),{meta:{allKeys:e.map((e=>e.key))},getCollection:()=>n,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 o=this.chart.findShapes("circle, path, rect").filter((e=>n.meta.allKeys.includes(e.key)));if(!o.length)return[];const i="horizontal"===e.orientation,a=i?"x":"y";o.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},{crossPlacements:m,style:p}=this,f=Dx({configs:n,crossPlacements:m,nodes:o,extract:s,style:p,measureText:this.renderer.measureText,size:d,horizontal:i,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:f}),oS({configs:n,crossPlacements:m,model:f,size:d,all:e.all});const h=f.getItems(),g=[];h.filter((e=>e.placement)).forEach((e=>{var t,n,r,o,i;const a=null!==(t=e.node.data.value)&&void 0!==t&&t.hasBackground?2:0,l=null!==(n=e.node.data.value)&&void 0!==n&&n.hasBackground?2:0,c=(null===(r=e.node.data.value)||void 0===r||null===(r=r.style)||void 0===r||null===(r=r.label)||void 0===r?void 0:r.fontSize)||p.fontSize,u=(null===(o=e.node.data.value)||void 0===o||null===(o=o.style)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontFamily)||p.fontFamily,d=(null===(i=e.node.data.value)||void 0===i?void 0:i.labelColor)||p.fill;e.labelMeasurements.lines?e.labelMeasurements.lines.forEach(((t,n)=>{g.push({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+(n+.5)*t.size.height+a+l,fontSize:c,fontFamily:u,fill:d,text:t.text,data:e.node.data.value,baseline:"central",anchor:"middle"})})):g.push({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2+a+l,fontSize:c,fontFamily:u,fill:d,text:s.label(e.node.data),data:e.node.data.value,baseline:"central",anchor:"middle"})}));return[...h.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}})),...g]}},aS={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};const sS={black:"#000",white:"#fff"},lS="#e57373",cS="#ef5350",uS="#f44336",dS="#d32f2f",mS="#c62828",pS="#f3e5f5",fS="#ce93d8",hS="#ba68c8",gS="#ab47bc",yS="#9c27b0",vS="#7b1fa2",bS="#e3f2fd",xS="#90caf9",SS="#42a5f5",ES="#1976d2",MS="#1565c0",CS="#4fc3f7",wS="#29b6f6",OS="#03a9f4",TS="#0288d1",kS="#01579b",RS="#81c784",AS="#66bb6a",NS="#4caf50",LS="#388e3c",IS="#2e7d32",PS="#1b5e20",DS="#ffb74d",qS="#ffa726",zS="#ff9800",$S="#f57c00",FS="#e65100",jS={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 _S(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 BS=Object.freeze({__proto__:null,default:_S}),HS="$$material";var VS=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}(),US="-ms-",YS="-moz-",WS="-webkit-",GS="comm",XS="rule",KS="decl",JS="@keyframes",ZS=Math.abs,QS=String.fromCharCode,eE=Object.assign;function tE(e){return e.trim()}function nE(e,t,n){return e.replace(t,n)}function rE(e,t){return e.indexOf(t)}function oE(e,t){return 0|e.charCodeAt(t)}function iE(e,t,n){return e.slice(t,n)}function aE(e){return e.length}function sE(e){return e.length}function lE(e,t){return t.push(e),e}var cE=1,uE=1,dE=0,mE=0,pE=0,fE="";function hE(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cE,column:uE,length:a,return:""}}function gE(e,t){return eE(hE("",null,null,"",null,null,0),e,{length:-e.length},t)}function yE(){return pE=mE>0?oE(fE,--mE):0,uE--,10===pE&&(uE=1,cE--),pE}function vE(){return pE=mE<dE?oE(fE,mE++):0,uE++,10===pE&&(uE=1,cE++),pE}function bE(){return oE(fE,mE)}function xE(){return mE}function SE(e,t){return iE(fE,e,t)}function EE(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 ME(e){return cE=uE=1,dE=aE(fE=e),mE=0,[]}function CE(e){return fE="",e}function wE(e){return tE(SE(mE-1,kE(91===e?e+2:40===e?e+1:e)))}function OE(e){for(;(pE=bE())&&pE<33;)vE();return EE(e)>2||EE(pE)>3?"":" "}function TE(e,t){for(;--t&&vE()&&!(pE<48||pE>102||pE>57&&pE<65||pE>70&&pE<97););return SE(e,xE()+(t<6&&32==bE()&&32==vE()))}function kE(e){for(;vE();)switch(pE){case e:return mE;case 34:case 39:34!==e&&39!==e&&kE(pE);break;case 40:41===e&&kE(e);break;case 92:vE()}return mE}function RE(e,t){for(;vE()&&e+pE!==57&&(e+pE!==84||47!==bE()););return"/*"+SE(t,mE-1)+"*"+QS(47===e?e:vE())}function AE(e){for(;!EE(bE());)vE();return SE(e,mE)}function NE(e){return CE(LE("",null,null,null,[""],e=ME(e),0,[0],e))}function LE(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,m=0,p=0,f=0,h=1,g=1,y=1,v=0,b="",x=o,S=i,E=r,M=b;g;)switch(f=v,v=vE()){case 40:if(108!=f&&58==oE(M,d-1)){-1!=rE(M+=nE(wE(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=wE(v);break;case 9:case 10:case 13:case 32:M+=OE(f);break;case 92:M+=TE(xE()-1,7);continue;case 47:switch(bE()){case 42:case 47:lE(PE(RE(vE(),xE()),t,n),l);break;default:M+="/"}break;case 123*h:s[c++]=aE(M)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(M=nE(M,/\f/g,"")),p>0&&aE(M)-d&&lE(p>32?DE(M+";",r,n,d-1):DE(nE(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(lE(E=IE(M,t,n,c,u,o,s,b,x=[],S=[],d),i),123===v)if(0===u)LE(M,t,E,E,x,i,d,s,S);else switch(99===m&&110===oE(M,3)?100:m){case 100:case 108:case 109:case 115:LE(e,E,E,r&&lE(IE(e,E,E,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:LE(M,E,E,E,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=M="",d=a;break;case 58:d=1+aE(M),p=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==yE())continue;switch(M+=QS(v),v*h){case 38:y=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(aE(M)-1)*y,y=1;break;case 64:45===bE()&&(M+=wE(vE())),m=bE(),u=d=aE(b=M+=AE(xE())),v++;break;case 45:45===f&&2==aE(M)&&(h=0)}}return i}function IE(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,m=0===o?i:[""],p=sE(m),f=0,h=0,g=0;f<r;++f)for(var y=0,v=iE(e,d+1,d=ZS(h=a[f])),b=e;y<p;++y)(b=tE(h>0?m[y]+" "+v:nE(v,/&\f/g,m[y])))&&(l[g++]=b);return hE(e,t,n,0===o?XS:s,l,c,u)}function PE(e,t,n){return hE(e,t,n,GS,QS(pE),iE(e,2,-2),0)}function DE(e,t,n,r){return hE(e,t,n,KS,iE(e,0,r),iE(e,r+1,-1),r)}function qE(e,t){for(var n="",r=sE(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function zE(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case KS:return e.return=e.return||e.value;case GS:return"";case JS:return e.return=e.value+"{"+qE(e.children,r)+"}";case XS:e.value=e.props.join(",")}return aE(n=qE(e.children,r))?e.return=e.value+"{"+n+"}":""}function $E(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var FE=function(e,t,n){for(var r=0,o=0;r=o,o=bE(),38===r&&12===o&&(t[n]=1),!EE(o);)vE();return SE(e,mE)},jE=function(e,t){return CE(function(e,t){var n=-1,r=44;do{switch(EE(r)){case 0:38===r&&12===bE()&&(t[n]=1),e[n]+=FE(mE-1,t,n);break;case 2:e[n]+=wE(r);break;case 4:if(44===r){e[++n]=58===bE()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=QS(r)}}while(r=vE());return e}(ME(e),t))},_E=new WeakMap,BE=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)||_E.get(n))&&!r){_E.set(e,!0);for(var o=[],i=jE(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},HE=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function VE(e,t){switch(function(e,t){return 45^oE(e,0)?(((t<<2^oE(e,0))<<2^oE(e,1))<<2^oE(e,2))<<2^oE(e,3):0}(e,t)){case 5103:return WS+"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 WS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return WS+e+YS+e+US+e+e;case 6828:case 4268:return WS+e+US+e+e;case 6165:return WS+e+US+"flex-"+e+e;case 5187:return WS+e+nE(e,/(\w+).+(:[^]+)/,WS+"box-$1$2"+US+"flex-$1$2")+e;case 5443:return WS+e+US+"flex-item-"+nE(e,/flex-|-self/,"")+e;case 4675:return WS+e+US+"flex-line-pack"+nE(e,/align-content|flex-|-self/,"")+e;case 5548:return WS+e+US+nE(e,"shrink","negative")+e;case 5292:return WS+e+US+nE(e,"basis","preferred-size")+e;case 6060:return WS+"box-"+nE(e,"-grow","")+WS+e+US+nE(e,"grow","positive")+e;case 4554:return WS+nE(e,/([^-])(transform)/g,"$1"+WS+"$2")+e;case 6187:return nE(nE(nE(e,/(zoom-|grab)/,WS+"$1"),/(image-set)/,WS+"$1"),e,"")+e;case 5495:case 3959:return nE(e,/(image-set\([^]*)/,WS+"$1$`$1");case 4968:return nE(nE(e,/(.+:)(flex-)?(.*)/,WS+"box-pack:$3"+US+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WS+e+e;case 4095:case 3583:case 4068:case 2532:return nE(e,/(.+)-inline(.+)/,WS+"$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(aE(e)-1-t>6)switch(oE(e,t+1)){case 109:if(45!==oE(e,t+4))break;case 102:return nE(e,/(.+:)(.+)-([^]+)/,"$1"+WS+"$2-$3$1"+YS+(108==oE(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rE(e,"stretch")?VE(nE(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==oE(e,t+1))break;case 6444:switch(oE(e,aE(e)-3-(~rE(e,"!important")&&10))){case 107:return nE(e,":",":"+WS)+e;case 101:return nE(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WS+(45===oE(e,14)?"inline-":"")+"box$3$1"+WS+"$2$3$1"+US+"$2box$3")+e}break;case 5936:switch(oE(e,t+11)){case 114:return WS+e+US+nE(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WS+e+US+nE(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WS+e+US+nE(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WS+e+US+e+e}return e}var UE=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case KS:e.return=VE(e.value,e.length);break;case JS:return qE([gE(e,{value:nE(e.value,"@","@"+WS)})],r);case XS: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 qE([gE(e,{props:[nE(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return qE([gE(e,{props:[nE(t,/:(plac\w+)/,":"+WS+"input-$1")]}),gE(e,{props:[nE(t,/:(plac\w+)/,":-moz-$1")]}),gE(e,{props:[nE(t,/:(plac\w+)/,US+"input-$1")]})],r)}return""}))}}],YE=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,o,i=e.stylisPlugins||UE,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=[zE,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=sE(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([BE,HE].concat(i,u));o=function(e,t,n,r){l=n,function(e){qE(NE(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new VS({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return m.sheet.hydrate(s),m};function WE(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var GE=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},XE=function(e,t,n){GE(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var KE={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},JE=/[A-Z]|^ms/g,ZE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,QE=function(e){return 45===e.charCodeAt(1)},eM=function(e){return null!=e&&"boolean"!=typeof e},tM=$E((function(e){return QE(e)?e:e.replace(JE,"-$&").toLowerCase()})),nM=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ZE,(function(e,t,n){return oM={name:t,styles:n,next:oM},t}))}return 1===KE[e]||QE(e)||"number"!=typeof t||0===t?t:t+"px"};function rM(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 o=n;if(1===o.anim)return oM={name:o.name,styles:o.styles,next:oM},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)oM={name:a.name,styles:a.styles,next:oM},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=rM(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":eM(s)&&(r+=tM(i)+":"+nM(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=rM(e,t,a);switch(i){case"animation":case"animationName":r+=tM(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)eM(a[c])&&(r+=tM(i)+":"+nM(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=oM,l=n(e);return oM=s,rM(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var oM,iM=/label:\s*([^\s;{]+)\s*(;|$)/g;function aM(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,o="";oM=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=rM(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=rM(n,t,e[a]),r)o+=i[a]}iM.lastIndex=0;for(var s,l="";null!==(s=iM.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=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(o){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)}(o)+l;return{name:c,styles:o,next:oM}}var sM,lM,cM=!!B.useInsertionEffect&&B.useInsertionEffect,uM=cM||function(e){return e()},dM=cM||B.useLayoutEffect,mM=B.createContext("undefined"!=typeof HTMLElement?YE({key:"css"}):null),pM=mM.Provider,fM=function(e){return Y((function(t,n){var r=W(mM);return e(t,r,n)}))},hM=B.createContext({}),gM={}.hasOwnProperty,yM="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return GE(t,n,r),uM((function(){return XE(t,n,r)})),null},bM=fM((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[yM],i=[r],a="";"string"==typeof e.className?a=WE(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=aM(i,void 0,B.useContext(hM));a+=t.key+"-"+s.name;var l={};for(var c in e)gM.call(e,c)&&"css"!==c&&c!==yM&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),B.createElement(B.Fragment,null,B.createElement(vM,{cache:t,serialized:s,isStringTag:"string"==typeof o}),B.createElement(o,l))})),xM=bM,SM=function(e,t){var n=arguments;if(null==t||!gM.call(t,"css"))return B.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=xM,o[1]=function(e,t){var n={};for(var r in t)gM.call(t,r)&&(n[r]=t[r]);return n[yM]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return B.createElement.apply(null,o)};sM=SM||(SM={}),lM||(lM=sM.JSX||(sM.JSX={}));var EM=fM((function(e,t){var n=aM([e.styles],void 0,B.useContext(hM)),r=B.useRef();return dM((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),dM((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&XE(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function MM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return aM(t)}function CM(){var e=MM.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 wM=/^((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)-.*))$/,OM=$E((function(e){return wM.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),TM=function(e){return"theme"!==e},kM=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?OM:TM},RM=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},AM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return GE(t,n,r),uM((function(){return XE(t,n,r)})),null},NM=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=RM(t,n,i),l=s||kM(a),c=!l("as");return function(){var u=arguments,d=i&&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 m=u[0];d.push(m[0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],m[f])}var h=fM((function(e,t,n){var r=c&&e.as||a,i="",u=[],m=e;if(null==e.theme){for(var p in m={},e)m[p]=e[p];m.theme=B.useContext(hM)}"string"==typeof e.className?i=WE(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var f=aM(d.concat(u),t.registered,m);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?kM(r):l,g={};for(var y in e)c&&"as"===y||h(y)&&(g[y]=e[y]);return g.className=i,n&&(g.ref=n),B.createElement(B.Fragment,null,B.createElement(AM,{cache:t,serialized:f,isStringTag:"string"==typeof r}),B.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,gp({},n,r,{shouldForwardProp:RM(h,r,!0)})).apply(void 0,d)},h}}.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){NM[e]=NM(e)}));var LM={exports:{}},IM={},PM=_,DM=Symbol.for("react.element"),qM=Symbol.for("react.fragment"),zM=Object.prototype.hasOwnProperty,$M=PM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,FM={key:!0,ref:!0,__self:!0,__source:!0};function jM(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)zM.call(t,r)&&!FM.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:DM,type:e,key:i,ref:a,props:o,_owner:$M.current}}IM.Fragment=qM,IM.jsx=jM,IM.jsxs=jM,LM.exports=IM;var _M=LM.exports;let BM;"object"==typeof document&&(BM=YE({key:"css",prepend:!0}));var HM=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 _M.jsx(EM,{styles:r})}
|
|
15
15
|
/**
|
|
16
16
|
* @mui/styled-engine v5.16.14
|
|
17
17
|
*
|
|
18
18
|
* @license MIT
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&BM?_M.jsx(pM,{value:BM,children:n}):n},ThemeContext:hM,css:MM,default:function(e,t){return NM(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:CM});function VM(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 UM(e){if(B.isValidElement(e)||!VM(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=UM(e[n])})),t}function YM(e,t,n={clone:!0}){const r=n.clone?yp({},e):e;return VM(e)&&VM(t)&&Object.keys(t).forEach((o=>{B.isValidElement(t[o])?r[o]=t[o]:VM(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&VM(e[o])?r[o]=YM(e[o],t[o],n):n.clone?r[o]=VM(t[o])?UM(t[o]):t[o]:r[o]=t[o]})),r}var WM=Object.freeze({__proto__:null,default:YM,isPlainObject:VM});const GM=["values","unit","step"];function XM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Rp(e,GM),i=(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)=>yp({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);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,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return yp({keys:a,values:i,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},o)}const KM={borderRadius:4};function JM(e,t){return t?YM(e,t,{clone:!1}):e}const ZM={xs:0,sm:600,md:900,lg:1200,xl:1536},QM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ZM[e]}px)`};function eC(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||QM;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||QM;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||ZM).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function tC(e){if("string"!=typeof e)throw new Error(_S(7));return e.charAt(0).toUpperCase()+e.slice(1)}var nC=Object.freeze({__proto__:null,default:tC});function rC(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 oC(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:rC(e,n)||r,t&&(o=t(o,r,e)),o}function iC(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=rC(e.theme,r)||{};return eC(e,i,(e=>{let r=oC(a,o,e);return e===r&&"string"==typeof e&&(r=oC(a,o,`${t}${"default"===e?"":tC(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const aC={m:"margin",p:"padding"},sC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cC=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!lC[e])return[e];e=lC[e]}const[t,n]=e.split(""),r=aC[t],o=sC[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),uC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function mC(e,t,n,r){var o;const i=null!=(o=rC(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function pC(e){return mC(e,"spacing",8)}function fC(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 hC(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=fC(t,n),e)),{})}(cC(n),r);return eC(e,e[n],o)}function gC(e,t){const n=pC(e.theme);return Object.keys(e).map((r=>hC(e,t,r,n))).reduce(JM,{})}function yC(e){return gC(e,uC)}function vC(e){return gC(e,dC)}function bC(...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]?JM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function xC(e){return"number"!=typeof e?e:`${e}px solid`}function SC(e,t){return iC({prop:e,themeKey:"borders",transform:t})}yC.propTypes={},yC.filterProps=uC,vC.propTypes={},vC.filterProps=dC;const EC=SC("border",xC),MC=SC("borderTop",xC),CC=SC("borderRight",xC),wC=SC("borderBottom",xC),TC=SC("borderLeft",xC),OC=SC("borderColor"),kC=SC("borderTopColor"),RC=SC("borderRightColor"),AC=SC("borderBottomColor"),NC=SC("borderLeftColor"),LC=SC("outline",xC),IC=SC("outlineColor"),PC=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=mC(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:fC(t,e)});return eC(e,e.borderRadius,n)}return null};PC.propTypes={},PC.filterProps=["borderRadius"],bC(EC,MC,CC,wC,TC,OC,kC,RC,AC,NC,PC,LC,IC);const DC=e=>{if(void 0!==e.gap&&null!==e.gap){const t=mC(e.theme,"spacing",8),n=e=>({gap:fC(t,e)});return eC(e,e.gap,n)}return null};DC.propTypes={},DC.filterProps=["gap"];const qC=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=mC(e.theme,"spacing",8),n=e=>({columnGap:fC(t,e)});return eC(e,e.columnGap,n)}return null};qC.propTypes={},qC.filterProps=["columnGap"];const zC=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=mC(e.theme,"spacing",8),n=e=>({rowGap:fC(t,e)});return eC(e,e.rowGap,n)}return null};zC.propTypes={},zC.filterProps=["rowGap"];function $C(e,t){return"grey"===t?t:e}bC(DC,qC,zC,iC({prop:"gridColumn"}),iC({prop:"gridRow"}),iC({prop:"gridAutoFlow"}),iC({prop:"gridAutoColumns"}),iC({prop:"gridAutoRows"}),iC({prop:"gridTemplateColumns"}),iC({prop:"gridTemplateRows"}),iC({prop:"gridTemplateAreas"}),iC({prop:"gridArea"}));function jC(e){return e<=1&&0!==e?100*e+"%":e}bC(iC({prop:"color",themeKey:"palette",transform:$C}),iC({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$C}),iC({prop:"backgroundColor",themeKey:"palette",transform:$C}));const FC=iC({prop:"width",transform:jC}),_C=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||ZM[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:jC(t)}};return eC(e,e.maxWidth,t)}return null};_C.filterProps=["maxWidth"];const BC=iC({prop:"minWidth",transform:jC}),HC=iC({prop:"height",transform:jC}),VC=iC({prop:"maxHeight",transform:jC}),UC=iC({prop:"minHeight",transform:jC});iC({prop:"size",cssProperty:"width",transform:jC}),iC({prop:"size",cssProperty:"height",transform:jC});bC(FC,_C,BC,HC,VC,UC,iC({prop:"boxSizing"}));const YC={border:{themeKey:"borders",transform:xC},borderTop:{themeKey:"borders",transform:xC},borderRight:{themeKey:"borders",transform:xC},borderBottom:{themeKey:"borders",transform:xC},borderLeft:{themeKey:"borders",transform:xC},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xC},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:PC},color:{themeKey:"palette",transform:$C},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$C},backgroundColor:{themeKey:"palette",transform:$C},p:{style:vC},pt:{style:vC},pr:{style:vC},pb:{style:vC},pl:{style:vC},px:{style:vC},py:{style:vC},padding:{style:vC},paddingTop:{style:vC},paddingRight:{style:vC},paddingBottom:{style:vC},paddingLeft:{style:vC},paddingX:{style:vC},paddingY:{style:vC},paddingInline:{style:vC},paddingInlineStart:{style:vC},paddingInlineEnd:{style:vC},paddingBlock:{style:vC},paddingBlockStart:{style:vC},paddingBlockEnd:{style:vC},m:{style:yC},mt:{style:yC},mr:{style:yC},mb:{style:yC},ml:{style:yC},mx:{style:yC},my:{style:yC},margin:{style:yC},marginTop:{style:yC},marginRight:{style:yC},marginBottom:{style:yC},marginLeft:{style:yC},marginX:{style:yC},marginY:{style:yC},marginInline:{style:yC},marginInlineStart:{style:yC},marginInlineEnd:{style:yC},marginBlock:{style:yC},marginBlockStart:{style:yC},marginBlockEnd:{style:yC},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:DC},rowGap:{style:zC},columnGap:{style:qC},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:jC},maxWidth:{style:_C},minWidth:{transform:jC},height:{transform:jC},maxHeight:{transform:jC},minHeight:{transform:jC},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function WC(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=rC(n,s)||{};if(c)return c(o);return eC(o,t,(t=>{let n=oC(u,l,t);return t===n&&"string"==typeof t&&(n=oC(u,l,`${e}${"default"===t?"":tC(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:YC;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=JM(l,e(n,o,i,a));else{const e=eC({theme:i},o,(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,o)?l=JM(l,e):l[n]=t({sx:o,theme:i})}else l=JM(l,e(n,o,i,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(o)?o.map(s):s(o)}}const GC=WC();function XC(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:{}}GC.filterProps=["sx"];const KC=["breakpoints","palette","spacing","shape"];function JC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Rp(e,KC),s=XM(n),l=function(e=8){if(e.mui)return e;const t=pC({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}(o);let c=YM({breakpoints:s,direction:"ltr",components:{},palette:yp({mode:"light"},r),spacing:l,shape:yp({},KM,i)},a);return c.applyStyles=XC,c=t.reduce(((e,t)=>YM(e,t)),c),c.unstable_sxConfig=yp({},YC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return GC({sx:e,theme:this})},c}var ZC=Object.freeze({__proto__:null,default:JC,private_createBreakpoints:XM,unstable_applyStyles:XC});function QC(e=null){const t=B.useContext(hM);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ew=JC();function tw(e=ew){return QC(e)}const nw=["sx"];function rw(e){const{sx:t}=e,n=Rp(e,nw),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:YC;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return VM(n)?yp({},r,n):r}:yp({},r,t),yp({},o,{sx:i})}var ow=Object.freeze({__proto__:null,default:GC,extendSxProp:rw,unstable_createStyleFunctionSx:WC,unstable_defaultSxConfig:YC});const iw=e=>e,aw=(()=>{let e=iw;return{configure(t){e=t},generate:t=>e(t),reset(){e=iw}}})();function sw(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=sw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function lw(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=sw(e))&&(r&&(r+=" "),r+=t);return r}const cw={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 uw(e,t,n="Mui"){const r=cw[t];return r?`${n}-${r}`:`${aw.generate(e)}-${t}`}function dw(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=uw(e,t,n)})),r}var mw={exports:{}},pw={},fw=Symbol.for("react.transitional.element"),hw=Symbol.for("react.portal"),gw=Symbol.for("react.fragment"),yw=Symbol.for("react.strict_mode"),vw=Symbol.for("react.profiler"),bw=Symbol.for("react.consumer"),xw=Symbol.for("react.context"),Sw=Symbol.for("react.forward_ref"),Ew=Symbol.for("react.suspense"),Mw=Symbol.for("react.suspense_list"),Cw=Symbol.for("react.memo"),ww=Symbol.for("react.lazy"),Tw=Symbol.for("react.offscreen"),Ow=Symbol.for("react.client.reference");function kw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case fw:switch(e=e.type){case gw:case vw:case yw:case Ew:case Mw:return e;default:switch(e=e&&e.$$typeof){case xw:case Sw:case ww:case Cw:case bw:return e;default:return t}}case hw:return t}}}pw.ContextConsumer=bw,pw.ContextProvider=xw,pw.Element=fw,pw.ForwardRef=Sw,pw.Fragment=gw,pw.Lazy=ww,pw.Memo=Cw,pw.Portal=hw,pw.Profiler=vw,pw.StrictMode=yw,pw.Suspense=Ew,pw.SuspenseList=Mw,pw.isContextConsumer=function(e){return kw(e)===bw},pw.isContextProvider=function(e){return kw(e)===xw},pw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===fw},pw.isForwardRef=function(e){return kw(e)===Sw},pw.isFragment=function(e){return kw(e)===gw},pw.isLazy=function(e){return kw(e)===ww},pw.isMemo=function(e){return kw(e)===Cw},pw.isPortal=function(e){return kw(e)===hw},pw.isProfiler=function(e){return kw(e)===vw},pw.isStrictMode=function(e){return kw(e)===yw},pw.isSuspense=function(e){return kw(e)===Ew},pw.isSuspenseList=function(e){return kw(e)===Mw},pw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===gw||e===vw||e===yw||e===Ew||e===Mw||e===Tw||"object"==typeof e&&null!==e&&(e.$$typeof===ww||e.$$typeof===Cw||e.$$typeof===xw||e.$$typeof===bw||e.$$typeof===Sw||e.$$typeof===Ow||void 0!==e.getModuleId)},pw.typeOf=kw,mw.exports=pw;var Rw=mw.exports;const Aw=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Nw(e){const t=`${e}`.match(Aw);return t&&t[1]||""}function Lw(e,t=""){return e.displayName||e.name||Nw(e)||t}function Iw(e,t,n){const r=Lw(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Pw=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Lw(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Rw.ForwardRef:return Iw(e,e.render,"ForwardRef");case Rw.Memo:return Iw(e,e.type,"memo");default:return}}},getFunctionName:Nw});function Dw(e,t){const n=yp({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=yp({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=yp({},i),Object.keys(o).forEach((e=>{n[r][e]=Dw(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function qw({props:e,name:t,defaultTheme:n,themeId:r}){let o=tw(n);o=o[r]||o;const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Dw(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const zw="undefined"!=typeof window?B.useLayoutEffect:B.useEffect;var $w=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 jw(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Fw(e){return e&&e.ownerDocument||document}function _w(e){return Fw(e).defaultView||window}function Bw(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Hw(e){const t=B.useRef(e);return zw((()=>{t.current=e})),B.useRef(((...e)=>(0,t.current)(...e))).current}function Vw(...e){return B.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Bw(e,t)}))}),e)}const Uw={};const Yw=[];class Ww{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ww}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Gw(){const e=function(e,t){const n=B.useRef(Uw);return n.current===Uw&&(n.current=e(t)),n}(Ww.create).current;var t;return t=e.disposeEffect,B.useEffect(t,Yw),e}let Xw=!0,Kw=!1;const Jw=new Ww,Zw={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 Qw(e){e.metaKey||e.altKey||e.ctrlKey||(Xw=!0)}function eT(){Xw=!1}function tT(){"hidden"===this.visibilityState&&Kw&&(Xw=!0)}function nT(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Xw||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Zw[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function rT(){const e=B.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Qw,!0),t.addEventListener("mousedown",eT,!0),t.addEventListener("pointerdown",eT,!0),t.addEventListener("touchstart",eT,!0),t.addEventListener("visibilitychange",tT,!0))}),[]),t=B.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!nT(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Kw=!0,Jw.start(100,(()=>{Kw=!1})),t.current=!1,!0)},ref:e}}function oT(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const iT=B.createContext(null);function aT(){return B.useContext(iT)}var sT="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function lT(e){const{children:t,theme:n}=e,r=aT(),o=B.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return yp({},e,t)}(r,n);return null!=e&&(e[sT]=null!==r),e}),[n,r]);return _M.jsx(iT.Provider,{value:o,children:t})}const cT=["value"],uT=B.createContext();function dT(e){let{value:t}=e,n=Rp(e,cT);return _M.jsx(uT.Provider,yp({value:null==t||t},n))}const mT=B.createContext(void 0);function pT({value:e,children:t}){return _M.jsx(mT.Provider,{value:e,children:t})}const fT={};function hT(e,t,n,r=!1){return B.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?yp({},t,{[e]:i}):i;return r?()=>a:a}return yp({},t,e?{[e]:n}:n)}),[e,t,n,r])}function gT(e){const{children:t,theme:n,themeId:r}=e,o=QC(fT),i=aT()||fT,a=hT(r,o,n),s=hT(r,i,n,!0),l="rtl"===a.direction;return _M.jsx(lT,{theme:s,children:_M.jsx(hM.Provider,{value:a,children:_M.jsx(dT,{value:l,children:_M.jsx(pT,{value:null==a?void 0:a.components,children:t})})})})}var yT,vT={},bT={exports:{}};(yT=bT).exports=function(e){return e&&e.__esModule?e:{default:e}},yT.exports.__esModule=!0,yT.exports.default=yT.exports;var xT=bT.exports,ST=ne(BS),ET=ne($w),MT=xT;Object.defineProperty(vT,"__esModule",{value:!0});var CT=vT.alpha=zT;vT.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=LT(e),a=LT(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return PT({type:"rgb",values:s})},vT.colorChannel=void 0;var wT=vT.darken=$T;vT.decomposeColor=LT,vT.emphasize=FT;var TT=vT.getContrastRatio=function(e,t){const n=qT(e),r=qT(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};vT.getLuminance=qT,vT.hexToRgb=NT,vT.hslToRgb=DT;var OT=vT.lighten=jT;vT.private_safeAlpha=function(e,t,n){try{return zT(e,t)}catch(t){return e}},vT.private_safeColorChannel=void 0,vT.private_safeDarken=function(e,t,n){try{return $T(e,t)}catch(t){return e}},vT.private_safeEmphasize=function(e,t,n){try{return FT(e,t)}catch(t){return e}},vT.private_safeLighten=function(e,t,n){try{return jT(e,t)}catch(t){return e}},vT.recomposeColor=PT,vT.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=LT(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 kT=MT(ST),RT=MT(ET);function AT(e,t=0,n=1){return(0,RT.default)(e,t,n)}function NT(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 LT(e){if(e.type)return e;if("#"===e.charAt(0))return LT(NT(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,kT.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,kT.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const IT=e=>{const t=LT(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};vT.colorChannel=IT;function PT(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 DT(e){e=LT(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*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])),PT({type:s,values:l})}function qT(e){let t="hsl"===(e=LT(e)).type||"hsla"===e.type?LT(DT(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 zT(e,t){return e=LT(e),t=AT(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,PT(e)}function $T(e,t){if(e=LT(e),t=AT(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 PT(e)}function jT(e,t){if(e=LT(e),t=AT(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 PT(e)}function FT(e,t=.15){return qT(e)>.5?$T(e,t):jT(e,t)}vT.private_safeColorChannel=(e,t)=>{try{return IT(e)}catch(t){return e}};const _T=["mode","contrastThreshold","tonalOffset"],BT={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:sS.white,default:sS.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}},HT={text:{primary:sS.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:sS.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 VT(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=OT(e.main,o):"dark"===t&&(e.dark=wT(e.main,i)))}function UT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Rp(e,_T),i=e.primary||function(e="light"){return"dark"===e?{main:xS,light:bS,dark:SS}:{main:ES,light:SS,dark:MS}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:fS,light:pS,dark:gS}:{main:yS,light:hS,dark:vS}}(t),s=e.error||function(e="light"){return"dark"===e?{main:uS,light:lS,dark:dS}:{main:dS,light:cS,dark:mS}}(t),l=e.info||function(e="light"){return"dark"===e?{main:wS,light:CS,dark:OS}:{main:OS,light:TS,dark:kS}}(t),c=e.success||function(e="light"){return"dark"===e?{main:AS,light:RS,dark:LS}:{main:IS,light:NS,dark:PS}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:qS,light:DS,dark:$S}:{main:"#ed6c02",light:zS,dark:jS}}(t);function d(e){return TT(e,HT.text.primary)>=n?HT.text.primary:BT.text.primary}const m=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=yp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(_S(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(_S(12,t?` (${t})`:"",JSON.stringify(e.main)));return VT(e,"light",o,r),VT(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:HT,light:BT};return YM(yp({common:yp({},sS),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:s,name:"error"}),warning:m({color:u,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:c,name:"success"}),grey:FS,contrastThreshold:n,getContrastText:d,augmentColor:m,tonalOffset:r},p[t]),o)}const YT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const WT={textTransform:"uppercase"},GT='"Roboto", "Helvetica", "Arial", sans-serif';function XT(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=GT,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,m=Rp(n,YT),p=o/14,f=d||(e=>e/c*p+"rem"),h=(e,t,n,o,i)=>{return yp({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===GT?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,WT),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,WT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return YM(yp({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),m,{clone:!1})}function KT(...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 JT=["none",KT(0,2,1,-1,0,1,1,0,0,1,3,0),KT(0,3,1,-2,0,2,2,0,0,1,5,0),KT(0,3,3,-2,0,3,4,0,0,1,8,0),KT(0,2,4,-1,0,4,5,0,0,1,10,0),KT(0,3,5,-1,0,5,8,0,0,1,14,0),KT(0,3,5,-1,0,6,10,0,0,1,18,0),KT(0,4,5,-2,0,7,10,1,0,2,16,1),KT(0,5,5,-3,0,8,10,1,0,3,14,2),KT(0,5,6,-3,0,9,12,1,0,3,16,2),KT(0,6,6,-3,0,10,14,1,0,4,18,3),KT(0,6,7,-4,0,11,15,1,0,4,20,3),KT(0,7,8,-4,0,12,17,2,0,5,22,4),KT(0,7,8,-4,0,13,19,2,0,5,24,4),KT(0,7,9,-4,0,14,21,2,0,5,26,4),KT(0,8,9,-5,0,15,22,2,0,6,28,5),KT(0,8,10,-5,0,16,24,2,0,6,30,5),KT(0,8,11,-5,0,17,26,2,0,6,32,5),KT(0,9,11,-5,0,18,28,2,0,7,34,6),KT(0,9,12,-6,0,19,29,2,0,7,36,6),KT(0,10,13,-6,0,20,31,3,0,8,38,7),KT(0,10,13,-6,0,21,33,3,0,8,40,7),KT(0,10,14,-6,0,22,35,3,0,8,42,7),KT(0,11,14,-7,0,23,36,3,0,9,44,8),KT(0,11,15,-7,0,24,38,3,0,9,46,8)],ZT=["duration","easing","delay"],QT={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)"},eO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tO(e){return`${Math.round(e)}ms`}function nO(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function rO(e){const t=yp({},QT,e.easing),n=yp({},eO,e.duration);return yp({getAutoHeightDuration:nO,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Rp(r,ZT),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:tO(o)} ${i} ${"string"==typeof a?a:tO(a)}`)).join(",")}},e,{easing:t,duration:n})}const oO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},iO=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function aO(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Rp(e,iO);if(e.vars)throw new Error(_S(18));const s=UT(r),l=JC(e);let c=YM(l,{mixins:(u=l.breakpoints,d=n,yp({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:JT.slice(),typography:XT(s,i),transitions:rO(o),zIndex:yp({},oO)});var u,d;return c=YM(c,a),c=t.reduce(((e,t)=>YM(e,t)),c),c.unstable_sxConfig=yp({},YC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return GC({sx:e,theme:this})},c}const sO=aO();function lO(){const e=tw(sO);return e[HS]||e}function cO({props:e,name:t}){return qw({props:e,name:t,defaultTheme:sO,themeId:HS})}var uO,dO={},mO={exports:{}};var pO,fO={exports:{}};var hO=ne(HM),gO=ne(WM),yO=ne(nC),vO=ne(Pw),bO=ne(ZC),xO=ne(ow),SO=xT;Object.defineProperty(dO,"__esModule",{value:!0});var EO=dO.default=function(e={}){const{themeId:t,defaultTheme:n=PO,rootShouldForwardProp:r=IO,slotShouldForwardProp:o=IO}=e,i=e=>(0,kO.default)((0,MO.default)({},e,{theme:qO((0,MO.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,wO.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=zO(DO(l))}=a,m=(0,CO.default)(a,NO),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let h=IO;"Root"===l||"root"===l?h=r:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,wO.default)(e,(0,MO.default)({shouldForwardProp:h,label:undefined},m)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,TO.isPlainObject)(e)?r=>$O(e,(0,MO.default)({},r,{theme:qO({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=y(r);const l=o?o.map(y):[];s&&d&&l.push((e=>{const r=qO((0,MO.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=$O(n,(0,MO.default)({},e,{theme:r}))})),d(e,i)})),s&&!p&&l.push((e=>{var r;const o=qO((0,MO.default)({},e,{defaultTheme:n,themeId:t}));return $O({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,MO.default)({},e,{theme:o}))})),f||l.push(i);const c=l.length-o.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}};dO.shouldForwardProp=IO,dO.systemDefaultTheme=void 0;var MO=SO((uO||(uO=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}(mO)),mO.exports)),CO=SO((pO||(pO=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}(fO)),fO.exports)),wO=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=LO(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(hO),TO=gO;SO(yO),SO(vO);var OO=SO(bO),kO=SO(xO);const RO=["ownerState"],AO=["variants"],NO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function LO(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(LO=function(e){return e?n:t})(e)}function IO(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const PO=dO.systemDefaultTheme=(0,OO.default)(),DO=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function qO({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function zO(e){return e?(t,n)=>n[e]:null}function $O(e,t){let{ownerState:n}=t,r=(0,CO.default)(t,RO);const o="function"==typeof e?e((0,MO.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>$O(e,(0,MO.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,CO.default)(o,AO);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,MO.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]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,MO.default)({ownerState:n},r,n)):e.style))})),t}return o}const jO=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,FO=EO({themeId:HS,defaultTheme:sO,rootShouldForwardProp:jO}),_O=["theme"];function BO(e){let{theme:t}=e,n=Rp(e,_O);const r=t[HS];return _M.jsx(gT,yp({},n,{themeId:r?HS:void 0,theme:r||t}))}const HO=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function VO(e){return uw("MuiSvgIcon",e)}dw("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const UO=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],YO=FO("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${tC(n.color)}`],t[`fontSize${tC(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,m,p,f;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==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,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==(m=(e.vars||e).palette)||null==(m=m[t.color])?void 0:m.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),WO=B.forwardRef((function(e,t){const n=cO({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,m=Rp(n,UO),p=B.isValidElement(r)&&"svg"===r.type,f=yp({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),h={};c||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return oT({root:["root","inherit"!==t&&`color${tC(t)}`,`fontSize${tC(n)}`]},VO,r)})(f);return _M.jsxs(YO,yp({as:a,className:lw(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,m,p&&r.props,{ownerState:f,children:[p?r.props.children:r,u?_M.jsx("title",{children:u}):null]}))}));WO.muiName="SvgIcon";const GO=e=>e.scrollTop;function XO(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function KO(e){return uw("MuiPaper",e)}dw("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 JO=["className","component","elevation","square","variant"],ZO=FO("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 yp({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&&yp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${CT("#fff",HO(t.elevation))}, ${CT("#fff",HO(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),QO=B.forwardRef((function(e,t){const n=cO({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Rp(n,JO),c=yp({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return oT({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},KO,o)})(c);return _M.jsx(ZO,yp({as:o,ownerState:c,className:lw(u.root,r),ref:t},l))}));function ek(e){return"string"==typeof e}function tk(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 nk(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 rk=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ok(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Rp(e,rk),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=lw(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=yp({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=yp({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=tk(yp({},o,r)),s=nk(r),l=nk(o),c=t(a),u=lw(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=yp({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),m=yp({},c,n,l,s);return u.length>0&&(m.className=u),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:c.ref}}(yp({},a,{externalSlotProps:s})),u=function(e,t,n){return void 0===e||ek(e)?t:yp({},t,{ownerState:yp({},t.ownerState,n)})}(n,yp({},l,{ref:Vw(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}const ik=dw("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ak=["center","classes","className"];let sk,lk,ck,uk,dk=e=>e;const mk=CM(sk||(sk=dk`
|
|
21
|
+
*/,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&BM?_M.jsx(pM,{value:BM,children:n}):n},ThemeContext:hM,css:MM,default:function(e,t){return NM(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:CM});function VM(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 UM(e){if(B.isValidElement(e)||!VM(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=UM(e[n])})),t}function YM(e,t,n={clone:!0}){const r=n.clone?gp({},e):e;return VM(e)&&VM(t)&&Object.keys(t).forEach((o=>{B.isValidElement(t[o])?r[o]=t[o]:VM(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&VM(e[o])?r[o]=YM(e[o],t[o],n):n.clone?r[o]=VM(t[o])?UM(t[o]):t[o]:r[o]=t[o]})),r}var WM=Object.freeze({__proto__:null,default:YM,isPlainObject:VM});const GM=["values","unit","step"];function XM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=kp(e,GM),i=(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)=>gp({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);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,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return gp({keys:a,values:i,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},o)}const KM={borderRadius:4};function JM(e,t){return t?YM(e,t,{clone:!1}):e}const ZM={xs:0,sm:600,md:900,lg:1200,xl:1536},QM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ZM[e]}px)`};function eC(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||QM;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||QM;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||ZM).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function tC(e){if("string"!=typeof e)throw new Error(_S(7));return e.charAt(0).toUpperCase()+e.slice(1)}var nC=Object.freeze({__proto__:null,default:tC});function rC(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 oC(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:rC(e,n)||r,t&&(o=t(o,r,e)),o}function iC(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=rC(e.theme,r)||{};return eC(e,i,(e=>{let r=oC(a,o,e);return e===r&&"string"==typeof e&&(r=oC(a,o,`${t}${"default"===e?"":tC(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const aC={m:"margin",p:"padding"},sC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cC=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!lC[e])return[e];e=lC[e]}const[t,n]=e.split(""),r=aC[t],o=sC[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),uC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function mC(e,t,n,r){var o;const i=null!=(o=rC(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function pC(e){return mC(e,"spacing",8)}function fC(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 hC(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=fC(t,n),e)),{})}(cC(n),r);return eC(e,e[n],o)}function gC(e,t){const n=pC(e.theme);return Object.keys(e).map((r=>hC(e,t,r,n))).reduce(JM,{})}function yC(e){return gC(e,uC)}function vC(e){return gC(e,dC)}function bC(...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]?JM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function xC(e){return"number"!=typeof e?e:`${e}px solid`}function SC(e,t){return iC({prop:e,themeKey:"borders",transform:t})}yC.propTypes={},yC.filterProps=uC,vC.propTypes={},vC.filterProps=dC;const EC=SC("border",xC),MC=SC("borderTop",xC),CC=SC("borderRight",xC),wC=SC("borderBottom",xC),OC=SC("borderLeft",xC),TC=SC("borderColor"),kC=SC("borderTopColor"),RC=SC("borderRightColor"),AC=SC("borderBottomColor"),NC=SC("borderLeftColor"),LC=SC("outline",xC),IC=SC("outlineColor"),PC=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=mC(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:fC(t,e)});return eC(e,e.borderRadius,n)}return null};PC.propTypes={},PC.filterProps=["borderRadius"],bC(EC,MC,CC,wC,OC,TC,kC,RC,AC,NC,PC,LC,IC);const DC=e=>{if(void 0!==e.gap&&null!==e.gap){const t=mC(e.theme,"spacing",8),n=e=>({gap:fC(t,e)});return eC(e,e.gap,n)}return null};DC.propTypes={},DC.filterProps=["gap"];const qC=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=mC(e.theme,"spacing",8),n=e=>({columnGap:fC(t,e)});return eC(e,e.columnGap,n)}return null};qC.propTypes={},qC.filterProps=["columnGap"];const zC=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=mC(e.theme,"spacing",8),n=e=>({rowGap:fC(t,e)});return eC(e,e.rowGap,n)}return null};zC.propTypes={},zC.filterProps=["rowGap"];function $C(e,t){return"grey"===t?t:e}bC(DC,qC,zC,iC({prop:"gridColumn"}),iC({prop:"gridRow"}),iC({prop:"gridAutoFlow"}),iC({prop:"gridAutoColumns"}),iC({prop:"gridAutoRows"}),iC({prop:"gridTemplateColumns"}),iC({prop:"gridTemplateRows"}),iC({prop:"gridTemplateAreas"}),iC({prop:"gridArea"}));function FC(e){return e<=1&&0!==e?100*e+"%":e}bC(iC({prop:"color",themeKey:"palette",transform:$C}),iC({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$C}),iC({prop:"backgroundColor",themeKey:"palette",transform:$C}));const jC=iC({prop:"width",transform:FC}),_C=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||ZM[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:FC(t)}};return eC(e,e.maxWidth,t)}return null};_C.filterProps=["maxWidth"];const BC=iC({prop:"minWidth",transform:FC}),HC=iC({prop:"height",transform:FC}),VC=iC({prop:"maxHeight",transform:FC}),UC=iC({prop:"minHeight",transform:FC});iC({prop:"size",cssProperty:"width",transform:FC}),iC({prop:"size",cssProperty:"height",transform:FC});bC(jC,_C,BC,HC,VC,UC,iC({prop:"boxSizing"}));const YC={border:{themeKey:"borders",transform:xC},borderTop:{themeKey:"borders",transform:xC},borderRight:{themeKey:"borders",transform:xC},borderBottom:{themeKey:"borders",transform:xC},borderLeft:{themeKey:"borders",transform:xC},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xC},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:PC},color:{themeKey:"palette",transform:$C},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$C},backgroundColor:{themeKey:"palette",transform:$C},p:{style:vC},pt:{style:vC},pr:{style:vC},pb:{style:vC},pl:{style:vC},px:{style:vC},py:{style:vC},padding:{style:vC},paddingTop:{style:vC},paddingRight:{style:vC},paddingBottom:{style:vC},paddingLeft:{style:vC},paddingX:{style:vC},paddingY:{style:vC},paddingInline:{style:vC},paddingInlineStart:{style:vC},paddingInlineEnd:{style:vC},paddingBlock:{style:vC},paddingBlockStart:{style:vC},paddingBlockEnd:{style:vC},m:{style:yC},mt:{style:yC},mr:{style:yC},mb:{style:yC},ml:{style:yC},mx:{style:yC},my:{style:yC},margin:{style:yC},marginTop:{style:yC},marginRight:{style:yC},marginBottom:{style:yC},marginLeft:{style:yC},marginX:{style:yC},marginY:{style:yC},marginInline:{style:yC},marginInlineStart:{style:yC},marginInlineEnd:{style:yC},marginBlock:{style:yC},marginBlockStart:{style:yC},marginBlockEnd:{style:yC},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:DC},rowGap:{style:zC},columnGap:{style:qC},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:FC},maxWidth:{style:_C},minWidth:{transform:FC},height:{transform:FC},maxHeight:{transform:FC},minHeight:{transform:FC},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function WC(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=rC(n,s)||{};if(c)return c(o);return eC(o,t,(t=>{let n=oC(u,l,t);return t===n&&"string"==typeof t&&(n=oC(u,l,`${e}${"default"===t?"":tC(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:YC;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=JM(l,e(n,o,i,a));else{const e=eC({theme:i},o,(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,o)?l=JM(l,e):l[n]=t({sx:o,theme:i})}else l=JM(l,e(n,o,i,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(o)?o.map(s):s(o)}}const GC=WC();function XC(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:{}}GC.filterProps=["sx"];const KC=["breakpoints","palette","spacing","shape"];function JC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=kp(e,KC),s=XM(n),l=function(e=8){if(e.mui)return e;const t=pC({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}(o);let c=YM({breakpoints:s,direction:"ltr",components:{},palette:gp({mode:"light"},r),spacing:l,shape:gp({},KM,i)},a);return c.applyStyles=XC,c=t.reduce(((e,t)=>YM(e,t)),c),c.unstable_sxConfig=gp({},YC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return GC({sx:e,theme:this})},c}var ZC=Object.freeze({__proto__:null,default:JC,private_createBreakpoints:XM,unstable_applyStyles:XC});function QC(e=null){const t=B.useContext(hM);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ew=JC();function tw(e=ew){return QC(e)}const nw=["sx"];function rw(e){const{sx:t}=e,n=kp(e,nw),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:YC;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return VM(n)?gp({},r,n):r}:gp({},r,t),gp({},o,{sx:i})}var ow=Object.freeze({__proto__:null,default:GC,extendSxProp:rw,unstable_createStyleFunctionSx:WC,unstable_defaultSxConfig:YC});const iw=e=>e,aw=(()=>{let e=iw;return{configure(t){e=t},generate:t=>e(t),reset(){e=iw}}})();function sw(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=sw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function lw(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=sw(e))&&(r&&(r+=" "),r+=t);return r}const cw={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 uw(e,t,n="Mui"){const r=cw[t];return r?`${n}-${r}`:`${aw.generate(e)}-${t}`}function dw(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=uw(e,t,n)})),r}var mw={exports:{}},pw={},fw=Symbol.for("react.transitional.element"),hw=Symbol.for("react.portal"),gw=Symbol.for("react.fragment"),yw=Symbol.for("react.strict_mode"),vw=Symbol.for("react.profiler"),bw=Symbol.for("react.consumer"),xw=Symbol.for("react.context"),Sw=Symbol.for("react.forward_ref"),Ew=Symbol.for("react.suspense"),Mw=Symbol.for("react.suspense_list"),Cw=Symbol.for("react.memo"),ww=Symbol.for("react.lazy"),Ow=Symbol.for("react.offscreen"),Tw=Symbol.for("react.client.reference");function kw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case fw:switch(e=e.type){case gw:case vw:case yw:case Ew:case Mw:return e;default:switch(e=e&&e.$$typeof){case xw:case Sw:case ww:case Cw:case bw:return e;default:return t}}case hw:return t}}}pw.ContextConsumer=bw,pw.ContextProvider=xw,pw.Element=fw,pw.ForwardRef=Sw,pw.Fragment=gw,pw.Lazy=ww,pw.Memo=Cw,pw.Portal=hw,pw.Profiler=vw,pw.StrictMode=yw,pw.Suspense=Ew,pw.SuspenseList=Mw,pw.isContextConsumer=function(e){return kw(e)===bw},pw.isContextProvider=function(e){return kw(e)===xw},pw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===fw},pw.isForwardRef=function(e){return kw(e)===Sw},pw.isFragment=function(e){return kw(e)===gw},pw.isLazy=function(e){return kw(e)===ww},pw.isMemo=function(e){return kw(e)===Cw},pw.isPortal=function(e){return kw(e)===hw},pw.isProfiler=function(e){return kw(e)===vw},pw.isStrictMode=function(e){return kw(e)===yw},pw.isSuspense=function(e){return kw(e)===Ew},pw.isSuspenseList=function(e){return kw(e)===Mw},pw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===gw||e===vw||e===yw||e===Ew||e===Mw||e===Ow||"object"==typeof e&&null!==e&&(e.$$typeof===ww||e.$$typeof===Cw||e.$$typeof===xw||e.$$typeof===bw||e.$$typeof===Sw||e.$$typeof===Tw||void 0!==e.getModuleId)},pw.typeOf=kw,mw.exports=pw;var Rw=mw.exports;const Aw=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Nw(e){const t=`${e}`.match(Aw);return t&&t[1]||""}function Lw(e,t=""){return e.displayName||e.name||Nw(e)||t}function Iw(e,t,n){const r=Lw(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Pw=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Lw(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Rw.ForwardRef:return Iw(e,e.render,"ForwardRef");case Rw.Memo:return Iw(e,e.type,"memo");default:return}}},getFunctionName:Nw});function Dw(e,t){const n=gp({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=gp({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=gp({},i),Object.keys(o).forEach((e=>{n[r][e]=Dw(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function qw({props:e,name:t,defaultTheme:n,themeId:r}){let o=tw(n);o=o[r]||o;const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Dw(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const zw="undefined"!=typeof window?B.useLayoutEffect:B.useEffect;var $w=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 Fw(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function jw(e){return e&&e.ownerDocument||document}function _w(e){return jw(e).defaultView||window}function Bw(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Hw(e){const t=B.useRef(e);return zw((()=>{t.current=e})),B.useRef(((...e)=>(0,t.current)(...e))).current}function Vw(...e){return B.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Bw(e,t)}))}),e)}const Uw={};const Yw=[];class Ww{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ww}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Gw(){const e=function(e,t){const n=B.useRef(Uw);return n.current===Uw&&(n.current=e(t)),n}(Ww.create).current;var t;return t=e.disposeEffect,B.useEffect(t,Yw),e}let Xw=!0,Kw=!1;const Jw=new Ww,Zw={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 Qw(e){e.metaKey||e.altKey||e.ctrlKey||(Xw=!0)}function eO(){Xw=!1}function tO(){"hidden"===this.visibilityState&&Kw&&(Xw=!0)}function nO(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Xw||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Zw[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function rO(){const e=B.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Qw,!0),t.addEventListener("mousedown",eO,!0),t.addEventListener("pointerdown",eO,!0),t.addEventListener("touchstart",eO,!0),t.addEventListener("visibilitychange",tO,!0))}),[]),t=B.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!nO(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Kw=!0,Jw.start(100,(()=>{Kw=!1})),t.current=!1,!0)},ref:e}}function oO(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const iO=B.createContext(null);function aO(){return B.useContext(iO)}var sO="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function lO(e){const{children:t,theme:n}=e,r=aO(),o=B.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return gp({},e,t)}(r,n);return null!=e&&(e[sO]=null!==r),e}),[n,r]);return _M.jsx(iO.Provider,{value:o,children:t})}const cO=["value"],uO=B.createContext();function dO(e){let{value:t}=e,n=kp(e,cO);return _M.jsx(uO.Provider,gp({value:null==t||t},n))}const mO=B.createContext(void 0);function pO({value:e,children:t}){return _M.jsx(mO.Provider,{value:e,children:t})}const fO={};function hO(e,t,n,r=!1){return B.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?gp({},t,{[e]:i}):i;return r?()=>a:a}return gp({},t,e?{[e]:n}:n)}),[e,t,n,r])}function gO(e){const{children:t,theme:n,themeId:r}=e,o=QC(fO),i=aO()||fO,a=hO(r,o,n),s=hO(r,i,n,!0),l="rtl"===a.direction;return _M.jsx(lO,{theme:s,children:_M.jsx(hM.Provider,{value:a,children:_M.jsx(dO,{value:l,children:_M.jsx(pO,{value:null==a?void 0:a.components,children:t})})})})}var yO,vO={},bO={exports:{}};(yO=bO).exports=function(e){return e&&e.__esModule?e:{default:e}},yO.exports.__esModule=!0,yO.exports.default=yO.exports;var xO=bO.exports,SO=ne(BS),EO=ne($w),MO=xO;Object.defineProperty(vO,"__esModule",{value:!0});var CO=vO.alpha=zO;vO.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=LO(e),a=LO(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return PO({type:"rgb",values:s})},vO.colorChannel=void 0;var wO=vO.darken=$O;vO.decomposeColor=LO,vO.emphasize=jO;var OO=vO.getContrastRatio=function(e,t){const n=qO(e),r=qO(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};vO.getLuminance=qO,vO.hexToRgb=NO,vO.hslToRgb=DO;var TO=vO.lighten=FO;vO.private_safeAlpha=function(e,t,n){try{return zO(e,t)}catch(t){return e}},vO.private_safeColorChannel=void 0,vO.private_safeDarken=function(e,t,n){try{return $O(e,t)}catch(t){return e}},vO.private_safeEmphasize=function(e,t,n){try{return jO(e,t)}catch(t){return e}},vO.private_safeLighten=function(e,t,n){try{return FO(e,t)}catch(t){return e}},vO.recomposeColor=PO,vO.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=LO(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 kO=MO(SO),RO=MO(EO);function AO(e,t=0,n=1){return(0,RO.default)(e,t,n)}function NO(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 LO(e){if(e.type)return e;if("#"===e.charAt(0))return LO(NO(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,kO.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,kO.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const IO=e=>{const t=LO(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};vO.colorChannel=IO;function PO(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 DO(e){e=LO(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*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])),PO({type:s,values:l})}function qO(e){let t="hsl"===(e=LO(e)).type||"hsla"===e.type?LO(DO(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 zO(e,t){return e=LO(e),t=AO(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,PO(e)}function $O(e,t){if(e=LO(e),t=AO(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 PO(e)}function FO(e,t){if(e=LO(e),t=AO(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 PO(e)}function jO(e,t=.15){return qO(e)>.5?$O(e,t):FO(e,t)}vO.private_safeColorChannel=(e,t)=>{try{return IO(e)}catch(t){return e}};const _O=["mode","contrastThreshold","tonalOffset"],BO={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:sS.white,default:sS.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}},HO={text:{primary:sS.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:sS.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 VO(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=TO(e.main,o):"dark"===t&&(e.dark=wO(e.main,i)))}function UO(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=kp(e,_O),i=e.primary||function(e="light"){return"dark"===e?{main:xS,light:bS,dark:SS}:{main:ES,light:SS,dark:MS}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:fS,light:pS,dark:gS}:{main:yS,light:hS,dark:vS}}(t),s=e.error||function(e="light"){return"dark"===e?{main:uS,light:lS,dark:dS}:{main:dS,light:cS,dark:mS}}(t),l=e.info||function(e="light"){return"dark"===e?{main:wS,light:CS,dark:TS}:{main:TS,light:OS,dark:kS}}(t),c=e.success||function(e="light"){return"dark"===e?{main:AS,light:RS,dark:LS}:{main:IS,light:NS,dark:PS}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:qS,light:DS,dark:$S}:{main:"#ed6c02",light:zS,dark:FS}}(t);function d(e){return OO(e,HO.text.primary)>=n?HO.text.primary:BO.text.primary}const m=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=gp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(_S(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(_S(12,t?` (${t})`:"",JSON.stringify(e.main)));return VO(e,"light",o,r),VO(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:HO,light:BO};return YM(gp({common:gp({},sS),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:s,name:"error"}),warning:m({color:u,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:c,name:"success"}),grey:jS,contrastThreshold:n,getContrastText:d,augmentColor:m,tonalOffset:r},p[t]),o)}const YO=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const WO={textTransform:"uppercase"},GO='"Roboto", "Helvetica", "Arial", sans-serif';function XO(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=GO,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,m=kp(n,YO),p=o/14,f=d||(e=>e/c*p+"rem"),h=(e,t,n,o,i)=>{return gp({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===GO?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,WO),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,WO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return YM(gp({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),m,{clone:!1})}function KO(...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 JO=["none",KO(0,2,1,-1,0,1,1,0,0,1,3,0),KO(0,3,1,-2,0,2,2,0,0,1,5,0),KO(0,3,3,-2,0,3,4,0,0,1,8,0),KO(0,2,4,-1,0,4,5,0,0,1,10,0),KO(0,3,5,-1,0,5,8,0,0,1,14,0),KO(0,3,5,-1,0,6,10,0,0,1,18,0),KO(0,4,5,-2,0,7,10,1,0,2,16,1),KO(0,5,5,-3,0,8,10,1,0,3,14,2),KO(0,5,6,-3,0,9,12,1,0,3,16,2),KO(0,6,6,-3,0,10,14,1,0,4,18,3),KO(0,6,7,-4,0,11,15,1,0,4,20,3),KO(0,7,8,-4,0,12,17,2,0,5,22,4),KO(0,7,8,-4,0,13,19,2,0,5,24,4),KO(0,7,9,-4,0,14,21,2,0,5,26,4),KO(0,8,9,-5,0,15,22,2,0,6,28,5),KO(0,8,10,-5,0,16,24,2,0,6,30,5),KO(0,8,11,-5,0,17,26,2,0,6,32,5),KO(0,9,11,-5,0,18,28,2,0,7,34,6),KO(0,9,12,-6,0,19,29,2,0,7,36,6),KO(0,10,13,-6,0,20,31,3,0,8,38,7),KO(0,10,13,-6,0,21,33,3,0,8,40,7),KO(0,10,14,-6,0,22,35,3,0,8,42,7),KO(0,11,14,-7,0,23,36,3,0,9,44,8),KO(0,11,15,-7,0,24,38,3,0,9,46,8)],ZO=["duration","easing","delay"],QO={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)"},eT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tT(e){return`${Math.round(e)}ms`}function nT(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function rT(e){const t=gp({},QO,e.easing),n=gp({},eT,e.duration);return gp({getAutoHeightDuration:nT,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return kp(r,ZO),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:tT(o)} ${i} ${"string"==typeof a?a:tT(a)}`)).join(",")}},e,{easing:t,duration:n})}const oT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},iT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function aT(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=kp(e,iT);if(e.vars)throw new Error(_S(18));const s=UO(r),l=JC(e);let c=YM(l,{mixins:(u=l.breakpoints,d=n,gp({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:JO.slice(),typography:XO(s,i),transitions:rT(o),zIndex:gp({},oT)});var u,d;return c=YM(c,a),c=t.reduce(((e,t)=>YM(e,t)),c),c.unstable_sxConfig=gp({},YC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return GC({sx:e,theme:this})},c}const sT=aT();function lT(){const e=tw(sT);return e[HS]||e}function cT({props:e,name:t}){return qw({props:e,name:t,defaultTheme:sT,themeId:HS})}var uT,dT={},mT={exports:{}};var pT,fT={exports:{}};var hT=ne(HM),gT=ne(WM),yT=ne(nC),vT=ne(Pw),bT=ne(ZC),xT=ne(ow),ST=xO;Object.defineProperty(dT,"__esModule",{value:!0});var ET=dT.default=function(e={}){const{themeId:t,defaultTheme:n=PT,rootShouldForwardProp:r=IT,slotShouldForwardProp:o=IT}=e,i=e=>(0,kT.default)((0,MT.default)({},e,{theme:qT((0,MT.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,wT.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=zT(DT(l))}=a,m=(0,CT.default)(a,NT),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let h=IT;"Root"===l||"root"===l?h=r:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,wT.default)(e,(0,MT.default)({shouldForwardProp:h,label:undefined},m)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,OT.isPlainObject)(e)?r=>$T(e,(0,MT.default)({},r,{theme:qT({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=y(r);const l=o?o.map(y):[];s&&d&&l.push((e=>{const r=qT((0,MT.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=$T(n,(0,MT.default)({},e,{theme:r}))})),d(e,i)})),s&&!p&&l.push((e=>{var r;const o=qT((0,MT.default)({},e,{defaultTheme:n,themeId:t}));return $T({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,MT.default)({},e,{theme:o}))})),f||l.push(i);const c=l.length-o.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}};dT.shouldForwardProp=IT,dT.systemDefaultTheme=void 0;var MT=ST((uT||(uT=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}(mT)),mT.exports)),CT=ST((pT||(pT=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}(fT)),fT.exports)),wT=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=LT(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(hT),OT=gT;ST(yT),ST(vT);var TT=ST(bT),kT=ST(xT);const RT=["ownerState"],AT=["variants"],NT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function LT(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(LT=function(e){return e?n:t})(e)}function IT(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const PT=dT.systemDefaultTheme=(0,TT.default)(),DT=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function qT({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function zT(e){return e?(t,n)=>n[e]:null}function $T(e,t){let{ownerState:n}=t,r=(0,CT.default)(t,RT);const o="function"==typeof e?e((0,MT.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>$T(e,(0,MT.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,CT.default)(o,AT);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,MT.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]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,MT.default)({ownerState:n},r,n)):e.style))})),t}return o}const FT=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,jT=ET({themeId:HS,defaultTheme:sT,rootShouldForwardProp:FT}),_T=["theme"];function BT(e){let{theme:t}=e,n=kp(e,_T);const r=t[HS];return _M.jsx(gO,gp({},n,{themeId:r?HS:void 0,theme:r||t}))}const HT=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function VT(e){return uw("MuiSvgIcon",e)}dw("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const UT=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],YT=jT("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${tC(n.color)}`],t[`fontSize${tC(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,m,p,f;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==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,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==(m=(e.vars||e).palette)||null==(m=m[t.color])?void 0:m.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),WT=B.forwardRef((function(e,t){const n=cT({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,m=kp(n,UT),p=B.isValidElement(r)&&"svg"===r.type,f=gp({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),h={};c||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return oO({root:["root","inherit"!==t&&`color${tC(t)}`,`fontSize${tC(n)}`]},VT,r)})(f);return _M.jsxs(YT,gp({as:a,className:lw(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,m,p&&r.props,{ownerState:f,children:[p?r.props.children:r,u?_M.jsx("title",{children:u}):null]}))}));WT.muiName="SvgIcon";const GT=e=>e.scrollTop;function XT(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function KT(e){return uw("MuiPaper",e)}dw("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 JT=["className","component","elevation","square","variant"],ZT=jT("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 gp({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&&gp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${CO("#fff",HT(t.elevation))}, ${CO("#fff",HT(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),QT=B.forwardRef((function(e,t){const n=cT({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=kp(n,JT),c=gp({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return oO({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},KT,o)})(c);return _M.jsx(ZT,gp({as:o,ownerState:c,className:lw(u.root,r),ref:t},l))}));function ek(e){return"string"==typeof e}function tk(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 nk(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 rk=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ok(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=kp(e,rk),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=lw(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=gp({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=gp({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=tk(gp({},o,r)),s=nk(r),l=nk(o),c=t(a),u=lw(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=gp({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),m=gp({},c,n,l,s);return u.length>0&&(m.className=u),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:c.ref}}(gp({},a,{externalSlotProps:s})),u=function(e,t,n){return void 0===e||ek(e)?t:gp({},t,{ownerState:gp({},t.ownerState,n)})}(n,gp({},l,{ref:Vw(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}const ik=dw("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ak=["center","classes","className"];let sk,lk,ck,uk,dk=e=>e;const mk=CM(sk||(sk=dk`
|
|
22
22
|
0% {
|
|
23
23
|
transform: scale(0);
|
|
24
24
|
opacity: 0.1;
|
|
@@ -48,7 +48,7 @@ System.register(["@nebula.js/stardust","qlik-chart-modules","hammerjs","picasso.
|
|
|
48
48
|
100% {
|
|
49
49
|
transform: scale(1);
|
|
50
50
|
}
|
|
51
|
-
`)),hk=
|
|
51
|
+
`)),hk=jT("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),gk=jT((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=B.useState(!1),m=lw(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+i,left:-a/2+o},f=lw(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),B.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),_M.jsx("span",{className:m,style:p,children:_M.jsx("span",{className:f})})}),{name:"MuiTouchRipple",slot:"Ripple"})(uk||(uk=dk`
|
|
52
52
|
opacity: 0;
|
|
53
53
|
position: absolute;
|
|
54
54
|
|
|
@@ -91,4 +91,4 @@ System.register(["@nebula.js/stardust","qlik-chart-modules","hammerjs","picasso.
|
|
|
91
91
|
animation-iteration-count: infinite;
|
|
92
92
|
animation-delay: 200ms;
|
|
93
93
|
}
|
|
94
|
-
`),ik.rippleVisible,mk,550,(({theme:e})=>e.transitions.easing.easeInOut),ik.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ik.child,ik.childLeaving,pk,550,(({theme:e})=>e.transitions.easing.easeInOut),ik.childPulsate,fk,(({theme:e})=>e.transitions.easing.easeInOut)),yk=B.forwardRef((function(e,t){const n=cO({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Rp(n,ak),[s,l]=B.useState([]),c=B.useRef(0),u=B.useRef(null);B.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=B.useRef(!1),m=Gw(),p=B.useRef(null),f=B.useRef(null),h=B.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,_M.jsx(gk,{classes:{ripple:lw(o.ripple,ik.ripple),rippleVisible:lw(o.rippleVisible,ik.rippleVisible),ripplePulsate:lw(o.ripplePulsate,ik.ripplePulsate),child:lw(o.child,ik.child),childLeaving:lw(o.childLeaving,ik.childLeaving),childPulsate:lw(o.childPulsate,ik.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=B.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=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:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||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(i)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===p.current&&(p.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},m.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,h,m]),y=B.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=B.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void m.start(0,(()=>{v(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[m]);return B.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),_M.jsx(hk,yp({className:lw(ik.root,o.root,i),ref:f},a,{children:_M.jsx(Dv,{component:null,exit:!0,children:s})}))}));function vk(e){return uw("MuiButtonBase",e)}const bk=dw("MuiButtonBase",["root","disabled","focusVisible"]),xk=["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"],Sk=FO("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"},[`&.${bk.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ek=B.forwardRef((function(e,t){const n=cO({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:m="a",onBlur:p,onClick:f,onContextMenu:h,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:M,onTouchEnd:C,onTouchMove:w,onTouchStart:T,tabIndex:O=0,TouchRippleProps:k,touchRippleRef:R,type:A}=n,N=Rp(n,xk),L=B.useRef(null),I=B.useRef(null),P=Vw(I,R),{isFocusVisibleRef:D,onFocus:q,onBlur:z,ref:$}=rT(),[j,F]=B.useState(!1);l&&j&&F(!1),B.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),L.current.focus()}})),[]);const[_,H]=B.useState(!1);B.useEffect((()=>{H(!0)}),[]);const V=_&&!c&&!l;function U(e,t,n=u){return Hw((r=>{t&&t(r);return!n&&I.current&&I.current[e](r),!0}))}B.useEffect((()=>{j&&d&&!c&&_&&I.current.pulsate()}),[c,d,j,_]);const Y=U("start",S),W=U("stop",h),G=U("stop",g),X=U("stop",M),K=U("stop",(e=>{j&&e.preventDefault(),E&&E(e)})),J=U("start",T),Z=U("stop",C),Q=U("stop",w),ee=U("stop",(e=>{z(e),!1===D.current&&F(!1),p&&p(e)}),!1),te=Hw((e=>{L.current||(L.current=e.currentTarget),q(e),!0===D.current&&(F(!0),v&&v(e)),y&&y(e)})),ne=()=>{const e=L.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=B.useRef(!1),oe=Hw((e=>{d&&!re.current&&j&&I.current&&" "===e.key&&(re.current=!0,I.current.stop(e,(()=>{I.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))})),ie=Hw((e=>{d&&" "===e.key&&I.current&&j&&!e.defaultPrevented&&(re.current=!1,I.current.stop(e,(()=>{I.current.pulsate(e)}))),x&&x(e),f&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&f(e)}));let ae=s;"button"===ae&&(N.href||N.to)&&(ae=m);const se={};"button"===ae?(se.type=void 0===A?"button":A,se.disabled=l):(N.href||N.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Vw(t,$,L),ce=yp({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=oT({root:["root",t&&"disabled",n&&"focusVisible"]},vk,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return _M.jsxs(Sk,yp({as:ae,className:lw(ue.root,a),ownerState:ce,onBlur:ee,onClick:f,onContextMenu:W,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:Y,onMouseLeave:K,onMouseUp:X,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:O,type:A},se,N,{children:[i,V?_M.jsx(yk,yp({ref:P,center:o},k)):null]}))}));function Mk(e){return uw("MuiTypography",e)}dw("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ck=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wk=FO("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${tC(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>yp({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}))),Tk={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ok={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kk=B.forwardRef((function(e,t){const n=cO({props:e,name:"MuiTypography"}),r=(e=>Ok[e]||e)(n.color),o=rw(yp({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:m=Tk}=o,p=Rp(o,Ck),f=yp({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:m}),h=s||(u?"p":m[d]||Tk[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return oT({root:["root",i,"inherit"!==e.align&&`align${tC(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Mk,a)})(f);return _M.jsx(wk,yp({as:h,ref:t,ownerState:f,className:lw(g.root,a)},p))})),Rk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ak(e){const t=[],n=[];return Array.from(e.querySelectorAll(Rk)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Nk(){return!0}function Lk(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Ak,isEnabled:a=Nk,open:s}=e,l=B.useRef(!1),c=B.useRef(null),u=B.useRef(null),d=B.useRef(null),m=B.useRef(null),p=B.useRef(!1),f=B.useRef(null),h=Vw(t.ref,f),g=B.useRef(null);B.useEffect((()=>{s&&f.current&&(p.current=!n)}),[n,s]),B.useEffect((()=>{if(!s||!f.current)return;const e=Fw(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),p.current&&f.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),B.useEffect((()=>{if(!s||!f.current)return;const e=Fw(f.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=f.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!==m.current)m.current=null;else if(null!==m.current)return;if(!p.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(f.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.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 o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,s,i]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return _M.jsxs(B.Fragment,{children:[_M.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),B.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,m.current=e.target;const n=t.props.onFocus;n&&n(e)}}),_M.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const Ik=B.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=B.useState(null),s=Vw(B.isValidElement(n)?n.ref:null,t);if(zw((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),zw((()=>{if(i&&!o)return Bw(t,i),()=>{Bw(t,null)}}),[t,i,o]),o){if(B.isValidElement(n)){const e={ref:s};return B.cloneElement(n,e)}return _M.jsx(B.Fragment,{children:n})}return _M.jsx(B.Fragment,{children:i?J.createPortal(n,i):i})}));function Pk(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Dk(e){return parseInt(_w(e).getComputedStyle(e).paddingRight,10)||0}function qk(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.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&&Pk(e,o)}))}function zk(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function $k(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Fw(e);return t.body===e?_w(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)}(Fw(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Dk(r)+e}px`;const t=Fw(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Dk(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Fw(r).body;else{const t=r.parentElement,n=_w(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 jk=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&&Pk(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);qk(t,e.mount,e.modalRef,r,!0);const o=zk(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=zk(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=$k(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=zk(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Pk(e.modalRef,t),qk(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Pk(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Fk(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=jk,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,m=B.useRef({}),p=B.useRef(null),f=B.useRef(null),h=Vw(f,d),[g,y]=B.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=()=>(m.current.modalRef=f.current,m.current.mount=p.current,m.current),S=()=>{o.mount(x(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},E=Hw((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Fw(p.current).body;o.add(x(),e),f.current&&S()})),M=B.useCallback((()=>o.isTopModal(x())),[o]),C=Hw((e=>{p.current=e,e&&(u&&M()?S():f.current&&Pk(f.current,b))})),w=B.useCallback((()=>{o.remove(x(),b)}),[b,o]);B.useEffect((()=>()=>{w()}),[w]),B.useEffect((()=>{u?E():v&&i||w()}),[u,w,v,i,E]);const T=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=tk(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=yp({},n,t);return yp({role:"presentation"},r,{onKeyDown:T(r),ref:h})},getBackdropProps:(e={})=>yp({"aria-hidden":!0},e,{onClick:O(e),open:u}),getTransitionProps:()=>({onEnter:jw((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:jw((()=>{y(!0),s&&s(),i&&w()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:C,isTopModal:M,exited:g,hasTransition:v}}const _k=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Bk={entering:{opacity:1},entered:{opacity:1}},Hk=B.forwardRef((function(e,t){const n=lO(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:m,onExited:p,onExiting:f,style:h,timeout:g=r,TransitionComponent:y=Rv}=e,v=Rp(e,_k),b=B.useRef(null),x=Vw(b,a.ref,t),S=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},E=S(d),M=S(((e,t)=>{GO(e);const r=XO({style:h,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)})),C=S(u),w=S(f),T=S((e=>{const t=XO({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),m&&m(e)})),O=S(p);return _M.jsx(y,yp({appear:i,in:l,nodeRef:b,onEnter:M,onEntered:C,onEntering:E,onExit:T,onExited:O,onExiting:w,addEndListener:e=>{o&&o(b.current,e)},timeout:g},v,{children:(e,t)=>B.cloneElement(a,yp({style:yp({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Bk[e],h,a.props.style),ref:x},t))}))}));function Vk(e){return uw("MuiBackdrop",e)}dw("MuiBackdrop",["root","invisible"]);const Uk=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Yk=FO("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>yp({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"}))),Wk=B.forwardRef((function(e,t){var n,r,o;const i=cO({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:m,slotProps:p={},slots:f={},TransitionComponent:h=Hk,transitionDuration:g}=i,y=Rp(i,Uk),v=yp({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return oT({root:["root",n&&"invisible"]},Vk,t)})(v),x=null!=(n=p.root)?n:u.root;return _M.jsx(h,yp({in:m,timeout:g},y,{children:_M.jsx(Yk,yp({"aria-hidden":!0},x,{as:null!=(r=null!=(o=f.root)?o:c.Root)?r:l,className:lw(b.root,s,null==x?void 0:x.className),ownerState:yp({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function Gk(e){return uw("MuiButton",e)}const Xk=dw("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"]),Kk=B.createContext({}),Jk=B.createContext(void 0),Zk=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Qk=e=>yp({},"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}}),eR=FO(Ek,{shouldForwardProp:e=>jO(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${tC(n.color)}`],t[`size${tC(n.size)}`],t[`${n.variant}Size${tC(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return yp({},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":yp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:CT(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})`:CT(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})`:CT(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:i,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":yp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Xk.focusVisible}`]:yp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Xk.disabled}`]:yp({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 ${CT(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:o,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"},[`&.${Xk.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xk.disabled}`]:{boxShadow:"none"}})),tR=FO("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${tC(n.size)}`]]}})((({ownerState:e})=>yp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Qk(e)))),nR=FO("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${tC(n.size)}`]]}})((({ownerState:e})=>yp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Qk(e)))),rR=B.forwardRef((function(e,t){const n=B.useContext(Kk),r=B.useContext(Jk),o=cO({props:Dw(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:m,focusVisibleClassName:p,fullWidth:f=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=o,b=Rp(o,Zk),x=yp({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:f,size:h,type:y,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return yp({},a,oT({root:["root",i,`${i}${tC(t)}`,`size${tC(o)}`,`${i}Size${tC(o)}`,`color${tC(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${tC(o)}`],endIcon:["icon","endIcon",`iconSize${tC(o)}`]},Gk,a))})(x),E=g&&_M.jsx(tR,{className:S.startIcon,ownerState:x,children:g}),M=m&&_M.jsx(nR,{className:S.endIcon,ownerState:x,children:m}),C=r||"";return _M.jsxs(eR,yp({ownerState:x,className:lw(n.className,S.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:lw(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[E,i,M]}))}));function oR(e){return uw("MuiModal",e)}dw("MuiModal",["root","hidden","backdrop"]);const iR=["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"],aR=FO("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})=>yp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),sR=FO(Wk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lR=B.forwardRef((function(e,t){var n,r,o,i,a,s;const l=cO({name:"MuiModal",props:e}),{BackdropComponent:c=sR,BackdropProps:u,className:d,closeAfterTransition:m=!1,children:p,container:f,component:h,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:M=!1,hideBackdrop:C=!1,keepMounted:w=!1,onBackdropClick:T,open:O,slotProps:k,slots:R}=l,A=Rp(l,iR),N=yp({},l,{closeAfterTransition:m,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:M,hideBackdrop:C,keepMounted:w}),{getRootProps:L,getBackdropProps:I,getTransitionProps:P,portalRef:D,isTopModal:q,exited:z,hasTransition:$}=Fk(yp({},N,{rootRef:t})),j=yp({},N,{exited:z}),F=(e=>{const{open:t,exited:n,classes:r}=e;return oT({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},oR,r)})(j),_={};if(void 0===p.props.tabIndex&&(_.tabIndex="-1"),$){const{onEnter:e,onExited:t}=P();_.onEnter=e,_.onExited=t}const H=null!=(n=null!=(r=null==R?void 0:R.root)?r:g.Root)?n:aR,V=null!=(o=null!=(i=null==R?void 0:R.backdrop)?i:g.Backdrop)?o:c,U=null!=(a=null==k?void 0:k.root)?a:y.root,Y=null!=(s=null==k?void 0:k.backdrop)?s:y.backdrop,W=ok({elementType:H,externalSlotProps:U,externalForwardedProps:A,getSlotProps:L,additionalProps:{ref:t,as:h},ownerState:j,className:lw(d,null==U?void 0:U.className,null==F?void 0:F.root,!j.open&&j.exited&&(null==F?void 0:F.hidden))}),G=ok({elementType:V,externalSlotProps:Y,additionalProps:u,getSlotProps:e=>I(yp({},e,{onClick:t=>{T&&T(t),null!=e&&e.onClick&&e.onClick(t)}})),className:lw(null==Y?void 0:Y.className,null==u?void 0:u.className,null==F?void 0:F.backdrop),ownerState:j});return w||O||$&&!z?_M.jsx(Ik,{ref:D,container:f,disablePortal:S,children:_M.jsxs(H,yp({},W,{children:[!C&&c?_M.jsx(V,yp({},G)):null,_M.jsx(Lk,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:q,open:O,children:B.cloneElement(p,_)})]}))}):null}));function cR(e){return uw("MuiDivider",e)}dw("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const uR=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],dR=FO("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})=>yp({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)`:CT(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})=>yp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>yp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>yp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>yp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),mR=FO("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>yp({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)`}))),pR=B.forwardRef((function(e,t){const n=cO({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:m="fullWidth"}=n,p=Rp(n,uR),f=yp({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:m}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return oT({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},cR,r)})(f);return _M.jsx(dR,yp({as:a,className:lw(h.root,i),role:u,ref:t,ownerState:f},p,{children:o?_M.jsx(mR,{className:h.wrapper,ownerState:f,children:o}):null}))}));pR.muiSkipListHighlight=!0;const fR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hR(e){return`scale(${e}, ${e**2})`}const gR={entering:{opacity:1,transform:hR(1)},entered:{opacity:1,transform:"none"}},yR="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vR=B.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:m,style:p,timeout:f="auto",TransitionComponent:h=Rv}=e,g=Rp(e,fR),y=Gw(),v=B.useRef(),b=lO(),x=B.useRef(null),S=Vw(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},M=E(c),C=E(((e,t)=>{GO(e);const{duration:n,delay:r,easing:o}=XO({style:p,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(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:yR?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),w=E(l),T=E(m),O=E((e=>{const{duration:t,delay:n,easing:r}=XO({style:p,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:n}),b.transitions.create("transform",{duration:yR?o:.666*o,delay:yR?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=hR(.75),u&&u(e)})),k=E(d);return _M.jsx(h,yp({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:w,onEntering:M,onExit:O,onExited:k,onExiting:T,addEndListener:e=>{"auto"===f&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===f?null:f},g,{children:(e,t)=>B.cloneElement(o,yp({style:yp({opacity:0,transform:hR(.75),visibility:"exited"!==e||a?void 0:"hidden"},gR[e],p,o.props.style),ref:S},t))}))}));vR.muiSupportAuto=!0;const bR=B.createContext({});function xR(e){return uw("MuiList",e)}dw("MuiList",["root","padding","dense","subheader"]);const SR=["children","className","component","dense","disablePadding","subheader"],ER=FO("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})=>yp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),MR=B.forwardRef((function(e,t){const n=cO({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=Rp(n,SR),u=B.useMemo((()=>({dense:a})),[a]),d=yp({},n,{component:i,dense:a,disablePadding:s}),m=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return oT({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},xR,t)})(d);return _M.jsx(bR.Provider,{value:u,children:_M.jsxs(ER,yp({as:i,className:lw(m.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})}));function CR(e){return uw("MuiListItemButton",e)}const wR=dw("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),TR=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],OR=FO(Ek,{shouldForwardProp:e=>jO(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})=>yp({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"}},[`&.${wR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:CT(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:CT(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:CT(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})`:CT(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wR.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}))),kR=B.forwardRef((function(e,t){const n=cO({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:m}=n,p=Rp(n,TR),f=B.useContext(bR),h=B.useMemo((()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l})),[r,f.dense,s,l]),g=B.useRef(null);zw((()=>{o&&g.current&&g.current.focus()}),[o]);const y=yp({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return yp({},n,oT({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},CR,n))})(y),b=Vw(g,t);return _M.jsx(bR.Provider,{value:h,children:_M.jsx(OR,yp({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===i?"button":i,focusVisibleClassName:lw(v.focusVisible,u),ownerState:y,className:lw(v.root,m)},p,{classes:v,children:a}))})}));function RR(e){return uw("MuiListItemIcon",e)}dw("MuiListItemIcon",["root","alignItemsFlexStart"]);const AR=["className"],NR=FO("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})=>yp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),LR=B.forwardRef((function(e,t){const n=cO({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rp(n,AR),i=yp({},n,{alignItems:B.useContext(bR).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return oT({root:["root","flex-start"===t&&"alignItemsFlexStart"]},RR,n)})(i);return _M.jsx(NR,yp({className:lw(a.root,r),ownerState:i,ref:t},o))}));function IR(e){return uw("MuiListItemText",e)}const PR=dw("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),DR=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],qR=FO("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${PR.primary}`]:t.primary},{[`& .${PR.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>yp({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),zR=B.forwardRef((function(e,t){const n=cO({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:i=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=Rp(n,DR),{dense:m}=B.useContext(bR);let p=null!=s?s:r,f=c;const h=yp({},n,{disableTypography:i,inset:a,primary:!!p,secondary:!!f,dense:m}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return oT({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},IR,t)})(h);return null==p||p.type===kk||i||(p=_M.jsx(kk,yp({variant:m?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:p}))),null==f||f.type===kk||i||(f=_M.jsx(kk,yp({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:f}))),_M.jsxs(qR,yp({className:lw(g.root,o),ownerState:h,ref:t},d,{children:[p,f]}))}));function $R(e){return uw("MuiPopover",e)}dw("MuiPopover",["root","paper"]);const jR=["onEntering"],FR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_R=["slotProps"];function BR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function HR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function VR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function UR(e){return"function"==typeof e?e():e}const YR=FO(lR,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),WR=FO(QO,{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}),GR=B.forwardRef((function(e,t){var n,r,o;const i=cO({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:m,container:p,elevation:f=8,marginThreshold:h=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=vR,transitionDuration:E="auto",TransitionProps:{onEntering:M}={},disableScrollLock:C=!1}=i,w=Rp(i.TransitionProps,jR),T=Rp(i,FR),O=null!=(n=null==b?void 0:b.paper)?n:y,k=B.useRef(),R=Vw(k,O.ref),A=yp({},i,{anchorOrigin:l,anchorReference:u,elevation:f,marginThreshold:h,externalPaperSlotProps:O,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:w}),N=(e=>{const{classes:t}=e;return oT({root:["root"],paper:["paper"]},$R,t)})(A),L=B.useCallback((()=>{if("anchorPosition"===u)return c;const e=UR(s),t=(e&&1===e.nodeType?e:Fw(k.current).body).getBoundingClientRect();return{top:t.top+BR(t,l.vertical),left:t.left+HR(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),I=B.useCallback((e=>({vertical:BR(e,x.vertical),horizontal:HR(e,x.horizontal)})),[x.horizontal,x.vertical]),P=B.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=I(t);if("none"===u)return{top:null,left:null,transformOrigin:VR(n)};const r=L();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=_w(UR(s)),d=c.innerHeight-h,m=c.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(l>m){const e=l-m;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:VR(n)}}),[s,u,L,I,h]),[D,q]=B.useState(g),z=B.useCallback((()=>{const e=k.current;if(!e)return;const t=P(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,q(!0)}),[P]);B.useEffect((()=>(C&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[s,C,z]);B.useEffect((()=>{g&&z()})),B.useImperativeHandle(a,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),B.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}((()=>{z()})),t=_w(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,z]);let $=E;"auto"!==E||S.muiSupportAuto||($=void 0);const j=p||(s?Fw(UR(s)).body:void 0),F=null!=(r=null==v?void 0:v.root)?r:YR,_=null!=(o=null==v?void 0:v.paper)?o:WR,H=ok({elementType:_,externalSlotProps:yp({},O,{style:D?O.style:yp({},O.style,{opacity:0})}),additionalProps:{elevation:f,ref:R},ownerState:A,className:lw(N.paper,null==O?void 0:O.className)}),V=ok({elementType:F,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:T,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:A,className:lw(N.root,m)}),{slotProps:U}=V,Y=Rp(V,_R);return _M.jsx(F,yp({},Y,!ek(F)&&{slotProps:U,disableScrollLock:C},{children:_M.jsx(S,yp({appear:!0,in:g,onEntering:(e,t)=>{M&&M(e,t),z()},onExited:()=>{q(!1)},timeout:$},w,{children:_M.jsx(_,yp({},H,{children:d}))}))}))}));function XR(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 KR(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function JR(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 ZR(){return ZR=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},ZR.apply(null,arguments)}function QR(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 eA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QR(Object(n),!0).forEach((function(t){JR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tA(){tA=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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 i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new R(r||[]);return o(a,"_invoke",{value:w(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 m="suspendedStart",p="executing",f="completed",h={};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 E=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 C(e,t){function n(o,i,a,s){var l=d(e[o],e,i);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 i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function w(t,n,r){var o=m;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===f){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=T(s,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?f:"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.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,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(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 o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,o(E,"constructor",{value:v,configurable:!0}),o(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(E),e},t.awrap=function(e){return{__await:e}},M(C.prototype),c(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},M(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"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,R.prototype={constructor:R,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(k),!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 o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("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 o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):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),h},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),k(n),h}},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 o=r.arg;k(n)}return o}}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),h}},t}function nA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||iA(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rA(e){return function(e){if(Array.isArray(e))return XR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iA(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 oA(e){return oA="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},oA(e)}function iA(e,t){if(e){if("string"==typeof e)return XR(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)?XR(e,t):void 0}}var aA=function(e){var t=e.className,n=e.title,r=e.path,o=e.fillRule;return _.createElement(WO,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},_.createElement("path",{d:r}),n?_.createElement("title",null,n):void 0,o?_.createElement("use",{fillRule:o}):void 0)},sA={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)"}}}},lA={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},cA=function(e){return lA.R.test(e)||lA.AL.test(e)};function uA(e){for(var t,n,r=e?e.length:0,o=0;o<r;o++){if(n=t=e[o],lA.L.test(n))return"ltr";if(cA(t))return"rtl"}return"ltr"}var dA,mA,pA=FO(rR,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,o=r.fontSize,i=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:o,fontFamily:i,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}}})),fA=FO((function(e){var t=e.className;return _.createElement(aA,{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:sA.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),hA=FO((function(e){var t=e.className;return _.createElement(aA,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:sA.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:sA.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),gA=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,o=e.source,i=o.styling,a=o.info.text,s=o.layout.direction,l=o.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,m=l.hasMultiple,p=l.isCyclic,f=l.isLocked,h=o.resources.translator,g=o.services.focus,y=o.settings.isDisabled,v=o.state.inSelections,b=!(!c.change||!u),x=!(!c.reload||!p),S=(b||x)&&!v&&!y(),E={pointerEvents:S?"auto":"none"},M=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,o=e.direction,i=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=i&&t.reload;return"ltr"===o&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===o&&(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:m,isLocked:f}),C=JR(JR({},"rtl"===s?"endIcon":"startIcon",f&&_.createElement(fA,{height:12})),"rtl"===s?"startIcon":"endIcon",(b||x)&&_.createElement(hA,{className:"".concat(v||y()?"disabled":"")})),w=K(),T=K();X((function(){t||g.get()&&(w.current.focus(),T.current.focusVisible(),g.set(!1))}));var O=uA(a),k="Accessibility.".concat(S?"Alternative":"Normal",".Instructions");return _.createElement(pA,ZR({action:T,"aria-describedby":r,"aria-label":h.get(k),color:"inherit",direction:s,disabled:!S||y()||v,onClick:function(e){S&&n(e)},padding:M,ref:w,style:E,styling:i.title,title:a},C),_.createElement("span",{dir:O,style:sA.STYLE.ELLIPSIS},a))},yA=function(e){var t=e.className,n=e.title;return _.createElement(aA,{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"})},vA=FO(rR,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,o=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:o,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:o,opacity:1}}})),bA=FO(yA,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:sA.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),xA=FO((function(e){var t=e.className,n=e.title;return _.createElement(aA,{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:sA.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:sA.STYLE.ICONS.COLOR.DISABLED}}})),SA=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=nA(G(!1),2),r=n[0],o=n[1],i=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,m=d.allowed,p=d.isFirst,f=d.isLast,h=t.settings.isDisabled,g=t.state.inSelections;return X((function(){r&&o(!1)}),[l]),m.reload?_.createElement(vA,{direction:u,disabled:r||g||h(),isFirst:p,isLast:f,onClick:function(){return o(!0),void a()},styling:i.title,title:c,variant:"outlined"},_.createElement(xA,{className:"".concat(r||g||h()?"disabled":"")})):_.createElement(bA,{direction:u,isFirst:p,isLast:f,style:{flexShrink:0},title:c})},EA=function(e){var t=e.className,n=e.title;return _.createElement(aA,{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"})},MA=FO(rR,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,o=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:o,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:o}}})),CA={color:sA.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:sA.STYLE.ICONS.COLOR.DISABLED}},wA=FO((function(e){var t=e.className;return _.createElement(aA,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return CA})),TA=FO((function(e){var t=e.className;return _.createElement(aA,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return CA})),OA=FO(EA,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:sA.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),kA=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,o=t.info,i=o.breadcrumbs,a=o.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,m=t.state.inSelections,p=d()||m?"disabled":null,f=JR({},"rtl"===s?"startIcon":"endIcon","rtl"===s?_.createElement(TA,{className:p}):_.createElement(wA,{className:p})),h=i.map((function(e,t){var o=uA(e);return _.createElement(MA,ZR({disabled:d()||m,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:i.length-e})}(t)},styling:n.title,title:e},f),_.createElement("span",{dir:o,style:sA.STYLE.ELLIPSIS},e))}));return _.createElement(_.Fragment,null,"rtl"===s?h.reverse():void 0,_.createElement(OA,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:h)},RA=FO(kR,{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":eA({},sA.STYLE.FOCUS)}})),AA=FO(LR)((function(){return{marginRight:0,justifyContent:"center"}})),NA=FO((function(e){var t=e.className;return _.createElement(aA,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:sA.STYLE.ICONS.COLOR.SECONDARY}})),LA=FO(yA)((function(){return{color:sA.STYLE.ICONS.COLOR.SECONDARY}})),IA=FO(EA)((function(){return{color:sA.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),PA=function(e){var t=e.id,n=e.meta,r=e.nested,o=e.onClick,i=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=eA({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},sA.STYLE.ELLIPSIS),d=uA(s),m=_.createElement(AA,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?_.createElement(NA,{height:12}):null!=t&&t.isCyclic?_.createElement(LA,{height:12}):null!=t&&t.isDrillDown?_.createElement(IA,{height:12}):void 0}({meta:n,selected:i}));return _.createElement(_.Fragment,{key:t},_.createElement(RA,{autoFocus:i,nested:r,onClick:function(e){return null==o?void 0:o(e)},rtl:c,title:s},c&&m,_.createElement(zR,{dir:d,primaryTypographyProps:{style:u}},s),!c&&m))},DA=FO(pR)((function(){return{marginTop:"-1px"}})),qA=function(e){var t=e.anchor,n=e.id,r=e.onClose,o=e.open,i=e.source,a=i.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=i.info,d=u.breadcrumbs,m=u.group,p=u.id,f=u.text,h=i.data.alternatives,g=i.meta,y=g.isCyclic,v=g.isDrillDown,b=i.resources.translator,x=i.services.focus,S=y||v,E=_.createElement(PA,{id:p,key:p,meta:i.meta,onClick:r,selected:!S,source:i,text:S?m.name:f}),M=S&&m.items.map((function(e){return _.createElement(PA,{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:i,text:e.text})})),C=h.map((function(e,t){return _.createElement(_.Fragment,{key:e.id},_.createElement(PA,{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:i,text:e.text}),t<h.length-1&&_.createElement(DA,{key:"divider-".concat(e.id)}))}));return _.createElement(GR,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},id:n,onClose:r,open:o,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},_.createElement(MR,{"aria-label":b.get("Accessibility.Popover.Instructions"),dense:!0},E,M,_.createElement(DA,{key:"divider-".concat(p)}),C))},zA=function(e){var t=e.source,n=nA(G(null),2),r=n[0],o=n[1],i={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.services.focus,l=_.createElement(SA,{source:t}),c=_.createElement(kA,{source:t});return _.createElement(_.Fragment,null,"rtl"===a?void 0:c,"rtl"===a?void 0:l,_.createElement(gA,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&s.set(!0),o(t)},isOpen:i.isOpen,popoverId:i.id,source:t}),_.createElement(qA,{anchor:r,id:i.id,onClose:function(){o(null)},open:i.isOpen,source:t}),"rtl"===a?c:void 0,"rtl"===a?l:void 0)};var $A=function(){if(mA)return dA;mA=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)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 dA=function e(){var t,n,r,l,c,u,d=arguments[0],m=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},m=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});m<p;++m)if(null!=(t=arguments[m]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},dA}(),jA=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}($A);function FA(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function _A(e){return Array.isArray(e)}function BA(e){return null!=e&&!Array.isArray(e)&&"object"===oA(e)}function HA(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function VA(e){return void 0===e}function UA(e,t){if(BA(e)&&BA(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,o=n.length;r<o;r+=1)if(!UA(e[n[r]],t[n[r]]))return!1;return!0}if(_A(e)&&_A(t)){if(e.length!==t.length)return!1;for(var i=0,a=e.length;i<a;i+=1)if(!UA(e[i],t[i]))return!1;return!0}return e===t}function YA(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,o=void 0===r?{}:r,i=e.basePath,a=void 0===i?"":i,s=[];return Object.keys(o).forEach((function(e){var t=function(e){return e?jA(!0,{},{value:e}).value:e}(o[e]),r=n[e],i="".concat(a,"/").concat(e);UA(t,r)||HA(o,e)||(VA(r)?s.push({op:"add",path:i,value:t}):BA(t)&&BA(r)?s.push.apply(s,rA(YA({oldData:r,newData:t,basePath:i}))):_A(t)&&_A(r)?s.push.apply(s,rA(function(e){var t=e.newArray,n=e.basePath,r=[];return UA(t,e.oldArray.slice())||(!VA(t[0])&&VA(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:i}))):s.push({op:"replace",path:i,value:t}))})),Object.keys(n).forEach((function(e){VA(o[e])&&!HA(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function WA(e){var t=e.model,n=YA({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 GA(e){return XA.apply(this,arguments)}function XA(){return(XA=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){KR(i,r,o,a,s,"next",e)}function s(e){KR(i,r,o,a,s,"throw",e)}a(void 0)}))}}(tA().mark((function e(t){var n,r,o,i,a,s,l,c,u,d,m,p;return tA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.from,r=t.to,o=t.model,i=t.container,a=t.skipAttributeExpressions,s=t.onChange,e.next=3,o.getEffectiveProperties();case 3:return l=e.sent,c=l.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===r})),d=jA(!0,{},l),m=d.qHyperCubeDef[i][c],(p=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]).qAttributeDimensions=m.qAttributeDimensions,m.qAttributeDimensions=[],a||(p.qAttributeExpressions=m.qAttributeExpressions,m.qAttributeExpressions=[]),d.qHyperCubeDef[i][c]=p,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]=m,s({fromItem:m,toItem:p,oldProperties:l,newProperties:d,model:o}),e.next=17,FA({model:o,properties:d});case 17:o.colorSupport&&o.colorSupport.colorByUpdater(d,"qHyperCubeDef."),WA({model:o,oldProperties:l,newProperties:d});case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function KA(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=o.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,o=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,m=e.qLocked,p=e.title,f="C"===r,h="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){f&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:f,isDrillDown:h,isLocked:!!m,isNormal:g},info:{id:n,text:g?d:o[a],position:a,breadcrumbs:o.slice(0,e.qGroupPos),group:{name:p,items:o.slice(0,h?e.qGroupPos+1:o.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(f?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return GA({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:i})},drillUp:function(e){var t=e.steps;h&&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 JA(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.model,l=o.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 GA({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:i})}}}}))}function ZA(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=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:i}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=i.app,m=i.cache,p=i.model,f=a.forceAllowChange,h=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:h}),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:m,key:o}),x=("dimension"===y?KA:JA)({callbacks:t,data:n,resources:i,settings:a});"rtl"===v&&x.reverse();var S={allowed:{change:(!(!p.modifiers||!p.colorSupport)||f)&&!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 eA(eA({data:n,layout:{direction:v},resources:{translator:i.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:eA(eA(eA({},S),e.meta),{},{isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:o,resources:a,settings:s,state:l,styling:c});return _.createElement("div",{style:u},d.map((function(e){return _.createElement(_.Fragment,{key:e.info.id},_.createElement(zA,{source:e}),!e.meta.isLast&&_.createElement("span",{dir:e.layout.direction,style:eA(eA({},c.title),{},{lineHeight:"normal"})},", "))})))}var QA,eN='"Source Sans Pro", "Arial", "sans-serif"',tN="12px",nN=function(e){var t=e.rect,n=e.state,r=e.settings,o=r.callbacks,i=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return ZA({callbacks:o,data:i,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},rN={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:eN,fontSize:tN},popover:{color:"#595959CC",fontFamily:eN,fontSize:tN}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,o=t.alternatives,i=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=o.length||"measure"!==i?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(nN(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 nN(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))}},oN=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return _.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},iN={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,o=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,o=e.styling,i=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:o});return _.createElement("div",{dir:i,style:a},_.createElement(oN,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},aN={},sN=function(){if(QA)return aN;QA=1;var e=Z;return aN.createRoot=e.createRoot,aN.hydrateRoot=e.hydrateRoot,aN}(),lN=aO({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 cN(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,o=n.y,i=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(o)||void 0===o?t.y:o,t.width=Number.isNaN(i)||void 0===i?t.width:i,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 uN(){var e={rendererBox:cN(),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=cN(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=sN.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,o=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*o),"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(o,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return _.createElement(_.StrictMode,null,_.createElement(BO,{theme:lN},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}var dN={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:o,size:i,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,m=l.length&&void 0!==u;if(!d&&!m)return[];const p=s.map((e=>e.ref)),f=l.map((e=>e.ref)),h=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:o=[],primarySeries:i=[],secondarySeries:a=[]}){const s=[];[...i,...a].forEach((i=>{const a=i.isPrimary?t:n,l=i.isPrimary?r:o;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const o="max"===e?e=>e>t:e=>e<t,i=n?e=>o(e.point.value<0?e.start.value:e.end.value):e=>o(e.end.value);return r.filter(i)})({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:e.filter((e=>p.includes(e.end.source.field))),secondaryItems:e.filter((e=>f.includes(e.end.source.field))),primarySeries:s,secondarySeries:l});if(!h.length)return[];const g="horizontal"===n,y=this.rect[g?"width":"height"],v=this.resolver.resolve({data:{items:h},settings:{major:a},scaled:{major:y}}),b=("max"===t?90:-90)-(g?0:90)-(!g&&r?180:0),x=i/2*o,{fill:S}=this.settings.style,E=v.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:o,y:i,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:o,y:i,data:a})}({symbol:this.symbol,size:i,fill:S,startAngle:b,x:g?y*e.major:x,y:g?x:y*e.major,data:e.data})));return E}};function mN({x:e,y:t,size:n,stroke:r,strokeWidth:o,fill:i}){return{type:"container",children:[{type:"line",stroke:r||i,strokeWidth:o,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:i,cx:e,cy:t,r:.25*n}]}}function pN({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))],o=e.findShapes("path").filter((e=>r.some((t=>t===e.key))));return o.reduce(((e,n)=>((t.primary.some((e=>e.key===n.key))?e.primary:e.secondary).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 fN({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function hN({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(Wa.SCALE.MAJOR),o=r&&r.max&&r.max(),i="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===o?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&i(e,t.max)))}}function gN({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:o,chart:i}){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 m=[c?e=>e.color.value:r[d]].filter(Boolean);if(o&&l&&m.push((e=>e.color.value)),!o&&u&&(m=[e=>e.color.value]),!m.length)return[];const p=function({brush:e,chart:t}){return("value"===e.type?fN:hN)({brush:e,chart:t})}({brush:s,chart:i});return p?n.reduce(((e,t,n)=>(m.some((e=>p({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function yN({chart:e,selected:t,connection:n,gradient:r,fallback:o}){const i=e.scale(Wa.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=i.domain().map((e=>({color:i(Math.min(l,Math.max(s,e)))||o,offset:Math.min(1,Math.max(0,(e-s)/u))}))),m=d.map((e=>e.offset)),p=m.lastIndexOf(0),f=m.indexOf(1),h=d.slice(-1===p?0:p,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function vN({chart:e,selected:t,connection:n,gradient:r,fallback:o}){const i=e.scale(Wa.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=i.domain(),d=[];for(let e=0;e<u.length-1;e++){const t=u[e],n=i(t)||o;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 m=d.map((e=>e.offset)),p=m.lastIndexOf(0),f=m.indexOf(1),h=d.slice(-1===p?0:p,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function bN({property:e,chart:t,connection:n,attrs:r,colorSettings:o,colorByData:i,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:c,orientation:u,rtl:d}){const m=r[e];if("gradient"!==m.type)return m;const{type:p,nil:f}=o;if(s||!i)return function({chart:e,selected:t,connection:n,gradient:r,fallback:o,orientation:i,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:c}){const u=e.scale(Wa.SCALE.MAJOR),d=e.scale(Wa.SCALE.COLOR),m=s?e=>u([e,0])+u.bandwidth()*l/2:e=>u(e),p=t.filter((e=>-1!==n.indexOf(e.index))),f=("vertical"===i&&c?p.reverse():p).map((e=>e.item)),h=f.map((e=>m(e.major.value))),g=Math.min(...h),y=Math.max(...h)-g,v=0===y?1:y,b=h.map(((e,t)=>0===t?0:t===h.length-1?1:(e-g)/v)),x=[];for(let e=0;e<f.length;e++){const t=f[e],n=a?t.color.value:d(t.color.value)||o,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===f.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:m,fallback:f,orientation:u,isColorCode:"color"===p,groupedByMeasure:l,itemsPerGroup:c,rtl:d});return("continuous"===p?yN:vN)({chart:t,selected:a,connection:n,gradient:m,fallback:f})}function xN({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:o,groupedByMeasure:i,itemsPerGroup:a,orientation:s,lineKey:l,primary:c,selected:u,connections:d,rtl:m,count:p}){const f=t.getLine(l,c),{attrs:h}=f,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:h.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:o,itemsPerGroup:i,orientation:a,selected:s,connection:l,commands:c,attrs:u,rtl:d,count:m}){return{path:l.map(((e,t)=>{const n=c[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join(""),attrs:u,stroke:bN({property:"stroke",chart:e,connection:l,attrs:u,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:o,itemsPerGroup:i,orientation:a,rtl:d})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:o,groupedByMeasure:i,itemsPerGroup:a,orientation:s,selected:u,connection:t,commands:g,attrs:h,rtl:m,count:p})))}function SN({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:o,items:i,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:m,rtl:p}){const f=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:o}=t;return!r||(o?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:i,selectionInfo:o,seriesInfo:n}),h=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const o=n.typeIndex.value;var i;return e[o]||(e[o]={key:o,items:[],index:r,measureIx:null===(i=n.colorMeasureIdx)||void 0===i?void 0:i.value,primary:t.primary.some((e=>e.typeIndex===o))}),e[o].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:f,seriesInfo:n}),{lines:g}=h.reduce(((n,i)=>{const f=gN({brush:r,selectionInfo:o,items:i.items,selectionValues:a,colorByData:l,chart:e});if(f.length<2)return n;const h=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:f});return h.length?(n.lines.push(...xN({chart:e,pathModel:t,colorSettings:s(i.measureIx),colorByData:l(i.measureIx),hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:m,lineKey:i.lineKey,primary:i.primary,selected:f,connections:h,rtl:p,count:i.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 EN={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:pN({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=SN({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=pN({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return SN({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 MN=()=>{const e=j();return e.use(F),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Cm(e))};e.interaction("hammer",Cm(Hammer))}($)),e.use(Xb),e.use((function(e){e.renderer("react",Wb()),e.component("data-title",Vb(e.renderer("svg")()))})),e.renderer("react-qcm",uN),e.component("axis-title",rN),e.component("disclaimer",iN),e.component("scrollbar",nl),e.component("point-label",iS),e.component("label-space",aS),e.component("time-axis",Jd.picassoComponents.timeAxis),e.component("axis-overlay",Jd.picassoComponents.axisOverlay),e.component("reference-line-labels",Na),e.component("box-sliced-hat",ix),e.component("box-out-of-bounds",ex),e.component("data-out-of-bounds-marker",dN),e.component("scroll-hint",Ni),e.component("brush-highlighter",EN),e.scale("time",Jd.picassoScales.time),e.symbol("line-point",mN),e},CN=e=>"[object Object]"===Object.prototype.toString.call(e),wN=e=>Array.isArray(e);function TN(e,t){if(e===t)return!0;if(wN(e)){if(!wN(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!TN(e[n],t[n]))return!1;return!0}if(CN(e)){if(!CN(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(!TN(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function ON({enable:e=!0}={}){const t=a(),o=()=>Date.now().toString()+Math.random(),[i,s]=n(o()),l={properties:void 0};return r((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const n=()=>{t.getEffectiveProperties().then((e=>{const t=me(!0,{},e);if(!l.properties)return void(l.properties=t);const n=function(e,t){var n,r,o,i;const a={properties:!1,exclude:!1};if(e===t)return a;const s=me(!0,{},e),l=me(!0,{},t);return a.exclude=!TN(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(o=s.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,null===(i=l.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,a.properties=!TN(s,l),a}(l.properties,t);l.properties=t,n.exclude&&!n.properties&&s(o())}))};return t.on("changed",n),n(),()=>{t.removeListener("changed",n)}}),[e]),i}const kN={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},RN=e=>void 0===e.marker?kN.circle:kN[e.marker],AN=e=>void 0===e.markerFill||e.markerFill;function NN({series:e,layoutService:t}){switch(cu(e)){case Ga.TYPE.MARKER:return(e=>({marker:RN(e),fill:AN(e)}))(e);case Ga.TYPE.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case Ga.TYPE.BAR:return{showAsZeros:!0};default:return{}}}function LN(e=Ga.NOPE_SERIES,t=!0){return t?e.axis===Ga.AXIS.PRIMARY:e.axis===Ga.AXIS.PRIMARY||cu(e)===Ga.TYPE.BAR}var IN={exports:{}};var PN={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 DN="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var qN=DN;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=PN,i=qN,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const m="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[m,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=d++;i(e,o,t),u[e]=o,l[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),f("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${m}+`),f("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),f("FULL",`^${l[u.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),f("LOOSE",`^${l[u.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),f("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),f("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",l[u.COERCE],!0),f("COERCERTLFULL",l[u.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(IN,IN.exports);var zN=IN.exports;const $N=Object.freeze({loose:!0}),jN=Object.freeze({});var FN=e=>e?"object"!=typeof e?$N:e:jN;const _N=/^[0-9]+$/,BN=(e,t)=>{const n=_N.test(e),r=_N.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var HN={compareIdentifiers:BN,rcompareIdentifiers:(e,t)=>BN(t,e)};const VN=qN,{MAX_LENGTH:UN,MAX_SAFE_INTEGER:YN}=PN,{safeRe:WN,safeSrc:GN,t:XN}=zN,KN=FN,{compareIdentifiers:JN}=HN;var ZN=class e{constructor(t,n){if(n=KN(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>UN)throw new TypeError(`version is longer than ${UN} characters`);VN("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?WN[XN.LOOSE]:WN[XN.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>YN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>YN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>YN||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<YN)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(VN("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)),JN(this.major,t.major)||JN(this.minor,t.minor)||JN(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(VN("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 JN(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(VN("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 JN(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?GN[XN.PRERELEASELOOSE]:GN[XN.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===JN(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 QN=ZN;var eL=(e,t,n=!1)=>{if(e instanceof QN)return e;try{return new QN(e,t)}catch(e){if(!n)return null;throw e}};const tL=eL;var nL=(e,t)=>{const n=tL(e,t);return n?n.version:null};const rL=eL;var oL=(e,t)=>{const n=rL(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const iL=ZN;var aL=(e,t,n,r,o)=>{"string"==typeof n&&(o=r,r=n,n=void 0);try{return new iL(e instanceof iL?e.version:e,n).inc(t,r,o).version}catch(e){return null}};const sL=eL;var lL=(e,t)=>{const n=sL(e,null,!0),r=sL(t,null,!0),o=n.compare(r);if(0===o)return null;const i=o>0,a=i?n:r,s=i?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 cL=ZN;var uL=(e,t)=>new cL(e,t).major;const dL=ZN;var mL=(e,t)=>new dL(e,t).minor;const pL=ZN;var fL=(e,t)=>new pL(e,t).patch;const hL=eL;var gL=(e,t)=>{const n=hL(e,t);return n&&n.prerelease.length?n.prerelease:null};const yL=ZN;var vL=(e,t,n)=>new yL(e,n).compare(new yL(t,n));const bL=vL;var xL=(e,t,n)=>bL(t,e,n);const SL=vL;var EL=(e,t)=>SL(e,t,!0);const ML=ZN;var CL=(e,t,n)=>{const r=new ML(e,n),o=new ML(t,n);return r.compare(o)||r.compareBuild(o)};const wL=CL;var TL=(e,t)=>e.sort(((e,n)=>wL(e,n,t)));const OL=CL;var kL=(e,t)=>e.sort(((e,n)=>OL(n,e,t)));const RL=vL;var AL=(e,t,n)=>RL(e,t,n)>0;const NL=vL;var LL=(e,t,n)=>NL(e,t,n)<0;const IL=vL;var PL=(e,t,n)=>0===IL(e,t,n);const DL=vL;var qL=(e,t,n)=>0!==DL(e,t,n);const zL=vL;var $L=(e,t,n)=>zL(e,t,n)>=0;const jL=vL;var FL=(e,t,n)=>jL(e,t,n)<=0;const _L=PL,BL=qL,HL=AL,VL=$L,UL=LL,YL=FL;var WL=(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 _L(e,n,r);case"!=":return BL(e,n,r);case">":return HL(e,n,r);case">=":return VL(e,n,r);case"<":return UL(e,n,r);case"<=":return YL(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const GL=ZN,XL=eL,{safeRe:KL,t:JL}=zN;var ZL=(e,t)=>{if(e instanceof GL)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?KL[JL.COERCERTLFULL]:KL[JL.COERCERTL];let o;for(;(o=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&o.index+o[0].length===n.index+n[0].length||(n=o),r.lastIndex=o.index+o[1].length+o[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?KL[JL.COERCEFULL]:KL[JL.COERCE]);if(null===n)return null;const r=n[2],o=n[3]||"0",i=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",s=t.includePrerelease&&n[6]?`+${n[6]}`:"";return XL(`${r}.${o}.${i}${a}${s}`,t)};var QL,eI,tI,nI,rI=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 oI(){if(eI)return QL;eI=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.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=>!f(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&&h(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&&m)|(this.options.loose&&p))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,h=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(h,O(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),i("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),i("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),i("caret trim",e);let g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>T(e,this.options)));a&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),i("range list",g);const v=new Map,b=g.map((e=>new o(e,this.options)));for(const e of b){if(f(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(k(this.set[t],e,this.options))return!0;return!1}}QL=t;const n=new rI,r=FN,o=iI(),i=qN,a=ZN,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=zN,{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:p}=PN,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},y=(e,t)=>(i("comp",e,t),e=S(e,t),i("caret",e),e=b(e,t),i("tildes",e),e=M(e,t),i("xrange",e),e=w(e,t),i("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,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(o)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(i("replaceTilde pr",a),s=`>=${n}.${r}.${o}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,i("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{i("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),v(n)?l="":v(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:s?(i("replaceCaret pr",s),l="0"===n?"0"===o?`>=${n}.${o}.${a}-${s} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${s} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${s} <${+n+1}.0.0-0`):(i("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${a}${r} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),i("caret return",l),l}))},M=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=v(o),u=c||v(a),d=u||v(s),m=d;return"="===r&&m&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&m?(u&&(a=0),s=0,">"===r?(r=">=",u?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+o}.${a}.${s}${l}`):u?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:d&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),i("xRange return",n),n}))},w=(e,t)=>(i("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),T=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),O=e=>(t,n,r,o,i,a,s,l,c,u,d,m)=>`${n=v(r)?"":v(o)?`>=${r}.0.0${e?"-0":""}`:v(i)?`>=${r}.${o}.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`:m?`<=${c}.${u}.${d}-${m}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),k=(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(i(e[n].semver),e[n].semver!==o.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 QL}function iI(){if(nI)return tI;nI=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.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[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new s(i[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 i(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("="))||(!!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}tI=t;const n=FN,{safeRe:r,t:o}=zN,i=WL,a=qN,s=ZN,l=oI();return tI}const aI=oI();var sI=(e,t,n)=>{try{t=new aI(t,n)}catch(e){return!1}return t.test(e)};const lI=oI();var cI=(e,t)=>new lI(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const uI=ZN,dI=oI();var mI=(e,t,n)=>{let r=null,o=null,i=null;try{i=new dI(t,n)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(r&&-1!==o.compare(e)||(r=e,o=new uI(r,n)))})),r};const pI=ZN,fI=oI();var hI=(e,t,n)=>{let r=null,o=null,i=null;try{i=new fI(t,n)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new pI(r,n)))})),r};const gI=ZN,yI=oI(),vI=AL;var bI=(e,t)=>{e=new yI(e,t);let n=new gI("0.0.0");if(e.test(n))return n;if(n=new gI("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 o=null;r.forEach((e=>{const t=new gI(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!vI(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||n&&!vI(n,o)||(n=o)}return n&&e.test(n)?n:null};const xI=oI();var SI=(e,t)=>{try{return new xI(e,t).range||"*"}catch(e){return null}};const EI=ZN,MI=iI(),{ANY:CI}=MI,wI=oI(),TI=sI,OI=AL,kI=LL,RI=FL,AI=$L;var NI=(e,t,n,r)=>{let o,i,a,s,l;switch(e=new EI(e,r),t=new wI(t,r),n){case">":o=OI,i=RI,a=kI,s=">",l=">=";break;case"<":o=kI,i=AI,a=OI,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(TI(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===CI&&(e=new MI(">=0.0.0")),u=u||e,d=d||e,o(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)&&i(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const LI=NI;var II=(e,t,n)=>LI(e,t,">",n);const PI=NI;var DI=(e,t,n)=>PI(e,t,"<",n);const qI=oI();var zI=(e,t,n)=>(e=new qI(e,n),t=new qI(t,n),e.intersects(t,n));const $I=sI,jI=vL;const FI=oI(),_I=iI(),{ANY:BI}=_I,HI=sI,VI=vL,UI=[new _I(">=0.0.0-0")],YI=[new _I(">=0.0.0")],WI=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===BI){if(1===t.length&&t[0].semver===BI)return!0;e=n.includePrerelease?UI:YI}if(1===t.length&&t[0].semver===BI){if(n.includePrerelease)return!0;t=YI}const r=new Set;let o,i,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?o=GI(o,t,n):"<"===t.operator||"<="===t.operator?i=XI(i,t,n):r.add(t.semver);if(r.size>1)return null;if(o&&i){if(a=VI(o.semver,i.semver,n),a>0)return null;if(0===a&&(">="!==o.operator||"<="!==i.operator))return null}for(const e of r){if(o&&!HI(e,String(o),n))return null;if(i&&!HI(e,String(i),n))return null;for(const r of t)if(!HI(e,String(r),n))return!1;return!0}let d=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver,m=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver;d&&1===d.prerelease.length&&"<"===i.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,o)if(m&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch&&(m=!1),">"===e.operator||">="===e.operator){if(s=GI(o,e,n),s===e&&s!==o)return!1}else if(">="===o.operator&&!HI(o.semver,String(e),n))return!1;if(i)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=XI(i,e,n),l===e&&l!==i)return!1}else if("<="===i.operator&&!HI(i.semver,String(e),n))return!1;if(!e.operator&&(i||o)&&0!==a)return!1}return!(o&&c&&!i&&0!==a)&&(!(i&&u&&!o&&0!==a)&&(!m&&!d))},GI=(e,t,n)=>{if(!e)return t;const r=VI(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},XI=(e,t,n)=>{if(!e)return t;const r=VI(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var KI=(e,t,n={})=>{if(e===t)return!0;e=new FI(e,n),t=new FI(t,n);let r=!1;e:for(const o of e.set){for(const e of t.set){const t=WI(o,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const JI=zN,ZI=PN,QI=ZN,eP=HN,tP=(e,t,n)=>{const r=[];let o=null,i=null;const a=e.sort(((e,t)=>jI(e,t,n)));for(const e of a){$I(e,t,n)?(i=e,o||(o=e)):(i&&r.push([o,i]),i=null,o=null)}o&&r.push([o,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 nP=te({parse:eL,valid:nL,clean:oL,inc:aL,diff:lL,major:uL,minor:mL,patch:fL,prerelease:gL,compare:vL,rcompare:xL,compareLoose:EL,compareBuild:CL,sort:TL,rsort:kL,gt:AL,lt:LL,eq:PL,neq:qL,gte:$L,lte:FL,cmp:WL,coerce:ZL,Comparator:iI(),Range:oI(),satisfies:sI,toComparators:cI,maxSatisfying:mI,minSatisfying:hI,minVersion:bI,validRange:SI,outside:NI,gtr:II,ltr:DI,intersects:zI,simplifyRange:tP,subset:KI,SemVer:QI,re:JI.re,src:JI.src,tokens:JI.t,SEMVER_SPEC_VERSION:ZI.SEMVER_SPEC_VERSION,RELEASE_TYPES:ZI.RELEASE_TYPES,compareIdentifiers:eP.compareIdentifiers,rcompareIdentifiers:eP.rcompareIdentifiers}),rP={BAR_IN_SECONDARY_AXIS:"0.23.1"};const oP=e=>!e||nP.lt(nP.coerce(e),nP.coerce(rP.BAR_IN_SECONDARY_AXIS)),iP=({layoutService:e})=>{const t=!oP(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[Ga.TYPE.BAR]:0,[Ga.TYPE.LINE]:0,[Ga.TYPE.MARKER]:0};return({series:r=Ga.NOPE_SERIES},o)=>{const i=LN(r,t),a=cu(r);return{id:o,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${o}`,refIndex:o,isPrimary:i,scale:i?Wa.SCALE.MINOR.PRIMARY:Wa.SCALE.MINOR.SECONDARY,collection:i?Wa.COLLECTION.PRIMARY:Wa.COLLECTION.SECONDARY,options:NN({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>cu(e)===t)).length,o=n.filter((e=>e.isPrimary)),i=n.filter((e=>!e.isPrimary)),a=[!!o.length&&o[0],!!i.length&&i[0]].filter((e=>!!e)),s=r(n,Ga.TYPE.BAR),l=r(o,Ga.TYPE.BAR),c=r(i,Ga.TYPE.BAR),u=e=>n.filter((t=>cu(t)===e)),d=u(Ga.TYPE.LINE).map((e=>Ll(Wa.COMPONENT.POINT,e))),m=u(Ga.TYPE.MARKER).map((e=>({key:Ll(Wa.COMPONENT.MARKER,e),type:e.options.marker}))),p=m.map((e=>e.key)),f=[];l>0&&f.push(`${Wa.COMPONENT.BAR}-${Ga.AXIS.PRIMARY}`),c>0&&f.push(`${Wa.COMPONENT.BAR}-${Ga.AXIS.SECONDARY}`);const h=[...f,...d,...p],{MINI_CHART:g}=Wa.COMPONENT,y=u(Ga.TYPE.LINE).map((e=>Ll(g.LINE,e))),v=u(Ga.TYPE.MARKER).map((e=>Ll(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${Ga.AXIS.PRIMARY}`,`${g.BAR}-${Ga.AXIS.SECONDARY}`,...y,...v]:[];return{meta:{allSeries:n,primarySeries:o,secondarySeries:i,barSeriesCount:s,primaryBarSeriesCount:l,secondaryBarSeriesCount:c,measureAxes:a,pointComponentKeys:d,markerComponentKeys:p,barComponentKeys:f,seriesComponentKeys:h,miniComponentKeys:b,markers:m},query:{all:()=>n,seriesByAxis:e=>e?o:i,series:u,isPrimary:LN}}};function aP({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 sP({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Oe).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),o=t.getHyperCubeValue("qDimensionInfo"),i="K"===r&&o.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=i?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:o.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:i?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,{path:"/qHyperCubeDef",rect:aP({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function lP({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}):sP({genericObjectModel:e,layoutService:t})}const cP=e=>"number"==typeof e&&!Number.isNaN(e);function uP({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),o=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),i=o.filter((e=>cu(e.series)===Ga.TYPE.BAR)),a=o.filter((e=>cu(e.series)===Ga.TYPE.LINE)),s=o.filter((e=>cu(e.series)===Ga.TYPE.MARKER));return{min:Math.min(...o.filter((e=>cP(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>cP(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...i.filter((e=>cP(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>cP(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>cP(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>cP(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>cP(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>cP(e.qMax))).map((e=>e.qMax)))}}}}function dP({isPrimary:e,layoutService:t,seriesModel:n}){const r=uP({isPrimary:e,layoutService:t,seriesModel:n}),o=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(Ga.TYPE.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:o}=n,i={min:NaN,max:NaN};return o.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})),i.min=Number.isNaN(i.min)?t:Math.min(t,i.min),i.max=Number.isNaN(i.max)?n:Math.max(n,i.max)})),i}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=o({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 mP({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:o}){const i={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,o=n.query.series(Ga.TYPE.BAR).filter((t=>t.isPrimary===e)).length;return!r||o<2?uP({isPrimary:e,layoutService:t,seriesModel:n}):dP({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:o});return{query:{getExtrema:()=>i},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,o=r("measureAxes."+(e?0:1),{});if(o.autoMinMax)return n;const{minMax:i,min:a,max:s}=o;return"min"!==i&&"minMax"!==i||(n.min=a),"max"!==i&&"minMax"!==i||(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 i.explicit.min=s,i.explicit.max=l,i.meta.hasExplicitMin=!Number.isNaN(s),i.meta.hasExplicitMax=!Number.isNaN(l),i.meta.hasExplicit=i.meta.hasExplicitMin||i.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=o.query.seriesByAxis(e).some((e=>cu(e)===Ga.TYPE.BAR)),d=Number((u?Math.min(n,0):n).toFixed(13)),m=Number((u?Math.max(r,0):r).toFixed(13)),p=Number((u?Math.min(s.min,0):s.min).toFixed(13)),f=Number((u?Math.max(s.max,0):s.max).toFixed(13)),h=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));i.implicit.min=Number.isFinite(d)?d:0,i.implicit.max=Number.isFinite(m)?m:0,i.implicit.bar.min=Number.isFinite(p)?p:0,i.implicit.bar.max=Number.isFinite(f)?f:0,i.implicit.line.min=Number.isFinite(h)?h:0,i.implicit.line.max=Number.isFinite(g)?g:0,i.implicit.marker.min=Number.isFinite(y)?y:0,i.implicit.marker.max=Number.isFinite(v)?v:0,i.min=Number.isNaN(i.explicit.min)?i.implicit.min:i.explicit.min,i.max=Number.isNaN(i.explicit.max)?i.implicit.max:i.explicit.max,i.meta.hasExplicitMin&&!i.meta.hasExplicitMax&&(i.max=Math.max(i.min,i.max)),i.meta.hasExplicitMax&&!i.meta.hasExplicitMin&&(i.min=Math.min(i.min,i.max)),i.meta.includesZero=!!((0-i.min)*(0-i.max)<=0)}))}}}}function pP({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 fP({min:e,max:t,count:n,threshold:r,disable:o}){const i=function(e,t,n){const r=yr().domain([e,t]);return r.nice(n),r}(e,t,n),a={start:!0,stop:!0};if(!a.start||!a.stop){const[e,t]=i.domain(),r=i.ticks(n),o=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;i.domain([a.start?e:e-o,a.stop?t:t+s]),i.nice(n)}return i}const hP=50,gP=100,yP=200,vP=125;function bP({config:{measureAxesRef:e},layoutService:t,size:n}){const r=(e=>{switch(e){case.5:return hP;case 1:return gP;case 2:return yP;default:return e*vP}})(t.getLayoutValue(`${e}.spacing`,1));return Math.max(1,Math.round(n/r))}function xP({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:i,min:a,max:s}){const l=bP({config:e,layoutService:n,size:i}),c=fP({min:a,max:s,count:l,threshold:.05,disable:!0}),u=c.domain(),d={roundedMin:u[0],roundedMax:u[1],ticks:c.ticks(l)},m="horizontal"===r.meta.major.orientation?"height":"width",p=e=>o(e)[m],f=t.formatter(e.formatter),h=()=>{const e=d.ticks.map(f),t=e.some(((t,n)=>e.indexOf(t)!==n));return!t&&(e=>{const t=i/d.ticks.length;return Math.max(...e.map(p))<=t})(e)};for(let e=l-1;e>0&&!h();e--)c.domain([a,s]),c.nice(e),[d.roundedMin,d.roundedMax]=c.domain(),d.ticks=c.ticks(e);return d}function SP({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function EP({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}function MP({config:e,chart:t,extrema:n,min:r,max:o}){const i={roundedMin:0,roundedMax:0,ticks:[]},a=fP({min:r,max:o,count:10,threshold:.15,disable:!0});[i.roundedMin,i.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?SP:EP;i.ticks=s.filter(((e,t,n)=>c({tick:e,index:t,ticks:n})));i.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(i.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const u=t.formatter(e.formatter),d=i.ticks.map(u),m=d.some(((e,t)=>d.indexOf(e)!==t));return m&&(i.ticks=[i.ticks[0],i.ticks[i.ticks.length-1]]),i}function CP({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 wP({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l}){const{ticks:c,roundedMin:u,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,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=xP({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:a,min:s,max:l});return pP({extrema:o,ticks:c.ticks})?c:MP({config:e,chart:t,extrema:o,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l}),m=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const o=e[r],i=(e[r+1]-o)/(t+1);for(let e=1;e<=t;e++)n.push(o+i*e)}return n}({ticks:c,count:1}),p=[...CP({ticks:c,extrema:o}).map((e=>({value:e,isMinor:!1}))),...m.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value));return{min:u,max:d,values:p}}function TP({config:e,chart:t,layoutService:n,dockService:r,measureText:o,extrema:i,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:i});return wP({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l})}function OP({config:e,chart:t,layoutService:n,extremumModel:r,dockService:o,seriesModel:i,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,c=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:o,seriesModel:i,themeService:a}){const{measureText:s}=j.renderer("svg")();return()=>{const l=a.getStyles(),c=function({dockService:e,seriesModel:t,chart:n}){var r;const o=n.component(t.meta.seriesComponentKeys[0]),i=null!==(r=null==o?void 0:o.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?i.height:i.width}({chart:e,dockService:n,seriesModel:i}),u=r.query.getExtrema();return TP({config:t,chart:e,layoutService:o,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:u,size:c})}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:o,seriesModel:i,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 kP({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return we.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 RP({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:o,fieldType:i}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===o?"measure"===i?()=>({type:Ga.TYPE.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===Ga.TYPE.LINE?2:t!==Ga.TYPE.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==Ga.TYPE.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function AP({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function NP({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:o,genericObjectModel:i,layoutService:a,picasso:s,seriesModel:l,viewState:c,styleModel:u}){let d;const{theme:m,translator:p}=o,f={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=O({picasso:s,model:i,app:n,translator:p,layoutService:a,createConfig:()=>{const e=a.getHyperCubeValue("qMeasureInfo").map((e=>e.color));return{theme:m,colorProps:{measureOverrides:e},legendProps:a.getLayoutValue("legend"),hc:a.getHyperCube(),key:Wa.SCALE.COLOR}},config:{auto:AP,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>f.wrappedScales,legendComponents:()=>f.legendComponents,legendInteractions:()=>f.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:i}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:o,colorService:i,actions:a,styleModel:s}){const{options:l}=o,c={eventName:"legend-c",key:Wa.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:RP({layoutService:n,seriesModel:r,colorService:i})},{components:u,interactions:d}=i.getLegend(c,{actions:a,navigationDisabled:!a.interact.enabled()}),m=i.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=m[`${Wa.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:m}}({viewState:c,chart:r,environment:o,colorService:d,seriesModel:l,layoutService:a,actions:e,styleModel:u});f.wrappedScales=i,f.legendComponents=t,f.legendInteractions=n}}}),d}const LP="REJECTED",IP=()=>{},PP=2,DP=20,qP=200,zP=10;var $P={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)),o=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,o-e.qArea.qTop),s=Math.min(o+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,i-e.qArea.qLeft),c=Math.min(i+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:o,qLeft:i},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-zP<=t.qTop,o=n.qLeft+n.qWidth+zP>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+zP>=t.qTop+t.qHeight,a=n.qLeft-zP<=t.qLeft;return r&&t.qTop>0||o&&t.qLeft+t.qWidth<e.width||i&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var jP={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),o=Math.max(t.qLeft,e.qArea.qLeft),i=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-i),l={qArea:{qHeight:a-i,qWidth:e.qArea.qWidth,qTop:r,qLeft:o},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=i;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-zP<=t.qTop,o=n.qTop+n.qHeight+zP>=t.qTop+t.qHeight;return r&&t.qTop>0||o&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var FP={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 _P="pages";const BP="discretePan";function HP({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:BP,pointers:1,threshold:10,enable(r,o){return this.started===BP||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{[`${BP}start`](e){e.preventDefault(),this.started=BP;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},[`${BP}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&o?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,i.scroll(s)},[`${BP}end`](e){e.preventDefault(),this.started=!1},[`${BP}cancel`](e){e.preventDefault(),this.started=!1}}}}function VP({chart:e,componentKey:t,actions:n,scroller:r}){return function(o){if(!n.scroll.enabled()||!r.enabled())return;const[i]=e.componentsFromPoint({x:o.clientX,y:o.clientY}).filter((e=>e.key===t));if(!i)return;o.preventDefault();const a=Math.abs(o.deltaY)>Math.abs(o.deltaX)?o.deltaY:o.deltaX,s=100*Math.sign(-a);r.scroll(s)}}function UP({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(qP,n));return{width:e,height:Math.max(DP,Math.min(n*PP,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:o}=t({width:e.qWidth,height:e.qHeight}),i=o?Math.ceil((o-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:o?Math.min(o,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:o?Math.max(0,Math.min(e.qTop-i,n.height-o)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function YP(e){let t,n;const r=o=>{t=o;const{method:i,args:a}=t.request;e[i](...a).then((e=>{if(t.canceled||n)return t.reject(LP),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},o=e=>new Promise(((o,i)=>{const a={request:e,resolve:o,reject:i,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(LP),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(LP),n=null)},o}const WP={command:{update:()=>{}}};function GP({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:o=WP,definitionPath:i,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,u=function({dataStore:e,slice:t,warden:n,expand:r,request:o,process:i,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 o=n.release(r.qArea,l),s=i.isProcessing();if(!o&&s&&i.cancel(),!o||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());i.isProcessing()&&c&&c();const u=r(l);return i(o(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:UP({layoutService:r}),request:c({definitionPath:i}),process:YP(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=T(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==LP)throw e}))}),50);return function(e,{onProcessing:t=IP,onDataPage:n=IP}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),o.command.update(),n(e)}})}}var XP={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:o}=t,i=e.getDataPages()[0],a=o/r;return[a,n.inView>=n.inTotal?a+1:a+i.qArea.qWidth/n.inView]}};var KP={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 o=void 0===r?4:r,i=Math.max(0,Math.floor(t)-o/2);return{qTop:i,qHeight:Math.min(e.meta.size.y-i,Math.max(0,Math.ceil(n+o))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:o}=t,i=e.getDataPages()[0],a=r/n.inView,s=(o+i.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+i.qArea.qHeight/n.inView]}};function JP(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function ZP(e,t){const n=[];for(let r=0;r<e.length;r++){const o=t(e[r]);-1===n.indexOf(o)&&n.push(o)}return n.length}function QP(e){return ZP(e.qMatrix,(e=>e[0].qElemNumber))-1}var eD={inTotal:function({layoutService:e}){const t=JP(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=JP(e),i=void 0===r?o:r,a=t/(o+1),s=Math.max(0,Math.floor((t-a-i/2)/o));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+i)/o+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const o=JP(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=QP(i),c=i.qArea.qHeight*o+l,u=(s+(i.qArea.qTop*o+i.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const tD=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function nD(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return tD(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const o=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const i=e[t][0].qElemNumber;-1===o.indexOf(i)&&(o.push(i),r--)}return n.count=o.length-1,n})(t.qMatrix,n);return r.successful?r.count:tD(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return tD(e,n);return ZP(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var rD={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 o=nD(t).itemOffset(e(),n),i=Math.max(0,Math.floor(n-o));return{qTop:i,qHeight:Math.min(t.meta.size.y-i,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:o,upperBound:i}){const a=t.getDataPages()[0],s=o/r.inView,{item:l,pixel:c}=n,u=nD(t).area(e(),l,a.qArea),d=QP(a),m=a.qArea.qHeight+d,p=c===i?(r.inView-m)*s/o:(c+(a.qArea.qTop+u)*s)/o;return[p,r.inView>=r.inTotal?p+1:p+m/r.inView]}};function oD({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:o,renderer:i,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:m,LABELLESS:p}=r[n.meta.chart.mode],f="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:y}=s,v=f?t.width:t.height,b=v/l>=m;switch(h){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/p:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:o,itemSize:i,label:a}){if(o||"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:m}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return m>i;const p=(90-d)*(Math.PI/180);return m>Math.cos(p)*i}({chart:e,isHorizontal:f,axisKey:o,renderer:i,isGrouped:a,itemSize:m,label:y})?v/d:l:v/d}}function iD({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:o,getItemWidths:i,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:m}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?XP:n?r?eD:rD:KP}({layoutService:r}),p=()=>"horizontal"===o.meta.major.orientation?t().width:t().height,f=e=>e?p()/e:0,h=(e,t)=>-(e-t)*f(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:oD({chart:e,rect:t(),dockService:o,itemWidths:i(),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 f(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,o=Math.min(0,Math.max(e,h(n,r))),i=r?Math.abs(r*o/p()):0;return{start:{pixel:o,item:i},end:{item:Math.min(i+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return h(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const o=e/n*t,i=Math.abs(r)/o;return[i,Math.min(1,i+e/o)]}({viewSize:p(),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 i=m({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:p(),upperBound:h(t.inTotal,t.inView)});return"horizontal"===o.meta.major.orientation&&c?function(e){return[1-e[1],1-e[0]]}(i):i},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=h(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*f(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(f(r)*n)}}}}function aD({chart:e,componentKey:t,state:n,dataStore:r,pageData:o,layoutService:i,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:m,rtl:p}){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 f=iD({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:i,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:p}),h=()=>{const e=f.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=f.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=h(),a=g({pixelOffset:e,items:r}),s=f.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=i.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((f.validate.offset({pixelOffset:e,items:r})||m.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:a.start,items:r})),m.preventSet("viewRange",f.getViewRange({pixelOffset:a.start.pixel,items:r})),m.set("scrollOffset",{start:a.start.item,end:a.end.item})));m.preventSet("viewRange",f.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:a.start,items:r})),m.set("scrollOffset",{start:a.start.item,end:a.end.item}))};o(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=h();n.set("itemSize",f.getItemSize({items:a}));const c=(({items:e})=>{const t=i.getLayoutValue("scrollStartPos"),n=m.get("scrollOffset");if(void 0===n)return 1===t?f.getUpperBound({items:e}):0;if("number"==typeof n)return f.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:o}=n,a=1===t&&o?o-e.inView:r;return f.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),u=g({pixelOffset:c,items:a});m.preventSet("viewRange",f.getViewRange({pixelOffset:u.start.pixel,items:a}));const d=f.getArea({itemOffset:u.start.item,items:a});return new Promise((e=>{o(d,{onDataPage:()=>{n.set("scaleRange",f.getScaleRange({offsets:u.start,items:a})),m.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=f.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function sD({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:o,dockService:i,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:u="/qHyperCubeDef",getRect:d,axisKey:m,renderer:p,areaBuffer:f,processDataPage:h=()=>{}}={}}){const g=C(),y=function({qMode:e}){switch(e){case"K":return jP;case"T":return FP;default:return $P}}({qMode:o.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(_P,[]),{add:t=>{const n=e.get(_P);n.length=0,n.push(t)},getCurrent:()=>e.get(_P)[0],getAll:()=>e.get(_P),contains:n=>t(e.get(_P)[0],n)}}({state:g,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const o=n.patcher({layoutService:e});o.should(r)&&o(r),t.add(r)}({layoutService:o,dataStore:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:f}),x=GP({dataStore:v,composition:y,enigmaModel:r,layoutService:o,trendLineModel:a,definitionPath:u,processDataPage:h}),S=aD({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:o,dockService:i,itemWidths:s,getRect:d,axisKey:m,renderer:p,areaBuffer:b,viewState:l,rtl:c}),M=function({layoutService:e,dataStore:t}){return function(n){const r=E(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:o,dataStore:v}),w=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{gestures:[HP({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:VP({chart:e,actions:t,componentKey:n,scroller:i})}}}}({chart:e,actions:t,componentKey:n,dockService:i,rtl:c,scroller:S});return{interactions:w,query:{getCanScroll:()=>S.enabled(),getItemSize:()=>S.itemSize(),getScaleRange:()=>S.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>S.initialize(),scrollTo:e=>S.scrollToRelative(e),setSnapshotData:e=>M(e)}}}var lD={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 cD({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 uD({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:o,LINE:i,POINT:a}=Hl,s=n.getStyles(),l=cD({layoutService:e,key:"bar"}),c=cD({layoutService:e,key:"line"}),u=()=>{const e=l({property:"strokeWidth",defaultValue:"none"});return e?o.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:o.STROKE.COLOR}}).color,label:{getStyle:()=>{var e,t,n,r,o,i,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!==(o=null===(i=d("bar"))||void 0===i||null===(i=i.bar)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontSize)&&void 0!==o?o: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:i.CURVE.LINEAR}),getStrokeWidthFn:()=>()=>c({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?i.WIDTH.FULL.DEFAULT:i.WIDTH.LESS.DEFAULT}),getStrokeDasharrayFn:()=>()=>{const e=c({property:"lineType",defaultValue:i.TYPE.SOLID});return e&&i.TYPE[e.toUpperCase()]}},point:{getSize:()=>c({property:"dataPointSize",defaultValue:a.SIZE.DEFAULT}),label:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("line"))||void 0===i||null===(i=i.line)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontFamily)&&void 0!==o?o:s.label.value.fontFamily}}}},marker:{label:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("marker"))||void 0===i||null===(i=i.marker)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontFamily)&&void 0!==o?o:s.label.value.fontFamily}}}},axis:{title:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.title)||void 0===i||null===(i=i.color)||void 0===i?void 0:i.color)&&void 0!==o?o:s.axis.title.color}}},label:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.fontFamily)&&void 0!==o?o:s.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.title)||void 0===i||null===(i=i.color)||void 0===i?void 0:i.color)&&void 0!==o?o:s.legend.title.color}}},label:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.color)||void 0===i?void 0:i.color)&&void 0!==o?o:s.legend.label.color}}}}}}}function dD({layoutService:e}){return k({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0}}})}function mD({dataset:e,data:t,valueData:n}){var r;const{source:o,label:i,value:a}=n,s=e(o.key).field(o.field);return Se.shouldUseFormat(s.raw())?"-"===i||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):i}function pD({chart:e,actions:t,translator:n,rtl:r,dockService:o,seriesModel:i,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,m=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:p}=Wa.COMPONENT,{PRIMARY:f,SECONDARY:h}=Ga.AXIS,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:o,SLICED_HAT:i}=Wa.COMPONENT,{PRIMARY:a,SECONDARY:s}=Ga.AXIS,{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:m}=l,p=m===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${i}-max-${a}`||e.key===`${i}-max-${s}`)&&e.data&&e.data.value===p&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const f=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===`${o}-max`)&&e.data.major.value===p));if(c&&f)return{key:f.key,bounds:f.bounds};const h=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===`${o}-min`)&&e.data.major.value===p)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===p));if(c&&h&&!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=h.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=h.data.source)||void 0===n?void 0:n.field)})))return{key:h.key,bounds:h.bounds};const y=f||h;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:o,seriesModel:i});return R({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:Wa.COMPONENT.TOOLTIP,getGroupByValue:d,collectibles:[...i.meta.barComponentKeys.map((e=>({key:e,type:"bar",major:d}))),...i.meta.pointComponentKeys.map((e=>({key:e,type:"point",major:d}))),...i.meta.markers.map((e=>({key:e.key,type:e.type,major:d})))],triggers:[{keys:[Wa.COMPONENT.AXIS.MAJOR],collect:{from:"dimension",by:({data:e})=>e.value,filter:m},placement:g},{keys:[...i.meta.barComponentKeys,...i.meta.markerComponentKeys,`${p}-max-${f}`,`${p}-max-${h}`,`${p}-min-${f}`,`${p}-min-${h}`,`${Wa.COMPONENT.BAR_OOB}-max-${f}`,`${Wa.COMPONENT.BAR_OOB}-max-${h}`,`${Wa.COMPONENT.BAR_OOB}-min-${f}`,`${Wa.COMPONENT.BAR_OOB}-min-${h}`,`${Wa.COMPONENT.DATA_OOB_MARKER}-max`,`${Wa.COMPONENT.DATA_OOB_MARKER}-min`],collect:{from:"dimension",by:d,filter:m},placement:g},{keys:[...i.meta.pointComponentKeys],distance:3,collect:{from:"dimension",by:d,filter:m},placement:g}],section:({h:e,nodes:t,dataset:n,create:r,util:o})=>{const[i]=t,{title:a,description:s,measures:l}=c.isEnabled()?c.getAttributes({dataset:n,nodes:[i]}):{},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:i.data.label,style:{bold:!0}})),d||(u.push(r.color({nodes:t,property:Wa.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:i}=e.data,a=t||i,{key:s,field:l}=a.source;return r.measure({label:o.dataset.title(s,l),value:mD({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:m}=i.data;return c.isEnabled()&&m&&u.push(...m.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:Wa.COMPONENT.LEGEND_TOOLTIP,component:Wa.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:fD}=Jd,hD=({picasso:e,chart:t,environment:m,flags:p,viewState:f,viewCache:h,actions:g,selectionService:y})=>{var v;const b=s(),{width:x,height:S}=o(),[M,C]=n(),[w,T]=n(),O=a(),k=l(),R=c(),D=u(),q=d(),z=ON({enable:!1===(null==M||null===(v=M.layoutService)||void 0===v||null===(v=v.meta)||void 0===v?void 0:v.isSnapshot)});r((()=>{if(!(b&&null!=t&&t.update&&m&&f&&y))return;const n=A({source:b,metaAdditionsFn:function({layout:e}){var t;const n=E(e,"qHyperCube.qMeasureInfo",[]),r=n.some((({series:e=Ga.NOPE_SERIES})=>cu(e)===Ga.TYPE.LINE)),o=we.continuous(e,(()=>r&&ve.isTime(!0,e))),i=!oP(E(e,"version","")),a=n.filter((({series:e=Ga.NOPE_SERIES})=>cu(e)===Ga.TYPE.BAR)),s=a.length,l=a.filter((({series:e=Ga.NOPE_SERIES})=>e.axis!==Ga.AXIS.SECONDARY)).length,c=a.filter((({series:e=Ga.NOPE_SERIES})=>e.axis===Ga.AXIS.SECONDARY)).length,u=i?l>1||c>1:s>1,d=("grouped"!==E(e,"barGrouping.grouping")||o)&&u,m=!d&&s>1,p=i&&d&&(l>0&&c>1||l>1&&c>0),f=!(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:ve.canBeContinuous(e),isDiscrete:!o,isContinuous:o,isTime:ve.isTime(o,e),isSnapshot:we.snapshot(e),isBarSeriesStacked:d,isBarSeriesGrouped:m,isBarSeriesStackedInBothAxis:p,isGrouped:m||p,isGroupedByMeasure:m||p,isDimensionLocked:f,groupSize:p?2:s,hasLineSeries:r}}}),{options:r,translator:o}=m,{direction:i}=r,a="rtl"===i,s=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=lP({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:O,layoutService:n}),l=N({app:k,translator:o}),c=L({chart:t,layoutService:n,config:{logicalSize:{width:x,height:S},rtl:a},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),u=iP({layoutService:n}),d=n.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:o,viewState:i,rtl:a,actions:s,picasso:l}){return sD({chart:e,actions:s,componentKey:Zd(o),enigmaModel:t,layoutService:n,dockService:r,viewState:i,rtl:a,itemWidths:lD,options:{axisKey:Wa.COMPONENT.AXIS.MAJOR,renderer:l.renderer("svg")()}})}({chart:t,genericObjectModel:O,layoutService:n,dockService:c,seriesModel:u,viewState:f,rtl:"rtl"===m.options.direction,actions:g,picasso:e}):void 0,v=n.meta.isContinuous?fD({model:O,layoutService:n,viewState:f,viewCache:h}):void 0,M=I({theme:m.theme,config:{id:"comboChart"}}),w=uD({layoutService:n,dockService:c,themeService:M,flags:p}),T=NP({actions:g,appLayoutModel:R,appModel:k,chart:t,environment:m,genericObjectModel:O,layoutService:n,picasso:e,seriesModel:u,viewState:f,styleModel:w}),z=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",o=`${r}:numeric`,i=n?[{key:o,from:r,override:{value:e=>e.qNum}}]:void 0;return{main:{major:r,majorNumeric:o,minorsPrimary:t.meta.primarySeries.map((e=>e.ref)),minorsSecondary:t.meta.secondarySeries.map((e=>e.ref))},virtuals:i}}({layoutService:n,seriesModel:u}),$=mP({isPrimary:!0,layoutService:n,reducedModel:s,seriesModel:u,continuousModel:v}),j=mP({isPrimary:!1,layoutService:n,reducedModel:s,seriesModel:u,continuousModel:v}),F=dD({layoutService:n}),_=OP({config:{measureAxesRef:"measureAxes.0",formatter:Wa.FORMATTER.PRIMARY},chart:t,layoutService:n,extremumModel:$,dockService:c,seriesModel:u,themeService:M}),B=OP({config:{measureAxesRef:"measureAxes.1",formatter:Wa.FORMATTER.SECONDARY},chart:t,layoutService:n,extremumModel:j,dockService:c,seriesModel:u,themeService:M}),H=kP({genericObjectModel:O,layoutService:n}),V=fs({flags:p,layout:b,app:k,model:O,picasso:e,chart:t,translator:o,localeInfo:R.qLocaleInfo,embed:q,options:r}),U=pD({chart:t,actions:g,translator:o,rtl:a,dockService:c,seriesModel:u,colorService:T,themeService:M,propertiesModel:H,custom:V}),Y=Ua({layoutService:n,discreteModel:d}),W=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:Wa.SCALE.MAJOR,MAJOR_INNER:Wa.SCALE.MAJOR_INNER,MINOR:{PRIMARY:Wa.SCALE.MINOR.PRIMARY,SECONDARY:Wa.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${Wa.COMPONENT.BAR}-${Ga.AXIS.PRIMARY}`,BAR_SECONDARY:`${Wa.COMPONENT.BAR}-${Ga.AXIS.SECONDARY}`,AXIS:{MAJOR:Wa.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:Wa.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:Wa.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:Wa.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:Wa.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:Wa.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:Wa.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:Wa.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:Wa.COLLECTION.MAIN}}}}(n),G=P({picassoInstance:e,plugins:D,pluginArgs:W}),X=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||Pa.propertiesHaveChanged({viewCache:t,layout:n.getLayout()})),meta:r}}({options:r,viewCache:h,layoutService:n});C({alternativeService:l,selectionService:y,genericObjectModel:O,appModel:k,dockService:c,styleModel:w,layoutService:n,fieldModel:z,seriesModel:u,reducedModel:s,primaryExtremumModel:$,secondaryExtremumModel:j,primaryTickModel:_,secondaryTickModel:B,propertiesModel:H,colorService:T,themeService:M,appLayoutModel:R,tooltipService:U,disclaimerService:F,flags:p,...d&&{discreteModel:d},...v&&{continuousModel:v},refLineModel:Y,pluginService:G,animationsModel:X})}),[b,O,k,R,m,null==t?void 0:t.update,f,y]);const[,$]=i((()=>{if(!M)return Promise.resolve();const{alternativeService:e,layoutService:t,colorService:n,reducedModel:r,primaryExtremumModel:o,secondaryExtremumModel:i,propertiesModel:a,continuousModel:s,discreteModel:l,pluginService:c,disclaimerService:u}=M,d=s?()=>{var e;s.update(t.getLayout());const n=s.initialFetch(),r=!t.meta.isSnapshot&&(null==m||null===(e=m.options)||void 0===e||null===(e=e.viewState)||void 0===e?void 0:e.zoom);return r&&f.preventSet("zoom",r),n}:()=>Promise.resolve(),p=n.initialize().then((()=>{const e=n.getSettings().field;y&&y.setBrushAliases({colorField:e}),n.custom.updateLegend()}));return Promise.all([c.initialize(),r.command.initialize(),O?a.command.initialize():Promise.resolve(),p,d(),g.scroll.attachDiscreteModel(l)]).then((()=>Promise.all([o.command.initialize(),i.command.initialize()]).then((async()=>{await e.initialize({properties:a.query.getProperties()||{}}),u.initialize(),T({...M})}))))}),[M,z]);if($)throw $;return w};const gD={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 yD={query:{getCanScroll:()=>!0}};function vD({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function bD({setSelectionInfo:e,event:t,components:n,clear:r}){const o=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:o,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&o[0]===Wa.COMPONENT.LEGEND_CATEGORICAL}),r()}function xD({chart:e,actions:t}){const o=b(),i=s(),[a,l]=n();return r((()=>{if(null==e||!e.update||!e.scale)return null;const n=e.scale(Wa.SCALE.MAJOR),r=q({chart:e,actions:t,selections:o,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:n,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:vD},selectionEvents:{start:bD}}});r.setLayout(i);const{destroy:a}=r;return l(r),()=>{a()}}),[o,null==e?void 0:e.update,null==e?void 0:e.scale]),r((()=>{null!=a&&a.setLayout&&i&&a.setLayout(i)}),[i]),a}const SD={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 ED=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let o;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)o=cu(n[e].qDef.series),o===Ga.TYPE.BAR?r[0]=1:o===Ga.TYPE.LINE?r[1]=1:r[2]=1;const i=["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(i)},MD=e=>(t,n)=>{let r;const o=t.qHyperCubeDef.qMeasures[n];if(o){const{type:e}=o.qDef.series;r=e===Ga.TYPE.LINE?"Visualizations.Descriptions.HeightLine":e===Ga.TYPE.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function CD(e){var t,n;const r=e.qHyperCubeDef.qMeasures,o=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===o&&1===r.length&&cu(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===Ga.TYPE.LINE?e.color.mode="primary":"byDimension"===o&&r.length>1&&(e.color.mode="byMultiple")}function wD(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:ED(t),added(e,t){ls.addCallbackCustomTooltip(t)},moved(e,t){ls.moveCallbackCustomTooltip(t,e)},removed(e,t){ls.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){ls.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:MD(t),added({qDef:e},t){var n;CD(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:Ga.TYPE.LINE,axis:Ga.AXIS.SECONDARY}:e.series={type:Ga.TYPE.BAR,axis:Ga.AXIS.PRIMARY})},moved(e,t){CD(t)}}}}function TD(e){const t=wD(e);return{properties:SD,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const o=Q.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),i="linechart"===e.properties.visualization,a=[];o.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:i?"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 o.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&me(!0,o.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),o},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>Q.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}const OD=({models:e,chart:t,viewState:n})=>{x((r=>{if(!e)return;const{layoutService:o,dockService:i,colorService:a,discreteModel:s,continuousModel:l,reducedModel:c}=e,{width:u,height:d}=i.meta.chart.size;return r.snapshotData=r.snapshotData||{},r.snapshotData.content={size:{w:u,h:d}},o.meta.isSnapshot?Promise.resolve():(r.snapshotData.content.chartData={scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Te(t,Wa.COMPONENT.LEGEND_CATEGORICAL)},o.meta.isDiscrete?(s.command.setSnapshotData(r),c.command.setSnapshotData(r)):l.setSnapshotData(r),a.getSnapshotData().then((e=>{r.snapshotData.content.chartData={...r.snapshotData.content.chartData,...e}})).catch((()=>{})))})),S((()=>({getViewState(){if(n&&t)return{scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Te(t,Wa.COMPONENT.LEGEND_CATEGORICAL)}}})),[n,t])};const kD=e=>{const t=E(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=Ga.NOPE_SERIES})=>cu(e)===Ga.TYPE.LINE));return we.continuous(e,(()=>t&&ve.isTime(!0,e)))},RD=(e,t,n)=>{let r;const o=n||0;var i,a;"function"==typeof(null==e?void 0:e.getMeasureLayouts)?r=e.getMeasureLayouts():r=null!==(i=null===(a=t.layout)||void 0===a||null===(a=a.qHyperCube)||void 0===a?void 0:a.qMeasureInfo)&&void 0!==i?i:[];return r.filter((e=>{const{series:t}=e||{};return 0===o?LN(t,!0):!LN(t,!0)}))},AD=(e,t)=>{const n=RD(e,t,0).filter((e=>e.series.type===Ga.TYPE.BAR)),r=RD(e,t,1).filter((e=>e.series.type===Ga.TYPE.BAR)),o="stacked"===E(t.layout,"barGrouping.grouping");return!we.continuous(t.layout)&&o&&(n.length>1||r.length>1)},ND=(e,t,n,r,o=void 0)=>{const i=`${t}.fontFamily`,a=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(i),defaultValue:()=>n.getDefaultValue(i)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(a),defaultValue:()=>null!=o?o:n.getDefaultValue(a)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function LD(e,t,n){const r=z({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)=>!kD(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:{...ND("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:ND("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:ND("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:ND("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:ND("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:ND("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:ND("legend.label","legend.label",r,t)}}}:void 0}}}const ID={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)=>!kD(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 PD(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function DD(e){var t,n;return PD(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 qD(e){var t;return PD(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function zD(e){var t,n,r,o,i;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!==(o=null==e||null===(i=e.color)||void 0===i?void 0:i.expressionLabel)&&void 0!==o?o:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function $D(e){return qD(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function jD(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?[...zD(n),...$D(e)]:$D(e)}(t,n,e)))}function FD(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||kD(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 cu(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ga.TYPE.MARKER}},o={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return cu(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ga.TYPE.MARKER&&!["line"].includes(e.qDef.series.marker)}},i={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)=>PD(...e)},a=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme;return{items:{series:{type:"items",items:{supPanel:{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:o}},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:i,paletteColor:{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:DD},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:qD}}}}}}}}}}}}const _D=10,BD=!0;function HD(e){return e.qHyperCube.qMeasureInfo.filter((e=>cu(e.series)===Ga.TYPE.LINE)).length>0}function VD(e,t){const n=e.qHyperCube.qMeasureInfo.filter((e=>cu(e.series)===Ga.TYPE.BAR));return n.filter((e=>e.series.axis!==Ga.AXIS.SECONDARY)).length>t||n.filter((e=>e.series.axis===Ga.AXIS.SECONDARY)).length>t}function UD(e){return e.qHyperCube.qMeasureInfo.filter((e=>cu(e.series)===Ga.TYPE.MARKER)).length>0}const YD=(e,t,n,r)=>{const o="vertical"===e.layout.orientation||kD(e.layout)?"y":"x",i=RD(e,t,r).map((e=>e.qFallbackTitle));let a;return a=i.length?n.get(`properties.${o}AxisWithInfo`,[i.join(",")]):n.get(`properties.${o}Axis`),a};function WD(e){var t,n,r;const{translator:o,flags:i,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=>jD(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>PD(e)))}}},u=e=>e.qHyperCubeDef.qMeasures.some((e=>PD(e))),d=(e,t)=>0!==e.filter((e=>e.series.axis===t)).length,m={items:{disclaimer:{show:(e,t)=>u(e),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;E(t=e,"qDef.color.on",void 0)&&M(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!u(e)}}},p={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&&VD(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&&HD(n.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,o){o.dataPoint.showLineLabels=e,o.dataPoint.show=e}},reset(e){M(e,"dataPoint.show",!1),M(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,o){o.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t,n)=>o.get(RD(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&&RD(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,o){o.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&&RD(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,o){o.measureAxes[1].show=e?"labels":"all"}}}}}}},f={uses:"settings",items:{simpleStyling:ID,simpleLabels:p,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:LD(i,s,o),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)=>VD(n.layout,1)&&!kD(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)=>kD(n.layout),convertFunctions:(h="vertical",{get:(e,t,n)=>kD(n.layout)?h:e(t.type),set(e,t,n,r){t(n.type,kD(r.layout)?h:e,h)}})},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)=>!kD(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)=>HD(n.layout)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint",show:e=>HD(e)},show:(e,t,n)=>HD(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=>VD(e,0)},show:(e,t,n)=>VD(n.layout,0),items:{showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t,n)=>VD(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&&AD(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&&AD(t,n)}}},showMarkerLabels:{ref:"dataPoint.showMarkerLabels",type:"boolean",translation:"properties.dataPoints.markerlabelmode",component:"switch",snapshot:{tid:"property-markerLabels",show:e=>UD(e)},show:(e,t,n)=>UD(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=[],o=n.layout.qHyperCube.qMeasureInfo,i=d(o,0),a=d(o,1);return i&&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 o;const i=null!==(o=r.gridLine.axis)&&void 0!==o?o:0,a=n.layout.qHyperCube.qMeasureInfo,s=d(a,0),l=d(a,1);return 0===i&&!s&&l?(M(r,"gridLine.axis",1),1):1===i&&s&&!l?(M(r,"gridLine.axis",0),0):i}}},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:m,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||kD(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 i;return i=r?o.get(`properties.${n}AxisWithInfo`,[r]):o.get(`properties.${n}Axis`),i},items:{othersGroup:{items:{dock:{options(e,t){let n="Common.Bottom",r="Common.Top";return"vertical"===t.layout.orientation||kD(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)=>!kD(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:_D,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=_D: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)=>YD(t,n,o,0),show:(e,t,n)=>RD(t,n,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>YD(t,n,o,0),show:(e,t,n)=>RD(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)&&LN(null==e?void 0:e.series,BD)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t,n)=>"none"!==e.measureAxes[0].show&&RD(t,n,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||kD(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&&RD(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)=>RD(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:o,minMax:i,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===o?"lowest":o||"min"!==i||0!==a?e(t.type):"zero"},set(e,t,n,r,o){"zero"===e?(M(o,"measureAxes.0.autoMinMax",!1),M(o,"measureAxes.0.minMax","min"),M(o,"measureAxes.0.min",0)):M(o,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t,n)=>YD(t,n,o,1),show:(e,t,n)=>RD(t,n,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>YD(t,n,o,1),show:(e,t,n)=>RD(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)&&!LN(null==e?void 0:e.series,BD)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t,n)=>"none"!==e.measureAxes[1].show&&RD(t,n,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||kD(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&&RD(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)=>RD(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:o,minMax:i,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===o?"lowest":o||"min"!==i||0!==a?e(t.type):"zero"},set(e,t,n,r,o){"zero"===e?(M(o,"measureAxes.1.autoMinMax",!1),M(o,"measureAxes.1.minMax","min"),M(o,"measureAxes.1.min",0)):M(o,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var h;i.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(f.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,o;if(null!=a&&null!==(r=a.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"includeZeroValues"))return!1;return!kD(n.layout)}}}},measures:FD(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=>LN(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,BD)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!LN(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,BD)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:g,sorting:{uses:"sortingWithDisclaimer"},addons:y,settings:f}}}function GD(e){return e.qHyperCubeDef.qMeasures.filter((e=>cu(e.qDef.series)===Ga.TYPE.LINE)).length>0}function XD(){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)=>GD(e)||!kD(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=>cu(e.qDef.series)===Ga.TYPE.BAR));return t?n.filter((e=>e.qDef.series.axis===Ga.AXIS.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===Ga.AXIS.SECONDARY)).length>1:n.length>1}(e,!oP(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!kD(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)=>!kD(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=>GD(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>GD(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>PD(e)))}}}}}}const KD={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 JD(e,t,n,r,o){const{axis:i,icon:a,tid:s,translation:l}=KD[o];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=o,t.qDef.series.axis=i,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path",`data.${t.qDef.cId}`)}})}function ZD(e,t,n,r,o){!function(e,t,n){const{item:r}=e,o=["contextMenu.add",r.name];if(n.canAddMeasure()){const i=e.menu.addItem({translation:o,tid:"add-as"});JD(r,i,t,n,"bar"),JD(r,i,t,n,"line"),JD(r,i,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,o),e.ColorBy(n,t,o),r()}function QD(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 eq=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function tq(e){return{definition:WD(e),softDefinition:XD(),support:{snapshot:eq,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:ZD,extendMetrics:QD,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=Q.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:wD(e),defaultPropertyValues:a,hypercubePath:o,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,o=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),o.indexOf(e.qDef.series.axis)<0&&o.push(e.qDef.series.axis)}));const i=o.sort().shift();e.qProperty.measureAxes[i]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&me(!0,e.qProperty.measureAxes[i],n.properties.measureAxis,{logarithmic:!1}),jD(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return Q.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(qt),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(qt)}(e),function(e){return oP(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=Ga.NOPE_SERIES),void 0===t.series.type&&(t.series.type=Ga.NOPE_SERIES.type),void 0===t.series.axis&&(t.series.axis=t.series.type===Ga.TYPE.BAR?Ga.AXIS.PRIMARY:Ga.AXIS.SECONDARY),t.series.type===Ga.TYPE.BAR&&t.series.axis===Ga.AXIS.SECONDARY&&(t.series.axis=Ga.AXIS.PRIMARY)})),e.version=rP.BAR_IN_SECONDARY_AXIS),e}(e))}}}}}}));
|
|
94
|
+
`),ik.rippleVisible,mk,550,(({theme:e})=>e.transitions.easing.easeInOut),ik.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ik.child,ik.childLeaving,pk,550,(({theme:e})=>e.transitions.easing.easeInOut),ik.childPulsate,fk,(({theme:e})=>e.transitions.easing.easeInOut)),yk=B.forwardRef((function(e,t){const n=cT({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=kp(n,ak),[s,l]=B.useState([]),c=B.useRef(0),u=B.useRef(null);B.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=B.useRef(!1),m=Gw(),p=B.useRef(null),f=B.useRef(null),h=B.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,_M.jsx(gk,{classes:{ripple:lw(o.ripple,ik.ripple),rippleVisible:lw(o.rippleVisible,ik.rippleVisible),ripplePulsate:lw(o.ripplePulsate,ik.ripplePulsate),child:lw(o.child,ik.child),childLeaving:lw(o.childLeaving,ik.childLeaving),childPulsate:lw(o.childPulsate,ik.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=B.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=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:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||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(i)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===p.current&&(p.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},m.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,h,m]),y=B.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=B.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void m.start(0,(()=>{v(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[m]);return B.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),_M.jsx(hk,gp({className:lw(ik.root,o.root,i),ref:f},a,{children:_M.jsx(Pv,{component:null,exit:!0,children:s})}))}));function vk(e){return uw("MuiButtonBase",e)}const bk=dw("MuiButtonBase",["root","disabled","focusVisible"]),xk=["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"],Sk=jT("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"},[`&.${bk.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ek=B.forwardRef((function(e,t){const n=cT({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:m="a",onBlur:p,onClick:f,onContextMenu:h,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:M,onTouchEnd:C,onTouchMove:w,onTouchStart:O,tabIndex:T=0,TouchRippleProps:k,touchRippleRef:R,type:A}=n,N=kp(n,xk),L=B.useRef(null),I=B.useRef(null),P=Vw(I,R),{isFocusVisibleRef:D,onFocus:q,onBlur:z,ref:$}=rO(),[F,j]=B.useState(!1);l&&F&&j(!1),B.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),L.current.focus()}})),[]);const[_,H]=B.useState(!1);B.useEffect((()=>{H(!0)}),[]);const V=_&&!c&&!l;function U(e,t,n=u){return Hw((r=>{t&&t(r);return!n&&I.current&&I.current[e](r),!0}))}B.useEffect((()=>{F&&d&&!c&&_&&I.current.pulsate()}),[c,d,F,_]);const Y=U("start",S),W=U("stop",h),G=U("stop",g),X=U("stop",M),K=U("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=U("start",O),Z=U("stop",C),Q=U("stop",w),ee=U("stop",(e=>{z(e),!1===D.current&&j(!1),p&&p(e)}),!1),te=Hw((e=>{L.current||(L.current=e.currentTarget),q(e),!0===D.current&&(j(!0),v&&v(e)),y&&y(e)})),ne=()=>{const e=L.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=B.useRef(!1),oe=Hw((e=>{d&&!re.current&&F&&I.current&&" "===e.key&&(re.current=!0,I.current.stop(e,(()=>{I.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))})),ie=Hw((e=>{d&&" "===e.key&&I.current&&F&&!e.defaultPrevented&&(re.current=!1,I.current.stop(e,(()=>{I.current.pulsate(e)}))),x&&x(e),f&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&f(e)}));let ae=s;"button"===ae&&(N.href||N.to)&&(ae=m);const se={};"button"===ae?(se.type=void 0===A?"button":A,se.disabled=l):(N.href||N.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Vw(t,$,L),ce=gp({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:T,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=oO({root:["root",t&&"disabled",n&&"focusVisible"]},vk,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return _M.jsxs(Sk,gp({as:ae,className:lw(ue.root,a),ownerState:ce,onBlur:ee,onClick:f,onContextMenu:W,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:Y,onMouseLeave:K,onMouseUp:X,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:T,type:A},se,N,{children:[i,V?_M.jsx(yk,gp({ref:P,center:o},k)):null]}))}));function Mk(e){return uw("MuiTypography",e)}dw("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ck=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wk=jT("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${tC(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>gp({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}))),Ok={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tk={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kk=B.forwardRef((function(e,t){const n=cT({props:e,name:"MuiTypography"}),r=(e=>Tk[e]||e)(n.color),o=rw(gp({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:m=Ok}=o,p=kp(o,Ck),f=gp({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:m}),h=s||(u?"p":m[d]||Ok[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return oO({root:["root",i,"inherit"!==e.align&&`align${tC(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Mk,a)})(f);return _M.jsx(wk,gp({as:h,ref:t,ownerState:f,className:lw(g.root,a)},p))})),Rk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ak(e){const t=[],n=[];return Array.from(e.querySelectorAll(Rk)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Nk(){return!0}function Lk(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Ak,isEnabled:a=Nk,open:s}=e,l=B.useRef(!1),c=B.useRef(null),u=B.useRef(null),d=B.useRef(null),m=B.useRef(null),p=B.useRef(!1),f=B.useRef(null),h=Vw(t.ref,f),g=B.useRef(null);B.useEffect((()=>{s&&f.current&&(p.current=!n)}),[n,s]),B.useEffect((()=>{if(!s||!f.current)return;const e=jw(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),p.current&&f.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),B.useEffect((()=>{if(!s||!f.current)return;const e=jw(f.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=f.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!==m.current)m.current=null;else if(null!==m.current)return;if(!p.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(f.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.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 o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,s,i]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return _M.jsxs(B.Fragment,{children:[_M.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),B.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,m.current=e.target;const n=t.props.onFocus;n&&n(e)}}),_M.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const Ik=B.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=B.useState(null),s=Vw(B.isValidElement(n)?n.ref:null,t);if(zw((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),zw((()=>{if(i&&!o)return Bw(t,i),()=>{Bw(t,null)}}),[t,i,o]),o){if(B.isValidElement(n)){const e={ref:s};return B.cloneElement(n,e)}return _M.jsx(B.Fragment,{children:n})}return _M.jsx(B.Fragment,{children:i?J.createPortal(n,i):i})}));function Pk(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Dk(e){return parseInt(_w(e).getComputedStyle(e).paddingRight,10)||0}function qk(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.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&&Pk(e,o)}))}function zk(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function $k(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=jw(e);return t.body===e?_w(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)}(jw(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Dk(r)+e}px`;const t=jw(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Dk(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=jw(r).body;else{const t=r.parentElement,n=_w(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 Fk=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&&Pk(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);qk(t,e.mount,e.modalRef,r,!0);const o=zk(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=zk(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=$k(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=zk(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Pk(e.modalRef,t),qk(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Pk(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function jk(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Fk,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,m=B.useRef({}),p=B.useRef(null),f=B.useRef(null),h=Vw(f,d),[g,y]=B.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=()=>(m.current.modalRef=f.current,m.current.mount=p.current,m.current),S=()=>{o.mount(x(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},E=Hw((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||jw(p.current).body;o.add(x(),e),f.current&&S()})),M=B.useCallback((()=>o.isTopModal(x())),[o]),C=Hw((e=>{p.current=e,e&&(u&&M()?S():f.current&&Pk(f.current,b))})),w=B.useCallback((()=>{o.remove(x(),b)}),[b,o]);B.useEffect((()=>()=>{w()}),[w]),B.useEffect((()=>{u?E():v&&i||w()}),[u,w,v,i,E]);const O=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")))},T=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=tk(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=gp({},n,t);return gp({role:"presentation"},r,{onKeyDown:O(r),ref:h})},getBackdropProps:(e={})=>gp({"aria-hidden":!0},e,{onClick:T(e),open:u}),getTransitionProps:()=>({onEnter:Fw((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Fw((()=>{y(!0),s&&s(),i&&w()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:C,isTopModal:M,exited:g,hasTransition:v}}const _k=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Bk={entering:{opacity:1},entered:{opacity:1}},Hk=B.forwardRef((function(e,t){const n=lT(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:m,onExited:p,onExiting:f,style:h,timeout:g=r,TransitionComponent:y=kv}=e,v=kp(e,_k),b=B.useRef(null),x=Vw(b,a.ref,t),S=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},E=S(d),M=S(((e,t)=>{GT(e);const r=XT({style:h,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)})),C=S(u),w=S(f),O=S((e=>{const t=XT({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),m&&m(e)})),T=S(p);return _M.jsx(y,gp({appear:i,in:l,nodeRef:b,onEnter:M,onEntered:C,onEntering:E,onExit:O,onExited:T,onExiting:w,addEndListener:e=>{o&&o(b.current,e)},timeout:g},v,{children:(e,t)=>B.cloneElement(a,gp({style:gp({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Bk[e],h,a.props.style),ref:x},t))}))}));function Vk(e){return uw("MuiBackdrop",e)}dw("MuiBackdrop",["root","invisible"]);const Uk=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Yk=jT("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>gp({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"}))),Wk=B.forwardRef((function(e,t){var n,r,o;const i=cT({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:m,slotProps:p={},slots:f={},TransitionComponent:h=Hk,transitionDuration:g}=i,y=kp(i,Uk),v=gp({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return oO({root:["root",n&&"invisible"]},Vk,t)})(v),x=null!=(n=p.root)?n:u.root;return _M.jsx(h,gp({in:m,timeout:g},y,{children:_M.jsx(Yk,gp({"aria-hidden":!0},x,{as:null!=(r=null!=(o=f.root)?o:c.Root)?r:l,className:lw(b.root,s,null==x?void 0:x.className),ownerState:gp({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function Gk(e){return uw("MuiButton",e)}const Xk=dw("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"]),Kk=B.createContext({}),Jk=B.createContext(void 0),Zk=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Qk=e=>gp({},"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}}),eR=jT(Ek,{shouldForwardProp:e=>FT(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${tC(n.color)}`],t[`size${tC(n.size)}`],t[`${n.variant}Size${tC(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return gp({},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":gp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:CO(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})`:CO(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})`:CO(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:i,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":gp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Xk.focusVisible}`]:gp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Xk.disabled}`]:gp({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 ${CO(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:o,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"},[`&.${Xk.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xk.disabled}`]:{boxShadow:"none"}})),tR=jT("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${tC(n.size)}`]]}})((({ownerState:e})=>gp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Qk(e)))),nR=jT("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${tC(n.size)}`]]}})((({ownerState:e})=>gp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Qk(e)))),rR=B.forwardRef((function(e,t){const n=B.useContext(Kk),r=B.useContext(Jk),o=cT({props:Dw(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:m,focusVisibleClassName:p,fullWidth:f=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=o,b=kp(o,Zk),x=gp({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:f,size:h,type:y,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return gp({},a,oO({root:["root",i,`${i}${tC(t)}`,`size${tC(o)}`,`${i}Size${tC(o)}`,`color${tC(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${tC(o)}`],endIcon:["icon","endIcon",`iconSize${tC(o)}`]},Gk,a))})(x),E=g&&_M.jsx(tR,{className:S.startIcon,ownerState:x,children:g}),M=m&&_M.jsx(nR,{className:S.endIcon,ownerState:x,children:m}),C=r||"";return _M.jsxs(eR,gp({ownerState:x,className:lw(n.className,S.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:lw(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[E,i,M]}))}));function oR(e){return uw("MuiModal",e)}dw("MuiModal",["root","hidden","backdrop"]);const iR=["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"],aR=jT("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})=>gp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),sR=jT(Wk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lR=B.forwardRef((function(e,t){var n,r,o,i,a,s;const l=cT({name:"MuiModal",props:e}),{BackdropComponent:c=sR,BackdropProps:u,className:d,closeAfterTransition:m=!1,children:p,container:f,component:h,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:M=!1,hideBackdrop:C=!1,keepMounted:w=!1,onBackdropClick:O,open:T,slotProps:k,slots:R}=l,A=kp(l,iR),N=gp({},l,{closeAfterTransition:m,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:M,hideBackdrop:C,keepMounted:w}),{getRootProps:L,getBackdropProps:I,getTransitionProps:P,portalRef:D,isTopModal:q,exited:z,hasTransition:$}=jk(gp({},N,{rootRef:t})),F=gp({},N,{exited:z}),j=(e=>{const{open:t,exited:n,classes:r}=e;return oO({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},oR,r)})(F),_={};if(void 0===p.props.tabIndex&&(_.tabIndex="-1"),$){const{onEnter:e,onExited:t}=P();_.onEnter=e,_.onExited=t}const H=null!=(n=null!=(r=null==R?void 0:R.root)?r:g.Root)?n:aR,V=null!=(o=null!=(i=null==R?void 0:R.backdrop)?i:g.Backdrop)?o:c,U=null!=(a=null==k?void 0:k.root)?a:y.root,Y=null!=(s=null==k?void 0:k.backdrop)?s:y.backdrop,W=ok({elementType:H,externalSlotProps:U,externalForwardedProps:A,getSlotProps:L,additionalProps:{ref:t,as:h},ownerState:F,className:lw(d,null==U?void 0:U.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),G=ok({elementType:V,externalSlotProps:Y,additionalProps:u,getSlotProps:e=>I(gp({},e,{onClick:t=>{O&&O(t),null!=e&&e.onClick&&e.onClick(t)}})),className:lw(null==Y?void 0:Y.className,null==u?void 0:u.className,null==j?void 0:j.backdrop),ownerState:F});return w||T||$&&!z?_M.jsx(Ik,{ref:D,container:f,disablePortal:S,children:_M.jsxs(H,gp({},W,{children:[!C&&c?_M.jsx(V,gp({},G)):null,_M.jsx(Lk,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:q,open:T,children:B.cloneElement(p,_)})]}))}):null}));function cR(e){return uw("MuiDivider",e)}dw("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const uR=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],dR=jT("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})=>gp({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)`:CO(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})=>gp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>gp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>gp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>gp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),mR=jT("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>gp({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)`}))),pR=B.forwardRef((function(e,t){const n=cT({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:m="fullWidth"}=n,p=kp(n,uR),f=gp({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:m}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return oO({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},cR,r)})(f);return _M.jsx(dR,gp({as:a,className:lw(h.root,i),role:u,ref:t,ownerState:f},p,{children:o?_M.jsx(mR,{className:h.wrapper,ownerState:f,children:o}):null}))}));pR.muiSkipListHighlight=!0;const fR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hR(e){return`scale(${e}, ${e**2})`}const gR={entering:{opacity:1,transform:hR(1)},entered:{opacity:1,transform:"none"}},yR="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vR=B.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:m,style:p,timeout:f="auto",TransitionComponent:h=kv}=e,g=kp(e,fR),y=Gw(),v=B.useRef(),b=lT(),x=B.useRef(null),S=Vw(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},M=E(c),C=E(((e,t)=>{GT(e);const{duration:n,delay:r,easing:o}=XT({style:p,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(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:yR?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),w=E(l),O=E(m),T=E((e=>{const{duration:t,delay:n,easing:r}=XT({style:p,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:n}),b.transitions.create("transform",{duration:yR?o:.666*o,delay:yR?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=hR(.75),u&&u(e)})),k=E(d);return _M.jsx(h,gp({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:w,onEntering:M,onExit:T,onExited:k,onExiting:O,addEndListener:e=>{"auto"===f&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===f?null:f},g,{children:(e,t)=>B.cloneElement(o,gp({style:gp({opacity:0,transform:hR(.75),visibility:"exited"!==e||a?void 0:"hidden"},gR[e],p,o.props.style),ref:S},t))}))}));vR.muiSupportAuto=!0;const bR=B.createContext({});function xR(e){return uw("MuiList",e)}dw("MuiList",["root","padding","dense","subheader"]);const SR=["children","className","component","dense","disablePadding","subheader"],ER=jT("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})=>gp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),MR=B.forwardRef((function(e,t){const n=cT({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=kp(n,SR),u=B.useMemo((()=>({dense:a})),[a]),d=gp({},n,{component:i,dense:a,disablePadding:s}),m=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return oO({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},xR,t)})(d);return _M.jsx(bR.Provider,{value:u,children:_M.jsxs(ER,gp({as:i,className:lw(m.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})}));function CR(e){return uw("MuiListItemButton",e)}const wR=dw("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),OR=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],TR=jT(Ek,{shouldForwardProp:e=>FT(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})=>gp({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"}},[`&.${wR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:CO(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:CO(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:CO(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})`:CO(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wR.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}))),kR=B.forwardRef((function(e,t){const n=cT({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:m}=n,p=kp(n,OR),f=B.useContext(bR),h=B.useMemo((()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l})),[r,f.dense,s,l]),g=B.useRef(null);zw((()=>{o&&g.current&&g.current.focus()}),[o]);const y=gp({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return gp({},n,oO({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},CR,n))})(y),b=Vw(g,t);return _M.jsx(bR.Provider,{value:h,children:_M.jsx(TR,gp({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===i?"button":i,focusVisibleClassName:lw(v.focusVisible,u),ownerState:y,className:lw(v.root,m)},p,{classes:v,children:a}))})}));function RR(e){return uw("MuiListItemIcon",e)}dw("MuiListItemIcon",["root","alignItemsFlexStart"]);const AR=["className"],NR=jT("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})=>gp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),LR=B.forwardRef((function(e,t){const n=cT({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kp(n,AR),i=gp({},n,{alignItems:B.useContext(bR).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return oO({root:["root","flex-start"===t&&"alignItemsFlexStart"]},RR,n)})(i);return _M.jsx(NR,gp({className:lw(a.root,r),ownerState:i,ref:t},o))}));function IR(e){return uw("MuiListItemText",e)}const PR=dw("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),DR=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],qR=jT("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${PR.primary}`]:t.primary},{[`& .${PR.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>gp({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),zR=B.forwardRef((function(e,t){const n=cT({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:i=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=kp(n,DR),{dense:m}=B.useContext(bR);let p=null!=s?s:r,f=c;const h=gp({},n,{disableTypography:i,inset:a,primary:!!p,secondary:!!f,dense:m}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return oO({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},IR,t)})(h);return null==p||p.type===kk||i||(p=_M.jsx(kk,gp({variant:m?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:p}))),null==f||f.type===kk||i||(f=_M.jsx(kk,gp({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:f}))),_M.jsxs(qR,gp({className:lw(g.root,o),ownerState:h,ref:t},d,{children:[p,f]}))}));function $R(e){return uw("MuiPopover",e)}dw("MuiPopover",["root","paper"]);const FR=["onEntering"],jR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_R=["slotProps"];function BR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function HR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function VR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function UR(e){return"function"==typeof e?e():e}const YR=jT(lR,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),WR=jT(QT,{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}),GR=B.forwardRef((function(e,t){var n,r,o;const i=cT({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:m,container:p,elevation:f=8,marginThreshold:h=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=vR,transitionDuration:E="auto",TransitionProps:{onEntering:M}={},disableScrollLock:C=!1}=i,w=kp(i.TransitionProps,FR),O=kp(i,jR),T=null!=(n=null==b?void 0:b.paper)?n:y,k=B.useRef(),R=Vw(k,T.ref),A=gp({},i,{anchorOrigin:l,anchorReference:u,elevation:f,marginThreshold:h,externalPaperSlotProps:T,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:w}),N=(e=>{const{classes:t}=e;return oO({root:["root"],paper:["paper"]},$R,t)})(A),L=B.useCallback((()=>{if("anchorPosition"===u)return c;const e=UR(s),t=(e&&1===e.nodeType?e:jw(k.current).body).getBoundingClientRect();return{top:t.top+BR(t,l.vertical),left:t.left+HR(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),I=B.useCallback((e=>({vertical:BR(e,x.vertical),horizontal:HR(e,x.horizontal)})),[x.horizontal,x.vertical]),P=B.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=I(t);if("none"===u)return{top:null,left:null,transformOrigin:VR(n)};const r=L();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=_w(UR(s)),d=c.innerHeight-h,m=c.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(l>m){const e=l-m;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:VR(n)}}),[s,u,L,I,h]),[D,q]=B.useState(g),z=B.useCallback((()=>{const e=k.current;if(!e)return;const t=P(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,q(!0)}),[P]);B.useEffect((()=>(C&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[s,C,z]);B.useEffect((()=>{g&&z()})),B.useImperativeHandle(a,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),B.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}((()=>{z()})),t=_w(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,z]);let $=E;"auto"!==E||S.muiSupportAuto||($=void 0);const F=p||(s?jw(UR(s)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:YR,_=null!=(o=null==v?void 0:v.paper)?o:WR,H=ok({elementType:_,externalSlotProps:gp({},T,{style:D?T.style:gp({},T.style,{opacity:0})}),additionalProps:{elevation:f,ref:R},ownerState:A,className:lw(N.paper,null==T?void 0:T.className)}),V=ok({elementType:j,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:O,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:A,className:lw(N.root,m)}),{slotProps:U}=V,Y=kp(V,_R);return _M.jsx(j,gp({},Y,!ek(j)&&{slotProps:U,disableScrollLock:C},{children:_M.jsx(S,gp({appear:!0,in:g,onEntering:(e,t)=>{M&&M(e,t),z()},onExited:()=>{q(!1)},timeout:$},w,{children:_M.jsx(_,gp({},H,{children:d}))}))}))}));function XR(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 KR(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function JR(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 ZR(){return ZR=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},ZR.apply(null,arguments)}function QR(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 eA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QR(Object(n),!0).forEach((function(t){JR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tA(){tA=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.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 i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new R(r||[]);return o(a,"_invoke",{value:w(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 m="suspendedStart",p="executing",f="completed",h={};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 E=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 C(e,t){function n(o,i,a,s){var l=d(e[o],e,i);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 i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function w(t,n,r){var o=m;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===f){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=O(s,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?f:"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.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,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function T(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,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 o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,o(E,"constructor",{value:v,configurable:!0}),o(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(E),e},t.awrap=function(e){return{__await:e}},M(C.prototype),c(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},M(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"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,R.prototype={constructor:R,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(k),!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 o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("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 o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):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),h},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),k(n),h}},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 o=r.arg;k(n)}return o}}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),h}},t}function nA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||iA(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rA(e){return function(e){if(Array.isArray(e))return XR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iA(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 oA(e){return oA="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},oA(e)}function iA(e,t){if(e){if("string"==typeof e)return XR(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)?XR(e,t):void 0}}var aA=function(e){var t=e.className,n=e.title,r=e.path,o=e.fillRule;return _.createElement(WT,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},_.createElement("path",{d:r}),n?_.createElement("title",null,n):void 0,o?_.createElement("use",{fillRule:o}):void 0)},sA={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)"}}}},lA={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},cA=function(e){return lA.R.test(e)||lA.AL.test(e)};function uA(e){for(var t,n,r=e?e.length:0,o=0;o<r;o++){if(n=t=e[o],lA.L.test(n))return"ltr";if(cA(t))return"rtl"}return"ltr"}var dA,mA,pA=jT(rR,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,o=r.fontSize,i=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:o,fontFamily:i,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}}})),fA=jT((function(e){var t=e.className;return _.createElement(aA,{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:sA.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),hA=jT((function(e){var t=e.className;return _.createElement(aA,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:sA.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:sA.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),gA=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,o=e.source,i=o.styling,a=o.info.text,s=o.layout.direction,l=o.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,m=l.hasMultiple,p=l.index,f=l.isCyclic,h=l.isLocked,g=o.resources.translator,y=o.services.focus,v=o.settings.isDisabled,b=o.state.inSelections,x=!(!c.change||!u),S=!(!c.reload||!f),E=(x||S)&&!b&&!v(),M={pointerEvents:E?"auto":"none"},C=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,o=e.direction,i=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=i&&t.reload;return"ltr"===o&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===o&&(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:x,canReload:S,direction:s,hasCyclic:d,hasMultiple:m,isLocked:h}),w=JR(JR({},"rtl"===s?"endIcon":"startIcon",h&&_.createElement(fA,{height:12})),"rtl"===s?"startIcon":"endIcon",(x||S)&&_.createElement(hA,{className:"".concat(b||v()?"disabled":"")})),O=K(),T=K();X((function(){t||y.shouldFor(p)&&(O.current.focus(),T.current.focusVisible())}));var k=uA(a),R="Accessibility.".concat(E?"Alternative":"Normal",".Instructions");return _.createElement(pA,ZR({action:T,"aria-describedby":r,"aria-label":g.get(R),color:"inherit",direction:s,disabled:!E||v()||b,onClick:function(e){E&&n(e)},padding:C,ref:O,style:M,styling:i.title,title:a},w),_.createElement("span",{dir:k,style:sA.STYLE.ELLIPSIS},a))},yA=function(e){var t=e.className,n=e.title;return _.createElement(aA,{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"})},vA=jT(rR,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,o=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:o,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:o,opacity:1}}})),bA=jT(yA,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:sA.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),xA=jT((function(e){var t=e.className,n=e.title;return _.createElement(aA,{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:sA.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:sA.STYLE.ICONS.COLOR.DISABLED}}})),SA=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=nA(G(!1),2),r=n[0],o=n[1],i=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,m=d.allowed,p=d.isFirst,f=d.isLast,h=t.settings.isDisabled,g=t.state.inSelections;return X((function(){r&&o(!1)}),[l]),m.reload?_.createElement(vA,{direction:u,disabled:r||g||h(),isFirst:p,isLast:f,onClick:function(){return o(!0),void a()},styling:i.title,title:c,variant:"outlined"},_.createElement(xA,{className:"".concat(r||g||h()?"disabled":"")})):_.createElement(bA,{direction:u,isFirst:p,isLast:f,style:{flexShrink:0},title:c})},EA=function(e){var t=e.className,n=e.title;return _.createElement(aA,{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"})},MA=jT(rR,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,o=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:o,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:o}}})),CA={color:sA.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:sA.STYLE.ICONS.COLOR.DISABLED}},wA=jT((function(e){var t=e.className;return _.createElement(aA,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return CA})),OA=jT((function(e){var t=e.className;return _.createElement(aA,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return CA})),TA=jT(EA,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:sA.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),kA=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,o=t.info,i=o.breadcrumbs,a=o.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,m=t.state.inSelections,p=d()||m?"disabled":null,f=JR({},"rtl"===s?"startIcon":"endIcon","rtl"===s?_.createElement(OA,{className:p}):_.createElement(wA,{className:p})),h=i.map((function(e,t){var o=uA(e);return _.createElement(MA,ZR({disabled:d()||m,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:i.length-e})}(t)},styling:n.title,title:e},f),_.createElement("span",{dir:o,style:sA.STYLE.ELLIPSIS},e))}));return _.createElement(_.Fragment,null,"rtl"===s?h.reverse():void 0,_.createElement(TA,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:h)},RA=jT(kR,{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":eA({},sA.STYLE.FOCUS)}})),AA=jT(LR)((function(){return{marginRight:0,justifyContent:"center"}})),NA=jT((function(e){var t=e.className;return _.createElement(aA,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:sA.STYLE.ICONS.COLOR.SECONDARY}})),LA=jT(yA)((function(){return{color:sA.STYLE.ICONS.COLOR.SECONDARY}})),IA=jT(EA)((function(){return{color:sA.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),PA=function(e){var t=e.id,n=e.meta,r=e.nested,o=e.onClick,i=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=eA({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},sA.STYLE.ELLIPSIS),d=uA(s),m=_.createElement(AA,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?_.createElement(NA,{height:12}):null!=t&&t.isCyclic?_.createElement(LA,{height:12}):null!=t&&t.isDrillDown?_.createElement(IA,{height:12}):void 0}({meta:n,selected:i}));return _.createElement(_.Fragment,{key:t},_.createElement(RA,{autoFocus:i,nested:r,onClick:function(e){return null==o?void 0:o(e)},rtl:c,title:s},c&&m,_.createElement(zR,{dir:d,primaryTypographyProps:{style:u}},s),!c&&m))},DA=jT(pR)((function(){return{marginTop:"-1px"}})),qA=function(e){var t=e.anchor,n=e.id,r=e.onClose,o=e.open,i=e.source,a=i.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=i.info,d=u.breadcrumbs,m=u.group,p=u.id,f=u.text,h=i.data.alternatives,g=i.meta,y=g.index,v=g.isCyclic,b=g.isDrillDown,x=i.resources.translator,S=i.services.focus,E={isChanging:!1},M=K(),C=function(){var e,t=document.activeElement;null!=M&&null!==(e=M.current)&&void 0!==e&&e.contains(t)&&t.blur(),r()},w=v||b,O=_.createElement(PA,{id:p,key:p,meta:i.meta,onClick:C,selected:!w,source:i,text:w?m.name:f}),T=w&&m.items.map((function(e){return _.createElement(PA,{id:e.id,nested:!0,onClick:function(t){return function(e,t){E.isChanging||(E.isChanging=!0,"keydown"!==e.type&&"keyup"!==e.type||S.queueFor(y),v&&c({fieldIndex:t.index}),b&&l({steps:d.length-t.index}))}(t,e)},selected:e.current,source:i,text:e.text})})),k=h.map((function(e,t){return _.createElement(_.Fragment,{key:e.id},_.createElement(PA,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,void(E.isChanging||(E.isChanging=!0,"keydown"!==n.type&&"keyup"!==n.type||S.queueFor(y),s({id:r})));var n,r},source:i,text:e.text}),t<h.length-1&&_.createElement(DA,{key:"divider-".concat(e.id)}))}));return _.createElement(GR,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:n,onClose:C,open:o,ref:M,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},_.createElement(MR,{"aria-label":x.get("Accessibility.Popover.Instructions"),dense:!0},O,T,_.createElement(DA,{key:"divider-".concat(p)}),k))},zA=function(e){var t=e.source,n=nA(G(null),2),r=n[0],o=n[1],i={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.meta.index,l=t.services.focus,c=function(){o(null)};X((function(){i.isOpen&&c()}),[t.info.key]);var u=_.createElement(SA,{source:t}),d=_.createElement(kA,{source:t});return _.createElement(_.Fragment,null,"rtl"===a?void 0:d,"rtl"===a?void 0:u,_.createElement(gA,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&l.queueFor(s),o(t)},isOpen:i.isOpen,popoverId:i.id,source:t}),_.createElement(qA,{anchor:r,id:i.id,onClose:c,open:i.isOpen,source:t}),"rtl"===a?d:void 0,"rtl"===a?u:void 0)};var $A=function(){if(mA)return dA;mA=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)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 dA=function e(){var t,n,r,l,c,u,d=arguments[0],m=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},m=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});m<p;++m)if(null!=(t=arguments[m]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},dA}(),FA=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}($A);function jA(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function _A(e){return Array.isArray(e)}function BA(e){return null!=e&&!Array.isArray(e)&&"object"===oA(e)}function HA(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function VA(e){return void 0===e}function UA(e,t){if(BA(e)&&BA(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,o=n.length;r<o;r+=1)if(!UA(e[n[r]],t[n[r]]))return!1;return!0}if(_A(e)&&_A(t)){if(e.length!==t.length)return!1;for(var i=0,a=e.length;i<a;i+=1)if(!UA(e[i],t[i]))return!1;return!0}return e===t}function YA(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,o=void 0===r?{}:r,i=e.basePath,a=void 0===i?"":i,s=[];return Object.keys(o).forEach((function(e){var t=function(e){return e?FA(!0,{},{value:e}).value:e}(o[e]),r=n[e],i="".concat(a,"/").concat(e);UA(t,r)||HA(o,e)||(VA(r)?s.push({op:"add",path:i,value:t}):BA(t)&&BA(r)?s.push.apply(s,rA(YA({oldData:r,newData:t,basePath:i}))):_A(t)&&_A(r)?s.push.apply(s,rA(function(e){var t=e.newArray,n=e.basePath,r=[];return UA(t,e.oldArray.slice())||(!VA(t[0])&&VA(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:i}))):s.push({op:"replace",path:i,value:t}))})),Object.keys(n).forEach((function(e){VA(o[e])&&!HA(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function WA(e){var t=e.model,n=YA({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 GA(e){return XA.apply(this,arguments)}function XA(){return(XA=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){KR(i,r,o,a,s,"next",e)}function s(e){KR(i,r,o,a,s,"throw",e)}a(void 0)}))}}(tA().mark((function e(t){var n,r,o,i,a,s,l,c,u,d,m,p;return tA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.from,r=t.to,o=t.model,i=t.container,a=t.skipAttributeExpressions,s=t.onChange,o){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,o.getEffectiveProperties();case 5:return l=e.sent,c=l.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===r})),d=FA(!0,{},l),m=d.qHyperCubeDef[i][c],(p=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]).qAttributeDimensions=m.qAttributeDimensions,m.qAttributeDimensions=[],a||(p.qAttributeExpressions=m.qAttributeExpressions,m.qAttributeExpressions=[]),d.qHyperCubeDef[i][c]=p,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]=m,s({fromItem:m,toItem:p,oldProperties:l,newProperties:d,model:o}),e.next=19,jA({model:o,properties:d});case 19:o.colorSupport&&o.colorSupport.colorByUpdater(d,"qHyperCubeDef."),WA({model:o,oldProperties:l,newProperties:d});case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function KA(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=o.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,o=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,m=e.qLocked,p=e.title,f="C"===r,h="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){f&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:f,isDrillDown:h,isLocked:!!m,isNormal:g},info:{id:n,key:"".concat(n,"-").concat(a),text:g?d:o[a],position:a,breadcrumbs:o.slice(0,e.qGroupPos),group:{name:p,items:o.slice(0,h?e.qGroupPos+1:o.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(f?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return GA({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:i})},drillUp:function(e){var t=e.steps;h&&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 JA(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.model,l=o.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,key:t,text:n},action:{changeTo:function(e){var n=e.id;return GA({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:i})}}}}))}function ZA(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=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:i}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=i.app,m=i.cache,p=i.model,f=a.forceAllowChange,h=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:h}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{queueFor:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,{focus:!0,index:e})},shouldFor:function(e){var r,o,i=null==t||null===(r=t.get)||void 0===r?void 0:r.call(t,n),a=!(null==i||!i.focus||(null==i?void 0:i.index)!==e);return a&&(null==t||null===(o=t.set)||void 0===o||o.call(t,n,{focus:!1})),a}}}({cache:m,key:o}),x=("dimension"===y?KA:JA)({callbacks:t,data:n,resources:i,settings:a});"rtl"===v&&x.reverse();var S={allowed:{change:(!(null==p||!p.modifiers||null==p||!p.colorSupport)||f)&&!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 eA(eA({data:n,layout:{direction:v},resources:{translator:i.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:eA(eA(eA({},S),e.meta),{},{index:t,isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:o,resources:a,settings:s,state:l,styling:c});return _.createElement("div",{style:u},d.map((function(e){return _.createElement(_.Fragment,{key:e.info.id},_.createElement(zA,{source:e}),!e.meta.isLast&&_.createElement("span",{dir:e.layout.direction,style:eA(eA({},c.title),{},{lineHeight:"normal"})},", "))})))}var QA,eN='"Source Sans Pro", "Arial", "sans-serif"',tN="12px",nN=function(e){var t=e.rect,n=e.state,r=e.settings,o=r.callbacks,i=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return ZA({callbacks:o,data:i,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},rN={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:eN,fontSize:tN},popover:{color:"#595959CC",fontFamily:eN,fontSize:tN}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,o=t.alternatives,i=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=o.length||"measure"!==i?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(nN(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 nN(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))}},oN=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return _.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},iN={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,o=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,o=e.styling,i=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:o});return _.createElement("div",{dir:i,style:a},_.createElement(oN,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},aN={},sN=function(){if(QA)return aN;QA=1;var e=Z;return aN.createRoot=e.createRoot,aN.hydrateRoot=e.hydrateRoot,aN}(),lN=aT({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 cN(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,o=n.y,i=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(o)||void 0===o?t.y:o,t.width=Number.isNaN(i)||void 0===i?t.width:i,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 uN(){var e={rendererBox:cN(),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=cN(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=sN.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,o=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*o),"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(o,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return _.createElement(_.StrictMode,null,_.createElement(BT,{theme:lN},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}var dN={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:o,size:i,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,m=l.length&&void 0!==u;if(!d&&!m)return[];const p=s.map((e=>e.ref)),f=l.map((e=>e.ref)),h=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:o=[],primarySeries:i=[],secondarySeries:a=[]}){const s=[];[...i,...a].forEach((i=>{const a=i.isPrimary?t:n,l=i.isPrimary?r:o;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const o="max"===e?e=>e>t:e=>e<t,i=n?e=>o(e.point.value<0?e.start.value:e.end.value):e=>o(e.end.value);return r.filter(i)})({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:e.filter((e=>p.includes(e.end.source.field))),secondaryItems:e.filter((e=>f.includes(e.end.source.field))),primarySeries:s,secondarySeries:l});if(!h.length)return[];const g="horizontal"===n,y=this.rect[g?"width":"height"],v=this.resolver.resolve({data:{items:h},settings:{major:a},scaled:{major:y}}),b=("max"===t?90:-90)-(g?0:90)-(!g&&r?180:0),x=i/2*o,{fill:S}=this.settings.style,E=v.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:o,y:i,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:o,y:i,data:a})}({symbol:this.symbol,size:i,fill:S,startAngle:b,x:g?y*e.major:x,y:g?x:y*e.major,data:e.data})));return E}};function mN({x:e,y:t,size:n,stroke:r,strokeWidth:o,fill:i}){return{type:"container",children:[{type:"line",stroke:r||i,strokeWidth:o,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:i,cx:e,cy:t,r:.25*n}]}}function pN({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))],o=e.findShapes("path").filter((e=>r.some((t=>t===e.key))));return o.reduce(((e,n)=>((t.primary.some((e=>e.key===n.key))?e.primary:e.secondary).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 fN({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function hN({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(Ya.SCALE.MAJOR),o=r&&r.max&&r.max(),i="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===o?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&i(e,t.max)))}}function gN({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:o,chart:i}){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 m=[c?e=>e.color.value:r[d]].filter(Boolean);if(o&&l&&m.push((e=>e.color.value)),!o&&u&&(m=[e=>e.color.value]),!m.length)return[];const p=function({brush:e,chart:t}){return("value"===e.type?fN:hN)({brush:e,chart:t})}({brush:s,chart:i});return p?n.reduce(((e,t,n)=>(m.some((e=>p({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function yN({chart:e,selected:t,connection:n,gradient:r,fallback:o}){const i=e.scale(Ya.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=i.domain().map((e=>({color:i(Math.min(l,Math.max(s,e)))||o,offset:Math.min(1,Math.max(0,(e-s)/u))}))),m=d.map((e=>e.offset)),p=m.lastIndexOf(0),f=m.indexOf(1),h=d.slice(-1===p?0:p,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function vN({chart:e,selected:t,connection:n,gradient:r,fallback:o}){const i=e.scale(Ya.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=i.domain(),d=[];for(let e=0;e<u.length-1;e++){const t=u[e],n=i(t)||o;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 m=d.map((e=>e.offset)),p=m.lastIndexOf(0),f=m.indexOf(1),h=d.slice(-1===p?0:p,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function bN({property:e,chart:t,connection:n,attrs:r,colorSettings:o,colorByData:i,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:c,orientation:u,rtl:d}){const m=r[e];if("gradient"!==m.type)return m;const{type:p,nil:f}=o;if(s||!i)return function({chart:e,selected:t,connection:n,gradient:r,fallback:o,orientation:i,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:c}){const u=e.scale(Ya.SCALE.MAJOR),d=e.scale(Ya.SCALE.COLOR),m=s?e=>u([e,0])+u.bandwidth()*l/2:e=>u(e),p=t.filter((e=>-1!==n.indexOf(e.index))),f=("vertical"===i&&c?p.reverse():p).map((e=>e.item)),h=f.map((e=>m(e.major.value))),g=Math.min(...h),y=Math.max(...h)-g,v=0===y?1:y,b=h.map(((e,t)=>0===t?0:t===h.length-1?1:(e-g)/v)),x=[];for(let e=0;e<f.length;e++){const t=f[e],n=a?t.color.value:d(t.color.value)||o,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===f.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:m,fallback:f,orientation:u,isColorCode:"color"===p,groupedByMeasure:l,itemsPerGroup:c,rtl:d});return("continuous"===p?yN:vN)({chart:t,selected:a,connection:n,gradient:m,fallback:f})}function xN({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:o,groupedByMeasure:i,itemsPerGroup:a,orientation:s,lineKey:l,primary:c,selected:u,connections:d,rtl:m,count:p}){const f=t.getLine(l,c),{attrs:h}=f,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:h.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:o,itemsPerGroup:i,orientation:a,selected:s,connection:l,commands:c,attrs:u,rtl:d,count:m}){return{path:l.map(((e,t)=>{const n=c[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join(""),attrs:u,stroke:bN({property:"stroke",chart:e,connection:l,attrs:u,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:o,itemsPerGroup:i,orientation:a,rtl:d})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:o,groupedByMeasure:i,itemsPerGroup:a,orientation:s,selected:u,connection:t,commands:g,attrs:h,rtl:m,count:p})))}function SN({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:o,items:i,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:m,rtl:p}){const f=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:o}=t;return!r||(o?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:i,selectionInfo:o,seriesInfo:n}),h=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const o=n.typeIndex.value;var i;return e[o]||(e[o]={key:o,items:[],index:r,measureIx:null===(i=n.colorMeasureIdx)||void 0===i?void 0:i.value,primary:t.primary.some((e=>e.typeIndex===o))}),e[o].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:f,seriesInfo:n}),{lines:g}=h.reduce(((n,i)=>{const f=gN({brush:r,selectionInfo:o,items:i.items,selectionValues:a,colorByData:l,chart:e});if(f.length<2)return n;const h=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:f});return h.length?(n.lines.push(...xN({chart:e,pathModel:t,colorSettings:s(i.measureIx),colorByData:l(i.measureIx),hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:m,lineKey:i.lineKey,primary:i.primary,selected:f,connections:h,rtl:p,count:i.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 EN={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:pN({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=SN({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=pN({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return SN({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 MN=()=>{const e=F();return e.use(j),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Mm(e))};e.interaction("hammer",Mm(Hammer))}($)),e.use(Gb),e.use((function(e){e.renderer("react",Yb()),e.component("data-title",Hb(e.renderer("svg")()))})),e.renderer("react-qcm",uN),e.component("axis-title",rN),e.component("disclaimer",iN),e.component("scrollbar",tl),e.component("point-label",iS),e.component("label-space",aS),e.component("time-axis",Kd.picassoComponents.timeAxis),e.component("axis-overlay",Kd.picassoComponents.axisOverlay),e.component("reference-line-labels",Na),e.component("box-sliced-hat",ox),e.component("box-out-of-bounds",Qb),e.component("data-out-of-bounds-marker",dN),e.component("scroll-hint",Ni),e.component("brush-highlighter",EN),e.scale("time",Kd.picassoScales.time),e.symbol("line-point",mN),e},CN=e=>"[object Object]"===Object.prototype.toString.call(e),wN=e=>Array.isArray(e);function ON(e,t){if(e===t)return!0;if(wN(e)){if(!wN(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!ON(e[n],t[n]))return!1;return!0}if(CN(e)){if(!CN(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(!ON(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function TN({enable:e=!0}={}){const t=a(),o=()=>Date.now().toString()+Math.random(),[i,s]=n(o()),l={properties:void 0};return r((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const n=()=>{t.getEffectiveProperties().then((e=>{const t=me(!0,{},e);if(!l.properties)return void(l.properties=t);const n=function(e,t){var n,r,o,i;const a={properties:!1,exclude:!1};if(e===t)return a;const s=me(!0,{},e),l=me(!0,{},t);return a.exclude=!ON(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(o=s.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,null===(i=l.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,a.properties=!ON(s,l),a}(l.properties,t);l.properties=t,n.exclude&&!n.properties&&s(o())}))};return t.on("changed",n),n(),()=>{t.removeListener("changed",n)}}),[e]),i}const kN={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},RN=e=>void 0===e.marker?kN.circle:kN[e.marker],AN=e=>void 0===e.markerFill||e.markerFill;function NN({series:e,layoutService:t}){switch(lu(e)){case Wa.TYPE.MARKER:return(e=>({marker:RN(e),fill:AN(e)}))(e);case Wa.TYPE.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case Wa.TYPE.BAR:return{showAsZeros:!0};default:return{}}}function LN(e=Wa.NOPE_SERIES,t=!0){return t?e.axis===Wa.AXIS.PRIMARY:e.axis===Wa.AXIS.PRIMARY||lu(e)===Wa.TYPE.BAR}var IN={exports:{}};var PN={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 DN="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var qN=DN;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=PN,i=qN,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const m="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[m,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=d++;i(e,o,t),u[e]=o,l[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),f("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${m}+`),f("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),f("FULL",`^${l[u.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),f("LOOSE",`^${l[u.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),f("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),f("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",l[u.COERCE],!0),f("COERCERTLFULL",l[u.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(IN,IN.exports);var zN=IN.exports;const $N=Object.freeze({loose:!0}),FN=Object.freeze({});var jN=e=>e?"object"!=typeof e?$N:e:FN;const _N=/^[0-9]+$/,BN=(e,t)=>{const n=_N.test(e),r=_N.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var HN={compareIdentifiers:BN,rcompareIdentifiers:(e,t)=>BN(t,e)};const VN=qN,{MAX_LENGTH:UN,MAX_SAFE_INTEGER:YN}=PN,{safeRe:WN,safeSrc:GN,t:XN}=zN,KN=jN,{compareIdentifiers:JN}=HN;var ZN=class e{constructor(t,n){if(n=KN(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>UN)throw new TypeError(`version is longer than ${UN} characters`);VN("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?WN[XN.LOOSE]:WN[XN.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>YN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>YN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>YN||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<YN)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(VN("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)),JN(this.major,t.major)||JN(this.minor,t.minor)||JN(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(VN("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 JN(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(VN("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 JN(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?GN[XN.PRERELEASELOOSE]:GN[XN.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===JN(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 QN=ZN;var eL=(e,t,n=!1)=>{if(e instanceof QN)return e;try{return new QN(e,t)}catch(e){if(!n)return null;throw e}};const tL=eL;var nL=(e,t)=>{const n=tL(e,t);return n?n.version:null};const rL=eL;var oL=(e,t)=>{const n=rL(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const iL=ZN;var aL=(e,t,n,r,o)=>{"string"==typeof n&&(o=r,r=n,n=void 0);try{return new iL(e instanceof iL?e.version:e,n).inc(t,r,o).version}catch(e){return null}};const sL=eL;var lL=(e,t)=>{const n=sL(e,null,!0),r=sL(t,null,!0),o=n.compare(r);if(0===o)return null;const i=o>0,a=i?n:r,s=i?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 cL=ZN;var uL=(e,t)=>new cL(e,t).major;const dL=ZN;var mL=(e,t)=>new dL(e,t).minor;const pL=ZN;var fL=(e,t)=>new pL(e,t).patch;const hL=eL;var gL=(e,t)=>{const n=hL(e,t);return n&&n.prerelease.length?n.prerelease:null};const yL=ZN;var vL=(e,t,n)=>new yL(e,n).compare(new yL(t,n));const bL=vL;var xL=(e,t,n)=>bL(t,e,n);const SL=vL;var EL=(e,t)=>SL(e,t,!0);const ML=ZN;var CL=(e,t,n)=>{const r=new ML(e,n),o=new ML(t,n);return r.compare(o)||r.compareBuild(o)};const wL=CL;var OL=(e,t)=>e.sort(((e,n)=>wL(e,n,t)));const TL=CL;var kL=(e,t)=>e.sort(((e,n)=>TL(n,e,t)));const RL=vL;var AL=(e,t,n)=>RL(e,t,n)>0;const NL=vL;var LL=(e,t,n)=>NL(e,t,n)<0;const IL=vL;var PL=(e,t,n)=>0===IL(e,t,n);const DL=vL;var qL=(e,t,n)=>0!==DL(e,t,n);const zL=vL;var $L=(e,t,n)=>zL(e,t,n)>=0;const FL=vL;var jL=(e,t,n)=>FL(e,t,n)<=0;const _L=PL,BL=qL,HL=AL,VL=$L,UL=LL,YL=jL;var WL=(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 _L(e,n,r);case"!=":return BL(e,n,r);case">":return HL(e,n,r);case">=":return VL(e,n,r);case"<":return UL(e,n,r);case"<=":return YL(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const GL=ZN,XL=eL,{safeRe:KL,t:JL}=zN;var ZL=(e,t)=>{if(e instanceof GL)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?KL[JL.COERCERTLFULL]:KL[JL.COERCERTL];let o;for(;(o=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&o.index+o[0].length===n.index+n[0].length||(n=o),r.lastIndex=o.index+o[1].length+o[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?KL[JL.COERCEFULL]:KL[JL.COERCE]);if(null===n)return null;const r=n[2],o=n[3]||"0",i=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",s=t.includePrerelease&&n[6]?`+${n[6]}`:"";return XL(`${r}.${o}.${i}${a}${s}`,t)};var QL,eI,tI,nI,rI=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 oI(){if(eI)return QL;eI=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.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=>!f(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&&h(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&&m)|(this.options.loose&&p))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,h=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(h,T(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),i("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),i("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),i("caret trim",e);let g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>O(e,this.options)));a&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),i("range list",g);const v=new Map,b=g.map((e=>new o(e,this.options)));for(const e of b){if(f(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(k(this.set[t],e,this.options))return!0;return!1}}QL=t;const n=new rI,r=jN,o=iI(),i=qN,a=ZN,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=zN,{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:p}=PN,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},y=(e,t)=>(i("comp",e,t),e=S(e,t),i("caret",e),e=b(e,t),i("tildes",e),e=M(e,t),i("xrange",e),e=w(e,t),i("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,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(o)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(i("replaceTilde pr",a),s=`>=${n}.${r}.${o}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,i("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{i("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),v(n)?l="":v(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:s?(i("replaceCaret pr",s),l="0"===n?"0"===o?`>=${n}.${o}.${a}-${s} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${s} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${s} <${+n+1}.0.0-0`):(i("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${a}${r} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),i("caret return",l),l}))},M=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=v(o),u=c||v(a),d=u||v(s),m=d;return"="===r&&m&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&m?(u&&(a=0),s=0,">"===r?(r=">=",u?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+o}.${a}.${s}${l}`):u?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:d&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),i("xRange return",n),n}))},w=(e,t)=>(i("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),O=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),T=e=>(t,n,r,o,i,a,s,l,c,u,d,m)=>`${n=v(r)?"":v(o)?`>=${r}.0.0${e?"-0":""}`:v(i)?`>=${r}.${o}.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`:m?`<=${c}.${u}.${d}-${m}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),k=(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(i(e[n].semver),e[n].semver!==o.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 QL}function iI(){if(nI)return tI;nI=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.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[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new s(i[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 i(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("="))||(!!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}tI=t;const n=jN,{safeRe:r,t:o}=zN,i=WL,a=qN,s=ZN,l=oI();return tI}const aI=oI();var sI=(e,t,n)=>{try{t=new aI(t,n)}catch(e){return!1}return t.test(e)};const lI=oI();var cI=(e,t)=>new lI(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const uI=ZN,dI=oI();var mI=(e,t,n)=>{let r=null,o=null,i=null;try{i=new dI(t,n)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(r&&-1!==o.compare(e)||(r=e,o=new uI(r,n)))})),r};const pI=ZN,fI=oI();var hI=(e,t,n)=>{let r=null,o=null,i=null;try{i=new fI(t,n)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new pI(r,n)))})),r};const gI=ZN,yI=oI(),vI=AL;var bI=(e,t)=>{e=new yI(e,t);let n=new gI("0.0.0");if(e.test(n))return n;if(n=new gI("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 o=null;r.forEach((e=>{const t=new gI(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!vI(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||n&&!vI(n,o)||(n=o)}return n&&e.test(n)?n:null};const xI=oI();var SI=(e,t)=>{try{return new xI(e,t).range||"*"}catch(e){return null}};const EI=ZN,MI=iI(),{ANY:CI}=MI,wI=oI(),OI=sI,TI=AL,kI=LL,RI=jL,AI=$L;var NI=(e,t,n,r)=>{let o,i,a,s,l;switch(e=new EI(e,r),t=new wI(t,r),n){case">":o=TI,i=RI,a=kI,s=">",l=">=";break;case"<":o=kI,i=AI,a=TI,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(OI(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===CI&&(e=new MI(">=0.0.0")),u=u||e,d=d||e,o(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)&&i(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const LI=NI;var II=(e,t,n)=>LI(e,t,">",n);const PI=NI;var DI=(e,t,n)=>PI(e,t,"<",n);const qI=oI();var zI=(e,t,n)=>(e=new qI(e,n),t=new qI(t,n),e.intersects(t,n));const $I=sI,FI=vL;const jI=oI(),_I=iI(),{ANY:BI}=_I,HI=sI,VI=vL,UI=[new _I(">=0.0.0-0")],YI=[new _I(">=0.0.0")],WI=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===BI){if(1===t.length&&t[0].semver===BI)return!0;e=n.includePrerelease?UI:YI}if(1===t.length&&t[0].semver===BI){if(n.includePrerelease)return!0;t=YI}const r=new Set;let o,i,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?o=GI(o,t,n):"<"===t.operator||"<="===t.operator?i=XI(i,t,n):r.add(t.semver);if(r.size>1)return null;if(o&&i){if(a=VI(o.semver,i.semver,n),a>0)return null;if(0===a&&(">="!==o.operator||"<="!==i.operator))return null}for(const e of r){if(o&&!HI(e,String(o),n))return null;if(i&&!HI(e,String(i),n))return null;for(const r of t)if(!HI(e,String(r),n))return!1;return!0}let d=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver,m=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver;d&&1===d.prerelease.length&&"<"===i.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,o)if(m&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch&&(m=!1),">"===e.operator||">="===e.operator){if(s=GI(o,e,n),s===e&&s!==o)return!1}else if(">="===o.operator&&!HI(o.semver,String(e),n))return!1;if(i)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=XI(i,e,n),l===e&&l!==i)return!1}else if("<="===i.operator&&!HI(i.semver,String(e),n))return!1;if(!e.operator&&(i||o)&&0!==a)return!1}return!(o&&c&&!i&&0!==a)&&(!(i&&u&&!o&&0!==a)&&(!m&&!d))},GI=(e,t,n)=>{if(!e)return t;const r=VI(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},XI=(e,t,n)=>{if(!e)return t;const r=VI(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var KI=(e,t,n={})=>{if(e===t)return!0;e=new jI(e,n),t=new jI(t,n);let r=!1;e:for(const o of e.set){for(const e of t.set){const t=WI(o,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const JI=zN,ZI=PN,QI=ZN,eP=HN,tP=(e,t,n)=>{const r=[];let o=null,i=null;const a=e.sort(((e,t)=>FI(e,t,n)));for(const e of a){$I(e,t,n)?(i=e,o||(o=e)):(i&&r.push([o,i]),i=null,o=null)}o&&r.push([o,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 nP=te({parse:eL,valid:nL,clean:oL,inc:aL,diff:lL,major:uL,minor:mL,patch:fL,prerelease:gL,compare:vL,rcompare:xL,compareLoose:EL,compareBuild:CL,sort:OL,rsort:kL,gt:AL,lt:LL,eq:PL,neq:qL,gte:$L,lte:jL,cmp:WL,coerce:ZL,Comparator:iI(),Range:oI(),satisfies:sI,toComparators:cI,maxSatisfying:mI,minSatisfying:hI,minVersion:bI,validRange:SI,outside:NI,gtr:II,ltr:DI,intersects:zI,simplifyRange:tP,subset:KI,SemVer:QI,re:JI.re,src:JI.src,tokens:JI.t,SEMVER_SPEC_VERSION:ZI.SEMVER_SPEC_VERSION,RELEASE_TYPES:ZI.RELEASE_TYPES,compareIdentifiers:eP.compareIdentifiers,rcompareIdentifiers:eP.rcompareIdentifiers}),rP={BAR_IN_SECONDARY_AXIS:"0.23.1"};const oP=e=>!e||nP.lt(nP.coerce(e),nP.coerce(rP.BAR_IN_SECONDARY_AXIS)),iP=({layoutService:e})=>{const t=!oP(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[Wa.TYPE.BAR]:0,[Wa.TYPE.LINE]:0,[Wa.TYPE.MARKER]:0};return({series:r=Wa.NOPE_SERIES},o)=>{const i=LN(r,t),a=lu(r);return{id:o,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${o}`,refIndex:o,isPrimary:i,scale:i?Ya.SCALE.MINOR.PRIMARY:Ya.SCALE.MINOR.SECONDARY,collection:i?Ya.COLLECTION.PRIMARY:Ya.COLLECTION.SECONDARY,options:NN({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>lu(e)===t)).length,o=n.filter((e=>e.isPrimary)),i=n.filter((e=>!e.isPrimary)),a=[!!o.length&&o[0],!!i.length&&i[0]].filter((e=>!!e)),s=r(n,Wa.TYPE.BAR),l=r(o,Wa.TYPE.BAR),c=r(i,Wa.TYPE.BAR),u=e=>n.filter((t=>lu(t)===e)),d=u(Wa.TYPE.LINE).map((e=>Nl(Ya.COMPONENT.POINT,e))),m=u(Wa.TYPE.MARKER).map((e=>({key:Nl(Ya.COMPONENT.MARKER,e),type:e.options.marker}))),p=m.map((e=>e.key)),f=[];l>0&&f.push(`${Ya.COMPONENT.BAR}-${Wa.AXIS.PRIMARY}`),c>0&&f.push(`${Ya.COMPONENT.BAR}-${Wa.AXIS.SECONDARY}`);const h=[...f,...d,...p],{MINI_CHART:g}=Ya.COMPONENT,y=u(Wa.TYPE.LINE).map((e=>Nl(g.LINE,e))),v=u(Wa.TYPE.MARKER).map((e=>Nl(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${Wa.AXIS.PRIMARY}`,`${g.BAR}-${Wa.AXIS.SECONDARY}`,...y,...v]:[];return{meta:{allSeries:n,primarySeries:o,secondarySeries:i,barSeriesCount:s,primaryBarSeriesCount:l,secondaryBarSeriesCount:c,measureAxes:a,pointComponentKeys:d,markerComponentKeys:p,barComponentKeys:f,seriesComponentKeys:h,miniComponentKeys:b,markers:m},query:{all:()=>n,seriesByAxis:e=>e?o:i,series:u,isPrimary:LN}}};function aP({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 sP({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Te).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),o=t.getHyperCubeValue("qDimensionInfo"),i="K"===r&&o.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=i?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:o.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:i?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,{path:"/qHyperCubeDef",rect:aP({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function lP({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}):sP({genericObjectModel:e,layoutService:t})}const cP=e=>"number"==typeof e&&!Number.isNaN(e);function uP({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),o=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),i=o.filter((e=>lu(e.series)===Wa.TYPE.BAR)),a=o.filter((e=>lu(e.series)===Wa.TYPE.LINE)),s=o.filter((e=>lu(e.series)===Wa.TYPE.MARKER));return{min:Math.min(...o.filter((e=>cP(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>cP(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...i.filter((e=>cP(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>cP(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>cP(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>cP(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>cP(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>cP(e.qMax))).map((e=>e.qMax)))}}}}function dP({isPrimary:e,layoutService:t,seriesModel:n}){const r=uP({isPrimary:e,layoutService:t,seriesModel:n}),o=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(Wa.TYPE.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:o}=n,i={min:NaN,max:NaN};return o.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})),i.min=Number.isNaN(i.min)?t:Math.min(t,i.min),i.max=Number.isNaN(i.max)?n:Math.max(n,i.max)})),i}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=o({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 mP({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:o}){const i={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,o=n.query.series(Wa.TYPE.BAR).filter((t=>t.isPrimary===e)).length;return!r||o<2?uP({isPrimary:e,layoutService:t,seriesModel:n}):dP({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:o});return{query:{getExtrema:()=>i},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,o=r("measureAxes."+(e?0:1),{});if(o.autoMinMax)return n;const{minMax:i,min:a,max:s}=o;return"min"!==i&&"minMax"!==i||(n.min=a),"max"!==i&&"minMax"!==i||(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 i.explicit.min=s,i.explicit.max=l,i.meta.hasExplicitMin=!Number.isNaN(s),i.meta.hasExplicitMax=!Number.isNaN(l),i.meta.hasExplicit=i.meta.hasExplicitMin||i.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=o.query.seriesByAxis(e).some((e=>lu(e)===Wa.TYPE.BAR)),d=Number((u?Math.min(n,0):n).toFixed(13)),m=Number((u?Math.max(r,0):r).toFixed(13)),p=Number((u?Math.min(s.min,0):s.min).toFixed(13)),f=Number((u?Math.max(s.max,0):s.max).toFixed(13)),h=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));i.implicit.min=Number.isFinite(d)?d:0,i.implicit.max=Number.isFinite(m)?m:0,i.implicit.bar.min=Number.isFinite(p)?p:0,i.implicit.bar.max=Number.isFinite(f)?f:0,i.implicit.line.min=Number.isFinite(h)?h:0,i.implicit.line.max=Number.isFinite(g)?g:0,i.implicit.marker.min=Number.isFinite(y)?y:0,i.implicit.marker.max=Number.isFinite(v)?v:0,i.min=Number.isNaN(i.explicit.min)?i.implicit.min:i.explicit.min,i.max=Number.isNaN(i.explicit.max)?i.implicit.max:i.explicit.max,i.meta.hasExplicitMin&&!i.meta.hasExplicitMax&&(i.max=Math.max(i.min,i.max)),i.meta.hasExplicitMax&&!i.meta.hasExplicitMin&&(i.min=Math.min(i.min,i.max)),i.meta.includesZero=!!((0-i.min)*(0-i.max)<=0)}))}}}}function pP({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 fP({min:e,max:t,count:n,threshold:r,disable:o}){const i=function(e,t,n){const r=yr().domain([e,t]);return r.nice(n),r}(e,t,n),a={start:!0,stop:!0};if(!a.start||!a.stop){const[e,t]=i.domain(),r=i.ticks(n),o=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;i.domain([a.start?e:e-o,a.stop?t:t+s]),i.nice(n)}return i}const hP=50,gP=100,yP=200,vP=125;function bP({config:{measureAxesRef:e},layoutService:t,size:n}){const r=(e=>{switch(e){case.5:return hP;case 1:return gP;case 2:return yP;default:return e*vP}})(t.getLayoutValue(`${e}.spacing`,1));return Math.max(1,Math.round(n/r))}function xP({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:i,min:a,max:s}){const l=bP({config:e,layoutService:n,size:i}),c=fP({min:a,max:s,count:l,threshold:.05,disable:!0}),u=c.domain(),d={roundedMin:u[0],roundedMax:u[1],ticks:c.ticks(l)},m="horizontal"===r.meta.major.orientation?"height":"width",p=e=>o(e)[m],f=t.formatter(e.formatter),h=()=>{const e=d.ticks.map(f),t=e.some(((t,n)=>e.indexOf(t)!==n));return!t&&(e=>{const t=i/d.ticks.length;return Math.max(...e.map(p))<=t})(e)};for(let e=l-1;e>0&&!h();e--)c.domain([a,s]),c.nice(e),[d.roundedMin,d.roundedMax]=c.domain(),d.ticks=c.ticks(e);return d}function SP({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function EP({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}function MP({config:e,chart:t,extrema:n,min:r,max:o}){const i={roundedMin:0,roundedMax:0,ticks:[]},a=fP({min:r,max:o,count:10,threshold:.15,disable:!0});[i.roundedMin,i.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?SP:EP;i.ticks=s.filter(((e,t,n)=>c({tick:e,index:t,ticks:n})));i.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(i.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const u=t.formatter(e.formatter),d=i.ticks.map(u),m=d.some(((e,t)=>d.indexOf(e)!==t));return m&&(i.ticks=[i.ticks[0],i.ticks[i.ticks.length-1]]),i}function CP({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 wP({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l}){const{ticks:c,roundedMin:u,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,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=xP({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:a,min:s,max:l});return pP({extrema:o,ticks:c.ticks})?c:MP({config:e,chart:t,extrema:o,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l}),m=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const o=e[r],i=(e[r+1]-o)/(t+1);for(let e=1;e<=t;e++)n.push(o+i*e)}return n}({ticks:c,count:1}),p=[...CP({ticks:c,extrema:o}).map((e=>({value:e,isMinor:!1}))),...m.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value));return{min:u,max:d,values:p}}function OP({config:e,chart:t,layoutService:n,dockService:r,measureText:o,extrema:i,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:i});return wP({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l})}function TP({config:e,chart:t,layoutService:n,extremumModel:r,dockService:o,seriesModel:i,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,c=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:o,seriesModel:i,themeService:a}){const{measureText:s}=F.renderer("svg")();return()=>{const l=a.getStyles(),c=function({dockService:e,seriesModel:t,chart:n}){var r;const o=n.component(t.meta.seriesComponentKeys[0]),i=null!==(r=null==o?void 0:o.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?i.height:i.width}({chart:e,dockService:n,seriesModel:i}),u=r.query.getExtrema();return OP({config:t,chart:e,layoutService:o,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:u,size:c})}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:o,seriesModel:i,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 kP({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return we.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 RP({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:o,fieldType:i}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===o?"measure"===i?()=>({type:Wa.TYPE.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===Wa.TYPE.LINE?2:t!==Wa.TYPE.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==Wa.TYPE.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function AP({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function NP({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:o,genericObjectModel:i,layoutService:a,picasso:s,seriesModel:l,viewState:c,styleModel:u}){let d;const{theme:m,translator:p}=o,f={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=T({picasso:s,model:i,app:n,translator:p,layoutService:a,createConfig:()=>{const e=a.getHyperCubeValue("qMeasureInfo").map((e=>e.color));return{theme:m,colorProps:{measureOverrides:e},legendProps:a.getLayoutValue("legend"),hc:a.getHyperCube(),key:Ya.SCALE.COLOR}},config:{auto:AP,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>f.wrappedScales,legendComponents:()=>f.legendComponents,legendInteractions:()=>f.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:i}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:o,colorService:i,actions:a,styleModel:s}){const{options:l}=o,c={eventName:"legend-c",key:Ya.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:RP({layoutService:n,seriesModel:r,colorService:i})},{components:u,interactions:d}=i.getLegend(c,{actions:a,navigationDisabled:!a.interact.enabled()}),m=i.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=m[`${Ya.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:m}}({viewState:c,chart:r,environment:o,colorService:d,seriesModel:l,layoutService:a,actions:e,styleModel:u});f.wrappedScales=i,f.legendComponents=t,f.legendInteractions=n}}}),d}const LP="REJECTED",IP=()=>{},PP=2,DP=20,qP=200,zP=10;var $P={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)),o=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,o-e.qArea.qTop),s=Math.min(o+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,i-e.qArea.qLeft),c=Math.min(i+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:o,qLeft:i},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-zP<=t.qTop,o=n.qLeft+n.qWidth+zP>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+zP>=t.qTop+t.qHeight,a=n.qLeft-zP<=t.qLeft;return r&&t.qTop>0||o&&t.qLeft+t.qWidth<e.width||i&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var FP={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),o=Math.max(t.qLeft,e.qArea.qLeft),i=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-i),l={qArea:{qHeight:a-i,qWidth:e.qArea.qWidth,qTop:r,qLeft:o},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=i;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-zP<=t.qTop,o=n.qTop+n.qHeight+zP>=t.qTop+t.qHeight;return r&&t.qTop>0||o&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var jP={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 _P="pages";const BP="discretePan";function HP({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:BP,pointers:1,threshold:10,enable(r,o){return this.started===BP||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{[`${BP}start`](e){e.preventDefault(),this.started=BP;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},[`${BP}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&o?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,i.scroll(s)},[`${BP}end`](e){e.preventDefault(),this.started=!1},[`${BP}cancel`](e){e.preventDefault(),this.started=!1}}}}function VP({chart:e,componentKey:t,actions:n,scroller:r}){return function(o){if(!n.scroll.enabled()||!r.enabled())return;const[i]=e.componentsFromPoint({x:o.clientX,y:o.clientY}).filter((e=>e.key===t));if(!i)return;o.preventDefault();const a=Math.abs(o.deltaY)>Math.abs(o.deltaX)?o.deltaY:o.deltaX,s=100*Math.sign(-a);r.scroll(s)}}function UP({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(qP,n));return{width:e,height:Math.max(DP,Math.min(n*PP,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:o}=t({width:e.qWidth,height:e.qHeight}),i=o?Math.ceil((o-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:o?Math.min(o,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:o?Math.max(0,Math.min(e.qTop-i,n.height-o)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function YP(e){let t,n;const r=o=>{t=o;const{method:i,args:a}=t.request;e[i](...a).then((e=>{if(t.canceled||n)return t.reject(LP),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},o=e=>new Promise(((o,i)=>{const a={request:e,resolve:o,reject:i,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(LP),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(LP),n=null)},o}const WP={command:{update:()=>{}}};function GP({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:o=WP,definitionPath:i,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,u=function({dataStore:e,slice:t,warden:n,expand:r,request:o,process:i,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 o=n.release(r.qArea,l),s=i.isProcessing();if(!o&&s&&i.cancel(),!o||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());i.isProcessing()&&c&&c();const u=r(l);return i(o(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:UP({layoutService:r}),request:c({definitionPath:i}),process:YP(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=O(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==LP)throw e}))}),50);return function(e,{onProcessing:t=IP,onDataPage:n=IP}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),o.command.update(),n(e)}})}}var XP={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:o}=t,i=e.getDataPages()[0],a=o/r;return[a,n.inView>=n.inTotal?a+1:a+i.qArea.qWidth/n.inView]}};var KP={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 o=void 0===r?4:r,i=Math.max(0,Math.floor(t)-o/2);return{qTop:i,qHeight:Math.min(e.meta.size.y-i,Math.max(0,Math.ceil(n+o))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:o}=t,i=e.getDataPages()[0],a=r/n.inView,s=(o+i.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+i.qArea.qHeight/n.inView]}};function JP(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function ZP(e,t){const n=[];for(let r=0;r<e.length;r++){const o=t(e[r]);-1===n.indexOf(o)&&n.push(o)}return n.length}function QP(e){return ZP(e.qMatrix,(e=>e[0].qElemNumber))-1}var eD={inTotal:function({layoutService:e}){const t=JP(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=JP(e),i=void 0===r?o:r,a=t/(o+1),s=Math.max(0,Math.floor((t-a-i/2)/o));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+i)/o+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const o=JP(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=QP(i),c=i.qArea.qHeight*o+l,u=(s+(i.qArea.qTop*o+i.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const tD=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function nD(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return tD(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const o=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const i=e[t][0].qElemNumber;-1===o.indexOf(i)&&(o.push(i),r--)}return n.count=o.length-1,n})(t.qMatrix,n);return r.successful?r.count:tD(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return tD(e,n);return ZP(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var rD={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 o=nD(t).itemOffset(e(),n),i=Math.max(0,Math.floor(n-o));return{qTop:i,qHeight:Math.min(t.meta.size.y-i,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:o,upperBound:i}){const a=t.getDataPages()[0],s=o/r.inView,{item:l,pixel:c}=n,u=nD(t).area(e(),l,a.qArea),d=QP(a),m=a.qArea.qHeight+d,p=c===i?(r.inView-m)*s/o:(c+(a.qArea.qTop+u)*s)/o;return[p,r.inView>=r.inTotal?p+1:p+m/r.inView]}};function oD({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:o,renderer:i,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:m,LABELLESS:p}=r[n.meta.chart.mode],f="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:y}=s,v=f?t.width:t.height,b=v/l>=m;switch(h){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/p:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:o,itemSize:i,label:a}){if(o||"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:m}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return m>i;const p=(90-d)*(Math.PI/180);return m>Math.cos(p)*i}({chart:e,isHorizontal:f,axisKey:o,renderer:i,isGrouped:a,itemSize:m,label:y})?v/d:l:v/d}}function iD({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:o,getItemWidths:i,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:m}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?XP:n?r?eD:rD:KP}({layoutService:r}),p=()=>"horizontal"===o.meta.major.orientation?t().width:t().height,f=e=>e?p()/e:0,h=(e,t)=>-(e-t)*f(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:oD({chart:e,rect:t(),dockService:o,itemWidths:i(),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 f(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,o=Math.min(0,Math.max(e,h(n,r))),i=r?Math.abs(r*o/p()):0;return{start:{pixel:o,item:i},end:{item:Math.min(i+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return h(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const o=e/n*t,i=Math.abs(r)/o;return[i,Math.min(1,i+e/o)]}({viewSize:p(),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 i=m({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:p(),upperBound:h(t.inTotal,t.inView)});return"horizontal"===o.meta.major.orientation&&c?function(e){return[1-e[1],1-e[0]]}(i):i},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=h(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*f(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(f(r)*n)}}}}function aD({chart:e,componentKey:t,state:n,dataStore:r,pageData:o,layoutService:i,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:m,rtl:p}){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 f=iD({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:i,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:p}),h=()=>{const e=f.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=f.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=h(),a=g({pixelOffset:e,items:r}),s=f.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=i.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((f.validate.offset({pixelOffset:e,items:r})||m.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:a.start,items:r})),m.preventSet("viewRange",f.getViewRange({pixelOffset:a.start.pixel,items:r})),m.set("scrollOffset",{start:a.start.item,end:a.end.item})));m.preventSet("viewRange",f.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:a.start,items:r})),m.set("scrollOffset",{start:a.start.item,end:a.end.item}))};o(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=h();n.set("itemSize",f.getItemSize({items:a}));const c=(({items:e})=>{const t=i.getLayoutValue("scrollStartPos"),n=m.get("scrollOffset");if(void 0===n)return 1===t?f.getUpperBound({items:e}):0;if("number"==typeof n)return f.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:o}=n,a=1===t&&o?o-e.inView:r;return f.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),u=g({pixelOffset:c,items:a});m.preventSet("viewRange",f.getViewRange({pixelOffset:u.start.pixel,items:a}));const d=f.getArea({itemOffset:u.start.item,items:a});return new Promise((e=>{o(d,{onDataPage:()=>{n.set("scaleRange",f.getScaleRange({offsets:u.start,items:a})),m.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=f.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function sD({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:o,dockService:i,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:u="/qHyperCubeDef",getRect:d,axisKey:m,renderer:p,areaBuffer:f,processDataPage:h=()=>{}}={}}){const g=C(),y=function({qMode:e}){switch(e){case"K":return FP;case"T":return jP;default:return $P}}({qMode:o.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(_P,[]),{add:t=>{const n=e.get(_P);n.length=0,n.push(t)},getCurrent:()=>e.get(_P)[0],getAll:()=>e.get(_P),contains:n=>t(e.get(_P)[0],n)}}({state:g,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const o=n.patcher({layoutService:e});o.should(r)&&o(r),t.add(r)}({layoutService:o,dataStore:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:f}),x=GP({dataStore:v,composition:y,enigmaModel:r,layoutService:o,trendLineModel:a,definitionPath:u,processDataPage:h}),S=aD({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:o,dockService:i,itemWidths:s,getRect:d,axisKey:m,renderer:p,areaBuffer:b,viewState:l,rtl:c}),M=function({layoutService:e,dataStore:t}){return function(n){const r=E(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:o,dataStore:v}),w=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{gestures:[HP({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:VP({chart:e,actions:t,componentKey:n,scroller:i})}}}}({chart:e,actions:t,componentKey:n,dockService:i,rtl:c,scroller:S});return{interactions:w,query:{getCanScroll:()=>S.enabled(),getItemSize:()=>S.itemSize(),getScaleRange:()=>S.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>S.initialize(),scrollTo:e=>S.scrollToRelative(e),setSnapshotData:e=>M(e)}}}var lD={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 cD({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 uD({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:o,LINE:i,POINT:a}=Bl,s=n.getStyles(),l=cD({layoutService:e,key:"bar"}),c=cD({layoutService:e,key:"line"}),u=()=>{const e=l({property:"strokeWidth",defaultValue:"none"});return e?o.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:o.STROKE.COLOR}}).color,label:{getStyle:()=>{var e,t,n,r,o,i,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!==(o=null===(i=d("bar"))||void 0===i||null===(i=i.bar)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontSize)&&void 0!==o?o: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:i.CURVE.LINEAR}),getStrokeWidthFn:()=>()=>c({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?i.WIDTH.FULL.DEFAULT:i.WIDTH.LESS.DEFAULT}),getStrokeDasharrayFn:()=>()=>{const e=c({property:"lineType",defaultValue:i.TYPE.SOLID});return e&&i.TYPE[e.toUpperCase()]}},point:{getSize:()=>c({property:"dataPointSize",defaultValue:a.SIZE.DEFAULT}),label:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("line"))||void 0===i||null===(i=i.line)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontFamily)&&void 0!==o?o:s.label.value.fontFamily}}}},marker:{label:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("marker"))||void 0===i||null===(i=i.marker)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontFamily)&&void 0!==o?o:s.label.value.fontFamily}}}},axis:{title:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.title)||void 0===i||null===(i=i.color)||void 0===i?void 0:i.color)&&void 0!==o?o:s.axis.title.color}}},label:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.fontFamily)&&void 0!==o?o:s.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.title)||void 0===i||null===(i=i.color)||void 0===i?void 0:i.color)&&void 0!==o?o:s.legend.title.color}}},label:{getStyle:()=>{var e,t,n,r,o,i;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!==(o=null===(i=d("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.color)||void 0===i?void 0:i.color)&&void 0!==o?o:s.legend.label.color}}}}}}}function dD({layoutService:e}){return k({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0}}})}function mD({dataset:e,data:t,valueData:n}){var r;const{source:o,label:i,value:a}=n,s=e(o.key).field(o.field);return Se.shouldUseFormat(s.raw())?"-"===i||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):i}function pD({chart:e,actions:t,translator:n,rtl:r,dockService:o,seriesModel:i,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,m=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:p}=Ya.COMPONENT,{PRIMARY:f,SECONDARY:h}=Wa.AXIS,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:o,SLICED_HAT:i}=Ya.COMPONENT,{PRIMARY:a,SECONDARY:s}=Wa.AXIS,{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:m}=l,p=m===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${i}-max-${a}`||e.key===`${i}-max-${s}`)&&e.data&&e.data.value===p&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const f=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===`${o}-max`)&&e.data.major.value===p));if(c&&f)return{key:f.key,bounds:f.bounds};const h=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===`${o}-min`)&&e.data.major.value===p)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===p));if(c&&h&&!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=h.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=h.data.source)||void 0===n?void 0:n.field)})))return{key:h.key,bounds:h.bounds};const y=f||h;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:o,seriesModel:i});return R({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:Ya.COMPONENT.TOOLTIP,getGroupByValue:d,collectibles:[...i.meta.barComponentKeys.map((e=>({key:e,type:"bar",major:d}))),...i.meta.pointComponentKeys.map((e=>({key:e,type:"point",major:d}))),...i.meta.markers.map((e=>({key:e.key,type:e.type,major:d})))],triggers:[{keys:[Ya.COMPONENT.AXIS.MAJOR],collect:{from:"dimension",by:({data:e})=>e.value,filter:m},placement:g},{keys:[...i.meta.barComponentKeys,...i.meta.markerComponentKeys,`${p}-max-${f}`,`${p}-max-${h}`,`${p}-min-${f}`,`${p}-min-${h}`,`${Ya.COMPONENT.BAR_OOB}-max-${f}`,`${Ya.COMPONENT.BAR_OOB}-max-${h}`,`${Ya.COMPONENT.BAR_OOB}-min-${f}`,`${Ya.COMPONENT.BAR_OOB}-min-${h}`,`${Ya.COMPONENT.DATA_OOB_MARKER}-max`,`${Ya.COMPONENT.DATA_OOB_MARKER}-min`],collect:{from:"dimension",by:d,filter:m},placement:g},{keys:[...i.meta.pointComponentKeys],distance:3,collect:{from:"dimension",by:d,filter:m},placement:g}],section:({h:e,nodes:t,dataset:n,create:r,util:o})=>{const[i]=t,{title:a,description:s,measures:l}=c.isEnabled()?c.getAttributes({dataset:n,nodes:[i]}):{},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:i.data.label,style:{bold:!0}})),d||(u.push(r.color({nodes:t,property:Ya.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:i}=e.data,a=t||i,{key:s,field:l}=a.source;return r.measure({label:o.dataset.title(s,l),value:mD({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:m}=i.data;return c.isEnabled()&&m&&u.push(...m.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:Ya.COMPONENT.LEGEND_TOOLTIP,component:Ya.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:fD}=Kd,hD=({picasso:e,chart:t,environment:m,flags:p,viewState:f,viewCache:h,actions:g,selectionService:y})=>{var v;const b=s(),{width:x,height:S}=o(),[M,C]=n(),[w,O]=n(),T=a(),k=l(),R=c(),D=u(),q=d(),z=TN({enable:!1===(null==M||null===(v=M.layoutService)||void 0===v||null===(v=v.meta)||void 0===v?void 0:v.isSnapshot)});r((()=>{if(!(b&&null!=t&&t.update&&m&&f&&y))return;const n=A({source:b,metaAdditionsFn:function({layout:e}){var t;const n=E(e,"qHyperCube.qMeasureInfo",[]),r=n.some((({series:e=Wa.NOPE_SERIES})=>lu(e)===Wa.TYPE.LINE)),o=we.continuous(e,(()=>r&&ve.isTime(!0,e))),i=!oP(E(e,"version","")),a=n.filter((({series:e=Wa.NOPE_SERIES})=>lu(e)===Wa.TYPE.BAR)),s=a.length,l=a.filter((({series:e=Wa.NOPE_SERIES})=>e.axis!==Wa.AXIS.SECONDARY)).length,c=a.filter((({series:e=Wa.NOPE_SERIES})=>e.axis===Wa.AXIS.SECONDARY)).length,u=i?l>1||c>1:s>1,d=("grouped"!==E(e,"barGrouping.grouping")||o)&&u,m=!d&&s>1,p=i&&d&&(l>0&&c>1||l>1&&c>0),f=!(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:ve.canBeContinuous(e),isDiscrete:!o,isContinuous:o,isTime:ve.isTime(o,e),isSnapshot:we.snapshot(e),isBarSeriesStacked:d,isBarSeriesGrouped:m,isBarSeriesStackedInBothAxis:p,isGrouped:m||p,isGroupedByMeasure:m||p,isDimensionLocked:f,groupSize:p?2:s,hasLineSeries:r}}}),{options:r,translator:o}=m,{direction:i}=r,a="rtl"===i,s=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=lP({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:T,layoutService:n}),l=N({app:k,translator:o}),c=L({chart:t,layoutService:n,config:{logicalSize:{width:x,height:S},rtl:a},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),u=iP({layoutService:n}),d=n.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:o,viewState:i,rtl:a,actions:s,picasso:l}){return sD({chart:e,actions:s,componentKey:Jd(o),enigmaModel:t,layoutService:n,dockService:r,viewState:i,rtl:a,itemWidths:lD,options:{axisKey:Ya.COMPONENT.AXIS.MAJOR,renderer:l.renderer("svg")()}})}({chart:t,genericObjectModel:T,layoutService:n,dockService:c,seriesModel:u,viewState:f,rtl:"rtl"===m.options.direction,actions:g,picasso:e}):void 0,v=n.meta.isContinuous?fD({model:T,layoutService:n,viewState:f,viewCache:h}):void 0,M=I({theme:m.theme,config:{id:"comboChart"}}),w=uD({layoutService:n,dockService:c,themeService:M,flags:p}),O=NP({actions:g,appLayoutModel:R,appModel:k,chart:t,environment:m,genericObjectModel:T,layoutService:n,picasso:e,seriesModel:u,viewState:f,styleModel:w}),z=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",o=`${r}:numeric`,i=n?[{key:o,from:r,override:{value:e=>e.qNum}}]:void 0;return{main:{major:r,majorNumeric:o,minorsPrimary:t.meta.primarySeries.map((e=>e.ref)),minorsSecondary:t.meta.secondarySeries.map((e=>e.ref))},virtuals:i}}({layoutService:n,seriesModel:u}),$=mP({isPrimary:!0,layoutService:n,reducedModel:s,seriesModel:u,continuousModel:v}),F=mP({isPrimary:!1,layoutService:n,reducedModel:s,seriesModel:u,continuousModel:v}),j=dD({layoutService:n}),_=TP({config:{measureAxesRef:"measureAxes.0",formatter:Ya.FORMATTER.PRIMARY},chart:t,layoutService:n,extremumModel:$,dockService:c,seriesModel:u,themeService:M}),B=TP({config:{measureAxesRef:"measureAxes.1",formatter:Ya.FORMATTER.SECONDARY},chart:t,layoutService:n,extremumModel:F,dockService:c,seriesModel:u,themeService:M}),H=kP({genericObjectModel:T,layoutService:n}),V=ps({flags:p,layout:b,app:k,model:T,picasso:e,chart:t,translator:o,localeInfo:R.qLocaleInfo,embed:q,options:r}),U=pD({chart:t,actions:g,translator:o,rtl:a,dockService:c,seriesModel:u,colorService:O,themeService:M,propertiesModel:H,custom:V}),Y=Va({layoutService:n,discreteModel:d}),W=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:Ya.SCALE.MAJOR,MAJOR_INNER:Ya.SCALE.MAJOR_INNER,MINOR:{PRIMARY:Ya.SCALE.MINOR.PRIMARY,SECONDARY:Ya.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${Ya.COMPONENT.BAR}-${Wa.AXIS.PRIMARY}`,BAR_SECONDARY:`${Ya.COMPONENT.BAR}-${Wa.AXIS.SECONDARY}`,AXIS:{MAJOR:Ya.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:Ya.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:Ya.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:Ya.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:Ya.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:Ya.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:Ya.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:Ya.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:Ya.COLLECTION.MAIN}}}}(n),G=P({picassoInstance:e,plugins:D,pluginArgs:W}),X=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||Pa.propertiesHaveChanged({viewCache:t,layout:n.getLayout()})),meta:r}}({options:r,viewCache:h,layoutService:n});C({alternativeService:l,selectionService:y,genericObjectModel:T,appModel:k,dockService:c,styleModel:w,layoutService:n,fieldModel:z,seriesModel:u,reducedModel:s,primaryExtremumModel:$,secondaryExtremumModel:F,primaryTickModel:_,secondaryTickModel:B,propertiesModel:H,colorService:O,themeService:M,appLayoutModel:R,tooltipService:U,disclaimerService:j,flags:p,...d&&{discreteModel:d},...v&&{continuousModel:v},refLineModel:Y,pluginService:G,animationsModel:X})}),[b,T,k,R,m,null==t?void 0:t.update,f,y]);const[,$]=i((()=>{if(!M)return Promise.resolve();const{alternativeService:e,layoutService:t,colorService:n,reducedModel:r,primaryExtremumModel:o,secondaryExtremumModel:i,propertiesModel:a,continuousModel:s,discreteModel:l,pluginService:c,disclaimerService:u}=M,d=s?()=>{var e;s.update(t.getLayout());const n=s.initialFetch(),r=!t.meta.isSnapshot&&(null==m||null===(e=m.options)||void 0===e||null===(e=e.viewState)||void 0===e?void 0:e.zoom);return r&&f.preventSet("zoom",r),n}:()=>Promise.resolve(),p=n.initialize().then((()=>{const e=n.getSettings().field;y&&y.setBrushAliases({colorField:e}),n.custom.updateLegend()}));return Promise.all([c.initialize(),r.command.initialize(),T?a.command.initialize():Promise.resolve(),p,d(),g.scroll.attachDiscreteModel(l)]).then((()=>Promise.all([o.command.initialize(),i.command.initialize()]).then((async()=>{await e.initialize({properties:a.query.getProperties()||{}}),u.initialize(),O({...M})}))))}),[M,z]);if($)throw $;return w};const gD={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 yD={query:{getCanScroll:()=>!0}};function vD({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function bD({setSelectionInfo:e,event:t,components:n,clear:r}){const o=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:o,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&o[0]===Ya.COMPONENT.LEGEND_CATEGORICAL}),r()}function xD({chart:e,actions:t}){const o=b(),i=s(),[a,l]=n();return r((()=>{if(null==e||!e.update||!e.scale)return null;const n=e.scale(Ya.SCALE.MAJOR),r=q({chart:e,actions:t,selections:o,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:n,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:vD},selectionEvents:{start:bD}}});r.setLayout(i);const{destroy:a}=r;return l(r),()=>{a()}}),[o,null==e?void 0:e.update,null==e?void 0:e.scale]),r((()=>{null!=a&&a.setLayout&&i&&a.setLayout(i)}),[i]),a}const SD={version:"1.32.3",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 ED=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let o;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)o=lu(n[e].qDef.series),o===Wa.TYPE.BAR?r[0]=1:o===Wa.TYPE.LINE?r[1]=1:r[2]=1;const i=["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(i)},MD=e=>(t,n)=>{let r;const o=t.qHyperCubeDef.qMeasures[n];if(o){const{type:e}=o.qDef.series;r=e===Wa.TYPE.LINE?"Visualizations.Descriptions.HeightLine":e===Wa.TYPE.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function CD(e){var t,n;const r=e.qHyperCubeDef.qMeasures,o=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===o&&1===r.length&&lu(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===Wa.TYPE.LINE?e.color.mode="primary":"byDimension"===o&&r.length>1&&(e.color.mode="byMultiple")}function wD(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:ED(t),added(e,t){ss.addCallbackCustomTooltip(t)},moved(e,t){ss.moveCallbackCustomTooltip(t,e)},removed(e,t){ss.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){ss.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:MD(t),added({qDef:e},t){var n;CD(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:Wa.TYPE.LINE,axis:Wa.AXIS.SECONDARY}:e.series={type:Wa.TYPE.BAR,axis:Wa.AXIS.PRIMARY})},moved(e,t){CD(t)}}}}function OD(e){const t=wD(e);return{properties:SD,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const o=Q.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),i="linechart"===e.properties.visualization,a=[];o.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:i?"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 o.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&me(!0,o.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),o},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>Q.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}const TD=({models:e,chart:t,viewState:n})=>{x((r=>{if(!e)return;const{layoutService:o,dockService:i,colorService:a,discreteModel:s,continuousModel:l,reducedModel:c}=e,{width:u,height:d}=i.meta.chart.size;return r.snapshotData=r.snapshotData||{},r.snapshotData.content={size:{w:u,h:d}},o.meta.isSnapshot?Promise.resolve():(r.snapshotData.content.chartData={scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Oe(t,Ya.COMPONENT.LEGEND_CATEGORICAL)},o.meta.isDiscrete?(s.command.setSnapshotData(r),c.command.setSnapshotData(r)):l.setSnapshotData(r),a.getSnapshotData().then((e=>{r.snapshotData.content.chartData={...r.snapshotData.content.chartData,...e}})).catch((()=>{})))})),S((()=>({getViewState(){if(n&&t)return{scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Oe(t,Ya.COMPONENT.LEGEND_CATEGORICAL)}}})),[n,t])};const kD=e=>{const t=E(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=Wa.NOPE_SERIES})=>lu(e)===Wa.TYPE.LINE));return we.continuous(e,(()=>t&&ve.isTime(!0,e)))},RD=(e,t,n)=>{let r;const o=n||0;var i,a;"function"==typeof(null==e?void 0:e.getMeasureLayouts)?r=e.getMeasureLayouts():r=null!==(i=null===(a=t.layout)||void 0===a||null===(a=a.qHyperCube)||void 0===a?void 0:a.qMeasureInfo)&&void 0!==i?i:[];return r.filter((e=>{const{series:t}=e||{};return 0===o?LN(t,!0):!LN(t,!0)}))},AD=(e,t)=>{const n=RD(e,t,0).filter((e=>e.series.type===Wa.TYPE.BAR)),r=RD(e,t,1).filter((e=>e.series.type===Wa.TYPE.BAR)),o="stacked"===E(t.layout,"barGrouping.grouping");return!we.continuous(t.layout)&&o&&(n.length>1||r.length>1)},ND=(e,t,n,r,o=void 0)=>{const i=`${t}.fontFamily`,a=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(i),defaultValue:()=>n.getDefaultValue(i)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(a),defaultValue:()=>null!=o?o:n.getDefaultValue(a)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function LD(e,t,n){const r=z({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)=>!kD(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:{...ND("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:ND("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:ND("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:ND("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:ND("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:ND("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:ND("legend.label","legend.label",r,t)}}}:void 0}}}const ID={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)=>!kD(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 PD(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function DD(e){var t,n;return PD(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 qD(e){var t;return PD(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function zD(e){var t,n,r,o,i;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!==(o=null==e||null===(i=e.color)||void 0===i?void 0:i.expressionLabel)&&void 0!==o?o:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function $D(e){return qD(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function FD(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?[...zD(n),...$D(e)]:$D(e)}(t,n,e)))}function jD(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||kD(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 lu(null===(t=e.qDef)||void 0===t?void 0:t.series)===Wa.TYPE.MARKER}},o={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return lu(null===(t=e.qDef)||void 0===t?void 0:t.series)===Wa.TYPE.MARKER&&!["line"].includes(e.qDef.series.marker)}},i={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)=>PD(...e)},a=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme;return{items:{series:{type:"items",items:{supPanel:{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:o}},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:i,paletteColor:{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:DD},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:qD}}}}}}}}}}}}const _D=10,BD=!0;function HD(e){return e.qHyperCube.qMeasureInfo.filter((e=>lu(e.series)===Wa.TYPE.LINE)).length>0}function VD(e,t){const n=e.qHyperCube.qMeasureInfo.filter((e=>lu(e.series)===Wa.TYPE.BAR));return n.filter((e=>e.series.axis!==Wa.AXIS.SECONDARY)).length>t||n.filter((e=>e.series.axis===Wa.AXIS.SECONDARY)).length>t}function UD(e){return e.qHyperCube.qMeasureInfo.filter((e=>lu(e.series)===Wa.TYPE.MARKER)).length>0}const YD=(e,t,n,r)=>{const o="vertical"===e.layout.orientation||kD(e.layout)?"y":"x",i=RD(e,t,r).map((e=>e.qFallbackTitle));let a;return a=i.length?n.get(`properties.${o}AxisWithInfo`,[i.join(",")]):n.get(`properties.${o}Axis`),a};function WD(e){var t,n,r;const{translator:o,flags:i,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=>FD(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>PD(e)))}}},u=e=>e.qHyperCubeDef.qMeasures.some((e=>PD(e))),d=(e,t)=>0!==e.filter((e=>e.series.axis===t)).length,m={items:{disclaimer:{show:(e,t)=>u(e),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;E(t=e,"qDef.color.on",void 0)&&M(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!u(e)}}},p={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&&VD(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&&HD(n.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,o){o.dataPoint.showLineLabels=e,o.dataPoint.show=e}},reset(e){M(e,"dataPoint.show",!1),M(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,o){o.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t,n)=>o.get(RD(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&&RD(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,o){o.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&&RD(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,o){o.measureAxes[1].show=e?"labels":"all"}}}}}}},f={uses:"settings",items:{simpleStyling:ID,simpleLabels:p,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:LD(i,s,o),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)=>VD(n.layout,1)&&!kD(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)=>kD(n.layout),convertFunctions:(h="vertical",{get:(e,t,n)=>kD(n.layout)?h:e(t.type),set(e,t,n,r){t(n.type,kD(r.layout)?h:e,h)}})},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)=>!kD(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)=>HD(n.layout)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint",show:e=>HD(e)},show:(e,t,n)=>HD(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=>VD(e,0)},show:(e,t,n)=>VD(n.layout,0),items:{showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t,n)=>VD(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&&AD(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&&AD(t,n)}}},showMarkerLabels:{ref:"dataPoint.showMarkerLabels",type:"boolean",translation:"properties.dataPoints.markerlabelmode",component:"switch",snapshot:{tid:"property-markerLabels",show:e=>UD(e)},show:(e,t,n)=>UD(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=[],o=n.layout.qHyperCube.qMeasureInfo,i=d(o,0),a=d(o,1);return i&&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 o;const i=null!==(o=r.gridLine.axis)&&void 0!==o?o:0,a=n.layout.qHyperCube.qMeasureInfo,s=d(a,0),l=d(a,1);return 0===i&&!s&&l?(M(r,"gridLine.axis",1),1):1===i&&s&&!l?(M(r,"gridLine.axis",0),0):i}}},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:m,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||kD(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 i;return i=r?o.get(`properties.${n}AxisWithInfo`,[r]):o.get(`properties.${n}Axis`),i},items:{othersGroup:{items:{dock:{options(e,t){let n="Common.Bottom",r="Common.Top";return"vertical"===t.layout.orientation||kD(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)=>!kD(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:_D,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=_D: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)=>YD(t,n,o,0),show:(e,t,n)=>RD(t,n,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>YD(t,n,o,0),show:(e,t,n)=>RD(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)&&LN(null==e?void 0:e.series,BD)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t,n)=>"none"!==e.measureAxes[0].show&&RD(t,n,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||kD(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&&RD(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)=>RD(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:o,minMax:i,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===o?"lowest":o||"min"!==i||0!==a?e(t.type):"zero"},set(e,t,n,r,o){"zero"===e?(M(o,"measureAxes.0.autoMinMax",!1),M(o,"measureAxes.0.minMax","min"),M(o,"measureAxes.0.min",0)):M(o,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t,n)=>YD(t,n,o,1),show:(e,t,n)=>RD(t,n,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>YD(t,n,o,1),show:(e,t,n)=>RD(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)&&!LN(null==e?void 0:e.series,BD)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t,n)=>"none"!==e.measureAxes[1].show&&RD(t,n,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||kD(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&&RD(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)=>RD(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:o,minMax:i,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===o?"lowest":o||"min"!==i||0!==a?e(t.type):"zero"},set(e,t,n,r,o){"zero"===e?(M(o,"measureAxes.1.autoMinMax",!1),M(o,"measureAxes.1.minMax","min"),M(o,"measureAxes.1.min",0)):M(o,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var h;i.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(f.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,o;if(null!=a&&null!==(r=a.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"includeZeroValues"))return!1;return!kD(n.layout)}}}},measures:jD(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=>LN(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,BD)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!LN(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,BD)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:g,sorting:{uses:"sortingWithDisclaimer"},addons:y,settings:f}}}function GD(e){return e.qHyperCubeDef.qMeasures.filter((e=>lu(e.qDef.series)===Wa.TYPE.LINE)).length>0}function XD(){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)=>GD(e)||!kD(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=>lu(e.qDef.series)===Wa.TYPE.BAR));return t?n.filter((e=>e.qDef.series.axis===Wa.AXIS.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===Wa.AXIS.SECONDARY)).length>1:n.length>1}(e,!oP(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!kD(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)=>!kD(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=>GD(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>GD(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>PD(e)))}}}}}}const KD={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 JD(e,t,n,r,o){const{axis:i,icon:a,tid:s,translation:l}=KD[o];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=o,t.qDef.series.axis=i,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path",`data.${t.qDef.cId}`)}})}function ZD(e,t,n,r,o){!function(e,t,n){const{item:r}=e,o=["contextMenu.add",r.name];if(n.canAddMeasure()){const i=e.menu.addItem({translation:o,tid:"add-as"});JD(r,i,t,n,"bar"),JD(r,i,t,n,"line"),JD(r,i,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,o),e.ColorBy(n,t,o),r()}function QD(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 eq=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function tq(e){return{definition:WD(e),softDefinition:XD(),support:{snapshot:eq,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:ZD,extendMetrics:QD,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=Q.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:wD(e),defaultPropertyValues:a,hypercubePath:o,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,o=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),o.indexOf(e.qDef.series.axis)<0&&o.push(e.qDef.series.axis)}));const i=o.sort().shift();e.qProperty.measureAxes[i]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&me(!0,e.qProperty.measureAxes[i],n.properties.measureAxis,{logarithmic:!1}),FD(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return Q.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(qt),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(qt)}(e),function(e){return oP(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=Wa.NOPE_SERIES),void 0===t.series.type&&(t.series.type=Wa.NOPE_SERIES.type),void 0===t.series.axis&&(t.series.axis=t.series.type===Wa.TYPE.BAR?Wa.AXIS.PRIMARY:Wa.AXIS.SECONDARY),t.series.type===Wa.TYPE.BAR&&t.series.axis===Wa.AXIS.SECONDARY&&(t.series.axis=Wa.AXIS.PRIMARY)})),e.version=rP.BAR_IN_SECONDARY_AXIS),e}(e))}}}}}}));
|