@nebula.js/sn-bar-chart 1.36.2 → 1.36.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-bar-chart.js +3 -3
- package/dist/sn-bar-chart.systemjs.js +5 -5
- package/package.json +1 -1
- package/sn-bar-chart-ext/dist/sn-bar-chart.js +3 -3
- package/sn-bar-chart-ext/sn-bar-chart.qext +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-bar-chart v1.36.
|
|
2
|
+
* @nebula.js/sn-bar-chart v1.36.3
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules","react","react-dom","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,u,c,d,f,p,m,h,g,y,v,b,x,S,M,C,w,k,T,q,E,L,N,O,D,A,I,R,P,z,j,F,B,_,H,$,V,W,U,K,G,Y,X;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.getValue,i=e.setValue,a=e.debouncer,s=e.throttler,l=e.cache,u=e.storage,c=e.memoize,d=e.selectionService,f=e.colorService,p=e.disclaimerService,m=e.layoutService,h=e.dockService,g=e.themeService,y=e.pluginService,v=e.fontResolver},function(e){b=e.default,x=e,S=e.Children,M=e.isValidElement,C=e.cloneElement,w=e.forwardRef,k=e.useContext},function(e){T=e,q=e.default},function(e){E=e.useTranslator,L=e.useEmbed,N=e.useTheme,O=e.useState,D=e.useDeviceType,A=e.useAppLayout,I=e.useEffect,R=e.useElement,P=e.useOptions,z=e.useLayout,j=e.useAction,F=e.useStaleLayout,B=e.useModel,_=e.useApp,H=e.usePlugins,$=e.useSelections,V=e.useConstraints,W=e.useRect,U=e.usePromise,K=e.onTakeSnapshot,G=e.useImperativeHandle,Y=e.useRenderState},function(e){X=e.default}],execute:function(){e("default",(function(e){const i=function(){const e=t();return e.use(n),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Q(e))};return void e.interaction("hammer",Q(Hammer))}(r)),e.use(function(){return function(e){e.renderer("react",function(){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",q.render(function(e,t){return b.createElement(Vd,{generateClassName:t},b.createElement(lf,{theme:am},e))}(e,sm),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&q.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(q.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}()),e.component("data-title",function(e){function t(e){return!e.isDimension&&he.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}function n(e){return e.isDimension&&he.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.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:r,explicitItemInfos:o,hyperCube:i,hyperCubeDef:a,isDimension:s,minWidth:l,model:u,onChangeToAlternative:c,padding:d,rtl:f,selections:p,skipAttributeExpressions:m,translator:h,supportConditional:g=!1},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!f?"ltr":"rtl",x=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};"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");return n}(y,this.rect),S=a&&a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef,M=S&&S[s?"qDimensions":"qMeasures"]||[],C=o||i[s?"qDimensionInfo":"qMeasureInfo"],w=s?Rs:zs,k=s?Ps:js,T=Boolean(u&&u.colorSupport&&u.modifiers),q=T&&(n(this.settings.settings)||t(this.settings.settings)),E=C.map(((t,n)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:n,a=k(t,i,u,e),v=n===C.length-1,x=Boolean(e)&&s&&"N"!==t.qGrouping,S=T||x?w({column:i,activeInfo:t,altList:M,app:e,dir:f?"rtl":"ltr",dock:im(y),model:u,onChange:c,skipAttributeExpressions:m,translator:h,allowChangeOfAlternatives:T}):void 0;return b.createElement(b.Fragment,{key:t.cId},b.createElement(om,{chartId:null!==(o=null==u?void 0:u.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:S,titleData:a,model:u,translator:h,selections:p,disabled:r(),style:this.style,isDimension:s,padding:d,minWidth:l,hasAlternative:q,supportConditional:g}),!v&&b.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return b.createElement("div",{style:x,dir:v},E)}}}(e.renderer("svg")()))}}()),e.use(vC),e.renderer("react-qcm",aC),e.component("box-sliced-hat",gC),e.component("box-out-of-bounds",dC),e.component("disclaimer",tC),e.component("scrollbar",jg),e.component("scroll-hint",Xi),e.component("reference-line-labels",es),e.component("axis-overlay",Jh.picassoComponents.axisOverlay),e.component("time-axis",Jh.picassoComponents.timeAxis),e.scale("q-time-axis",Jh.picassoScales.time),e}();return{qae:ZC(e),ext:xE(e),component(){const t=function({env:e}){var t;const{flags:n}=e,r=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.isUnsupportedFeature,o=E();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(QC).forEach((t=>{e.add(QC[t])}))}}(e.translator);const i=L(),a=N(),[s,l]=O(),u=D(),c=A(),{qLocaleInfo:d}=c;return I((()=>{l({translator:o,theme:a,embed:i,deviceType:u,localeInfo:d,isUnsupportedFeature:r,flags:n})}),[d,r,o.language(),a.name(),u]),s}({env:e}),{viewState:n,viewCache:r}=function(){const[e]=O((()=>l())),[t]=O((()=>u({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:e,viewState:t}}(),c=function({picasso:e}){const t=R(),n=P(),[r,o]=O();return I((()=>{if(!e)return()=>{};t.style.overflow="hidden";const r=e({renderer:{prio:[(null==n?void 0:n.renderer)||"canvas"]}}).chart({element:t,data:[],settings:{}});o(r);const{destroy:i}=r;return()=>{i()}}),[n.renderer]),r}({picasso:i}),d=function({picasso:e,chart:t,environment:n,viewState:r,viewCache:i}){const a=F(),u=B(),c=_(),d=H(),f=$(),p=P(),[v,b]=O(),[x,S]=O(),[M,C]=O(),w=V(),k=function(){const[e]=O({}),[t]=O({}),n=function(){var e,t;const n=z(),r=E(),o=!(null==n||null===(e=n.qSelectionInfo)||void 0===e||!e.qInSelections),i=!(null==n||null===(t=n.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qIsOneAndOnlyOne),[a,s]=O(!1),[l,u]=O(!1),[c,d]=O({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),f=e=>{u("boolean"==typeof e?e:!l)};return j((()=>(d({key:"lasso",action:f,enabled:()=>a,active:()=>l}),{key:"lasso",label:r.get(l?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:pk,hidden:!a||!o||i,active:l,action:f})),[o,i,l,a,r.language()]),{get:()=>c,setAllows:e=>{s(!!e)}}}(),[r,o]=O();return I((()=>{const r={};r.scroll={key:"scroll",isActive:!0,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled(){const{layoutService:n,discrete:r}=e;return t.allowScroll&&((null==n?void 0:n.meta.isContinuous)||(null==r?void 0:r.query.getCanScroll()))}},r.interact={key:"interact",isEnabled:!0,enabled:()=>t.allowInteract},r.tooltip={key:"tooltip",isActive:!0,isEnabled:!0,action(e){this.isActive=!!e},active(){return this.isActive},enabled:()=>t.allowTooltip},r.select={key:"select",isActive:!1,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled:()=>t.allowSelect},r.lasso=n.get(),Object.keys(r).forEach((e=>mk(r[e]))),o(r)}),[]),I((()=>{r&&n&&(r.lasso={...r.lasso,...n.get()})}),[n]),{get:()=>r,setAllows:e=>{Object.assign(t,e),n.setAllows(null==e?void 0:e.allowSelect)},setContext:t=>{Object.assign(e,t)},destroy:()=>{Object.keys(r).forEach((e=>r[e].removeAllListeners()))}}}();return I((()=>{if(!t)return()=>{};const e=k.get(),n=Sk({chart:t,actions:e,selections:f});return S(e),C(n),()=>{n.destroy(),k.destroy()}}),[t]),I((()=>{if(!w)return;const e={allowScroll:!w.active,allowInteract:!w.active,allowTooltip:!w.passive,allowSelect:!w.select&&!w.active};k.setAllows(e)}),[w]),I((()=>{if(!M||!n)return;const{theme:f,translator:v,localeInfo:S,flags:C,embed:w}=n,{direction:T="ltr"}=p,q=m({source:a,metaAdditionsFn:vk(C),experimental:{filter:!0}});M.setFilteredFields(q.meta.filteredFields);const E=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(q.getLayout())?m({source:q.getLayout()}):void 0,L=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:a,options:p}),N=function({layoutService:e,viewCache:t,options:n}){const r={};return r.fields=function(e){const{meta:t}=e,n={majorGroup:t.isGroupedByDimension?"qDimensionInfo/0":void 0,majorStack:t.isStacked?"qDimensionInfo/0":void 0,major:t.isDimensionless?void 0:"qDimensionInfo/"+(t.dimensionCount-1),majors:e.getHyperCubeValue("qDimensionInfo").map(((e,t)=>`qDimensionInfo/${t}`)),minor:e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>`qMeasureInfo/${t}`))};return n.majorNumeric=`${t.isStackedByDimension?n.majorStack:n.major}:numeric`,n}(e),r.selectionDimensionIdx=Mk(e.getHyperCube()),r.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,r.selectionDimensionProp=e=>void 0===r.selectionDimensionIdx||void 0!==e&&r.selectionDimensionIdx!==e?{}:{selectionDimension:{field:r.selectionDimensionIdx}},r.animations={enabled:()=>!1!==n.chartAnimations&&(!(r.animations.isPartialUpdating||r.animations.isSizeChanging||r.animations.hasSlicedHats)&&!rs.propertiesHaveChanged({viewCache:t,layout:e.getLayout()})),isPartialUpdating:!1,isSizeChanging:!1,hasSlicedHats:!1},r}({layoutService:q,viewCache:i,options:p}),O=h({chart:t,layoutService:q,config:{logicalSize:L,rtl:"rtl"===T},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),D=Tk({layoutService:q}),A=g({theme:f,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),I=Jh.model({model:u,layoutService:q,viewCache:i,viewState:r}),R=function({enigma:e,layoutService:t,viewModel:n,definitionPath:r,reducedHyperCubePath:o},i={}){const a=function(e,t,n="/qHyperCubeDef"){return{fetch(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Se).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,this.settings())},settings(){const e=t.getHyperCubeValue("qDimensionInfo"),r=t.meta.isStacked&&e.length>1?1:0,o=t.getHyperCubeValue("qMeasureInfo");return{path:n,rect:{qTop:0,qLeft:r,qWidth:e.length+o.length+r,qHeight:Math.min(2e3,1e4/(o.length+1))},zoomLevel:-1,filter:"D1"}}}}(e,t,r),s=function(e,t="reducedHyperCube"){return{fetch:()=>Promise.resolve({reducedCube:e.getLayoutValue(t)||e.getHyperCube()})}}(t,o),l=function(e){return{fetch:()=>{const t=e.getHyperCube(),n={...t,qDataPages:t.qDataPages.slice()};return Promise.resolve({reducedCube:n})}}}(t),u=function({layoutService:e}){const{isSnapshot:t,isStackedByDimension:n}=e.meta,r=e=>{e.qDimensionInfo.unshift({key:"dummy-patch-dimension"})};return r.should=e=>t&&n&&1===e.qDimensionInfo.length,r}({layoutService:t}),c={mode:{isReduced:!1}};return{fetch(){if(t.meta.isSnapshot)return s.fetch();if(t.meta.isContinuous)return l.fetch();if(!t.meta.isStacked){if(t.getHyperCubeValue("qSize.qcy",NaN)===t.getHyperCubeValue("qDataPages.0.qArea.qHeight",NaN))return l.fetch()}return a.fetch()},model:()=>c,update(e){var r;u.should(e)&&u(e),c.mode=ie(c.mode,t.meta),c.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,c.mode.isStackedByDimension=c.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),c.mode.isStackedByMeasure=c.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),c.fields={major:c.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:c.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},c.scales={major:gk.SCALE.REDUCED.MAJOR,minor:gk.SCALE.REDUCED.MINOR},c.cube=e,i.qDataPages=e.qDataPages},fetchMinMaxData(){if(i.qDataPages)return Promise.resolve(i.qDataPages);let n=a.settings();const r="K"===t.getHyperCubeValue("qMode")?1:n.rect.qHeight;return n=ie(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=c.cube}}}({enigma:u,layoutService:q,viewModel:N});!function({layoutService:e,viewState:t,viewStateOptions:n={}}){const r=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):n;t.preventSet("scrollOffset",r.scrollOffset),t.preventSet("legendScrollOffset",r.legendScrollOffset||0),r.zoom&&t.preventSet("zoom",r.zoom)}({layoutService:q,viewState:r,viewStateOptions:null==p?void 0:p.viewState});const P=wk({picasso:e,model:u,app:c,translator:v,localeInfo:S,theme:f,continuousDataModel:I,layoutService:q,legendLayoutService:E,reducedDataModel:R}),z=function({layoutService:e,themeService:t,colorService:n}){const r=t.getStyles(),o=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("axis"))||void 0===e||null===(e=e.axis)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.axis.title.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.axis.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.axis.title.color}}},label:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("axis"))||void 0===e||null===(e=e.axis)||void 0===e||null===(e=e.label)||void 0===e?void 0:e.name,l=n.getMain().getPaletteColor;return{fill:null!=s&&null!==(t=s.color)&&void 0!==t&&t.color?l(null==s?void 0:s.color):r.axis.label.name.color,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.axis.label.name.fontSize,fontFamily:null!==(a=null==s?void 0:s.fontFamily)&&void 0!==a?a:r.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.title.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.legend.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.title.color}}},label:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.label,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.label.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.legend.label.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.label.color}}}},label:{getStyle:()=>{var e,t,i,a,s;const l=null===(e=o("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.value,u=n.getMain().getPaletteColor;return{fill:null!=l&&null!==(t=l.color)&&void 0!==t&&t.color?u(null==l?void 0:l.color):r.label.value.color,useContrastColor:null===(i=null==l?void 0:l.useContrastColor)||void 0===i||i,fontSize:null!==(a=null==l?void 0:l.fontSize)&&void 0!==a?a:r.label.value.fontSize,fontFamily:null!==(s=null==l?void 0:l.fontFamily)&&void 0!==s?s:r.label.value.fontFamily}}}}}({layoutService:q,themeService:A,colorService:P}),j=Gw({layoutService:q,viewState:r,colorModel:{settings:()=>P.getMain().getSettings(),resolveUIColor:e=>P.getMain().getPaletteColor(e)},chart:t,env:n,keys:{colorScale:gk.SCALE.MAIN.COLOR},isEnabled:()=>!q.meta.isGroupedByDimension&&(!q.meta.isStackedByDimension||C.isEnabled("TRENDLINES_STACKED_DIM"))&&!q.meta.isDimensionless});_C.attrExpr.updateProperties(u,a);const F=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){const l=e.tooltip&&!e.tooltip.auto;return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:l,utils:AC,miniChartToken:{},embed:s}}({layout:a,app:c,model:u,picasso:e,chart:t,translator:v,localeInfo:S,embed:w,extractDimsAndNode:bk.extractDimsAndNode});let B;q.meta.isDiscrete&&(B=function({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:a,trendLineModel:u,itemWidths:c,viewState:d,rtl:f,options:{definitionPath:p="/qHyperCubeDef",getRect:m,axisKey:h,renderer:g,areaBuffer:y,processDataPage:v=(()=>{})}={}}){const b=l(),x=function({qMode:e}){switch(e){case"S":default:return sw;case"K":return lw;case"T":return uw}}({qMode:i.getHyperCubeValue("qMode")}),S=function({state:e,contains:t}){return e.set(cw,[]),{add:t=>{const n=e.get(cw);n.length=0,n.push(t)},getCurrent:()=>e.get(cw)[0],getAll:()=>e.get(cw),contains:n=>t(e.get(cw)[0],n)}}({state:b,contains:x.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:i,dataStore:S,composition:x});const M=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:y}),C=function({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:o=yw,definitionPath:i,processDataPage:a}){const{slicer:l,cacheWarden:u,request:c}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:o,process:i,connectionless:a,processDataPage:s}){const l=(l,{onProcessing:u}={})=>{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()&&u&&u();const c=r(l);return i(o(c)).then((n=>(s(n),e.add(n),t(n,l))))};return l}({dataStore:e,slice:l,warden:u({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:hw({layoutService:r}),request:c({definitionPath:i}),process:gw(n),connectionless:r.meta.isSnapshot,processDataPage:a}),f=s(((e,{onProcessing:t,onData:n})=>{d(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==ew)throw e}))}),ow);return function(e,{onProcessing:t=tw,onDataPage:n=tw}={}){f(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),o.command.update(),n(e)}})}}({dataStore:S,composition:x,enigmaModel:r,layoutService:i,trendLineModel:u,definitionPath:p,processDataPage:v}),w=function({chart:e,componentKey:t,state:n,dataStore:r,pageData:o,layoutService:i,dockService:a,itemWidths:s,getRect:l,axisKey:u,renderer:c,areaBuffer:d,viewState:f,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 m=function({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:o,getItemWidths:i,axisKey:a,renderer:s,areaBuffer:l,rtl:u}){const{inTotal:c,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;if(t)return vw;if(!n)return bw;return r?Cw:qw}({layoutService:r}),p=()=>"horizontal"===o.meta.major.orientation?t().width:t().height,m=e=>e?p()/e:0,h=(e,t)=>-(e-t)*m(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=c({layoutService:r});return{inTotal:l,inView:Ew({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(nw/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return m(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,a=Math.min(1,i+e/o);return[i,a]}({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=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:p(),upperBound:h(t.inTotal,t.inView)});return"horizontal"===o.meta.major.orientation&&u?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*m(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(m(r)*n)}}}}({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:i,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:u,renderer:c,areaBuffer:d,rtl:p}),h=()=>{const e=m.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=m.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=({items:e})=>{const t=i.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?m.getUpperBound({items:e}):0;if("number"==typeof n)return m.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:o}=n,a=1===t&&o?o-e.inView:r;return m.convert.itemToPixelOffset({itemOffset:a,items:e})},v=e=>{const[{qArea:t}]=i.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))},b=e=>{const t=Date.now(),r=h(),i=g({pixelOffset:e,items:r}),a=m.getArea({itemOffset:i.start.item,items:r});if(v(a))return void((m.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==i.start.item)&&(n.set("finished",t),n.set("scaleRange",m.getScaleRange({offsets:i.start,items:r})),f.preventSet("viewRange",m.getViewRange({pixelOffset:i.start.pixel,items:r})),f.set("scrollOffset",{start:i.start.item,end:i.end.item})));f.preventSet("viewRange",m.getViewRange({pixelOffset:i.start.pixel,items:r}));const s=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",m.getScaleRange({offsets:i.start,items:r})),f.set("scrollOffset",{start:i.start.item,end:i.end.item}))};o(a,{onProcessing:s,onDataPage:s})};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 i=h();n.set("itemSize",m.getItemSize({items:i}));const a=y({items:i}),u=g({pixelOffset:a,items:i});f.preventSet("viewRange",m.getViewRange({pixelOffset:u.start.pixel,items:i}));const c=m.getArea({itemOffset:u.start.item,items:i});return new Promise((e=>{o(c,{onDataPage:()=>{n.set("scaleRange",m.getScaleRange({offsets:u.start,items:i})),f.preventSet("scrollOffset",{start:u.start.item,end:u.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;b(t)},scrollToRelative(e){const t=n.get("items"),r=m.convert.relativeToPixelOffset({relativeOffset:e,items:t});b(r)}}}({chart:e,componentKey:n,state:b,dataStore:S,pageData:C,layoutService:i,dockService:a,itemWidths:c,getRect:m,axisKey:h,renderer:g,areaBuffer:M,viewState:d,rtl:f}),k=function({layoutService:e,dataStore:t}){return function(n){const r=o(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:S}),T=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{gestures:[pw({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:mw({chart:e,actions:t,componentKey:n,scroller:i})}}}}({chart:e,actions:t,componentKey:n,dockService:a,rtl:f,scroller:w});return{interactions:T,query:{getCanScroll:()=>w.enabled(),getItemSize:()=>w.itemSize(),getScaleRange:()=>w.scaleRange(),getCurrentDataPage:()=>S.getCurrent()},command:{initialize:()=>w.initialize(),scrollTo:e=>w.scrollToRelative(e),setSnapshotData:e=>k(e)}}}({chart:t,actions:x,componentKey:gk.COMPONENT.BAR,enigmaModel:u,layoutService:q,dockService:O,trendLineModel:j,itemWidths:hk,viewState:r,rtl:"rtl"===T,options:{axisKey:gk.COMPONENT.BAR_AXIS,renderer:e.renderer("svg")()}}));const _=function({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:o}=e.meta,i=e.getLayout(),a="K"===i.qHyperCube.qMode,s=be.dimensionless(i),l=Da.getMeasureRefLines(i),u=Da.getDimensionRefLines(i,s),c=Da.getMeasureRefLineLabels(i),d=Da.getDimensionRefLineLabels(i,s);let f={},p={};const m=t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:o}=n;return Da.isOutOfRange({value:t,qMin:r,qMax:o})}return!1},h=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 Da.isOutOfDataPages({label:n,dataPages:o})}return!0},g=()=>!(!u||!u.length)&&!u.every((t=>{const n=Da.getInputValue({refLineLayout:t,layoutService:e});return m(n)||h(n)})),y={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:u,measureRefLineLabels:c,dimensionRefLineLabels:d,dimensionRefLineInfo:p,dimensionValuesInfo:f,query:{getRefLines:e=>Da.getRefLines(i,e),getRefLineLabels:e=>Da.getRefLineLabels(i,e)},update:()=>{p=y.dimensionRefLineInfo,g()&&(f=Da.getDimensionValuesInfo({layout:i,canBeContinuous:r,discreteModel:t,layoutService:e}),y.dimensionValuesInfo=f,u.forEach((t=>{const n=Da.getInputValue({refLineLayout:t,layoutService:e});f[n]&&(p[n]?(p[n].innerValues=f[n].innerValues,p[n].minOrder=Math.min(p[n].minOrder,f[n].minOrder),p[n].maxOrder=Math.max(p[n].maxOrder,f[n].maxOrder),p[n].isMinOrderOk=p[n].isMinOrderOk||f[n].isMinOrderOk,p[n].isMaxOrderOk=p[n].isMaxOrderOk||f[n].isMaxOrderOk):p[n]={id:f[n].id,qText:f[n].qText,innerValues:f[n].innerValues,minOrder:f[n].minOrder,maxOrder:f[n].maxOrder,isMinOrderOk:f[n].isMinOrderOk,isMaxOrderOk:f[n].isMaxOrderOk},p[n].numInnerValues=(p[n].maxOrder||0)-(p[n].minOrder||0)+1)})))}};return y.update(),y}({layoutService:q,discreteModel:B}),H=function(e){const t={layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:gk.SCALE.MAIN.MINOR,MAJOR:gk.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:gk.COMPONENT.BAR,BAR_AXIS:gk.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:gk.COLLECTION.MAIN}}};return t}(q),$=y({picassoInstance:e,plugins:d||[],pluginArgs:H});k.setContext({discrete:B,layoutService:q}),b({discrete:B,continuous:Jh,legendLayoutService:E,layoutService:q,viewModel:N,dockService:O,themeService:A,styleService:z,continuousDataModel:I,reducedDataModel:R,colorService:P,trendLineModel:j,refLineModel:_,pluginService:$,customTooltipModel:F,selectionService:M,logicalSize:L,disclaimerService:D})}),[M,p,n,a]),v}({picasso:i,chart:c,environment:t,viewState:n,viewCache:r}),f=function({env:e,services:t}){var n;const r=_(),o=B(),i=Y(),a=function({enable:e=!0}={}){const t=B(),n=()=>Date.now().toString()+Math.random(),[r,o]=O(n()),i={properties:void 0};return I((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const r=()=>{t.getEffectiveProperties().then((e=>{const t=ie(!0,{},e);if(!i.properties)return void(i.properties=t);const r=function(e,t){var n,r,o,i;const a={properties:!1,exclude:!1};if(e===t)return a;const s=ie(!0,{},e),l=ie(!0,{},t);return a.exclude=!Xq(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=!Xq(s,l),a}(i.properties,t);i.properties=t,r.exclude&&!r.properties&&o(n())}))};return t.on("changed",r),r(),()=>{t.removeListener("changed",r)}}),[e]),r}({enable:!1===(null==t||null===(n=t.layoutService)||void 0===n||null===(n=n.meta)||void 0===n?void 0:n.isSnapshot)}),[s,l]=U((async()=>{if(!e||!t)return Promise.resolve();const{layoutService:n}=t,{isSnapshot:a,isStacked:s,isContinuous:l}=n.meta,u=[];return a||u.push(o.getEffectiveProperties()),Promise.all(u).then((async e=>{const t=e[0]||void 0;if(null!=t&&t.qHyperCubeDef){const e=n.getLayout(),a=ie(!0,{},t);if(Jq({properties:t,layout:e,isStacked:s,isContinuous:l,model:o,layoutService:n}))return i.pending(),gs(e)?o.setProperties(t).then((()=>{r.clearUndoBuffer()})):void await hs(o,a,t);i.restore()}return{properties:t}}))}),[e,t,a]);if(l&&!l.isHandled)throw l;return s}({env:e,services:d});!function({picasso:e,chart:t,services:n,environment:r,viewState:o,viewCache:i,bootstrapped:s}){const{width:l,height:u}=W(),c=B(),d=$(),f=P(),[p,m]=O(),[h,g]=O(),[y,v]=O(),[b,x]=O(),S=_();function M(s={}){const{selectionService:l,refLineModel:u,discrete:m,reducedDataModel:h,continuousDataModel:g,trendLineModel:y,pluginService:v,colorService:b,viewModel:x,dockService:M,themeService:C,customTooltipModel:w,layoutService:k,logicalSize:T,styleService:q,disclaimerService:E}=n,L=l.custom.getActions(),N=e.data("q")(p.prepPicassoDataSet()),O={picasso:e,ds:N,rtl:"rtl"===(null==f?void 0:f.direction),model:c,app:S,chart:t,actions:L,localeInfo:r.localeInfo,logicalSize:T,flags:r.flags,translator:r.translator,selections:d,isLocked:l.getIsSelectionLocked,viewCache:i,viewState:o,layoutService:k,dockService:M,viewModel:x,colorService:b,selectionService:l,themeService:C,trendLineModel:y,discrete:m,continuousDataModel:g,reducedDataModel:h.model(),customTooltipModel:w,debouncer:a,refLineModel:u,pluginService:v,styleService:q,disclaimerService:E,...s};return Uq(k.getLayout(),O,r)}function C(){if(!t.layoutComponents)return Promise.resolve();const{discrete:e,layoutService:r,viewModel:o}=n;i.set("isPreRender",!0);const a=M(h);p.extractDataPages(),t.layoutComponents({settings:a,data:y}),i.set("isPreRender",!1),p.insertDataPages(),o.animations.hasSlicedHats=a.components.filter((e=>"box-sliced-hat"===e.type)).length>0;const s=[];return 1!==a.components.length&&r.meta.isDiscrete&&s.push(e.command.initialize()),Promise.all(s)}const[[w,k]=[]]=U((()=>{var a;if(!(e&&t&&n&&r&&o&&i&&s))return Promise.resolve();const{layoutService:l,selectionService:u,refLineModel:c,discrete:d,continuous:f,reducedDataModel:p,continuousDataModel:m,trendLineModel:h,legendLayoutService:g,colorService:y,pluginService:v,viewModel:b,customTooltipModel:S,disclaimerService:M}=n;if(null==u||null===(a=u.custom)||void 0===a||!a.getActions())return Promise.resolve();const{properties:C}=s;(null==C?void 0:C.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})))&&(S.useCustomTooltip=!1);const w=()=>{x(Date.now()),b.animations.isPartialUpdating=!0},k=()=>{g&&g.setDataPages([d.query.getCurrentDataPage()]),c&&c.update(),w()};o.onChanged("scrollOffset",k),o.onChanged("legendScrollOffset",w),o.intercept("zoom",f.event.onZoomIntercept({viewCache:i})),o.onChanged("zoom",f.event.onZoomChange({layoutService:l,continuousDataModel:m},w)),u.setLayout(l.getLayout());const T=[];l.meta.isContinuous&&(m.update(l.getLayout()),T.push(m.initialFetch())),h.command.update(),T.push(p.fetch().then((({reducedCube:e})=>{p.update(e)}))),M.initialize(),T.push(Promise.resolve({properties:s.properties}));const q=()=>[v.initialize(),y.initialize(),Kk({reducedDataModel:p,layoutService:l,continuousDataModel:m,trendLineModel:h})];return Promise.all(T).then((e=>Promise.all(q()).then((t=>[e,t.pop()]))))}),[s]);I((()=>{var e;if(null==n||null===(e=n.colorService)||void 0===e||!e.getMain()||!k)return;const{layoutService:t,selectionService:o,reducedDataModel:a,continuousDataModel:s,trendLineModel:l,legendLayoutService:u,colorService:c,viewModel:d}=n;i.set("minorMinMax",k);const f=()=>!t.meta.isContinuous&&(a.model().mode.isReduced||t.meta.isStacked)&&u,p=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():a.model().cube,{field:y}=c.getMain().getSettings(),v=f(),b=v?u.getHyperCube():void 0;o.setBrushAliases({colorField:y,useLegendCube:v,legendAlias:`legendCube/${y}`});const x=function({mainCube:e,miniCube:t,legendCube:n,localeInfo:r,layoutService:o,viewModel:i,trendLineModel:a}){const s=o.refs.dataPages.split(".").pop();let l=[],u=[];const c=o.meta.isContinuous?[{key:i.fields.majorNumeric,from:o.meta.isStackedByDimension?i.fields.majorStack:i.fields.major,override:{value:e=>e.qNum}}]:void 0;return{prepPicassoDataSet:()=>({key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}}),prepPicassoData(o){const i=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:c}},...o];return n&&i.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:c}}),a.query.hasTrendLines()&&i.push({key:"trend",data:a.query.getData()}),i},extractDataPages(){l=e[s],u=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=u}}}({mainCube:p,miniCube:h,legendCube:b,localeInfo:r.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),S=w[w.length-1];g({localeInfo:r.localeInfo,...S}),m(x)}),[k]),I((()=>{if(!n||!h||!p)return;const e=n.colorService.getMain();if(!e)return;p.prepPicassoDataSet();const t=p.prepPicassoData(e.getData());v(t)}),[h]),I((()=>{var e;null!=n&&null!==(e=n.colorService)&&void 0!==e&&e.getMain()&&t.update&&p&&y&&C().then((()=>{const{layoutService:e,discrete:r,legendLayoutService:o}=n;if(o){1===e.getLayoutValue("scrollStartPos")&&o.setDataPages([r.query.getCurrentDataPage()])}t.update(),rs.cacheProperties({viewCache:i,layout:e.getLayout()})}))}),[y]),I((()=>{if(!(l&&u&&p&&null!=t&&t.update&&null!=n&&n.colorService.getMain()))return;const{viewModel:e}=n;e.animations.isSizeChanging=!0;const{dockService:o,themeService:i}=n;o.update({width:l,height:u}),i.setTheme(r.theme),C().then((()=>{t.update&&t.update()}))}),[l,u]),I((()=>{if(null==t||!t.update)return;const{viewModel:e}=n;t.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]}),e.animations.isPartialUpdating=!1}),[b])}({picasso:i,chart:c,services:d,environment:t,viewState:n,viewCache:r,bootstrapped:f}),Kq({environment:t,services:d,chart:c,viewState:n,bootstrapped:f})}}}));const J={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Z(e){return J[e]||e}function Q(e){return function(t,n,r){let o,i,a,s,l=[],u=!0;function c(){"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=Z(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=Z(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(),u&&c()},off(){u=!1,d()},on(){u=!0,0===l.length&&c()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function te(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 ne,re;var oe=function(){if(re)return ne;re=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 ne=function e(){var t,n,r,l,u,c,d=arguments[0],f=1,p=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(m&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},ne}(),ie=ee(oe);const ae=[["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}]],se={};ae.forEach((([e,{width:t,height:n}])=>{se[e]={width:t,height:n}}));const le={getLayoutModes:()=>se,getLayoutMode(e,t){let n;for(n=0;n<ae.length;++n)if(e>=ae[n][1].width&&t>=ae[n][1].height)return ae[n][0];return"SPARK"}};function ue(e,t){return{layoutModes:le.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const ce=["$date","$timestamp","$time"],de=["D","TS","T"],fe={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>ce.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&de.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(fe.hasTimeTag(t)&&fe.hasUnknownFormat(t)||fe.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&fe.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)&&fe.canBeContinuousDimension(r[0])},maxNumberOfLines:12},pe=/^[A-Z][A-z0-9_]*$/i,me={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,"")}},he={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||pe.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>me.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},ge=e=>he.getValue(e,"qHyperCube.qDimensionInfo",[]),ye=e=>he.getValue(e,"qHyperCube.qMeasureInfo",[]),ve=e=>he.getValue(e,"barGrouping.grouping"),be={continuous:(e,t=!1)=>!!fe.canBeContinuous(e)&&(he.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!ge(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===ve(e)&&(ge(e).length>1||ye(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&ge(e).length>1&&1===ye(e).length},groupedByMeasure(e){return this.grouped(e)&&1===ge(e).length&&ye(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==ve(e)&&"butterfly"!==ve(e)||this.continuous(e))&&(ge(e).length>1||ye(e).length>1)},stackedByDimension(e){return this.stacked(e)&&ge(e).length>1&&1===ye(e).length},stackedByMeasure(e){return this.stacked(e)&&1===ge(e).length&&ye(e).length>1},simple:e=>0===ge(e).length||1===ge(e).length&&1===ye(e).length,snapshot:e=>!!he.getValue(e,"snapshotData")};function xe(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Se=e=>{throw e.isHandled=!0,e};const Me={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?Me.getVerticalDock(t):n?Me.getOppositeDock(Me.getHorizontalDock(t)):Me.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};var Ce=(e,t)=>{if("function"==typeof t.defaultValue)return t.defaultValue();if(void 0!==t.defaultValue)return t.defaultValue;if(Array.isArray(t.options))return t.options[0].value;switch(e){case"array":return[];case"string":return"";case"integer":case"number":return 0;case"boolean":return!1;default:return null}};const we={stringWidthOverMWidth:e=>(12*Math.min(e,3)+6.384615384615385*Math.max(e-3,0))/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=we.getCharacterRatios(e[n]),r.latin+=o.latin,r.cjk+=o.cjk})):e.forEach((e=>{o=we.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=we.getTotalCharacterRatios(t,n,r),i=o.latinRatio*e,a=o.cjkRatio*e;return Math.ceil(we.stringWidthOverMWidth(i)+1.0909090909090908*a)}},ke="#la-vie-tooltip";function Te(){if(!document.querySelector(ke)){const e=document.createElement("div");e.id="la-vie-tooltip",e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function qe({key:e="tooltip",rtl:t}){return{show:!0,key:e,type:"tooltip",layout:{displayOrder:3},beforeMount(){Te()},beforeUpdate(){Te()},destroyed(){!function(){const e=document.querySelector(ke);e&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)}()},settings:{appendTo:()=>document.querySelector(ke),content:({h:e,data:t,style:n})=>t[0].map((t=>e("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{...n.cell||{},...e.style||{}},class:e.class};return e.colspan&&(r.colspan=e.colspan),t("td",r,e.content)}))}(t,{h:e,style:n})))),direction:t?"rtl":"ltr"},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',"empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}const Ee=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Le=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Ne=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Oe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Ee.test(e),isRtlChar:e=>Le.test(e)||Ne.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Oe.isLtrChar(r))return"ltr";if(Oe.isRtlChar(r))return"rtl"}return"ltr"}},De={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?De.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=Oe.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=Oe.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:Oe.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=Oe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=Oe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,De.getColorSymbol(e,t)]:[De.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=Oe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Oe.detectTextDirection(e.value);let l;return l=o?r?[e.value,De.getColorSymbol(t,n)]:[De.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 Ae(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ie(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Re(){}var Pe=.7,ze=1/Pe,je="\\s*([+-]?\\d+)\\s*",Fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_e=/^#([0-9a-f]{3,8})$/,He=new RegExp(`^rgb\\(${je},${je},${je}\\)$`),$e=new RegExp(`^rgb\\(${Be},${Be},${Be}\\)$`),Ve=new RegExp(`^rgba\\(${je},${je},${je},${Fe}\\)$`),We=new RegExp(`^rgba\\(${Be},${Be},${Be},${Fe}\\)$`),Ue=new RegExp(`^hsl\\(${Fe},${Be},${Be}\\)$`),Ke=new RegExp(`^hsla\\(${Fe},${Be},${Be},${Fe}\\)$`),Ge={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 Ye(){return this.rgb().formatHex()}function Xe(){return this.rgb().formatRgb()}function Je(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ze(t):3===n?new tt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Qe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Qe(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=He.exec(e))?new tt(t[1],t[2],t[3],1):(t=$e.exec(e))?new tt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ve.exec(e))?Qe(t[1],t[2],t[3],t[4]):(t=We.exec(e))?Qe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ue.exec(e))?st(t[1],t[2]/100,t[3]/100,1):(t=Ke.exec(e))?st(t[1],t[2]/100,t[3]/100,t[4]):Ge.hasOwnProperty(e)?Ze(Ge[e]):"transparent"===e?new tt(NaN,NaN,NaN,0):null}function Ze(e){return new tt(e>>16&255,e>>8&255,255&e,1)}function Qe(e,t,n,r){return r<=0&&(e=t=n=NaN),new tt(e,t,n,r)}function et(e){return e instanceof Re||(e=Je(e)),e?new tt((e=e.rgb()).r,e.g,e.b,e.opacity):new tt}function tt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function nt(){return`#${at(this.r)}${at(this.g)}${at(this.b)}`}function rt(){const e=ot(this.opacity);return`${1===e?"rgb(":"rgba("}${it(this.r)}, ${it(this.g)}, ${it(this.b)}${1===e?")":`, ${e})`}`}function ot(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function it(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function at(e){return((e=it(e))<16?"0":"")+e.toString(16)}function st(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ut(e,t,n,r)}function lt(e){if(e instanceof ut)return new ut(e.h,e.s,e.l,e.opacity);if(e instanceof Re||(e=Je(e)),!e)return new ut;if(e instanceof ut)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 ut(a,s,l,e.opacity)}function ut(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ct(e){return(e=(e||0)%360)<0?e+360:e}function dt(e){return Math.max(0,Math.min(1,e||0))}function ft(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ae(Re,Je,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ye,formatHex:Ye,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lt(this).formatHsl()},formatRgb:Xe,toString:Xe}),Ae(tt,(function(e,t,n,r){return 1===arguments.length?et(e):new tt(e,t,n,null==r?1:r)}),Ie(Re,{brighter(e){return e=null==e?ze:Math.pow(ze,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tt(it(this.r),it(this.g),it(this.b),ot(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:nt,formatHex:nt,formatHex8:function(){return`#${at(this.r)}${at(this.g)}${at(this.b)}${at(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rt,toString:rt})),Ae(ut,(function(e,t,n,r){return 1===arguments.length?lt(e):new ut(e,t,n,null==r?1:r)}),Ie(Re,{brighter(e){return e=null==e?ze:Math.pow(ze,e),new ut(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new ut(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 tt(ft(e>=240?e-240:e+120,o,r),ft(e,o,r),ft(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ut(ct(this.h),dt(this.s),dt(this.l),ot(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=ot(this.opacity);return`${1===e?"hsl(":"hsla("}${ct(this.h)}, ${100*dt(this.s)}%, ${100*dt(this.l)}%${1===e?")":`, ${e})`}`}}));const pt=Math.PI/180,mt=180/Math.PI,ht=.96422,gt=1,yt=.82521,vt=4/29,bt=6/29,xt=3*bt*bt,St=bt*bt*bt;function Mt(e){if(e instanceof Ct)return new Ct(e.l,e.a,e.b,e.opacity);if(e instanceof Lt)return Nt(e);e instanceof tt||(e=et(e));var t,n,r=qt(e.r),o=qt(e.g),i=qt(e.b),a=wt((.2225045*r+.7168786*o+.0606169*i)/gt);return r===o&&o===i?t=n=a:(t=wt((.4360747*r+.3850649*o+.1430804*i)/ht),n=wt((.0139322*r+.0971045*o+.7141733*i)/yt)),new Ct(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ct(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function wt(e){return e>St?Math.pow(e,1/3):e/xt+vt}function kt(e){return e>bt?e*e*e:xt*(e-vt)}function Tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Et(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Lt)return new Lt(e.h,e.c,e.l,e.opacity);if(e instanceof Ct||(e=Mt(e)),0===e.a&&0===e.b)return new Lt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*mt;return new Lt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Lt(e,t,n,null==r?1:r)}function Lt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Nt(e){if(isNaN(e.h))return new Ct(e.l,0,0,e.opacity);var t=e.h*pt;return new Ct(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ae(Ct,(function(e,t,n,r){return 1===arguments.length?Mt(e):new Ct(e,t,n,null==r?1:r)}),Ie(Re,{brighter(e){return new Ct(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ct(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 tt(Tt(3.1338561*(t=ht*kt(t))-1.6168667*(e=gt*kt(e))-.4906146*(n=yt*kt(n))),Tt(-.9787684*t+1.9161415*e+.033454*n),Tt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ae(Lt,Et,Ie(Re,{brighter(e){return new Lt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Lt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Nt(this).rgb()}}));var Ot={isDark:function(e){return Et(e).l<70}};function Dt(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function At(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function It(e){var t;return 1===e.length&&(t=e,e=function(e,n){return At(t(e),n)}),{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 Rt=It(At).right,Pt=Math.sqrt(50),zt=Math.sqrt(10),jt=Math.sqrt(2);function Ft(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>=Pt?10:i>=zt?5:i>=jt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Pt?10:i>=zt?5:i>=jt?2:1)}function Bt(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>=Pt?o*=10:i>=zt?o*=5:i>=jt&&(o*=2),t<e?-o:o}function _t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Ht="$";function $t(){}function Vt(e,t){var n=new $t;if(e instanceof $t)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 Wt(){}$t.prototype=Vt.prototype={constructor:$t,has:function(e){return Ht+e in this},get:function(e){return this[Ht+e]},set:function(e,t){return this[Ht+e]=t,this},remove:function(e){var t=Ht+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Ht&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Ht&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Ht&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Ht&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Ht&&++e;return e},empty:function(){for(var e in this)if(e[0]===Ht)return!1;return!0},each:function(e){for(var t in this)t[0]===Ht&&e(this[t],t.slice(1),this)}};var Ut=Vt.prototype;Wt.prototype={constructor:Wt,has:Ut.has,add:function(e){return this[Ht+(e+="")]=e,this},remove:Ut.remove,clear:Ut.clear,values:Ut.keys,size:Ut.size,empty:Ut.empty,each:Ut.each};var Kt=Array.prototype,Gt=Kt.map,Yt=Kt.slice;function Xt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Jt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Zt(){}var Qt=.7,en=1/Qt,tn="\\s*([+-]?\\d+)\\s*",nn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",rn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",on=/^#([0-9a-f]{3})$/,an=/^#([0-9a-f]{6})$/,sn=new RegExp("^rgb\\("+[tn,tn,tn]+"\\)$"),ln=new RegExp("^rgb\\("+[rn,rn,rn]+"\\)$"),un=new RegExp("^rgba\\("+[tn,tn,tn,nn]+"\\)$"),cn=new RegExp("^rgba\\("+[rn,rn,rn,nn]+"\\)$"),dn=new RegExp("^hsl\\("+[nn,rn,rn]+"\\)$"),fn=new RegExp("^hsla\\("+[nn,rn,rn,nn]+"\\)$"),pn={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 mn(e){var t;return e=(e+"").trim().toLowerCase(),(t=on.exec(e))?new bn((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=an.exec(e))?hn(parseInt(t[1],16)):(t=sn.exec(e))?new bn(t[1],t[2],t[3],1):(t=ln.exec(e))?new bn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=un.exec(e))?gn(t[1],t[2],t[3],t[4]):(t=cn.exec(e))?gn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dn.exec(e))?Sn(t[1],t[2]/100,t[3]/100,1):(t=fn.exec(e))?Sn(t[1],t[2]/100,t[3]/100,t[4]):pn.hasOwnProperty(e)?hn(pn[e]):"transparent"===e?new bn(NaN,NaN,NaN,0):null}function hn(e){return new bn(e>>16&255,e>>8&255,255&e,1)}function gn(e,t,n,r){return r<=0&&(e=t=n=NaN),new bn(e,t,n,r)}function yn(e){return e instanceof Zt||(e=mn(e)),e?new bn((e=e.rgb()).r,e.g,e.b,e.opacity):new bn}function vn(e,t,n,r){return 1===arguments.length?yn(e):new bn(e,t,n,null==r?1:r)}function bn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function xn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Sn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mn(e,t,n,r)}function Mn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Cn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Xt(Zt,mn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Xt(bn,vn,Jt(Zt,{brighter:function(e){return e=null==e?en:Math.pow(en,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Qt:Math.pow(Qt,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+xn(this.r)+xn(this.g)+xn(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Xt(Mn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Mn)return new Mn(e.h,e.s,e.l,e.opacity);if(e instanceof Zt||(e=mn(e)),!e)return new Mn;if(e instanceof Mn)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 Mn(a,s,l,e.opacity)}(e):new Mn(e,t,n,null==r?1:r)}),Jt(Zt,{brighter:function(e){return e=null==e?en:Math.pow(en,e),new Mn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qt:Math.pow(Qt,e),new Mn(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 bn(Cn(e>=240?e-240:e+120,o,r),Cn(e,o,r),Cn(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var wn=Math.PI/180,kn=180/Math.PI,Tn=.96422,qn=1,En=.82521,Ln=4/29,Nn=6/29,On=3*Nn*Nn,Dn=Nn*Nn*Nn;function An(e){if(e instanceof In)return new In(e.l,e.a,e.b,e.opacity);if(e instanceof Fn){if(isNaN(e.h))return new In(e.l,0,0,e.opacity);var t=e.h*wn;return new In(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof bn||(e=yn(e));var n,r,o=jn(e.r),i=jn(e.g),a=jn(e.b),s=Rn((.2225045*o+.7168786*i+.0606169*a)/qn);return o===i&&i===a?n=r=s:(n=Rn((.4360747*o+.3850649*i+.1430804*a)/Tn),r=Rn((.0139322*o+.0971045*i+.7141733*a)/En)),new In(116*s-16,500*(n-s),200*(s-r),e.opacity)}function In(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Rn(e){return e>Dn?Math.pow(e,1/3):e/On+Ln}function Pn(e){return e>Nn?e*e*e:On*(e-Ln)}function zn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function jn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Fn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Xt(In,(function(e,t,n,r){return 1===arguments.length?An(e):new In(e,t,n,null==r?1:r)}),Jt(Zt,{brighter:function(e){return new In(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new In(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new bn(zn(3.1338561*(t=Tn*Pn(t))-1.6168667*(e=qn*Pn(e))-.4906146*(n=En*Pn(n))),zn(-.9787684*t+1.9161415*e+.033454*n),zn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Xt(Fn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Fn)return new Fn(e.h,e.c,e.l,e.opacity);if(e instanceof In||(e=An(e)),0===e.a&&0===e.b)return new Fn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*kn;return new Fn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Fn(e,t,n,null==r?1:r)}),Jt(Zt,{brighter:function(e){return new Fn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Fn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return An(this).rgb()}}));var Bn=-.14861,_n=1.78277,Hn=-.29227,$n=-.90649,Vn=1.97294,Wn=Vn*$n,Un=Vn*_n,Kn=_n*Hn-$n*Bn;function Gn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);e instanceof bn||(e=yn(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Kn*r+Wn*t-Un*n)/(Kn+Wn-Un),i=r-o,a=(Vn*(n-o)-Hn*i)/$n,s=Math.sqrt(a*a+i*i)/(Vn*o*(1-o)),l=s?Math.atan2(a,i)*kn-120:NaN;return new Yn(l<0?l+360:l,s,o,e.opacity)}(e):new Yn(e,t,n,null==r?1:r)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Xn(e){return function(){return e}}function Jn(e,t){return function(n){return e+n*t}}function Zn(e){return 1==(e=+e)?Qn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Xn(isNaN(t)?n:t)}}function Qn(e,t){var n=t-e;return n?Jn(e,n):Xn(isNaN(e)?t:e)}Xt(Yn,Gn,Jt(Zt,{brighter:function(e){return e=null==e?en:Math.pow(en,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qt:Math.pow(Qt,e),new Yn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*wn,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new bn(255*(t+n*(Bn*r+_n*o)),255*(t+n*(Hn*r+$n*o)),255*(t+n*(Vn*r)),this.opacity)}}));var er=function e(t){var n=Zn(t);function r(e,t){var r=n((e=vn(e)).r,(t=vn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Qn(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 tr(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]=lr(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 nr(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function rr(e,t){return t-=e=+e,function(n){return e+t*n}}function or(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]=lr(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var ir=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ar=new RegExp(ir.source,"g");function sr(e,t){var n,r,o,i=ir.lastIndex=ar.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=ir.exec(e))&&(r=ar.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:rr(n,r)})),i=ar.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 lr(e,t){var n,r=typeof t;return null==t||"boolean"===r?Xn(t):("number"===r?rr:"string"===r?(n=mn(t))?(t=n,er):sr:t instanceof mn?er:t instanceof Date?nr:Array.isArray(t)?tr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?or:rr)(e,t)}function ur(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function cr(e){return function t(n){function r(t,r){var o=e((t=Gn(t)).h,(r=Gn(r)).h),i=Qn(t.s,r.s),a=Qn(t.l,r.l),s=Qn(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function dr(e){return+e}cr((function(e,t){var n=t-e;return n?Jn(e,n>180||n<-180?n-360*Math.round(n/360):n):Xn(isNaN(e)?t:e)})),cr(Qn);var fr=[0,1];function pr(e){return e}function mr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function hr(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 gr(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=mr(o,r),i=n(a,i)):(r=mr(r,o),i=n(i,a)),function(e){return i(r(e))}}function yr(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]=mr(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Rt(e,t,1,r)-1;return i[n](o[n](t))}}function vr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function br(e,t){return function(){var e,t,n,r,o,i,a=fr,s=fr,l=lr,u=pr;function c(){return r=Math.min(a.length,s.length)>2?yr:gr,o=i=null,d}function d(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((i||(i=r(s,a.map(e),rr)))(n)))},d.domain=function(e){return arguments.length?(a=Gt.call(e,dr),u===pr||(u=hr(a)),c()):a.slice()},d.range=function(e){return arguments.length?(s=Yt.call(e),c()):s.slice()},d.rangeRound=function(e){return s=Yt.call(e),l=ur,c()},d.clamp=function(e){return arguments.length?(u=e?hr(a):pr,d):u!==pr},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}()(e,t)}function xr(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 Sr(e){return(e=xr(Math.abs(e)))?e[1]:NaN}var Mr,Cr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wr(e){return new kr(e)}function kr(e){if(!(t=Cr.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function Tr(e,t){var n=xr(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")}wr.prototype=kr.prototype,kr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var qr={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Tr(100*e,t)},r:Tr,s:function(e,t){var n=xr(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Mr=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")+xr(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 Er(e){return e}var Lr,Nr,Or,Dr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ar(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}):Er,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):Er,s=e.percent||"%";function l(e){var t=(e=wr(e)).fill,n=e.align,l=e.sign,u=e.symbol,c=e.zero,d=e.width,f=e.comma,p=e.precision,m=e.trim,h=e.type;"n"===h?(f=!0,h="g"):qr[h]||(null==p&&(p=12),m=!0,h="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var g="$"===u?o[0]:"#"===u&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",y="$"===u?o[1]:/[%p]/.test(h)?s:"",v=qr[h],b=/[defgprs%]/.test(h);function x(e){var o,s,u,x=g,S=y;if("c"===h)S=v(e)+S,e="";else{var M=(e=+e)<0;if(e=v(Math.abs(e),p),m&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(o>0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),M&&0==+e&&(M=!1),x=(M?"("===l?l:"-":"-"===l||"("===l?"":l)+x,S=("s"===h?Dr[8+Mr/3]:"")+S+(M&&"("===l?")":""),b)for(o=-1,s=e.length;++o<s;)if(48>(u=e.charCodeAt(o))||u>57){S=(46===u?i+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}f&&!c&&(e=r(e,1/0));var C=x.length+e.length+S.length,w=C<d?new Array(d-C+1).join(t):"";switch(f&&c&&(e=r(w+e,w.length?d-S.length:1/0),w=""),n){case"<":e=x+e+S+w;break;case"=":e=x+w+e+S;break;case"^":e=w.slice(0,C=w.length>>1)+x+e+S+w.slice(C);break;default:e=w+x+e+S}return a(e)}return p=null==p?6:/[gprs]/.test(h)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=wr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Sr(t)/3))),o=Math.pow(10,-r),i=Dr[8+r/3];return function(e){return n(o*e)+i}}}}function Ir(e,t,n,r){var o,i=Bt(e,t,n);switch((r=wr(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(Sr(t)/3)))-Sr(Math.abs(e)))}(i,a))||(r.precision=o),Or(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,Sr(t)-Sr(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,-Sr(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Nr(r)}function Rr(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=Ft(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 Ir(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=Ft(s,l,n))>0?r=Ft(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Ft(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 Pr(){var e=br(pr,pr);return e.copy=function(){return vr(e,Pr())},_t.apply(e,arguments),Rr(e)}Lr=Ar({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Nr=Lr.format,Or=Lr.formatPrefix;var zr=new Date,jr=new Date;function Fr(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return Fr((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 zr.setTime(+t),jr.setTime(+r),e(zr),e(jr),Math.floor(n(zr,jr))},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 Br=Fr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Br.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Fr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Br:null},Br.range;var _r=1e3,Hr=6e4,$r=36e5,Vr=864e5,Wr=6048e5,Ur=Fr((function(e){e.setTime(Math.floor(e/_r)*_r)}),(function(e,t){e.setTime(+e+t*_r)}),(function(e,t){return(t-e)/_r}),(function(e){return e.getUTCSeconds()}));Ur.range;var Kr=Fr((function(e){e.setTime(Math.floor(e/Hr)*Hr)}),(function(e,t){e.setTime(+e+t*Hr)}),(function(e,t){return(t-e)/Hr}),(function(e){return e.getMinutes()}));Kr.range;var Gr=Fr((function(e){var t=e.getTimezoneOffset()*Hr%$r;t<0&&(t+=$r),e.setTime(Math.floor((+e-t)/$r)*$r+t)}),(function(e,t){e.setTime(+e+t*$r)}),(function(e,t){return(t-e)/$r}),(function(e){return e.getHours()}));Gr.range;var Yr=Fr((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())*Hr)/Vr}),(function(e){return e.getDate()-1}));function Xr(e){return Fr((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())*Hr)/Wr}))}Yr.range;var Jr=Xr(0),Zr=Xr(1),Qr=Xr(2),eo=Xr(3),to=Xr(4),no=Xr(5),ro=Xr(6);Jr.range,Zr.range,Qr.range,eo.range,to.range,no.range,ro.range;var oo=Fr((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));oo.range;var io=Fr((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()}));io.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Fr((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},io.range;var ao=Fr((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Hr)}),(function(e,t){return(t-e)/Hr}),(function(e){return e.getUTCMinutes()}));ao.range;var so=Fr((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*$r)}),(function(e,t){return(t-e)/$r}),(function(e){return e.getUTCHours()}));so.range;var lo=Fr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Vr}),(function(e){return e.getUTCDate()-1}));function uo(e){return Fr((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}))}lo.range;var co=uo(0),fo=uo(1),po=uo(2),mo=uo(3),ho=uo(4),go=uo(5),yo=uo(6);co.range,fo.range,po.range,mo.range,ho.range,go.range,yo.range;var vo=Fr((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()}));vo.range;var bo=Fr((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 xo(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 So(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 Mo(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}bo.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Fr((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},bo.range;var Co,wo,ko,To={"-":"",_:" ",0:"0"},qo=/^\s*\d+/,Eo=/^%/,Lo=/[\\^$*+?|[\]().{}]/g;function No(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 Oo(e){return e.replace(Lo,"\\$&")}function Do(e){return new RegExp("^(?:"+e.map(Oo).join("|")+")","i")}function Ao(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Io(e,t,n){var r=qo.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ro(e,t,n){var r=qo.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Po(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function zo(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function jo(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Fo(e,t,n){var r=qo.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Bo(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _o(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 Ho(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function $o(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Vo(e,t,n){var r=qo.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Wo(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Uo(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ko(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Go(e,t,n){var r=qo.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Yo(e,t,n){var r=qo.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xo(e,t,n){var r=Eo.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Jo(e,t,n){var r=qo.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Zo(e,t,n){var r=qo.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Qo(e,t){return No(e.getDate(),t,2)}function ei(e,t){return No(e.getHours(),t,2)}function ti(e,t){return No(e.getHours()%12||12,t,2)}function ni(e,t){return No(1+Yr.count(io(e),e),t,3)}function ri(e,t){return No(e.getMilliseconds(),t,3)}function oi(e,t){return ri(e,t)+"000"}function ii(e,t){return No(e.getMonth()+1,t,2)}function ai(e,t){return No(e.getMinutes(),t,2)}function si(e,t){return No(e.getSeconds(),t,2)}function li(e){var t=e.getDay();return 0===t?7:t}function ui(e,t){return No(Jr.count(io(e),e),t,2)}function ci(e,t){var n=e.getDay();return e=n>=4||0===n?to(e):to.ceil(e),No(to.count(io(e),e)+(4===io(e).getDay()),t,2)}function di(e){return e.getDay()}function fi(e,t){return No(Zr.count(io(e),e),t,2)}function pi(e,t){return No(e.getFullYear()%100,t,2)}function mi(e,t){return No(e.getFullYear()%1e4,t,4)}function hi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+No(t/60|0,"0",2)+No(t%60,"0",2)}function gi(e,t){return No(e.getUTCDate(),t,2)}function yi(e,t){return No(e.getUTCHours(),t,2)}function vi(e,t){return No(e.getUTCHours()%12||12,t,2)}function bi(e,t){return No(1+lo.count(bo(e),e),t,3)}function xi(e,t){return No(e.getUTCMilliseconds(),t,3)}function Si(e,t){return xi(e,t)+"000"}function Mi(e,t){return No(e.getUTCMonth()+1,t,2)}function Ci(e,t){return No(e.getUTCMinutes(),t,2)}function wi(e,t){return No(e.getUTCSeconds(),t,2)}function ki(e){var t=e.getUTCDay();return 0===t?7:t}function Ti(e,t){return No(co.count(bo(e),e),t,2)}function qi(e,t){var n=e.getUTCDay();return e=n>=4||0===n?ho(e):ho.ceil(e),No(ho.count(bo(e),e)+(4===bo(e).getUTCDay()),t,2)}function Ei(e){return e.getUTCDay()}function Li(e,t){return No(fo.count(bo(e),e),t,2)}function Ni(e,t){return No(e.getUTCFullYear()%100,t,2)}function Oi(e,t){return No(e.getUTCFullYear()%1e4,t,4)}function Di(){return"+0000"}function Ai(){return"%"}function Ii(e){return+e}function Ri(e){return Math.floor(+e/1e3)}!function(e){Co=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,u=Do(o),c=Ao(o),d=Do(i),f=Ao(i),p=Do(a),m=Ao(a),h=Do(s),g=Ao(s),y=Do(l),v=Ao(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:Qo,e:Qo,f:oi,H:ei,I:ti,j:ni,L:ri,m:ii,M:ai,p:function(e){return o[+(e.getHours()>=12)]},Q:Ii,s:Ri,S:si,u:li,U:ui,V:ci,w:di,W:fi,x:null,X:null,y:pi,Y:mi,Z:hi,"%":Ai},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:gi,e:gi,f:Si,H:yi,I:vi,j:bi,L:xi,m:Mi,M:Ci,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Ii,s:Ri,S:wi,u:ki,U:Ti,V:qi,w:Ei,W:Li,x:null,X:null,y:Ni,Y:Oi,Z:Di,"%":Ai},S={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return w(e,t,n,r)},d:$o,e:$o,f:Yo,H:Wo,I:Wo,j:Vo,L:Go,m:Ho,M:Uo,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:Jo,s:Zo,S:Ko,u:Ro,U:Po,V:zo,w:Io,W:jo,x:function(e,t,r){return w(e,n,t,r)},X:function(e,t,n){return w(e,r,t,n)},y:Bo,Y:Fo,Z:_o,"%":Xo};function M(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(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 C(e,t){return function(n){var r,o,i=Mo(1900);if(w(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=So(Mo(i.y))).getUTCDay(),r=o>4||0===o?fo.ceil(r):fo(r),r=lo.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(Mo(i.y))).getDay(),r=o>4||0===o?Zr.ceil(r):Zr(r),r=Yr.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?So(Mo(i.y)).getUTCDay():t(Mo(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,So(i)):t(i)}}function w(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=M(n,b),b.X=M(r,b),b.c=M(t,b),x.x=M(n,x),x.X=M(r,x),x.c=M(t,x),{format:function(e){var t=M(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",xo);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,So);return t.toString=function(){return e},t}}}(e),Co.format,Co.parse,wo=Co.utcFormat,ko=Co.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 Pi="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||wo(Pi),+new Date("2000-01-01T00:00:00.000Z")||ko(Pi);var zi=1e3,ji=60*zi,Fi=60*ji,Bi=24*Fi,_i=7*Bi,Hi=30*Bi,$i=365*Bi;function Vi(e){return new Date(e)}function Wi(e){return e instanceof Date?+e:+new Date(+e)}function Ui(e,t,n,r,o,i,a,s,l){var u=br(pr,pr),c=u.invert,d=u.domain,f=l(".%L"),p=l(":%S"),m=l("%I:%M"),h=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,zi],[a,5,5*zi],[a,15,15*zi],[a,30,30*zi],[i,1,ji],[i,5,5*ji],[i,15,15*ji],[i,30,30*ji],[o,1,Fi],[o,3,3*Fi],[o,6,6*Fi],[o,12,12*Fi],[r,1,Bi],[r,2,2*Bi],[n,1,_i],[t,1,Hi],[t,3,3*Hi],[e,1,$i]];function S(s){return(a(s)<s?f:i(s)<s?p:o(s)<s?m:r(s)<s?h:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function M(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var i=Math.abs(r-n)/t,a=It((function(e){return e[2]})).right(x,i);a===x.length?(o=Bt(n/$i,r/$i,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(Bt(n,r,t),1),t=s)}return null==o?t:t.every(o)}return u.invert=function(e){return new Date(c(e))},u.domain=function(e){return arguments.length?d(Gt.call(e,Wi)):d().map(Vi)},u.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=M(e,o,i,t))?n.range(o,i+1):[],a?n.reverse():n},u.tickFormat=function(e,t){return null==t?S:l(t)},u.nice=function(e,t){var n=d();return(e=M(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)):u},u.copy=function(){return vr(u,Ui(e,t,n,r,o,i,a,s,l))},u}function Ki(){return _t.apply(Ui(bo,vo,co,lo,so,ao,Ur,Br,wo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Gi={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"}}},Yi=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Xi={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=Gi[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Yi(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Yi(t.shadow.endOffset)}}})(n),u="horizontal"===n&&r,c=[];return a||c.push(e("div",{style:{...l.base,...u?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||c.push(e("div",{style:{...l.base,...u?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),c}};function Ji({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 Zi;function Qi(){Zi=Zi||document.createElement("canvas").getContext("2d")}const ea={measureTextWidth(e){Qi();const{width:t}=Zi.measureText(e);return t},lineWrap(e,t,n,r){let o,i;Qi();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,u,c,d,f=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&&(Zi.font=n),i=0;i<a.length;i++){for(d=a[i]||"",f=d.split(/\s+/),[p]=f,c="",o=1;o<f.length;o++)if(l=`${p} ${f[o]}`,u=ea.measureTextWidth(l),u>t&&("number"!=typeof r||r>s.length)?(s.push(p),p=f[o]):p=l,"number"==typeof r&&s.length>=r){c=f.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} ${c}`}return s},wordWrap(e,t,n,r,o){if(Qi(),!e||!e.length)return[];n&&(Zi.font=n);let i=[];const a=e.slice();let s,l,u,c;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(c=0;c<a.length;c++)u=a[c],l=null,u&&(u.length<=1||ea.measureTextWidth(u)<=t?i.push(u):(s=ea.splitWord(u,t,void 0,r-i.length),s.length<=1?i.push(s[0]):(l=s.pop(),i=i.concat(s),a[c+1]?ea.measureTextWidth(`${l} ${a[c+1]}`)>t&&i.length+a.length-c<=r?a.splice(c+1,0,l):a[c+1]=`${l} ${a[c+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]=ea.truncate(i[i.length-1],t,n,o).text):(u=i[i.length-1],u&&u.length>1&&ea.measureTextWidth(u)>t&&(i[i.length-1]=ea.truncate(u,t,n,o).text)),i},truncate(e,t,n,r="…"){Qi();let o,i,a,s,l=e;const u=ea.measureTextWidth("i"),c=Math.ceil(t/u);if(n&&(Zi.font=n),e&&t){if(ea.measureTextWidth(l)>t){for(o=Math.min(c,l.length);o>0;o--)if(i=l.substring(0,o-1),a=i.trim()+r,ea.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;Qi();let i,a=e,s="",l=[];if(ea.isNumber(n)&&n<=1)return[e];const u=Math.ceil(t/r);for(o=Math.min(e.length,u);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),!(ea.measureTextWidth(a)<=t));o--);return(!o&&!a||ea.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(ea.measureTextWidth(s)>t?(s=ea.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Qi(),e&&t?(n&&(Zi.font=n),ea.explodeWord(e,t,r,Math.max(1,ea.measureTextWidth("i")))):[]),wrapText(e,t,n,r,o){let i;return Number.isNaN(t)?[e]:(i=r>1?ea.lineWrap(e,t,n,r):[e],i=ea.wordWrap(i,t,n,r,o),i)},getFontHeight:e=>(Qi(),e&&(Zi.font=e),1.5*ea.measureTextWidth("m")),tokenize(e,t,n,r,o,i,a=1){Qi(),t&&(Zi.font=t);const s=ea.getFontHeight(),l=a*s;let u=[],c=0,d=[];if(i<s)return[];const f=i?Math.max(1,Math.floor(i/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{c+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{u.push(Number.isNaN(e)||e<=0?f-c:e)}))):u=[Number.isNaN(r)||r<=0?f:Math.min(f,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<f&&(d=d.concat(ea.wrapText(e,o,t,u[n])))})):d=ea.wrapText(e,o,t,u[0],n),d}},ta={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",u=r,c=o,d=t<.5?90:-90;return i&&(s="y",l="x",u=o,c=r,d=t<.5?180:0),a(ie({},e,{[s]:n*u,[l]:Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:d}))}},na=ie.bind(null,!0),ra={},{isArray:oa}=Array;function ia(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function aa(e){return void 0===e}function sa(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function la(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]=aa(e[r||t])?i:e[t],e=e[r||t]})),e}function ua(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function ca(e,t,n){let r=!0;if(ia(e)&&ia(t))return ua(e,n)===ua(t,n)&&(Object.keys(e).forEach((o=>{ca(e[o],t[o],n)||(r=!1)})),r);if(oa(e)&&oa(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!ca(e[r],t[r],n))return!1;return!0}return e===t}ra.compare=ca,ra.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?na({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;ca(i,a)||sa(t,o)||(aa(a)?r.push({op:"add",path:s,value:i}):ia(i)&&ia(a)?r=r.concat(ra.generate(a,i,s)):oa(i)&&oa(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]&&aa(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(ca(t,o))return r;if(!aa(t[0])&&aa(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(ra.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=>{aa(t[o])&&!sa(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},ra.apply=function(e,t){t.forEach((t=>{let n=la(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(oa(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(oa(o)&&oa(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(ia(o)&&ia(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!sa(a,e)&&delete a[e]})),na(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=la(e,t.from);oa(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(oa(n)?n.splice(+r,1):delete n[r]);var a}))},ra.clone=function(e){return na({},e)},ra.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},ra.updateObject=function(e,t){Object.keys(e).length?ra.apply(e,ra.generate(e,t)):na(e,t)};const da=Math.log(10);function fa(e){return 10**e}const pa={pow10:fa,log:(e,t)=>e<=0||t<=0?NaN:Math.log(e)/Math.log(t),log10:e=>e<=0?NaN:Math.log(e)/da,eliminateFloatingError(e){const t=Math.round(e);return Math.abs(e-t)<1e-12?t:e},getNiceNumber(e){let t;if(0===e)return 0;const n=Math.floor(Math.log(Math.abs(e))/da),r=e/fa(n);return t=r<=1?1:r<=2?2:r<=5?5:10,t*fa(n)*(e<0?-1:1)},getSmallNiceNumber(e){let t,n;if(0===e)return 0;t=Math.floor(Math.log(Math.abs(e))/da);const r=e/fa(t);return r<1?(n=5,t--):n=r<2?1:r<5?2:5,n*fa(t)*(e<0?-1:1)},getMagnitude(e){if(0===e)return 0;return fa(Math.floor(Math.log(Math.abs(e))/da))},getFraction(e){if(0===e)return 0;return e/fa(Math.floor(Math.log(Math.abs(e))/da))},getGoodNumber(e){let t;if(0===e)return 0;const n=Math.floor(Math.log(Math.abs(e))/da),r=e/fa(n);return t=Math.ceil(r),7!==t&&9!==t||t++,r>1&&r<=1.5?t=1.5:r>2&&r<=2.5&&(t=2.5),t*fa(n)*(e<0?-1:1)},getValueWithOffset:(e,t=0)=>e+Math.abs(e)*t,isNumber:e=>"number"==typeof e&&!Number.isNaN(e)},ma=[[2,4,6],[2,4],[3]],ha=[,[,,[[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 ga(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 ya(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)ga(e[r],t,n)}!function(){let e,t;for(ya(ma,1,10),e=0;e<ha.length;e++)if(ha[e])for(t=0;t<ha[e].length;t++)Array.isArray(ha[e][t])&&ya(ha[e][t])}();const va={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=va.findSegmentPositionMeetMin(e,t);return va.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=va.findSegmentPositionMeetMax(e,n);return va.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=va.findSegmentPositionMeetMaxThenMin(i,s,(i.center+a.center-r)/2),s=i.position+i.radius+r/2;a.position=va.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 u,c=0;for(i=o;i>0&&(a=e[i],s=e[i-1],u=Math.max(0,va.getGap(s,a)-r),u-=Math.max(0,c+u-l),c+=u,a.move=u,!(c>=l));i--);for(c<l&&(u=Math.max(0,s.position-s.radius-t),u-=Math.max(0,c+u-l),c+=u,s.move=u),c=0,i=0;i<=o;i++)a=e[i],c+=a.move||0,a.move=c,a.position-=c},layout(e,t,n,r=0){const o=e.length-1;if(!(o<0))if(0!==o)va.layoutPositionFromMin(e,t,n,r),va.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=va.findSegmentPositionMeetMaxThenMin(r,t,n)}}},ba=(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},xa=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,Sa=e=>e.filter(xa),Ma=(e,t)=>Sa(he.getValue(e,t,[])),Ca=e=>xa(e)&&(!1!==e.showValue||!1!==e.showLabel),wa=e=>e.filter(Ca),ka=(e,t)=>wa(he.getValue(e,t,[])),Ta=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,qa=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},Ea=({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},La=({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},Na=({value:e,qMin:t})=>"NaN"!==t&&e<t,Oa=({value:e,qMax:t})=>"NaN"!==t&&e>t,Da={isRefLineVisible:xa,getVisibleRefLines:Sa,getRefLines:Ma,getMeasureRefLines:e=>Ma(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:Ma(e,"refLine.dimRefLines"),isRefLineLabelVisible:Ca,getVisibleRefLineLabels:wa,getRefLineLabels:ka,getMeasureRefLineLabels:e=>ka(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:ka(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=ba(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 u;return l=ba(s,o,i,t),e&&e.length&&(u=(({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===u?s(n):u)+l}return l=ba(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=he.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():he.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const u=s?"qData.0.qSubNodes":"qMatrix",c=he.getValue(l,u,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),f=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<c.length;e++){const t=c[e],n=e+f,r=t[d];i[r]||(i[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:c[e]})}})():o?(()=>{let e;for(let t=0;t<c.length;t++){const n=c[t][0],r=c[t][1],o=t+f,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:c[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<c.length;e++){const t=c[e][0],n=e+f,r=t[d];i[r]||(i[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:c[e]})}})(),i},getInputValue:Ta,extractInfoFromInputValue:qa,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Ta({refLineLayout:e,layoutService:n});return qa(r,t,"id")},isDiscreteMinOutOfBounds:Ea,isDiscreteMaxOutOfBounds:La,isContinuousMinOutOfBounds:Na,isContinuousMaxOutOfBounds:Oa,isOutOfRange:({value:e,qMin:t,qMax:n})=>Na({value:e,qMin:t})||Oa({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&La({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&Ea({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},Aa=({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(" "),Ia="…";function Ra(e){return e.showValue?`${Ia} ${e.valueString}`:Ia}function Pa(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=Aa({label:o,labelStyle:t});o.lines=ea.tokenize(o.title,i,Ra(o),3,n),o.maxNumLines=o.lines.length}}function za({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=ea.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 ja({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=e.map((e=>za({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 Fa(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const Ba=3,_a=2;function Ha({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 $a=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(Da.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(Da.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return Da.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:Da.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},Va={hasEngineFormat:Ha,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:o,rtl:i,isContinuous:a,isDimension:s}){const l=Da.getInvert({orientation:o,rtl:i,isContinuous:a}),u="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",c=r.getHyperCubeValue(u),{canBeContinuous:d}=r.meta;let f,p;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");f=e.qMin,p=e.qMax}for(let o=0;o<e.length;o++){const i=e[o],{value:s,align:u,valueInfo:d}=i,m=$a({label:i,dataPages:c,qMin:f,qMax:p});i.scaledValue=1===m?l?-.1:1.1:-1===m?l?1.1:-.1:Da.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:u,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=Ha({inputValue:s,inputValueLabel:l,localeInfo:o})?l:t?t(a):a,r.valueString=`${Oe.lrm}(${i})${Oe.lrm}`,r.title=Va.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=Ha({inputValue:a,inputValueLabel:s,localeInfo:o})?s:r,n.valueString=`${Oe.lrm}(${i})${Oe.lrm}`,n.title=Va.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];i=n.valueText,n.valueString=`${Oe.lrm}(${i})${Oe.lrm}`,n.title=Va.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=Va.getTotalNumLines(e)-r;if(t<=0)return;Va.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,Va.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:u,orientation:c,measureText:d,rtl:f,layoutService:p,isContinuous:m,isDimension:h}){const g=e.map((e=>e)),y=n;Va.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:c,rtl:f,isContinuous:m,isDimension:h}),Fa(e,"center"),Va.addLabelsNeighborInfo(e,r,o,i),Pa(e,a,s),Va.reduceTotalMaxNumLines(g,l,o-(g.length-1)*i),"vertical"===c&&(Va.reduceMaxNumLines(e,l,.05*i),function(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=Aa({label:o,labelStyle:t});o.lines.length>o.maxNumLines&&(o.lines=ea.tokenize(o.title,i,Ra(o),o.maxNumLines,n))}}(e,a,s)),Va.addLabelsSize(e,s,l,d),Va.addLabelSegments(e,u)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:o,lineHeight:i=15,font:a}){const{majorAxis:s,minorAxis:l,dock:u}=r,{minorCenter:c}=o,{fontSize:d,fontFamily:f,fontStyle:p,fontWeight:m,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:za({title:e.title,font:a,ellipsis:Ra(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||f,fontStyle:e.fontStyle||p,fontWeight:e.fontWeight||m,textDecoration:e.textDecoration||h,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:u};return g[l]=c,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=Ba,padding:u={}}=a,{top:c=_a,bottom:d=_a,left:f=_a,right:p=_a}=u,m=s.length,h={type:"rect",rx:l,ry:l,fill:o.background.fill,width:o.width+(f+p),height:o.height+(c+d),value:o.value,dock:r};return h[n]=e,h[t]=o.segment.position,h.x-=o.width/2+f,h.y-=m*i/2+c,h}({minorCenter:c,majorAxis:s,minorAxis:l,dock:u,label:e,lineHeight:i,background:g})),y=y.concat(o)})),y}};function Wa(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 Ua(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 Va.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,Va.getMaxTextWidth(e))+n+r}(t,n)}function Ka(e,t){return t?e.domain():[0,1]}function Ga(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 Ya(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 Xa(e,t){return e>9?t[1]:t[0]}function Ja({alignment:e,dockValue:t,oobs:n,style:r,rect:o,symbol:i,position:a,areaProps:s,radius:l,font:u}){const c=n?n.length:0;if(c<1)return[];const{flipXY:d,majorAxis:f,minorAxis:p,minorDimension:m,dock:h}=s,g=o[m],y=ta.createOob({oob:ta.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${f}`,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:c>9?"9+":c,title:ja({oobs:n,font:u,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[f]=a,[y,x,S]}const Za=e=>{const t=Aa({labelStyle:e}),n=ea.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}},Qa=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 es={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=Qa(this.settings.labels),s=Wa(this.chart,this.settings.formatter,e);Va.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:i,localeInfo:o});const{numMaxOobs:l,numMinOobs:u,filteredLabels:c}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:o})=>{if(n){const[r,o]=Ka(t,n);return Ga(e,r,o)}if(r){const t=o.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return Ga(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})},c&&c.length){const e=Za(t.label),{dock:n}=this.settings.layout;return Va.measureLabelsWidth(c,this.measureText),d=Ua(n,c,e),d}const f=Ya(this.measureText),p=l?Xa(l,f):0,m=u?Xa(u,f):0;return d=Math.max(p,m),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,u=Qa(this.settings.labels),{dock:c,rtl:d}=this.settings.layout,{padding:f}=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)}(c),m=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,f),{orientation:h,majorDimension:g}=p,{majorSize:y}=m,v=Za(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:M}=v,C=Wa(this.chart,this.settings.formatter,e),w=y;Va.addLabelTitles({labels:u,formatter:C,isContinuous:i,canBeContinuous:l,localeInfo:s}),Va.calculateLabelPositions({labels:u,scale:e,size:w,layoutService:r,orientation:h,rtl:d,isContinuous:i,isDimension:a});const[k,T]=Ka(e,i),{filteredLabels:q,lowerOobs:E,upperOobs:L,lowerCircleSize:N,upperCircleSize:O,lowerOobSpace:D,upperOobSpace:A}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:o,isContinuous:i,style:a,padding:s,measureText:l,prop:u="value"}){const{maxOobs:c,minOobs:d,filteredLabels:f}=Ga(e,t,n,u),p="scaledValue"!==u&&Da.getInvert({orientation:r,rtl:o,isContinuous:i}),m=function(e,t,n){return n?t:e}(d,c,p),h=function(e,t,n){return n?e:t}(d,c,p),g=m.length,y=h.length,v=Ya(l),b=Xa(g,v),x=Xa(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),M=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:f,lowerOobs:m,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:M}}({labels:u,minValue:k,maxValue:T,orientation:h,rtl:d,isContinuous:i,style:n,padding:f,measureText:this.measureText,prop:i?"value":"scaledValue"}),I=D,R=y-A;Fa(E),Fa(L);const P=Ja({alignment:0,dockValue:0,oobs:E,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+N/2,areaProps:p,radius:N/2,font:b}),z=Ja({alignment:1,dockValue:1,oobs:L,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+O/2),areaProps:p,radius:O/2,font:b});Va.addLabelsInfo({labels:q,scale:e,majorSize:y,lowerLimit:I,upperLimit:R,labelStyle:v,lineHeight:x,gap:S,maxLabelWidth:M,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:i,isDimension:a}),va.layout(q.map((e=>e.segment)),I,R,n.label.gap);const j=q.filter((e=>va.isInside(e.segment,I,R,i)));return Va.createLabels({labels:j,style:n.label,maxLabelWidth:M,areaProps:p,area:m,lineHeight:x,font:b,theme:o}).concat([...P,...z])}};var ts={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function ns(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...u}=t,c=ie(!0,{},{...n,qHyperCube:{...u,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=ts;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(c,e)&&i(c,e,null);else{const e=t[0],n=t[1].split("].")[1];o(c,e,[]).forEach((e=>{void 0!==o(e,n)&&i(e,n,null)}))}})),c}var rs={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,u=a.y-s.y,c=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=c,e.x2+=c):"text"===e.type&&(e.x+=c)})),"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+=c: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+c)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=u,e.y2+=u+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=ns(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=ns(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:os,extractInfoFromInputValue:is,resolveValue:as}=Da;var ss={resolveValue:as,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=os({refLineLayout:e,layoutService:n});return is(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=os({refLineLayout:e,layoutService:n});return is(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:o}=n.meta,i=os({refLineLayout:e,layoutService:n});return r[i]&&o?r[i].qText:i},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=os({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:o}=t;return o[r]}};const ls=({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:o,dockService:i,chart:a,scale:s,axis:l,invert:u,component:c,isContinuous:d})=>{var f,p;const m={dir:l,line:{strokeWidth:(null==t||null===(f=t.style)||void 0===f?void 0:f.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?(m.scale=s,m.value=t.refLineExpr.value):(m.valueInfo=ss.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),m.value=()=>{var e;const o=Da.getScaledPosition({scale:a.scale(s),value:ss.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:m.valueInfo,size:null===(e=a.component(c))||void 0===e?void 0:e.rect["horizontal"===i.meta.major.orientation?"width":"height"],align:t.align,invert:u,layoutService:r,isContinuous:d});return Number.isNaN(o)?void 0:o}),m};function us({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:o,animationsEnabled:i,chart:a,scale:s,axis:l,rtl:u,key:c,mainComponentKey:d,path:f,minimumLayoutMode:p}){const m=e?t.dimensionRefLines:f?t.query.getRefLines(f):t.measureRefLines;if(!m.length)return!1;const h={key:c,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:rs.lines.trackBy,compensateForLayoutChanges:rs.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==o.meta.major.orientation||!u),y=!e||n.meta.isContinuous;return m.forEach((i=>{h.lines[l].push(ls({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 cs={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},ds=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:o,scale:i,formatter:a,dock:s,key:l,rtl:u,theme:c,isContinuous:d,localeInfo:f})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:o,formatter:a,scale:i,layoutService:t,layout:{dock:s,rtl:u},theme:c,isContinuous:d,isDimension:e,localeInfo:f,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,fontStyle:r.referenceLine.label.name.fontStyle,fontWeight:r.referenceLine.label.name.fontWeight,textDecoration:r.referenceLine.label.name.textDecoration,padding:{top:2,bottom:2,left:u?2:4,right:u?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:rs.refLineLabels.trackBy,compensateForLayoutChanges:rs.refLineLabels.compensateForLayoutChanges}}),fs=({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:u}=e,{fontSize:c,fontFamily:d,fontStyle:f,fontWeight:p,textDecoration:m}=u||{},h={align:l,text:e.label,fill:e.coloredBackground?i.getContrastingColorTo(s):s,fontSize:c,fontFamily:d,fontStyle:f,fontWeight:p,textDecoration:m,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=()=>ss.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueText=()=>ss.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueInfo=()=>ss.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),h};function ps({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:o,dock:i,scale:a,style:s,formatter:l,theme:u,localeInfo:c,rtl:d,key:f,path:p}){const m=e?t.dimensionRefLineLabels:p?t.query.getRefLineLabels(p):t.measureRefLineLabels;if(!m.length)return[];const h=[],g=!e||n.meta.isContinuous,y=m.map((e=>fs({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:u,isContinuous:g})));return h.push(ds({isDimension:e,rtl:d,style:ie(!0,cs,s),dock:i,key:f,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:o,theme:u,isContinuous:g,localeInfo:c})),h}const ms={combineBounds(e){let t=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE;return e.forEach((e=>{e&&(t=Math.min(t,e.x,e.x+e.width),n=Math.max(n,e.x,e.x+e.width),r=Math.min(r,e.y,e.y+e.height),o=Math.max(o,e.y,e.y+e.height))})),{x:t,y:r,width:n-t,height:o-r}}},hs=(e,t,n)=>{if(!e)return Promise.resolve();let r=ra.generate(t,n);return ie(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0)):Promise.resolve()},gs=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))};function ys(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const vs={ref:null,refFn:e=>{var t;const n=null===(t=e.qHyperCubeDef.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)}));return`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0.qExpression`},change(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)})),r=he.getValue(e,`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0`),o=he.getValue(e,"color");r&&(r.id="colorByExpression",o&&(o.colorExpression=r.qExpression))}},bs={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"},xs={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"},Ss={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"},Ms={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"},Cs={d:"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"},ws={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"},ks={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"},Ts={single:"N",drillDown:"H",cyclic:"C"},qs={N:void 0,H:bs,C:Ss},Es=(e,t)=>{switch(e.qGrouping){case Ts.single:return;case Ts.drillDown:return{path:bs,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case Ts.cyclic:return{path:t?xs:Ss,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 Ls(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=ra.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 Ns(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)),u=ie(!0,{},a),c=u.qHyperCubeDef[r][s],d=u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=c.qAttributeDimensions,c.qAttributeDimensions=[],i||(d.qAttributeExpressions=c.qAttributeExpressions,c.qAttributeExpressions=[]),u.qHyperCubeDef[r][s]=d,u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=c,o&&o({oldItem:c,newItem:d,oldProperties:a,newProperties:u,model:e}),Ls(e,a,u)}))}function Os(e){return e.qGrouping===Ts.single?e.qFallbackTitle||"":e.title||""}const Ds=async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case Ts.drillDown:{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:bs,groupItem:!0,title:e.title,selected:!1,children:n}}case Ts.cyclic:{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:Ss,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:Os(e)}}},As=(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))},Is=async(e,t,n,r,o)=>{const i=await As(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===Ts.single&&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=qs[s],u=s!==Ts.single;return{id:n.qDef.cId,icon:l,groupItem:u,selected:!1,title:a,onSelect(e){Ns(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function Rs({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:u}){const c=l.qGrouping===Ts.single;return 0===r.length&&c?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await Ds(l,o,a,e),n=u?await Is(a,o,r,i,s):[];return(c||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function Ps(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Ts.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:Es(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===Ts.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:Os(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function zs({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:u}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await As(n,t),c=t.filter((e=>!o.includes(e.qDef.cId))),d=u?await Promise.all(c.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){Ns(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function js(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function Fs(){return Fs=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},Fs.apply(null,arguments)}var Bs,_s,Hs,$s,Vs,Ws={exports:{}};function Us(){if(_s)return Bs;_s=1;return Bs="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ks(){if($s)return Hs;$s=1;var e=Us();function t(){}function n(){}return n.resetWarningCache=t,Hs=function(){function r(t,n,r,o,i,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Gs(){return Vs||(Vs=1,Ws.exports=Ks()()),Ws.exports}var Ys=ee(Gs()),Xs={black:"#000",white:"#fff"},Js={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Zs={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Qs={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},el={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},tl={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},nl={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},rl={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 ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ol.apply(this,arguments)}function il(e){return il="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},il(e)}function al(e){return e&&"object"===il(e)&&e.constructor===Object}function sl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?ol({},e):e;return al(e)&&al(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(al(t[o])&&o in e?r[o]=sl(e[o],t[o],n):r[o]=t[o])})),r}function ll(e){var t=function(e,t){if("object"!=il(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=il(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==il(t)?t:t+""}function ul(e,t,n){return(t=ll(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cl(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 dl(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 fl(e){if(e.type)return e;if("#"===e.charAt(0))return fl(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(cl(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 pl(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 ml(e){var t="hsl"===(e=fl(e)).type?fl(function(e){var t=(e=fl(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])),pl({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 hl(e,t){return e=fl(e),t=dl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,pl(e)}function gl(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function yl(e,t){if(null==e)return{};var n,r,o=gl(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vl=["xs","sm","md","lg","xl"];function bl(e,t,n){var r;return ol({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")),ol({paddingLeft:t(2),paddingRight:t(2)},n,ul({},e.up("sm"),ol({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},ul(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),ul(r,e.up("sm"),{minHeight:64}),r)},n)}var xl={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:Xs.white,default:rl[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}},Sl={text:{primary:Xs.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:rl[800],default:"#303030"},action:{active:Xs.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 Ml(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=fl(e),t=dl(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 pl(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=fl(e),t=dl(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 pl(e)}(e.main,i)))}function Cl(e){var t=e.primary,n=void 0===t?{light:Qs[300],main:Qs[500],dark:Qs[700]}:t,r=e.secondary,o=void 0===r?{light:Zs.A200,main:Zs.A400,dark:Zs.A700}:r,i=e.error,a=void 0===i?{light:Js[300],main:Js[500],dark:Js[700]}:i,s=e.warning,l=void 0===s?{light:nl[300],main:nl[500],dark:nl[700]}:s,u=e.info,c=void 0===u?{light:el[300],main:el[500],dark:el[700]}:u,d=e.success,f=void 0===d?{light:tl[300],main:tl[500],dark:tl[700]}:d,p=e.type,m=void 0===p?"light":p,h=e.contrastThreshold,g=void 0===h?3:h,y=e.tonalOffset,v=void 0===y?.2:y,b=yl(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=ml(e),r=ml(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Sl.text.primary)>=g?Sl.text.primary:xl.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=ol({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(cl(4,t));if("string"!=typeof e.main)throw new Error(cl(5,JSON.stringify(e.main)));return Ml(e,"light",n,v),Ml(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},M={dark:Sl,light:xl};return sl(ol({common:Xs,type:m,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(c),success:S(f),grey:rl,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},M[m]),b)}function wl(e){return Math.round(1e5*e)/1e5}function kl(e){return wl(e)}var Tl={textTransform:"uppercase"},ql='"Roboto", "Helvetica", "Arial", sans-serif';function El(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?ql:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,u=n.fontWeightRegular,c=void 0===u?400:u,d=n.fontWeightMedium,f=void 0===d?500:d,p=n.fontWeightBold,m=void 0===p?700:p,h=n.htmlFontSize,g=void 0===h?16:h,y=n.allVariants,v=n.pxToRem,b=yl(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},M=function(e,t,n,r,i){return ol({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===ql?{letterSpacing:"".concat(wl(r/t),"em")}:{},i,y)},C={h1:M(l,96,1.167,-1.5),h2:M(l,60,1.2,-.5),h3:M(c,48,1.167,0),h4:M(c,34,1.235,.25),h5:M(c,24,1.334,0),h6:M(f,20,1.6,.15),subtitle1:M(c,16,1.75,.15),subtitle2:M(f,14,1.57,.1),body1:M(c,16,1.5,.15),body2:M(c,14,1.43,.15),button:M(f,14,1.75,.4,Tl),caption:M(c,12,1.66,.4),overline:M(c,12,2.66,1,Tl)};return sl(ol({htmlFontSize:g,pxToRem:S,round:kl,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:f,fontWeightBold:m},C),b,{clone:!1})}function Ll(){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 Nl=["none",Ll(0,2,1,-1,0,1,1,0,0,1,3,0),Ll(0,3,1,-2,0,2,2,0,0,1,5,0),Ll(0,3,3,-2,0,3,4,0,0,1,8,0),Ll(0,2,4,-1,0,4,5,0,0,1,10,0),Ll(0,3,5,-1,0,5,8,0,0,1,14,0),Ll(0,3,5,-1,0,6,10,0,0,1,18,0),Ll(0,4,5,-2,0,7,10,1,0,2,16,1),Ll(0,5,5,-3,0,8,10,1,0,3,14,2),Ll(0,5,6,-3,0,9,12,1,0,3,16,2),Ll(0,6,6,-3,0,10,14,1,0,4,18,3),Ll(0,6,7,-4,0,11,15,1,0,4,20,3),Ll(0,7,8,-4,0,12,17,2,0,5,22,4),Ll(0,7,8,-4,0,13,19,2,0,5,24,4),Ll(0,7,9,-4,0,14,21,2,0,5,26,4),Ll(0,8,9,-5,0,15,22,2,0,6,28,5),Ll(0,8,10,-5,0,16,24,2,0,6,30,5),Ll(0,8,11,-5,0,17,26,2,0,6,32,5),Ll(0,9,11,-5,0,18,28,2,0,7,34,6),Ll(0,9,12,-6,0,19,29,2,0,7,36,6),Ll(0,10,13,-6,0,20,31,3,0,8,38,7),Ll(0,10,13,-6,0,21,33,3,0,8,40,7),Ll(0,10,14,-6,0,22,35,3,0,8,42,7),Ll(0,11,14,-7,0,23,36,3,0,9,44,8),Ll(0,11,15,-7,0,24,38,3,0,9,46,8)],Ol={borderRadius:4};function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Al(e,t){if(e){if("string"==typeof e)return Dl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dl(e,t):void 0}}function Il(e){return function(e){if(Array.isArray(e))return Dl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Al(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 Rl(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,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Al(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 Pl(){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 zl={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)"},jl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fl(e){return"".concat(Math.round(e),"ms")}var Bl={easing:zl,duration:jl,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?jl.standard:n,o=t.easing,i=void 0===o?zl.easeInOut:o,a=t.delay,s=void 0===a?0:a;return yl(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Fl(r)," ").concat(i," ").concat("string"==typeof s?s:Fl(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))}},_l={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Hl(){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,u=void 0===l?{}:l,c=yl(e,["breakpoints","mixins","palette","spacing","typography"]),d=Cl(a),f=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=yl(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 u(e,t){var r=vl.indexOf(t);return r===vl.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[vl[r+1]]?n[vl[r+1]]:t)-a/100).concat(o,")")}return ol({keys:vl,values:n,up:l,down:function(e){var t=vl.indexOf(e)+1,r=n[vl[t]];return t===vl.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},s)}(n),p=Pl(s),m=sl({breakpoints:f,direction:"ltr",mixins:bl(f,p,o),overrides:{},palette:d,props:{},shadows:Nl,typography:El(d,u),spacing:p,shape:Ol,transitions:Bl,zIndex:_l},c),h=arguments.length,g=new Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return m=g.reduce((function(e,t){return sl(e,t)}),m)}var $l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Vl=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Wl(){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,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Vl.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[$l]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function Ul(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 Kl="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},Gl="object"===("undefined"==typeof window?"undefined":Kl(window))&&"object"===("undefined"==typeof document?"undefined":Kl(document))&&9===document.nodeType;function Yl(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,ll(r.key),r)}}function Xl(e,t,n){return t&&Yl(e.prototype,t),n&&Yl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jl(e,t){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jl(e,t)}function Zl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jl(e,t)}function Ql(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var eu={}.constructor;function tu(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(tu);if(e.constructor!==eu)return e;var t={};for(var n in e)t[n]=tu(e[n]);return t}function nu(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=tu(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var ru=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},ou=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+=ru(e[n]," ");else t=ru(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function iu(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function au(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function su(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=iu(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=au(f+":"+u+ou(p)+";",i))}}else for(var m in a){var h=a[m];null!=h&&(r&&(r+=l),r+=au(m+":"+u+ou(h)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=au(g+":"+u+ou(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),au(""+e+u+"{"+r,--i)+au("}",i)):r}var lu=/([[\].#*$><+~=|^:(),"'`\s])/g,uu="undefined"!=typeof CSS&&CSS.escape,cu=function(e){return uu?uu(e):e.replace(lu,"\\$1")},du=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}(),fu=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(Ql(Ql(o)),s),o.selectorText="."+cu(o.id)),o}Zl(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]=ou(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ol({},e,{allowEmpty:!0}):e;return su(this.selectorText,this.style,n)},Xl(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}(du),pu={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new fu(e,t,n)}},mu={indent:1,children:!0},hu=/@([\w-]+)/,gu=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(hu);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Bu(ol({},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=mu);var t=iu(e).linebreak;if(null==e.indent&&(e.indent=mu.indent),null==e.children&&(e.children=mu.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),yu=/@container|@media|@supports\s+/,vu={onCreateRule:function(e,t,n){return yu.test(e)?new gu(e,t,n):null}},bu={indent:1,children:!0},xu=/@keyframes\s+([\w-]+)/,Su=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(xu);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:cu(a(this,i)),this.rules=new Bu(ol({},n,{parent:this})),t)this.rules.add(s,t[s],ol({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=bu);var t=iu(e).linebreak;if(null==e.indent&&(e.indent=bu.indent),null==e.children&&(e.children=bu.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}(),Mu=/@keyframes\s+/,Cu=/\$([\w-]+)/g,wu=function(e,t){return"string"==typeof e?e.replace(Cu,(function(e,n){return n in t?t[n]:e})):e},ku=function(e,t,n){var r=e[t],o=wu(r,n);o!==r&&(e[t]=o)},Tu={onCreateRule:function(e,t,n){return"string"==typeof e&&Mu.test(e)?new Su(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&ku(e,"animation-name",n.keyframes),"animation"in e&&ku(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 wu(e,r.keyframes);default:return e}}},qu=function(e){function t(){return e.apply(this,arguments)||this}return Zl(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ol({},e,{allowEmpty:!0}):e;return su(this.key,this.style,n)},t}(du),Eu={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new qu(e,t,n):null}},Lu=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=iu(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=su(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return su(this.at,this.style,e)},e}(),Nu=/@font-face/,Ou={onCreateRule:function(e,t,n){return Nu.test(e)?new Lu(e,t,n):null}},Du=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 su(this.key,this.style,e)},e}(),Au={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Du(e,t,n):null}},Iu=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}(),Ru={"@charset":!0,"@import":!0,"@namespace":!0},Pu={onCreateRule:function(e,t,n){return e in Ru?new Iu(e,t,n):null}},zu=[pu,vu,Tu,Eu,Ou,Au,Pu],ju={process:!0},Fu={force:!0,process:!0},Bu=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,u=r.scoped,c=ol({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+cu(this.classes[d]));var f=nu(d,t,c);if(!f)return null;this.register(f);var p=void 0===c.index?this.index.length:c.index;return this.index.splice(p,0,f),f},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=ol({},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 fu?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Su&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof fu?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Su&&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=ju);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 u=t.style[l];u!==s[l]&&t.prop(l,u,Fu)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,Fu)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=iu(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}(),_u=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=ol({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Bu(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}(),Hu=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}(),$u=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=gl(t,["attached"]),o=iu(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},Xl(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Vu=new $u,Wu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Uu="2f1acc6c3a606b082e5eef5e54414ffb";null==Wu[Uu]&&(Wu[Uu]=0);var Ku=Wu[Uu]++,Gu=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")+Ku+o+t:i+n.key+"-"+Ku+(o?"-"+o:"")+"-"+t}},Yu=function(e){var t;return function(){return t||(t=e()),t}},Xu=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Ju=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=ou(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},Zu=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Qu=function(e,t){return e.selectorText=t,e.selectorText===t},ec=Yu((function(){return document.querySelector("head")}));function tc(e){var t=Vu.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=ec(),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 nc=Yu((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),rc=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]},oc=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ic=function(){function e(e){this.getPropertyValue=Xu,this.setProperty=Ju,this.removeProperty=Zu,this.setSelector=Qu,this.hasInsertedRules=!1,this.cssRules=[],e&&Vu.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=nc();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=tc(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 ec().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=oc(n,t);if(!1===(o=rc(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=oc(n,t),l=rc(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 _u&&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}(),ac=0,sc=function(){function e(e){this.id=ac++,this.version="10.10.0",this.plugins=new Hu,this.options={id:{minify:!1},createGenerateId:Gu,Renderer:Gl?ic:null,plugins:[]},this.generateId=Gu({minify:!1});for(var t=0;t<zu.length;t++)this.plugins.use(zu[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=ol({},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===Vu.index?0:Vu.index+1);var r=new _u(e,ol({},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(),Vu.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=ol({},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=nu(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}(),lc=function(e){return new sc(e)},uc="object"==typeof CSS&&null!=CSS&&"number"in CSS;function cc(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=cc(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
7
|
+
System.register(["picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules","react","react-dom","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,u,c,d,f,p,m,h,g,y,v,b,x,S,M,C,w,k,T,q,E,N,L,O,D,A,I,R,P,z,j,F,B,_,H,$,V,W,U,K,G,Y,X;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.getValue,i=e.setValue,a=e.debouncer,s=e.throttler,l=e.cache,u=e.storage,c=e.memoize,d=e.selectionService,f=e.colorService,p=e.disclaimerService,m=e.layoutService,h=e.dockService,g=e.themeService,y=e.pluginService,v=e.fontResolver},function(e){b=e.default,x=e,S=e.Children,M=e.isValidElement,C=e.cloneElement,w=e.forwardRef,k=e.useContext},function(e){T=e,q=e.default},function(e){E=e.useTranslator,N=e.useEmbed,L=e.useTheme,O=e.useState,D=e.useDeviceType,A=e.useAppLayout,I=e.useEffect,R=e.useElement,P=e.useOptions,z=e.useLayout,j=e.useAction,F=e.useStaleLayout,B=e.useModel,_=e.useApp,H=e.usePlugins,$=e.useSelections,V=e.useConstraints,W=e.useRect,U=e.usePromise,K=e.onTakeSnapshot,G=e.useImperativeHandle,Y=e.useRenderState},function(e){X=e.default}],execute:function(){e("default",(function(e){const i=function(){const e=t();return e.use(n),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Q(e))};return void e.interaction("hammer",Q(Hammer))}(r)),e.use(function(){return function(e){e.renderer("react",function(){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",q.render(function(e,t){return b.createElement(Vd,{generateClassName:t},b.createElement(lf,{theme:am},e))}(e,sm),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&q.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(q.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}()),e.component("data-title",function(e){function t(e){return!e.isDimension&&he.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}function n(e){return e.isDimension&&he.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.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:r,explicitItemInfos:o,hyperCube:i,hyperCubeDef:a,isDimension:s,minWidth:l,model:u,onChangeToAlternative:c,padding:d,rtl:f,selections:p,skipAttributeExpressions:m,translator:h,supportConditional:g=!1},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!f?"ltr":"rtl",x=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};"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");return n}(y,this.rect),S=a&&a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef,M=S&&S[s?"qDimensions":"qMeasures"]||[],C=o||i[s?"qDimensionInfo":"qMeasureInfo"],w=s?Rs:zs,k=s?Ps:js,T=Boolean(u&&u.colorSupport&&u.modifiers),q=T&&(n(this.settings.settings)||t(this.settings.settings)),E=C.map(((t,n)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:n,a=k(t,i,u,e),v=n===C.length-1,x=Boolean(e)&&s&&"N"!==t.qGrouping,S=T||x?w({column:i,activeInfo:t,altList:M,app:e,dir:f?"rtl":"ltr",dock:im(y),model:u,onChange:c,skipAttributeExpressions:m,translator:h,allowChangeOfAlternatives:T}):void 0;return b.createElement(b.Fragment,{key:t.cId},b.createElement(om,{chartId:null!==(o=null==u?void 0:u.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:S,titleData:a,model:u,translator:h,selections:p,disabled:r(),style:this.style,isDimension:s,padding:d,minWidth:l,hasAlternative:q,supportConditional:g}),!v&&b.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return b.createElement("div",{style:x,dir:v},E)}}}(e.renderer("svg")()))}}()),e.use(vC),e.renderer("react-qcm",aC),e.component("box-sliced-hat",gC),e.component("box-out-of-bounds",dC),e.component("disclaimer",tC),e.component("scrollbar",jg),e.component("scroll-hint",Xi),e.component("reference-line-labels",es),e.component("axis-overlay",Jh.picassoComponents.axisOverlay),e.component("time-axis",Jh.picassoComponents.timeAxis),e.scale("q-time-axis",Jh.picassoScales.time),e}();return{qae:ZC(e),ext:ME(e),component(){const t=function({env:e}){var t;const{flags:n}=e,r=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.isUnsupportedFeature,o=E();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(QC).forEach((t=>{e.add(QC[t])}))}}(e.translator);const i=N(),a=L(),[s,l]=O(),u=D(),c=A(),{qLocaleInfo:d}=c;return I((()=>{l({translator:o,theme:a,embed:i,deviceType:u,localeInfo:d,isUnsupportedFeature:r,flags:n})}),[d,r,o.language(),a.name(),u]),s}({env:e}),{viewState:n,viewCache:r}=function(){const[e]=O((()=>l())),[t]=O((()=>u({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:e,viewState:t}}(),c=function({picasso:e}){const t=R(),n=P(),[r,o]=O();return I((()=>{if(!e)return()=>{};t.style.overflow="hidden";const r=e({renderer:{prio:[(null==n?void 0:n.renderer)||"canvas"]}}).chart({element:t,data:[],settings:{}});o(r);const{destroy:i}=r;return()=>{i()}}),[n.renderer]),r}({picasso:i}),d=function({picasso:e,chart:t,environment:n,viewState:r,viewCache:i}){const a=F(),u=B(),c=_(),d=H(),f=$(),p=P(),[v,b]=O(),[x,S]=O(),[M,C]=O(),w=V(),k=function(){const[e]=O({}),[t]=O({}),n=function(){var e,t;const n=z(),r=E(),o=!(null==n||null===(e=n.qSelectionInfo)||void 0===e||!e.qInSelections),i=!(null==n||null===(t=n.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qIsOneAndOnlyOne),[a,s]=O(!1),[l,u]=O(!1),[c,d]=O({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),f=e=>{u("boolean"==typeof e?e:!l)};return j((()=>(d({key:"lasso",action:f,enabled:()=>a,active:()=>l}),{key:"lasso",label:r.get(l?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:pk,hidden:!a||!o||i,active:l,action:f})),[o,i,l,a,r.language()]),{get:()=>c,setAllows:e=>{s(!!e)}}}(),[r,o]=O();return I((()=>{const r={};r.scroll={key:"scroll",isActive:!0,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled(){const{layoutService:n,discrete:r}=e;return t.allowScroll&&((null==n?void 0:n.meta.isContinuous)||(null==r?void 0:r.query.getCanScroll()))}},r.interact={key:"interact",isEnabled:!0,enabled:()=>t.allowInteract},r.tooltip={key:"tooltip",isActive:!0,isEnabled:!0,action(e){this.isActive=!!e},active(){return this.isActive},enabled:()=>t.allowTooltip},r.select={key:"select",isActive:!1,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled:()=>t.allowSelect},r.lasso=n.get(),Object.keys(r).forEach((e=>mk(r[e]))),o(r)}),[]),I((()=>{r&&n&&(r.lasso={...r.lasso,...n.get()})}),[n]),{get:()=>r,setAllows:e=>{Object.assign(t,e),n.setAllows(null==e?void 0:e.allowSelect)},setContext:t=>{Object.assign(e,t)},destroy:()=>{Object.keys(r).forEach((e=>r[e].removeAllListeners()))}}}();return I((()=>{if(!t)return()=>{};const e=k.get(),n=Sk({chart:t,actions:e,selections:f});return S(e),C(n),()=>{n.destroy(),k.destroy()}}),[t]),I((()=>{if(!w)return;const e={allowScroll:!w.active,allowInteract:!w.active,allowTooltip:!w.passive,allowSelect:!w.select&&!w.active};k.setAllows(e)}),[w]),I((()=>{if(!M||!n)return;const{theme:f,translator:v,localeInfo:S,flags:C,embed:w}=n,{direction:T="ltr"}=p,q=m({source:a,metaAdditionsFn:vk(C),experimental:{filter:!0}});M.setFilteredFields(q.meta.filteredFields);const E=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(q.getLayout())?m({source:q.getLayout()}):void 0,N=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:a,options:p}),L=function({layoutService:e,viewCache:t,options:n}){const r={};return r.fields=function(e){const{meta:t}=e,n={majorGroup:t.isGroupedByDimension?"qDimensionInfo/0":void 0,majorStack:t.isStacked?"qDimensionInfo/0":void 0,major:t.isDimensionless?void 0:"qDimensionInfo/"+(t.dimensionCount-1),majors:e.getHyperCubeValue("qDimensionInfo").map(((e,t)=>`qDimensionInfo/${t}`)),minor:e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>`qMeasureInfo/${t}`))};return n.majorNumeric=`${t.isStackedByDimension?n.majorStack:n.major}:numeric`,n}(e),r.selectionDimensionIdx=Mk(e.getHyperCube()),r.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,r.selectionDimensionProp=e=>void 0===r.selectionDimensionIdx||void 0!==e&&r.selectionDimensionIdx!==e?{}:{selectionDimension:{field:r.selectionDimensionIdx}},r.animations={enabled:()=>!1!==n.chartAnimations&&(!(r.animations.isPartialUpdating||r.animations.isSizeChanging||r.animations.hasSlicedHats)&&!rs.propertiesHaveChanged({viewCache:t,layout:e.getLayout()})),isPartialUpdating:!1,isSizeChanging:!1,hasSlicedHats:!1},r}({layoutService:q,viewCache:i,options:p}),O=h({chart:t,layoutService:q,config:{logicalSize:N,rtl:"rtl"===T},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),D=Tk({layoutService:q}),A=g({theme:f,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),I=Jh.model({model:u,layoutService:q,viewCache:i,viewState:r}),R=function({enigma:e,layoutService:t,viewModel:n,definitionPath:r,reducedHyperCubePath:o},i={}){const a=function(e,t,n="/qHyperCubeDef"){return{fetch(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Se).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,this.settings())},settings(){const e=t.getHyperCubeValue("qDimensionInfo"),r=t.meta.isStacked&&e.length>1?1:0,o=t.getHyperCubeValue("qMeasureInfo");return{path:n,rect:{qTop:0,qLeft:r,qWidth:e.length+o.length+r,qHeight:Math.min(2e3,1e4/(o.length+1))},zoomLevel:-1,filter:"D1"}}}}(e,t,r),s=function(e,t="reducedHyperCube"){return{fetch:()=>Promise.resolve({reducedCube:e.getLayoutValue(t)||e.getHyperCube()})}}(t,o),l=function(e){return{fetch:()=>{const t=e.getHyperCube(),n={...t,qDataPages:t.qDataPages.slice()};return Promise.resolve({reducedCube:n})}}}(t),u=function({layoutService:e}){const{isSnapshot:t,isStackedByDimension:n}=e.meta,r=e=>{e.qDimensionInfo.unshift({key:"dummy-patch-dimension"})};return r.should=e=>t&&n&&1===e.qDimensionInfo.length,r}({layoutService:t}),c={mode:{isReduced:!1}};return{fetch(){if(t.meta.isSnapshot)return s.fetch();if(t.meta.isContinuous)return l.fetch();if(!t.meta.isStacked){if(t.getHyperCubeValue("qSize.qcy",NaN)===t.getHyperCubeValue("qDataPages.0.qArea.qHeight",NaN))return l.fetch()}return a.fetch()},model:()=>c,update(e){var r;u.should(e)&&u(e),c.mode=ie(c.mode,t.meta),c.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,c.mode.isStackedByDimension=c.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),c.mode.isStackedByMeasure=c.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),c.fields={major:c.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:c.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},c.scales={major:gk.SCALE.REDUCED.MAJOR,minor:gk.SCALE.REDUCED.MINOR},c.cube=e,i.qDataPages=e.qDataPages},fetchMinMaxData(){if(i.qDataPages)return Promise.resolve(i.qDataPages);let n=a.settings();const r="K"===t.getHyperCubeValue("qMode")?1:n.rect.qHeight;return n=ie(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=c.cube}}}({enigma:u,layoutService:q,viewModel:L});!function({layoutService:e,viewState:t,viewStateOptions:n={}}){const r=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):n;t.preventSet("scrollOffset",r.scrollOffset),t.preventSet("legendScrollOffset",r.legendScrollOffset||0),r.zoom&&t.preventSet("zoom",r.zoom)}({layoutService:q,viewState:r,viewStateOptions:null==p?void 0:p.viewState});const P=wk({picasso:e,model:u,app:c,translator:v,localeInfo:S,theme:f,continuousDataModel:I,layoutService:q,legendLayoutService:E,reducedDataModel:R}),z=function({layoutService:e,themeService:t,colorService:n}){const r=t.getStyles(),o=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("axis"))||void 0===e||null===(e=e.axis)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.axis.title.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.axis.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.axis.title.color}}},label:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("axis"))||void 0===e||null===(e=e.axis)||void 0===e||null===(e=e.label)||void 0===e?void 0:e.name,l=n.getMain().getPaletteColor;return{fill:null!=s&&null!==(t=s.color)&&void 0!==t&&t.color?l(null==s?void 0:s.color):r.axis.label.name.color,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.axis.label.name.fontSize,fontFamily:null!==(a=null==s?void 0:s.fontFamily)&&void 0!==a?a:r.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.title.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.legend.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.title.color}}},label:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.label,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.label.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.legend.label.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.label.color}}}},label:{getStyle:()=>{var e,t,i,a,s;const l=null===(e=o("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.value,u=n.getMain().getPaletteColor;return{fill:null!=l&&null!==(t=l.color)&&void 0!==t&&t.color?u(null==l?void 0:l.color):r.label.value.color,useContrastColor:null===(i=null==l?void 0:l.useContrastColor)||void 0===i||i,fontSize:null!==(a=null==l?void 0:l.fontSize)&&void 0!==a?a:r.label.value.fontSize,fontFamily:null!==(s=null==l?void 0:l.fontFamily)&&void 0!==s?s:r.label.value.fontFamily}}}}}({layoutService:q,themeService:A,colorService:P}),j=Gw({layoutService:q,viewState:r,colorModel:{settings:()=>P.getMain().getSettings(),resolveUIColor:e=>P.getMain().getPaletteColor(e)},chart:t,env:n,keys:{colorScale:gk.SCALE.MAIN.COLOR},isEnabled:()=>!q.meta.isGroupedByDimension&&(!q.meta.isStackedByDimension||C.isEnabled("TRENDLINES_STACKED_DIM"))&&!q.meta.isDimensionless});_C.attrExpr.updateProperties(u,a);const F=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){const l=e.tooltip&&!e.tooltip.auto;return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:l,utils:AC,miniChartToken:{},embed:s}}({layout:a,app:c,model:u,picasso:e,chart:t,translator:v,localeInfo:S,embed:w,extractDimsAndNode:bk.extractDimsAndNode});let B;q.meta.isDiscrete&&(B=function({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:a,trendLineModel:u,itemWidths:c,viewState:d,rtl:f,options:{definitionPath:p="/qHyperCubeDef",getRect:m,axisKey:h,renderer:g,areaBuffer:y,processDataPage:v=(()=>{})}={}}){const b=l(),x=function({qMode:e}){switch(e){case"S":default:return sw;case"K":return lw;case"T":return uw}}({qMode:i.getHyperCubeValue("qMode")}),S=function({state:e,contains:t}){return e.set(cw,[]),{add:t=>{const n=e.get(cw);n.length=0,n.push(t)},getCurrent:()=>e.get(cw)[0],getAll:()=>e.get(cw),contains:n=>t(e.get(cw)[0],n)}}({state:b,contains:x.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:i,dataStore:S,composition:x});const M=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:y}),C=function({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:o=yw,definitionPath:i,processDataPage:a}){const{slicer:l,cacheWarden:u,request:c}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:o,process:i,connectionless:a,processDataPage:s}){const l=(l,{onProcessing:u}={})=>{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()&&u&&u();const c=r(l);return i(o(c)).then((n=>(s(n),e.add(n),t(n,l))))};return l}({dataStore:e,slice:l,warden:u({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:hw({layoutService:r}),request:c({definitionPath:i}),process:gw(n),connectionless:r.meta.isSnapshot,processDataPage:a}),f=s(((e,{onProcessing:t,onData:n})=>{d(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==ew)throw e}))}),ow);return function(e,{onProcessing:t=tw,onDataPage:n=tw}={}){f(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),o.command.update(),n(e)}})}}({dataStore:S,composition:x,enigmaModel:r,layoutService:i,trendLineModel:u,definitionPath:p,processDataPage:v}),w=function({chart:e,componentKey:t,state:n,dataStore:r,pageData:o,layoutService:i,dockService:a,itemWidths:s,getRect:l,axisKey:u,renderer:c,areaBuffer:d,viewState:f,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 m=function({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:o,getItemWidths:i,axisKey:a,renderer:s,areaBuffer:l,rtl:u}){const{inTotal:c,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;if(t)return vw;if(!n)return bw;return r?Cw:qw}({layoutService:r}),p=()=>"horizontal"===o.meta.major.orientation?t().width:t().height,m=e=>e?p()/e:0,h=(e,t)=>-(e-t)*m(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=c({layoutService:r});return{inTotal:l,inView:Ew({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(nw/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return m(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,a=Math.min(1,i+e/o);return[i,a]}({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=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:p(),upperBound:h(t.inTotal,t.inView)});return"horizontal"===o.meta.major.orientation&&u?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*m(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(m(r)*n)}}}}({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:i,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:u,renderer:c,areaBuffer:d,rtl:p}),h=()=>{const e=m.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=m.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=({items:e})=>{const t=i.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?m.getUpperBound({items:e}):0;if("number"==typeof n)return m.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:o}=n,a=1===t&&o?o-e.inView:r;return m.convert.itemToPixelOffset({itemOffset:a,items:e})},v=e=>{const[{qArea:t}]=i.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))},b=e=>{const t=Date.now(),r=h(),i=g({pixelOffset:e,items:r}),a=m.getArea({itemOffset:i.start.item,items:r});if(v(a))return void((m.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==i.start.item)&&(n.set("finished",t),n.set("scaleRange",m.getScaleRange({offsets:i.start,items:r})),f.preventSet("viewRange",m.getViewRange({pixelOffset:i.start.pixel,items:r})),f.set("scrollOffset",{start:i.start.item,end:i.end.item})));f.preventSet("viewRange",m.getViewRange({pixelOffset:i.start.pixel,items:r}));const s=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",m.getScaleRange({offsets:i.start,items:r})),f.set("scrollOffset",{start:i.start.item,end:i.end.item}))};o(a,{onProcessing:s,onDataPage:s})};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 i=h();n.set("itemSize",m.getItemSize({items:i}));const a=y({items:i}),u=g({pixelOffset:a,items:i});f.preventSet("viewRange",m.getViewRange({pixelOffset:u.start.pixel,items:i}));const c=m.getArea({itemOffset:u.start.item,items:i});return new Promise((e=>{o(c,{onDataPage:()=>{n.set("scaleRange",m.getScaleRange({offsets:u.start,items:i})),f.preventSet("scrollOffset",{start:u.start.item,end:u.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;b(t)},scrollToRelative(e){const t=n.get("items"),r=m.convert.relativeToPixelOffset({relativeOffset:e,items:t});b(r)}}}({chart:e,componentKey:n,state:b,dataStore:S,pageData:C,layoutService:i,dockService:a,itemWidths:c,getRect:m,axisKey:h,renderer:g,areaBuffer:M,viewState:d,rtl:f}),k=function({layoutService:e,dataStore:t}){return function(n){const r=o(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:S}),T=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{gestures:[pw({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:mw({chart:e,actions:t,componentKey:n,scroller:i})}}}}({chart:e,actions:t,componentKey:n,dockService:a,rtl:f,scroller:w});return{interactions:T,query:{getCanScroll:()=>w.enabled(),getItemSize:()=>w.itemSize(),getScaleRange:()=>w.scaleRange(),getCurrentDataPage:()=>S.getCurrent()},command:{initialize:()=>w.initialize(),scrollTo:e=>w.scrollToRelative(e),setSnapshotData:e=>k(e)}}}({chart:t,actions:x,componentKey:gk.COMPONENT.BAR,enigmaModel:u,layoutService:q,dockService:O,trendLineModel:j,itemWidths:hk,viewState:r,rtl:"rtl"===T,options:{axisKey:gk.COMPONENT.BAR_AXIS,renderer:e.renderer("svg")()}}));const _=function({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:o}=e.meta,i=e.getLayout(),a="K"===i.qHyperCube.qMode,s=be.dimensionless(i),l=Da.getMeasureRefLines(i),u=Da.getDimensionRefLines(i,s),c=Da.getMeasureRefLineLabels(i),d=Da.getDimensionRefLineLabels(i,s);let f={},p={};const m=t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:o}=n;return Da.isOutOfRange({value:t,qMin:r,qMax:o})}return!1},h=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 Da.isOutOfDataPages({label:n,dataPages:o})}return!0},g=()=>!(!u||!u.length)&&!u.every((t=>{const n=Da.getInputValue({refLineLayout:t,layoutService:e});return m(n)||h(n)})),y={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:u,measureRefLineLabels:c,dimensionRefLineLabels:d,dimensionRefLineInfo:p,dimensionValuesInfo:f,query:{getRefLines:e=>Da.getRefLines(i,e),getRefLineLabels:e=>Da.getRefLineLabels(i,e)},update:()=>{p=y.dimensionRefLineInfo,g()&&(f=Da.getDimensionValuesInfo({layout:i,canBeContinuous:r,discreteModel:t,layoutService:e}),y.dimensionValuesInfo=f,u.forEach((t=>{const n=Da.getInputValue({refLineLayout:t,layoutService:e});f[n]&&(p[n]?(p[n].innerValues=f[n].innerValues,p[n].minOrder=Math.min(p[n].minOrder,f[n].minOrder),p[n].maxOrder=Math.max(p[n].maxOrder,f[n].maxOrder),p[n].isMinOrderOk=p[n].isMinOrderOk||f[n].isMinOrderOk,p[n].isMaxOrderOk=p[n].isMaxOrderOk||f[n].isMaxOrderOk):p[n]={id:f[n].id,qText:f[n].qText,innerValues:f[n].innerValues,minOrder:f[n].minOrder,maxOrder:f[n].maxOrder,isMinOrderOk:f[n].isMinOrderOk,isMaxOrderOk:f[n].isMaxOrderOk},p[n].numInnerValues=(p[n].maxOrder||0)-(p[n].minOrder||0)+1)})))}};return y.update(),y}({layoutService:q,discreteModel:B}),H=function(e){const t={layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:gk.SCALE.MAIN.MINOR,MAJOR:gk.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:gk.COMPONENT.BAR,BAR_AXIS:gk.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:gk.COLLECTION.MAIN}}};return t}(q),$=y({picassoInstance:e,plugins:d||[],pluginArgs:H});k.setContext({discrete:B,layoutService:q}),b({discrete:B,continuous:Jh,legendLayoutService:E,layoutService:q,viewModel:L,dockService:O,themeService:A,styleService:z,continuousDataModel:I,reducedDataModel:R,colorService:P,trendLineModel:j,refLineModel:_,pluginService:$,customTooltipModel:F,selectionService:M,logicalSize:N,disclaimerService:D})}),[M,p,n,a]),v}({picasso:i,chart:c,environment:t,viewState:n,viewCache:r}),f=function({env:e,services:t}){var n;const r=_(),o=B(),i=Y(),a=function({enable:e=!0}={}){const t=B(),n=()=>Date.now().toString()+Math.random(),[r,o]=O(n()),i={properties:void 0};return I((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const r=()=>{t.getEffectiveProperties().then((e=>{const t=ie(!0,{},e);if(!i.properties)return void(i.properties=t);const r=function(e,t){var n,r,o,i;const a={properties:!1,exclude:!1};if(e===t)return a;const s=ie(!0,{},e),l=ie(!0,{},t);return a.exclude=!Zq(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=!Zq(s,l),a}(i.properties,t);i.properties=t,r.exclude&&!r.properties&&o(n())}))};return t.on("changed",r),r(),()=>{t.removeListener("changed",r)}}),[e]),r}({enable:!1===(null==t||null===(n=t.layoutService)||void 0===n||null===(n=n.meta)||void 0===n?void 0:n.isSnapshot)}),[s,l]=U((async()=>{if(!e||!t)return Promise.resolve();const{layoutService:n}=t,{isSnapshot:a,isStacked:s,isContinuous:l}=n.meta,u=[];return a||u.push(o.getEffectiveProperties()),Promise.all(u).then((async e=>{const t=e[0]||void 0;if(null!=t&&t.qHyperCubeDef){const e=n.getLayout(),a=ie(!0,{},t);if(Qq({properties:t,layout:e,isStacked:s,isContinuous:l,model:o,layoutService:n}))return i.pending(),gs(e)?o.setProperties(t).then((()=>{r.clearUndoBuffer()})):void await hs(o,a,t);i.restore()}return{properties:t}}))}),[e,t,a]);if(l&&!l.isHandled)throw l;return s}({env:e,services:d});!function({picasso:e,chart:t,services:n,environment:r,viewState:o,viewCache:i,bootstrapped:s}){const{width:l,height:u}=W(),c=B(),d=$(),f=P(),[p,m]=O(),[h,g]=O(),[y,v]=O(),[b,x]=O(),S=_();function M(s={}){const{selectionService:l,refLineModel:u,discrete:m,reducedDataModel:h,continuousDataModel:g,trendLineModel:y,pluginService:v,colorService:b,viewModel:x,dockService:M,themeService:C,customTooltipModel:w,layoutService:k,logicalSize:T,styleService:q,disclaimerService:E}=n,N=l.custom.getActions(),L=e.data("q")(p.prepPicassoDataSet()),O={picasso:e,ds:L,rtl:"rtl"===(null==f?void 0:f.direction),model:c,app:S,chart:t,actions:N,localeInfo:r.localeInfo,logicalSize:T,flags:r.flags,translator:r.translator,selections:d,isLocked:l.getIsSelectionLocked,viewCache:i,viewState:o,layoutService:k,dockService:M,viewModel:x,colorService:b,selectionService:l,themeService:C,trendLineModel:y,discrete:m,continuousDataModel:g,reducedDataModel:h.model(),customTooltipModel:w,debouncer:a,refLineModel:u,pluginService:v,styleService:q,disclaimerService:E,...s};return Gq(k.getLayout(),O,r)}function C(){if(!t.layoutComponents)return Promise.resolve();const{discrete:e,layoutService:r,viewModel:o}=n;i.set("isPreRender",!0);const a=M(h);p.extractDataPages(),t.layoutComponents({settings:a,data:y}),i.set("isPreRender",!1),p.insertDataPages(),o.animations.hasSlicedHats=a.components.filter((e=>"box-sliced-hat"===e.type)).length>0;const s=[];return 1!==a.components.length&&r.meta.isDiscrete&&s.push(e.command.initialize()),Promise.all(s)}const[[w,k]=[]]=U((()=>{var a;if(!(e&&t&&n&&r&&o&&i&&s))return Promise.resolve();const{layoutService:l,selectionService:u,refLineModel:c,discrete:d,continuous:f,reducedDataModel:p,continuousDataModel:m,trendLineModel:h,legendLayoutService:g,colorService:y,pluginService:v,viewModel:b,customTooltipModel:S,disclaimerService:M}=n;if(null==u||null===(a=u.custom)||void 0===a||!a.getActions())return Promise.resolve();const{properties:C}=s;(null==C?void 0:C.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})))&&(S.useCustomTooltip=!1);const w=()=>{x(Date.now()),b.animations.isPartialUpdating=!0},k=()=>{g&&g.setDataPages([d.query.getCurrentDataPage()]),c&&c.update(),w()};o.onChanged("scrollOffset",k),o.onChanged("legendScrollOffset",w),o.intercept("zoom",f.event.onZoomIntercept({viewCache:i})),o.onChanged("zoom",f.event.onZoomChange({layoutService:l,continuousDataModel:m},w)),u.setLayout(l.getLayout());const T=[];l.meta.isContinuous&&(m.update(l.getLayout()),T.push(m.initialFetch())),h.command.update(),T.push(p.fetch().then((({reducedCube:e})=>{p.update(e)}))),M.initialize(),T.push(Promise.resolve({properties:s.properties}));const q=()=>[v.initialize(),y.initialize(),Gk({reducedDataModel:p,layoutService:l,continuousDataModel:m,trendLineModel:h})];return Promise.all(T).then((e=>Promise.all(q()).then((t=>[e,t.pop()]))))}),[s]);I((()=>{var e;if(null==n||null===(e=n.colorService)||void 0===e||!e.getMain()||!k)return;const{layoutService:t,selectionService:o,reducedDataModel:a,continuousDataModel:s,trendLineModel:l,legendLayoutService:u,colorService:c,viewModel:d}=n;i.set("minorMinMax",k);const f=()=>!t.meta.isContinuous&&(a.model().mode.isReduced||t.meta.isStacked)&&u,p=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():a.model().cube,{field:y}=c.getMain().getSettings(),v=f(),b=v?u.getHyperCube():void 0;o.setBrushAliases({colorField:y,useLegendCube:v,legendAlias:`legendCube/${y}`});const x=function({mainCube:e,miniCube:t,legendCube:n,localeInfo:r,layoutService:o,viewModel:i,trendLineModel:a}){const s=o.refs.dataPages.split(".").pop();let l=[],u=[];const c=o.meta.isContinuous?[{key:i.fields.majorNumeric,from:o.meta.isStackedByDimension?i.fields.majorStack:i.fields.major,override:{value:e=>e.qNum}}]:void 0;return{prepPicassoDataSet:()=>({key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}}),prepPicassoData(o){const i=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:c}},...o];return n&&i.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:c}}),a.query.hasTrendLines()&&i.push({key:"trend",data:a.query.getData()}),i},extractDataPages(){l=e[s],u=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=u}}}({mainCube:p,miniCube:h,legendCube:b,localeInfo:r.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),S=w[w.length-1];g({localeInfo:r.localeInfo,...S}),m(x)}),[k]),I((()=>{if(!n||!h||!p)return;const e=n.colorService.getMain();if(!e)return;p.prepPicassoDataSet();const t=p.prepPicassoData(e.getData());v(t)}),[h]),I((()=>{var e;null!=n&&null!==(e=n.colorService)&&void 0!==e&&e.getMain()&&t.update&&p&&y&&C().then((()=>{const{layoutService:e,discrete:r,legendLayoutService:o}=n;if(o){1===e.getLayoutValue("scrollStartPos")&&o.setDataPages([r.query.getCurrentDataPage()])}t.update(),rs.cacheProperties({viewCache:i,layout:e.getLayout()})}))}),[y]),I((()=>{if(!(l&&u&&p&&null!=t&&t.update&&null!=n&&n.colorService.getMain()))return;const{viewModel:e}=n;e.animations.isSizeChanging=!0;const{dockService:o,themeService:i}=n;o.update({width:l,height:u}),i.setTheme(r.theme),C().then((()=>{t.update&&t.update()}))}),[l,u]),I((()=>{if(null==t||!t.update)return;const{viewModel:e}=n;t.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]}),e.animations.isPartialUpdating=!1}),[b])}({picasso:i,chart:c,services:d,environment:t,viewState:n,viewCache:r,bootstrapped:f}),Yq({environment:t,services:d,chart:c,viewState:n,bootstrapped:f})}}}));const J={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Z(e){return J[e]||e}function Q(e){return function(t,n,r){let o,i,a,s,l=[],u=!0;function c(){"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=Z(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=Z(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(),u&&c()},off(){u=!1,d()},on(){u=!0,0===l.length&&c()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function te(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 ne,re;var oe=function(){if(re)return ne;re=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 ne=function e(){var t,n,r,l,u,c,d=arguments[0],f=1,p=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(m&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},ne}(),ie=ee(oe);const ae=[["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}]],se={};ae.forEach((([e,{width:t,height:n}])=>{se[e]={width:t,height:n}}));const le={getLayoutModes:()=>se,getLayoutMode(e,t){let n;for(n=0;n<ae.length;++n)if(e>=ae[n][1].width&&t>=ae[n][1].height)return ae[n][0];return"SPARK"}};function ue(e,t){return{layoutModes:le.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const ce=["$date","$timestamp","$time"],de=["D","TS","T"],fe={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>ce.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&de.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(fe.hasTimeTag(t)&&fe.hasUnknownFormat(t)||fe.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&fe.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)&&fe.canBeContinuousDimension(r[0])},maxNumberOfLines:12},pe=/^[A-Z][A-z0-9_]*$/i,me={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,"")}},he={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||pe.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>me.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},ge=e=>he.getValue(e,"qHyperCube.qDimensionInfo",[]),ye=e=>he.getValue(e,"qHyperCube.qMeasureInfo",[]),ve=e=>he.getValue(e,"barGrouping.grouping"),be={continuous:(e,t=!1)=>!!fe.canBeContinuous(e)&&(he.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!ge(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===ve(e)&&(ge(e).length>1||ye(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&ge(e).length>1&&1===ye(e).length},groupedByMeasure(e){return this.grouped(e)&&1===ge(e).length&&ye(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==ve(e)&&"butterfly"!==ve(e)||this.continuous(e))&&(ge(e).length>1||ye(e).length>1)},stackedByDimension(e){return this.stacked(e)&&ge(e).length>1&&1===ye(e).length},stackedByMeasure(e){return this.stacked(e)&&1===ge(e).length&&ye(e).length>1},simple:e=>0===ge(e).length||1===ge(e).length&&1===ye(e).length,snapshot:e=>!!he.getValue(e,"snapshotData")};function xe(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Se=e=>{throw e.isHandled=!0,e};const Me={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?Me.getVerticalDock(t):n?Me.getOppositeDock(Me.getHorizontalDock(t)):Me.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};var Ce=(e,t)=>{if("function"==typeof t.defaultValue)return t.defaultValue();if(void 0!==t.defaultValue)return t.defaultValue;if(Array.isArray(t.options))return t.options[0].value;switch(e){case"array":return[];case"string":return"";case"integer":case"number":return 0;case"boolean":return!1;default:return null}};const we={stringWidthOverMWidth:e=>(12*Math.min(e,3)+6.384615384615385*Math.max(e-3,0))/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=we.getCharacterRatios(e[n]),r.latin+=o.latin,r.cjk+=o.cjk})):e.forEach((e=>{o=we.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=we.getTotalCharacterRatios(t,n,r),i=o.latinRatio*e,a=o.cjkRatio*e;return Math.ceil(we.stringWidthOverMWidth(i)+1.0909090909090908*a)}},ke="#la-vie-tooltip";function Te(){if(!document.querySelector(ke)){const e=document.createElement("div");e.id="la-vie-tooltip",e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function qe({key:e="tooltip",rtl:t}){return{show:!0,key:e,type:"tooltip",layout:{displayOrder:3},beforeMount(){Te()},beforeUpdate(){Te()},destroyed(){!function(){const e=document.querySelector(ke);e&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)}()},settings:{appendTo:()=>document.querySelector(ke),content:({h:e,data:t,style:n})=>t[0].map((t=>e("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{...n.cell||{},...e.style||{}},class:e.class};return e.colspan&&(r.colspan=e.colspan),t("td",r,e.content)}))}(t,{h:e,style:n})))),direction:t?"rtl":"ltr"},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',"empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}const Ee=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Ne=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Le=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Oe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Ee.test(e),isRtlChar:e=>Ne.test(e)||Le.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Oe.isLtrChar(r))return"ltr";if(Oe.isRtlChar(r))return"rtl"}return"ltr"}},De={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?De.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=Oe.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=Oe.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:Oe.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=Oe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=Oe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,De.getColorSymbol(e,t)]:[De.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=Oe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Oe.detectTextDirection(e.value);let l;return l=o?r?[e.value,De.getColorSymbol(t,n)]:[De.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 Ae(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ie(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Re(){}var Pe=.7,ze=1/Pe,je="\\s*([+-]?\\d+)\\s*",Fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_e=/^#([0-9a-f]{3,8})$/,He=new RegExp(`^rgb\\(${je},${je},${je}\\)$`),$e=new RegExp(`^rgb\\(${Be},${Be},${Be}\\)$`),Ve=new RegExp(`^rgba\\(${je},${je},${je},${Fe}\\)$`),We=new RegExp(`^rgba\\(${Be},${Be},${Be},${Fe}\\)$`),Ue=new RegExp(`^hsl\\(${Fe},${Be},${Be}\\)$`),Ke=new RegExp(`^hsla\\(${Fe},${Be},${Be},${Fe}\\)$`),Ge={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 Ye(){return this.rgb().formatHex()}function Xe(){return this.rgb().formatRgb()}function Je(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ze(t):3===n?new tt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Qe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Qe(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=He.exec(e))?new tt(t[1],t[2],t[3],1):(t=$e.exec(e))?new tt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ve.exec(e))?Qe(t[1],t[2],t[3],t[4]):(t=We.exec(e))?Qe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ue.exec(e))?st(t[1],t[2]/100,t[3]/100,1):(t=Ke.exec(e))?st(t[1],t[2]/100,t[3]/100,t[4]):Ge.hasOwnProperty(e)?Ze(Ge[e]):"transparent"===e?new tt(NaN,NaN,NaN,0):null}function Ze(e){return new tt(e>>16&255,e>>8&255,255&e,1)}function Qe(e,t,n,r){return r<=0&&(e=t=n=NaN),new tt(e,t,n,r)}function et(e){return e instanceof Re||(e=Je(e)),e?new tt((e=e.rgb()).r,e.g,e.b,e.opacity):new tt}function tt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function nt(){return`#${at(this.r)}${at(this.g)}${at(this.b)}`}function rt(){const e=ot(this.opacity);return`${1===e?"rgb(":"rgba("}${it(this.r)}, ${it(this.g)}, ${it(this.b)}${1===e?")":`, ${e})`}`}function ot(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function it(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function at(e){return((e=it(e))<16?"0":"")+e.toString(16)}function st(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ut(e,t,n,r)}function lt(e){if(e instanceof ut)return new ut(e.h,e.s,e.l,e.opacity);if(e instanceof Re||(e=Je(e)),!e)return new ut;if(e instanceof ut)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 ut(a,s,l,e.opacity)}function ut(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ct(e){return(e=(e||0)%360)<0?e+360:e}function dt(e){return Math.max(0,Math.min(1,e||0))}function ft(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ae(Re,Je,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ye,formatHex:Ye,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lt(this).formatHsl()},formatRgb:Xe,toString:Xe}),Ae(tt,(function(e,t,n,r){return 1===arguments.length?et(e):new tt(e,t,n,null==r?1:r)}),Ie(Re,{brighter(e){return e=null==e?ze:Math.pow(ze,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tt(it(this.r),it(this.g),it(this.b),ot(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:nt,formatHex:nt,formatHex8:function(){return`#${at(this.r)}${at(this.g)}${at(this.b)}${at(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rt,toString:rt})),Ae(ut,(function(e,t,n,r){return 1===arguments.length?lt(e):new ut(e,t,n,null==r?1:r)}),Ie(Re,{brighter(e){return e=null==e?ze:Math.pow(ze,e),new ut(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new ut(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 tt(ft(e>=240?e-240:e+120,o,r),ft(e,o,r),ft(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ut(ct(this.h),dt(this.s),dt(this.l),ot(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=ot(this.opacity);return`${1===e?"hsl(":"hsla("}${ct(this.h)}, ${100*dt(this.s)}%, ${100*dt(this.l)}%${1===e?")":`, ${e})`}`}}));const pt=Math.PI/180,mt=180/Math.PI,ht=.96422,gt=1,yt=.82521,vt=4/29,bt=6/29,xt=3*bt*bt,St=bt*bt*bt;function Mt(e){if(e instanceof Ct)return new Ct(e.l,e.a,e.b,e.opacity);if(e instanceof Nt)return Lt(e);e instanceof tt||(e=et(e));var t,n,r=qt(e.r),o=qt(e.g),i=qt(e.b),a=wt((.2225045*r+.7168786*o+.0606169*i)/gt);return r===o&&o===i?t=n=a:(t=wt((.4360747*r+.3850649*o+.1430804*i)/ht),n=wt((.0139322*r+.0971045*o+.7141733*i)/yt)),new Ct(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ct(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function wt(e){return e>St?Math.pow(e,1/3):e/xt+vt}function kt(e){return e>bt?e*e*e:xt*(e-vt)}function Tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Et(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Nt)return new Nt(e.h,e.c,e.l,e.opacity);if(e instanceof Ct||(e=Mt(e)),0===e.a&&0===e.b)return new Nt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*mt;return new Nt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Nt(e,t,n,null==r?1:r)}function Nt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Lt(e){if(isNaN(e.h))return new Ct(e.l,0,0,e.opacity);var t=e.h*pt;return new Ct(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ae(Ct,(function(e,t,n,r){return 1===arguments.length?Mt(e):new Ct(e,t,n,null==r?1:r)}),Ie(Re,{brighter(e){return new Ct(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ct(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 tt(Tt(3.1338561*(t=ht*kt(t))-1.6168667*(e=gt*kt(e))-.4906146*(n=yt*kt(n))),Tt(-.9787684*t+1.9161415*e+.033454*n),Tt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ae(Nt,Et,Ie(Re,{brighter(e){return new Nt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Nt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Lt(this).rgb()}}));var Ot={isDark:function(e){return Et(e).l<70}};function Dt(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function At(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function It(e){var t;return 1===e.length&&(t=e,e=function(e,n){return At(t(e),n)}),{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 Rt=It(At).right,Pt=Math.sqrt(50),zt=Math.sqrt(10),jt=Math.sqrt(2);function Ft(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>=Pt?10:i>=zt?5:i>=jt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Pt?10:i>=zt?5:i>=jt?2:1)}function Bt(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>=Pt?o*=10:i>=zt?o*=5:i>=jt&&(o*=2),t<e?-o:o}function _t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Ht="$";function $t(){}function Vt(e,t){var n=new $t;if(e instanceof $t)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 Wt(){}$t.prototype=Vt.prototype={constructor:$t,has:function(e){return Ht+e in this},get:function(e){return this[Ht+e]},set:function(e,t){return this[Ht+e]=t,this},remove:function(e){var t=Ht+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Ht&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Ht&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Ht&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Ht&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Ht&&++e;return e},empty:function(){for(var e in this)if(e[0]===Ht)return!1;return!0},each:function(e){for(var t in this)t[0]===Ht&&e(this[t],t.slice(1),this)}};var Ut=Vt.prototype;Wt.prototype={constructor:Wt,has:Ut.has,add:function(e){return this[Ht+(e+="")]=e,this},remove:Ut.remove,clear:Ut.clear,values:Ut.keys,size:Ut.size,empty:Ut.empty,each:Ut.each};var Kt=Array.prototype,Gt=Kt.map,Yt=Kt.slice;function Xt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Jt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Zt(){}var Qt=.7,en=1/Qt,tn="\\s*([+-]?\\d+)\\s*",nn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",rn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",on=/^#([0-9a-f]{3})$/,an=/^#([0-9a-f]{6})$/,sn=new RegExp("^rgb\\("+[tn,tn,tn]+"\\)$"),ln=new RegExp("^rgb\\("+[rn,rn,rn]+"\\)$"),un=new RegExp("^rgba\\("+[tn,tn,tn,nn]+"\\)$"),cn=new RegExp("^rgba\\("+[rn,rn,rn,nn]+"\\)$"),dn=new RegExp("^hsl\\("+[nn,rn,rn]+"\\)$"),fn=new RegExp("^hsla\\("+[nn,rn,rn,nn]+"\\)$"),pn={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 mn(e){var t;return e=(e+"").trim().toLowerCase(),(t=on.exec(e))?new bn((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=an.exec(e))?hn(parseInt(t[1],16)):(t=sn.exec(e))?new bn(t[1],t[2],t[3],1):(t=ln.exec(e))?new bn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=un.exec(e))?gn(t[1],t[2],t[3],t[4]):(t=cn.exec(e))?gn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dn.exec(e))?Sn(t[1],t[2]/100,t[3]/100,1):(t=fn.exec(e))?Sn(t[1],t[2]/100,t[3]/100,t[4]):pn.hasOwnProperty(e)?hn(pn[e]):"transparent"===e?new bn(NaN,NaN,NaN,0):null}function hn(e){return new bn(e>>16&255,e>>8&255,255&e,1)}function gn(e,t,n,r){return r<=0&&(e=t=n=NaN),new bn(e,t,n,r)}function yn(e){return e instanceof Zt||(e=mn(e)),e?new bn((e=e.rgb()).r,e.g,e.b,e.opacity):new bn}function vn(e,t,n,r){return 1===arguments.length?yn(e):new bn(e,t,n,null==r?1:r)}function bn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function xn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Sn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mn(e,t,n,r)}function Mn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Cn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Xt(Zt,mn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Xt(bn,vn,Jt(Zt,{brighter:function(e){return e=null==e?en:Math.pow(en,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Qt:Math.pow(Qt,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+xn(this.r)+xn(this.g)+xn(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Xt(Mn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Mn)return new Mn(e.h,e.s,e.l,e.opacity);if(e instanceof Zt||(e=mn(e)),!e)return new Mn;if(e instanceof Mn)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 Mn(a,s,l,e.opacity)}(e):new Mn(e,t,n,null==r?1:r)}),Jt(Zt,{brighter:function(e){return e=null==e?en:Math.pow(en,e),new Mn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qt:Math.pow(Qt,e),new Mn(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 bn(Cn(e>=240?e-240:e+120,o,r),Cn(e,o,r),Cn(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var wn=Math.PI/180,kn=180/Math.PI,Tn=.96422,qn=1,En=.82521,Nn=4/29,Ln=6/29,On=3*Ln*Ln,Dn=Ln*Ln*Ln;function An(e){if(e instanceof In)return new In(e.l,e.a,e.b,e.opacity);if(e instanceof Fn){if(isNaN(e.h))return new In(e.l,0,0,e.opacity);var t=e.h*wn;return new In(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof bn||(e=yn(e));var n,r,o=jn(e.r),i=jn(e.g),a=jn(e.b),s=Rn((.2225045*o+.7168786*i+.0606169*a)/qn);return o===i&&i===a?n=r=s:(n=Rn((.4360747*o+.3850649*i+.1430804*a)/Tn),r=Rn((.0139322*o+.0971045*i+.7141733*a)/En)),new In(116*s-16,500*(n-s),200*(s-r),e.opacity)}function In(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Rn(e){return e>Dn?Math.pow(e,1/3):e/On+Nn}function Pn(e){return e>Ln?e*e*e:On*(e-Nn)}function zn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function jn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Fn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Xt(In,(function(e,t,n,r){return 1===arguments.length?An(e):new In(e,t,n,null==r?1:r)}),Jt(Zt,{brighter:function(e){return new In(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new In(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new bn(zn(3.1338561*(t=Tn*Pn(t))-1.6168667*(e=qn*Pn(e))-.4906146*(n=En*Pn(n))),zn(-.9787684*t+1.9161415*e+.033454*n),zn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Xt(Fn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Fn)return new Fn(e.h,e.c,e.l,e.opacity);if(e instanceof In||(e=An(e)),0===e.a&&0===e.b)return new Fn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*kn;return new Fn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Fn(e,t,n,null==r?1:r)}),Jt(Zt,{brighter:function(e){return new Fn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Fn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return An(this).rgb()}}));var Bn=-.14861,_n=1.78277,Hn=-.29227,$n=-.90649,Vn=1.97294,Wn=Vn*$n,Un=Vn*_n,Kn=_n*Hn-$n*Bn;function Gn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);e instanceof bn||(e=yn(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Kn*r+Wn*t-Un*n)/(Kn+Wn-Un),i=r-o,a=(Vn*(n-o)-Hn*i)/$n,s=Math.sqrt(a*a+i*i)/(Vn*o*(1-o)),l=s?Math.atan2(a,i)*kn-120:NaN;return new Yn(l<0?l+360:l,s,o,e.opacity)}(e):new Yn(e,t,n,null==r?1:r)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Xn(e){return function(){return e}}function Jn(e,t){return function(n){return e+n*t}}function Zn(e){return 1==(e=+e)?Qn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Xn(isNaN(t)?n:t)}}function Qn(e,t){var n=t-e;return n?Jn(e,n):Xn(isNaN(e)?t:e)}Xt(Yn,Gn,Jt(Zt,{brighter:function(e){return e=null==e?en:Math.pow(en,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qt:Math.pow(Qt,e),new Yn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*wn,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new bn(255*(t+n*(Bn*r+_n*o)),255*(t+n*(Hn*r+$n*o)),255*(t+n*(Vn*r)),this.opacity)}}));var er=function e(t){var n=Zn(t);function r(e,t){var r=n((e=vn(e)).r,(t=vn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Qn(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 tr(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]=lr(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 nr(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function rr(e,t){return t-=e=+e,function(n){return e+t*n}}function or(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]=lr(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var ir=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ar=new RegExp(ir.source,"g");function sr(e,t){var n,r,o,i=ir.lastIndex=ar.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=ir.exec(e))&&(r=ar.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:rr(n,r)})),i=ar.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 lr(e,t){var n,r=typeof t;return null==t||"boolean"===r?Xn(t):("number"===r?rr:"string"===r?(n=mn(t))?(t=n,er):sr:t instanceof mn?er:t instanceof Date?nr:Array.isArray(t)?tr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?or:rr)(e,t)}function ur(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function cr(e){return function t(n){function r(t,r){var o=e((t=Gn(t)).h,(r=Gn(r)).h),i=Qn(t.s,r.s),a=Qn(t.l,r.l),s=Qn(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function dr(e){return+e}cr((function(e,t){var n=t-e;return n?Jn(e,n>180||n<-180?n-360*Math.round(n/360):n):Xn(isNaN(e)?t:e)})),cr(Qn);var fr=[0,1];function pr(e){return e}function mr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function hr(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 gr(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=mr(o,r),i=n(a,i)):(r=mr(r,o),i=n(i,a)),function(e){return i(r(e))}}function yr(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]=mr(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Rt(e,t,1,r)-1;return i[n](o[n](t))}}function vr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function br(e,t){return function(){var e,t,n,r,o,i,a=fr,s=fr,l=lr,u=pr;function c(){return r=Math.min(a.length,s.length)>2?yr:gr,o=i=null,d}function d(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((i||(i=r(s,a.map(e),rr)))(n)))},d.domain=function(e){return arguments.length?(a=Gt.call(e,dr),u===pr||(u=hr(a)),c()):a.slice()},d.range=function(e){return arguments.length?(s=Yt.call(e),c()):s.slice()},d.rangeRound=function(e){return s=Yt.call(e),l=ur,c()},d.clamp=function(e){return arguments.length?(u=e?hr(a):pr,d):u!==pr},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}()(e,t)}function xr(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 Sr(e){return(e=xr(Math.abs(e)))?e[1]:NaN}var Mr,Cr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wr(e){return new kr(e)}function kr(e){if(!(t=Cr.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function Tr(e,t){var n=xr(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")}wr.prototype=kr.prototype,kr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var qr={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Tr(100*e,t)},r:Tr,s:function(e,t){var n=xr(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Mr=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")+xr(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 Er(e){return e}var Nr,Lr,Or,Dr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ar(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}):Er,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):Er,s=e.percent||"%";function l(e){var t=(e=wr(e)).fill,n=e.align,l=e.sign,u=e.symbol,c=e.zero,d=e.width,f=e.comma,p=e.precision,m=e.trim,h=e.type;"n"===h?(f=!0,h="g"):qr[h]||(null==p&&(p=12),m=!0,h="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var g="$"===u?o[0]:"#"===u&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",y="$"===u?o[1]:/[%p]/.test(h)?s:"",v=qr[h],b=/[defgprs%]/.test(h);function x(e){var o,s,u,x=g,S=y;if("c"===h)S=v(e)+S,e="";else{var M=(e=+e)<0;if(e=v(Math.abs(e),p),m&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(o>0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),M&&0==+e&&(M=!1),x=(M?"("===l?l:"-":"-"===l||"("===l?"":l)+x,S=("s"===h?Dr[8+Mr/3]:"")+S+(M&&"("===l?")":""),b)for(o=-1,s=e.length;++o<s;)if(48>(u=e.charCodeAt(o))||u>57){S=(46===u?i+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}f&&!c&&(e=r(e,1/0));var C=x.length+e.length+S.length,w=C<d?new Array(d-C+1).join(t):"";switch(f&&c&&(e=r(w+e,w.length?d-S.length:1/0),w=""),n){case"<":e=x+e+S+w;break;case"=":e=x+w+e+S;break;case"^":e=w.slice(0,C=w.length>>1)+x+e+S+w.slice(C);break;default:e=w+x+e+S}return a(e)}return p=null==p?6:/[gprs]/.test(h)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=wr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Sr(t)/3))),o=Math.pow(10,-r),i=Dr[8+r/3];return function(e){return n(o*e)+i}}}}function Ir(e,t,n,r){var o,i=Bt(e,t,n);switch((r=wr(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(Sr(t)/3)))-Sr(Math.abs(e)))}(i,a))||(r.precision=o),Or(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,Sr(t)-Sr(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,-Sr(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Lr(r)}function Rr(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=Ft(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 Ir(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=Ft(s,l,n))>0?r=Ft(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Ft(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 Pr(){var e=br(pr,pr);return e.copy=function(){return vr(e,Pr())},_t.apply(e,arguments),Rr(e)}Nr=Ar({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Lr=Nr.format,Or=Nr.formatPrefix;var zr=new Date,jr=new Date;function Fr(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return Fr((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 zr.setTime(+t),jr.setTime(+r),e(zr),e(jr),Math.floor(n(zr,jr))},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 Br=Fr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Br.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Fr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Br:null},Br.range;var _r=1e3,Hr=6e4,$r=36e5,Vr=864e5,Wr=6048e5,Ur=Fr((function(e){e.setTime(Math.floor(e/_r)*_r)}),(function(e,t){e.setTime(+e+t*_r)}),(function(e,t){return(t-e)/_r}),(function(e){return e.getUTCSeconds()}));Ur.range;var Kr=Fr((function(e){e.setTime(Math.floor(e/Hr)*Hr)}),(function(e,t){e.setTime(+e+t*Hr)}),(function(e,t){return(t-e)/Hr}),(function(e){return e.getMinutes()}));Kr.range;var Gr=Fr((function(e){var t=e.getTimezoneOffset()*Hr%$r;t<0&&(t+=$r),e.setTime(Math.floor((+e-t)/$r)*$r+t)}),(function(e,t){e.setTime(+e+t*$r)}),(function(e,t){return(t-e)/$r}),(function(e){return e.getHours()}));Gr.range;var Yr=Fr((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())*Hr)/Vr}),(function(e){return e.getDate()-1}));function Xr(e){return Fr((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())*Hr)/Wr}))}Yr.range;var Jr=Xr(0),Zr=Xr(1),Qr=Xr(2),eo=Xr(3),to=Xr(4),no=Xr(5),ro=Xr(6);Jr.range,Zr.range,Qr.range,eo.range,to.range,no.range,ro.range;var oo=Fr((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));oo.range;var io=Fr((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()}));io.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Fr((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},io.range;var ao=Fr((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Hr)}),(function(e,t){return(t-e)/Hr}),(function(e){return e.getUTCMinutes()}));ao.range;var so=Fr((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*$r)}),(function(e,t){return(t-e)/$r}),(function(e){return e.getUTCHours()}));so.range;var lo=Fr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Vr}),(function(e){return e.getUTCDate()-1}));function uo(e){return Fr((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}))}lo.range;var co=uo(0),fo=uo(1),po=uo(2),mo=uo(3),ho=uo(4),go=uo(5),yo=uo(6);co.range,fo.range,po.range,mo.range,ho.range,go.range,yo.range;var vo=Fr((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()}));vo.range;var bo=Fr((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 xo(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 So(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 Mo(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}bo.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Fr((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},bo.range;var Co,wo,ko,To={"-":"",_:" ",0:"0"},qo=/^\s*\d+/,Eo=/^%/,No=/[\\^$*+?|[\]().{}]/g;function Lo(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 Oo(e){return e.replace(No,"\\$&")}function Do(e){return new RegExp("^(?:"+e.map(Oo).join("|")+")","i")}function Ao(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Io(e,t,n){var r=qo.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ro(e,t,n){var r=qo.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Po(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function zo(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function jo(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Fo(e,t,n){var r=qo.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Bo(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _o(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 Ho(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function $o(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Vo(e,t,n){var r=qo.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Wo(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Uo(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ko(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Go(e,t,n){var r=qo.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Yo(e,t,n){var r=qo.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xo(e,t,n){var r=Eo.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Jo(e,t,n){var r=qo.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Zo(e,t,n){var r=qo.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Qo(e,t){return Lo(e.getDate(),t,2)}function ei(e,t){return Lo(e.getHours(),t,2)}function ti(e,t){return Lo(e.getHours()%12||12,t,2)}function ni(e,t){return Lo(1+Yr.count(io(e),e),t,3)}function ri(e,t){return Lo(e.getMilliseconds(),t,3)}function oi(e,t){return ri(e,t)+"000"}function ii(e,t){return Lo(e.getMonth()+1,t,2)}function ai(e,t){return Lo(e.getMinutes(),t,2)}function si(e,t){return Lo(e.getSeconds(),t,2)}function li(e){var t=e.getDay();return 0===t?7:t}function ui(e,t){return Lo(Jr.count(io(e),e),t,2)}function ci(e,t){var n=e.getDay();return e=n>=4||0===n?to(e):to.ceil(e),Lo(to.count(io(e),e)+(4===io(e).getDay()),t,2)}function di(e){return e.getDay()}function fi(e,t){return Lo(Zr.count(io(e),e),t,2)}function pi(e,t){return Lo(e.getFullYear()%100,t,2)}function mi(e,t){return Lo(e.getFullYear()%1e4,t,4)}function hi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Lo(t/60|0,"0",2)+Lo(t%60,"0",2)}function gi(e,t){return Lo(e.getUTCDate(),t,2)}function yi(e,t){return Lo(e.getUTCHours(),t,2)}function vi(e,t){return Lo(e.getUTCHours()%12||12,t,2)}function bi(e,t){return Lo(1+lo.count(bo(e),e),t,3)}function xi(e,t){return Lo(e.getUTCMilliseconds(),t,3)}function Si(e,t){return xi(e,t)+"000"}function Mi(e,t){return Lo(e.getUTCMonth()+1,t,2)}function Ci(e,t){return Lo(e.getUTCMinutes(),t,2)}function wi(e,t){return Lo(e.getUTCSeconds(),t,2)}function ki(e){var t=e.getUTCDay();return 0===t?7:t}function Ti(e,t){return Lo(co.count(bo(e),e),t,2)}function qi(e,t){var n=e.getUTCDay();return e=n>=4||0===n?ho(e):ho.ceil(e),Lo(ho.count(bo(e),e)+(4===bo(e).getUTCDay()),t,2)}function Ei(e){return e.getUTCDay()}function Ni(e,t){return Lo(fo.count(bo(e),e),t,2)}function Li(e,t){return Lo(e.getUTCFullYear()%100,t,2)}function Oi(e,t){return Lo(e.getUTCFullYear()%1e4,t,4)}function Di(){return"+0000"}function Ai(){return"%"}function Ii(e){return+e}function Ri(e){return Math.floor(+e/1e3)}!function(e){Co=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,u=Do(o),c=Ao(o),d=Do(i),f=Ao(i),p=Do(a),m=Ao(a),h=Do(s),g=Ao(s),y=Do(l),v=Ao(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:Qo,e:Qo,f:oi,H:ei,I:ti,j:ni,L:ri,m:ii,M:ai,p:function(e){return o[+(e.getHours()>=12)]},Q:Ii,s:Ri,S:si,u:li,U:ui,V:ci,w:di,W:fi,x:null,X:null,y:pi,Y:mi,Z:hi,"%":Ai},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:gi,e:gi,f:Si,H:yi,I:vi,j:bi,L:xi,m:Mi,M:Ci,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Ii,s:Ri,S:wi,u:ki,U:Ti,V:qi,w:Ei,W:Ni,x:null,X:null,y:Li,Y:Oi,Z:Di,"%":Ai},S={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return w(e,t,n,r)},d:$o,e:$o,f:Yo,H:Wo,I:Wo,j:Vo,L:Go,m:Ho,M:Uo,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:Jo,s:Zo,S:Ko,u:Ro,U:Po,V:zo,w:Io,W:jo,x:function(e,t,r){return w(e,n,t,r)},X:function(e,t,n){return w(e,r,t,n)},y:Bo,Y:Fo,Z:_o,"%":Xo};function M(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(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 C(e,t){return function(n){var r,o,i=Mo(1900);if(w(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=So(Mo(i.y))).getUTCDay(),r=o>4||0===o?fo.ceil(r):fo(r),r=lo.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(Mo(i.y))).getDay(),r=o>4||0===o?Zr.ceil(r):Zr(r),r=Yr.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?So(Mo(i.y)).getUTCDay():t(Mo(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,So(i)):t(i)}}function w(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=M(n,b),b.X=M(r,b),b.c=M(t,b),x.x=M(n,x),x.X=M(r,x),x.c=M(t,x),{format:function(e){var t=M(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",xo);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,So);return t.toString=function(){return e},t}}}(e),Co.format,Co.parse,wo=Co.utcFormat,ko=Co.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 Pi="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||wo(Pi),+new Date("2000-01-01T00:00:00.000Z")||ko(Pi);var zi=1e3,ji=60*zi,Fi=60*ji,Bi=24*Fi,_i=7*Bi,Hi=30*Bi,$i=365*Bi;function Vi(e){return new Date(e)}function Wi(e){return e instanceof Date?+e:+new Date(+e)}function Ui(e,t,n,r,o,i,a,s,l){var u=br(pr,pr),c=u.invert,d=u.domain,f=l(".%L"),p=l(":%S"),m=l("%I:%M"),h=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,zi],[a,5,5*zi],[a,15,15*zi],[a,30,30*zi],[i,1,ji],[i,5,5*ji],[i,15,15*ji],[i,30,30*ji],[o,1,Fi],[o,3,3*Fi],[o,6,6*Fi],[o,12,12*Fi],[r,1,Bi],[r,2,2*Bi],[n,1,_i],[t,1,Hi],[t,3,3*Hi],[e,1,$i]];function S(s){return(a(s)<s?f:i(s)<s?p:o(s)<s?m:r(s)<s?h:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function M(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var i=Math.abs(r-n)/t,a=It((function(e){return e[2]})).right(x,i);a===x.length?(o=Bt(n/$i,r/$i,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(Bt(n,r,t),1),t=s)}return null==o?t:t.every(o)}return u.invert=function(e){return new Date(c(e))},u.domain=function(e){return arguments.length?d(Gt.call(e,Wi)):d().map(Vi)},u.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=M(e,o,i,t))?n.range(o,i+1):[],a?n.reverse():n},u.tickFormat=function(e,t){return null==t?S:l(t)},u.nice=function(e,t){var n=d();return(e=M(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)):u},u.copy=function(){return vr(u,Ui(e,t,n,r,o,i,a,s,l))},u}function Ki(){return _t.apply(Ui(bo,vo,co,lo,so,ao,Ur,Br,wo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Gi={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"}}},Yi=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Xi={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=Gi[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Yi(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Yi(t.shadow.endOffset)}}})(n),u="horizontal"===n&&r,c=[];return a||c.push(e("div",{style:{...l.base,...u?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||c.push(e("div",{style:{...l.base,...u?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),c}};function Ji({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 Zi;function Qi(){Zi=Zi||document.createElement("canvas").getContext("2d")}const ea={measureTextWidth(e){Qi();const{width:t}=Zi.measureText(e);return t},lineWrap(e,t,n,r){let o,i;Qi();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,u,c,d,f=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&&(Zi.font=n),i=0;i<a.length;i++){for(d=a[i]||"",f=d.split(/\s+/),[p]=f,c="",o=1;o<f.length;o++)if(l=`${p} ${f[o]}`,u=ea.measureTextWidth(l),u>t&&("number"!=typeof r||r>s.length)?(s.push(p),p=f[o]):p=l,"number"==typeof r&&s.length>=r){c=f.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} ${c}`}return s},wordWrap(e,t,n,r,o){if(Qi(),!e||!e.length)return[];n&&(Zi.font=n);let i=[];const a=e.slice();let s,l,u,c;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(c=0;c<a.length;c++)u=a[c],l=null,u&&(u.length<=1||ea.measureTextWidth(u)<=t?i.push(u):(s=ea.splitWord(u,t,void 0,r-i.length),s.length<=1?i.push(s[0]):(l=s.pop(),i=i.concat(s),a[c+1]?ea.measureTextWidth(`${l} ${a[c+1]}`)>t&&i.length+a.length-c<=r?a.splice(c+1,0,l):a[c+1]=`${l} ${a[c+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]=ea.truncate(i[i.length-1],t,n,o).text):(u=i[i.length-1],u&&u.length>1&&ea.measureTextWidth(u)>t&&(i[i.length-1]=ea.truncate(u,t,n,o).text)),i},truncate(e,t,n,r="…"){Qi();let o,i,a,s,l=e;const u=ea.measureTextWidth("i"),c=Math.ceil(t/u);if(n&&(Zi.font=n),e&&t){if(ea.measureTextWidth(l)>t){for(o=Math.min(c,l.length);o>0;o--)if(i=l.substring(0,o-1),a=i.trim()+r,ea.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;Qi();let i,a=e,s="",l=[];if(ea.isNumber(n)&&n<=1)return[e];const u=Math.ceil(t/r);for(o=Math.min(e.length,u);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),!(ea.measureTextWidth(a)<=t));o--);return(!o&&!a||ea.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(ea.measureTextWidth(s)>t?(s=ea.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Qi(),e&&t?(n&&(Zi.font=n),ea.explodeWord(e,t,r,Math.max(1,ea.measureTextWidth("i")))):[]),wrapText(e,t,n,r,o){let i;return Number.isNaN(t)?[e]:(i=r>1?ea.lineWrap(e,t,n,r):[e],i=ea.wordWrap(i,t,n,r,o),i)},getFontHeight:e=>(Qi(),e&&(Zi.font=e),1.5*ea.measureTextWidth("m")),tokenize(e,t,n,r,o,i,a=1){Qi(),t&&(Zi.font=t);const s=ea.getFontHeight(),l=a*s;let u=[],c=0,d=[];if(i<s)return[];const f=i?Math.max(1,Math.floor(i/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{c+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{u.push(Number.isNaN(e)||e<=0?f-c:e)}))):u=[Number.isNaN(r)||r<=0?f:Math.min(f,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<f&&(d=d.concat(ea.wrapText(e,o,t,u[n])))})):d=ea.wrapText(e,o,t,u[0],n),d}},ta={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",u=r,c=o,d=t<.5?90:-90;return i&&(s="y",l="x",u=o,c=r,d=t<.5?180:0),a(ie({},e,{[s]:n*u,[l]:Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:d}))}},na=ie.bind(null,!0),ra={},{isArray:oa}=Array;function ia(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function aa(e){return void 0===e}function sa(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function la(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]=aa(e[r||t])?i:e[t],e=e[r||t]})),e}function ua(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function ca(e,t,n){let r=!0;if(ia(e)&&ia(t))return ua(e,n)===ua(t,n)&&(Object.keys(e).forEach((o=>{ca(e[o],t[o],n)||(r=!1)})),r);if(oa(e)&&oa(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!ca(e[r],t[r],n))return!1;return!0}return e===t}ra.compare=ca,ra.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?na({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;ca(i,a)||sa(t,o)||(aa(a)?r.push({op:"add",path:s,value:i}):ia(i)&&ia(a)?r=r.concat(ra.generate(a,i,s)):oa(i)&&oa(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]&&aa(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(ca(t,o))return r;if(!aa(t[0])&&aa(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(ra.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=>{aa(t[o])&&!sa(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},ra.apply=function(e,t){t.forEach((t=>{let n=la(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(oa(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(oa(o)&&oa(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(ia(o)&&ia(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!sa(a,e)&&delete a[e]})),na(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=la(e,t.from);oa(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(oa(n)?n.splice(+r,1):delete n[r]);var a}))},ra.clone=function(e){return na({},e)},ra.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},ra.updateObject=function(e,t){Object.keys(e).length?ra.apply(e,ra.generate(e,t)):na(e,t)};const da=Math.log(10);function fa(e){return 10**e}const pa={pow10:fa,log:(e,t)=>e<=0||t<=0?NaN:Math.log(e)/Math.log(t),log10:e=>e<=0?NaN:Math.log(e)/da,eliminateFloatingError(e){const t=Math.round(e);return Math.abs(e-t)<1e-12?t:e},getNiceNumber(e){let t;if(0===e)return 0;const n=Math.floor(Math.log(Math.abs(e))/da),r=e/fa(n);return t=r<=1?1:r<=2?2:r<=5?5:10,t*fa(n)*(e<0?-1:1)},getSmallNiceNumber(e){let t,n;if(0===e)return 0;t=Math.floor(Math.log(Math.abs(e))/da);const r=e/fa(t);return r<1?(n=5,t--):n=r<2?1:r<5?2:5,n*fa(t)*(e<0?-1:1)},getMagnitude(e){if(0===e)return 0;return fa(Math.floor(Math.log(Math.abs(e))/da))},getFraction(e){if(0===e)return 0;return e/fa(Math.floor(Math.log(Math.abs(e))/da))},getGoodNumber(e){let t;if(0===e)return 0;const n=Math.floor(Math.log(Math.abs(e))/da),r=e/fa(n);return t=Math.ceil(r),7!==t&&9!==t||t++,r>1&&r<=1.5?t=1.5:r>2&&r<=2.5&&(t=2.5),t*fa(n)*(e<0?-1:1)},getValueWithOffset:(e,t=0)=>e+Math.abs(e)*t,isNumber:e=>"number"==typeof e&&!Number.isNaN(e)},ma=[[2,4,6],[2,4],[3]],ha=[,[,,[[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 ga(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 ya(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)ga(e[r],t,n)}!function(){let e,t;for(ya(ma,1,10),e=0;e<ha.length;e++)if(ha[e])for(t=0;t<ha[e].length;t++)Array.isArray(ha[e][t])&&ya(ha[e][t])}();const va={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=va.findSegmentPositionMeetMin(e,t);return va.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=va.findSegmentPositionMeetMax(e,n);return va.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=va.findSegmentPositionMeetMaxThenMin(i,s,(i.center+a.center-r)/2),s=i.position+i.radius+r/2;a.position=va.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 u,c=0;for(i=o;i>0&&(a=e[i],s=e[i-1],u=Math.max(0,va.getGap(s,a)-r),u-=Math.max(0,c+u-l),c+=u,a.move=u,!(c>=l));i--);for(c<l&&(u=Math.max(0,s.position-s.radius-t),u-=Math.max(0,c+u-l),c+=u,s.move=u),c=0,i=0;i<=o;i++)a=e[i],c+=a.move||0,a.move=c,a.position-=c},layout(e,t,n,r=0){const o=e.length-1;if(!(o<0))if(0!==o)va.layoutPositionFromMin(e,t,n,r),va.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=va.findSegmentPositionMeetMaxThenMin(r,t,n)}}},ba=(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},xa=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,Sa=e=>e.filter(xa),Ma=(e,t)=>Sa(he.getValue(e,t,[])),Ca=e=>xa(e)&&(!1!==e.showValue||!1!==e.showLabel),wa=e=>e.filter(Ca),ka=(e,t)=>wa(he.getValue(e,t,[])),Ta=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,qa=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},Ea=({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},Na=({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,Oa=({value:e,qMax:t})=>"NaN"!==t&&e>t,Da={isRefLineVisible:xa,getVisibleRefLines:Sa,getRefLines:Ma,getMeasureRefLines:e=>Ma(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:Ma(e,"refLine.dimRefLines"),isRefLineLabelVisible:Ca,getVisibleRefLineLabels:wa,getRefLineLabels:ka,getMeasureRefLineLabels:e=>ka(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:ka(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=ba(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 u;return l=ba(s,o,i,t),e&&e.length&&(u=(({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===u?s(n):u)+l}return l=ba(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=he.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():he.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const u=s?"qData.0.qSubNodes":"qMatrix",c=he.getValue(l,u,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),f=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<c.length;e++){const t=c[e],n=e+f,r=t[d];i[r]||(i[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:c[e]})}})():o?(()=>{let e;for(let t=0;t<c.length;t++){const n=c[t][0],r=c[t][1],o=t+f,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:c[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<c.length;e++){const t=c[e][0],n=e+f,r=t[d];i[r]||(i[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:c[e]})}})(),i},getInputValue:Ta,extractInfoFromInputValue:qa,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Ta({refLineLayout:e,layoutService:n});return qa(r,t,"id")},isDiscreteMinOutOfBounds:Ea,isDiscreteMaxOutOfBounds:Na,isContinuousMinOutOfBounds:La,isContinuousMaxOutOfBounds:Oa,isOutOfRange:({value:e,qMin:t,qMax:n})=>La({value:e,qMin:t})||Oa({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&Na({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&Ea({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},Aa=({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(" "),Ia="…";function Ra(e){return e.showValue?`${Ia} ${e.valueString}`:Ia}function Pa(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=Aa({label:o,labelStyle:t});o.lines=ea.tokenize(o.title,i,Ra(o),3,n),o.maxNumLines=o.lines.length}}function za({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=ea.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 ja({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=e.map((e=>za({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 Fa(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const Ba=3,_a=2;function Ha({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 $a=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(Da.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(Da.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return Da.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:Da.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},Va={hasEngineFormat:Ha,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:o,rtl:i,isContinuous:a,isDimension:s}){const l=Da.getInvert({orientation:o,rtl:i,isContinuous:a}),u="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",c=r.getHyperCubeValue(u),{canBeContinuous:d}=r.meta;let f,p;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");f=e.qMin,p=e.qMax}for(let o=0;o<e.length;o++){const i=e[o],{value:s,align:u,valueInfo:d}=i,m=$a({label:i,dataPages:c,qMin:f,qMax:p});i.scaledValue=1===m?l?-.1:1.1:-1===m?l?1.1:-.1:Da.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:u,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=Ha({inputValue:s,inputValueLabel:l,localeInfo:o})?l:t?t(a):a,r.valueString=`${Oe.lrm}(${i})${Oe.lrm}`,r.title=Va.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=Ha({inputValue:a,inputValueLabel:s,localeInfo:o})?s:r,n.valueString=`${Oe.lrm}(${i})${Oe.lrm}`,n.title=Va.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];i=n.valueText,n.valueString=`${Oe.lrm}(${i})${Oe.lrm}`,n.title=Va.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=Va.getTotalNumLines(e)-r;if(t<=0)return;Va.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,Va.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:u,orientation:c,measureText:d,rtl:f,layoutService:p,isContinuous:m,isDimension:h}){const g=e.map((e=>e)),y=n;Va.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:c,rtl:f,isContinuous:m,isDimension:h}),Fa(e,"center"),Va.addLabelsNeighborInfo(e,r,o,i),Pa(e,a,s),Va.reduceTotalMaxNumLines(g,l,o-(g.length-1)*i),"vertical"===c&&(Va.reduceMaxNumLines(e,l,.05*i),function(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=Aa({label:o,labelStyle:t});o.lines.length>o.maxNumLines&&(o.lines=ea.tokenize(o.title,i,Ra(o),o.maxNumLines,n))}}(e,a,s)),Va.addLabelsSize(e,s,l,d),Va.addLabelSegments(e,u)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:o,lineHeight:i=15,font:a}){const{majorAxis:s,minorAxis:l,dock:u}=r,{minorCenter:c}=o,{fontSize:d,fontFamily:f,fontStyle:p,fontWeight:m,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:za({title:e.title,font:a,ellipsis:Ra(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||f,fontStyle:e.fontStyle||p,fontWeight:e.fontWeight||m,textDecoration:e.textDecoration||h,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:u};return g[l]=c,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=Ba,padding:u={}}=a,{top:c=_a,bottom:d=_a,left:f=_a,right:p=_a}=u,m=s.length,h={type:"rect",rx:l,ry:l,fill:o.background.fill,width:o.width+(f+p),height:o.height+(c+d),value:o.value,dock:r};return h[n]=e,h[t]=o.segment.position,h.x-=o.width/2+f,h.y-=m*i/2+c,h}({minorCenter:c,majorAxis:s,minorAxis:l,dock:u,label:e,lineHeight:i,background:g})),y=y.concat(o)})),y}};function Wa(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 Ua(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 Va.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,Va.getMaxTextWidth(e))+n+r}(t,n)}function Ka(e,t){return t?e.domain():[0,1]}function Ga(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 Ya(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 Xa(e,t){return e>9?t[1]:t[0]}function Ja({alignment:e,dockValue:t,oobs:n,style:r,rect:o,symbol:i,position:a,areaProps:s,radius:l,font:u}){const c=n?n.length:0;if(c<1)return[];const{flipXY:d,majorAxis:f,minorAxis:p,minorDimension:m,dock:h}=s,g=o[m],y=ta.createOob({oob:ta.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${f}`,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:c>9?"9+":c,title:ja({oobs:n,font:u,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[f]=a,[y,x,S]}const Za=e=>{const t=Aa({labelStyle:e}),n=ea.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}},Qa=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 es={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=Qa(this.settings.labels),s=Wa(this.chart,this.settings.formatter,e);Va.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:i,localeInfo:o});const{numMaxOobs:l,numMinOobs:u,filteredLabels:c}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:o})=>{if(n){const[r,o]=Ka(t,n);return Ga(e,r,o)}if(r){const t=o.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return Ga(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})},c&&c.length){const e=Za(t.label),{dock:n}=this.settings.layout;return Va.measureLabelsWidth(c,this.measureText),d=Ua(n,c,e),d}const f=Ya(this.measureText),p=l?Xa(l,f):0,m=u?Xa(u,f):0;return d=Math.max(p,m),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,u=Qa(this.settings.labels),{dock:c,rtl:d}=this.settings.layout,{padding:f}=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)}(c),m=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,f),{orientation:h,majorDimension:g}=p,{majorSize:y}=m,v=Za(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:M}=v,C=Wa(this.chart,this.settings.formatter,e),w=y;Va.addLabelTitles({labels:u,formatter:C,isContinuous:i,canBeContinuous:l,localeInfo:s}),Va.calculateLabelPositions({labels:u,scale:e,size:w,layoutService:r,orientation:h,rtl:d,isContinuous:i,isDimension:a});const[k,T]=Ka(e,i),{filteredLabels:q,lowerOobs:E,upperOobs:N,lowerCircleSize:L,upperCircleSize:O,lowerOobSpace:D,upperOobSpace:A}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:o,isContinuous:i,style:a,padding:s,measureText:l,prop:u="value"}){const{maxOobs:c,minOobs:d,filteredLabels:f}=Ga(e,t,n,u),p="scaledValue"!==u&&Da.getInvert({orientation:r,rtl:o,isContinuous:i}),m=function(e,t,n){return n?t:e}(d,c,p),h=function(e,t,n){return n?e:t}(d,c,p),g=m.length,y=h.length,v=Ya(l),b=Xa(g,v),x=Xa(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),M=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:f,lowerOobs:m,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:M}}({labels:u,minValue:k,maxValue:T,orientation:h,rtl:d,isContinuous:i,style:n,padding:f,measureText:this.measureText,prop:i?"value":"scaledValue"}),I=D,R=y-A;Fa(E),Fa(N);const P=Ja({alignment:0,dockValue:0,oobs:E,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+L/2,areaProps:p,radius:L/2,font:b}),z=Ja({alignment:1,dockValue:1,oobs:N,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+O/2),areaProps:p,radius:O/2,font:b});Va.addLabelsInfo({labels:q,scale:e,majorSize:y,lowerLimit:I,upperLimit:R,labelStyle:v,lineHeight:x,gap:S,maxLabelWidth:M,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:i,isDimension:a}),va.layout(q.map((e=>e.segment)),I,R,n.label.gap);const j=q.filter((e=>va.isInside(e.segment,I,R,i)));return Va.createLabels({labels:j,style:n.label,maxLabelWidth:M,areaProps:p,area:m,lineHeight:x,font:b,theme:o}).concat([...P,...z])}};var ts={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function ns(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...u}=t,c=ie(!0,{},{...n,qHyperCube:{...u,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=ts;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(c,e)&&i(c,e,null);else{const e=t[0],n=t[1].split("].")[1];o(c,e,[]).forEach((e=>{void 0!==o(e,n)&&i(e,n,null)}))}})),c}var rs={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,u=a.y-s.y,c=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=c,e.x2+=c):"text"===e.type&&(e.x+=c)})),"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+=c: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+c)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=u,e.y2+=u+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=ns(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=ns(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:os,extractInfoFromInputValue:is,resolveValue:as}=Da;var ss={resolveValue:as,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=os({refLineLayout:e,layoutService:n});return is(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=os({refLineLayout:e,layoutService:n});return is(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:o}=n.meta,i=os({refLineLayout:e,layoutService:n});return r[i]&&o?r[i].qText:i},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=os({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:o}=t;return o[r]}};const ls=({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:o,dockService:i,chart:a,scale:s,axis:l,invert:u,component:c,isContinuous:d})=>{var f,p;const m={dir:l,line:{strokeWidth:(null==t||null===(f=t.style)||void 0===f?void 0:f.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?(m.scale=s,m.value=t.refLineExpr.value):(m.valueInfo=ss.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),m.value=()=>{var e;const o=Da.getScaledPosition({scale:a.scale(s),value:ss.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:m.valueInfo,size:null===(e=a.component(c))||void 0===e?void 0:e.rect["horizontal"===i.meta.major.orientation?"width":"height"],align:t.align,invert:u,layoutService:r,isContinuous:d});return Number.isNaN(o)?void 0:o}),m};function us({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:o,animationsEnabled:i,chart:a,scale:s,axis:l,rtl:u,key:c,mainComponentKey:d,path:f,minimumLayoutMode:p}){const m=e?t.dimensionRefLines:f?t.query.getRefLines(f):t.measureRefLines;if(!m.length)return!1;const h={key:c,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:rs.lines.trackBy,compensateForLayoutChanges:rs.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==o.meta.major.orientation||!u),y=!e||n.meta.isContinuous;return m.forEach((i=>{h.lines[l].push(ls({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 cs={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},ds=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:o,scale:i,formatter:a,dock:s,key:l,rtl:u,theme:c,isContinuous:d,localeInfo:f})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:o,formatter:a,scale:i,layoutService:t,layout:{dock:s,rtl:u},theme:c,isContinuous:d,isDimension:e,localeInfo:f,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,fontStyle:r.referenceLine.label.name.fontStyle,fontWeight:r.referenceLine.label.name.fontWeight,textDecoration:r.referenceLine.label.name.textDecoration,padding:{top:2,bottom:2,left:u?2:4,right:u?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:rs.refLineLabels.trackBy,compensateForLayoutChanges:rs.refLineLabels.compensateForLayoutChanges}}),fs=({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:u}=e,{fontSize:c,fontFamily:d,fontStyle:f,fontWeight:p,textDecoration:m}=u||{},h={align:l,text:e.label,fill:e.coloredBackground?i.getContrastingColorTo(s):s,fontSize:c,fontFamily:d,fontStyle:f,fontWeight:p,textDecoration:m,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=()=>ss.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueText=()=>ss.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueInfo=()=>ss.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),h};function ps({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:o,dock:i,scale:a,style:s,formatter:l,theme:u,localeInfo:c,rtl:d,key:f,path:p}){const m=e?t.dimensionRefLineLabels:p?t.query.getRefLineLabels(p):t.measureRefLineLabels;if(!m.length)return[];const h=[],g=!e||n.meta.isContinuous,y=m.map((e=>fs({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:u,isContinuous:g})));return h.push(ds({isDimension:e,rtl:d,style:ie(!0,cs,s),dock:i,key:f,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:o,theme:u,isContinuous:g,localeInfo:c})),h}const ms={combineBounds(e){let t=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE;return e.forEach((e=>{e&&(t=Math.min(t,e.x,e.x+e.width),n=Math.max(n,e.x,e.x+e.width),r=Math.min(r,e.y,e.y+e.height),o=Math.max(o,e.y,e.y+e.height))})),{x:t,y:r,width:n-t,height:o-r}}},hs=(e,t,n)=>{if(!e)return Promise.resolve();let r=ra.generate(t,n);return ie(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0)):Promise.resolve()},gs=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))};function ys(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const vs={ref:null,refFn:e=>{var t;const n=null===(t=e.qHyperCubeDef.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)}));return`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0.qExpression`},change(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)})),r=he.getValue(e,`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0`),o=he.getValue(e,"color");r&&(r.id="colorByExpression",o&&(o.colorExpression=r.qExpression))}},bs={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"},xs={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"},Ss={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"},Ms={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"},Cs={d:"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"},ws={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"},ks={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"},Ts={single:"N",drillDown:"H",cyclic:"C"},qs={N:void 0,H:bs,C:Ss},Es=(e,t)=>{switch(e.qGrouping){case Ts.single:return;case Ts.drillDown:return{path:bs,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case Ts.cyclic:return{path:t?xs:Ss,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 Ns(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=ra.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 Ls(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)),u=ie(!0,{},a),c=u.qHyperCubeDef[r][s],d=u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=c.qAttributeDimensions,c.qAttributeDimensions=[],i||(d.qAttributeExpressions=c.qAttributeExpressions,c.qAttributeExpressions=[]),u.qHyperCubeDef[r][s]=d,u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=c,o&&o({oldItem:c,newItem:d,oldProperties:a,newProperties:u,model:e}),Ns(e,a,u)}))}function Os(e){return e.qGrouping===Ts.single?e.qFallbackTitle||"":e.title||""}const Ds=async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case Ts.drillDown:{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:bs,groupItem:!0,title:e.title,selected:!1,children:n}}case Ts.cyclic:{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:Ss,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:Os(e)}}},As=(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))},Is=async(e,t,n,r,o)=>{const i=await As(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===Ts.single&&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=qs[s],u=s!==Ts.single;return{id:n.qDef.cId,icon:l,groupItem:u,selected:!1,title:a,onSelect(e){Ls(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function Rs({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:u}){const c=l.qGrouping===Ts.single;return 0===r.length&&c?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await Ds(l,o,a,e),n=u?await Is(a,o,r,i,s):[];return(c||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function Ps(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Ts.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:Es(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===Ts.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:Os(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function zs({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:u}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await As(n,t),c=t.filter((e=>!o.includes(e.qDef.cId))),d=u?await Promise.all(c.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){Ls(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function js(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function Fs(){return Fs=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},Fs.apply(null,arguments)}var Bs,_s,Hs,$s,Vs,Ws={exports:{}};function Us(){if(_s)return Bs;_s=1;return Bs="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ks(){if($s)return Hs;$s=1;var e=Us();function t(){}function n(){}return n.resetWarningCache=t,Hs=function(){function r(t,n,r,o,i,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Gs(){return Vs||(Vs=1,Ws.exports=Ks()()),Ws.exports}var Ys=ee(Gs()),Xs={black:"#000",white:"#fff"},Js={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Zs={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Qs={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},el={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},tl={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},nl={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},rl={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 ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ol.apply(this,arguments)}function il(e){return il="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},il(e)}function al(e){return e&&"object"===il(e)&&e.constructor===Object}function sl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?ol({},e):e;return al(e)&&al(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(al(t[o])&&o in e?r[o]=sl(e[o],t[o],n):r[o]=t[o])})),r}function ll(e){var t=function(e,t){if("object"!=il(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=il(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==il(t)?t:t+""}function ul(e,t,n){return(t=ll(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cl(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 dl(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 fl(e){if(e.type)return e;if("#"===e.charAt(0))return fl(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(cl(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 pl(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 ml(e){var t="hsl"===(e=fl(e)).type?fl(function(e){var t=(e=fl(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])),pl({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 hl(e,t){return e=fl(e),t=dl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,pl(e)}function gl(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function yl(e,t){if(null==e)return{};var n,r,o=gl(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vl=["xs","sm","md","lg","xl"];function bl(e,t,n){var r;return ol({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")),ol({paddingLeft:t(2),paddingRight:t(2)},n,ul({},e.up("sm"),ol({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},ul(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),ul(r,e.up("sm"),{minHeight:64}),r)},n)}var xl={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:Xs.white,default:rl[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}},Sl={text:{primary:Xs.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:rl[800],default:"#303030"},action:{active:Xs.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 Ml(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=fl(e),t=dl(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 pl(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=fl(e),t=dl(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 pl(e)}(e.main,i)))}function Cl(e){var t=e.primary,n=void 0===t?{light:Qs[300],main:Qs[500],dark:Qs[700]}:t,r=e.secondary,o=void 0===r?{light:Zs.A200,main:Zs.A400,dark:Zs.A700}:r,i=e.error,a=void 0===i?{light:Js[300],main:Js[500],dark:Js[700]}:i,s=e.warning,l=void 0===s?{light:nl[300],main:nl[500],dark:nl[700]}:s,u=e.info,c=void 0===u?{light:el[300],main:el[500],dark:el[700]}:u,d=e.success,f=void 0===d?{light:tl[300],main:tl[500],dark:tl[700]}:d,p=e.type,m=void 0===p?"light":p,h=e.contrastThreshold,g=void 0===h?3:h,y=e.tonalOffset,v=void 0===y?.2:y,b=yl(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=ml(e),r=ml(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Sl.text.primary)>=g?Sl.text.primary:xl.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=ol({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(cl(4,t));if("string"!=typeof e.main)throw new Error(cl(5,JSON.stringify(e.main)));return Ml(e,"light",n,v),Ml(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},M={dark:Sl,light:xl};return sl(ol({common:Xs,type:m,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(c),success:S(f),grey:rl,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},M[m]),b)}function wl(e){return Math.round(1e5*e)/1e5}function kl(e){return wl(e)}var Tl={textTransform:"uppercase"},ql='"Roboto", "Helvetica", "Arial", sans-serif';function El(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?ql:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,u=n.fontWeightRegular,c=void 0===u?400:u,d=n.fontWeightMedium,f=void 0===d?500:d,p=n.fontWeightBold,m=void 0===p?700:p,h=n.htmlFontSize,g=void 0===h?16:h,y=n.allVariants,v=n.pxToRem,b=yl(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},M=function(e,t,n,r,i){return ol({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===ql?{letterSpacing:"".concat(wl(r/t),"em")}:{},i,y)},C={h1:M(l,96,1.167,-1.5),h2:M(l,60,1.2,-.5),h3:M(c,48,1.167,0),h4:M(c,34,1.235,.25),h5:M(c,24,1.334,0),h6:M(f,20,1.6,.15),subtitle1:M(c,16,1.75,.15),subtitle2:M(f,14,1.57,.1),body1:M(c,16,1.5,.15),body2:M(c,14,1.43,.15),button:M(f,14,1.75,.4,Tl),caption:M(c,12,1.66,.4),overline:M(c,12,2.66,1,Tl)};return sl(ol({htmlFontSize:g,pxToRem:S,round:kl,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:f,fontWeightBold:m},C),b,{clone:!1})}function Nl(){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 Ll=["none",Nl(0,2,1,-1,0,1,1,0,0,1,3,0),Nl(0,3,1,-2,0,2,2,0,0,1,5,0),Nl(0,3,3,-2,0,3,4,0,0,1,8,0),Nl(0,2,4,-1,0,4,5,0,0,1,10,0),Nl(0,3,5,-1,0,5,8,0,0,1,14,0),Nl(0,3,5,-1,0,6,10,0,0,1,18,0),Nl(0,4,5,-2,0,7,10,1,0,2,16,1),Nl(0,5,5,-3,0,8,10,1,0,3,14,2),Nl(0,5,6,-3,0,9,12,1,0,3,16,2),Nl(0,6,6,-3,0,10,14,1,0,4,18,3),Nl(0,6,7,-4,0,11,15,1,0,4,20,3),Nl(0,7,8,-4,0,12,17,2,0,5,22,4),Nl(0,7,8,-4,0,13,19,2,0,5,24,4),Nl(0,7,9,-4,0,14,21,2,0,5,26,4),Nl(0,8,9,-5,0,15,22,2,0,6,28,5),Nl(0,8,10,-5,0,16,24,2,0,6,30,5),Nl(0,8,11,-5,0,17,26,2,0,6,32,5),Nl(0,9,11,-5,0,18,28,2,0,7,34,6),Nl(0,9,12,-6,0,19,29,2,0,7,36,6),Nl(0,10,13,-6,0,20,31,3,0,8,38,7),Nl(0,10,13,-6,0,21,33,3,0,8,40,7),Nl(0,10,14,-6,0,22,35,3,0,8,42,7),Nl(0,11,14,-7,0,23,36,3,0,9,44,8),Nl(0,11,15,-7,0,24,38,3,0,9,46,8)],Ol={borderRadius:4};function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Al(e,t){if(e){if("string"==typeof e)return Dl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dl(e,t):void 0}}function Il(e){return function(e){if(Array.isArray(e))return Dl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Al(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 Rl(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,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Al(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 Pl(){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 zl={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)"},jl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fl(e){return"".concat(Math.round(e),"ms")}var Bl={easing:zl,duration:jl,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?jl.standard:n,o=t.easing,i=void 0===o?zl.easeInOut:o,a=t.delay,s=void 0===a?0:a;return yl(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Fl(r)," ").concat(i," ").concat("string"==typeof s?s:Fl(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))}},_l={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Hl(){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,u=void 0===l?{}:l,c=yl(e,["breakpoints","mixins","palette","spacing","typography"]),d=Cl(a),f=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=yl(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 u(e,t){var r=vl.indexOf(t);return r===vl.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[vl[r+1]]?n[vl[r+1]]:t)-a/100).concat(o,")")}return ol({keys:vl,values:n,up:l,down:function(e){var t=vl.indexOf(e)+1,r=n[vl[t]];return t===vl.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},s)}(n),p=Pl(s),m=sl({breakpoints:f,direction:"ltr",mixins:bl(f,p,o),overrides:{},palette:d,props:{},shadows:Ll,typography:El(d,u),spacing:p,shape:Ol,transitions:Bl,zIndex:_l},c),h=arguments.length,g=new Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return m=g.reduce((function(e,t){return sl(e,t)}),m)}var $l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Vl=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Wl(){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,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Vl.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[$l]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function Ul(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 Kl="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},Gl="object"===("undefined"==typeof window?"undefined":Kl(window))&&"object"===("undefined"==typeof document?"undefined":Kl(document))&&9===document.nodeType;function Yl(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,ll(r.key),r)}}function Xl(e,t,n){return t&&Yl(e.prototype,t),n&&Yl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jl(e,t){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jl(e,t)}function Zl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jl(e,t)}function Ql(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var eu={}.constructor;function tu(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(tu);if(e.constructor!==eu)return e;var t={};for(var n in e)t[n]=tu(e[n]);return t}function nu(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=tu(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var ru=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},ou=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+=ru(e[n]," ");else t=ru(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function iu(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function au(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function su(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=iu(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=au(f+":"+u+ou(p)+";",i))}}else for(var m in a){var h=a[m];null!=h&&(r&&(r+=l),r+=au(m+":"+u+ou(h)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=au(g+":"+u+ou(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),au(""+e+u+"{"+r,--i)+au("}",i)):r}var lu=/([[\].#*$><+~=|^:(),"'`\s])/g,uu="undefined"!=typeof CSS&&CSS.escape,cu=function(e){return uu?uu(e):e.replace(lu,"\\$1")},du=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}(),fu=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(Ql(Ql(o)),s),o.selectorText="."+cu(o.id)),o}Zl(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]=ou(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ol({},e,{allowEmpty:!0}):e;return su(this.selectorText,this.style,n)},Xl(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}(du),pu={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new fu(e,t,n)}},mu={indent:1,children:!0},hu=/@([\w-]+)/,gu=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(hu);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Bu(ol({},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=mu);var t=iu(e).linebreak;if(null==e.indent&&(e.indent=mu.indent),null==e.children&&(e.children=mu.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),yu=/@container|@media|@supports\s+/,vu={onCreateRule:function(e,t,n){return yu.test(e)?new gu(e,t,n):null}},bu={indent:1,children:!0},xu=/@keyframes\s+([\w-]+)/,Su=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(xu);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:cu(a(this,i)),this.rules=new Bu(ol({},n,{parent:this})),t)this.rules.add(s,t[s],ol({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=bu);var t=iu(e).linebreak;if(null==e.indent&&(e.indent=bu.indent),null==e.children&&(e.children=bu.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}(),Mu=/@keyframes\s+/,Cu=/\$([\w-]+)/g,wu=function(e,t){return"string"==typeof e?e.replace(Cu,(function(e,n){return n in t?t[n]:e})):e},ku=function(e,t,n){var r=e[t],o=wu(r,n);o!==r&&(e[t]=o)},Tu={onCreateRule:function(e,t,n){return"string"==typeof e&&Mu.test(e)?new Su(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&ku(e,"animation-name",n.keyframes),"animation"in e&&ku(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 wu(e,r.keyframes);default:return e}}},qu=function(e){function t(){return e.apply(this,arguments)||this}return Zl(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ol({},e,{allowEmpty:!0}):e;return su(this.key,this.style,n)},t}(du),Eu={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new qu(e,t,n):null}},Nu=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=iu(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=su(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return su(this.at,this.style,e)},e}(),Lu=/@font-face/,Ou={onCreateRule:function(e,t,n){return Lu.test(e)?new Nu(e,t,n):null}},Du=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 su(this.key,this.style,e)},e}(),Au={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Du(e,t,n):null}},Iu=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}(),Ru={"@charset":!0,"@import":!0,"@namespace":!0},Pu={onCreateRule:function(e,t,n){return e in Ru?new Iu(e,t,n):null}},zu=[pu,vu,Tu,Eu,Ou,Au,Pu],ju={process:!0},Fu={force:!0,process:!0},Bu=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,u=r.scoped,c=ol({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+cu(this.classes[d]));var f=nu(d,t,c);if(!f)return null;this.register(f);var p=void 0===c.index?this.index.length:c.index;return this.index.splice(p,0,f),f},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=ol({},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 fu?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Su&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof fu?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Su&&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=ju);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 u=t.style[l];u!==s[l]&&t.prop(l,u,Fu)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,Fu)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=iu(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}(),_u=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=ol({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Bu(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}(),Hu=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}(),$u=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=gl(t,["attached"]),o=iu(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},Xl(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Vu=new $u,Wu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Uu="2f1acc6c3a606b082e5eef5e54414ffb";null==Wu[Uu]&&(Wu[Uu]=0);var Ku=Wu[Uu]++,Gu=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")+Ku+o+t:i+n.key+"-"+Ku+(o?"-"+o:"")+"-"+t}},Yu=function(e){var t;return function(){return t||(t=e()),t}},Xu=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Ju=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=ou(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},Zu=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Qu=function(e,t){return e.selectorText=t,e.selectorText===t},ec=Yu((function(){return document.querySelector("head")}));function tc(e){var t=Vu.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=ec(),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 nc=Yu((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),rc=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]},oc=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ic=function(){function e(e){this.getPropertyValue=Xu,this.setProperty=Ju,this.removeProperty=Zu,this.setSelector=Qu,this.hasInsertedRules=!1,this.cssRules=[],e&&Vu.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=nc();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=tc(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 ec().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=oc(n,t);if(!1===(o=rc(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=oc(n,t),l=rc(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 _u&&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}(),ac=0,sc=function(){function e(e){this.id=ac++,this.version="10.10.0",this.plugins=new Hu,this.options={id:{minify:!1},createGenerateId:Gu,Renderer:Gl?ic:null,plugins:[]},this.generateId=Gu({minify:!1});for(var t=0;t<zu.length;t++)this.plugins.use(zu[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=ol({},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===Vu.index?0:Vu.index+1);var r=new _u(e,ol({},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(),Vu.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=ol({},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=nu(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}(),lc=function(e){return new sc(e)},uc="object"==typeof CSS&&null!=CSS&&"number"in CSS;function cc(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=cc(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
|
-
*/lc();var dc=Date.now(),fc="fnValues"+dc,pc="fnStyle"+ ++dc,mc=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=nu(e,{},n);return r[pc]=t,r},onProcessStyle:function(e,t){if(fc in t||pc 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[fc]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[pc];i&&(o.style=i(e)||{});var a=o[fc];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},hc="@global",gc="@global ",yc=function(){function e(e,t,n){for(var r in this.type="global",this.at=hc,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Bu(ol({},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}(),vc=function(){function e(e,t,n){this.type="global",this.at=hc,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(gc.length);this.rule=n.jss.createRule(r,t,ol({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),bc=/\s*,\s*/g;function xc(e,t){for(var n=e.split(bc),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Sc(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===hc)return new yc(e,t,n);if("@"===e[0]&&e.substr(0,gc.length)===gc)return new vc(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[hc]:null;if(o){for(var i in o)t.addRule(i,o[i],ol({},n,{selector:xc(i,e.selector)}));delete r[hc]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,hc.length)===hc){var i=xc(o.substr(hc.length),e.selector);t.addRule(i,r[o],ol({},n,{selector:i})),delete r[o]}}(e,t))}}}var Mc=/\s*,\s*/g,Cc=/&/g,wc=/\$([\w-]+)/g;function kc(){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(Mc),r=e.split(Mc),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(Cc,a):a+" "+l}return o}function n(e,t,n){if(n)return ol({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=ol({},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,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(a=n(l,u,a),d){var p=t(c,l.selector);s||(s=e(u,i)),p=p.replace(wc,s);var m=l.key+"-"+c;"replaceRule"in u?u.replaceRule(m,r[c],ol({},a,{selector:p})):u.addRule(m,r[c],ol({},a,{selector:p}))}else f&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var Tc=/[A-Z]/g,qc=/^ms-/,Ec={};function Lc(e){return"-"+e.toLowerCase()}function Nc(e){if(Ec.hasOwnProperty(e))return Ec[e];var t=e.replace(Tc,Lc);return Ec[e]=qc.test(t)?"-"+t:t}function Oc(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Nc(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Oc):t.fallbacks=Oc(e.fallbacks)),t}var Dc=uc&&CSS?CSS.px:"px",Ac=uc&&CSS?CSS.ms:"ms",Ic=uc&&CSS?CSS.percent:"%";function Rc(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 Pc=Rc({"animation-delay":Ac,"animation-duration":Ac,"background-position":Dc,"background-position-x":Dc,"background-position-y":Dc,"background-size":Dc,border:Dc,"border-bottom":Dc,"border-bottom-left-radius":Dc,"border-bottom-right-radius":Dc,"border-bottom-width":Dc,"border-left":Dc,"border-left-width":Dc,"border-radius":Dc,"border-right":Dc,"border-right-width":Dc,"border-top":Dc,"border-top-left-radius":Dc,"border-top-right-radius":Dc,"border-top-width":Dc,"border-width":Dc,"border-block":Dc,"border-block-end":Dc,"border-block-end-width":Dc,"border-block-start":Dc,"border-block-start-width":Dc,"border-block-width":Dc,"border-inline":Dc,"border-inline-end":Dc,"border-inline-end-width":Dc,"border-inline-start":Dc,"border-inline-start-width":Dc,"border-inline-width":Dc,"border-start-start-radius":Dc,"border-start-end-radius":Dc,"border-end-start-radius":Dc,"border-end-end-radius":Dc,margin:Dc,"margin-bottom":Dc,"margin-left":Dc,"margin-right":Dc,"margin-top":Dc,"margin-block":Dc,"margin-block-end":Dc,"margin-block-start":Dc,"margin-inline":Dc,"margin-inline-end":Dc,"margin-inline-start":Dc,padding:Dc,"padding-bottom":Dc,"padding-left":Dc,"padding-right":Dc,"padding-top":Dc,"padding-block":Dc,"padding-block-end":Dc,"padding-block-start":Dc,"padding-inline":Dc,"padding-inline-end":Dc,"padding-inline-start":Dc,"mask-position-x":Dc,"mask-position-y":Dc,"mask-size":Dc,height:Dc,width:Dc,"min-height":Dc,"max-height":Dc,"min-width":Dc,"max-width":Dc,bottom:Dc,left:Dc,top:Dc,right:Dc,inset:Dc,"inset-block":Dc,"inset-block-end":Dc,"inset-block-start":Dc,"inset-inline":Dc,"inset-inline-end":Dc,"inset-inline-start":Dc,"box-shadow":Dc,"text-shadow":Dc,"column-gap":Dc,"column-rule":Dc,"column-rule-width":Dc,"column-width":Dc,"font-size":Dc,"font-size-delta":Dc,"letter-spacing":Dc,"text-decoration-thickness":Dc,"text-indent":Dc,"text-stroke":Dc,"text-stroke-width":Dc,"word-spacing":Dc,motion:Dc,"motion-offset":Dc,outline:Dc,"outline-offset":Dc,"outline-width":Dc,perspective:Dc,"perspective-origin-x":Ic,"perspective-origin-y":Ic,"transform-origin":Ic,"transform-origin-x":Ic,"transform-origin-y":Ic,"transform-origin-z":Ic,"transition-delay":Ac,"transition-duration":Ac,"vertical-align":Dc,"flex-basis":Dc,"shape-margin":Dc,size:Dc,gap:Dc,grid:Dc,"grid-gap":Dc,"row-gap":Dc,"grid-row-gap":Dc,"grid-column-gap":Dc,"grid-template-rows":Dc,"grid-template-columns":Dc,"grid-auto-rows":Dc,"grid-auto-columns":Dc,"box-shadow-x":Dc,"box-shadow-y":Dc,"box-shadow-blur":Dc,"box-shadow-spread":Dc,"font-line-height":Dc,"text-shadow-x":Dc,"text-shadow-y":Dc,"text-shadow-blur":Dc});function zc(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=zc(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=zc(o,t[o],n);else for(var i in t)t[i]=zc(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Pc[e];return!a||0===t&&a===Dc?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function jc(e){void 0===e&&(e={});var t=Rc(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=zc(r,e[r],t);return e},onChangeValue:function(e,n){return zc(n,e,t)}}}var Fc="",Bc="",_c="",Hc="",$c=Gl&&"ontouchstart"in document.documentElement;if(Gl){var Vc={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Wc=document.createElement("p").style;for(var Uc in Vc)if(Uc+"Transform"in Wc){Fc=Uc,Bc=Vc[Uc];break}"Webkit"===Fc&&"msHyphens"in Wc&&(Fc="ms",Bc=Vc.ms,Hc="edge"),"Webkit"===Fc&&"-apple-trailing-word"in Wc&&(_c="apple")}var Kc={js:Fc,css:Bc,vendor:_c,browser:Hc,isTouch:$c};var Gc={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Kc.js?"-webkit-"+e:Kc.css+e)}},Yc={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Kc.js?Kc.css+"print-"+e:e)}},Xc=/[-\s]+(.)?/g;function Jc(e,t){return t?t.toUpperCase():""}function Zc(e){return e.replace(Xc,Jc)}function Qc(e){return Zc("-"+e)}var ed,td={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Kc.js){var n="mask-image";if(Zc(n)in t)return e;if(Kc.js+Qc(n)in t)return Kc.css+e}return e}},nd={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Kc.vendor||Kc.isTouch?e:Kc.css+e)}},rd={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Kc.css+e)}},od={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Kc.css+e)}},id={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Kc.js||"ms"===Kc.js&&"edge"!==Kc.browser?Kc.css+e:e)}},ad={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Kc.js||"ms"===Kc.js||"apple"===Kc.vendor?Kc.css+e:e)}},sd={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Kc.js?"WebkitColumn"+Qc(e)in t&&Kc.css+"column-"+e:"Moz"===Kc.js&&("page"+Qc(e)in t&&"page-"+e))}},ld={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Kc.js)return e;var n=e.replace("-inline","");return Kc.js+Qc(n)in t&&Kc.css+n}},ud={supportedProperty:function(e,t){return Zc(e)in t&&e}},cd={supportedProperty:function(e,t){var n=Qc(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Kc.js+n in t?Kc.css+e:"Webkit"!==Kc.js&&"Webkit"+n in t&&"-webkit-"+e}},dd={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Kc.js?""+Kc.css+e:e)}},fd={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Kc.js?Kc.css+"scroll-chaining":e)}},pd={"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"},md={supportedProperty:function(e,t){var n=pd[e];return!!n&&(Kc.js+Qc(n)in t&&Kc.css+n)}},hd={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"},gd=Object.keys(hd),yd=function(e){return Kc.css+e},vd={supportedProperty:function(e,t,n){var r=n.multiple;if(gd.indexOf(e)>-1){var o=hd[e];if(!Array.isArray(o))return Kc.js+Qc(o)in t&&Kc.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Kc.js+Qc(o[0])in t))return!1;return o.map(yd)}return!1}},bd=[Gc,Yc,td,nd,rd,od,id,ad,sd,ld,ud,cd,dd,fd,md,vd],xd=bd.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Sd=bd.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Il(t.noPrefill)),e}),[]),Md={};if(Gl){ed=document.createElement("p");var Cd=window.getComputedStyle(document.documentElement,"");for(var wd in Cd)isNaN(wd)||(Md[Cd[wd]]=Cd[wd]);Sd.forEach((function(e){return delete Md[e]}))}function kd(e,t){if(void 0===t&&(t={}),!ed)return e;if(null!=Md[e])return Md[e];"transition"!==e&&"transform"!==e||(t[e]=e in ed.style);for(var n=0;n<xd.length&&(Md[e]=xd[n](e,ed.style,t),!Md[e]);n++);try{ed.style[e]=""}catch(e){return!1}return Md[e]}var Td,qd={},Ed={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ld=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Nd(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?kd(t):", "+kd(n);return r||(t||n)}function Od(e,t){var n=t;if(!Td||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=qd[r])return qd[r];try{Td.style[e]=n}catch(e){return qd[r]=!1,!1}if(Ed[e])n=n.replace(Ld,Nd);else if(""===Td.style[e]&&("-ms-flex"===(n=Kc.css+n)&&(Td.style[e]="-ms-flexbox"),Td.style[e]=n,""===Td.style[e]))return qd[r]=!1,!1;return Td.style[e]="",qd[r]=n,qd[r]}function Dd(){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=kd(n);i&&i!==n&&(o=!0);var a=!1,s=Od(i,ou(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"===Kc.js?e:"@"+Kc.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Od(t,ou(e))||e}}}function Ad(){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 Id(){return{plugins:[mc(),Sc(),kc(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Oc(e[t]);return e}return Oc(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Nc(t);return t===r?e:(n.prop(r,e),null)}},jc(),"undefined"==typeof window?null:Dd(),Ad()]}}function Rd(){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=ol({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Gl&&(Td=document.createElement("p"));var Pd={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},zd=Pd,jd=b.createContext(null);function Fd(){return b.useContext(jd)}var Bd,_d=lc(Id()),Hd={disableGeneration:!1,generateClassName:Wl(),jss:_d,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},$d=b.createContext(Hd);function Vd(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=yl(e,["children","injectFirst","disableGeneration"]),s=ol({},b.useContext($d),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Bd){var l=document.head;Bd=document.createComment("mui-inject-first"),l.insertBefore(Bd,l.firstChild)}s.jss=lc({plugins:Id().plugins,insertionPoint:Bd})}return b.createElement($d.Provider,{value:s},t)}var Wd=-1e9;var Ud={};function Kd(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=zd.get(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},zd.set(o.sheetsManager,i,r,s));var l=ol({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=zd.get(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,ol({link:!1},l))).attach(),o.sheetsCache&&zd.set(o.sheetsCache,i,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=cc(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,ol({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=Rd({baseClasses:s.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Gd(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?Ud:i,s=yl(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=ol({},o);return Object.keys(i).forEach((function(e){a[e]=sl(a[e],i[e])})),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:Wd+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Fd()||a,r=ol({},b.useContext($d),s),i=b.useRef(),u=b.useRef();!function(e,t){var n,r=b.useRef([]),o=b.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),b.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Kd(o,e),u.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=zd.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(zd.delete(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]),b.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),u.current=!0}));var c=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var 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=Rd({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return c}}function Yd(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=Yd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Xd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Yd(e))&&(r&&(r+=" "),r+=t);return r}var Jd,Zd,Qd,ef,tf={exports:{}},nf={};function rf(){return Zd||(Zd=1,tf.exports=function(){if(Jd)return nf;Jd=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case m:case p:case a:return e;default:return f}}case n:return f}}}function x(e){return b(e)===u}return nf.AsyncMode=l,nf.ConcurrentMode=u,nf.ContextConsumer=s,nf.ContextProvider=a,nf.Element=t,nf.ForwardRef=c,nf.Fragment=r,nf.Lazy=m,nf.Memo=p,nf.Portal=n,nf.Profiler=i,nf.StrictMode=o,nf.Suspense=d,nf.isAsyncMode=function(e){return x(e)||b(e)===l},nf.isConcurrentMode=x,nf.isContextConsumer=function(e){return b(e)===s},nf.isContextProvider=function(e){return b(e)===a},nf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},nf.isForwardRef=function(e){return b(e)===c},nf.isFragment=function(e){return b(e)===r},nf.isLazy=function(e){return b(e)===m},nf.isMemo=function(e){return b(e)===p},nf.isPortal=function(e){return b(e)===n},nf.isProfiler=function(e){return b(e)===i},nf.isStrictMode=function(e){return b(e)===o},nf.isSuspense=function(e){return b(e)===d},nf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===h)},nf.typeOf=b,nf}()),tf.exports}var of=function(){if(ef)return Qd;ef=1;var e=rf(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return Qd=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var m=i(t),h=i(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||o&&o[y]||h&&h[y]||m&&m[y])){var v=u(r,y);try{a(t,y,v)}catch(e){}}}}return t},Qd}(),af=ee(of);function sf(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=yl(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(ol({theme:e},n))}}}:{root:t},l=Gd(s,ol({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 u=b.forwardRef((function(t,r){var o,i,a,s=t.children,u=t.className,c=t.clone,d=t.component,f=yl(t,["children","className","clone","component"]),p=Xd(l(t).root,u),m=f;if(n&&(o=m,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),m=a),c)return b.cloneElement(s,ol({className:Xd(s.props.className,p)},m));if("function"==typeof s)return s(ol({className:p},m));var h=d||e;return b.createElement(h,ol({ref:r,className:p},m),s)}));return af(u,e),u}}function lf(e){var t=e.children,n=e.theme,r=Fd(),o=b.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):ol({},e,t)}(r,n);return null!=e&&(e[$l]=null!==r),e}),[n,r]);return b.createElement(jd.Provider,{value:o},t)}var uf=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=yl(t,["defaultTheme","withTheme","name"]),l=a,u=Gd(e,ol({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=b.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=yl(e,["classes","innerRef"]),c=u(ol({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=Fd()||r,a&&(d=Ul({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),b.createElement(n,ol({ref:s||t,classes:c},d))}));return af(c,n),c}},cf=Hl(),df=function(e){var t=sf(e);return function(e,n){return t(e,ol({defaultTheme:cf},n))}};function ff(e,t){return uf(e,ol({defaultTheme:cf},t))}function pf(e){if("string"!=typeof e)throw new Error(cl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function mf(){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 hf(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=hf(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function gf(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=hf(e))&&(r&&(r+=" "),r+=t);return r}function yf(e){return e&&e.ownerDocument||document}function vf(e){return yf(e).defaultView||window}function bf(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var xf="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Sf(e){var t=x.useRef(e);return xf((function(){t.current=e})),x.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Mf(e,t){return x.useMemo((function(){return null==e&&null==t?null:function(n){bf(e,n),bf(t,n)}}),[e,t])}var Cf=!0,wf=!1,kf=null,Tf={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 qf(e){e.metaKey||e.altKey||e.ctrlKey||(Cf=!0)}function Ef(){Cf=!1}function Lf(){"hidden"===this.visibilityState&&wf&&(Cf=!0)}function Nf(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Cf||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Tf[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Of(){wf=!0,window.clearTimeout(kf),kf=window.setTimeout((function(){wf=!1}),100)}function Df(){var e=x.useCallback((function(e){var t,n=T.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",qf,!0),t.addEventListener("mousedown",Ef,!0),t.addEventListener("pointerdown",Ef,!0),t.addEventListener("touchstart",Ef,!0),t.addEventListener("visibilitychange",Lf,!0))}),[]);return{isFocusVisible:Nf,onBlurVisible:Of,ref:e}}var Af=!1,If=b.createContext(null),Rf="unmounted",Pf="exited",zf="entering",jf="entered",Ff="exiting",Bf=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=Pf,r.appearStatus=zf):o=jf:o=t.unmountOnExit||t.mountOnEnter?Rf:Pf,r.state={status:o},r.nextCallback=null,r}Zl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rf?{status:Pf}: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!==zf&&n!==jf&&(t=zf):n!==zf&&n!==jf||(t=Ff)}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===zf){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:q.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pf&&this.setState({status:Rf})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[q.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Af?this.safeSetState({status:jf},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:zf},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:jf},(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:q.findDOMNode(this);t&&!Af?(this.props.onExit(r),this.safeSetState({status:Ff},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Pf},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Pf},(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:q.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===Rf)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=gl(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(If.Provider,{value:null},"function"==typeof n?n(e,r):b.cloneElement(b.Children.only(n),r))},t}(b.Component);function _f(){}Bf.contextType=If,Bf.propTypes={},Bf.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_f,onEntering:_f,onEntered:_f,onExit:_f,onExiting:_f,onExited:_f},Bf.UNMOUNTED=Rf,Bf.EXITED=Pf,Bf.ENTERING=zf,Bf.ENTERED=jf,Bf.EXITING=Ff;var Hf=Bf;function $f(e,t){var n=Object.create(null);return e&&S.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&M(e)?t(e):e}(e)})),n}function Vf(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Wf(e,t,n){var r=$f(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 u=o[l][r];s[o[l][r]]=n(u)}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(M(a)){var s=i in t,l=i in r,u=t[i],c=M(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&M(u)&&(o[i]=C(a,{onExited:n.bind(null,a),in:u.props.in,exit:Vf(a,"exit",e),enter:Vf(a,"enter",e)})):o[i]=C(a,{in:!1}):o[i]=C(a,{onExited:n.bind(null,a),in:!0,exit:Vf(a,"exit",e),enter:Vf(a,"enter",e)})}})),o}var Uf=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Kf=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ql(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Zl(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,$f(n.children,(function(e){return C(e,{onExited:r.bind(null,e),in:!0,appear:Vf(e,"appear",n),enter:Vf(e,"enter",n),exit:Vf(e,"exit",n)})}))):Wf(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=$f(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ol({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=gl(e,["component","childFactory"]),o=this.state.contextValue,i=Uf(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?b.createElement(If.Provider,{value:o},i):b.createElement(If.Provider,{value:o},b.createElement(t,r,i))},t}(b.Component);Kf.propTypes={},Kf.defaultProps={component:"div",childFactory:function(e){return e}};var Gf=Kf;function Yf(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 Xf=x.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,u=void 0===l?1:l,c=e.variant,d=void 0===c?"elevation":c,f=yl(e,["classes","className","component","square","elevation","variant"]);return x.createElement(i,ol({className:gf(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(u)],!s&&n.rounded),ref:t},f))})),Jf=ff((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),ol({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"})(Xf),Zf="undefined"==typeof window?x.useEffect:x.useLayoutEffect;function Qf(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,u=void 0===l?function(){}:l,c=e.timeout,d=x.useState(!1),f=d[0],p=d[1],m=gf(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=gf(t.child,f&&t.childLeaving,r&&t.childPulsate),y=Sf(u);return Zf((function(){if(!s){p(!0);var e=setTimeout(y,c);return function(){clearTimeout(e)}}}),[y,s,c]),x.createElement("span",{className:m,style:h},x.createElement("span",{className:g}))}var ep=x.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=yl(e,["center","classes","className"]),s=x.useState([]),l=s[0],u=s[1],c=x.useRef(0),d=x.useRef(null);x.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=x.useRef(!1),p=x.useRef(null),m=x.useRef(null),h=x.useRef(null);x.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var g=x.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;u((function(e){return[].concat(Il(e),[x.createElement(Qf,{key:c.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),c.current+=1,d.current=a}),[o]),y=x.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,u=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var c,d,y,v=u?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)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,M=x.clientY;c=Math.round(S-b.left),d=Math.round(M-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 C=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,w=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(C,2)+Math.pow(w,2))}e.touches?null===m.current&&(m.current=function(){g({pulsate:i,rippleX:c,rippleY:d,rippleSize:y,cb:n})},p.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):g({pulsate:i,rippleX:c,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=x.useCallback((function(){y({},{pulsate:!0})}),[y]),b=x.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(p.current=setTimeout((function(){b(e,t)})));m.current=null,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return x.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),x.createElement("span",ol({className:gf(o.root,i),ref:h},a),x.createElement(Gf,{component:null,exit:!0},l))})),tp=ff((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"})(x.memo(ep)),np=x.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,u=e.component,c=void 0===u?"button":u,d=e.disabled,f=void 0!==d&&d,p=e.disableRipple,m=void 0!==p&&p,h=e.disableTouchRipple,g=void 0!==h&&h,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,S=e.onBlur,M=e.onClick,C=e.onFocus,w=e.onFocusVisible,k=e.onKeyDown,q=e.onKeyUp,E=e.onMouseDown,L=e.onMouseLeave,N=e.onMouseUp,O=e.onTouchEnd,D=e.onTouchMove,A=e.onTouchStart,I=e.onDragLeave,R=e.tabIndex,P=void 0===R?0:R,z=e.TouchRippleProps,j=e.type,F=void 0===j?"button":j,B=yl(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"]),_=x.useRef(null);var H=x.useRef(null),$=x.useState(!1),V=$[0],W=$[1];f&&V&&W(!1);var U=Df(),K=U.isFocusVisible,G=U.onBlurVisible,Y=U.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Sf((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}x.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),_.current.focus()}}}),[]),x.useEffect((function(){V&&v&&!m&&H.current.pulsate()}),[m,v,V]);var J=X("start",E),Z=X("stop",I),Q=X("stop",N),ee=X("stop",(function(e){V&&e.preventDefault(),L&&L(e)})),te=X("start",A),ne=X("stop",O),re=X("stop",D),oe=X("stop",(function(e){V&&(G(e),W(!1)),S&&S(e)}),!1),ie=Sf((function(e){_.current||(_.current=e.currentTarget),K(e)&&(W(!0),w&&w(e)),C&&C(e)})),ae=function(){var e=T.findDOMNode(_.current);return c&&"button"!==c&&!("A"===e.tagName&&e.href)},se=x.useRef(!1),le=Sf((function(e){v&&!se.current&&V&&H.current&&" "===e.key&&(se.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!f&&(e.preventDefault(),M&&M(e))})),ue=Sf((function(e){v&&" "===e.key&&H.current&&V&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),q&&q(e),M&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&M(e)})),ce=c;"button"===ce&&B.href&&(ce="a");var de={};"button"===ce?(de.type=F,de.disabled=f):("a"===ce&&B.href||(de.role="button"),de["aria-disabled"]=f);var fe=Mf(r,t),pe=Mf(Y,_),me=Mf(fe,pe),he=x.useState(!1),ge=he[0],ye=he[1];x.useEffect((function(){ye(!0)}),[]);var ve=ge&&!m&&!f;return x.createElement(ce,ol({className:gf(s.root,l,V&&[s.focusVisible,b],f&&s.disabled),onBlur:oe,onClick:M,onFocus:ie,onKeyDown:le,onKeyUp:ue,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:me,tabIndex:f?-1:P},de,B),a,ve?x.createElement(tp,ol({ref:H,center:i},z)):null)})),rp=ff({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"})(np),op={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},ip=x.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,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,f=void 0!==d&&d,p=e.noWrap,m=void 0!==p&&p,h=e.paragraph,g=void 0!==h&&h,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,S=void 0===b?op:b,M=yl(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":S[v]||op[v])||"span";return x.createElement(C,ol({className:gf(o.root,i,"inherit"!==v&&o[v],"initial"!==s&&o["color".concat(pf(s))],m&&o.noWrap,f&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(pf(r))],"initial"!==c&&o["display".concat(pf(c))]),ref:t},M))})),ap=ff((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"})(ip),sp=x.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,u=e.disabled,c=void 0!==u&&u,d=e.disableElevation,f=void 0!==d&&d,p=e.disableFocusRipple,m=void 0!==p&&p,h=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,S=void 0===b?"medium":b,M=e.startIcon,C=e.type,w=void 0===C?"button":C,k=e.variant,T=void 0===k?"text":k,q=yl(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=M&&x.createElement("span",{className:gf(r.startIcon,r["iconSize".concat(pf(S))])},M),L=h&&x.createElement("span",{className:gf(r.endIcon,r["iconSize".concat(pf(S))])},h);return x.createElement(rp,ol({className:gf(r.root,r[T],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(pf(a))],"medium"!==S&&[r["".concat(T,"Size").concat(pf(S))],r["size".concat(pf(S))]],f&&r.disableElevation,c&&r.disabled,v&&r.fullWidth),component:l,disabled:c,focusRipple:!m,focusVisibleClassName:gf(r.focusVisible,g),ref:t,type:w},q),x.createElement("span",{className:r.label},E,n,L))})),lp=ff((function(e){return{root:ol({},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:hl(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:hl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:hl(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(hl(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:hl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(hl(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:hl(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"})(sp);var up="undefined"!=typeof window?x.useLayoutEffect:x.useEffect,cp=x.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=x.useState(null),l=s[0],u=s[1],c=Mf(x.isValidElement(n)?n.ref:null,t);return up((function(){i||u(function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(r)||document.body)}),[r,i]),up((function(){if(l&&!i)return bf(t,l),function(){bf(t,null)}}),[t,l,i]),up((function(){a&&(l||i)&&a()}),[a,l,i]),i?x.isValidElement(n)?x.cloneElement(n,{ref:c}):n:l?T.createPortal(n,l):l})),dp=cp;function fp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function pp(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function mp(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Il(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)&&fp(e,r)}))}function hp(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function gp(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=yf(e);return t.body===e?vf(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(pp(i)+a,"px"),n=yf(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(pp(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 yp=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 Xl(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&&fp(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);mp(t,e.mountNode,e.modalRef,r,!0);var o=hp(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=hp(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=gp(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=hp(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&fp(e.modalRef,!0),mp(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&&fp(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function vp(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,u=e.isEnabled,c=e.open,d=x.useRef(),f=x.useRef(null),p=x.useRef(null),m=x.useRef(),h=x.useRef(null),g=x.useCallback((function(e){h.current=T.findDOMNode(e)}),[]),y=Mf(t.ref,g),v=x.useRef();return x.useEffect((function(){v.current=c}),[c]),!v.current&&c&&"undefined"!=typeof window&&(m.current=l().activeElement),x.useEffect((function(){if(c){var e=yf(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&&u()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!i&&u()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?p.current.focus():f.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||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,i,s,u,c]),x.createElement(x.Fragment,null,x.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),x.cloneElement(t,{ref:y}),x.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))}var bp={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"}},xp=x.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=yl(e,["invisible","open"]);return o?x.createElement("div",ol({"aria-hidden":!0,ref:t},i,{style:ol({},bp.root,r?bp.invisible:{},i.style)})):null}));var Sp=new yp,Mp=x.forwardRef((function(e,t){var n=Fd(),r=Ul({name:"MuiModal",props:ol({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?xp:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,p=r.disableBackdropClick,m=void 0!==p&&p,h=r.disableEnforceFocus,g=void 0!==h&&h,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,S=void 0!==b&&b,M=r.disableRestoreFocus,C=void 0!==M&&M,w=r.disableScrollLock,k=void 0!==w&&w,q=r.hideBackdrop,E=void 0!==q&&q,L=r.keepMounted,N=void 0!==L&&L,O=r.manager,D=void 0===O?Sp:O,A=r.onBackdropClick,I=r.onClose,R=r.onEscapeKeyDown,P=r.onRendered,z=r.open,j=yl(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=x.useState(!0),B=F[0],_=F[1],H=x.useRef({}),$=x.useRef(null),V=x.useRef(null),W=Mf(V,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),K=function(){return yf($.current)},G=function(){return H.current.modalRef=V.current,H.current.mountNode=$.current,H.current},Y=function(){D.mount(G(),{disableScrollLock:k}),V.current.scrollTop=0},X=Sf((function(){var e=function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(c)||K().body;D.add(G(),e),V.current&&Y()})),J=x.useCallback((function(){return D.isTopModal(G())}),[D]),Z=Sf((function(e){$.current=e,e&&(P&&P(),z&&J()?Y():fp(V.current,!0))})),Q=x.useCallback((function(){D.remove(G())}),[D]);if(x.useEffect((function(){return function(){Q()}}),[Q]),x.useEffect((function(){z?X():U&&u||Q()}),[z,Q,U,u,X]),!N&&!z&&(!U||B))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:_l}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=mf((function(){_(!1)}),s.props.onEnter),te.onExited=mf((function(){_(!0),u&&Q()}),s.props.onExited)),x.createElement(dp,{ref:Z,container:c,disablePortal:S},x.createElement("div",ol({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(R&&R(e),v||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},j,{style:ol({},ee.root,!z&&B?ee.hidden:{},j.style)}),E?null:x.createElement(i,ol({open:z,onClick:function(e){e.target===e.currentTarget&&(A&&A(e),!m&&I&&I(e,"backdropClick"))}},a)),x.createElement(vp,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:C,getDoc:K,isEnabled:J,open:z},x.cloneElement(s,te))))})),Cp=Mp,wp=x.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,u=void 0!==l&&l,c=e.light,d=void 0!==c&&c,f=e.orientation,p=void 0===f?"horizontal":f,m=e.role,h=void 0===m?"hr"!==s?"separator":void 0:m,g=e.variant,y=void 0===g?"fullWidth":g,v=yl(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return x.createElement(s,ol({className:gf(o.root,i,"fullWidth"!==y&&o[y],r&&o.absolute,u&&o.flexItem,d&&o.light,"vertical"===p&&o.vertical),role:h,ref:t},v))})),kp=ff((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:hl(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"})(wp);function Tp(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var qp={entering:{opacity:1,transform:Tp(1)},entered:{opacity:1,transform:"none"}},Ep=x.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,u=e.onExit,c=e.onExited,d=e.onExiting,f=e.style,p=e.timeout,m=void 0===p?"auto":p,h=e.TransitionComponent,g=void 0===h?Hf:h,y=yl(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=x.useRef(),b=x.useRef(),S=Fd()||cf,M=S.unstable_strictMode&&!o,C=x.useRef(null),w=Mf(n.ref,t),k=Mf(M?C:void 0,w),T=function(e){return function(t,n){if(e){var r=Rl(M?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},q=T(l),E=T((function(e,t){!function(e){e.scrollTop}(e);var n,r=Yf({style:f,timeout:m},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===m?(n=S.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=o,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:i}),S.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),L=T(s),N=T(d),O=T((function(e){var t,n=Yf({style:f,timeout:m},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===m?(t=S.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[S.transitions.create("opacity",{duration:t,delay:o}),S.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Tp(.75),u&&u(e)})),D=T(c);return x.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),x.createElement(g,ol({appear:!0,in:i,nodeRef:M?C:void 0,onEnter:E,onEntered:L,onEntering:q,onExit:O,onExited:D,onExiting:N,addEndListener:function(e,t){var n=M?e:t;"auto"===m&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===m?null:m},y),(function(e,t){return x.cloneElement(n,ol({style:ol({opacity:0,transform:Tp(.75),visibility:"exited"!==e||i?void 0:"hidden"},qp[e],f,n.props.style),ref:k},t))}))}));Ep.muiSupportAuto=!0;var Lp=Ep,Np=x.createContext({}),Op=x.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,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,f=yl(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=x.useMemo((function(){return{dense:l}}),[l]);return x.createElement(Np.Provider,{value:p},x.createElement(a,ol({className:gf(r.root,o,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},f),d,n))})),Dp=ff({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Op),Ap="undefined"==typeof window?x.useEffect:x.useLayoutEffect,Ip=x.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,u=e.classes,c=e.className,d=e.component,f=e.ContainerComponent,p=void 0===f?"li":f,m=e.ContainerProps,h=(m=void 0===m?{}:m).className,g=yl(m,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,S=void 0!==b&&b,M=e.disableGutters,C=void 0!==M&&M,w=e.divider,k=void 0!==w&&w,q=e.focusVisibleClassName,E=e.selected,L=void 0!==E&&E,N=yl(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=x.useContext(Np),D={dense:v||O.dense||!1,alignItems:r},A=x.useRef(null);Ap((function(){i&&A.current&&A.current.focus()}),[i]);var I,R,P=x.Children.toArray(l),z=P.length&&(I=P[P.length-1],R=["ListItemSecondaryAction"],x.isValidElement(I)&&-1!==R.indexOf(I.type.muiName)),j=Mf(x.useCallback((function(e){A.current=T.findDOMNode(e)}),[]),t),F=ol({className:gf(u.root,c,D.dense&&u.dense,!C&&u.gutters,k&&u.divider,S&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,z&&u.secondaryAction,L&&u.selected),disabled:S},N),B=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=gf(u.focusVisible,q),B=rp),z?(B=F.component||d?B:"div","li"===p&&("li"===B?B="div":"li"===F.component&&(F.component="div")),x.createElement(Np.Provider,{value:D},x.createElement(p,ol({className:gf(u.container,h),ref:j},g),x.createElement(B,F,P),P.pop()))):x.createElement(Np.Provider,{value:D},x.createElement(B,ol({ref:j},F),P))})),Rp=ff((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"})(Ip),Pp=x.forwardRef((function(e,t){var n=e.classes,r=e.className,o=yl(e,["classes","className"]),i=x.useContext(Np);return x.createElement("div",ol({className:gf(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),zp=ff((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Pp),jp=x.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,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,p=yl(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=x.useContext(Np).dense,h=null!=u?u:n;null==h||h.type===ap||a||(h=x.createElement(ap,ol({variant:m?"body2":"body1",className:r.primary,component:"span",display:"block"},c),h));var g=d;return null==g||g.type===ap||a||(g=x.createElement(ap,ol({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),x.createElement("div",ol({className:gf(r.root,o,m&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),Fp=ff({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(jp);function Bp(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function _p(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Hp(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function $p(e){return"function"==typeof e?e():e}var Vp=x.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,u=e.children,c=e.classes,d=e.className,f=e.container,p=e.elevation,m=void 0===p?8:p,h=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,S=e.onEntering,M=e.onExit,C=e.onExited,w=e.onExiting,k=e.open,q=e.PaperProps,E=void 0===q?{}:q,L=e.transformOrigin,N=void 0===L?{vertical:"top",horizontal:"left"}:L,O=e.TransitionComponent,D=void 0===O?Lp:O,A=e.transitionDuration,I=void 0===A?"auto":A,R=e.TransitionProps,P=void 0===R?{}:R,z=yl(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),j=x.useRef(),F=x.useCallback((function(e){if("anchorPosition"===l)return a;var t=$p(r),n=(t&&1===t.nodeType?t:yf(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Bp(n,o),left:n.left+_p(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),B=x.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]),_=x.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Bp(e,N.vertical)+t,horizontal:_p(e,N.horizontal)}}),[N.horizontal,N.vertical]),H=x.useCallback((function(e){var t=B(e),n={width:e.offsetWidth,height:e.offsetHeight},o=_(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Hp(o)};var i=F(t),a=i.top-o.vertical,s=i.left-o.horizontal,u=a+n.height,c=s+n.width,d=vf($p(r)),f=d.innerHeight-y,p=d.innerWidth-y;if(a<y){var m=a-y;a-=m,o.vertical+=m}else if(u>f){var h=u-f;a-=h,o.vertical+=h}if(s<y){var g=s-y;s-=g,o.horizontal+=g}else if(c>p){var v=c-p;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Hp(o)}}),[r,l,F,B,_,y]),$=x.useCallback((function(){var e=j.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),V=x.useCallback((function(e){j.current=T.findDOMNode(e)}),[]);x.useEffect((function(){k&&$()})),x.useImperativeHandle(n,(function(){return k?{updatePosition:function(){$()}}:null}),[k,$]),x.useEffect((function(){if(k){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,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)}}}),[k,$]);var W=I;"auto"!==I||D.muiSupportAuto||(W=void 0);var U=f||(r?yf($p(r)).body:void 0);return x.createElement(Cp,ol({container:U,open:k,ref:t,BackdropProps:{invisible:!0},className:gf(c.root,d)},z),x.createElement(D,ol({appear:!0,in:k,onEnter:v,onEntered:b,onExit:M,onExited:C,onExiting:w,timeout:W},P,{onEntering:mf((function(e,t){S&&S(e,t),$()}),P.onEntering)}),x.createElement(Jf,ol({elevation:m,ref:V},E,{className:gf(c.paper,E.className)}),u)))})),Wp=ff({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Vp);function Up(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Kp({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Up(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return b.createElement("i",{style:o},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},b.createElement("path",{d:e})))}const Gp={menuItem:"alternative-menu-item"},Yp=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>Gd((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 b.createElement(Rp,Fs({className:`${o.root} ${n}`},r))},Xp=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Gp.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function Jp({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=Oe.detectTextDirection(e);return b.createElement(Yp,{nested:r,role:"menuitem",button:!0,onClick:n,className:Gp.menuItem,onKeyDown:Xp,dir:a,autoFocus:t},b.createElement(Fp,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),b.createElement(zp,{style:{minWidth:16}},b.createElement(Kp,{d:t?Cs.d:""})),o&&b.createElement(zp,{style:{minWidth:16}},b.createElement(Kp,{d:o.d})))}Jp.propTypes={title:Ys.string.isRequired,selected:Ys.bool,onClick:Ys.func.isRequired,nested:Ys.bool,icon:Ys.shape({d:Ys.string.isRequired}),bold:Ys.bool,dir:Ys.string.isRequired},Jp.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Yp.propTypes={nested:Ys.bool,className:Ys.string},Yp.defaultProps={nested:!1,className:Gp.menuItem};const Zp={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 Qp({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const u=i.map(((t,o)=>{var s;return b.createElement(b.Fragment,{key:t.id},b.createElement(Jp,{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&&b.createElement(Dp,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>b.createElement(Jp,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&b.createElement(kp,{key:`divider-${t.id}`}))}));return b.createElement(Wp,Fs({anchorEl:t,open:s,onClose:a},Zp[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),b.createElement(Dp,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},u))}Qp.propTypes={chartId:Ys.string.isRequired,alignTo:Ys.any,currentId:Ys.string.isRequired,dir:Ys.string.isRequired,dock:Ys.string.isRequired,list:Ys.array,onClose:Ys.func.isRequired,show:Ys.bool.isRequired,instruction:Ys.string.isRequired},Qp.defaultProps={list:[],alignTo:null};const em="title-button",tm="active-title-button",nm=df((({children:e,...t})=>b.createElement(lp,Fs({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),rm=df(lp)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class om extends b.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=b.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(`.${em}`);t&&(t.focus(),t.classList.add(tm))}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(`.${em}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${tm}`);e&&(e.classList.remove(tm),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:u,showGroupDimOptions:c}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,p=o||Boolean(!t.drillUp)||this.state.inSelection,m=t.breadcrumbs.map(((e,n)=>b.createElement(nm,{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(f-n),title:e},b.createElement("span",{style:d},e),b.createElement(Kp,Fs({},ks,{size:"small",style:{margin:"0 8px"}}))))),h=u||c?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 x=()=>{this.setState({disableCyclicButton:!0})},S=Oe.detectTextDirection(t.text),M=b.createElement(nm,{"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:`${em} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&b.createElement(Kp,Fs({},Ms,{size:"small",title:r.get("Tooltip.selections.locked")})),b.createElement("span",{style:d,dir:S},t.text),n&&h&&b.createElement(Kp,Fs({},ws,{size:"small",style:{margin:"0 8px"}})));return b.createElement(b.Fragment,null,t.icon&&t.icon.onClick&&b.createElement(rm,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},b.createElement(Kp,Fs({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&b.createElement(Kp,Fs({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),m,b.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},M),n&&h&&b.createElement(Qp,{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 im(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}om.propTypes={chartId:Ys.string.isRequired,disabled:Ys.bool.isRequired,padding:Ys.string,minWidth:Ys.string,titleData:Ys.shape({breadcrumbs:Ys.arrayOf(Ys.string).isRequired,icon:Ys.shape({path:Ys.shape({d:Ys.string.isRequired}),tooltip:Ys.string.isRequired,onClick:Ys.func}),index:Ys.number.isRequired,locked:Ys.bool.isRequired,text:Ys.string.isRequired,popoverText:Ys.string.isRequired,drillUp:Ys.func,id:Ys.string.isRequired}).isRequired,popover:Ys.shape({dir:Ys.string.isRequired,dock:Ys.string.isRequired,getPopoverOptions:Ys.func.isRequired}),translator:Ys.shape({get:Ys.func.isRequired}).isRequired,selections:Ys.shape({isActive:Ys.func,addListener:Ys.func,removeListener:Ys.func}),style:Ys.shape({fontSize:Ys.string,color:Ys.string,fontFamily:Ys.string}).isRequired,isDimension:Ys.bool.isRequired,hasAlternative:Ys.bool.isRequired,supportConditional:Ys.bool.isRequired,showGroupDimOptions:Ys.bool.isRequired},om.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const am=Hl({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 sm=Wl({productionPrefix:"q5d56",disableGlobal:!0,seed:""});var lm={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:um}=lm;function cm({layoutService:e,largeDataService:t}){const{maxNumPoints:n=um}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:dm}=lm,fm=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=dm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!cm({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:pm}=lm,{MAX_NUM_POINTS:mm,DEFAULT_NUM_POINTS:hm,DEFAULT_NUM_LINES:gm}=lm,{DEFAULT_NUM_POINTS:ym}=lm,vm=({layoutService:e,largeDataService:t})=>{if(!cm({layoutService:e,largeDataService:t})){const{maxNumPoints:e=ym}=(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=gm,maxNumPoints:i=hm,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(fm({layoutService:e,largeDataService:t})*r[0]<=i)return r[0];const s=Math.max(1,Math.min(o,r[1])),l=i/s,u=Math.floor(r[0]<=l?l:l/4),c=2*s*(s+1);return a&&(s>gm||i>hm)?Math.min(u,Math.ceil(mm/c)):u})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=pm}=(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})},bm=({start:e,end:t,model:n,layoutService:r,largeDataService:o,definitionPath:i})=>{const a={qStart:e,qEnd:t,qNbrPoints:vm({layoutService:r,largeDataService:o}),qMaxNbrTicks:300,qMaxNumberLines:fm({layoutService:r,largeDataService:o})};return n.getHyperCubeContinuousData(i,a,!1)};function xm({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>cm({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>vm({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>fm({layoutService:t,largeDataService:n}),fetch:(o,i)=>bm({start:o,end:i,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Sm(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Mm({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 Cm(){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 wm(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=Cm(),i=Cm();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 km(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Tm(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=wm(e,t,n.qMatrix),o=km(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 qm=2**.5,Em=1/qm,Lm=1e-6,Nm=Em**44;function Om(e){return e.qIsOtherCell}function Dm({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Om)){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(Om)||t++})),t}(n)}const Am={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var Im={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}};const Rm="…";function Pm(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function zm(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:"",u=s(l);let{x:c,width:d}=r;e.start===e.end&&(d=u.width+2*o,1===e.end&&(c-=d));const f={x:c+o,y:o,width:d-2*o,height:t.height-2*o},p=s(`${l[0]}${Rm}`).width,m=Math.max(0,f.width-u.width),h=Math.max(0,f.height-u.height),g=i*m,y=a*h;return{show:f.width>=Math.min(p,u.width),text:l,dx:g,dy:y,rect:f,style:n.label,segment:{x:c+g,width:u.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=Pm(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:Pm(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 jm(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=Pm(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:Pm(o,n.minorGuideLine.strokeWidth),x2:i,y2:Pm(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function Fm(e){return e.filter((e=>e.show)).map((e=>ie({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var Bm={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=Pm(1,t.line.strokeWidth);return{show:n.line.show,x1:Pm(0,t.line.strokeWidth),y1:r,x2:Pm(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=zm(n,this),this.state.minor=jm(r,this)},render(){return[...Fm([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>ie({},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})))),...Fm(this.state.major.map((e=>e.guideLine))),...Fm(this.state.minor.map((e=>e.guideLine)))];var e}};function _m(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 Hm({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];_m(i,a)?(a.qTags.indexOf("$qualified")>-1?(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 $m({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 u=e[l];if(u.queries.outer(n)){const e=t[l+1];if(o=u.index,r=l,u.attrs.isDayOrShorter()&&u.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}}}}const Vm=16;function Wm({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+Vm}))),r.clamp(n),o.rangeAndWidth}}}const Um=6;function Km({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>=Um,canFitHalfDayTicks:n=>n>=t*e.count()}}function Gm({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=Wm,queryFactory:s=Km}={attributesFactory:Wm,queryFactory:Km}){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))),u=e.map((e=>l[e])),c=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:u,nonQualifiedMeta:c}}function Ym({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=Gm,mapper:a=Hm,resolver:s=$m}={metaFactory:Gm,mapper:Hm,resolver:$m}){const{qualified:l,nonQualified:u}=a({qAxis:e}),{qualifiedMeta:c,nonQualifiedMeta:d}=i({qAxis:e,qualified:l,nonQualified:u,measureText:t,reqAutoFitWidth:r,scale:o}),f=s({qualifiedMeta:c,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=f.resolve(t);return n.set(r,o),o}}}const Xm=86400,Jm=864e5;function Zm(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(Jm*(e-Math.floor(e)))))}const Qm=Zm(0).getTime();function eh(e){return(e.getTime()-Qm)/Xm/1e3}const th=new Date,nh=new Date;function rh(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=>rh((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)=>(th.setTime(+t),nh.setTime(+r),e(th),e(nh),Math.floor(n(th,nh))),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 oh=1e3,ih=6e4,ah=36e5,sh=864e5,lh=6048e5,uh=rh((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*oh)}),((e,t)=>(t-e)/oh),(e=>e.getUTCSeconds()));uh.range;const ch=rh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oh)}),((e,t)=>{e.setTime(+e+t*ih)}),((e,t)=>(t-e)/ih),(e=>e.getMinutes()));ch.range;const dh=rh((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*ih)}),((e,t)=>(t-e)/ih),(e=>e.getUTCMinutes()));dh.range;const fh=rh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oh-e.getMinutes()*ih)}),((e,t)=>{e.setTime(+e+t*ah)}),((e,t)=>(t-e)/ah),(e=>e.getHours()));fh.range;const ph=rh((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*ah)}),((e,t)=>(t-e)/ah),(e=>e.getUTCHours()));ph.range;const mh=rh((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ih)/sh),(e=>e.getDate()-1));mh.range;const hh=rh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/sh),(e=>e.getUTCDate()-1));hh.range;const gh=rh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/sh),(e=>Math.floor(e/sh)));function yh(e){return rh((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())*ih)/lh))}gh.range;const vh=yh(0),bh=yh(1),xh=yh(2),Sh=yh(3),Mh=yh(4),Ch=yh(5),wh=yh(6);function kh(e){return rh((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)/lh))}vh.range,bh.range,xh.range,Sh.range,Mh.range,Ch.range,wh.range;const Th=kh(0),qh=kh(1),Eh=kh(2),Lh=kh(3),Nh=kh(4),Oh=kh(5),Dh=kh(6);Th.range,qh.range,Eh.range,Lh.range,Nh.range,Oh.range,Dh.range;const Ah=rh((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()));Ah.range;const Ih=rh((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()));Ih.range;const Rh=rh((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()));Rh.every=e=>isFinite(e=Math.floor(e))&&e>0?rh((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,Rh.range;const Ph=rh((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()));Ph.every=e=>isFinite(e=Math.floor(e))&&e>0?rh((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,Ph.range;const zh={second:1,minute:2,hour:3,day:4,month:5,year:6};function jh({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:o,timeOnly:i,initialMin:a}){const[s,l]=e.domain(),u=o.key({distance:n});let c;o.get(u,1)?c=o.get(u,1):(c=function(e,t,n,r,o,i){function a(e){return Ph.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=uh.count(e,t),l=dh.count(e,t),u=ph.count(e,t),c=hh.count(e,t),d=Th.count(e,t),f=Ih.count(e,t),p=Ph.count(e,t),m=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:Ph.every(1),formatter:r.year.formatter,offset:e=>Ph.offset(e,-1),floor:Ph.floor};if(s<=m)v.type=zh.second,v.desc="second",v.count=s,v.interval=uh.every(1),v.formatter=r.second.formatter,v.offset=e=>uh.offset(e,-1),v.floor=uh.floor;else if(s/2<=m)v.type=zh.second,v.desc="every other second",v.count=s/2,v.interval=uh.every(2),v.formatter=r.second.formatter,v.offset=e=>uh.offset(e,-2),v.floor=uh.floor;else if(s/5<=m)v.type=zh.second,v.desc="every 5 second",v.count=s/5,v.interval=uh.every(5),v.formatter=r.second.formatter,v.offset=e=>uh.offset(e,-5),v.floor=uh.floor;else if(s/15<=m)v.type=zh.second,v.desc="every 15 second",v.count=s/15,v.interval=uh.every(15),v.formatter=r.second.formatter,v.offset=e=>uh.offset(e,-15),v.floor=uh.floor;else if(s/30<=m)v.type=zh.second,v.desc="every 30 second",v.count=s/30,v.interval=uh.every(30),v.formatter=r.second.formatter,v.offset=e=>uh.offset(e,-30),v.floor=uh.floor;else if(l<=h)v.type=zh.minute,v.desc="minute",v.count=l,v.interval=dh.every(1),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-1),v.floor=dh.floor;else if(l/2<=h)v.type=zh.minute,v.desc="every 2 minute",v.count=l/2,v.interval=dh.every(2),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-2),v.floor=dh.floor;else if(l/5<=h)v.type=zh.minute,v.desc="every 5 minute",v.count=l/5,v.interval=dh.every(5),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-5),v.floor=dh.floor;else if(l/10<=h)v.type=zh.minute,v.desc="every 10 minute",v.count=l/10,v.interval=dh.every(10),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-10),v.floor=dh.floor;else if(l/15<=h)v.type=zh.minute,v.desc="every 15 minute",v.count=l/15,v.interval=dh.every(15),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-15),v.floor=dh.floor;else if(l/30<=h)v.type=zh.minute,v.desc="every 30 minute",v.count=l/30,v.interval=dh.every(30),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-30),v.floor=dh.floor;else if(u<=h)v.type=zh.hour,v.desc="hour",v.count=u,v.interval=ph.every(1),v.formatter=r.minute.formatter,v.offset=e=>ph.offset(e,-1),v.floor=ph.floor;else if(u/2<=h)v.type=zh.hour,v.desc="every 2 hour",v.count=u/2,v.interval=ph.every(2),v.formatter=r.minute.formatter,v.offset=e=>ph.offset(e,-2),v.floor=ph.floor;else if(u/3<=h)v.type=zh.hour,v.desc="every 3 hour",v.count=u/3,v.interval=ph.every(3),v.formatter=r.minute.formatter,v.offset=e=>ph.offset(e,-3),v.floor=ph.floor;else if(u/6<=h)v.type=zh.hour,v.desc="every 6 hour",v.count=u/6,v.interval=ph.every(6),v.formatter=r.minute.formatter,v.offset=e=>ph.offset(e,-6),v.floor=ph.floor;else if(u/12<=h||o)v.type=zh.hour,v.desc="every 12 hour",v.count=u/12,v.interval=ph.every(12),v.formatter=r.minute.formatter,v.offset=e=>ph.offset(e,-12),v.floor=ph.floor;else if(c<=g)v.type=zh.day,v.desc="day",v.count=c,v.interval=hh.every(1),v.formatter=r.date.formatter,v.offset=e=>hh.offset(e,-1),v.floor=hh.floor;else if(c/2<=g)v.type=zh.day,v.desc="every 2 day",v.count=c/2,v.interval=hh.every(2),v.formatter=r.date.formatter,v.offset=e=>hh.offset(e,-2),v.floor=hh.floor;else if(c/3<=g)v.type=zh.day,v.desc="every 3 day",v.count=c/3,v.interval=hh.every(3),v.formatter=r.date.formatter,v.offset=e=>hh.offset(e,-3),v.floor=hh.floor;else if(d<=g)v.type=zh.day,v.desc="week",v.count=d,v.interval=Th.every(1),v.formatter=r.date.formatter,v.offset=e=>Th.offset(e,-1),v.floor=hh.floor;else if(d/2<=g)v.type=zh.day,v.desc="every 2 week",v.count=d/2,v.interval=Th.every(2),v.formatter=r.date.formatter,v.offset=e=>Th.offset(e,-2),v.floor=hh.floor;else if(f<=g)v.type=zh.month,v.desc="month",v.count=f,v.interval=Ih.every(1),v.formatter=r.date.formatter,v.offset=e=>Ih.offset(e,-1),v.floor=hh.floor;else if(f/3<=g)v.type=zh.month,v.desc="quarter",v.count=f/3,v.interval=Ih.every(3),v.formatter=r.date.formatter,v.offset=e=>Ih.offset(e,-3),v.floor=hh.floor;else if(f/6<=g)v.type=zh.month,v.desc="half year",v.count=f/6,v.interval=Ih.every(6),v.formatter=r.date.formatter,v.offset=e=>Ih.offset(e,-6),v.floor=hh.floor;else if(p<=y)v.type=zh.year,v.desc="year",v.count=p,v.interval=Ph.every(1),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-1),v.floor=Ph.floor;else if(p/2<=y)v.type=zh.year,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-2),v.floor=Ph.floor;else if(p/5<=y)v.type=zh.year,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-5),v.floor=Ph.floor;else if(p/10<=y)v.type=zh.year,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-10),v.floor=Ph.floor;else{const e=Math.max(1,Math.floor(p/y));v.type=zh.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>Ph.offset(t,-e),v.floor=Ph.floor}return v}(s,l,n,t.all(),r,a),o.set(u,c,1));const d=e.ticks(c.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(c.offset(d[0])):d.push(c.floor(s));const f=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:c.formatter}}));let p=[];if(!i&&c.type<=zh.hour){const n=t.getFormat("date"),r=e.ticks(hh.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(hh.offset(r[0],-1)),p=(r.length?r:[hh.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:f,outer:p}}const Fh=86400,Bh=1440,_h={};function Hh(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function $h(e,t,n){const{generator:r,anchor:o,clamp:i,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(i);const[l,u]=e.domain(),c=Ki().domain([Zm(l),Zm(u)]);c.clamp(i),c.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let f;f="d3"===d.type?(e,o)=>jh({timeScale:c,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?c.domain()[0]:Zm(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(_h[[t,n,r,r,i]])return _h[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=Zm(n),l=s.getFullYear(),u=s.getMonth(),c=s.getDate(),d=r-n,f=t/(o-r),p=f/1440,m=f/Fh,h=366*f,g=3*f*30,y=a.second.width/m,v=a.minute.width/p,b=a.date.width/g,x=a.year.width/h;let S,M,C,w=0,k=0,T=null,q=null,E=null,L=null,N=null,O=null;const D={outer:[],inner:[]};for(y<1?(T=1,k=1/Fh):y<2?(T=2,k=1/Fh*2):y<5?(T=5,k=1/Fh*5):y<10?(T=10,k=1/Fh*10):y<30?(T=30,k=1/Fh*30):v<1?(q=1,k=1/Bh):v<2?(q=2,k=1/Bh*2):v<5?(q=5,k=1/Bh*5):v<10?(q=10,k=1/Bh*10):v<30?(q=30,k=1/Bh*30):v<60?(E=1,k=1/24):v<120?(E=2,k=2/24):v<360?(E=6,k=.25):v<720?(E=12,k=.5):b<1/90?(k=1,L=1):b<2/90?(k=2,L=2):b<7/90?(k=7,L=7):b<31/90?(N=1,k=31):b<1?(N=3,k=90):x<1?(O=1,k=366):x<2?(O=2,k=732):x<5?(O=5,k=1826.25):(O=10,k=3652.5),M=Math.floor((d+n%1)/k);w<o;){C=M+1,S=O?Hh("year",[l+M*O,0,1],[l+C*O,0,1],a.year.formatter):N?Hh("month",[l,u+M*N,1],[l,u+C*N,1],a.date.formatter):L?Hh("day",[l,u,c+M*L],[l,u,c+C*L],a.date.formatter):E?Hh("hour",[l,u,c,0+M*E],[l,u,c,0+C*E],a.minute.formatter):q?Hh("minute",[l,u,c,0,0+M*q],[l,u,c,0,0+C*q],a.minute.formatter):Hh("second",[l,u,c,0,0,0+M*T],[l,u,c,0,0,0+C*T],a.second.formatter),w=eh(S.start),D.inner.push(S);const e=Math.floor(w);if(!(i||O||N||L)){const t={type:"day",start:Zm(e),end:Zm(e+1),formatter:a.date.formatter,qStart:e};D.outer[D.outer.length-1]&&D.outer[D.outer.length-1].qStart===t.qStart||D.outer.push(t)}M++}return D.min=r,D.max=o,_h[[t,n,r,r,i]]=D,D}(n,e,d.min,l,u,"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)=>f(t,n)[a].map((t=>{let n;return n="start"===o?eh(t.start):"end"===o?eh(t.end):(eh(t.start)+eh(t.end))/2,{position:c(t.start),start:c(t.start),end:c(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:eh(t.start),end:eh(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const Vh=41000.2343433,Wh=/t+/i,Uh=16,Kh=60;const Gh={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 Yh(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 Xh="continuousPan";var Jh={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=Am,viewCache:o,viewState:i,definitionPath:a},s={}){const{engineFetcherFactory:l=xm,snapshotFetcherFactory:u=Mm,cacheFetcherFactory:c=Sm,cache:d={initial:{},merged:{}}}=s,f=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),p=u({layoutService:t,viewCache:o}),m=c({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(Lm,(r-n)*Nm))),g=t.meta.isSnapshot?p:f,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=km(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=>Tm(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=km(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=>Tm(e,t,n))).catch(h),fetchFromCache:(e,t)=>m.fetch(e,t).then((n=>Tm(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return ie({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return ie({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Dm(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=a(((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"),l=e.get("continuousMax");return s(((e,r)=>{const s=(e=>n.componentsFromPoint(e).filter((e=>e.key===i))[0])(e);if(s){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,s),u=o?1-i:i,{min:c,max:d}=t.get("zoom"),f=Math.abs(d-c),p=f-(r>0?Em:qm)*f,m=c+p*u,h=d-p*(1-u),g=m<a?a-m:0,y=h>l?h-l:0;t.set("zoom",{min:Math.max(m-y,a),max:Math.min(h+g,l)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o}){return{type:"Pan",key:"continuous:pan",options:{event:Xh,pointers:1,threshold:10,enable(r,o){return this.started===Xh||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{[`${Xh}start`](n){n.preventDefault(),this.started=Xh;const{min:o,max:i}=r.get("zoom");this[Xh]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},[`${Xh}move`](e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[Xh],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)})},[`${Xh}end`](e){e.preventDefault(),this.started=!1},[`${Xh}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:Im,timeAxis:Bm},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]=ie(!0,{},t[o],i)})),r}(t,Gh,n),{qAxis:i}=r,a=Pr(),s={instance:null,invert:!1},{min:l,max:u}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let c,d,f=[];const p=function(e){return Number.isNaN(+e)?NaN:a(e)};p.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(f=d.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=d.transform(i[n.minor].qTicks,{isMinor:!0});f=f.concat(e)}return"auto"===o&&(f=d.generate(e,n.isDayOrShorter)),f},p.invert=e=>a.invert(e),p.domain=e=>Array.isArray(e)?a.domain(e):a.domain(),p.range=e=>Array.isArray(e)?a.range(e):a.range(),p.norm=e=>(Yh(s,p),s.instance(e)),p.normInvert=e=>(Yh(s,p),s.instance.invert(e)),p.copy=()=>e(t,n),p.clamp=(e=!0)=>(a.clamp(e),a.clamp()),p.min=()=>Math.min(l,u),p.max=()=>Math.max(l,u),a.range(r.invert?[1,0]:[0,1]),a.domain([l,u]),s.invert=r.invert;const m=function(e){const t={},{measureText:n,fn:r,localeInfo:o}=e.formatter,i={second:{type:"second",pattern:"hh:mm:ss",width:Kh,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:Kh,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:Kh,formatter:void 0},year:{type:"year",pattern:"YYYY",width:Kh,formatter:void 0}};return o&&Wh.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(Vh)).width+Uh)})),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=Zm(t[0].data.start),o=Zm(t[n-1].data.start);return hh.count(r,o)/n>=1?i.date:ph.count(r,o)/n>0?i.minute:dh.count(r,o)/n>0?i.second:i.date},t}(r);return d=$h(a.copy(),r,m),c=Ym({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*m.getFormat("minute").width,cache:r.cache,scale:p}),p.data=()=>({fields:[{formatter:p.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:o(n,"fields.0.raw",(()=>({})))}]}),p.formatter=()=>m.getFormatFromTicks(f).formatter,p}}};const Zh={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var Qh={OPTIONS:Zh,DEFAULT:Zh.MINI_CHART};function eg({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,u=r[l?"width":"height"];let c=a.qArea.qTop/s*u,d=a.qArea.qHeight/s*u;if(d<i){const e=(i-d)/2;c=c-e+(Math.max(0,0-(c-e))-Math.max(0,c+d+e-u)),d=i}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:c,width:d}:{top:c,left:0,height:d}}})}}function tg({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 ng=e=>({miniChart:e===Qh.OPTIONS.MINI_CHART.value,bar:e===Qh.OPTIONS.BAR.value,none:e===Qh.OPTIONS.NONE.value}),rg=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return ng(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return ng(Qh.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return ng(!n&&(r||!r&&o)?Qh.OPTIONS.NONE.value:Qh.OPTIONS.MINI_CHART.value)};function og({layoutService:e,override:t}){const n=rg({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===Qh.OPTIONS.MINI_CHART.value,n.bar=t.value===Qh.OPTIONS.BAR.value,n.none=t.value===Qh.OPTIONS.NONE.value),n}function ig({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:o,viewCache:i,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:u=!1,deviceType:c}){const d=og({layoutService:e,override:l});if(d.none)return!1;const{orientation:f}=t.meta.major,p={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===f?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:f,rtl:s,isContinuous:e.meta.isContinuous,range:()=>tg({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(p.settings.style="slim",p.settings.size={area:"touch"===c?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(p.settings.size.thumb={min:4}));const m=a.getStyles();return m.color&&(p.style={standard:{thumb:{"border-color":m.color,opacity:.4},before:{background:m.color,opacity:.1},after:{background:m.color,opacity:.1}}}),e.meta.isDiscrete&&u&&(p.settings.injections=()=>[eg({layoutService:e,discrete:n})]),p}function ag({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i,rtl:a}){return s=>{const{x:l,y:u}=s.center,c=t.element.getBoundingClientRect(),d=t.component(e),f="horizontal"===i.meta.major.orientation,p=f?l-c.left-d.rect.computedInner.x:u-c.top-d.rect.computedInner.y,m=f?d.rect.computedInner.width:d.rect.computedInner.height,h=f&&a?m-p:p,g=Math.max(0,Math.min(h/m,1)),[y,v]=tg({layoutService:o,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*m:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function sg({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:u}=a.rect.computedInner,c="horizontal"===s?l:u,[d,f]=tg({layoutService:o,viewState:n,viewCache:r});return{size:c,thumbSize:(f-d)*c}}}function lg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const u=ag({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),c=sg({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=u(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=c(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const ug="data-scrollbar-handle";function cg({e:e}){return(e.srcEvent||e).srcElement.getAttribute(ug)||""}const dg="scrollbarResize",fg=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function pg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s}){const l=ag({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s});return{type:"Pan",key:`event:${dg}`,options:{event:dg,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[dg]=this[dg]||{},fg(t)&&cg({e:t})&&(this[dg].panningEvent=t.srcEvent),!!this[dg].panningEvent))}},events:{[`${dg}start`](n){n.preventDefault(),this[dg]=this[dg]||{},this[dg].panningEvent&&t.component(e).emit("dragStart",this[dg].panningEvent)},[`${dg}move`](n){if(n.preventDefault(),this[dg]=this[dg]||{},!this[dg].panningEvent)return;const i=r.get("zoom"),a=o.get("continuousMin"),s=o.get("continuousMax"),u=o.get("minimiumZoomSpan"),c=(s-a)*l(n).relative+a,d=cg({e:this[dg].panningEvent});let f="start"===d?Math.min(c,i.max):i.min,p="end"===d?Math.max(c,i.min):i.max;f===p&&(f-="start"===d?u:0,p+="end"===d?u:0),r.set("zoom",{min:f,max:p}),t.component(e).emit("render")},[`${dg}end`](n){n.preventDefault(),this[dg]=this[dg]||{},delete this[dg].panningEvent,t.component(e).emit("dragEnd")},[`${dg}cancel`](n){n.preventDefault(),this[dg]=this[dg]||{},delete this[dg].panningEvent,t.component(e).emit("dragEnd")}}}}const mg="scrollbarPan";function hg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const u=ag({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),c=sg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:`event:${mg}`,options:{event:mg,threshold:0,enable(r,o){return this[mg]=this[mg]||{},!(o&&!this[mg].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:{[`${mg}start`](n){n.preventDefault();const a=u(n);if(this[mg]=this[mg]||{},this[mg].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[mg].relative=a.relative,this[mg].zoom=r.get("zoom"),this[mg].zoom.span=this[mg].zoom.max-this[mg].zoom.min,this[mg].zoom.fullSpan=i-n}else if(a.onThumb)this[mg].offset=a.thumb;else{const e=c();this[mg].offset=a.beforeThumb?0:e.thumbSize}},[`${mg}move`](n){n.preventDefault();const a=u(n);if(this[mg]=this[mg]||{},i.meta.isContinuous){const e=a.relative-this[mg].relative,{fullSpan:t,span:n,min:i,max:s}=this[mg].zoom,l=o.get("continuousMin"),u=o.get("continuousMax");r.set("zoom",{min:Math.min(i+e*t,u-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[mg].offset||0),t=c(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${mg}end`](n){n.preventDefault(),this[mg]=this[mg]||{},this[mg].isPanning=!1,t.component(e).emit("unlockState")},[`${mg}cancel`](n){n.preventDefault(),this[mg]=this[mg]||{},this[mg].isPanning=!1,t.component(e).emit("unlockState")}}}}function gg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[lg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),pg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),hg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})]}function yg({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")}}}function vg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...gg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:yg({componentKey:e,chart:t,actions:n,layoutService:i})}}const bg={background:"rgba(0, 0, 0, 0.1)"},xg={top:-1,bottom:-1,width:6},Sg={width:2,background:"#595959"};var Mg={before:bg,after:bg,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:xg,endHandle:xg,startHandleBorder:Sg,endHandleBorder:Sg};const Cg={background:"rgba(0, 0, 0, 0.1)"},wg={top:-1,bottom:-1,width:6},kg={width:2,background:"#595959"};var Tg={before:Cg,after:Cg,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:wg,endHandle:wg,startHandleBorder:kg,endHandleBorder:kg};const qg={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},Eg={pointerEvents:"initial"},Lg={pointerEvents:"none"};const Ng="ew-resize",Og="default";function Dg(){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 Ag(){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?Ng:Og}function Ig(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 Rg(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function Pg(){const{size:e,start:t,end:n}=Dg.call(this);this.renderer.render(this.elements(this.h,Ig.call(this,e,t,n)))}function zg(){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?Tg:Mg;return{container:{...qg},before:{...qg,...n.before,...t.before},after:{...qg,...n.after,...t.after},thumb:{...qg,...n.thumb,...t.thumb},startHandle:{...qg,...Eg,...n.startHandle},endHandle:{...qg,...Eg,...n.endHandle},startHandleBorder:{...qg,...Lg,...n.startHandleBorder},endHandleBorder:{...qg,...Lg,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var jg={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(){Pg.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||!Rg.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=cg({e:e});t&&(this.state.hover[t]=!0),Ag.call(this),Pg.call(this)},leave(){this.state.locked||(this.state.hover.reset(),Ag.call(this),Pg.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=cg({e:e});t&&(this.state.drag[t]=!0),Ag.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),Ag.call(this),Pg.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}=Dg.call(this);return this.elements(e,Ig.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:u,injections:c}){const d={[o.end]:t-n},f={[o.start]:r},p={left:-3},m={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...u?f:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...u?d:f},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...u?h:p},class:"scrollbar--start-handle",[ug]:"start"},i?e("div",{style:{...s.startHandleBorder,...u?g:m}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...u?p:h},class:"scrollbar--end-handle",[ug]:"end"},a?e("div",{style:{...s.endHandleBorder,...u?m: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,...c])}({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:zg.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};var Fg={black:"#000",white:"#fff"};var Bg={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var _g={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Hg={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var $g={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Vg={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var Wg={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Ug={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 Kg(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 Gg=Object.freeze({__proto__:null,default:Kg}),Yg="$$material";var Xg=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}(),Jg="-ms-",Zg="-moz-",Qg="-webkit-",ey="comm",ty="rule",ny="decl",ry="@keyframes",oy=Math.abs,iy=String.fromCharCode,ay=Object.assign;function sy(e){return e.trim()}function ly(e,t,n){return e.replace(t,n)}function uy(e,t){return e.indexOf(t)}function cy(e,t){return 0|e.charCodeAt(t)}function dy(e,t,n){return e.slice(t,n)}function fy(e){return e.length}function py(e){return e.length}function my(e,t){return t.push(e),e}var hy=1,gy=1,yy=0,vy=0,by=0,xy="";function Sy(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:hy,column:gy,length:a,return:""}}function My(e,t){return ay(Sy("",null,null,"",null,null,0),e,{length:-e.length},t)}function Cy(){return by=vy>0?cy(xy,--vy):0,gy--,10===by&&(gy=1,hy--),by}function wy(){return by=vy<yy?cy(xy,vy++):0,gy++,10===by&&(gy=1,hy++),by}function ky(){return cy(xy,vy)}function Ty(){return vy}function qy(e,t){return dy(xy,e,t)}function Ey(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 Ly(e){return hy=gy=1,yy=fy(xy=e),vy=0,[]}function Ny(e){return xy="",e}function Oy(e){return sy(qy(vy-1,Iy(91===e?e+2:40===e?e+1:e)))}function Dy(e){for(;(by=ky())&&by<33;)wy();return Ey(e)>2||Ey(by)>3?"":" "}function Ay(e,t){for(;--t&&wy()&&!(by<48||by>102||by>57&&by<65||by>70&&by<97););return qy(e,Ty()+(t<6&&32==ky()&&32==wy()))}function Iy(e){for(;wy();)switch(by){case e:return vy;case 34:case 39:34!==e&&39!==e&&Iy(by);break;case 40:41===e&&Iy(e);break;case 92:wy()}return vy}function Ry(e,t){for(;wy()&&e+by!==57&&(e+by!==84||47!==ky()););return"/*"+qy(t,vy-1)+"*"+iy(47===e?e:wy())}function Py(e){for(;!Ey(ky());)wy();return qy(e,vy)}function zy(e){return Ny(jy("",null,null,null,[""],e=Ly(e),0,[0],e))}function jy(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,m=0,h=1,g=1,y=1,v=0,b="",x=o,S=i,M=r,C=b;g;)switch(m=v,v=wy()){case 40:if(108!=m&&58==cy(C,d-1)){-1!=uy(C+=ly(Oy(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=Oy(v);break;case 9:case 10:case 13:case 32:C+=Dy(m);break;case 92:C+=Ay(Ty()-1,7);continue;case 47:switch(ky()){case 42:case 47:my(By(Ry(wy(),Ty()),t,n),l);break;default:C+="/"}break;case 123*h:s[u++]=fy(C)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(C=ly(C,/\f/g,"")),p>0&&fy(C)-d&&my(p>32?_y(C+";",r,n,d-1):_y(ly(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(my(M=Fy(C,t,n,u,c,o,s,b,x=[],S=[],d),i),123===v)if(0===c)jy(C,t,M,M,x,i,d,s,S);else switch(99===f&&110===cy(C,3)?100:f){case 100:case 108:case 109:case 115:jy(e,M,M,r&&my(Fy(e,M,M,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:jy(C,M,M,M,[""],S,0,s,S)}}u=c=p=0,h=y=1,b=C="",d=a;break;case 58:d=1+fy(C),p=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Cy())continue;switch(C+=iy(v),v*h){case 38:y=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(fy(C)-1)*y,y=1;break;case 64:45===ky()&&(C+=Oy(wy())),f=ky(),c=d=fy(b=C+=Py(Ty())),v++;break;case 45:45===m&&2==fy(C)&&(h=0)}}return i}function Fy(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=py(f),m=0,h=0,g=0;m<r;++m)for(var y=0,v=dy(e,d+1,d=oy(h=a[m])),b=e;y<p;++y)(b=sy(h>0?f[y]+" "+v:ly(v,/&\f/g,f[y])))&&(l[g++]=b);return Sy(e,t,n,0===o?ty:s,l,u,c)}function By(e,t,n){return Sy(e,t,n,ey,iy(by),dy(e,2,-2),0)}function _y(e,t,n,r){return Sy(e,t,n,ny,dy(e,0,r),dy(e,r+1,-1),r)}function Hy(e,t){for(var n="",r=py(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function $y(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ny:return e.return=e.return||e.value;case ey:return"";case ry:return e.return=e.value+"{"+Hy(e.children,r)+"}";case ty:e.value=e.props.join(",")}return fy(n=Hy(e.children,r))?e.return=e.value+"{"+n+"}":""}function Vy(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Wy=function(e,t,n){for(var r=0,o=0;r=o,o=ky(),38===r&&12===o&&(t[n]=1),!Ey(o);)wy();return qy(e,vy)},Uy=function(e,t){return Ny(function(e,t){var n=-1,r=44;do{switch(Ey(r)){case 0:38===r&&12===ky()&&(t[n]=1),e[n]+=Wy(vy-1,t,n);break;case 2:e[n]+=Oy(r);break;case 4:if(44===r){e[++n]=58===ky()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=iy(r)}}while(r=wy());return e}(Ly(e),t))},Ky=new WeakMap,Gy=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)||Ky.get(n))&&!r){Ky.set(e,!0);for(var o=[],i=Uy(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Yy=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Xy(e,t){switch(function(e,t){return 45^cy(e,0)?(((t<<2^cy(e,0))<<2^cy(e,1))<<2^cy(e,2))<<2^cy(e,3):0}(e,t)){case 5103:return Qg+"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 Qg+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qg+e+Zg+e+Jg+e+e;case 6828:case 4268:return Qg+e+Jg+e+e;case 6165:return Qg+e+Jg+"flex-"+e+e;case 5187:return Qg+e+ly(e,/(\w+).+(:[^]+)/,Qg+"box-$1$2"+Jg+"flex-$1$2")+e;case 5443:return Qg+e+Jg+"flex-item-"+ly(e,/flex-|-self/,"")+e;case 4675:return Qg+e+Jg+"flex-line-pack"+ly(e,/align-content|flex-|-self/,"")+e;case 5548:return Qg+e+Jg+ly(e,"shrink","negative")+e;case 5292:return Qg+e+Jg+ly(e,"basis","preferred-size")+e;case 6060:return Qg+"box-"+ly(e,"-grow","")+Qg+e+Jg+ly(e,"grow","positive")+e;case 4554:return Qg+ly(e,/([^-])(transform)/g,"$1"+Qg+"$2")+e;case 6187:return ly(ly(ly(e,/(zoom-|grab)/,Qg+"$1"),/(image-set)/,Qg+"$1"),e,"")+e;case 5495:case 3959:return ly(e,/(image-set\([^]*)/,Qg+"$1$`$1");case 4968:return ly(ly(e,/(.+:)(flex-)?(.*)/,Qg+"box-pack:$3"+Jg+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qg+e+e;case 4095:case 3583:case 4068:case 2532:return ly(e,/(.+)-inline(.+)/,Qg+"$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(fy(e)-1-t>6)switch(cy(e,t+1)){case 109:if(45!==cy(e,t+4))break;case 102:return ly(e,/(.+:)(.+)-([^]+)/,"$1"+Qg+"$2-$3$1"+Zg+(108==cy(e,t+3)?"$3":"$2-$3"))+e;case 115:return~uy(e,"stretch")?Xy(ly(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==cy(e,t+1))break;case 6444:switch(cy(e,fy(e)-3-(~uy(e,"!important")&&10))){case 107:return ly(e,":",":"+Qg)+e;case 101:return ly(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qg+(45===cy(e,14)?"inline-":"")+"box$3$1"+Qg+"$2$3$1"+Jg+"$2box$3")+e}break;case 5936:switch(cy(e,t+11)){case 114:return Qg+e+Jg+ly(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qg+e+Jg+ly(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qg+e+Jg+ly(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qg+e+Jg+e+e}return e}var Jy=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ny:e.return=Xy(e.value,e.length);break;case ry:return Hy([My(e,{value:ly(e.value,"@","@"+Qg)})],r);case ty: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 Hy([My(e,{props:[ly(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Hy([My(e,{props:[ly(t,/:(plac\w+)/,":"+Qg+"input-$1")]}),My(e,{props:[ly(t,/:(plac\w+)/,":-moz-$1")]}),My(e,{props:[ly(t,/:(plac\w+)/,Jg+"input-$1")]})],r)}return""}))}}],Zy=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||Jy,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,u,c=[$y,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=py(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Gy,Yy].concat(i,c));o=function(e,t,n,r){l=n,function(e){Hy(zy(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Xg({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 f.sheet.hydrate(s),f};function Qy(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var ev=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},tv=function(e,t,n){ev(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 nv={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},rv=!1,ov=/[A-Z]|^ms/g,iv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,av=function(e){return 45===e.charCodeAt(1)},sv=function(e){return null!=e&&"boolean"!=typeof e},lv=Vy((function(e){return av(e)?e:e.replace(ov,"-$&").toLowerCase()})),uv=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(iv,(function(e,t,n){return fv={name:t,styles:n,next:fv},t}))}return 1===nv[e]||av(e)||"number"!=typeof t||0===t?t:t+"px"},cv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function dv(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 fv={name:o.name,styles:o.styles,next:fv},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)fv={name:a.name,styles:a.styles,next:fv},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+=dv(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]+"}":sv(s)&&(r+=lv(i)+":"+uv(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&rv)throw new Error(cv);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=dv(e,t,a);switch(i){case"animation":case"animationName":r+=lv(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)sv(a[u])&&(r+=lv(i)+":"+uv(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=fv,l=n(e);return fv=s,dv(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var fv,pv=/label:\s*([^\s;{]+)\s*(;|$)/g;function mv(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="";fv=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=dv(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=dv(n,t,e[a]),r)o+=i[a]}pv.lastIndex=0;for(var s,l="";null!==(s=pv.exec(o));)l+="-"+s[1];var u=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:u,styles:o,next:fv}}var hv,gv,yv=!!x.useInsertionEffect&&x.useInsertionEffect,vv=yv||function(e){return e()},bv=yv||x.useLayoutEffect,xv=x.createContext("undefined"!=typeof HTMLElement?Zy({key:"css"}):null),Sv=xv.Provider,Mv=function(e){return w((function(t,n){var r=k(xv);return e(t,r,n)}))},Cv=x.createContext({}),wv={}.hasOwnProperty,kv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tv=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ev(t,n,r),vv((function(){return tv(t,n,r)})),null},qv=Mv((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[kv],i=[r],a="";"string"==typeof e.className?a=Qy(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=mv(i,void 0,x.useContext(Cv));a+=t.key+"-"+s.name;var l={};for(var u in e)wv.call(e,u)&&"css"!==u&&u!==kv&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),x.createElement(x.Fragment,null,x.createElement(Tv,{cache:t,serialized:s,isStringTag:"string"==typeof o}),x.createElement(o,l))})),Ev=qv,Lv=function(e,t){var n=arguments;if(null==t||!wv.call(t,"css"))return x.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Ev,o[1]=function(e,t){var n={};for(var r in t)wv.call(t,r)&&(n[r]=t[r]);return n[kv]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return x.createElement.apply(null,o)};hv=Lv||(Lv={}),gv||(gv=hv.JSX||(hv.JSX={}));var Nv=Mv((function(e,t){var n=mv([e.styles],void 0,x.useContext(Cv)),r=x.useRef();return bv((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]),bv((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&tv(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 Ov(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mv(t)}function Dv(){var e=Ov.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 Av=/^((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)-.*))$/,Iv=Vy((function(e){return Av.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Rv=function(e){return"theme"!==e},Pv=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Iv:Rv},zv=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},jv=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ev(t,n,r),vv((function(){return tv(t,n,r)})),null},Fv=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=zv(t,n,i),l=s||Pv(a),u=!l("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,m=1;m<p;m++)d.push(c[m],f[m])}var h=Mv((function(e,t,n){var r=u&&e.as||a,i="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=x.useContext(Cv)}"string"==typeof e.className?i=Qy(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var m=mv(d.concat(c),t.registered,f);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=u&&void 0===s?Pv(r):l,g={};for(var y in e)u&&"as"===y||h(y)&&(g[y]=e[y]);return g.className=i,n&&(g.ref=n),x.createElement(x.Fragment,null,x.createElement(jv,{cache:t,serialized:m,isStringTag:"string"==typeof r}),x.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,ol({},n,r,{shouldForwardProp:zv(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){Fv[e]=Fv(e)}));var Bv,_v,Hv={exports:{}},$v={};var Vv=(_v||(_v=1,Hv.exports=function(){if(Bv)return $v;Bv=1;var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return $v.Fragment=n,$v.jsx=a,$v.jsxs=a,$v}()),Hv.exports);let Wv;"object"==typeof document&&(Wv=Zy({key:"css",prepend:!0}));var Uv=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 Vv.jsx(Nv,{styles:r})}
|
|
14
|
+
*/lc();var dc=Date.now(),fc="fnValues"+dc,pc="fnStyle"+ ++dc,mc=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=nu(e,{},n);return r[pc]=t,r},onProcessStyle:function(e,t){if(fc in t||pc 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[fc]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[pc];i&&(o.style=i(e)||{});var a=o[fc];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},hc="@global",gc="@global ",yc=function(){function e(e,t,n){for(var r in this.type="global",this.at=hc,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Bu(ol({},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}(),vc=function(){function e(e,t,n){this.type="global",this.at=hc,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(gc.length);this.rule=n.jss.createRule(r,t,ol({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),bc=/\s*,\s*/g;function xc(e,t){for(var n=e.split(bc),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Sc(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===hc)return new yc(e,t,n);if("@"===e[0]&&e.substr(0,gc.length)===gc)return new vc(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[hc]:null;if(o){for(var i in o)t.addRule(i,o[i],ol({},n,{selector:xc(i,e.selector)}));delete r[hc]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,hc.length)===hc){var i=xc(o.substr(hc.length),e.selector);t.addRule(i,r[o],ol({},n,{selector:i})),delete r[o]}}(e,t))}}}var Mc=/\s*,\s*/g,Cc=/&/g,wc=/\$([\w-]+)/g;function kc(){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(Mc),r=e.split(Mc),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(Cc,a):a+" "+l}return o}function n(e,t,n){if(n)return ol({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=ol({},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,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(a=n(l,u,a),d){var p=t(c,l.selector);s||(s=e(u,i)),p=p.replace(wc,s);var m=l.key+"-"+c;"replaceRule"in u?u.replaceRule(m,r[c],ol({},a,{selector:p})):u.addRule(m,r[c],ol({},a,{selector:p}))}else f&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var Tc=/[A-Z]/g,qc=/^ms-/,Ec={};function Nc(e){return"-"+e.toLowerCase()}function Lc(e){if(Ec.hasOwnProperty(e))return Ec[e];var t=e.replace(Tc,Nc);return Ec[e]=qc.test(t)?"-"+t:t}function Oc(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Lc(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Oc):t.fallbacks=Oc(e.fallbacks)),t}var Dc=uc&&CSS?CSS.px:"px",Ac=uc&&CSS?CSS.ms:"ms",Ic=uc&&CSS?CSS.percent:"%";function Rc(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 Pc=Rc({"animation-delay":Ac,"animation-duration":Ac,"background-position":Dc,"background-position-x":Dc,"background-position-y":Dc,"background-size":Dc,border:Dc,"border-bottom":Dc,"border-bottom-left-radius":Dc,"border-bottom-right-radius":Dc,"border-bottom-width":Dc,"border-left":Dc,"border-left-width":Dc,"border-radius":Dc,"border-right":Dc,"border-right-width":Dc,"border-top":Dc,"border-top-left-radius":Dc,"border-top-right-radius":Dc,"border-top-width":Dc,"border-width":Dc,"border-block":Dc,"border-block-end":Dc,"border-block-end-width":Dc,"border-block-start":Dc,"border-block-start-width":Dc,"border-block-width":Dc,"border-inline":Dc,"border-inline-end":Dc,"border-inline-end-width":Dc,"border-inline-start":Dc,"border-inline-start-width":Dc,"border-inline-width":Dc,"border-start-start-radius":Dc,"border-start-end-radius":Dc,"border-end-start-radius":Dc,"border-end-end-radius":Dc,margin:Dc,"margin-bottom":Dc,"margin-left":Dc,"margin-right":Dc,"margin-top":Dc,"margin-block":Dc,"margin-block-end":Dc,"margin-block-start":Dc,"margin-inline":Dc,"margin-inline-end":Dc,"margin-inline-start":Dc,padding:Dc,"padding-bottom":Dc,"padding-left":Dc,"padding-right":Dc,"padding-top":Dc,"padding-block":Dc,"padding-block-end":Dc,"padding-block-start":Dc,"padding-inline":Dc,"padding-inline-end":Dc,"padding-inline-start":Dc,"mask-position-x":Dc,"mask-position-y":Dc,"mask-size":Dc,height:Dc,width:Dc,"min-height":Dc,"max-height":Dc,"min-width":Dc,"max-width":Dc,bottom:Dc,left:Dc,top:Dc,right:Dc,inset:Dc,"inset-block":Dc,"inset-block-end":Dc,"inset-block-start":Dc,"inset-inline":Dc,"inset-inline-end":Dc,"inset-inline-start":Dc,"box-shadow":Dc,"text-shadow":Dc,"column-gap":Dc,"column-rule":Dc,"column-rule-width":Dc,"column-width":Dc,"font-size":Dc,"font-size-delta":Dc,"letter-spacing":Dc,"text-decoration-thickness":Dc,"text-indent":Dc,"text-stroke":Dc,"text-stroke-width":Dc,"word-spacing":Dc,motion:Dc,"motion-offset":Dc,outline:Dc,"outline-offset":Dc,"outline-width":Dc,perspective:Dc,"perspective-origin-x":Ic,"perspective-origin-y":Ic,"transform-origin":Ic,"transform-origin-x":Ic,"transform-origin-y":Ic,"transform-origin-z":Ic,"transition-delay":Ac,"transition-duration":Ac,"vertical-align":Dc,"flex-basis":Dc,"shape-margin":Dc,size:Dc,gap:Dc,grid:Dc,"grid-gap":Dc,"row-gap":Dc,"grid-row-gap":Dc,"grid-column-gap":Dc,"grid-template-rows":Dc,"grid-template-columns":Dc,"grid-auto-rows":Dc,"grid-auto-columns":Dc,"box-shadow-x":Dc,"box-shadow-y":Dc,"box-shadow-blur":Dc,"box-shadow-spread":Dc,"font-line-height":Dc,"text-shadow-x":Dc,"text-shadow-y":Dc,"text-shadow-blur":Dc});function zc(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=zc(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=zc(o,t[o],n);else for(var i in t)t[i]=zc(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Pc[e];return!a||0===t&&a===Dc?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function jc(e){void 0===e&&(e={});var t=Rc(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=zc(r,e[r],t);return e},onChangeValue:function(e,n){return zc(n,e,t)}}}var Fc="",Bc="",_c="",Hc="",$c=Gl&&"ontouchstart"in document.documentElement;if(Gl){var Vc={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Wc=document.createElement("p").style;for(var Uc in Vc)if(Uc+"Transform"in Wc){Fc=Uc,Bc=Vc[Uc];break}"Webkit"===Fc&&"msHyphens"in Wc&&(Fc="ms",Bc=Vc.ms,Hc="edge"),"Webkit"===Fc&&"-apple-trailing-word"in Wc&&(_c="apple")}var Kc={js:Fc,css:Bc,vendor:_c,browser:Hc,isTouch:$c};var Gc={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Kc.js?"-webkit-"+e:Kc.css+e)}},Yc={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Kc.js?Kc.css+"print-"+e:e)}},Xc=/[-\s]+(.)?/g;function Jc(e,t){return t?t.toUpperCase():""}function Zc(e){return e.replace(Xc,Jc)}function Qc(e){return Zc("-"+e)}var ed,td={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Kc.js){var n="mask-image";if(Zc(n)in t)return e;if(Kc.js+Qc(n)in t)return Kc.css+e}return e}},nd={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Kc.vendor||Kc.isTouch?e:Kc.css+e)}},rd={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Kc.css+e)}},od={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Kc.css+e)}},id={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Kc.js||"ms"===Kc.js&&"edge"!==Kc.browser?Kc.css+e:e)}},ad={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Kc.js||"ms"===Kc.js||"apple"===Kc.vendor?Kc.css+e:e)}},sd={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Kc.js?"WebkitColumn"+Qc(e)in t&&Kc.css+"column-"+e:"Moz"===Kc.js&&("page"+Qc(e)in t&&"page-"+e))}},ld={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Kc.js)return e;var n=e.replace("-inline","");return Kc.js+Qc(n)in t&&Kc.css+n}},ud={supportedProperty:function(e,t){return Zc(e)in t&&e}},cd={supportedProperty:function(e,t){var n=Qc(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Kc.js+n in t?Kc.css+e:"Webkit"!==Kc.js&&"Webkit"+n in t&&"-webkit-"+e}},dd={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Kc.js?""+Kc.css+e:e)}},fd={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Kc.js?Kc.css+"scroll-chaining":e)}},pd={"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"},md={supportedProperty:function(e,t){var n=pd[e];return!!n&&(Kc.js+Qc(n)in t&&Kc.css+n)}},hd={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"},gd=Object.keys(hd),yd=function(e){return Kc.css+e},vd={supportedProperty:function(e,t,n){var r=n.multiple;if(gd.indexOf(e)>-1){var o=hd[e];if(!Array.isArray(o))return Kc.js+Qc(o)in t&&Kc.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Kc.js+Qc(o[0])in t))return!1;return o.map(yd)}return!1}},bd=[Gc,Yc,td,nd,rd,od,id,ad,sd,ld,ud,cd,dd,fd,md,vd],xd=bd.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Sd=bd.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Il(t.noPrefill)),e}),[]),Md={};if(Gl){ed=document.createElement("p");var Cd=window.getComputedStyle(document.documentElement,"");for(var wd in Cd)isNaN(wd)||(Md[Cd[wd]]=Cd[wd]);Sd.forEach((function(e){return delete Md[e]}))}function kd(e,t){if(void 0===t&&(t={}),!ed)return e;if(null!=Md[e])return Md[e];"transition"!==e&&"transform"!==e||(t[e]=e in ed.style);for(var n=0;n<xd.length&&(Md[e]=xd[n](e,ed.style,t),!Md[e]);n++);try{ed.style[e]=""}catch(e){return!1}return Md[e]}var Td,qd={},Ed={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Nd=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ld(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?kd(t):", "+kd(n);return r||(t||n)}function Od(e,t){var n=t;if(!Td||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=qd[r])return qd[r];try{Td.style[e]=n}catch(e){return qd[r]=!1,!1}if(Ed[e])n=n.replace(Nd,Ld);else if(""===Td.style[e]&&("-ms-flex"===(n=Kc.css+n)&&(Td.style[e]="-ms-flexbox"),Td.style[e]=n,""===Td.style[e]))return qd[r]=!1,!1;return Td.style[e]="",qd[r]=n,qd[r]}function Dd(){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=kd(n);i&&i!==n&&(o=!0);var a=!1,s=Od(i,ou(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"===Kc.js?e:"@"+Kc.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Od(t,ou(e))||e}}}function Ad(){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 Id(){return{plugins:[mc(),Sc(),kc(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Oc(e[t]);return e}return Oc(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Lc(t);return t===r?e:(n.prop(r,e),null)}},jc(),"undefined"==typeof window?null:Dd(),Ad()]}}function Rd(){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=ol({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Gl&&(Td=document.createElement("p"));var Pd={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},zd=Pd,jd=b.createContext(null);function Fd(){return b.useContext(jd)}var Bd,_d=lc(Id()),Hd={disableGeneration:!1,generateClassName:Wl(),jss:_d,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},$d=b.createContext(Hd);function Vd(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=yl(e,["children","injectFirst","disableGeneration"]),s=ol({},b.useContext($d),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Bd){var l=document.head;Bd=document.createComment("mui-inject-first"),l.insertBefore(Bd,l.firstChild)}s.jss=lc({plugins:Id().plugins,insertionPoint:Bd})}return b.createElement($d.Provider,{value:s},t)}var Wd=-1e9;var Ud={};function Kd(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=zd.get(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},zd.set(o.sheetsManager,i,r,s));var l=ol({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=zd.get(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,ol({link:!1},l))).attach(),o.sheetsCache&&zd.set(o.sheetsCache,i,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=cc(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,ol({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=Rd({baseClasses:s.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Gd(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?Ud:i,s=yl(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=ol({},o);return Object.keys(i).forEach((function(e){a[e]=sl(a[e],i[e])})),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:Wd+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Fd()||a,r=ol({},b.useContext($d),s),i=b.useRef(),u=b.useRef();!function(e,t){var n,r=b.useRef([]),o=b.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),b.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Kd(o,e),u.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=zd.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(zd.delete(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]),b.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),u.current=!0}));var c=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var 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=Rd({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return c}}function Yd(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=Yd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Xd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Yd(e))&&(r&&(r+=" "),r+=t);return r}var Jd,Zd,Qd,ef,tf={exports:{}},nf={};function rf(){return Zd||(Zd=1,tf.exports=function(){if(Jd)return nf;Jd=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case m:case p:case a:return e;default:return f}}case n:return f}}}function x(e){return b(e)===u}return nf.AsyncMode=l,nf.ConcurrentMode=u,nf.ContextConsumer=s,nf.ContextProvider=a,nf.Element=t,nf.ForwardRef=c,nf.Fragment=r,nf.Lazy=m,nf.Memo=p,nf.Portal=n,nf.Profiler=i,nf.StrictMode=o,nf.Suspense=d,nf.isAsyncMode=function(e){return x(e)||b(e)===l},nf.isConcurrentMode=x,nf.isContextConsumer=function(e){return b(e)===s},nf.isContextProvider=function(e){return b(e)===a},nf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},nf.isForwardRef=function(e){return b(e)===c},nf.isFragment=function(e){return b(e)===r},nf.isLazy=function(e){return b(e)===m},nf.isMemo=function(e){return b(e)===p},nf.isPortal=function(e){return b(e)===n},nf.isProfiler=function(e){return b(e)===i},nf.isStrictMode=function(e){return b(e)===o},nf.isSuspense=function(e){return b(e)===d},nf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===h)},nf.typeOf=b,nf}()),tf.exports}var of=function(){if(ef)return Qd;ef=1;var e=rf(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return Qd=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var m=i(t),h=i(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||o&&o[y]||h&&h[y]||m&&m[y])){var v=u(r,y);try{a(t,y,v)}catch(e){}}}}return t},Qd}(),af=ee(of);function sf(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=yl(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(ol({theme:e},n))}}}:{root:t},l=Gd(s,ol({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 u=b.forwardRef((function(t,r){var o,i,a,s=t.children,u=t.className,c=t.clone,d=t.component,f=yl(t,["children","className","clone","component"]),p=Xd(l(t).root,u),m=f;if(n&&(o=m,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),m=a),c)return b.cloneElement(s,ol({className:Xd(s.props.className,p)},m));if("function"==typeof s)return s(ol({className:p},m));var h=d||e;return b.createElement(h,ol({ref:r,className:p},m),s)}));return af(u,e),u}}function lf(e){var t=e.children,n=e.theme,r=Fd(),o=b.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):ol({},e,t)}(r,n);return null!=e&&(e[$l]=null!==r),e}),[n,r]);return b.createElement(jd.Provider,{value:o},t)}var uf=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=yl(t,["defaultTheme","withTheme","name"]),l=a,u=Gd(e,ol({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=b.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=yl(e,["classes","innerRef"]),c=u(ol({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=Fd()||r,a&&(d=Ul({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),b.createElement(n,ol({ref:s||t,classes:c},d))}));return af(c,n),c}},cf=Hl(),df=function(e){var t=sf(e);return function(e,n){return t(e,ol({defaultTheme:cf},n))}};function ff(e,t){return uf(e,ol({defaultTheme:cf},t))}function pf(e){if("string"!=typeof e)throw new Error(cl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function mf(){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 hf(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=hf(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function gf(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=hf(e))&&(r&&(r+=" "),r+=t);return r}function yf(e){return e&&e.ownerDocument||document}function vf(e){return yf(e).defaultView||window}function bf(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var xf="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Sf(e){var t=x.useRef(e);return xf((function(){t.current=e})),x.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Mf(e,t){return x.useMemo((function(){return null==e&&null==t?null:function(n){bf(e,n),bf(t,n)}}),[e,t])}var Cf=!0,wf=!1,kf=null,Tf={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 qf(e){e.metaKey||e.altKey||e.ctrlKey||(Cf=!0)}function Ef(){Cf=!1}function Nf(){"hidden"===this.visibilityState&&wf&&(Cf=!0)}function Lf(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Cf||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Tf[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Of(){wf=!0,window.clearTimeout(kf),kf=window.setTimeout((function(){wf=!1}),100)}function Df(){var e=x.useCallback((function(e){var t,n=T.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",qf,!0),t.addEventListener("mousedown",Ef,!0),t.addEventListener("pointerdown",Ef,!0),t.addEventListener("touchstart",Ef,!0),t.addEventListener("visibilitychange",Nf,!0))}),[]);return{isFocusVisible:Lf,onBlurVisible:Of,ref:e}}var Af=!1,If=b.createContext(null),Rf="unmounted",Pf="exited",zf="entering",jf="entered",Ff="exiting",Bf=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=Pf,r.appearStatus=zf):o=jf:o=t.unmountOnExit||t.mountOnEnter?Rf:Pf,r.state={status:o},r.nextCallback=null,r}Zl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rf?{status:Pf}: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!==zf&&n!==jf&&(t=zf):n!==zf&&n!==jf||(t=Ff)}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===zf){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:q.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pf&&this.setState({status:Rf})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[q.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Af?this.safeSetState({status:jf},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:zf},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:jf},(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:q.findDOMNode(this);t&&!Af?(this.props.onExit(r),this.safeSetState({status:Ff},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Pf},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Pf},(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:q.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===Rf)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=gl(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(If.Provider,{value:null},"function"==typeof n?n(e,r):b.cloneElement(b.Children.only(n),r))},t}(b.Component);function _f(){}Bf.contextType=If,Bf.propTypes={},Bf.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_f,onEntering:_f,onEntered:_f,onExit:_f,onExiting:_f,onExited:_f},Bf.UNMOUNTED=Rf,Bf.EXITED=Pf,Bf.ENTERING=zf,Bf.ENTERED=jf,Bf.EXITING=Ff;var Hf=Bf;function $f(e,t){var n=Object.create(null);return e&&S.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&M(e)?t(e):e}(e)})),n}function Vf(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Wf(e,t,n){var r=$f(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 u=o[l][r];s[o[l][r]]=n(u)}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(M(a)){var s=i in t,l=i in r,u=t[i],c=M(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&M(u)&&(o[i]=C(a,{onExited:n.bind(null,a),in:u.props.in,exit:Vf(a,"exit",e),enter:Vf(a,"enter",e)})):o[i]=C(a,{in:!1}):o[i]=C(a,{onExited:n.bind(null,a),in:!0,exit:Vf(a,"exit",e),enter:Vf(a,"enter",e)})}})),o}var Uf=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Kf=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ql(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Zl(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,$f(n.children,(function(e){return C(e,{onExited:r.bind(null,e),in:!0,appear:Vf(e,"appear",n),enter:Vf(e,"enter",n),exit:Vf(e,"exit",n)})}))):Wf(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=$f(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ol({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=gl(e,["component","childFactory"]),o=this.state.contextValue,i=Uf(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?b.createElement(If.Provider,{value:o},i):b.createElement(If.Provider,{value:o},b.createElement(t,r,i))},t}(b.Component);Kf.propTypes={},Kf.defaultProps={component:"div",childFactory:function(e){return e}};var Gf=Kf;function Yf(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 Xf=x.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,u=void 0===l?1:l,c=e.variant,d=void 0===c?"elevation":c,f=yl(e,["classes","className","component","square","elevation","variant"]);return x.createElement(i,ol({className:gf(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(u)],!s&&n.rounded),ref:t},f))})),Jf=ff((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),ol({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"})(Xf),Zf="undefined"==typeof window?x.useEffect:x.useLayoutEffect;function Qf(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,u=void 0===l?function(){}:l,c=e.timeout,d=x.useState(!1),f=d[0],p=d[1],m=gf(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=gf(t.child,f&&t.childLeaving,r&&t.childPulsate),y=Sf(u);return Zf((function(){if(!s){p(!0);var e=setTimeout(y,c);return function(){clearTimeout(e)}}}),[y,s,c]),x.createElement("span",{className:m,style:h},x.createElement("span",{className:g}))}var ep=x.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=yl(e,["center","classes","className"]),s=x.useState([]),l=s[0],u=s[1],c=x.useRef(0),d=x.useRef(null);x.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=x.useRef(!1),p=x.useRef(null),m=x.useRef(null),h=x.useRef(null);x.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var g=x.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;u((function(e){return[].concat(Il(e),[x.createElement(Qf,{key:c.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),c.current+=1,d.current=a}),[o]),y=x.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,u=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var c,d,y,v=u?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)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,M=x.clientY;c=Math.round(S-b.left),d=Math.round(M-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 C=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,w=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(C,2)+Math.pow(w,2))}e.touches?null===m.current&&(m.current=function(){g({pulsate:i,rippleX:c,rippleY:d,rippleSize:y,cb:n})},p.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):g({pulsate:i,rippleX:c,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=x.useCallback((function(){y({},{pulsate:!0})}),[y]),b=x.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(p.current=setTimeout((function(){b(e,t)})));m.current=null,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return x.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),x.createElement("span",ol({className:gf(o.root,i),ref:h},a),x.createElement(Gf,{component:null,exit:!0},l))})),tp=ff((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"})(x.memo(ep)),np=x.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,u=e.component,c=void 0===u?"button":u,d=e.disabled,f=void 0!==d&&d,p=e.disableRipple,m=void 0!==p&&p,h=e.disableTouchRipple,g=void 0!==h&&h,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,S=e.onBlur,M=e.onClick,C=e.onFocus,w=e.onFocusVisible,k=e.onKeyDown,q=e.onKeyUp,E=e.onMouseDown,N=e.onMouseLeave,L=e.onMouseUp,O=e.onTouchEnd,D=e.onTouchMove,A=e.onTouchStart,I=e.onDragLeave,R=e.tabIndex,P=void 0===R?0:R,z=e.TouchRippleProps,j=e.type,F=void 0===j?"button":j,B=yl(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"]),_=x.useRef(null);var H=x.useRef(null),$=x.useState(!1),V=$[0],W=$[1];f&&V&&W(!1);var U=Df(),K=U.isFocusVisible,G=U.onBlurVisible,Y=U.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Sf((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}x.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),_.current.focus()}}}),[]),x.useEffect((function(){V&&v&&!m&&H.current.pulsate()}),[m,v,V]);var J=X("start",E),Z=X("stop",I),Q=X("stop",L),ee=X("stop",(function(e){V&&e.preventDefault(),N&&N(e)})),te=X("start",A),ne=X("stop",O),re=X("stop",D),oe=X("stop",(function(e){V&&(G(e),W(!1)),S&&S(e)}),!1),ie=Sf((function(e){_.current||(_.current=e.currentTarget),K(e)&&(W(!0),w&&w(e)),C&&C(e)})),ae=function(){var e=T.findDOMNode(_.current);return c&&"button"!==c&&!("A"===e.tagName&&e.href)},se=x.useRef(!1),le=Sf((function(e){v&&!se.current&&V&&H.current&&" "===e.key&&(se.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!f&&(e.preventDefault(),M&&M(e))})),ue=Sf((function(e){v&&" "===e.key&&H.current&&V&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),q&&q(e),M&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&M(e)})),ce=c;"button"===ce&&B.href&&(ce="a");var de={};"button"===ce?(de.type=F,de.disabled=f):("a"===ce&&B.href||(de.role="button"),de["aria-disabled"]=f);var fe=Mf(r,t),pe=Mf(Y,_),me=Mf(fe,pe),he=x.useState(!1),ge=he[0],ye=he[1];x.useEffect((function(){ye(!0)}),[]);var ve=ge&&!m&&!f;return x.createElement(ce,ol({className:gf(s.root,l,V&&[s.focusVisible,b],f&&s.disabled),onBlur:oe,onClick:M,onFocus:ie,onKeyDown:le,onKeyUp:ue,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:me,tabIndex:f?-1:P},de,B),a,ve?x.createElement(tp,ol({ref:H,center:i},z)):null)})),rp=ff({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"})(np),op={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},ip=x.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,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,f=void 0!==d&&d,p=e.noWrap,m=void 0!==p&&p,h=e.paragraph,g=void 0!==h&&h,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,S=void 0===b?op:b,M=yl(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":S[v]||op[v])||"span";return x.createElement(C,ol({className:gf(o.root,i,"inherit"!==v&&o[v],"initial"!==s&&o["color".concat(pf(s))],m&&o.noWrap,f&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(pf(r))],"initial"!==c&&o["display".concat(pf(c))]),ref:t},M))})),ap=ff((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"})(ip),sp=x.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,u=e.disabled,c=void 0!==u&&u,d=e.disableElevation,f=void 0!==d&&d,p=e.disableFocusRipple,m=void 0!==p&&p,h=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,S=void 0===b?"medium":b,M=e.startIcon,C=e.type,w=void 0===C?"button":C,k=e.variant,T=void 0===k?"text":k,q=yl(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=M&&x.createElement("span",{className:gf(r.startIcon,r["iconSize".concat(pf(S))])},M),N=h&&x.createElement("span",{className:gf(r.endIcon,r["iconSize".concat(pf(S))])},h);return x.createElement(rp,ol({className:gf(r.root,r[T],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(pf(a))],"medium"!==S&&[r["".concat(T,"Size").concat(pf(S))],r["size".concat(pf(S))]],f&&r.disableElevation,c&&r.disabled,v&&r.fullWidth),component:l,disabled:c,focusRipple:!m,focusVisibleClassName:gf(r.focusVisible,g),ref:t,type:w},q),x.createElement("span",{className:r.label},E,n,N))})),lp=ff((function(e){return{root:ol({},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:hl(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:hl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:hl(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(hl(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:hl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(hl(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:hl(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"})(sp);var up="undefined"!=typeof window?x.useLayoutEffect:x.useEffect,cp=x.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=x.useState(null),l=s[0],u=s[1],c=Mf(x.isValidElement(n)?n.ref:null,t);return up((function(){i||u(function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(r)||document.body)}),[r,i]),up((function(){if(l&&!i)return bf(t,l),function(){bf(t,null)}}),[t,l,i]),up((function(){a&&(l||i)&&a()}),[a,l,i]),i?x.isValidElement(n)?x.cloneElement(n,{ref:c}):n:l?T.createPortal(n,l):l})),dp=cp;function fp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function pp(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function mp(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Il(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)&&fp(e,r)}))}function hp(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function gp(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=yf(e);return t.body===e?vf(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(pp(i)+a,"px"),n=yf(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(pp(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 yp=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 Xl(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&&fp(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);mp(t,e.mountNode,e.modalRef,r,!0);var o=hp(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=hp(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=gp(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=hp(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&fp(e.modalRef,!0),mp(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&&fp(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function vp(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,u=e.isEnabled,c=e.open,d=x.useRef(),f=x.useRef(null),p=x.useRef(null),m=x.useRef(),h=x.useRef(null),g=x.useCallback((function(e){h.current=T.findDOMNode(e)}),[]),y=Mf(t.ref,g),v=x.useRef();return x.useEffect((function(){v.current=c}),[c]),!v.current&&c&&"undefined"!=typeof window&&(m.current=l().activeElement),x.useEffect((function(){if(c){var e=yf(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&&u()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!i&&u()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?p.current.focus():f.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||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,i,s,u,c]),x.createElement(x.Fragment,null,x.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),x.cloneElement(t,{ref:y}),x.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))}var bp={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"}},xp=x.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=yl(e,["invisible","open"]);return o?x.createElement("div",ol({"aria-hidden":!0,ref:t},i,{style:ol({},bp.root,r?bp.invisible:{},i.style)})):null}));var Sp=new yp,Mp=x.forwardRef((function(e,t){var n=Fd(),r=Ul({name:"MuiModal",props:ol({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?xp:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,p=r.disableBackdropClick,m=void 0!==p&&p,h=r.disableEnforceFocus,g=void 0!==h&&h,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,S=void 0!==b&&b,M=r.disableRestoreFocus,C=void 0!==M&&M,w=r.disableScrollLock,k=void 0!==w&&w,q=r.hideBackdrop,E=void 0!==q&&q,N=r.keepMounted,L=void 0!==N&&N,O=r.manager,D=void 0===O?Sp:O,A=r.onBackdropClick,I=r.onClose,R=r.onEscapeKeyDown,P=r.onRendered,z=r.open,j=yl(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=x.useState(!0),B=F[0],_=F[1],H=x.useRef({}),$=x.useRef(null),V=x.useRef(null),W=Mf(V,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),K=function(){return yf($.current)},G=function(){return H.current.modalRef=V.current,H.current.mountNode=$.current,H.current},Y=function(){D.mount(G(),{disableScrollLock:k}),V.current.scrollTop=0},X=Sf((function(){var e=function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(c)||K().body;D.add(G(),e),V.current&&Y()})),J=x.useCallback((function(){return D.isTopModal(G())}),[D]),Z=Sf((function(e){$.current=e,e&&(P&&P(),z&&J()?Y():fp(V.current,!0))})),Q=x.useCallback((function(){D.remove(G())}),[D]);if(x.useEffect((function(){return function(){Q()}}),[Q]),x.useEffect((function(){z?X():U&&u||Q()}),[z,Q,U,u,X]),!L&&!z&&(!U||B))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:_l}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=mf((function(){_(!1)}),s.props.onEnter),te.onExited=mf((function(){_(!0),u&&Q()}),s.props.onExited)),x.createElement(dp,{ref:Z,container:c,disablePortal:S},x.createElement("div",ol({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(R&&R(e),v||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},j,{style:ol({},ee.root,!z&&B?ee.hidden:{},j.style)}),E?null:x.createElement(i,ol({open:z,onClick:function(e){e.target===e.currentTarget&&(A&&A(e),!m&&I&&I(e,"backdropClick"))}},a)),x.createElement(vp,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:C,getDoc:K,isEnabled:J,open:z},x.cloneElement(s,te))))})),Cp=Mp,wp=x.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,u=void 0!==l&&l,c=e.light,d=void 0!==c&&c,f=e.orientation,p=void 0===f?"horizontal":f,m=e.role,h=void 0===m?"hr"!==s?"separator":void 0:m,g=e.variant,y=void 0===g?"fullWidth":g,v=yl(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return x.createElement(s,ol({className:gf(o.root,i,"fullWidth"!==y&&o[y],r&&o.absolute,u&&o.flexItem,d&&o.light,"vertical"===p&&o.vertical),role:h,ref:t},v))})),kp=ff((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:hl(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"})(wp);function Tp(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var qp={entering:{opacity:1,transform:Tp(1)},entered:{opacity:1,transform:"none"}},Ep=x.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,u=e.onExit,c=e.onExited,d=e.onExiting,f=e.style,p=e.timeout,m=void 0===p?"auto":p,h=e.TransitionComponent,g=void 0===h?Hf:h,y=yl(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=x.useRef(),b=x.useRef(),S=Fd()||cf,M=S.unstable_strictMode&&!o,C=x.useRef(null),w=Mf(n.ref,t),k=Mf(M?C:void 0,w),T=function(e){return function(t,n){if(e){var r=Rl(M?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},q=T(l),E=T((function(e,t){!function(e){e.scrollTop}(e);var n,r=Yf({style:f,timeout:m},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===m?(n=S.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=o,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:i}),S.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),N=T(s),L=T(d),O=T((function(e){var t,n=Yf({style:f,timeout:m},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===m?(t=S.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[S.transitions.create("opacity",{duration:t,delay:o}),S.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Tp(.75),u&&u(e)})),D=T(c);return x.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),x.createElement(g,ol({appear:!0,in:i,nodeRef:M?C:void 0,onEnter:E,onEntered:N,onEntering:q,onExit:O,onExited:D,onExiting:L,addEndListener:function(e,t){var n=M?e:t;"auto"===m&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===m?null:m},y),(function(e,t){return x.cloneElement(n,ol({style:ol({opacity:0,transform:Tp(.75),visibility:"exited"!==e||i?void 0:"hidden"},qp[e],f,n.props.style),ref:k},t))}))}));Ep.muiSupportAuto=!0;var Np=Ep,Lp=x.createContext({}),Op=x.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,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,f=yl(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=x.useMemo((function(){return{dense:l}}),[l]);return x.createElement(Lp.Provider,{value:p},x.createElement(a,ol({className:gf(r.root,o,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},f),d,n))})),Dp=ff({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Op),Ap="undefined"==typeof window?x.useEffect:x.useLayoutEffect,Ip=x.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,u=e.classes,c=e.className,d=e.component,f=e.ContainerComponent,p=void 0===f?"li":f,m=e.ContainerProps,h=(m=void 0===m?{}:m).className,g=yl(m,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,S=void 0!==b&&b,M=e.disableGutters,C=void 0!==M&&M,w=e.divider,k=void 0!==w&&w,q=e.focusVisibleClassName,E=e.selected,N=void 0!==E&&E,L=yl(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=x.useContext(Lp),D={dense:v||O.dense||!1,alignItems:r},A=x.useRef(null);Ap((function(){i&&A.current&&A.current.focus()}),[i]);var I,R,P=x.Children.toArray(l),z=P.length&&(I=P[P.length-1],R=["ListItemSecondaryAction"],x.isValidElement(I)&&-1!==R.indexOf(I.type.muiName)),j=Mf(x.useCallback((function(e){A.current=T.findDOMNode(e)}),[]),t),F=ol({className:gf(u.root,c,D.dense&&u.dense,!C&&u.gutters,k&&u.divider,S&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,z&&u.secondaryAction,N&&u.selected),disabled:S},L),B=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=gf(u.focusVisible,q),B=rp),z?(B=F.component||d?B:"div","li"===p&&("li"===B?B="div":"li"===F.component&&(F.component="div")),x.createElement(Lp.Provider,{value:D},x.createElement(p,ol({className:gf(u.container,h),ref:j},g),x.createElement(B,F,P),P.pop()))):x.createElement(Lp.Provider,{value:D},x.createElement(B,ol({ref:j},F),P))})),Rp=ff((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"})(Ip),Pp=x.forwardRef((function(e,t){var n=e.classes,r=e.className,o=yl(e,["classes","className"]),i=x.useContext(Lp);return x.createElement("div",ol({className:gf(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),zp=ff((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Pp),jp=x.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,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,p=yl(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=x.useContext(Lp).dense,h=null!=u?u:n;null==h||h.type===ap||a||(h=x.createElement(ap,ol({variant:m?"body2":"body1",className:r.primary,component:"span",display:"block"},c),h));var g=d;return null==g||g.type===ap||a||(g=x.createElement(ap,ol({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),x.createElement("div",ol({className:gf(r.root,o,m&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),Fp=ff({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(jp);function Bp(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function _p(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Hp(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function $p(e){return"function"==typeof e?e():e}var Vp=x.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,u=e.children,c=e.classes,d=e.className,f=e.container,p=e.elevation,m=void 0===p?8:p,h=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,S=e.onEntering,M=e.onExit,C=e.onExited,w=e.onExiting,k=e.open,q=e.PaperProps,E=void 0===q?{}:q,N=e.transformOrigin,L=void 0===N?{vertical:"top",horizontal:"left"}:N,O=e.TransitionComponent,D=void 0===O?Np:O,A=e.transitionDuration,I=void 0===A?"auto":A,R=e.TransitionProps,P=void 0===R?{}:R,z=yl(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),j=x.useRef(),F=x.useCallback((function(e){if("anchorPosition"===l)return a;var t=$p(r),n=(t&&1===t.nodeType?t:yf(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Bp(n,o),left:n.left+_p(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),B=x.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]),_=x.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Bp(e,L.vertical)+t,horizontal:_p(e,L.horizontal)}}),[L.horizontal,L.vertical]),H=x.useCallback((function(e){var t=B(e),n={width:e.offsetWidth,height:e.offsetHeight},o=_(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Hp(o)};var i=F(t),a=i.top-o.vertical,s=i.left-o.horizontal,u=a+n.height,c=s+n.width,d=vf($p(r)),f=d.innerHeight-y,p=d.innerWidth-y;if(a<y){var m=a-y;a-=m,o.vertical+=m}else if(u>f){var h=u-f;a-=h,o.vertical+=h}if(s<y){var g=s-y;s-=g,o.horizontal+=g}else if(c>p){var v=c-p;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Hp(o)}}),[r,l,F,B,_,y]),$=x.useCallback((function(){var e=j.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),V=x.useCallback((function(e){j.current=T.findDOMNode(e)}),[]);x.useEffect((function(){k&&$()})),x.useImperativeHandle(n,(function(){return k?{updatePosition:function(){$()}}:null}),[k,$]),x.useEffect((function(){if(k){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,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)}}}),[k,$]);var W=I;"auto"!==I||D.muiSupportAuto||(W=void 0);var U=f||(r?yf($p(r)).body:void 0);return x.createElement(Cp,ol({container:U,open:k,ref:t,BackdropProps:{invisible:!0},className:gf(c.root,d)},z),x.createElement(D,ol({appear:!0,in:k,onEnter:v,onEntered:b,onExit:M,onExited:C,onExiting:w,timeout:W},P,{onEntering:mf((function(e,t){S&&S(e,t),$()}),P.onEntering)}),x.createElement(Jf,ol({elevation:m,ref:V},E,{className:gf(c.paper,E.className)}),u)))})),Wp=ff({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Vp);function Up(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Kp({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Up(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return b.createElement("i",{style:o},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},b.createElement("path",{d:e})))}const Gp={menuItem:"alternative-menu-item"},Yp=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>Gd((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 b.createElement(Rp,Fs({className:`${o.root} ${n}`},r))},Xp=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Gp.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function Jp({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=Oe.detectTextDirection(e);return b.createElement(Yp,{nested:r,role:"menuitem",button:!0,onClick:n,className:Gp.menuItem,onKeyDown:Xp,dir:a,autoFocus:t},b.createElement(Fp,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),b.createElement(zp,{style:{minWidth:16}},b.createElement(Kp,{d:t?Cs.d:""})),o&&b.createElement(zp,{style:{minWidth:16}},b.createElement(Kp,{d:o.d})))}Jp.propTypes={title:Ys.string.isRequired,selected:Ys.bool,onClick:Ys.func.isRequired,nested:Ys.bool,icon:Ys.shape({d:Ys.string.isRequired}),bold:Ys.bool,dir:Ys.string.isRequired},Jp.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Yp.propTypes={nested:Ys.bool,className:Ys.string},Yp.defaultProps={nested:!1,className:Gp.menuItem};const Zp={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 Qp({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const u=i.map(((t,o)=>{var s;return b.createElement(b.Fragment,{key:t.id},b.createElement(Jp,{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&&b.createElement(Dp,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>b.createElement(Jp,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&b.createElement(kp,{key:`divider-${t.id}`}))}));return b.createElement(Wp,Fs({anchorEl:t,open:s,onClose:a},Zp[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),b.createElement(Dp,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},u))}Qp.propTypes={chartId:Ys.string.isRequired,alignTo:Ys.any,currentId:Ys.string.isRequired,dir:Ys.string.isRequired,dock:Ys.string.isRequired,list:Ys.array,onClose:Ys.func.isRequired,show:Ys.bool.isRequired,instruction:Ys.string.isRequired},Qp.defaultProps={list:[],alignTo:null};const em="title-button",tm="active-title-button",nm=df((({children:e,...t})=>b.createElement(lp,Fs({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),rm=df(lp)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class om extends b.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=b.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(`.${em}`);t&&(t.focus(),t.classList.add(tm))}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(`.${em}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${tm}`);e&&(e.classList.remove(tm),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:u,showGroupDimOptions:c}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,p=o||Boolean(!t.drillUp)||this.state.inSelection,m=t.breadcrumbs.map(((e,n)=>b.createElement(nm,{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(f-n),title:e},b.createElement("span",{style:d},e),b.createElement(Kp,Fs({},ks,{size:"small",style:{margin:"0 8px"}}))))),h=u||c?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 x=()=>{this.setState({disableCyclicButton:!0})},S=Oe.detectTextDirection(t.text),M=b.createElement(nm,{"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:`${em} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&b.createElement(Kp,Fs({},Ms,{size:"small",title:r.get("Tooltip.selections.locked")})),b.createElement("span",{style:d,dir:S},t.text),n&&h&&b.createElement(Kp,Fs({},ws,{size:"small",style:{margin:"0 8px"}})));return b.createElement(b.Fragment,null,t.icon&&t.icon.onClick&&b.createElement(rm,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},b.createElement(Kp,Fs({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&b.createElement(Kp,Fs({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),m,b.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},M),n&&h&&b.createElement(Qp,{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 im(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}om.propTypes={chartId:Ys.string.isRequired,disabled:Ys.bool.isRequired,padding:Ys.string,minWidth:Ys.string,titleData:Ys.shape({breadcrumbs:Ys.arrayOf(Ys.string).isRequired,icon:Ys.shape({path:Ys.shape({d:Ys.string.isRequired}),tooltip:Ys.string.isRequired,onClick:Ys.func}),index:Ys.number.isRequired,locked:Ys.bool.isRequired,text:Ys.string.isRequired,popoverText:Ys.string.isRequired,drillUp:Ys.func,id:Ys.string.isRequired}).isRequired,popover:Ys.shape({dir:Ys.string.isRequired,dock:Ys.string.isRequired,getPopoverOptions:Ys.func.isRequired}),translator:Ys.shape({get:Ys.func.isRequired}).isRequired,selections:Ys.shape({isActive:Ys.func,addListener:Ys.func,removeListener:Ys.func}),style:Ys.shape({fontSize:Ys.string,color:Ys.string,fontFamily:Ys.string}).isRequired,isDimension:Ys.bool.isRequired,hasAlternative:Ys.bool.isRequired,supportConditional:Ys.bool.isRequired,showGroupDimOptions:Ys.bool.isRequired},om.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const am=Hl({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 sm=Wl({productionPrefix:"q7afb",disableGlobal:!0,seed:""});var lm={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:um}=lm;function cm({layoutService:e,largeDataService:t}){const{maxNumPoints:n=um}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:dm}=lm,fm=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=dm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!cm({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:pm}=lm,{MAX_NUM_POINTS:mm,DEFAULT_NUM_POINTS:hm,DEFAULT_NUM_LINES:gm}=lm,{DEFAULT_NUM_POINTS:ym}=lm,vm=({layoutService:e,largeDataService:t})=>{if(!cm({layoutService:e,largeDataService:t})){const{maxNumPoints:e=ym}=(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=gm,maxNumPoints:i=hm,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(fm({layoutService:e,largeDataService:t})*r[0]<=i)return r[0];const s=Math.max(1,Math.min(o,r[1])),l=i/s,u=Math.floor(r[0]<=l?l:l/4),c=2*s*(s+1);return a&&(s>gm||i>hm)?Math.min(u,Math.ceil(mm/c)):u})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=pm}=(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})},bm=({start:e,end:t,model:n,layoutService:r,largeDataService:o,definitionPath:i})=>{const a={qStart:e,qEnd:t,qNbrPoints:vm({layoutService:r,largeDataService:o}),qMaxNbrTicks:300,qMaxNumberLines:fm({layoutService:r,largeDataService:o})};return n.getHyperCubeContinuousData(i,a,!1)};function xm({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>cm({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>vm({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>fm({layoutService:t,largeDataService:n}),fetch:(o,i)=>bm({start:o,end:i,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Sm(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Mm({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 Cm(){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 wm(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=Cm(),i=Cm();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 km(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Tm(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=wm(e,t,n.qMatrix),o=km(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 qm=2**.5,Em=1/qm,Nm=1e-6,Lm=Em**44;function Om(e){return e.qIsOtherCell}function Dm({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Om)){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(Om)||t++})),t}(n)}const Am={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var Im={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}};const Rm="…";function Pm(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function zm(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:"",u=s(l);let{x:c,width:d}=r;e.start===e.end&&(d=u.width+2*o,1===e.end&&(c-=d));const f={x:c+o,y:o,width:d-2*o,height:t.height-2*o},p=s(`${l[0]}${Rm}`).width,m=Math.max(0,f.width-u.width),h=Math.max(0,f.height-u.height),g=i*m,y=a*h;return{show:f.width>=Math.min(p,u.width),text:l,dx:g,dy:y,rect:f,style:n.label,segment:{x:c+g,width:u.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=Pm(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:Pm(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 jm(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=Pm(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:Pm(o,n.minorGuideLine.strokeWidth),x2:i,y2:Pm(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function Fm(e){return e.filter((e=>e.show)).map((e=>ie({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var Bm={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=Pm(1,t.line.strokeWidth);return{show:n.line.show,x1:Pm(0,t.line.strokeWidth),y1:r,x2:Pm(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=zm(n,this),this.state.minor=jm(r,this)},render(){return[...Fm([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>ie({},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})))),...Fm(this.state.major.map((e=>e.guideLine))),...Fm(this.state.minor.map((e=>e.guideLine)))];var e}};function _m(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 Hm({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];_m(i,a)?(a.qTags.indexOf("$qualified")>-1?(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 $m({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 u=e[l];if(u.queries.outer(n)){const e=t[l+1];if(o=u.index,r=l,u.attrs.isDayOrShorter()&&u.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}}}}const Vm=16;function Wm({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+Vm}))),r.clamp(n),o.rangeAndWidth}}}const Um=6;function Km({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>=Um,canFitHalfDayTicks:n=>n>=t*e.count()}}function Gm({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=Wm,queryFactory:s=Km}={attributesFactory:Wm,queryFactory:Km}){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))),u=e.map((e=>l[e])),c=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:u,nonQualifiedMeta:c}}function Ym({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=Gm,mapper:a=Hm,resolver:s=$m}={metaFactory:Gm,mapper:Hm,resolver:$m}){const{qualified:l,nonQualified:u}=a({qAxis:e}),{qualifiedMeta:c,nonQualifiedMeta:d}=i({qAxis:e,qualified:l,nonQualified:u,measureText:t,reqAutoFitWidth:r,scale:o}),f=s({qualifiedMeta:c,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=f.resolve(t);return n.set(r,o),o}}}const Xm=86400,Jm=864e5;function Zm(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(Jm*(e-Math.floor(e)))))}const Qm=Zm(0).getTime();function eh(e){return(e.getTime()-Qm)/Xm/1e3}const th=new Date,nh=new Date;function rh(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=>rh((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)=>(th.setTime(+t),nh.setTime(+r),e(th),e(nh),Math.floor(n(th,nh))),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 oh=1e3,ih=6e4,ah=36e5,sh=864e5,lh=6048e5,uh=rh((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*oh)}),((e,t)=>(t-e)/oh),(e=>e.getUTCSeconds()));uh.range;const ch=rh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oh)}),((e,t)=>{e.setTime(+e+t*ih)}),((e,t)=>(t-e)/ih),(e=>e.getMinutes()));ch.range;const dh=rh((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*ih)}),((e,t)=>(t-e)/ih),(e=>e.getUTCMinutes()));dh.range;const fh=rh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oh-e.getMinutes()*ih)}),((e,t)=>{e.setTime(+e+t*ah)}),((e,t)=>(t-e)/ah),(e=>e.getHours()));fh.range;const ph=rh((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*ah)}),((e,t)=>(t-e)/ah),(e=>e.getUTCHours()));ph.range;const mh=rh((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ih)/sh),(e=>e.getDate()-1));mh.range;const hh=rh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/sh),(e=>e.getUTCDate()-1));hh.range;const gh=rh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/sh),(e=>Math.floor(e/sh)));function yh(e){return rh((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())*ih)/lh))}gh.range;const vh=yh(0),bh=yh(1),xh=yh(2),Sh=yh(3),Mh=yh(4),Ch=yh(5),wh=yh(6);function kh(e){return rh((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)/lh))}vh.range,bh.range,xh.range,Sh.range,Mh.range,Ch.range,wh.range;const Th=kh(0),qh=kh(1),Eh=kh(2),Nh=kh(3),Lh=kh(4),Oh=kh(5),Dh=kh(6);Th.range,qh.range,Eh.range,Nh.range,Lh.range,Oh.range,Dh.range;const Ah=rh((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()));Ah.range;const Ih=rh((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()));Ih.range;const Rh=rh((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()));Rh.every=e=>isFinite(e=Math.floor(e))&&e>0?rh((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,Rh.range;const Ph=rh((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()));Ph.every=e=>isFinite(e=Math.floor(e))&&e>0?rh((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,Ph.range;const zh={second:1,minute:2,hour:3,day:4,month:5,year:6};function jh({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:o,timeOnly:i,initialMin:a}){const[s,l]=e.domain(),u=o.key({distance:n});let c;o.get(u,1)?c=o.get(u,1):(c=function(e,t,n,r,o,i){function a(e){return Ph.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=uh.count(e,t),l=dh.count(e,t),u=ph.count(e,t),c=hh.count(e,t),d=Th.count(e,t),f=Ih.count(e,t),p=Ph.count(e,t),m=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:Ph.every(1),formatter:r.year.formatter,offset:e=>Ph.offset(e,-1),floor:Ph.floor};if(s<=m)v.type=zh.second,v.desc="second",v.count=s,v.interval=uh.every(1),v.formatter=r.second.formatter,v.offset=e=>uh.offset(e,-1),v.floor=uh.floor;else if(s/2<=m)v.type=zh.second,v.desc="every other second",v.count=s/2,v.interval=uh.every(2),v.formatter=r.second.formatter,v.offset=e=>uh.offset(e,-2),v.floor=uh.floor;else if(s/5<=m)v.type=zh.second,v.desc="every 5 second",v.count=s/5,v.interval=uh.every(5),v.formatter=r.second.formatter,v.offset=e=>uh.offset(e,-5),v.floor=uh.floor;else if(s/15<=m)v.type=zh.second,v.desc="every 15 second",v.count=s/15,v.interval=uh.every(15),v.formatter=r.second.formatter,v.offset=e=>uh.offset(e,-15),v.floor=uh.floor;else if(s/30<=m)v.type=zh.second,v.desc="every 30 second",v.count=s/30,v.interval=uh.every(30),v.formatter=r.second.formatter,v.offset=e=>uh.offset(e,-30),v.floor=uh.floor;else if(l<=h)v.type=zh.minute,v.desc="minute",v.count=l,v.interval=dh.every(1),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-1),v.floor=dh.floor;else if(l/2<=h)v.type=zh.minute,v.desc="every 2 minute",v.count=l/2,v.interval=dh.every(2),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-2),v.floor=dh.floor;else if(l/5<=h)v.type=zh.minute,v.desc="every 5 minute",v.count=l/5,v.interval=dh.every(5),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-5),v.floor=dh.floor;else if(l/10<=h)v.type=zh.minute,v.desc="every 10 minute",v.count=l/10,v.interval=dh.every(10),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-10),v.floor=dh.floor;else if(l/15<=h)v.type=zh.minute,v.desc="every 15 minute",v.count=l/15,v.interval=dh.every(15),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-15),v.floor=dh.floor;else if(l/30<=h)v.type=zh.minute,v.desc="every 30 minute",v.count=l/30,v.interval=dh.every(30),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-30),v.floor=dh.floor;else if(u<=h)v.type=zh.hour,v.desc="hour",v.count=u,v.interval=ph.every(1),v.formatter=r.minute.formatter,v.offset=e=>ph.offset(e,-1),v.floor=ph.floor;else if(u/2<=h)v.type=zh.hour,v.desc="every 2 hour",v.count=u/2,v.interval=ph.every(2),v.formatter=r.minute.formatter,v.offset=e=>ph.offset(e,-2),v.floor=ph.floor;else if(u/3<=h)v.type=zh.hour,v.desc="every 3 hour",v.count=u/3,v.interval=ph.every(3),v.formatter=r.minute.formatter,v.offset=e=>ph.offset(e,-3),v.floor=ph.floor;else if(u/6<=h)v.type=zh.hour,v.desc="every 6 hour",v.count=u/6,v.interval=ph.every(6),v.formatter=r.minute.formatter,v.offset=e=>ph.offset(e,-6),v.floor=ph.floor;else if(u/12<=h||o)v.type=zh.hour,v.desc="every 12 hour",v.count=u/12,v.interval=ph.every(12),v.formatter=r.minute.formatter,v.offset=e=>ph.offset(e,-12),v.floor=ph.floor;else if(c<=g)v.type=zh.day,v.desc="day",v.count=c,v.interval=hh.every(1),v.formatter=r.date.formatter,v.offset=e=>hh.offset(e,-1),v.floor=hh.floor;else if(c/2<=g)v.type=zh.day,v.desc="every 2 day",v.count=c/2,v.interval=hh.every(2),v.formatter=r.date.formatter,v.offset=e=>hh.offset(e,-2),v.floor=hh.floor;else if(c/3<=g)v.type=zh.day,v.desc="every 3 day",v.count=c/3,v.interval=hh.every(3),v.formatter=r.date.formatter,v.offset=e=>hh.offset(e,-3),v.floor=hh.floor;else if(d<=g)v.type=zh.day,v.desc="week",v.count=d,v.interval=Th.every(1),v.formatter=r.date.formatter,v.offset=e=>Th.offset(e,-1),v.floor=hh.floor;else if(d/2<=g)v.type=zh.day,v.desc="every 2 week",v.count=d/2,v.interval=Th.every(2),v.formatter=r.date.formatter,v.offset=e=>Th.offset(e,-2),v.floor=hh.floor;else if(f<=g)v.type=zh.month,v.desc="month",v.count=f,v.interval=Ih.every(1),v.formatter=r.date.formatter,v.offset=e=>Ih.offset(e,-1),v.floor=hh.floor;else if(f/3<=g)v.type=zh.month,v.desc="quarter",v.count=f/3,v.interval=Ih.every(3),v.formatter=r.date.formatter,v.offset=e=>Ih.offset(e,-3),v.floor=hh.floor;else if(f/6<=g)v.type=zh.month,v.desc="half year",v.count=f/6,v.interval=Ih.every(6),v.formatter=r.date.formatter,v.offset=e=>Ih.offset(e,-6),v.floor=hh.floor;else if(p<=y)v.type=zh.year,v.desc="year",v.count=p,v.interval=Ph.every(1),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-1),v.floor=Ph.floor;else if(p/2<=y)v.type=zh.year,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-2),v.floor=Ph.floor;else if(p/5<=y)v.type=zh.year,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-5),v.floor=Ph.floor;else if(p/10<=y)v.type=zh.year,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-10),v.floor=Ph.floor;else{const e=Math.max(1,Math.floor(p/y));v.type=zh.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>Ph.offset(t,-e),v.floor=Ph.floor}return v}(s,l,n,t.all(),r,a),o.set(u,c,1));const d=e.ticks(c.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(c.offset(d[0])):d.push(c.floor(s));const f=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:c.formatter}}));let p=[];if(!i&&c.type<=zh.hour){const n=t.getFormat("date"),r=e.ticks(hh.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(hh.offset(r[0],-1)),p=(r.length?r:[hh.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:f,outer:p}}const Fh=86400,Bh=1440,_h={};function Hh(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function $h(e,t,n){const{generator:r,anchor:o,clamp:i,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(i);const[l,u]=e.domain(),c=Ki().domain([Zm(l),Zm(u)]);c.clamp(i),c.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let f;f="d3"===d.type?(e,o)=>jh({timeScale:c,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?c.domain()[0]:Zm(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(_h[[t,n,r,r,i]])return _h[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=Zm(n),l=s.getFullYear(),u=s.getMonth(),c=s.getDate(),d=r-n,f=t/(o-r),p=f/1440,m=f/Fh,h=366*f,g=3*f*30,y=a.second.width/m,v=a.minute.width/p,b=a.date.width/g,x=a.year.width/h;let S,M,C,w=0,k=0,T=null,q=null,E=null,N=null,L=null,O=null;const D={outer:[],inner:[]};for(y<1?(T=1,k=1/Fh):y<2?(T=2,k=1/Fh*2):y<5?(T=5,k=1/Fh*5):y<10?(T=10,k=1/Fh*10):y<30?(T=30,k=1/Fh*30):v<1?(q=1,k=1/Bh):v<2?(q=2,k=1/Bh*2):v<5?(q=5,k=1/Bh*5):v<10?(q=10,k=1/Bh*10):v<30?(q=30,k=1/Bh*30):v<60?(E=1,k=1/24):v<120?(E=2,k=2/24):v<360?(E=6,k=.25):v<720?(E=12,k=.5):b<1/90?(k=1,N=1):b<2/90?(k=2,N=2):b<7/90?(k=7,N=7):b<31/90?(L=1,k=31):b<1?(L=3,k=90):x<1?(O=1,k=366):x<2?(O=2,k=732):x<5?(O=5,k=1826.25):(O=10,k=3652.5),M=Math.floor((d+n%1)/k);w<o;){C=M+1,S=O?Hh("year",[l+M*O,0,1],[l+C*O,0,1],a.year.formatter):L?Hh("month",[l,u+M*L,1],[l,u+C*L,1],a.date.formatter):N?Hh("day",[l,u,c+M*N],[l,u,c+C*N],a.date.formatter):E?Hh("hour",[l,u,c,0+M*E],[l,u,c,0+C*E],a.minute.formatter):q?Hh("minute",[l,u,c,0,0+M*q],[l,u,c,0,0+C*q],a.minute.formatter):Hh("second",[l,u,c,0,0,0+M*T],[l,u,c,0,0,0+C*T],a.second.formatter),w=eh(S.start),D.inner.push(S);const e=Math.floor(w);if(!(i||O||L||N)){const t={type:"day",start:Zm(e),end:Zm(e+1),formatter:a.date.formatter,qStart:e};D.outer[D.outer.length-1]&&D.outer[D.outer.length-1].qStart===t.qStart||D.outer.push(t)}M++}return D.min=r,D.max=o,_h[[t,n,r,r,i]]=D,D}(n,e,d.min,l,u,"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)=>f(t,n)[a].map((t=>{let n;return n="start"===o?eh(t.start):"end"===o?eh(t.end):(eh(t.start)+eh(t.end))/2,{position:c(t.start),start:c(t.start),end:c(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:eh(t.start),end:eh(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const Vh=41000.2343433,Wh=/t+/i,Uh=16,Kh=60;const Gh={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 Yh(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 Xh="continuousPan";var Jh={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=Am,viewCache:o,viewState:i,definitionPath:a},s={}){const{engineFetcherFactory:l=xm,snapshotFetcherFactory:u=Mm,cacheFetcherFactory:c=Sm,cache:d={initial:{},merged:{}}}=s,f=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),p=u({layoutService:t,viewCache:o}),m=c({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(Nm,(r-n)*Lm))),g=t.meta.isSnapshot?p:f,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=km(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=>Tm(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=km(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=>Tm(e,t,n))).catch(h),fetchFromCache:(e,t)=>m.fetch(e,t).then((n=>Tm(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return ie({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return ie({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Dm(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=a(((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"),l=e.get("continuousMax");return s(((e,r)=>{const s=(e=>n.componentsFromPoint(e).filter((e=>e.key===i))[0])(e);if(s){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,s),u=o?1-i:i,{min:c,max:d}=t.get("zoom"),f=Math.abs(d-c),p=f-(r>0?Em:qm)*f,m=c+p*u,h=d-p*(1-u),g=m<a?a-m:0,y=h>l?h-l:0;t.set("zoom",{min:Math.max(m-y,a),max:Math.min(h+g,l)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o}){return{type:"Pan",key:"continuous:pan",options:{event:Xh,pointers:1,threshold:10,enable(r,o){return this.started===Xh||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{[`${Xh}start`](n){n.preventDefault(),this.started=Xh;const{min:o,max:i}=r.get("zoom");this[Xh]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},[`${Xh}move`](e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[Xh],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)})},[`${Xh}end`](e){e.preventDefault(),this.started=!1},[`${Xh}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:Im,timeAxis:Bm},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]=ie(!0,{},t[o],i)})),r}(t,Gh,n),{qAxis:i}=r,a=Pr(),s={instance:null,invert:!1},{min:l,max:u}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let c,d,f=[];const p=function(e){return Number.isNaN(+e)?NaN:a(e)};p.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(f=d.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=d.transform(i[n.minor].qTicks,{isMinor:!0});f=f.concat(e)}return"auto"===o&&(f=d.generate(e,n.isDayOrShorter)),f},p.invert=e=>a.invert(e),p.domain=e=>Array.isArray(e)?a.domain(e):a.domain(),p.range=e=>Array.isArray(e)?a.range(e):a.range(),p.norm=e=>(Yh(s,p),s.instance(e)),p.normInvert=e=>(Yh(s,p),s.instance.invert(e)),p.copy=()=>e(t,n),p.clamp=(e=!0)=>(a.clamp(e),a.clamp()),p.min=()=>Math.min(l,u),p.max=()=>Math.max(l,u),a.range(r.invert?[1,0]:[0,1]),a.domain([l,u]),s.invert=r.invert;const m=function(e){const t={},{measureText:n,fn:r,localeInfo:o}=e.formatter,i={second:{type:"second",pattern:"hh:mm:ss",width:Kh,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:Kh,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:Kh,formatter:void 0},year:{type:"year",pattern:"YYYY",width:Kh,formatter:void 0}};return o&&Wh.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(Vh)).width+Uh)})),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=Zm(t[0].data.start),o=Zm(t[n-1].data.start);return hh.count(r,o)/n>=1?i.date:ph.count(r,o)/n>0?i.minute:dh.count(r,o)/n>0?i.second:i.date},t}(r);return d=$h(a.copy(),r,m),c=Ym({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*m.getFormat("minute").width,cache:r.cache,scale:p}),p.data=()=>({fields:[{formatter:p.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:o(n,"fields.0.raw",(()=>({})))}]}),p.formatter=()=>m.getFormatFromTicks(f).formatter,p}}};const Zh={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var Qh={OPTIONS:Zh,DEFAULT:Zh.MINI_CHART};function eg({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,u=r[l?"width":"height"];let c=a.qArea.qTop/s*u,d=a.qArea.qHeight/s*u;if(d<i){const e=(i-d)/2;c=c-e+(Math.max(0,0-(c-e))-Math.max(0,c+d+e-u)),d=i}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:c,width:d}:{top:c,left:0,height:d}}})}}function tg({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 ng=e=>({miniChart:e===Qh.OPTIONS.MINI_CHART.value,bar:e===Qh.OPTIONS.BAR.value,none:e===Qh.OPTIONS.NONE.value}),rg=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return ng(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return ng(Qh.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return ng(!n&&(r||!r&&o)?Qh.OPTIONS.NONE.value:Qh.OPTIONS.MINI_CHART.value)};function og({layoutService:e,override:t}){const n=rg({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===Qh.OPTIONS.MINI_CHART.value,n.bar=t.value===Qh.OPTIONS.BAR.value,n.none=t.value===Qh.OPTIONS.NONE.value),n}function ig({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:o,viewCache:i,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:u=!1,deviceType:c}){const d=og({layoutService:e,override:l});if(d.none)return!1;const{orientation:f}=t.meta.major,p={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===f?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:f,rtl:s,isContinuous:e.meta.isContinuous,range:()=>tg({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(p.settings.style="slim",p.settings.size={area:"touch"===c?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(p.settings.size.thumb={min:4}));const m=a.getStyles();return m.color&&(p.style={standard:{thumb:{"border-color":m.color,opacity:.4},before:{background:m.color,opacity:.1},after:{background:m.color,opacity:.1}}}),e.meta.isDiscrete&&u&&(p.settings.injections=()=>[eg({layoutService:e,discrete:n})]),p}function ag({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i,rtl:a}){return s=>{const{x:l,y:u}=s.center,c=t.element.getBoundingClientRect(),d=t.component(e),f="horizontal"===i.meta.major.orientation,p=f?l-c.left-d.rect.computedInner.x:u-c.top-d.rect.computedInner.y,m=f?d.rect.computedInner.width:d.rect.computedInner.height,h=f&&a?m-p:p,g=Math.max(0,Math.min(h/m,1)),[y,v]=tg({layoutService:o,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*m:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function sg({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:u}=a.rect.computedInner,c="horizontal"===s?l:u,[d,f]=tg({layoutService:o,viewState:n,viewCache:r});return{size:c,thumbSize:(f-d)*c}}}function lg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const u=ag({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),c=sg({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=u(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=c(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const ug="data-scrollbar-handle";function cg({e:e}){return(e.srcEvent||e).srcElement.getAttribute(ug)||""}const dg="scrollbarResize",fg=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function pg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s}){const l=ag({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s});return{type:"Pan",key:`event:${dg}`,options:{event:dg,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[dg]=this[dg]||{},fg(t)&&cg({e:t})&&(this[dg].panningEvent=t.srcEvent),!!this[dg].panningEvent))}},events:{[`${dg}start`](n){n.preventDefault(),this[dg]=this[dg]||{},this[dg].panningEvent&&t.component(e).emit("dragStart",this[dg].panningEvent)},[`${dg}move`](n){if(n.preventDefault(),this[dg]=this[dg]||{},!this[dg].panningEvent)return;const i=r.get("zoom"),a=o.get("continuousMin"),s=o.get("continuousMax"),u=o.get("minimiumZoomSpan"),c=(s-a)*l(n).relative+a,d=cg({e:this[dg].panningEvent});let f="start"===d?Math.min(c,i.max):i.min,p="end"===d?Math.max(c,i.min):i.max;f===p&&(f-="start"===d?u:0,p+="end"===d?u:0),r.set("zoom",{min:f,max:p}),t.component(e).emit("render")},[`${dg}end`](n){n.preventDefault(),this[dg]=this[dg]||{},delete this[dg].panningEvent,t.component(e).emit("dragEnd")},[`${dg}cancel`](n){n.preventDefault(),this[dg]=this[dg]||{},delete this[dg].panningEvent,t.component(e).emit("dragEnd")}}}}const mg="scrollbarPan";function hg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const u=ag({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),c=sg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:`event:${mg}`,options:{event:mg,threshold:0,enable(r,o){return this[mg]=this[mg]||{},!(o&&!this[mg].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:{[`${mg}start`](n){n.preventDefault();const a=u(n);if(this[mg]=this[mg]||{},this[mg].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[mg].relative=a.relative,this[mg].zoom=r.get("zoom"),this[mg].zoom.span=this[mg].zoom.max-this[mg].zoom.min,this[mg].zoom.fullSpan=i-n}else if(a.onThumb)this[mg].offset=a.thumb;else{const e=c();this[mg].offset=a.beforeThumb?0:e.thumbSize}},[`${mg}move`](n){n.preventDefault();const a=u(n);if(this[mg]=this[mg]||{},i.meta.isContinuous){const e=a.relative-this[mg].relative,{fullSpan:t,span:n,min:i,max:s}=this[mg].zoom,l=o.get("continuousMin"),u=o.get("continuousMax");r.set("zoom",{min:Math.min(i+e*t,u-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[mg].offset||0),t=c(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${mg}end`](n){n.preventDefault(),this[mg]=this[mg]||{},this[mg].isPanning=!1,t.component(e).emit("unlockState")},[`${mg}cancel`](n){n.preventDefault(),this[mg]=this[mg]||{},this[mg].isPanning=!1,t.component(e).emit("unlockState")}}}}function gg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[lg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),pg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),hg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})]}function yg({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")}}}function vg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...gg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:yg({componentKey:e,chart:t,actions:n,layoutService:i})}}const bg={background:"rgba(0, 0, 0, 0.1)"},xg={top:-1,bottom:-1,width:6},Sg={width:2,background:"#595959"};var Mg={before:bg,after:bg,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:xg,endHandle:xg,startHandleBorder:Sg,endHandleBorder:Sg};const Cg={background:"rgba(0, 0, 0, 0.1)"},wg={top:-1,bottom:-1,width:6},kg={width:2,background:"#595959"};var Tg={before:Cg,after:Cg,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:wg,endHandle:wg,startHandleBorder:kg,endHandleBorder:kg};const qg={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},Eg={pointerEvents:"initial"},Ng={pointerEvents:"none"};const Lg="ew-resize",Og="default";function Dg(){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 Ag(){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?Lg:Og}function Ig(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 Rg(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function Pg(){const{size:e,start:t,end:n}=Dg.call(this);this.renderer.render(this.elements(this.h,Ig.call(this,e,t,n)))}function zg(){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?Tg:Mg;return{container:{...qg},before:{...qg,...n.before,...t.before},after:{...qg,...n.after,...t.after},thumb:{...qg,...n.thumb,...t.thumb},startHandle:{...qg,...Eg,...n.startHandle},endHandle:{...qg,...Eg,...n.endHandle},startHandleBorder:{...qg,...Ng,...n.startHandleBorder},endHandleBorder:{...qg,...Ng,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var jg={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(){Pg.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||!Rg.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=cg({e:e});t&&(this.state.hover[t]=!0),Ag.call(this),Pg.call(this)},leave(){this.state.locked||(this.state.hover.reset(),Ag.call(this),Pg.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=cg({e:e});t&&(this.state.drag[t]=!0),Ag.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),Ag.call(this),Pg.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}=Dg.call(this);return this.elements(e,Ig.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:u,injections:c}){const d={[o.end]:t-n},f={[o.start]:r},p={left:-3},m={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...u?f:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...u?d:f},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...u?h:p},class:"scrollbar--start-handle",[ug]:"start"},i?e("div",{style:{...s.startHandleBorder,...u?g:m}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...u?p:h},class:"scrollbar--end-handle",[ug]:"end"},a?e("div",{style:{...s.endHandleBorder,...u?m: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,...c])}({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:zg.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};var Fg={black:"#000",white:"#fff"};var Bg={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var _g={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Hg={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var $g={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Vg={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var Wg={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Ug={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 Kg(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 Gg=Object.freeze({__proto__:null,default:Kg}),Yg="$$material";var Xg=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}(),Jg="-ms-",Zg="-moz-",Qg="-webkit-",ey="comm",ty="rule",ny="decl",ry="@keyframes",oy=Math.abs,iy=String.fromCharCode,ay=Object.assign;function sy(e){return e.trim()}function ly(e,t,n){return e.replace(t,n)}function uy(e,t){return e.indexOf(t)}function cy(e,t){return 0|e.charCodeAt(t)}function dy(e,t,n){return e.slice(t,n)}function fy(e){return e.length}function py(e){return e.length}function my(e,t){return t.push(e),e}var hy=1,gy=1,yy=0,vy=0,by=0,xy="";function Sy(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:hy,column:gy,length:a,return:""}}function My(e,t){return ay(Sy("",null,null,"",null,null,0),e,{length:-e.length},t)}function Cy(){return by=vy>0?cy(xy,--vy):0,gy--,10===by&&(gy=1,hy--),by}function wy(){return by=vy<yy?cy(xy,vy++):0,gy++,10===by&&(gy=1,hy++),by}function ky(){return cy(xy,vy)}function Ty(){return vy}function qy(e,t){return dy(xy,e,t)}function Ey(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 Ny(e){return hy=gy=1,yy=fy(xy=e),vy=0,[]}function Ly(e){return xy="",e}function Oy(e){return sy(qy(vy-1,Iy(91===e?e+2:40===e?e+1:e)))}function Dy(e){for(;(by=ky())&&by<33;)wy();return Ey(e)>2||Ey(by)>3?"":" "}function Ay(e,t){for(;--t&&wy()&&!(by<48||by>102||by>57&&by<65||by>70&&by<97););return qy(e,Ty()+(t<6&&32==ky()&&32==wy()))}function Iy(e){for(;wy();)switch(by){case e:return vy;case 34:case 39:34!==e&&39!==e&&Iy(by);break;case 40:41===e&&Iy(e);break;case 92:wy()}return vy}function Ry(e,t){for(;wy()&&e+by!==57&&(e+by!==84||47!==ky()););return"/*"+qy(t,vy-1)+"*"+iy(47===e?e:wy())}function Py(e){for(;!Ey(ky());)wy();return qy(e,vy)}function zy(e){return Ly(jy("",null,null,null,[""],e=Ny(e),0,[0],e))}function jy(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,m=0,h=1,g=1,y=1,v=0,b="",x=o,S=i,M=r,C=b;g;)switch(m=v,v=wy()){case 40:if(108!=m&&58==cy(C,d-1)){-1!=uy(C+=ly(Oy(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=Oy(v);break;case 9:case 10:case 13:case 32:C+=Dy(m);break;case 92:C+=Ay(Ty()-1,7);continue;case 47:switch(ky()){case 42:case 47:my(By(Ry(wy(),Ty()),t,n),l);break;default:C+="/"}break;case 123*h:s[u++]=fy(C)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(C=ly(C,/\f/g,"")),p>0&&fy(C)-d&&my(p>32?_y(C+";",r,n,d-1):_y(ly(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(my(M=Fy(C,t,n,u,c,o,s,b,x=[],S=[],d),i),123===v)if(0===c)jy(C,t,M,M,x,i,d,s,S);else switch(99===f&&110===cy(C,3)?100:f){case 100:case 108:case 109:case 115:jy(e,M,M,r&&my(Fy(e,M,M,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:jy(C,M,M,M,[""],S,0,s,S)}}u=c=p=0,h=y=1,b=C="",d=a;break;case 58:d=1+fy(C),p=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Cy())continue;switch(C+=iy(v),v*h){case 38:y=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(fy(C)-1)*y,y=1;break;case 64:45===ky()&&(C+=Oy(wy())),f=ky(),c=d=fy(b=C+=Py(Ty())),v++;break;case 45:45===m&&2==fy(C)&&(h=0)}}return i}function Fy(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=py(f),m=0,h=0,g=0;m<r;++m)for(var y=0,v=dy(e,d+1,d=oy(h=a[m])),b=e;y<p;++y)(b=sy(h>0?f[y]+" "+v:ly(v,/&\f/g,f[y])))&&(l[g++]=b);return Sy(e,t,n,0===o?ty:s,l,u,c)}function By(e,t,n){return Sy(e,t,n,ey,iy(by),dy(e,2,-2),0)}function _y(e,t,n,r){return Sy(e,t,n,ny,dy(e,0,r),dy(e,r+1,-1),r)}function Hy(e,t){for(var n="",r=py(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function $y(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ny:return e.return=e.return||e.value;case ey:return"";case ry:return e.return=e.value+"{"+Hy(e.children,r)+"}";case ty:e.value=e.props.join(",")}return fy(n=Hy(e.children,r))?e.return=e.value+"{"+n+"}":""}function Vy(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Wy=function(e,t,n){for(var r=0,o=0;r=o,o=ky(),38===r&&12===o&&(t[n]=1),!Ey(o);)wy();return qy(e,vy)},Uy=function(e,t){return Ly(function(e,t){var n=-1,r=44;do{switch(Ey(r)){case 0:38===r&&12===ky()&&(t[n]=1),e[n]+=Wy(vy-1,t,n);break;case 2:e[n]+=Oy(r);break;case 4:if(44===r){e[++n]=58===ky()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=iy(r)}}while(r=wy());return e}(Ny(e),t))},Ky=new WeakMap,Gy=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)||Ky.get(n))&&!r){Ky.set(e,!0);for(var o=[],i=Uy(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Yy=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Xy(e,t){switch(function(e,t){return 45^cy(e,0)?(((t<<2^cy(e,0))<<2^cy(e,1))<<2^cy(e,2))<<2^cy(e,3):0}(e,t)){case 5103:return Qg+"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 Qg+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qg+e+Zg+e+Jg+e+e;case 6828:case 4268:return Qg+e+Jg+e+e;case 6165:return Qg+e+Jg+"flex-"+e+e;case 5187:return Qg+e+ly(e,/(\w+).+(:[^]+)/,Qg+"box-$1$2"+Jg+"flex-$1$2")+e;case 5443:return Qg+e+Jg+"flex-item-"+ly(e,/flex-|-self/,"")+e;case 4675:return Qg+e+Jg+"flex-line-pack"+ly(e,/align-content|flex-|-self/,"")+e;case 5548:return Qg+e+Jg+ly(e,"shrink","negative")+e;case 5292:return Qg+e+Jg+ly(e,"basis","preferred-size")+e;case 6060:return Qg+"box-"+ly(e,"-grow","")+Qg+e+Jg+ly(e,"grow","positive")+e;case 4554:return Qg+ly(e,/([^-])(transform)/g,"$1"+Qg+"$2")+e;case 6187:return ly(ly(ly(e,/(zoom-|grab)/,Qg+"$1"),/(image-set)/,Qg+"$1"),e,"")+e;case 5495:case 3959:return ly(e,/(image-set\([^]*)/,Qg+"$1$`$1");case 4968:return ly(ly(e,/(.+:)(flex-)?(.*)/,Qg+"box-pack:$3"+Jg+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qg+e+e;case 4095:case 3583:case 4068:case 2532:return ly(e,/(.+)-inline(.+)/,Qg+"$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(fy(e)-1-t>6)switch(cy(e,t+1)){case 109:if(45!==cy(e,t+4))break;case 102:return ly(e,/(.+:)(.+)-([^]+)/,"$1"+Qg+"$2-$3$1"+Zg+(108==cy(e,t+3)?"$3":"$2-$3"))+e;case 115:return~uy(e,"stretch")?Xy(ly(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==cy(e,t+1))break;case 6444:switch(cy(e,fy(e)-3-(~uy(e,"!important")&&10))){case 107:return ly(e,":",":"+Qg)+e;case 101:return ly(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qg+(45===cy(e,14)?"inline-":"")+"box$3$1"+Qg+"$2$3$1"+Jg+"$2box$3")+e}break;case 5936:switch(cy(e,t+11)){case 114:return Qg+e+Jg+ly(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qg+e+Jg+ly(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qg+e+Jg+ly(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qg+e+Jg+e+e}return e}var Jy=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ny:e.return=Xy(e.value,e.length);break;case ry:return Hy([My(e,{value:ly(e.value,"@","@"+Qg)})],r);case ty: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 Hy([My(e,{props:[ly(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Hy([My(e,{props:[ly(t,/:(plac\w+)/,":"+Qg+"input-$1")]}),My(e,{props:[ly(t,/:(plac\w+)/,":-moz-$1")]}),My(e,{props:[ly(t,/:(plac\w+)/,Jg+"input-$1")]})],r)}return""}))}}],Zy=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||Jy,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,u,c=[$y,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=py(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Gy,Yy].concat(i,c));o=function(e,t,n,r){l=n,function(e){Hy(zy(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Xg({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 f.sheet.hydrate(s),f};function Qy(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var ev=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},tv=function(e,t,n){ev(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 nv={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},rv=!1,ov=/[A-Z]|^ms/g,iv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,av=function(e){return 45===e.charCodeAt(1)},sv=function(e){return null!=e&&"boolean"!=typeof e},lv=Vy((function(e){return av(e)?e:e.replace(ov,"-$&").toLowerCase()})),uv=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(iv,(function(e,t,n){return fv={name:t,styles:n,next:fv},t}))}return 1===nv[e]||av(e)||"number"!=typeof t||0===t?t:t+"px"},cv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function dv(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 fv={name:o.name,styles:o.styles,next:fv},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)fv={name:a.name,styles:a.styles,next:fv},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+=dv(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]+"}":sv(s)&&(r+=lv(i)+":"+uv(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&rv)throw new Error(cv);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=dv(e,t,a);switch(i){case"animation":case"animationName":r+=lv(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)sv(a[u])&&(r+=lv(i)+":"+uv(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=fv,l=n(e);return fv=s,dv(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var fv,pv=/label:\s*([^\s;{]+)\s*(;|$)/g;function mv(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="";fv=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=dv(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=dv(n,t,e[a]),r)o+=i[a]}pv.lastIndex=0;for(var s,l="";null!==(s=pv.exec(o));)l+="-"+s[1];var u=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:u,styles:o,next:fv}}var hv,gv,yv=!!x.useInsertionEffect&&x.useInsertionEffect,vv=yv||function(e){return e()},bv=yv||x.useLayoutEffect,xv=x.createContext("undefined"!=typeof HTMLElement?Zy({key:"css"}):null),Sv=xv.Provider,Mv=function(e){return w((function(t,n){var r=k(xv);return e(t,r,n)}))},Cv=x.createContext({}),wv={}.hasOwnProperty,kv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tv=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ev(t,n,r),vv((function(){return tv(t,n,r)})),null},qv=Mv((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[kv],i=[r],a="";"string"==typeof e.className?a=Qy(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=mv(i,void 0,x.useContext(Cv));a+=t.key+"-"+s.name;var l={};for(var u in e)wv.call(e,u)&&"css"!==u&&u!==kv&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),x.createElement(x.Fragment,null,x.createElement(Tv,{cache:t,serialized:s,isStringTag:"string"==typeof o}),x.createElement(o,l))})),Ev=qv,Nv=function(e,t){var n=arguments;if(null==t||!wv.call(t,"css"))return x.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Ev,o[1]=function(e,t){var n={};for(var r in t)wv.call(t,r)&&(n[r]=t[r]);return n[kv]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return x.createElement.apply(null,o)};hv=Nv||(Nv={}),gv||(gv=hv.JSX||(hv.JSX={}));var Lv=Mv((function(e,t){var n=mv([e.styles],void 0,x.useContext(Cv)),r=x.useRef();return bv((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]),bv((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&tv(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 Ov(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mv(t)}function Dv(){var e=Ov.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 Av=/^((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)-.*))$/,Iv=Vy((function(e){return Av.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Rv=function(e){return"theme"!==e},Pv=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Iv:Rv},zv=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},jv=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ev(t,n,r),vv((function(){return tv(t,n,r)})),null},Fv=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=zv(t,n,i),l=s||Pv(a),u=!l("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,m=1;m<p;m++)d.push(c[m],f[m])}var h=Mv((function(e,t,n){var r=u&&e.as||a,i="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=x.useContext(Cv)}"string"==typeof e.className?i=Qy(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var m=mv(d.concat(c),t.registered,f);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=u&&void 0===s?Pv(r):l,g={};for(var y in e)u&&"as"===y||h(y)&&(g[y]=e[y]);return g.className=i,n&&(g.ref=n),x.createElement(x.Fragment,null,x.createElement(jv,{cache:t,serialized:m,isStringTag:"string"==typeof r}),x.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,ol({},n,r,{shouldForwardProp:zv(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){Fv[e]=Fv(e)}));var Bv,_v,Hv={exports:{}},$v={};var Vv=(_v||(_v=1,Hv.exports=function(){if(Bv)return $v;Bv=1;var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return $v.Fragment=n,$v.jsx=a,$v.jsxs=a,$v}()),Hv.exports);let Wv;"object"==typeof document&&(Wv=Zy({key:"css",prepend:!0}));var Uv=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 Vv.jsx(Lv,{styles:r})}
|
|
15
15
|
/**
|
|
16
16
|
* @mui/styled-engine v5.15.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&&Wv?Vv.jsx(Sv,{value:Wv,children:n}):n},ThemeContext:Cv,css:Ov,default:function(e,t){return Fv(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:Dv});function Kv(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 Gv(e){if(!Kv(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Gv(e[n])})),t}function Yv(e,t,n={clone:!0}){const r=n.clone?ol({},e):e;return Kv(e)&&Kv(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Kv(t[o])&&o in e&&Kv(e[o])?r[o]=Yv(e[o],t[o],n):n.clone?r[o]=Kv(t[o])?Gv(t[o]):t[o]:r[o]=t[o])})),r}var Xv=Object.freeze({__proto__:null,default:Yv,isPlainObject:Kv});const Jv=["values","unit","step"],Zv=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)=>ol({},e,{[t.key]:t.val})),{})};function Qv(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=gl(e,Jv),i=Zv(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 u(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 ol({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(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]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var eb={borderRadius:4};function tb(e,t){return t?Yv(e,t,{clone:!1}):e}const nb={xs:0,sm:600,md:900,lg:1200,xl:1536},rb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${nb[e]}px)`};function ob(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||rb;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||rb;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||nb).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function ib(e){if("string"!=typeof e)throw new Error(Kg(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ab=Object.freeze({__proto__:null,default:ib});function sb(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 lb(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:sb(e,n)||r,t&&(o=t(o,r,e)),o}function ub(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=sb(e.theme,r)||{};return ob(e,i,(e=>{let r=lb(a,o,e);return e===r&&"string"==typeof e&&(r=lb(a,o,`${t}${"default"===e?"":ib(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const cb={m:"margin",p:"padding"},db={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pb=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!fb[e])return[e];e=fb[e]}const[t,n]=e.split(""),r=cb[t],o=db[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),mb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function gb(e,t,n,r){var o;const i=null!=(o=sb(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 yb(e){return gb(e,"spacing",8)}function vb(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 bb(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=vb(t,n),e)),{})}(pb(n),r);return ob(e,e[n],o)}function xb(e,t){const n=yb(e.theme);return Object.keys(e).map((r=>bb(e,t,r,n))).reduce(tb,{})}function Sb(e){return xb(e,mb)}function Mb(e){return xb(e,hb)}function Cb(...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]?tb(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function wb(e){return"number"!=typeof e?e:`${e}px solid`}function kb(e,t){return ub({prop:e,themeKey:"borders",transform:t})}Sb.propTypes={},Sb.filterProps=mb,Mb.propTypes={},Mb.filterProps=hb;const Tb=kb("border",wb),qb=kb("borderTop",wb),Eb=kb("borderRight",wb),Lb=kb("borderBottom",wb),Nb=kb("borderLeft",wb),Ob=kb("borderColor"),Db=kb("borderTopColor"),Ab=kb("borderRightColor"),Ib=kb("borderBottomColor"),Rb=kb("borderLeftColor"),Pb=kb("outline",wb),zb=kb("outlineColor"),jb=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=gb(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:vb(t,e)});return ob(e,e.borderRadius,n)}return null};jb.propTypes={},jb.filterProps=["borderRadius"],Cb(Tb,qb,Eb,Lb,Nb,Ob,Db,Ab,Ib,Rb,jb,Pb,zb);const Fb=e=>{if(void 0!==e.gap&&null!==e.gap){const t=gb(e.theme,"spacing",8),n=e=>({gap:vb(t,e)});return ob(e,e.gap,n)}return null};Fb.propTypes={},Fb.filterProps=["gap"];const Bb=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=gb(e.theme,"spacing",8),n=e=>({columnGap:vb(t,e)});return ob(e,e.columnGap,n)}return null};Bb.propTypes={},Bb.filterProps=["columnGap"];const _b=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=gb(e.theme,"spacing",8),n=e=>({rowGap:vb(t,e)});return ob(e,e.rowGap,n)}return null};_b.propTypes={},_b.filterProps=["rowGap"];function Hb(e,t){return"grey"===t?t:e}Cb(Fb,Bb,_b,ub({prop:"gridColumn"}),ub({prop:"gridRow"}),ub({prop:"gridAutoFlow"}),ub({prop:"gridAutoColumns"}),ub({prop:"gridAutoRows"}),ub({prop:"gridTemplateColumns"}),ub({prop:"gridTemplateRows"}),ub({prop:"gridTemplateAreas"}),ub({prop:"gridArea"}));function $b(e){return e<=1&&0!==e?100*e+"%":e}Cb(ub({prop:"color",themeKey:"palette",transform:Hb}),ub({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hb}),ub({prop:"backgroundColor",themeKey:"palette",transform:Hb}));const Vb=ub({prop:"width",transform:$b}),Wb=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])||nb[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:$b(t)}};return ob(e,e.maxWidth,t)}return null};Wb.filterProps=["maxWidth"];const Ub=ub({prop:"minWidth",transform:$b}),Kb=ub({prop:"height",transform:$b}),Gb=ub({prop:"maxHeight",transform:$b}),Yb=ub({prop:"minHeight",transform:$b});ub({prop:"size",cssProperty:"width",transform:$b}),ub({prop:"size",cssProperty:"height",transform:$b});Cb(Vb,Wb,Ub,Kb,Gb,Yb,ub({prop:"boxSizing"}));var Xb={border:{themeKey:"borders",transform:wb},borderTop:{themeKey:"borders",transform:wb},borderRight:{themeKey:"borders",transform:wb},borderBottom:{themeKey:"borders",transform:wb},borderLeft:{themeKey:"borders",transform:wb},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wb},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jb},color:{themeKey:"palette",transform:Hb},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hb},backgroundColor:{themeKey:"palette",transform:Hb},p:{style:Mb},pt:{style:Mb},pr:{style:Mb},pb:{style:Mb},pl:{style:Mb},px:{style:Mb},py:{style:Mb},padding:{style:Mb},paddingTop:{style:Mb},paddingRight:{style:Mb},paddingBottom:{style:Mb},paddingLeft:{style:Mb},paddingX:{style:Mb},paddingY:{style:Mb},paddingInline:{style:Mb},paddingInlineStart:{style:Mb},paddingInlineEnd:{style:Mb},paddingBlock:{style:Mb},paddingBlockStart:{style:Mb},paddingBlockEnd:{style:Mb},m:{style:Sb},mt:{style:Sb},mr:{style:Sb},mb:{style:Sb},ml:{style:Sb},mx:{style:Sb},my:{style:Sb},margin:{style:Sb},marginTop:{style:Sb},marginRight:{style:Sb},marginBottom:{style:Sb},marginLeft:{style:Sb},marginX:{style:Sb},marginY:{style:Sb},marginInline:{style:Sb},marginInlineStart:{style:Sb},marginInlineEnd:{style:Sb},marginBlock:{style:Sb},marginBlockStart:{style:Sb},marginBlockEnd:{style:Sb},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:Fb},rowGap:{style:_b},columnGap:{style:Bb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$b},maxWidth:{style:Wb},minWidth:{transform:$b},height:{transform:$b},maxHeight:{transform:$b},minHeight:{transform:$b},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Jb(){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:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=sb(n,s)||{};if(u)return u(o);return ob(o,t,(t=>{let n=lb(c,l,t);return t===n&&"string"==typeof t&&(n=lb(c,l,`${e}${"default"===t?"":ib(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:Xb;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],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[n])l=tb(l,e(n,o,i,a));else{const e=ob({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=tb(l,e):l[n]=t({sx:o,theme:i})}else l=tb(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 Zb=Jb();Zb.filterProps=["sx"];var Qb=Zb;function ex(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const tx=["breakpoints","palette","spacing","shape"];function nx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=gl(e,tx),s=Qv(n),l=function(e=8){if(e.mui)return e;const t=yb({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 u=Yv({breakpoints:s,direction:"ltr",components:{},palette:ol({mode:"light"},r),spacing:l,shape:ol({},eb,i)},a);return u.applyStyles=ex,u=t.reduce(((e,t)=>Yv(e,t)),u),u.unstable_sxConfig=ol({},Xb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qb({sx:e,theme:this})},u}var rx=Object.freeze({__proto__:null,default:nx,private_createBreakpoints:Qv,unstable_applyStyles:ex});function ox(e=null){const t=x.useContext(Cv);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ix=nx();const ax=["sx"];var sx=Object.freeze({__proto__:null,default:Qb,extendSxProp:function(e){const{sx:t}=e,n=gl(e,ax),{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:Xb;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 Kv(n)?ol({},r,n):r}:ol({},r,t),ol({},o,{sx:i})},unstable_createStyleFunctionSx:Jb,unstable_defaultSxConfig:Xb});const lx=e=>e;var ux=(()=>{let e=lx;return{configure(t){e=t},generate:t=>e(t),reset(){e=lx}}})();function cx(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=cx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dx(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=cx(e))&&(r&&(r+=" "),r+=t);return r}const fx={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 px(e,t,n="Mui"){const r=fx[t];return r?`${n}-${r}`:`${ux.generate(e)}-${t}`}function mx(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=px(e,t,n)})),r}var hx,gx,yx={exports:{}},vx={};var bx=(gx||(gx=1,yx.exports=function(){if(hx)return vx;hx=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case u:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),vx.ContextConsumer=s,vx.ContextProvider=a,vx.Element=t,vx.ForwardRef=u,vx.Fragment=r,vx.Lazy=p,vx.Memo=f,vx.Portal=n,vx.Profiler=i,vx.StrictMode=o,vx.Suspense=c,vx.SuspenseList=d,vx.isAsyncMode=function(){return!1},vx.isConcurrentMode=function(){return!1},vx.isContextConsumer=function(e){return h(e)===s},vx.isContextProvider=function(e){return h(e)===a},vx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vx.isForwardRef=function(e){return h(e)===u},vx.isFragment=function(e){return h(e)===r},vx.isLazy=function(e){return h(e)===p},vx.isMemo=function(e){return h(e)===f},vx.isPortal=function(e){return h(e)===n},vx.isProfiler=function(e){return h(e)===i},vx.isStrictMode=function(e){return h(e)===o},vx.isSuspense=function(e){return h(e)===c},vx.isSuspenseList=function(e){return h(e)===d},vx.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},vx.typeOf=h,vx}()),yx.exports);const xx=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Sx(e){const t=`${e}`.match(xx);return t&&t[1]||""}function Mx(e,t=""){return e.displayName||e.name||Sx(e)||t}function Cx(e,t,n){const r=Mx(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var wx=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Mx(e,"Component");if("object"==typeof e)switch(e.$$typeof){case bx.ForwardRef:return Cx(e,e.render,"ForwardRef");case bx.Memo:return Cx(e,e.type,"memo");default:return}}},getFunctionName:Sx});function kx(e,t){const n=ol({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ol({},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]=ol({},i),Object.keys(o).forEach((e=>{n[r][e]=kx(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Tx({props:e,name:t,defaultTheme:n,themeId:r}){let o=function(e=ix){return ox(e)}(n);r&&(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?kx(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}var qx="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;var Ex=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 Lx(e){const t=x.useRef(e);return qx((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function Nx(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const Ox={};const Dx=[];class Ax{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ax}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Ix(){const e=function(e,t){const n=x.useRef(Ox);return n.current===Ox&&(n.current=e(t)),n}(Ax.create).current;var t;return t=e.disposeEffect,x.useEffect(t,Dx),e}let Rx=!0,Px=!1;const zx=new Ax,jx={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 Fx(e){e.metaKey||e.altKey||e.ctrlKey||(Rx=!0)}function Bx(){Rx=!1}function _x(){"hidden"===this.visibilityState&&Px&&(Rx=!0)}function Hx(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Rx||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!jx[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function $x(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Fx,!0),t.addEventListener("mousedown",Bx,!0),t.addEventListener("pointerdown",Bx,!0),t.addEventListener("touchstart",Bx,!0),t.addEventListener("visibilitychange",_x,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Hx(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Px=!0,zx.start(100,(()=>{Px=!1})),t.current=!1,!0)},ref:e}}function Vx(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}var Wx=x.createContext(null);function Ux(){return x.useContext(Wx)}var Kx="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Gx(e){const{children:t,theme:n}=e,r=Ux(),o=x.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ol({},e,t)}(r,n);return null!=e&&(e[Kx]=null!==r),e}),[n,r]);return Vv.jsx(Wx.Provider,{value:o,children:t})}const Yx=["value"],Xx=x.createContext();function Jx(e){let{value:t}=e,n=gl(e,Yx);return Vv.jsx(Xx.Provider,ol({value:null==t||t},n))}const Zx={};function Qx(e,t,n,r=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?ol({},t,{[e]:i}):i;return r?()=>a:a}return ol({},t,e?{[e]:n}:n)}),[e,t,n,r])}function eS(e){const{children:t,theme:n,themeId:r}=e,o=ox(Zx),i=Ux()||Zx,a=Qx(r,o,n),s=Qx(r,i,n,!0),l="rtl"===a.direction;return Vv.jsx(Gx,{theme:s,children:Vv.jsx(Cv.Provider,{value:a,children:Vv.jsx(Jx,{value:l,children:t})})})}var tS,nS={},rS={exports:{}};function oS(){return tS||(tS=1,(e=rS).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),rS.exports;var e}var iS,aS=te(Gg),sS=te(Ex);function lS(){if(iS)return nS;iS=1;var e=oS();Object.defineProperty(nS,"__esModule",{value:!0}),nS.alpha=c,nS.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),u=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:u})},nS.colorChannel=void 0,nS.darken=d,nS.decomposeColor=i,nS.emphasize=function(e,t=.15){return u(e)>.5?d(e,t):f(e,t)},nS.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},nS.getLuminance=u,nS.hexToRgb=o,nS.hslToRgb=l,nS.lighten=f,nS.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},nS.private_safeColorChannel=void 0,nS.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},nS.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},nS.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},nS.recomposeColor=s,nS.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(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 t=e(aS),n=e(sS);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(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 i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};nS.colorChannel=a;function s(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 l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(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 c(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(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 s(e)}function f(e,t){if(e=i(e),t=r(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 s(e)}return nS.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},nS}var uS=lS();const cS=["mode","contrastThreshold","tonalOffset"],dS={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:Fg.white,default:Fg.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}},fS={text:{primary:Fg.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:Fg.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 pS(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=uS.lighten(e.main,o):"dark"===t&&(e.dark=uS.darken(e.main,i)))}function mS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=gl(e,cS),i=e.primary||function(e="light"){return"dark"===e?{main:Hg[200],light:Hg[50],dark:Hg[400]}:{main:Hg[700],light:Hg[400],dark:Hg[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:_g[200],light:_g[50],dark:_g[400]}:{main:_g[500],light:_g[300],dark:_g[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Bg[500],light:Bg[300],dark:Bg[700]}:{main:Bg[700],light:Bg[400],dark:Bg[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:$g[400],light:$g[300],dark:$g[700]}:{main:$g[700],light:$g[500],dark:$g[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Vg[400],light:Vg[300],dark:Vg[700]}:{main:Vg[800],light:Vg[500],dark:Vg[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Wg[400],light:Wg[300],dark:Wg[700]}:{main:"#ed6c02",light:Wg[500],dark:Wg[900]}}(t);function d(e){return uS.getContrastRatio(e,fS.text.primary)>=n?fS.text.primary:dS.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ol({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Kg(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Kg(12,t?` (${t})`:"",JSON.stringify(e.main)));return pS(e,"light",o,r),pS(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:fS,light:dS};return Yv(ol({common:ol({},Fg),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:Ug,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const hS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const gS={textTransform:"uppercase"},yS='"Roboto", "Helvetica", "Arial", sans-serif';function vS(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=yS,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=gl(n,hS),p=o/14,m=d||(e=>e/u*p+"rem"),h=(e,t,n,o,i)=>{return ol({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===yS?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);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,gS),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,gS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yv(ol({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function bS(...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(",")}var xS=["none",bS(0,2,1,-1,0,1,1,0,0,1,3,0),bS(0,3,1,-2,0,2,2,0,0,1,5,0),bS(0,3,3,-2,0,3,4,0,0,1,8,0),bS(0,2,4,-1,0,4,5,0,0,1,10,0),bS(0,3,5,-1,0,5,8,0,0,1,14,0),bS(0,3,5,-1,0,6,10,0,0,1,18,0),bS(0,4,5,-2,0,7,10,1,0,2,16,1),bS(0,5,5,-3,0,8,10,1,0,3,14,2),bS(0,5,6,-3,0,9,12,1,0,3,16,2),bS(0,6,6,-3,0,10,14,1,0,4,18,3),bS(0,6,7,-4,0,11,15,1,0,4,20,3),bS(0,7,8,-4,0,12,17,2,0,5,22,4),bS(0,7,8,-4,0,13,19,2,0,5,24,4),bS(0,7,9,-4,0,14,21,2,0,5,26,4),bS(0,8,9,-5,0,15,22,2,0,6,28,5),bS(0,8,10,-5,0,16,24,2,0,6,30,5),bS(0,8,11,-5,0,17,26,2,0,6,32,5),bS(0,9,11,-5,0,18,28,2,0,7,34,6),bS(0,9,12,-6,0,19,29,2,0,7,36,6),bS(0,10,13,-6,0,20,31,3,0,8,38,7),bS(0,10,13,-6,0,21,33,3,0,8,40,7),bS(0,10,14,-6,0,22,35,3,0,8,42,7),bS(0,11,14,-7,0,23,36,3,0,9,44,8),bS(0,11,15,-7,0,24,38,3,0,9,46,8)];const SS=["duration","easing","delay"],MS={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)"},CS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wS(e){return`${Math.round(e)}ms`}function kS(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function TS(e){const t=ol({},MS,e.easing),n=ol({},CS,e.duration);return ol({getAutoHeightDuration:kS,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return gl(r,SS),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:wS(o)} ${i} ${"string"==typeof a?a:wS(a)}`)).join(",")}},e,{easing:t,duration:n})}var qS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ES=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function LS(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=gl(e,ES);if(e.vars)throw new Error(Kg(18));const s=mS(r),l=nx(e);let u=Yv(l,{mixins:(c=l.breakpoints,d=n,ol({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:xS.slice(),typography:vS(s,i),transitions:TS(o),zIndex:ol({},qS)});var c,d;return u=Yv(u,a),u=t.reduce(((e,t)=>Yv(e,t)),u),u.unstable_sxConfig=ol({},Xb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qb({sx:e,theme:this})},u}var NS=LS();function OS({props:e,name:t}){return Tx({props:e,name:t,defaultTheme:NS,themeId:Yg})}var DS,AS={},IS={exports:{}};var RS,PS={exports:{}};var zS,jS=te(Uv),FS=te(Xv),BS=te(ab),_S=te(wx),HS=te(rx),$S=te(sx);function VS(){if(zS)return AS;zS=1;var e=oS();Object.defineProperty(AS,"__esModule",{value:!0}),AS.default=function(e={}){const{themeId:t,defaultTheme:a=p,rootShouldForwardProp:l=f,slotShouldForwardProp:u=f}=e,d=e=>(0,s.default)((0,n.default)({},e,{theme:h((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return d.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:v,skipVariantsResolver:b,skipSx:x,overridesResolver:S=g(m(v))}=s,M=(0,r.default)(s,c),C=void 0!==b?b:v&&"Root"!==v&&"root"!==v||!1,w=x||!1;let k=f;"Root"===v||"root"===v?k=l:v?k=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const T=(0,o.default)(e,(0,n.default)({shouldForwardProp:k,label:undefined},M)),q=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>y(e,(0,n.default)({},r,{theme:h({theme:r.theme,defaultTheme:a,themeId:t})})):e,E=(r,...o)=>{let i=q(r);const s=o?o.map(q):[];p&&S&&s.push((e=>{const r=h((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[p]||!r.components[p].styleOverrides)return null;const o=r.components[p].styleOverrides,i={};return Object.entries(o).forEach((([t,o])=>{i[t]=y(o,(0,n.default)({},e,{theme:r}))})),S(e,i)})),p&&!C&&s.push((e=>{var r;const o=h((0,n.default)({},e,{defaultTheme:a,themeId:t}));return y({variants:null==o||null==(r=o.components)||null==(r=r[p])?void 0:r.variants},(0,n.default)({},e,{theme:o}))})),w||s.push(d);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=T(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return T.withConfig&&(E.withConfig=T.withConfig),E}},AS.shouldForwardProp=f,AS.systemDefaultTheme=void 0;var t,n=e((DS||(DS=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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(IS)),IS.exports)),r=e((RS||(RS=1,(t=PS).exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},t.exports.__esModule=!0,t.exports.default=t.exports),PS.exports)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(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}(jS),i=FS;e(BS),e(_S);var a=e(HS),s=e($S);const l=["ownerState"],u=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const p=AS.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function h({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function y(e,t){let{ownerState:o}=t,i=(0,r.default)(t,l);const a="function"==typeof e?e((0,n.default)({ownerState:o},i)):e;if(Array.isArray(a))return a.flatMap((e=>y(e,(0,n.default)({ownerState:o},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,r.default)(a,u);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,n.default)({ownerState:o},i,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&i[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.default)({ownerState:o},i,o)):e.style))})),t}return a}return AS}var WS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var US=ee(VS())({themeId:Yg,defaultTheme:NS,rootShouldForwardProp:WS});const KS=["theme"];function GS(e){let{theme:t}=e,n=gl(e,KS);const r=t[Yg];return Vv.jsx(eS,ol({},n,{themeId:r?Yg:void 0,theme:r||t}))}function YS(e){return px("MuiSvgIcon",e)}mx("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const XS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],JS=US("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ib(n.color)}`],t[`fontSize${ib(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,d,f,p,m;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==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),ZS=x.forwardRef((function(e,t){const n=OS({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,f=gl(n,XS),p=x.isValidElement(r)&&"svg"===r.type,m=ol({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Vx({root:["root","inherit"!==t&&`color${ib(t)}`,`fontSize${ib(n)}`]},YS,r)})(m);return Vv.jsxs(JS,ol({as:a,className:dx(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,f,p&&r.props,{ownerState:m,children:[p?r.props.children:r,c?Vv.jsx("title",{children:c}):null]}))}));ZS.muiName="SvgIcon";var QS=ZS;var eM=mx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const tM=["center","classes","className"];let nM,rM,oM,iM,aM=e=>e;const sM=Dv(nM||(nM=aM`
|
|
21
|
+
*/,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&Wv?Vv.jsx(Sv,{value:Wv,children:n}):n},ThemeContext:Cv,css:Ov,default:function(e,t){return Fv(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:Dv});function Kv(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 Gv(e){if(!Kv(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Gv(e[n])})),t}function Yv(e,t,n={clone:!0}){const r=n.clone?ol({},e):e;return Kv(e)&&Kv(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Kv(t[o])&&o in e&&Kv(e[o])?r[o]=Yv(e[o],t[o],n):n.clone?r[o]=Kv(t[o])?Gv(t[o]):t[o]:r[o]=t[o])})),r}var Xv=Object.freeze({__proto__:null,default:Yv,isPlainObject:Kv});const Jv=["values","unit","step"],Zv=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)=>ol({},e,{[t.key]:t.val})),{})};function Qv(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=gl(e,Jv),i=Zv(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 u(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 ol({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(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]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var eb={borderRadius:4};function tb(e,t){return t?Yv(e,t,{clone:!1}):e}const nb={xs:0,sm:600,md:900,lg:1200,xl:1536},rb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${nb[e]}px)`};function ob(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||rb;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||rb;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||nb).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function ib(e){if("string"!=typeof e)throw new Error(Kg(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ab=Object.freeze({__proto__:null,default:ib});function sb(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 lb(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:sb(e,n)||r,t&&(o=t(o,r,e)),o}function ub(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=sb(e.theme,r)||{};return ob(e,i,(e=>{let r=lb(a,o,e);return e===r&&"string"==typeof e&&(r=lb(a,o,`${t}${"default"===e?"":ib(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const cb={m:"margin",p:"padding"},db={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pb=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!fb[e])return[e];e=fb[e]}const[t,n]=e.split(""),r=cb[t],o=db[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),mb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function gb(e,t,n,r){var o;const i=null!=(o=sb(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 yb(e){return gb(e,"spacing",8)}function vb(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 bb(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=vb(t,n),e)),{})}(pb(n),r);return ob(e,e[n],o)}function xb(e,t){const n=yb(e.theme);return Object.keys(e).map((r=>bb(e,t,r,n))).reduce(tb,{})}function Sb(e){return xb(e,mb)}function Mb(e){return xb(e,hb)}function Cb(...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]?tb(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function wb(e){return"number"!=typeof e?e:`${e}px solid`}function kb(e,t){return ub({prop:e,themeKey:"borders",transform:t})}Sb.propTypes={},Sb.filterProps=mb,Mb.propTypes={},Mb.filterProps=hb;const Tb=kb("border",wb),qb=kb("borderTop",wb),Eb=kb("borderRight",wb),Nb=kb("borderBottom",wb),Lb=kb("borderLeft",wb),Ob=kb("borderColor"),Db=kb("borderTopColor"),Ab=kb("borderRightColor"),Ib=kb("borderBottomColor"),Rb=kb("borderLeftColor"),Pb=kb("outline",wb),zb=kb("outlineColor"),jb=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=gb(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:vb(t,e)});return ob(e,e.borderRadius,n)}return null};jb.propTypes={},jb.filterProps=["borderRadius"],Cb(Tb,qb,Eb,Nb,Lb,Ob,Db,Ab,Ib,Rb,jb,Pb,zb);const Fb=e=>{if(void 0!==e.gap&&null!==e.gap){const t=gb(e.theme,"spacing",8),n=e=>({gap:vb(t,e)});return ob(e,e.gap,n)}return null};Fb.propTypes={},Fb.filterProps=["gap"];const Bb=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=gb(e.theme,"spacing",8),n=e=>({columnGap:vb(t,e)});return ob(e,e.columnGap,n)}return null};Bb.propTypes={},Bb.filterProps=["columnGap"];const _b=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=gb(e.theme,"spacing",8),n=e=>({rowGap:vb(t,e)});return ob(e,e.rowGap,n)}return null};_b.propTypes={},_b.filterProps=["rowGap"];function Hb(e,t){return"grey"===t?t:e}Cb(Fb,Bb,_b,ub({prop:"gridColumn"}),ub({prop:"gridRow"}),ub({prop:"gridAutoFlow"}),ub({prop:"gridAutoColumns"}),ub({prop:"gridAutoRows"}),ub({prop:"gridTemplateColumns"}),ub({prop:"gridTemplateRows"}),ub({prop:"gridTemplateAreas"}),ub({prop:"gridArea"}));function $b(e){return e<=1&&0!==e?100*e+"%":e}Cb(ub({prop:"color",themeKey:"palette",transform:Hb}),ub({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hb}),ub({prop:"backgroundColor",themeKey:"palette",transform:Hb}));const Vb=ub({prop:"width",transform:$b}),Wb=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])||nb[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:$b(t)}};return ob(e,e.maxWidth,t)}return null};Wb.filterProps=["maxWidth"];const Ub=ub({prop:"minWidth",transform:$b}),Kb=ub({prop:"height",transform:$b}),Gb=ub({prop:"maxHeight",transform:$b}),Yb=ub({prop:"minHeight",transform:$b});ub({prop:"size",cssProperty:"width",transform:$b}),ub({prop:"size",cssProperty:"height",transform:$b});Cb(Vb,Wb,Ub,Kb,Gb,Yb,ub({prop:"boxSizing"}));var Xb={border:{themeKey:"borders",transform:wb},borderTop:{themeKey:"borders",transform:wb},borderRight:{themeKey:"borders",transform:wb},borderBottom:{themeKey:"borders",transform:wb},borderLeft:{themeKey:"borders",transform:wb},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wb},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jb},color:{themeKey:"palette",transform:Hb},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hb},backgroundColor:{themeKey:"palette",transform:Hb},p:{style:Mb},pt:{style:Mb},pr:{style:Mb},pb:{style:Mb},pl:{style:Mb},px:{style:Mb},py:{style:Mb},padding:{style:Mb},paddingTop:{style:Mb},paddingRight:{style:Mb},paddingBottom:{style:Mb},paddingLeft:{style:Mb},paddingX:{style:Mb},paddingY:{style:Mb},paddingInline:{style:Mb},paddingInlineStart:{style:Mb},paddingInlineEnd:{style:Mb},paddingBlock:{style:Mb},paddingBlockStart:{style:Mb},paddingBlockEnd:{style:Mb},m:{style:Sb},mt:{style:Sb},mr:{style:Sb},mb:{style:Sb},ml:{style:Sb},mx:{style:Sb},my:{style:Sb},margin:{style:Sb},marginTop:{style:Sb},marginRight:{style:Sb},marginBottom:{style:Sb},marginLeft:{style:Sb},marginX:{style:Sb},marginY:{style:Sb},marginInline:{style:Sb},marginInlineStart:{style:Sb},marginInlineEnd:{style:Sb},marginBlock:{style:Sb},marginBlockStart:{style:Sb},marginBlockEnd:{style:Sb},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:Fb},rowGap:{style:_b},columnGap:{style:Bb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$b},maxWidth:{style:Wb},minWidth:{transform:$b},height:{transform:$b},maxHeight:{transform:$b},minHeight:{transform:$b},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Jb(){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:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=sb(n,s)||{};if(u)return u(o);return ob(o,t,(t=>{let n=lb(c,l,t);return t===n&&"string"==typeof t&&(n=lb(c,l,`${e}${"default"===t?"":ib(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:Xb;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],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[n])l=tb(l,e(n,o,i,a));else{const e=ob({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=tb(l,e):l[n]=t({sx:o,theme:i})}else l=tb(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 Zb=Jb();Zb.filterProps=["sx"];var Qb=Zb;function ex(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const tx=["breakpoints","palette","spacing","shape"];function nx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=gl(e,tx),s=Qv(n),l=function(e=8){if(e.mui)return e;const t=yb({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 u=Yv({breakpoints:s,direction:"ltr",components:{},palette:ol({mode:"light"},r),spacing:l,shape:ol({},eb,i)},a);return u.applyStyles=ex,u=t.reduce(((e,t)=>Yv(e,t)),u),u.unstable_sxConfig=ol({},Xb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qb({sx:e,theme:this})},u}var rx=Object.freeze({__proto__:null,default:nx,private_createBreakpoints:Qv,unstable_applyStyles:ex});function ox(e=null){const t=x.useContext(Cv);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ix=nx();const ax=["sx"];var sx=Object.freeze({__proto__:null,default:Qb,extendSxProp:function(e){const{sx:t}=e,n=gl(e,ax),{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:Xb;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 Kv(n)?ol({},r,n):r}:ol({},r,t),ol({},o,{sx:i})},unstable_createStyleFunctionSx:Jb,unstable_defaultSxConfig:Xb});const lx=e=>e;var ux=(()=>{let e=lx;return{configure(t){e=t},generate:t=>e(t),reset(){e=lx}}})();function cx(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=cx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dx(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=cx(e))&&(r&&(r+=" "),r+=t);return r}const fx={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 px(e,t,n="Mui"){const r=fx[t];return r?`${n}-${r}`:`${ux.generate(e)}-${t}`}function mx(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=px(e,t,n)})),r}var hx,gx,yx={exports:{}},vx={};var bx=(gx||(gx=1,yx.exports=function(){if(hx)return vx;hx=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case u:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),vx.ContextConsumer=s,vx.ContextProvider=a,vx.Element=t,vx.ForwardRef=u,vx.Fragment=r,vx.Lazy=p,vx.Memo=f,vx.Portal=n,vx.Profiler=i,vx.StrictMode=o,vx.Suspense=c,vx.SuspenseList=d,vx.isAsyncMode=function(){return!1},vx.isConcurrentMode=function(){return!1},vx.isContextConsumer=function(e){return h(e)===s},vx.isContextProvider=function(e){return h(e)===a},vx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vx.isForwardRef=function(e){return h(e)===u},vx.isFragment=function(e){return h(e)===r},vx.isLazy=function(e){return h(e)===p},vx.isMemo=function(e){return h(e)===f},vx.isPortal=function(e){return h(e)===n},vx.isProfiler=function(e){return h(e)===i},vx.isStrictMode=function(e){return h(e)===o},vx.isSuspense=function(e){return h(e)===c},vx.isSuspenseList=function(e){return h(e)===d},vx.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},vx.typeOf=h,vx}()),yx.exports);const xx=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Sx(e){const t=`${e}`.match(xx);return t&&t[1]||""}function Mx(e,t=""){return e.displayName||e.name||Sx(e)||t}function Cx(e,t,n){const r=Mx(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var wx=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Mx(e,"Component");if("object"==typeof e)switch(e.$$typeof){case bx.ForwardRef:return Cx(e,e.render,"ForwardRef");case bx.Memo:return Cx(e,e.type,"memo");default:return}}},getFunctionName:Sx});function kx(e,t){const n=ol({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ol({},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]=ol({},i),Object.keys(o).forEach((e=>{n[r][e]=kx(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Tx({props:e,name:t,defaultTheme:n,themeId:r}){let o=function(e=ix){return ox(e)}(n);r&&(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?kx(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}var qx="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;var Ex=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 Nx(e){const t=x.useRef(e);return qx((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function Lx(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const Ox={};const Dx=[];class Ax{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ax}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Ix(){const e=function(e,t){const n=x.useRef(Ox);return n.current===Ox&&(n.current=e(t)),n}(Ax.create).current;var t;return t=e.disposeEffect,x.useEffect(t,Dx),e}let Rx=!0,Px=!1;const zx=new Ax,jx={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 Fx(e){e.metaKey||e.altKey||e.ctrlKey||(Rx=!0)}function Bx(){Rx=!1}function _x(){"hidden"===this.visibilityState&&Px&&(Rx=!0)}function Hx(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Rx||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!jx[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function $x(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Fx,!0),t.addEventListener("mousedown",Bx,!0),t.addEventListener("pointerdown",Bx,!0),t.addEventListener("touchstart",Bx,!0),t.addEventListener("visibilitychange",_x,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Hx(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Px=!0,zx.start(100,(()=>{Px=!1})),t.current=!1,!0)},ref:e}}function Vx(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}var Wx=x.createContext(null);function Ux(){return x.useContext(Wx)}var Kx="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Gx(e){const{children:t,theme:n}=e,r=Ux(),o=x.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ol({},e,t)}(r,n);return null!=e&&(e[Kx]=null!==r),e}),[n,r]);return Vv.jsx(Wx.Provider,{value:o,children:t})}const Yx=["value"],Xx=x.createContext();function Jx(e){let{value:t}=e,n=gl(e,Yx);return Vv.jsx(Xx.Provider,ol({value:null==t||t},n))}const Zx={};function Qx(e,t,n,r=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?ol({},t,{[e]:i}):i;return r?()=>a:a}return ol({},t,e?{[e]:n}:n)}),[e,t,n,r])}function eS(e){const{children:t,theme:n,themeId:r}=e,o=ox(Zx),i=Ux()||Zx,a=Qx(r,o,n),s=Qx(r,i,n,!0),l="rtl"===a.direction;return Vv.jsx(Gx,{theme:s,children:Vv.jsx(Cv.Provider,{value:a,children:Vv.jsx(Jx,{value:l,children:t})})})}var tS,nS={},rS={exports:{}};function oS(){return tS||(tS=1,(e=rS).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),rS.exports;var e}var iS,aS=te(Gg),sS=te(Ex);function lS(){if(iS)return nS;iS=1;var e=oS();Object.defineProperty(nS,"__esModule",{value:!0}),nS.alpha=c,nS.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),u=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:u})},nS.colorChannel=void 0,nS.darken=d,nS.decomposeColor=i,nS.emphasize=function(e,t=.15){return u(e)>.5?d(e,t):f(e,t)},nS.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},nS.getLuminance=u,nS.hexToRgb=o,nS.hslToRgb=l,nS.lighten=f,nS.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},nS.private_safeColorChannel=void 0,nS.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},nS.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},nS.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},nS.recomposeColor=s,nS.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(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 t=e(aS),n=e(sS);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(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 i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};nS.colorChannel=a;function s(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 l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(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 c(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(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 s(e)}function f(e,t){if(e=i(e),t=r(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 s(e)}return nS.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},nS}var uS=lS();const cS=["mode","contrastThreshold","tonalOffset"],dS={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:Fg.white,default:Fg.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}},fS={text:{primary:Fg.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:Fg.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 pS(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=uS.lighten(e.main,o):"dark"===t&&(e.dark=uS.darken(e.main,i)))}function mS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=gl(e,cS),i=e.primary||function(e="light"){return"dark"===e?{main:Hg[200],light:Hg[50],dark:Hg[400]}:{main:Hg[700],light:Hg[400],dark:Hg[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:_g[200],light:_g[50],dark:_g[400]}:{main:_g[500],light:_g[300],dark:_g[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Bg[500],light:Bg[300],dark:Bg[700]}:{main:Bg[700],light:Bg[400],dark:Bg[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:$g[400],light:$g[300],dark:$g[700]}:{main:$g[700],light:$g[500],dark:$g[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Vg[400],light:Vg[300],dark:Vg[700]}:{main:Vg[800],light:Vg[500],dark:Vg[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Wg[400],light:Wg[300],dark:Wg[700]}:{main:"#ed6c02",light:Wg[500],dark:Wg[900]}}(t);function d(e){return uS.getContrastRatio(e,fS.text.primary)>=n?fS.text.primary:dS.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ol({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Kg(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Kg(12,t?` (${t})`:"",JSON.stringify(e.main)));return pS(e,"light",o,r),pS(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:fS,light:dS};return Yv(ol({common:ol({},Fg),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:Ug,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const hS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const gS={textTransform:"uppercase"},yS='"Roboto", "Helvetica", "Arial", sans-serif';function vS(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=yS,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=gl(n,hS),p=o/14,m=d||(e=>e/u*p+"rem"),h=(e,t,n,o,i)=>{return ol({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===yS?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);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,gS),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,gS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yv(ol({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function bS(...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(",")}var xS=["none",bS(0,2,1,-1,0,1,1,0,0,1,3,0),bS(0,3,1,-2,0,2,2,0,0,1,5,0),bS(0,3,3,-2,0,3,4,0,0,1,8,0),bS(0,2,4,-1,0,4,5,0,0,1,10,0),bS(0,3,5,-1,0,5,8,0,0,1,14,0),bS(0,3,5,-1,0,6,10,0,0,1,18,0),bS(0,4,5,-2,0,7,10,1,0,2,16,1),bS(0,5,5,-3,0,8,10,1,0,3,14,2),bS(0,5,6,-3,0,9,12,1,0,3,16,2),bS(0,6,6,-3,0,10,14,1,0,4,18,3),bS(0,6,7,-4,0,11,15,1,0,4,20,3),bS(0,7,8,-4,0,12,17,2,0,5,22,4),bS(0,7,8,-4,0,13,19,2,0,5,24,4),bS(0,7,9,-4,0,14,21,2,0,5,26,4),bS(0,8,9,-5,0,15,22,2,0,6,28,5),bS(0,8,10,-5,0,16,24,2,0,6,30,5),bS(0,8,11,-5,0,17,26,2,0,6,32,5),bS(0,9,11,-5,0,18,28,2,0,7,34,6),bS(0,9,12,-6,0,19,29,2,0,7,36,6),bS(0,10,13,-6,0,20,31,3,0,8,38,7),bS(0,10,13,-6,0,21,33,3,0,8,40,7),bS(0,10,14,-6,0,22,35,3,0,8,42,7),bS(0,11,14,-7,0,23,36,3,0,9,44,8),bS(0,11,15,-7,0,24,38,3,0,9,46,8)];const SS=["duration","easing","delay"],MS={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)"},CS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wS(e){return`${Math.round(e)}ms`}function kS(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function TS(e){const t=ol({},MS,e.easing),n=ol({},CS,e.duration);return ol({getAutoHeightDuration:kS,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return gl(r,SS),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:wS(o)} ${i} ${"string"==typeof a?a:wS(a)}`)).join(",")}},e,{easing:t,duration:n})}var qS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ES=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function NS(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=gl(e,ES);if(e.vars)throw new Error(Kg(18));const s=mS(r),l=nx(e);let u=Yv(l,{mixins:(c=l.breakpoints,d=n,ol({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:xS.slice(),typography:vS(s,i),transitions:TS(o),zIndex:ol({},qS)});var c,d;return u=Yv(u,a),u=t.reduce(((e,t)=>Yv(e,t)),u),u.unstable_sxConfig=ol({},Xb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qb({sx:e,theme:this})},u}var LS=NS();function OS({props:e,name:t}){return Tx({props:e,name:t,defaultTheme:LS,themeId:Yg})}var DS,AS={},IS={exports:{}};var RS,PS={exports:{}};var zS,jS=te(Uv),FS=te(Xv),BS=te(ab),_S=te(wx),HS=te(rx),$S=te(sx);function VS(){if(zS)return AS;zS=1;var e=oS();Object.defineProperty(AS,"__esModule",{value:!0}),AS.default=function(e={}){const{themeId:t,defaultTheme:a=p,rootShouldForwardProp:l=f,slotShouldForwardProp:u=f}=e,d=e=>(0,s.default)((0,n.default)({},e,{theme:h((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return d.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:v,skipVariantsResolver:b,skipSx:x,overridesResolver:S=g(m(v))}=s,M=(0,r.default)(s,c),C=void 0!==b?b:v&&"Root"!==v&&"root"!==v||!1,w=x||!1;let k=f;"Root"===v||"root"===v?k=l:v?k=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const T=(0,o.default)(e,(0,n.default)({shouldForwardProp:k,label:undefined},M)),q=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>y(e,(0,n.default)({},r,{theme:h({theme:r.theme,defaultTheme:a,themeId:t})})):e,E=(r,...o)=>{let i=q(r);const s=o?o.map(q):[];p&&S&&s.push((e=>{const r=h((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[p]||!r.components[p].styleOverrides)return null;const o=r.components[p].styleOverrides,i={};return Object.entries(o).forEach((([t,o])=>{i[t]=y(o,(0,n.default)({},e,{theme:r}))})),S(e,i)})),p&&!C&&s.push((e=>{var r;const o=h((0,n.default)({},e,{defaultTheme:a,themeId:t}));return y({variants:null==o||null==(r=o.components)||null==(r=r[p])?void 0:r.variants},(0,n.default)({},e,{theme:o}))})),w||s.push(d);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=T(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return T.withConfig&&(E.withConfig=T.withConfig),E}},AS.shouldForwardProp=f,AS.systemDefaultTheme=void 0;var t,n=e((DS||(DS=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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(IS)),IS.exports)),r=e((RS||(RS=1,(t=PS).exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},t.exports.__esModule=!0,t.exports.default=t.exports),PS.exports)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(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}(jS),i=FS;e(BS),e(_S);var a=e(HS),s=e($S);const l=["ownerState"],u=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const p=AS.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function h({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function y(e,t){let{ownerState:o}=t,i=(0,r.default)(t,l);const a="function"==typeof e?e((0,n.default)({ownerState:o},i)):e;if(Array.isArray(a))return a.flatMap((e=>y(e,(0,n.default)({ownerState:o},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,r.default)(a,u);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,n.default)({ownerState:o},i,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&i[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.default)({ownerState:o},i,o)):e.style))})),t}return a}return AS}var WS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var US=ee(VS())({themeId:Yg,defaultTheme:LS,rootShouldForwardProp:WS});const KS=["theme"];function GS(e){let{theme:t}=e,n=gl(e,KS);const r=t[Yg];return Vv.jsx(eS,ol({},n,{themeId:r?Yg:void 0,theme:r||t}))}function YS(e){return px("MuiSvgIcon",e)}mx("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const XS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],JS=US("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ib(n.color)}`],t[`fontSize${ib(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,d,f,p,m;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==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),ZS=x.forwardRef((function(e,t){const n=OS({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,f=gl(n,XS),p=x.isValidElement(r)&&"svg"===r.type,m=ol({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Vx({root:["root","inherit"!==t&&`color${ib(t)}`,`fontSize${ib(n)}`]},YS,r)})(m);return Vv.jsxs(JS,ol({as:a,className:dx(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,f,p&&r.props,{ownerState:m,children:[p?r.props.children:r,c?Vv.jsx("title",{children:c}):null]}))}));ZS.muiName="SvgIcon";var QS=ZS;var eM=mx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const tM=["center","classes","className"];let nM,rM,oM,iM,aM=e=>e;const sM=Dv(nM||(nM=aM`
|
|
22
22
|
0% {
|
|
23
23
|
transform: scale(0);
|
|
24
24
|
opacity: 0.1;
|
|
@@ -91,4 +91,4 @@ System.register(["picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules"
|
|
|
91
91
|
animation-iteration-count: infinite;
|
|
92
92
|
animation-delay: 200ms;
|
|
93
93
|
}
|
|
94
|
-
`),eM.rippleVisible,sM,550,(({theme:e})=>e.transitions.easing.easeInOut),eM.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),eM.child,eM.childLeaving,lM,550,(({theme:e})=>e.transitions.easing.easeInOut),eM.childPulsate,uM,(({theme:e})=>e.transitions.easing.easeInOut)),fM=x.forwardRef((function(e,t){const n=OS({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=gl(n,tM),[s,l]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=x.useRef(!1),f=Ix(),p=x.useRef(null),m=x.useRef(null),h=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,Vv.jsx(dM,{classes:{ripple:dx(o.ripple,eM.ripple),rippleVisible:dx(o.rippleVisible,eM.rippleVisible),ripplePulsate:dx(o.ripplePulsate,eM.ripplePulsate),child:dx(o.child,eM.child),childLeaving:dx(o.childLeaving,eM.childLeaving),childPulsate:dx(o.childPulsate,eM.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.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:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=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)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,f]),y=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,(()=>{v(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[f]);return x.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),Vv.jsx(cM,ol({className:dx(eM.root,o.root,i),ref:m},a,{children:Vv.jsx(Gf,{component:null,exit:!0,children:s})}))}));var pM=fM;function mM(e){return px("MuiButtonBase",e)}var hM=mx("MuiButtonBase",["root","disabled","focusVisible"]);const gM=["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"],yM=US("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"},[`&.${hM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vM=x.forwardRef((function(e,t){const n=OS({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:S,onMouseDown:M,onMouseLeave:C,onMouseUp:w,onTouchEnd:k,onTouchMove:T,onTouchStart:q,tabIndex:E=0,TouchRippleProps:L,touchRippleRef:N,type:O}=n,D=gl(n,gM),A=x.useRef(null),I=x.useRef(null),R=Nx(I,N),{isFocusVisibleRef:P,onFocus:z,onBlur:j,ref:F}=$x(),[B,_]=x.useState(!1);l&&B&&_(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{_(!0),A.current.focus()}})),[]);const[H,$]=x.useState(!1);x.useEffect((()=>{$(!0)}),[]);const V=H&&!u&&!l;function W(e,t,n=c){return Lx((r=>{t&&t(r);return!n&&I.current&&I.current[e](r),!0}))}x.useEffect((()=>{B&&d&&!u&&H&&I.current.pulsate()}),[u,d,B,H]);const U=W("start",M),K=W("stop",h),G=W("stop",g),Y=W("stop",w),X=W("stop",(e=>{B&&e.preventDefault(),C&&C(e)})),J=W("start",q),Z=W("stop",k),Q=W("stop",T),ee=W("stop",(e=>{j(e),!1===P.current&&_(!1),p&&p(e)}),!1),te=Lx((e=>{A.current||(A.current=e.currentTarget),z(e),!0===P.current&&(_(!0),v&&v(e)),y&&y(e)})),ne=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=Lx((e=>{d&&!re.current&&B&&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(),m&&m(e))})),ie=Lx((e=>{d&&" "===e.key&&I.current&&B&&!e.defaultPrevented&&(re.current=!1,I.current.stop(e,(()=>{I.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(D.href||D.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===O?"button":O,se.disabled=l):(D.href||D.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Nx(t,F,A),ue=ol({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:E,focusVisible:B}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Vx({root:["root",t&&"disabled",n&&"focusVisible"]},mM,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Vv.jsxs(yM,ol({as:ae,className:dx(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:K,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:E,type:O},se,D,{children:[i,V?Vv.jsx(pM,ol({ref:R,center:o},L)):null]}))}));var bM=vM;function xM(e){return px("MuiButton",e)}var SM=mx("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"]);var MM=x.createContext({});var CM=x.createContext(void 0);const wM=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],kM=e=>ol({},"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}}),TM=US(bM,{shouldForwardProp:e=>WS(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ib(n.color)}`],t[`size${ib(n.size)}`],t[`${n.variant}Size${ib(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 ol({},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":ol({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:uS.alpha(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})`:uS.alpha(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})`:uS.alpha(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":ol({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${SM.focusVisible}`]:ol({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${SM.disabled}`]:ol({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 ${uS.alpha(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"},[`&.${SM.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${SM.disabled}`]:{boxShadow:"none"}})),qM=US("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ib(n.size)}`]]}})((({ownerState:e})=>ol({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},kM(e)))),EM=US("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ib(n.size)}`]]}})((({ownerState:e})=>ol({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},kM(e)))),LM=x.forwardRef((function(e,t){const n=x.useContext(MM),r=x.useContext(CM),o=OS({props:kx(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=o,b=gl(o,wM),S=ol({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:y,variant:v}),M=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return ol({},a,Vx({root:["root",i,`${i}${ib(t)}`,`size${ib(o)}`,`${i}Size${ib(o)}`,`color${ib(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ib(o)}`],endIcon:["icon","endIcon",`iconSize${ib(o)}`]},xM,a))})(S),C=g&&Vv.jsx(qM,{className:M.startIcon,ownerState:S,children:g}),w=f&&Vv.jsx(EM,{className:M.endIcon,ownerState:S,children:f}),k=r||"";return Vv.jsxs(TM,ol({ownerState:S,className:dx(n.className,M.root,l,k),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:dx(M.focusVisible,p),ref:t,type:y},b,{classes:M,children:[C,i,w]}))}));var NM=LM;var OM=x.createContext({});function DM(e){return px("MuiListItemButton",e)}var AM=mx("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const IM=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],RM=US(bM,{shouldForwardProp:e=>WS(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})=>ol({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"}},[`&.${AM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:uS.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${AM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:uS.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${AM.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:uS.alpha(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})`:uS.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${AM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${AM.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}))),PM=x.forwardRef((function(e,t){const n=OS({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:c,selected:d=!1,className:f}=n,p=gl(n,IM),m=x.useContext(OM),h=x.useMemo((()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:l})),[r,m.dense,s,l]),g=x.useRef(null);qx((()=>{o&&g.current&&g.current.focus()}),[o]);const y=ol({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:u,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return ol({},n,Vx({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},DM,n))})(y),b=Nx(g,t);return Vv.jsx(OM.Provider,{value:h,children:Vv.jsx(RM,ol({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===i?"button":i,focusVisibleClassName:dx(v.focusVisible,c),ownerState:y,className:dx(v.root,f)},p,{classes:v,children:a}))})}));var zM=PM;function jM(e){return px("MuiListItemIcon",e)}mx("MuiListItemIcon",["root","alignItemsFlexStart"]);const FM=["className"],BM=US("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})=>ol({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),_M=x.forwardRef((function(e,t){const n=OS({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=gl(n,FM),i=ol({},n,{alignItems:x.useContext(OM).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Vx({root:["root","flex-start"===t&&"alignItemsFlexStart"]},jM,n)})(i);return Vv.jsx(BM,ol({className:dx(a.root,r),ownerState:i,ref:t},o))}));var HM=_M;function $M(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,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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 VM(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 WM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VM(Object(n),!0).forEach((function(t){$M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var UM,KM,GM=function(e){var t=e.className,n=e.path,r=e.fillRule;return b.createElement(QS,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},b.createElement("path",{d:n}),r?b.createElement("use",{fillRule:r}):void 0)},YM={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)"}}};US(NM,{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:"45px",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}}})),US((function(e){var t=e.className;return b.createElement(GM,{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:YM.ICONS.COLOR.SECONDARY}})),US((function(e){var t=e.className;return b.createElement(GM,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:YM.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:YM.ICONS.COLOR.DISABLED}}})),US(NM,{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}}}));var XM={color:YM.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:YM.ICONS.COLOR.DISABLED}};US((function(e){var t=e.className;return b.createElement(GM,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return XM})),US((function(e){var t=e.className;return b.createElement(GM,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return XM})),US((function(e){var t=e.className;return b.createElement(GM,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:YM.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),US(zM)((function(){return{padding:"4px 12px","&:focus":WM({},YM.FOCUS)}})),US(HM)((function(){return{marginRight:0,justifyContent:"center"}})),US((function(e){var t=e.className;return b.createElement(GM,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:YM.ICONS.COLOR.SECONDARY}}));var JM,ZM=function(){if(KM)return UM;KM=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 UM=function e(){var t,n,r,l,u,c,d=arguments[0],f=1,p=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(m&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},UM}();(JM=ZM)&&JM.__esModule&&Object.prototype.hasOwnProperty.call(JM,"default")&&JM.default;var QM,eC=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return b.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},tC={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 b.createElement("div",{dir:i,style:a},b.createElement(eC,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},nC={},rC=function(){if(QM)return nC;QM=1;var e=q;return nC.createRoot=e.createRoot,nC.hydrateRoot=e.hydrateRoot,nC}(),oC=LS({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:"116px",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")}},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 iC(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 aC(){var e={rendererBox:iC(),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=iC(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=rC.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 b.createElement(b.StrictMode,null,b.createElement(GS,{theme:oC},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const sC={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",u=r,c=o,d=t<.5?90:-90;return i&&(s="y",l="x",u=o,c=r,d=t<.5?180:0),a(ie({},e,{[s]:n*u,[l]:c-Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:d}))}};function lC({i:e,width:t,height:n,resolved:r,keys:o,flipXY:i,calcKey:a="box"}){let s,l=null,u=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,u=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 c=0;s?s.bandwidth?(c=s.bandwidth(),l-=c/2):c=u-l:c=1;const d=ie({},{major:l,majorEnd:u},r.minor.items[e]);o.forEach((t=>{d[t]=r[t].items[e]}));const f=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:c,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),m=(c-p)/2,h=m+d.major+p/2;return{item:d,boxCenter:h,boxWidth:p,boxPadding:m,rendWidth:t,rendHeight:n}}function uC({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=ie(!0,{},n||{},r||{}),u={major:"horizontal"===o.orientation?a:i,minor:"horizontal"===o.orientation?i:a},c=o.major;let d;d="object"==typeof c&&"object"==typeof c.ref&&void 0!==c.ref.start&&void 0!==c.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:ie(!0,{},{binStart:{scale:o.major.scale,ref:o.major.ref.start},binEnd:{scale:o.major.scale,ref:o.major.ref.end}})}):"object"==typeof c&&void 0!==c.binStart&&void 0!==c.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:ie(!0,{},{binStart:{scale:o.major.scale,ref:"binStart"},binEnd:{scale:o.major.scale,ref:"binEnd"}},o.major)}):s.resolve({data:t,scaled:u,defaults:{major:.5},settings:{major:o.major}});const f=o.minor||{};let p;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:ie(!0,{},{start:{scale:f.scale,ref:"start"},end:{scale:f.scale,ref:"end"},min:{scale:f.scale,ref:"min"},max:{scale:f.scale,ref:"max"},med:{scale:f.scale,ref:"med"}},f)})};for(let n=0,r=e.length;n<r;n++)p=e[n],m[p]=s.resolve({data:t,defaults:l[p],settings:o[p],scaled:u});return m}const cC=["oob"];const dC={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=uC({keys:cC,data:o,defaultSettings:{oob:sC.getDefaultSettings()},style:i,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:u,items:c}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=lC}){const l=[],{items:u}=r.major;for(let c=0,d=u.length;c<d;c++){const{item:d,boxCenter:f,rendWidth:p,rendHeight:m}=s({i:c,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=u[c].data,g=[];if(d.oob.show){g.push(sC.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:p,rendHeight:m,flipXY:n,symbol:i}));const e={type:"container",data:h,collider:{type:"bounds"},children:g};l.push(e)}}return l}({items:c,settings:u,width:e,height:t,flipXY:r,resolved:l,keys:cC,symbol:s,dockValue:n});return d}},fC={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},pC=["hat"];function mC(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 hC({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:o,flipXY:i}){let a="x",s="y",l=r,u=o,c=e.hat.alignment||0;i&&(a="y",s="x",l=o,u=r,c=1-c);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+u},{[a]:d+t*c*l,[s]:8},{[a]:d+t*l,[s]:0+u},{[a]:d+t*l,[s]:0+u+10},{[a]:d,[s]:0+u+10}];const p=ie({},e.hat,{type:"path",d:mC(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-c)*l,[s]:0+u-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[p,ie({},e.hat,{type:"path",d:mC(f)})]}const gC={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=uC({keys:pC,data:r,defaultSettings:fC,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a,u=function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=lC}){const a=[],{items:s}=r.major;for(let l=0,u=s.length;l<u;l++){const{item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:p}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),m=s[l].data,h=[];u.hat.show&&h.push(...hC({item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:p,flipXY:n}));const g={type:"container",data:m,collider:{type:"bounds"},children:h};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:pC});return u}};function yC(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:yC(o,t,n)},o}function vC(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),yC(o,a,l,e.invert)}))}const bC=()=>({version:"1.36.2",barGrouping:{grouping:"grouped"},color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[],dataPoint:{showLabels:!1,showSegmentLabels:!1,showTotalLabels:!0},dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},footnote:"",gridLine:{auto:!0,spacing:2},legend:{dock:"auto",show:!0,showTitle:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"all",spacing:1},orientation:"vertical",preferContinuousAxis:!0,qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},refLine:{refLines:[],dimRefLines:[]},scrollbar:"miniChart",scrollStartPos:0,showDetails:!0,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}}),xC={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 SC(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const MC={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,u=i[t]*(n>l?1:n/l),c=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(u,n),width:Math.min(c,l)},r()):(e={height:u,width:c},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 CC(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,a,s,l,u;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var c;if(o=e.session.options||(null===(c=e.enigmaModel)||void 0===c?void 0:c.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 u=void 0!==o.secure?o.secure:o.isSecure,i=u?"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 MC.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function wC(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,u=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!u)return[];const[c]=u,d=c.size||"small",f=c.type||"media";let p=-1;for(let e=0;e<n.length;e++)if(n[e].cId===c.cId){p=e;break}const m=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let h;if(-1!==p&&m[p]&&(h=m[p]),"media"===f&&null!==(a=c.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return CC(c,d,s);if("url"===f)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&&SC(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await MC.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 MC.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,c,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&h&&h.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(SC(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await MC.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 kC={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(wC(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}},TC={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await kC.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>kC.checkIfPromisesExist({customTooltipModel:e})};const qC=(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:xC.CHART.CHART_PARENT_TYPE,qId:xC.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},EC=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:xC.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const LC={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=xC.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:xC.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i,width:"100%"}},{}]}(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 LC.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=xC.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=xC.CHART.STATE,a=qC(t,i),s=await e.createSessionObject(a),l=EC(t);if(s.id!==xC.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const u=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=u,u;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var u,c,d,f;const e=n.length>0&&void 0!==(null===(u=n[0].data)||void 0===u?void 0:u.value)?[null===(c=n[0].data)||void 0===c?void 0:c.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var p,m;const e=null!==(p=n[0].data.selectionOuterDimension)&&void 0!==p?p:n[0].data.selectionDimension;if(null!=e&&null!==(m=e.source)&&void 0!==m&&m.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(xC.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===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await LC.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(LC.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(xC.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=xC.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 NC(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function OC(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=xC.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function DC(e){const t=OC();return e.filter((e=>t[e.id]))}const AC={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 u=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!u||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===u.value&&r.label===u.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}=AC.getAttrExprData(a);i.length||n.length?TC.handlePromises({customTooltipModel:o,nodes:AC.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&&LC.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>TC.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[xC.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[xC.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[xC.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(DC(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[xC.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[xC.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=NC(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===DC(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){let r=[];const o=NC(e)||[];[...o,t].forEach((e=>{const t=DC(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=OC(),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:Oe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Oe.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 IC(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 xC.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case xC.CUSTOM.TITLE:case xC.CUSTOM.DESCRIPTION:case xC.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 RC={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>IC(t,e,r,n)}}};const PC={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={[xC.CUSTOM.TITLE]:!0,[xC.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=AC.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===xC.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===xC.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>De.getMeasure(e,t))),e,o)}};function zC({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(PC.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function jC(e){const t=xC.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function FC(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const BC={migrateProperties(e){var t,n;const r=ie(!0,{},e),o=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let i=FC(r);return i=function(e,t){return t.concat(e.map((e=>jC(e))))}(o,i),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(i,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],o=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,i=function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=jC(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(FC(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,o,i;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(o=t.tooltip)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.qHyperCube)||{},l=null===(i=t.qMeta)||void 0===i||null===(i=i.privileges)||void 0===i?void 0:i.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var _C={attrExpr:BC},HC=7005;const $C=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC},VC=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&he.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},WC=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&he.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&he.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},UC=e=>{if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))},KC=(e,t)=>{const n=e.qHyperCubeDef.qDimensions,r=e.qHyperCubeDef.qMeasures;if(1===n.length&&1===r.length){const r=n[0];return r.qLibraryId?t.getDimension(r.qLibraryId).then((e=>e.getLayout())).then((t=>{if(t&&t.qDimInfos&&t.qDimInfos[0]){const n=t.qDimInfos[0].qCardinal;WC(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(WC(e,t),r)))),(()=>r))}return VC(e),Promise.resolve()};function GC(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?i(e,"color.persistent",!0):"byDimension"===r&&n.length>1?i(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?i(e,"color.mode","primary"):0===t.length&&n.length>0&&(i(e,"color.byMeasureDef",void 0),i(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&i(e,"color.mode","primary"))}const YC=(e,t)=>{GC(t),Dt(e),AC.addCallbackCustomTooltip(t)},XC=e=>{GC(e)};function JC({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,o){let i;const a=null!=o&&o.layout?o.layout.qHyperCube.qDimensionInfo.filter((e=>$C(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?i="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?i="Visualizations.Descriptions.Stack":(i="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):i="Visualizations.Descriptions.Bars",e.get(i)},add:(e,t,n)=>(t.qHyperCubeDef.qDimensions.length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),null!=n&&n.app?KC(t,n.app).then((()=>(YC(e,t),e))):(UC(t),YC(e,t),e)),move(e,t,n){const r=n.layout.qHyperCube.qDimensionInfo.filter((e=>$C(e))).length;r>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),VC(t),GC(t),AC.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;GC(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),AC.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){AC.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:e=>e>1?1:15,description:()=>e.get("Visualizations.Descriptions.LengthBars"),add:(e,t,n)=>null!=n&&n.app?KC(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,XC(t),e))):(UC(t),XC(t),e),move(e,t){VC(t),GC(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;GC(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function ZC(e){return{properties:bC(),data:{targets:[{path:"/qHyperCubeDef",...JC(e)}]}}}var QC={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":"Выключить выбор лассо"}}};const ew="REJECTED",tw=()=>{},nw=1e4,rw={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},ow=50,iw=10,aw=100;var sw={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),u=Math.min(i+r-e.qArea.qLeft,e.qArea.qWidth),c={qArea:{qHeight:s-a,qWidth:u-l,qTop:o,qLeft:i},qMatrix:[]};for(let t=a;t<s;t++)c.qMatrix.push(e.qMatrix[t].slice(l,u));return c},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-iw<=t.qTop,o=n.qLeft+n.qWidth+iw>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+iw>=t.qTop+t.qHeight,a=n.qLeft-iw<=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 lw={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-iw<=t.qTop,o=n.qTop+n.qHeight+iw>=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 uw={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 cw="pages";const dw="discretePan",fw=10;function pw({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:dw,pointers:1,threshold:fw,enable(r,o){return this.started===dw||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{[`${dw}start`](e){e.preventDefault(),this.started=dw;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-fw:fw},[`${dw}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)},[`${dw}end`](e){e.preventDefault(),this.started=!1},[`${dw}cancel`](e){e.preventDefault(),this.started=!1}}}}function mw({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=Math.sign(-a)*aw;r.scroll(s)}}function hw({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(nw/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(rw.MAXIMUM,n));return{width:e,height:Math.max(rw.MINIMUM,Math.min(n*rw.MULTIPLIER,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 gw(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(ew),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(ew),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(ew),n=null)},o}const yw={command:{update:()=>{}}};var vw={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 bw={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 xw(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function Sw(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 Mw(e){return Sw(e.qMatrix,(e=>e[0].qElemNumber))-1}var Cw={inTotal:function({layoutService:e}){const t=xw(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=xw(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=xw(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=Mw(i),u=i.qArea.qHeight*o+l,c=(s+(i.qArea.qTop*o+i.qArea.qTop)*a)/r;return[c,n.inView>=n.inTotal?c+1:c+u/n.inView]}};const ww=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),kw=(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};function Tw(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return ww(e,n);const r=kw(t.qMatrix,n);return r.successful?r.count:ww(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return ww(e,n);return Sw(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var qw={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=Tw(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:u}=n,c=Tw(t).area(e(),l,a.qArea),d=Mw(a),f=a.qArea.qHeight+d,p=u===i?(r.inView-f)*s/o:(u+(a.qArea.qTop+c)*s)/o;return[p,r.inView>=r.inTotal?p+1:p+f/r.inView]}};function Ew({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:o,renderer:i,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:u,maxDataRows:c}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:p}=r[n.meta.chart.mode],m="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:y}=s,v=m?t.width:t.height,b=v/l>=f;switch(h){case"max":return Math.min(l,c);case"custom":return Math.min(g,c);default:return u?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:u,fontSize:c,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:u,fontSize:c,text:"M"});if(!t)return f>i;const p=(90-d)*(Math.PI/180);return f>Math.cos(p)*i}({chart:e,isHorizontal:m,axisKey:o,renderer:i,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}var Lw="AVERAGE",Nw="LINEAR",Ow="POLYNOMIAL2",Dw="POLYNOMIAL3",Aw="POLYNOMIAL4",Iw="EXPONENTIAL",Rw="LOG",Pw="POWER";function zw({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:o}=n,i={x:e,y:o[2]*t**2+o[1]*t+o[0]};switch(r){default:case Ow:return i;case Dw:return i.y+=o[3]*t**3,i;case Aw:return i.y+=o[4]*t**4+o[3]*t**3,i}}var jw={average:function({dimValue:e,qTrendLine:t}){return{x:e,y:t.qCoeff[0]}},linear:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]*t+n.qCoeff[0]}},polynomial2:zw,polynomial3:zw,polynomial4:zw,exponential:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:Math.exp(n.qCoeff[0]+t*n.qCoeff[1])}},log:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]+n.qCoeff[0]*Math.log(t)}},power:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:10**(n.qCoeff[0]+n.qCoeff[1]*Math.log(t)*Math.LOG10E)}}};const Fw=500;function Bw(e,t){const n=jw[t.qType.toLowerCase()],r=Math.max(1,e/Fw);let o=1/0,i=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});o=Math.min(e,o),i=Math.max(e,i)}return{min:o,max:i}}const _w=100;function Hw(e){return jw[e.qType.toLowerCase()]}function $w(e,t){return e.meta.isContinuous?function(e,t){return{generate:(n,r,o)=>{var i,a;const s=[],l=Hw(n),u=t.get("zoom"),c=null!==(i=n.start)&&void 0!==i?i:u.min,d=null!==(a=n.end)&&void 0!==a?a:u.max,f=(d-c)/_w,p=e.meta.isButterfly&&o>0;if(f>0){const e=e=>{const t=l({dimValue:e,value:e,qTrendLine:n});p&&(t.y=-t.y),t.layerId=r,t.measureIndex=o,t.dimValue=e,s.push(t)};let t=c;for(let n=c;n<=d;n+=f)e(n),t=n;t!==d&&e(d)}return s},calculate:(e,t)=>Hw(e)({dimValue:t,value:t,qTrendLine:e}),findMinMax(e,t){const n=this.generate(t).map((({y:e})=>e));return{min:Math.min(...n),max:Math.max(...n)}}}}(e,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qData[0].qSubNodes,s=i.qArea.qTop,l=jw[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const i=a[e],u=l({dimValue:i.qElemNo,value:e+s+1,qTrendLine:t});u.layerId=n,u.measureIndex=r,u.dimValue=i.qText,o.push(u)}return o},findMinMax:Bw}}(e):function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qMatrix,s=i.qArea.qTop,l=jw[t.qType.toLowerCase()],u=e.meta.isButterfly&&r>0;for(let e=0;e<a.length;e++){const i=a[e][0],c=e+s+1,d=l({dimValue:i.qElemNumber,value:c,qTrendLine:t});u&&(d.y=-d.y),d.layerId=n,d.measureIndex=r,d.dimValue=i.qText,o.push(d)}return o},calculate:(e,t,n)=>(0,jw[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:Bw}}(e)}var Vw={TYPES:{AVERAGE:"properties.trendlines.types.average",LINEAR:"properties.trendlines.types.linear",POLYNOMIAL2:"properties.trendlines.types.polynomial2",POLYNOMIAL3:"properties.trendlines.types.polynomial3",POLYNOMIAL4:"properties.trendlines.types.polynomial4",EXPONENTIAL:"properties.trendlines.types.exponential",LOG:"properties.trendlines.types.logarithmic",POWER:"properties.trendlines.types.power"},STYLE:{DASHED:"properties.trendlines.style.dashed"},TYPE:"properties.trendlines.type",HEADER:"properties.trendlines",ADD_BUTTON:"properties.trendlines.button.add"},Ww={color:"#f93f17",index:9};const{isDark:Uw}=Ot,Kw={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},Gw=({layoutService:e,viewState:t,colorModel:n,chart:r,env:o,keys:{colorScale:i},isEnabled:a=(()=>!1)})=>{const{translator:s}=o,l=[Kw],u=[],d=[],f=$w(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(u.push(...e.qTrendLines),d.push(...e.qTrendLines.map((()=>t))))}));const p=c((e=>{const{style:t}=u[e]||{},o=n.settings();if(t.autoColor){if("measure"===o.mode){const t=d[e],n=r.scale(i)(t);return Uw(n)?function(e){const t=Et(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=Et(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(Ww)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!u.length&&a(),getData:()=>l,getStroke:p,getLineDash:e=>{const{style:t}=u[e]||{};return null==t?void 0:t.lineDash},getLineThickness:e=>{var t;const{style:n}=u[e]||{};return null!==(t=null==n?void 0:n.lineThickness)&&void 0!==t?t:2},getLabel:e=>(u[e]||{}).label,getType:e=>{const{qType:t}=u[e]||{};return s.get(Vw.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return u.forEach((r=>{const o=f.findMinMax(e.meta.size.y,r);t=Math.min(o.min,t),n=Math.max(o.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=u[e];return f.calculate(r,t,n)}},command:{update:()=>{l.length=0,u.forEach(((e,t)=>{const n=f.generate(e,t,d[t]);l.push(...n)}))}}}};var Yw={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const Xw=({meta:e})=>e.isContinuous?({scale:e,datum:t})=>e(t.value):e.isGroupedByMeasure?({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2:({scale:e,datum:t})=>e(t.value)+e.bandwidth()/2,Jw=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:o})=>{if(!n.query.hasTrendLines())return[];const i=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:o,animationsEnabled:i})=>{const a=Xw(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:Yw,settings:{connect:!0,orientation:o.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:({datum:e})=>n.query.getLineThickness(e.layer.value),stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:i,trackBy:rs.nonUpdatingNode.trackBy,compensateForLayoutChanges:rs.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:o}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:o})=>{const i=Xw(r),a="horizontal"===o.meta.major.orientation,s={scale:e,fn:i},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:Yw,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[i,a]};function Zw(e,t){const{getLabel:n,getType:r,getLineDash:o,getStroke:i}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:i(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":o(t.data.layer.value)}},l={content:[{content:n(t.data.layer.value),style:{"font-weight":"bold"}},{content:r(t.data.layer.value)}],style:{"min-width":"136px"}};return{title:t.data.dimValue.label,row:[s,l,{content:a.formatter(e.formatter)(t.data.minor.value)}]}}}const Qw=16,ek=2;function tk(e,t){return Array.isArray(t.content)?e("div",{style:{display:"flex","flex-direction":"column"}},t.content.map((t=>e("span",{style:t.style,direction:Oe.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:`${Qw}px`,x2:`${Qw}px`,y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:`0 0 ${Qw} ${Qw}`},t)}(e):t.content}function nk(e,t){return({h:n,data:r,style:o})=>{const i=r[0].title,a=r.filter((e=>e.title===i)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:Oe.detectTextDirection(t)},t);return e("tr",{},n)}(n,i),l=[s];if(a.slice(0,ek).forEach((e=>{l.push(n("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Oe.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const o=tk(t,e);return t("td",r,o)}))}(e.row,{h:n,style:o})))})),r.length>ek){const o=r.length-ek;l.push(...function(e,t,n,r){const o=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,i=Oe.detectTextDirection(o);return[e("tr",{},e("td",{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:3},"")),e("tr",{},e("td",{style:{"font-weight":"bold","text-align":n?"right":"left",direction:i},colspan:3},o))]}(n,e,t,o))}return l}}function rk(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:o}=r,i=qe({key:e.tooltip,rtl:o});return ie(!0,i,{settings:{extract:Zw(e,t),content:nk(n,o),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function ok(e,t){const n=t.element.getBoundingClientRect();return{x:(e.center?e.center.x:e.clientX)-n.left,y:(e.center?e.center.y:e.clientY)-n.top}}function ik(e,{chart:t,viewState:n,trendLineModel:r,layoutService:o,rtl:i}){const{isContinuous:a}=o.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=ok(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:o}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=ok(r,t),u=t.shapesAt({cx:(c=l).x,cy:c.y,r:3},s);var c;if(u.length){const r=function(e,t,n,r){let o=(e.x-t.rect.computed.x)/t.rect.computed.width;o=r?1-o:o;const{min:i,max:a}=n.get("zoom");return i+(a-i)*o}(l,a,n,i),s=t.scale(e.majorInnerScale),c=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);u.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=c,e.data.minor.value=o(e.data.layer.value,r).y}))}return u}}return n=>{const r=t.component(e.tooltip);if(r&&(n=>t.componentsFromPoint({x:n.center?n.center.x:n.clientX,y:n.center?n.center.y:n.clientY}).some((t=>t.key===e.tooltipOverlay)))(n)){const e=l(n,r);return e.length?(r.emit("show",n,{nodes:e}),!0):(r.emit("hide"),!1)}return!1}}const ak=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},sk=e=>{ak(e),e.qMultiDimMode="Sum",e.qXColIx=0};function lk(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!be.dimensionless(n)&&!be.groupedByDimension(n)&&(r||!be.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:Vw.HEADER,itemTitleRef:e=>{const n=typeof e.label;return"string"===n&&e.label?e.label:"object"===n?e.label.qStringExpression?e.label.qStringExpression.qExpr:e.label.qValueExpression.qExpr:t.get(Vw.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:Vw.ADD_BUTTON,add:sk,globalChange:e=>{const t=o(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!o(e,"dimensionAxis.continuousAuto",!1)&&e.preferContinuousAxis)(e)?"Possible":"Never";t.forEach((e=>{e.qContinuousXAxis=r})),n.onGlobalChange(e,t)},items:{label:{ref:"label",type:"string",expression:"optional",translation:"Common.Label",defaultValue:""},type:{ref:"qType",type:"string",component:"dropdown",translation:Vw.TYPE,options:[{value:Lw,translation:Vw.TYPES.AVERAGE},{value:Nw,translation:Vw.TYPES.LINEAR},{value:Ow,translation:Vw.TYPES.POLYNOMIAL2},{value:Dw,translation:Vw.TYPES.POLYNOMIAL3},{value:Aw,translation:Vw.TYPES.POLYNOMIAL4},{value:Iw,translation:Vw.TYPES.EXPONENTIAL},{value:Rw,translation:Vw.TYPES.LOG},{value:Pw,translation:Vw.TYPES.POWER}],defaultValue:Lw},autoColor:{ref:"style.autoColor",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},paletteColor:{ref:"style.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:Ww,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:Vw.STYLE.DASHED,type:"boolean",defaultValue:!0,change:ak}}}}var uk,ck;var dk=function(){if(ck)return uk;ck=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},uk=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},uk}(),fk=ee(dk);const pk={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 mk=e=>(Object.keys(fk.prototype).forEach((t=>{e[t]=fk.prototype[t]})),fk.init(e),e);var hk={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}},gk={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",MAJOR_NUM:"majorNum",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",STACK:"stack",BAR_AXIS:"bar-axis",GROUP_AXIS:"group-axis",BAR_OOB_MAX:"bar-oob-max",BAR_OOB_MIN:"bar-oob-min",STACK_TOTAL_BAR:"stack-total-bar",BASE_TOOLTIP:"tooltip",LEGEND_CAT_TOOLTIP:"legend-cat-tooltip",LEGEND_COLOR_CAT:"legend-color-cat",MEASURE_REF_LINE:"mes-ref-line",DIMENSION_REF_LINE:"dim-ref-line",MEASURE_REF_LINE_LABEL:"mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label",TREND_LINES_TOOLTIP:"trend-lines-tooltip",TREND_LINES_TOOLTIP_OVERLAY:"trend-lines-tooltip-overlay"},COLLECTION:{MAIN:"main-collection",MINI:"mini-collection",MINI_STACK:"mini-stack-collection",MINI_CONTINUOUS:"mini-continuous-collection",STACK_TOTAL:"stack-total-collection"},FORMATTER:{MINOR:"bar",COLOR:"fill"},STYLING:{AXIS:"axis"}};const yk=({layout:e,flags:t})=>{var n,r,o,i;if(null==t||!t.isEnabled("TLV_800_BUTTERFLY_CHART"))return!1;const a=null==e||null===(n=e.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})),s=null==e||null===(r=e.qHyperCube)||void 0===r||null===(r=r.qMeasureInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})),l=null!==(o=null==a?void 0:a.length)&&void 0!==o?o:0,u=null!==(i=null==s?void 0:s.length)&&void 0!==i?i:0;return 1===l&&2===u},vk=e=>({layout:t})=>{var n;const r=fe.canBeContinuous(t),o=be.continuous(t),i=be.dimensionless(t),a=yk({layout:t,flags:e})&&"butterfly"===(null==t||null===(n=t.barGrouping)||void 0===n?void 0:n.grouping);return{canBeContinuous:r,isDiscrete:!o,isContinuous:o,isTime:fe.isTime(o,t),isDimensionless:i,isSimple:be.simple(t),isGrouped:!a&&be.grouped(t),isGroupedByMeasure:!a&&be.groupedByMeasure(t),isGroupedByDimension:!a&&be.groupedByDimension(t),isStacked:!a&&be.stacked(t),isStackedByDimension:!a&&be.stackedByDimension(t),isStackedByMeasure:!a&&be.stackedByMeasure(t),isSnapshot:be.snapshot(t),isButterfly:a}},bk={extractDimsAndNode(e){const t=[];let n;return e.forEach((e=>{if(e.key===gk.COMPONENT.BAR){n=e;const r=o(e,"data.selectionDimension",!1);r&&(t.push(r.label),r.label!==e.data.label&&t.push(e.data.label))}})),{nodeDims:t,node:n}}};function xk({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:o}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==o.event&&r({componentName:"continuousRangeBrush",brushName:!1})}function Sk({chart:e,actions:t,selections:n}){const r=e.scale(gk.SCALE.MAIN.MAJOR);return d({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:xk},custom:{getActions:()=>t},setBrushAliases({defaultFunc:e,brush:t}){e(),t.addKeyAlias("miniCube/qDimensionInfo/0","qHyperCube/qDimensionInfo/0"),t.addKeyAlias("miniCube/qDimensionInfo/1","qHyperCube/qDimensionInfo/1")}}})}const Mk=e=>{const t=e.qDimensionInfo.length;for(let n=0;n<t;n++){const r=e.qDimensionInfo[n];if(!(r.qLocked||r.qCardinalities.qHypercubeCardinal<=1&&n<t-1))return n}};function Ck({layout:e,defaultAuto:t}){return e.qHyperCube.qDimensionInfo.length>1?{mode:"byDimension",useDimColVal:!0,useBaseColors:"dimension",byDimDef:{activeDimensionIndex:1}}:e.qHyperCube.qMeasureInfo.length>1?{mode:"primary",useBaseColors:"measure",paletteColor:null}:t(e)}function wk({app:e,model:t,translator:n,picasso:r,localeInfo:o,theme:i,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:u}){const{isContinuous:c,isStacked:d}=s.meta,p={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const m=[],{isReduced:h}=u.model().mode,g=c||h||d,y=!c&&(h||d)&&l?l.getHyperCube():void 0,v=y?"legendCube":void 0;return p.main=f({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:Ck,key:gk.SCALE.MAIN.COLOR},createConfig:()=>({hc:g?y||s.getHyperCube():u.model().cube,source:g?v:"miniCube",theme:i})}),m.push(p.main.initialize()),c&&(p.mini=f({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:Ck,key:gk.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:i})}),m.push(p.mini.initialize())),Promise.all(m)},getMain:()=>p.main,getMini:()=>p.mini}}const kk={getMaxGlyphCount(e,t){const{qDimensionInfo:n}=e,{qApprMaxGlyphCount:r}=n[t];return r},getDimensionSize(e){var t;const n=null==e||null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal,{qLocked:r=0,qOption:o=0,qSelected:i=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+o+i:n}};function Tk({layoutService:e}){return p({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0,LimitedData:{condition:()=>{const{isContinuous:t,isTwoDimensional:n}=e.meta;if(!t||!n)return!1;const r=e.getLayout().qHyperCube.qDimensionInfo[1];return kk.getDimensionSize(r)>fe.maxNumberOfLines}},OnlyNegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.every((e=>{const{qMin:t,qMax:n}=e;return t<0&&n<0}))}return!1},alignment:"center"},NegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.some((e=>{const{qMin:t}=e;return t<0}))}return!1}}}}})}function qk(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function Ek(e){return e.some(qk)}function Lk(e,t){let n=NaN,r=NaN;return e.forEach((e=>{Ek(e)||e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(n=Number.isNaN(n)?e.qNum:Math.min(e.qNum,n),r=Number.isNaN(r)?e.qNum:Math.max(e.qNum,r))}))})),{min:n,max:r}}function Nk(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");e.meta.isButterfly||"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"),e.meta.isButterfly&&(t=-n))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function Ok(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!Ek(e)){let o=0,i=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?i+=e.qNum:o+=e.qNum)})),n=Number.isNaN(n)?o:Math.min(o,n),r=Number.isNaN(r)?i:Math.max(i,r)}})),{min:n,max:r}}function Dk(e,t){const n={};e.forEach((e=>{if(!Ek(e)){const r=e[0].qElemNumber;n[r]=n[r]?n[r]:{min:0,max:0,cId:r},e.slice(t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?n[r].max+=e.qNum:n[r].min+=e.qNum)}))}}));let r=NaN,o=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),o=Number.isNaN(o)?n[e].max:Math.max(n[e].max,o)})),{min:r,max:o}}function Ak(e){return"number"==typeof e&&!Number.isNaN(e)}function Ik(e){const t=e.getHyperCubeValue("qMeasureInfo");return{min:Math.min(...t.filter((e=>Ak(e.qMin))).map((e=>e.qMin))),max:Math.max(...t.filter((e=>Ak(e.qMax))).map((e=>e.qMax)))}}function Rk(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function Pk(e){return!Number.isNaN(+e.qNum)}function zk(e){return e.qNum}function jk(e){return!Number.isNaN(+e.qNum)}function Fk(e){return e.qNum}function Bk(e,t){return e.push(...t),e}const{getValueWithOffset:_k,isNumber:Hk}=pa,$k=5,Vk=.2;function Wk(e,t){return Math.abs(e/t)<$k||0===t}function Uk({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=Ok,stackedByDimensionExtractor:i=Dk,straightExtractor:a=Lk,measureInfoExtractor:s=Ik,explicitExtractor:l=Nk}=n,{meta:u}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:o}){let i,a;if(Array.isArray(n)?({min:i,max:a}=this.extractFromStacked(n)):({min:i,max:a}=this.extractFromStraight(e,o)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();i=Number.isFinite(e)?Math.min(i,e):i,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),u=this.extractExplicit(),c=[0,i,a].filter((e=>Hk(e)));let d=Math.min(...c),f=Math.max(...c);d=Wk(s,d)?Math.min(d,s):d,f=Wk(l,f)?Math.max(f,l):f;const p=[u.explicitMin,u.explicitMax,d,f].filter((e=>Hk(e)));return i=Number.isNaN(u.explicitMin)?Math.min(...p):u.explicitMin,a=Number.isNaN(u.explicitMax)?Math.max(...p):u.explicitMax,i===a&&(Number.isNaN(u.explicitMin)?i=_k(i,-Vk):Number.isNaN(u.explicitMax)&&(a=_k(a,Vk))),{min:i,max:a,implicitMin:d,implicitMax:f,otherMin:s,otherMax:l,hasOtherMin:s<i,hasOtherMax:l>a,...u}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:o}=l(e);return{hasExplicitMinMax:r||o,hasExplicitMin:r,hasExplicitMax:o,explicitMin:t,explicitMax:n}},extractFromStacked(e){const t=e.length?e[0].qData:[];return(n=t).length?{min:Math.min(...n[0].qSubNodes.map((e=>e.qMinNeg))),max:Math.max(...n[0].qSubNodes.map((e=>e.qMaxPos)))}:{min:0,max:0};var n},extractFromStraight(t,n){const o=t.length?t[0].qMatrix:[];return u.isStackedByMeasure?r(o,n):u.isStackedByDimension?i(o,n):e.getHyperCubeValue("qHasOtherValues")?a(o,n):s(e)},extractOthers:e=>u.isStackedByDimension?function(e){const t=Rk(o(e,"0.qData.0.qSubNodes",[]),qk,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):u.isGroupedByDimension?function(e){const t=o(e,"0.qMatrix",[]).filter(Ek).reduce(Bk,[]).filter(jk).map(Fk);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=Rk(o(e,"0.qMatrix",[]),Ek,[]).filter(Pk).map(zk);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function Kk(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:o}=t,i=e=>!e.length&&r.mode.K,a=e=>{const t=o("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=o("qMeasureInfo").length,s=o("qDimensionInfo").length,l=o("qHasOtherValues");if(!r.isStacked&&!l)return Promise.resolve({qDataPages:[{}],count:t});if(r.isContinuous){const e=r.isStackedByDimension?s:t;return n.fetchMinMaxData().then((t=>({qDataPages:t,count:e})))}const u=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(i(e))return a(l);let t=[];return l&&(t=r.mode.K?o("qStackedDataPages",[]):o("qDataPages",[])),{qDataPages:e,count:u,others:t}}))}}}(e),n=Uk(e);return t.resolve().then((e=>n.extract(e)))}const Gk=({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}}}),Yk="lasso",Xk=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:Yk,enable(e,n){if(this.started===Yk||!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!==Yk&&(o.actions.select.emit("start",Yk),this.chart.component(e).emit("lassoStart",t),this.started=Yk)},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",Yk),"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});const Jk=({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),u=i.hitRadius?i.hitRadius(a):0,c=u>0?{cx:n.x,cy:n.y,r:u}:n,d=i.shapesAt?i.shapesAt(c):this.chart.shapesAt(c,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),f=this.chart.component("tooltip"),p="mouse"!==t.pointerType&&f&&f.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(f&&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,f,{nodes:n,opts:i,customTooltipModel:e})}else f.emit("show",t,{nodes:d})}else p&&f.emit("hide")}}}};const Zk=({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 Qk=({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 eT(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:u=!1,multiple:c=!1,toLabel:d,onEdited:f}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:f?{bubbleEnd(){f()}}:{},settings:{brush:u?{context:"selection",observe:!0}:"selection",scale:s,multiple:c,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=Qk(e,t,"range");return{interactions:[e.onEdited?Zk(e,t):null,r].filter(Boolean),components:[n]}}const tT={refLines:{minimumLayoutMode:"SPARK"},measureAxisTitle:{minimumLayoutMode:"XSMALL"},dimensionAxisTitle:{minimumLayoutMode:"XSMALL"},measureAxis:{minimumLayoutMode:"XSMALL"},dimensionAxis:{minimumLayoutMode:"XSMALL"},gridLines:{minimumLayoutMode:"XSMALL"},refLinesLabels:{minimumLayoutMode:"SMALL"},horizontalDimensionAxis:{minimumLayoutMode:{width:"XSMALL",height:"SMALL"}},verticalDimensionAxis:{minimumLayoutMode:{width:"SMALL",height:"XSMALL"}},horizontalDimensionAxisTitle:{minimumLayoutMode:{width:"XSMALL",height:"MEDIUM"}},verticalDimensionAxisTitle:{minimumLayoutMode:{width:"MEDIUM",height:"XSMALL"}}},nT="inner-time-axis",rT="outer-time-axis";const oT={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=kk.getMaxGlyphCount(e,r)}else e.qMeasureInfo.forEach((e=>{n=Math.max(n,e.qFallbackTitle.length)}));return n},getAxisData(e,t){let n;return n=e.qDimensionInfo.length?o(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=oT.getAxisData(e,t),r=!e.qDimensionInfo.length,o=r||t?void 0:e.qDimensionInfo.length-1,i=oT.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return we.getAdjustedMaxGlyphCount(i,n,o,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=oT.getAxisData(e),n=kk.getMaxGlyphCount(e,0);return we.getAdjustedMaxGlyphCount(n,t,0)}};var iT={LOWERGLYPHCOUNT:3,UPPERGLYPHCOUNT:13};function aT(e,t,n,r){const{meta:o}=t.layoutService,i=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);o.isContinuous?i.push(...function(e,t,n,r){const{meta:o}=t.layoutService,{axis:i,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:u}=t.layoutService.getLayoutValue("gridLine",{}),c=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,f=tT[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,p={type:"grid-line",x:{},layout:{minimumLayoutMode:tT.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:rs.lines.trackBy,compensateForLayoutChanges:rs.lines.compensateForLayoutChanges}},m=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(o.isTime){if(d){const e=n?"end":"start",r=n?1:0,o="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:i.line.major.color},minorGuideLine:{stroke:i.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:o,justify:r},guideLine:{major:{justify:r},minor:{align:o}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:rs.axes.trackBy({isTime:!0}),compensateForLayoutChanges:rs.axes.compensateForLayoutChanges({isTime:!0})}};c.push(ie(!0,{},d,{key:nT,scale:gk.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===u}},style:ie(!0,{},a,{line:{stroke:i.line.major.color},majorGuideLine:{stroke:i.line.minor.color},minorGuideLine:{stroke:i.line.major.color}})})),c.push(ie(!0,{},d,{key:rT,scale:gk.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),c.push({type:"axis-overlay",key:"outer-axis-overlay",scale:gk.SCALE.MAIN.MAJOR,layout:{dock:`@${rT}`,minimumLayoutMode:f}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:gk.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${nT}`,minimumLayoutMode:f}}),c.push(m)}return c.push(ie(!0,{},p,{key:"inner-time-grid",x:{scale:gk.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),c.push(ie(!0,{},p,{key:"outer-time-grid",x:{scale:gk.SCALE.MAIN.MAJOR}})),c}if(o.isContinuous){const e="continuous-axis";d&&(c.push({type:"axis",key:e,renderer:ys(t.flags),scale:gk.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:i.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:rs.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:rs.axes.compensateForLayoutChanges({isContinuous:!0})}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:gk.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:f}}),c.push(m)),c.push(ie(!0,{},p,{key:"continuous-grid",x:{scale:gk.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return c}(e,t,n,r)):i.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:o}=t.layoutService,i=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),u="horizontal"===t.dockService.meta.major.orientation,c=u?e.dimensionAxis.label:"auto",d="horizontal"===c?void 0:t.dockService.meta.minor.size/4,f=t.styleService.axis.label.getStyle(),p={type:"axis",renderer:ys(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:tT[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:c,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...f},line:{show:!r,stroke:i.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:rs.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:rs.axes.compensateForLayoutChanges({isHorizontal:u})}};l&&a.push(ie(!0,{},p,{key:"group-axis",scale:gk.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":p.settings.labels.mode,maxGlyphCount:oT.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(u||!s)&&p.settings.line.show}}}));const m=oT.getBarAxisMaxGlyphCount(e.qHyperCube,o.isStackedByDimension);return s&&a.push(ie(!0,{},p,{key:gk.COMPONENT.BAR_AXIS,scale:gk.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:m,maxLengthPx:d,tiltThreshold:m>iT.LOWERGLYPHCOUNT&&m<iT.UPPERGLYPHCOUNT?1:void 0},line:{show:!(u&&l)&&p.settings.line.show}}})),u||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),u=t.styleService.axis.label.getStyle();return a&&i.push({type:"axis",key:"y-axis",renderer:ys(t.flags),formatter:gk.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:tT.measureAxis.minimumLayoutMode},scale:gk.SCALE.MAIN.MINOR,settings:{labels:{show:s,...u},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}},animations:{enabled:t.viewModel.animations.enabled,trackBy:rs.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:rs.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),i}var sT={BAR:{WIDTH:.7,STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};const lT=.7,uT=.9;function cT({layoutService:e,discrete:t,componentKey:n}){var r;const{isContinuous:o,isGrouped:i}=e.meta;if(o)return 1;const a=(e.getLayoutValue("components",[])||[]).filter((e=>e.key===n))[0];if(null!=a&&null!==(r=a.style)&&void 0!==r&&r.width){const{style:e}=a;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=sT.BAR.STROKE.WIDTH[e.strokeWidth.toUpperCase()]/t.query.getItemSize(),r=e.width+n;return r>1?e.width-(r-1):e.width}:e.width}return i?uT:lT}const dT={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function fT(e,t,n={}){return({data:r})=>{const o=e.chart.component(t).rect;if(!r.items.length||!o)return 2;const{min:i,max:a}=e.viewState.get("zoom");if(n[[i,a]])return n[[i,a]];const s=dT[le.getLayoutMode(o.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-i),u=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===u)return s;const c=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/u/.2,1));return n[[i,a]]=Math.max(2,Math.min(s,c)),n[[i,a]]}}function pT(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function mT(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function hT(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function gT(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const yT={MAX:"max",MIN:"min"},vT={min:"Min",max:"Max"};function bT(e,t,n){return void 0===n?pT(e,t)||mT(e,t):n===yT.MAX?pT(e,t):mT(e,t)}function xT({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${vT[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===yT.MAX?e.implicitMax:e.implicitMin;return!bT(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function ST(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:o,dockService:i,themeService:a}=e,s=o.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===yT.MAX?s.implicitMax:s.implicitMin;if(!bT(Number(l.toFixed(13)),s,n))return!1;const{orientation:u}=t.settings,c=n===yT.MAX?i.meta.minor.end:i.meta.minor.start;let d="end";r&&(d=n===yT.MAX?"sumOfPositives":"sumOfNegatives");const f=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:c},data:t.data,brush:t.brush,settings:{orientation:u,major:t.settings.major,minor:t.settings.minor,dockValue:Me.getDockValue(c),oob:ie({},t.settings.box,{fill:f.outOfRange.color,alignment:1,opacity:1,show:function(e){var t;return!0!==(null===(t=e.datum.null)||void 0===t?void 0:t.value)&&((!r||0!==e.datum[d].value)&&bT(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:rs.barOobs.compensateForLayoutChanges}}}function MT(e){return Math.min(Math.max(0,e),1)}const CT=(e,{chart:t,type:n,componentKey:r,collectionKey:o})=>{const{layoutService:i,dockService:a,viewCache:s}=e,{isStacked:l}=i.meta,u=s.get("minorMinMax"),{meta:c}=e.layoutService;if(!xT({minorMinMax:u,type:n}))return!1;let d;c.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:c.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);return{type:"box",key:`${gk.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:o},settings:{orientation:a.meta.minor.orientation,major:{scale:gk.SCALE.MAIN.MAJOR,fn:d},minor:{scale:gk.SCALE.MAIN.MINOR,start(e){var n;return MT(t.scale(gk.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(n=n.start)||void 0===n?void 0:n.value)||0))},end(e){const r=t.scale(gk.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r[n]();return MT(r(i))}},box:{width:cT({layoutService:e.layoutService,discrete:e.discrete,componentKey:r}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(gk.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r.max();return"max"===n?i>r.max():i<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}};function wT(e,t){const{style:n,styleService:r,dockService:o}=t,i=r.label.getStyle(),a=i.useContrastColor&&!e.onBackground?function(e){return function(t){return Ot.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):i.fill,s="horizontal"===o.meta.major.orientation,l=e.padding||{left:s?0:4,right:s?0:4,top:s?4:0,bottom:s?4:0};return{position:e.position,justify:e.justify,fill:a,overflow:e.overflow,background:e.background,padding:l}}function kT(e){return{placements:e.simplifiedPlacements.map((t=>wT(t,e))),label:e.label}}function TT(e,t){if(t){if(function(e,t){return pT(e,t)}(e,t))return-1;if(function(e,t){return mT(e,t)}(e,t))return 1}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)}const qT="vertical",ET="horizontal";function LT(e,t,n,r){const o=TT(e,r);let i="up";return t===qT&&o<0?i="down":t===ET&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}function NT(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!r||!o&&!!n.showSegmentLabels}function OT(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!!r&&(!!o||!1!==n.showTotalLabels)}function DT(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}function AT({layout:e,component:t,minorScale:n},r,o){if(!NT(e,r))return!1;const{viewModel:i,ds:a,viewCache:s,layoutService:l,dockService:u,themeService:c}=r,{meta:d}=l,f=s.get("minorMinMax"),p=c.getStyles(),m=r.styleService.label.getStyle();let h;!d.isStacked&&(h=d.isStacked?1:0);const g=0===h?1:0,y=d.isStacked?.5:1,v=i.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,S=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>S?b(e.data.segment.value):""}:function(e){return e.data.end.label};const M={label:x,simplifiedPlacements:DT(h,g,y,d.isContinuous),style:p.label.value},C=[kT(ie(r,M))],w={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>LT(e.data.end.value,u.meta.minor.orientation,o,f),labels:C,fontSize:parseInt(m.fontSize,10),fontFamily:m.fontFamily,linkData:rs.labels.linkData}}},k=[w],T={key:"bar-labels",type:"labels",renderer:ys(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:k},animations:{enabled:r.viewModel.animations.enabled,trackBy:rs.labels.trackBy,compensateForLayoutChanges:rs.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(T.beforeRender=()=>{S=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",o=t.chart.component(e),i=o&&o.rect?o.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/i}(t,r,n)}),T}const IT={isSameMeasureAndColorRow:(e,t,n)=>t&&e&&t[0].content[0]===e[0].content[0]&&t[0].content[1]===e[0].content[1]&&t[1].content[n?0:1]===e[1].content[0],getTitle(e,t){const n=e.data;let r;return t.isStackedByDimension?r=n.stack?n.stack.label:void 0:t.isGroupedByDimension&&(r=n.group?n.group.label:void 0),void 0!==r?`${n.label}, ${r}`:n.label},getMeasure(e,t,n,r,o){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const i=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:i.measureIndex.value]:void 0,s=n.isStacked?{source:{key:i.source.key,field:a},label:!0===(null===(l=i.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&o?o(i.segment.value):i.segment.label}:i.end;var l;return De.getMeasure(e,s)},getMeasures(e,t,n,r,o){const i=e.resources.dataset;return t.map((e=>IT.getMeasure(i,e,n,r,o))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return zC({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,o){const i={title:IT.getTitle(t,n),color:De.getColor(e,t,r),measures:IT.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,o)};if(IT.useCustomTooltip(r)){var a,s;const n=IT.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);i.customMeasures=n.customTooltipAttrExpsArr,i.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===xC.CUSTOM.TITLE)),i.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===xC.CUSTOM.DESCRIPTION));let o=[];(t.childrenNodes?t.childrenNodes:[t]).forEach((e=>{var t;(null===(t=e.data.customTooltipImages)||void 0===t?void 0:t.length)>0&&!Array.isArray(e.data.customTooltipImages[0])&&(o=e.data.customTooltipImages)})),o.length>0&&(i.customImages=o);const d=r.layoutService.getLayout();var l,u,c;if(null!==(a=d.tooltip)&&void 0!==a&&null!==(a=a.chart)&&void 0!==a&&null!==(a=a.object)&&void 0!==a&&a.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(s=r.customTooltipModel.model)||void 0===s?void 0:s.getEffectiveProperties))if(null!==(l=(u=r.app).isInModalSelection)&&void 0!==l&&l.call(u)){if((null==d||null===(c=d.qHyperCube)||void 0===c||null===(c=c.qDimensionInfo)||void 0===c?void 0:c.length)>0){LC.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");i.customLimitation=e}}else{const t=LC.createContainer({ctx:e,layout:d});i.customChart=t}}return i},getTotalStackTitle:(e,t)=>e>0?t?t.get("Object.ChartTooltip.sumOfPositives"):"Sum of positives":e<0?t?t.get("Object.ChartTooltip.sumOfNegatives"):"Sum of negatives":"",extractStackTotalBarTooltipData(e,t,n){const r=e.data.label,o=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${IT.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:o}},extractTooltipData(e,t){const n=t.chart.formatter(gk.FORMATTER.MINOR),{meta:r}=t.layoutService,o=e.node.childrenNodes?e.node.childrenNodes:[e.node],i=Math.max(0,o.length-6);o.length=Math.min(o.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>IT.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:o.map((o=>IT.extractBarTooltipData(e,o,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:i}},extractBarNodeData(e,t,n,r,o,i,a){let s=!o&&De.getTitleRow(t,r);const l=De.hideColorRow(t,n),u=!i&&!l&&De.getColorRow(e,t,r),c=t.measures.map((o=>!a&&De.getMeasureRow(o,e,t,r,l&&o.field===n.coloring.field))),d=c.filter((e=>!IT.isSameMeasureAndColorRow(e,u,r)));if(IT.useCustomTooltip(n)){const n=o?[]:t.customMeasures.map((n=>De.getMeasureRow(n,e,t,r,!1))),i=!(!t.customTitle[0]||o)&&De.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||o)&&De.getDescriptionRow(t.customDescription[0],r);s=!IT.shouldIgnoreTitleRowForCtt(i,a,d,n)&&s;const l=[i,a,s,u,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(AC.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>AC.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,u,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&De.getTitleRow(t,n),o=t.measures.map((r=>De.getMeasureRow(r,e,t,n,!1)));return[r,...o].filter(Boolean)},useCustomTooltip:e=>o(e,"customTooltipModel.useCustomTooltip",!1),shouldIgnoreTitleRow:(e,t)=>e.isDimensionless||t>0&&!e.isGroupedByDimension&&!e.isStackedByDimension,shouldIgnoreTitleRowForCtt:(e,t,n,r)=>!1===n[0]&&0===r.length&&(e.length>0||t.length>0),shouldIgnoreColorRow:(e,t)=>t>0&&(e.isGroupedByMeasure||e.isStackedByMeasure),shouldIgnoreMeasureRow:(e,t,n)=>e&&t.measures.some((e=>e.field===n.coloring.field)),shouldIgnoreDefaultRows:(e,t)=>IT.useCustomTooltip(t)&&o(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:o}=t.layoutService,i=t.layoutService.getLayout(),a=r.length;let s,l,u=[];const c=IT.shouldIgnoreDefaultRows(i,t);for(s=0;s<a;s++){l=r[s];const i=IT.shouldIgnoreTitleRow(o,s),d=c||IT.shouldIgnoreColorRow(o,s),f=c||IT.shouldIgnoreMeasureRow(d,l,t);if(u=u.concat(IT.extractBarNodeData(e,l,t,n,i,d,f)),u.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:u,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:u,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(IT.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:o,stackTotalBarTooltipData:i}=IT.extractTooltipData(e,t),a=IT.extractStackTotalBarsData(e,n,i);a.length&&a.push(De.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=IT.extractBarsData(e,t,n,r),u=a.concat(s),c=o+l;return c&&u.push(De.getNMoreRow(c,t.translator,n)),u},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return ms.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:o,groupProp:i}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",u=e.chart.scale(n).pxScale(a[l]);let c,d,f;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;c=o.value,d=n===r&&void 0!==c?(u([c,0])+u([c,t-1]))/2:0,f=n===r&&void 0!==c?u.bandwidth([c,0]):0}else{const{value:e}=o;c=o[i]?o[i].value:void 0,d=u(n===r&&void 0!==c?[c,e]:e),f=n===r&&void 0!==c?u.bandwidth([c,e]):u.bandwidth(e)}const p=(d+f/2)*a[l],m={width:0,height:0};return"horizontal"===s?(m.x=p,m.y=a.height):(m.y=p,m.x=0),m},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:o,majorScale:i,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let u;return u=l.length?IT.calculateBoundsFromBars(l):IT.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===o?i:a,majorScale:i,data:t[0].data,groupProp:s}),u},filterNodesOnKeys:(e,t)=>e.filter((e=>e.data&&t.indexOf(e.key)>-1)),isBarMatchingLabel:(e,t)=>t.data.value===e.data.value,isBarMatchingLabelOnProp:(e,t,n)=>t.data.value===(e.data[n]?e.data[n].value:e.data.value),findBarsMatchingLabels(e,t,n,r){const o=e.filter((e=>t.some((t=>n(e,t,r)))));return o},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=IT.isBarMatchingLabelOnProp;return IT.findBarsMatchingLabels(e,t,r,n)},findBarsFromBarLabelsInGroupedByDim:(e,t,n)=>e.filter((e=>t.some((t=>t.data.group&&t.data.group.value===e.data[n].value&&t.data.value===e.data.value)))),findBarsFromLabelsInSingleDim(e,t){const n=IT.isBarMatchingLabel;return IT.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const o=t.filter((e=>e.key===n)),i=t.filter((e=>e.key!==n)),a=IT.findBarsFromBarLabelsInGroupedByDim(e,o,r),s=IT.findBarsFromGroupLabelsInGroupedByDim(e,i,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=IT.isBarMatchingLabel;return IT.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=IT.isBarMatchingLabel;return IT.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=IT.isBarMatchingLabelOnProp;return IT.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>IT.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:o,stackProp:i}){const{meta:a}=t.layoutService,s=IT.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?IT.findBarsFromLabelsInStackedByDim(s,e,i):a.isStackedByMeasure?IT.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?IT.findBarsFromLabelsInGroupedByDim(s,e,r,o):IT.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const o=IT.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?IT.findStackTotalBarsFromLabelsInStackedByDim(o,e):IT.findStackTotalBarsFromLabelsInStackedByMeasure(o,e)}return[]},isSingleBarMode:(e,t)=>(e.isSimple||1===t.length)&&t[0].children&&t[0].children.length,filterNodesOnLabels({labels:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:u,majorInnerScale:c,filterFn:d}){const{meta:f}=t.layoutService;if(e.length){let p=IT.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(p=p.filter(d)),IT.isSingleBarMode(f,p))return[p[0]];if(p.length){let f=IT.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,i,a],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});d&&(f=f.filter(d));const m=IT.calculateTotalBounds({opts:t,labels:e,bars:f,barKey:n,barAxisKey:o,groupProp:s,majorScale:u,majorInnerScale:c}),h=IT.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:m,childrenNodes:p,data:p.map((e=>e.data)),stackTotalBarNodes:h};return[g]}return[]}return[]},filterNodesForOob:(e,t,n)=>e.key===t&&0===e.children.length||e.key===n,filterNodes({nodes:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,groupAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d}){let f=IT.filterNodesOnKeys(e,[o,i]),p=f&&f.length?[f[0]]:[];const m=IT.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d});if(m&&m.length)return m;const{meta:h}=t.layoutService;if(h.isStackedByMeasure){f=IT.filterNodesOnKeys(e,[a,s]),p=f&&f.length?[f[0]]:[];const i=e=>IT.filterNodesForOob(e,n,a),m=IT.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}if(h.isStackedByDimension){f=IT.filterNodesOnKeys(e,[a,s]),p=f&&f.length?[f[0]]:[];const i=e=>IT.filterNodesForOob(e,n,a),m=IT.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}const g=IT.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function RT(e,t={},n){let r=[];const o=qe({key:gk.COMPONENT.BASE_TOOLTIP,rtl:n});return ie(!0,o,{scale:gk.SCALE.MAIN.COLOR,settings:{filter:e=>IT.filterNodes({nodes:e,opts:t,barKey:gk.COMPONENT.BAR,stackTotalBarKey:gk.COMPONENT.STACK_TOTAL_BAR,barAxisKey:gk.COMPONENT.BAR_AXIS,groupAxisKey:gk.COMPONENT.GROUP_AXIS,barOobMaxKey:gk.COMPONENT.BAR_OOB_MAX,barOobMinKey:gk.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],IT.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:o,properties:i,customTooltipModel:a}=t;o&&(null===(e=o.isInModalSelection)||void 0===e||!e.call(o))&&a.useCustomTooltip&&a.embed&&LC.show({app:o,properties:i,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const PT={extractData:(e,t)=>[De.getTitleRow({title:e.node.data.label},t)],filterNodes(e,t){const n=e.filter((e=>e.data&&e.key===t));return n.length?[n[0]]:[]}};function zT(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=qe({key:gk.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return ie(!0,r,{scale:gk.SCALE.MAIN.COLOR,settings:{filter:e=>PT.filterNodes(e,gk.COMPONENT.LEGEND_COLOR_CAT),extract:e=>PT.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function jT(e,{fill:t}){return{[gk.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[gk.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const FT=1,BT=3;function _T(e){return e.getLayoutValue("gridLine.auto")}function HT(e){return!_T(e)&&e.getLayoutValue("gridLine.spacing")===FT}function $T(e){return!_T(e)&&e.getLayoutValue("gridLine.spacing")===BT}const VT=e=>({enabled:e.animations.enabled,trackBy:rs.lines.trackBy,compensateForLayoutChanges:rs.lines.compensateForLayoutChanges}),WT=(e,{themeService:t,layoutService:n,dockService:r,viewModel:o})=>{if(!_T(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:i}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:tT.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!HT(n)||((e,t)=>t%2==0),stroke:i.line.major.color},minorTicks:{show:$T(n),stroke:i.line.minor.color},animations:VT(o)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=gk.SCALE.MAIN.MINOR,a};function UT(e,t){const n=[WT(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const o=n.get("minorMinMax");if(o.min>0||o.max<0)return!1;const i=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:gk.SCALE.MAIN.MINOR,line:{stroke:i.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:gk.SCALE.MAIN.MINOR,lines:a,animations:VT(r)}})(t)),n}const KT="areaPan",GT=e=>({type:"Pan",key:"panorama",options:{event:KT,pointers:1,threshold:10,enable(t,n){return this.started===KT||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===gk.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=KT;const n=e.viewState.get("zoom");this[KT]={min:n.min,max:n.max,size:e.chart.component(gk.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:o,size:i}=this[KT],a=-t.deltaX/i;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(o+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function YT(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:o}=e,{rtl:i}=t,a=Jh.event.onZoom({viewCache:n,viewState:r,chart:o},{threshold:100,rtl:i,targetKey:gk.COMPONENT.BAR}),s={last:0,diff:0};return{type:"Pinch",key:"continuous-pinch-zoom",options:{event:"zoom",pointers:2,threshold:0,enable:(t,n)=>!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===gk.COMPONENT.BAR))},events:{zoomstart(e){s.last=e.scale,e.preventDefault()},zoommove(e){const t=e.scale-s.last;(function(e){return Math.abs(e)>.01})(t)&&a(e.center,t>0?1:-1),e.preventDefault(),s.last=e.scale}}}}function XT({chart:e},t,n){const r=e.component(gk.COMPONENT.BASE_TOOLTIP);var o;r&&r.show&&(r.emit("hide"),null!=n&&null!==(o=n.customTooltipModel)&&void 0!==o&&o.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const i=e.component(gk.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&i.emit("hide");const a=e.component(gk.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function JT(e,t){const{viewCache:n,viewState:r,chart:o,trendLineModel:i,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?Jh.event.onZoom({viewCache:n,viewState:r,chart:o},{rtl:s,threshold:50,targetKey:gk.COMPONENT.BAR}):void 0,u=ik({majorInnerScale:gk.SCALE.MAIN.MAJOR_INNER,tooltip:gk.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:gk.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:o,viewState:r,trendLineModel:i,layoutService:a,rtl:s}),c=[gk.COMPONENT.BAR,gk.COMPONENT.BAR_AXIS,gk.COMPONENT.GROUP_AXIS,gk.COMPONENT.BAR_OOB_MAX,gk.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,f=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const o={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(o).filter((e=>e.key===gk.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(o,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===gk.COMPONENT.LEGEND_COLOR_CAT)),n&&(r=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,n))),r&&t.preventDefault(),XT(e,f,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(u(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(gk.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>c.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const o=d.getNodes(t,this.chart);f(t,r,{nodes:o,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const o=this.chart.component(gk.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&(n.some((e=>e.key===gk.COMPONENT.LEGEND_COLOR_CAT))?o.emit("show",t):o.emit("hide"))}},mouseup(t){2===t.button&&XT(this,f,e)},mouseleave(){XT(this,f,e)}}}}const ZT=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...vg({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[GT(e,t.rtl),YT(e,t)]]});function QT(e,t){const n=[ZT(e,t),JT(e,t),vg({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const eq=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:rs.bars.compensateForLayoutChanges});const tq=(e,t,{collectionKey:n})=>{if(!og({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r,viewModel:o},{collectionKey:i}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:i},settings:{box:ie(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:ie(!0,{},e.settings.major,{scale:t.scales.major}),minor:e.settings.minor,orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:eq(o)}}(e,t,{collectionKey:n});const{mode:r,scales:o}=t.reducedDataModel;let i;return r.isGroupedByDimension&&!r.isReduced?i=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(i=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2),{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>t.discrete.query.getCanScroll(),data:{collection:n},settings:{box:{...e.settings.box,fill:r.isReduced||r.isStackedByDimension?t.colorService.getMain().getSettings().others:t.colorService.getMain().getColor(),strokeWidth:0},major:{scale:o.major,fn:i},minor:{scale:o.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:eq(t.viewModel)}},{measureText:nq}=t.renderer("svg")();function rq(e,t,n){const r=function(e){const t=ie(!0,{},e);return delete t.data,t}(t.minor),o=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:o,getProp:i}){let a={invert:n,data:{extract:e.mode.isDimensionless?e.fields.minor.map(((e,t)=>({field:e,value:t}))):{source:"miniCube",field:"qDimensionInfo/0"}},type:e.mode.isDimensionless?"band":void 0,maxPxStep:r,align:o};return e.mode.isStackedByDimension?a.data.extract.field="qDimensionInfo/1":e.mode.isGroupedByDimension?e.mode.isReduced||(a.data={source:"miniCube",hierarchy:{value:e=>e.qElemNumber}}):e.mode.isGroupedByMeasure?(a=ie(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=ie(!0,{},t,{min:()=>i("continuousMin"),max:()=>i("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:o}}const oq=125,iq={NARROW:50,MEDIUM:100,WIDE:200};function aq(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return iq.NARROW;case 1:return iq.MEDIUM;case 2:return iq.WIDE;default:return t*oq}}(t);return Math.max(1,Math.round(e/n))}const sq=10;function lq(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function uq(e,t,n){return 0===t||0===e||t===n.length-1}function cq(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function dq(e,t,n,r,o){e.domain([t,n]),e.nice(sq);const[i,a]=e.domain();let s=e.ticks(sq);const l=function(e){return e.length%2==0}(s),u=function(e){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}(s),c=u?uq:lq;s=s.filter(c),l&&!u&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=o?o.formatter(gk.FORMATTER.MINOR):void 0;return cq(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:i,roundedMax:a,ticks:s}}function fq(e,t,n,r,o,i,a,s){const l=i.formatter(gk.FORMATTER.MINOR),u=s.getStyles(),c="horizontal"===a.meta.major.orientation?"height":"width",d=e=>nq({text:e,fontSize:u.axis.label.name.fontSize,fontFamily:u.axis.label.name.fontFamily})[c];let[f,p]=e.domain(),m=e.ticks(r);function h(){const e=m.map(l);return!cq(e)&&function(e){const t=o/m.length;return Math.max(...e.map(d))<=t}(e)}for(let o=r-1;o>0&&!h();o--)e.domain([t,n]),e.nice(o),[f,p]=e.domain(),m=e.ticks(o);return{roundedMin:f,roundedMax:p,ticks:m}}const pq=(e,t)=>e.value-t.value,mq=e=>({value:e,isMinor:!1}),hq=e=>({value:e,isMinor:!0});function gq(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2;return e.filter((e=>(e=>Number.isNaN(t)||e>=t)(e)&&(e=>Number.isNaN(n)||e<=n)(e))).length<=r}function yq({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:o,viewModel:i,ds:a}){const{isButterfly:s}=r.meta,{explicitMin:l,explicitMax:u,hasExplicitMin:d,hasExplicitMax:f}=t.get("minorMinMax"),{min:p,max:m}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),h=p<=0&&m<=0?-1:1,g=s?Math.max(Math.abs(p),Math.abs(m)):m,y=s?-g:p,v=c((()=>{const s=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(gk.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),c=aq(s,r),p=function(e,t,n){const r=Pr().domain([e,t]);return r.nice(n),r}(y,g,c);let m,v,b=[];"SPARK"===n.meta.chart.mode?({roundedMin:m,roundedMax:v}=function(e,t){return{roundedMin:e,roundedMax:t}}(y,g)):(({roundedMin:m,roundedMax:v,ticks:b}=fq(p,y,g,c,s,e,n,o)),gq(b,l,u)&&({roundedMin:m,roundedMax:v,ticks:b}=dq(p,y,g,d||f,e)));const x=function(e,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}(b,1);b=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(d,l,b),b=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(f,u,b);let S=function(e,t){return[...e.map(mq),...t.map(hq)].sort(pq)}(b,x);if(r.meta.isButterfly){const e=i.fields.minor[0],t=void 0===e?void 0:a.field(e).formatter();"function"==typeof t&&(S=S.map((e=>({...e,label:t(Math.abs(e.value)*h)}))))}return{roundedMin:m,roundedMax:v,ticks:S}}),(()=>t.get("isPreRender")));return{values:()=>v().ticks,min:()=>d?l:v().roundedMin,max:()=>f?u:v().roundedMax}}function vq(e,{picasso:t,discrete:n,layoutService:r,dockService:o,viewModel:i,viewCache:a,reducedDataModel:s,colorService:l,themeService:u,viewState:c,chart:d,ds:f},{localeInfo:p,rtl:m}){const{meta:h}=r,{fields:g}=i,y=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,o.meta.chart.size["horizontal"===o.meta.major.orientation?"height":"width"]/4)},v=!("none"===r.getLayoutValue("measureAxis.show"))?(b=o.meta.minor.orientation,x=o.meta.minor.dock,"vertical"===b?"near"===x||"left"===x?0:1:"near"===x||"bottom"===x?1:0):.5;var b,x;const S={},M="vertical"===o.meta.minor.orientation&&m,C=l.getMain().getScales(),w=l.getMini().getScales();if(Object.assign(S,C,{reducedFill:w.reducedFill}),S[gk.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,viewModel:o,layoutService:i,themeService:a,ds:s},{rtl:l}){const u=yq({chart:e,dockService:n,viewCache:r,layoutService:i,themeService:a,viewModel:o,ds:s}),c={invert:"vertical"===n.meta.minor.orientation||l,ticks:{values:u.values},minorTicks:{count:1},min:u.min,max:u.max};return i.meta.isStacked||(c.data={source:"qHyperCube",fields:t.minor}),c}({chart:d,viewModel:i,dockService:o,viewCache:a,layoutService:r,themeService:u,ds:f},{rtl:m}),h.isGroupedByDimension)[gk.SCALE.MAIN.MAJOR_INNER,gk.SCALE.MAIN.MAJOR].forEach(((e,t)=>{S[e]={invert:M,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...i.selectionDimensionProp(t),group:h.isGroupedByDimension?{field:g.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:y,align:v}})),i.isDimensionLocked(0)||(S[gk.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(h.isGroupedByMeasure)S[gk.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:M,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:y,align:v};else if(h.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:o,picasso:i,viewState:a,localeInfo:s,themeService:l}=e,u=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),c=i.formatter("q-time"),d=l.getStyles(),f=e=>nq({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});o.set("qTimeAxisCache",[]);const p={get:(e,t=0)=>{const n=o.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{o.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(o.get("continuousMax")-o.get("continuousMin")),i=u().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...i].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:p},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:p}}}({picasso:t,localeInfo:p,viewState:c,viewModel:i,viewCache:a,themeService:u,layoutService:r},m);S[gk.SCALE.MAIN.MAJOR_INNER]=e,S[gk.SCALE.MAIN.MAJOR]=n}else h.isContinuous?S[gk.SCALE.MAIN.MAJOR]={type:"linear",invert:M,data:{extract:{key:"qHyperCube",field:g.majorNumeric}},ticks:{forceBounds:!0,count:c.get("zoom").min===c.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>c.get("zoom").min,max:()=>c.get("zoom").max}:S[gk.SCALE.MAIN.MAJOR]={invert:M,data:{extract:h.isDimensionless?g.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:h.isDimensionless?"band":void 0,maxPxStep:y,align:v};const{reducedMinor:k,reducedMajor:T}=rq(s,{major:S[gk.SCALE.MAIN.MAJOR],minor:S[gk.SCALE.MAIN.MINOR]},{majorScaleInvert:M,maxPxStep:y,align:v,getProp:a.get});return h.isDiscrete&&(S[gk.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,h.isGroupedByDimension&&(S[gk.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),S[s.scales.major]=T,S[s.scales.minor]=k,S}function bq(e,t,n){const{layoutService:r,colorService:o}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[Jk(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?gk.COMPONENT.STACK_TOTAL_BAR:gk.COMPONENT.BAR,gk.COMPONENT.BAR_AXIS,gk.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",gk.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return gk.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[gk.COMPONENT.BAR_AXIS,gk.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===gk.COMPONENT.LEGEND_COLOR_CAT))?o.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function xq(e){const t=e.layoutService.meta.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1;return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=Gk(n);return{interactions:[Xk(n,t)],components:[r]}}({key:"lasso",componentTargetKey:gk.COMPONENT.BAR,components:[t?{key:gk.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:gk.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function Sq(e){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:[Qk(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:gk.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",gk.COMPONENT.BAR_AXIS,gk.COMPONENT.BAR],fillTargets:["group-axis",gk.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function Mq(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:o}=t,i=void 0===n,a=r.getIsSingleSelect(n),s=bq(e,i,a);if(i||a)return{components:[...s.components],gestures:[...s.interactions]};const l=xq(e),u=function(e,t){return e.layoutService.meta.isStacked||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:eT({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",gk.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:gk.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,o),c=function(e){return e.layoutService.meta.isContinuous?eT({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",gk.COMPONENT.BAR]:["continuous-axis",gk.COMPONENT.BAR],fillTargets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis"]:["continuous-axis"],observeBrush:!0,multiple:!0,dock:e.dockService.meta.major.dock,scale:e.layoutService.meta.isTime?gk.SCALE.MAIN.MAJOR_INNER:gk.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const o=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(gk.FORMATTER.MINOR),i=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||i?"":"<"}${o(t)}`}},e):{components:[],interactions:[]}}(e),d=Sq(e);return{components:[...s.components,...l.components,...u.components,...d.components,...c.components],gestures:[...l.interactions,...s.interactions,...u.interactions,...d.interactions,...c.interactions]}}function Cq({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:o}=e;if(!o.isStackedByDimension||o.isContinuous)return!1;const{fields:i}=t,a=e.getLayoutValue("components",null),s=a?a.filter((e=>"bar"===e.key))[0]:null;return{key:"shadow-bar",type:"box",data:{extract:[{field:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>Number(e.qMaxPos.toFixed(13))}}},{field:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>Number(e.qMinNeg.toFixed(13))}}}]},settings:{major:{scale:gk.SCALE.MAIN.MAJOR},minor:{scale:gk.SCALE.MAIN.MINOR},orientation:n.meta.minor.orientation,box:{width:null!=s&&null!==(r=s.style)&&void 0!==r&&r.width&&s.style.width>0?s.style.width:.7,fill:()=>({type:"pattern",fill:"rgba(165, 165, 165, 0.8)",width:4,height:4,shapes:[{type:"rect",x:0,y:3,width:1,height:1},{type:"rect",x:1,y:2,width:1,height:1},{type:"rect",x:2,y:1,width:1,height:1},{type:"rect",x:3,y:0,width:1,height:1}]})},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:t.animations.enabled,trackBy:rs.shadowBars.trackBy,compensateForLayoutChanges:rs.bars.compensateForLayoutChanges}}}const wq={min:"Min",max:"Max"};function kq(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?hT(e,t)||gT(e,t):n===yT.MAX?hT(e,t):gT(e,t)}(Number(r.toFixed(13)),e,t)}function Tq(e,{barComponent:t,type:n,isStacked:r}){var o,i,a;const{viewCache:s,layoutService:l,dockService:u}=e,c=s.get("minorMinMax"),d=n===yT.MAX;if(function(e,t){return!e[`hasOther${wq[t]}`]}(c,n)){if(function(e,t){return!e[`hasExplicit${wq[t]}`]}(c,n))return!1;if(kq(c,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${wq[t]}`]&&r(e[`explicit${wq[t]}`])}(c,n,d))return!1;let f="end";r&&(f=d?"sumOfPositives":"sumOfNegatives");const p=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(gk.SCALE.MAIN.MINOR)[n]())),m=d?e=>e.datum[f].value>p():e=>e.datum[f].value<p(),h=gk.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===h))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?u.meta.minor.end:u.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:ie({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:m,width:cT({layoutService:e.layoutService,discrete:e.discrete,componentKey:h}),strokeWidth:null!=y&&null!==(o=y.style)&&void 0!==o&&o.strokeWidth?sT.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:sT.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==i?i:sT.BAR.STROKE.COLOR})}}}function qq(e,t){var n;let r;return r=e.isContinuous?1:.7,!e.isContinuous&&null!=t&&null!==(n=t.style)&&void 0!==n&&n.width&&t.style.width>0?t.style.width:r}function Eq(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:o}=e.viewModel,i=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum";function a(t,n){const o=e.ds.field(t).raw(),a=e.ds.field(t).formatter(),s=he.shouldUseFormat(o),l=r.isButterfly&&n>0;return{field:t,reduceLabel:"none",value:e=>"NaN"===e[i]?0:(e=>l&&0!==e?-e:e)(e[i]),label:e=>s?(e=>"NaN"===e[i]?"-":a(e[i]))(e):e.qText}}function s(e){if(!r.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[i]<0}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;const u={key:t,data:{extract:o.minor.map(((t,i)=>{const u=e.colorService.getMain().getDatumProps(i),c=e.colorService.getMini().getDatumProps(i),d=u[Object.keys(u)[0]],f=null==d?void 0:d.field,p=f?{field:f,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,m={field:r.isDimensionless?t:o.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:a(t,i),negative:s(t),null:(h=t,{field:h,reduceLabel:"none",reduce:"first",value:l}),segment:r.isStacked?a(t):void 0,group:r.isGroupedByDimension?{field:o.majorGroup}:void 0,stack:r.isStacked?{field:o.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:i,timeStart:r.isContinuous?{field:o.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:o.majorNumeric}:void 0,fillTooltip:p,...u,...c,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${i}`},customTooltipAttrExps:0!==r.dimensionCount?RC.getNode(e.layoutService.getLayout(),r):void 0}};var h;return r.isDimensionless&&(m.value=i),void 0!==n&&(m.source=n),he.deleteUndefinedProperties(m.props),m})),filter:r.isButterfly?e=>!e.negative.value:void 0}};return r.isStacked&&(u.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),u}function Lq({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:o}=t;if(!r.isStacked)return!1;let i;return i=r.isStackedByMeasure?function(e,t){const n={field:0,props:{sumOfPositives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},null:{fields:t.minor.map((e=>({field:e}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"}}};if(e.isContinuous){const e={field:t.major,value:e=>e.qNum,reduceLabel:"none"};n.props.timeStart=e,n.props.timeEnd=e,n.value=e=>e.qNum}return n}(r,o):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>Number(e.qMaxPos.toFixed(13))},sumOfNegatives:{value:e=>Number(e.qMinNeg.toFixed(13))},null:{value:e=>{const{qSubNodes:t=[]}=e;return t.every((e=>"NaN"===((e.qSubNodes||[])[0]||{}).qValue))}}}};const n={field:t.majors[0],value:e=>e.qNum,reduceLabel:"none"};return{field:t.majorStack,trackBy:e=>e.qNum,reduce:e=>e[0],props:{sumOfPositives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t>0?e+t:e),0)},sumOfNegatives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t<0?e+t:e),0)},timeStart:n,timeEnd:n}}}(r,o),{key:n,data:{extract:i}}}const Nq="main-collection",Oq="stack-total-collection";function Dq(e,{collectionKey:t}){const{layoutService:n,colorService:r,reducedDataModel:{fields:o,mode:i}}=e,{meta:a}=n,s=a.isStackedByDimension&&!a.isContinuous?"qValue":"qNum";function l(e,t){if(!a.isButterfly)return{field:e};const n=t>0;return{field:e,value:e=>"NaN"===e[s]?0:(e=>n&&0!==e?-e:e)(e[s])}}function u(e){if(!a.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[s]<0}}return{key:t,data:{extract:o.minor.map(((e,t)=>{const n=i.isReduced?{}:r.getMain().getDatumProps(t),a={start:0,end:l(e,t),negative:u(e),group:{field:o.majorGroup},measureIndex:t,...n},s={source:"miniCube",field:i.isDimensionless?e:o.major,props:a};return i.isDimensionless&&(s.value=t),s})),filter:a.isButterfly?e=>!e.negative.value:void 0}}}const Aq="mini-collection",Iq="mini-stack-collection",Rq="mini-continuous-collection",Pq="miniCube",zq=(e,t)=>{const n=(e=>{const t=[Eq(e,{collectionKey:Nq})];return e.layoutService.meta.isStacked&&t.push(Lq(e,{collectionKey:Oq})),t})(t),r=((e,t)=>{const n=[];return og({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(Eq(t,{collectionKey:Rq},Pq)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:o}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const i={end:{field:e,reduceLabel:"none"},...o.isStackedByMeasure&&!o.isReduced?n.getMain().getDatumProps(t):{}};return o.isContinuous&&(i.timeStart={field:r.major,value:e=>e.qNum},i.timeEnd=i.timeStart),{source:"miniCube",field:r.major,props:i}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:Iq})):n.push(Dq(t,{collectionKey:Aq}))),n})(0,t);return n.concat(r)};function jq(e,t,n,r){const o=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",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 Fq({layout:e,component:t},n,r){if(!OT(e,n))return!1;const{layoutService:o,chart:i,dockService:a,viewModel:s,themeService:l,styleService:u}=n,{meta:c}=o,d=!NT(e,n),f=l.getStyles(),p=u.label.getStyle(),m=p.useContrastColor;function h(e){const t=i.formatter(gk.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":h(e.data.sumOfPositives.value)},simplifiedPlacements:jq("outside",d,m,c.isContinuous),style:f.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":h(e.data.sumOfNegatives.value)},simplifiedPlacements:jq("opposite",d,m,c.isContinuous),style:f.label.value},v=[kT(ie(n,g)),kT(ie(n,y))];return{key:"stack-total-labels",type:"labels",renderer:ys(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>LT(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily,linkData:rs.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:rs.labels.trackBy,compensateForLayoutChanges:rs.labels.compensateForLayoutChanges}}}function Bq(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return t&&r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function _q({layout:e,type:t},n){const{layoutService:r,viewCache:o,themeService:i,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!NT(e,n)||l&&!OT(e,n))return!1;const u=o.get("minorMinMax");if(!u.hasExplicitMinMax||t===yT.MAX&&0===u.max||t===yT.MIN&&0===u.min)return!1;if(!bT(t===yT.MAX?u.implicitMax:u.implicitMin,u,t))return!1;const c=i.getStyles(),d=a.label.getStyle();let f=e=>e.data.end.label;s.isStacked&&(f=t===yT.MAX?function(e){if(bT(e.data.sumOfNegatives.value,u,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(gk.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(bT(e.data.sumOfPositives.value,u,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(gk.FORMATTER.MINOR);return r?r(t):t}return""});const p={label:f,simplifiedPlacements:Bq("outside",true,s.isContinuous),styles:c},m={label:f,simplifiedPlacements:Bq("opposite",true,s.isContinuous),styles:c},h=[kT(ie(n,p)),kT(ie(n,m))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${gk.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:h,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:rs.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:ys(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:rs.labels.trackBy,compensateForLayoutChanges:rs.labels.compensateForLayoutChanges}}}function Hq(e){return"all"===e||"title"===e}function $q(e,t,n){if(!Hq(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:r,properties:o}=t,i={hyperCube:e.qHyperCube,hyperCubeDef:o&&o.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=r&&null!==(e=r.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},a=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(i.padding="0",i.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:tT[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:i,style:a}}function Vq(e,t,n){if(!Hq(e.measureAxis.show))return!1;const{layoutService:r,actions:i}=t,a=t.properties,s=r.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",l={hyperCube:r.getHyperCube(),hyperCubeDef:o(a,s),isDimension:!1,disabled:()=>!i.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},u=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(l.padding="0",l.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:l,style:u}}function Wq({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:o,dockService:i,themeService:a,viewModel:s,chart:l}){const{theme:u,localeInfo:c}=e,d={resolveUIColor:o.getMain().getPaletteColor},f=a.getStyles(),p=s.animations.enabled;return[us({refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:p,chart:l,scale:gk.SCALE.MAIN.MINOR,axis:"horizontal"===i.meta.major.orientation?"y":"x",key:gk.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:tT.refLines.minimumLayoutMode}),us({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:p,chart:l,scale:gk.SCALE.MAIN.MAJOR,axis:"horizontal"===i.meta.major.orientation?"x":"y",rtl:t,key:gk.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:gk.COMPONENT.BAR,minimumLayoutMode:tT.refLines.minimumLayoutMode}),...ps({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:p,dock:i.meta.minor.opposite,scale:gk.SCALE.MAIN.MINOR,style:f,formatter:gk.FORMATTER.MINOR,theme:u,localeInfo:c,rtl:t,key:gk.COMPONENT.MEASURE_REF_LINE_LABEL}),...ps({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:p,dock:i.meta.major.opposite,scale:gk.SCALE.MAIN.MAJOR,style:f,theme:u,localeInfo:c,rtl:t,key:gk.COMPONENT.DIMENSION_REF_LINE_LABEL})]}const Uq=(e,t,n)=>{var r;const{layoutService:o,dockService:i,colorService:a,chart:s,actions:l,discrete:u,continuousDataModel:c,reducedDataModel:d,viewModel:f,viewState:p,viewCache:m,themeService:h,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:S}=t,{localeInfo:M}=n,C=function(e,t){const{disclaimerService:n,themeService:r,translator:o}=e,i=n.getDisclaimer();if(!i)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:i.alignment},settings:{isRTL:t,label:o.get(`Object.Disclaimer.${i.key}`)},style:{fontFamily:a}}}(t,v);if(S.getHasSuppressingDisclaimer())return{components:[C]};const w=vq(e,t,{localeInfo:M,rtl:v}),k=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),T=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:p,chart:s,styleReference:"object.barChart",styleOverrides:{title:t.styleService.legend.title.getStyle(),label:t.styleService.legend.label.getStyle()},rtl:v,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:k}),q=T.components[0];if(q){const{dock:e}=q.layout;if(w.fillRange&&(["right","left"].includes(e)||v)&&(w.fillRange.invert=!0),"legend-seq"===q.type&&void 0!==f.selectionDimensionIdx&&w.fillRange&&w.fillRange.min<w.fillRange.max){const e=eT({eventName:"legendRange",key:"legendRangeBrush",targets:[q.key],fillTargets:[q.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:q.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);T.components.push(...e.components),T.interactions.unshift(...e.interactions)}}else w.fillRange&&v&&(w.fillRange.invert=!0);const E=((e,{componentKey:t,collectionKey:n})=>{var r,o,i;const{meta:a}=e.layoutService,s=e.colorService.getMain().getPaletteColor;let l,u;a.isGroupedByDimension?l=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(l=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let c=2;a.isContinuous?(u={start:"timeStart",end:"timeEnd"},c=fT(e,t)):a.isStacked&&(u="stack");const d=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,f=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},p=e.layoutService.getLayoutValue("components",null),m=p?p.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:a.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:a.isContinuous||d?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:gk.SCALE.MAIN.MAJOR,fn:l,ref:u},minor:{scale:gk.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:cT({layoutService:e.layoutService,discrete:e.discrete,componentKey:t}),minWidthPx:c,fill:e.colorService.getMain().getColor(),opacity:e=>f(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:f(e)?.01:.3},strokeWidth:null!=m&&null!==(r=m.style)&&void 0!==r&&r.strokeWidth?sT.BAR.STROKE.WIDTH[m.style.strokeWidth.toUpperCase()]:sT.BAR.STROKE.WIDTH.NONE,stroke:null!=m&&null!==(o=m.style)&&void 0!==o&&null!==(o=o.strokeColor)&&void 0!==o&&o.color?s(null==m||null===(i=m.style)||void 0===i?void 0:i.strokeColor):sT.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:rs.bars.trackBy,compensateForLayoutChanges:rs.bars.compensateForLayoutChanges}}})(t,{componentKey:gk.COMPONENT.BAR,collectionKey:gk.COLLECTION.MAIN}),L=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let o=2;r.isContinuous&&(o=fT(e,t));const i=e.layoutService.getLayoutValue("components",null),a=i?i.filter((e=>e.key===t))[0]:null,s={key:t,type:"box",data:{collection:n},settings:{major:{scale:gk.SCALE.MAIN.MAJOR},minor:{scale:gk.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:qq(r,a),minWidthPx:o,opacity:0,fill:"none"},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:{consume:[{context:"selection",data:[""],style:{active:{strokeWidth: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}},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:.3}}}}]}};return r.isContinuous&&(s.settings.major.ref={start:"timeStart",end:"timeEnd"}),s})(t,{componentKey:gk.COMPONENT.STACK_TOTAL_BAR,collectionKey:gk.COLLECTION.STACK_TOTAL}),N=Mq(t,n,f.selectionDimensionIdx),{isStacked:O}=o.meta;let D;D=d.mode.isContinuous?gk.COLLECTION.MINI_CONTINUOUS:O?gk.COLLECTION.MINI_STACK:gk.COLLECTION.MINI;const A=O?L:E,I=UT(0,t),R=[...I,Tq(t,{barComponent:A,type:"max",isStacked:O}),Tq(t,{barComponent:A,type:"min",isStacked:O}),ST(t,{barComponent:A,type:"max",isStacked:O}),ST(t,{barComponent:A,type:"min",isStacked:O}),CT(t,{chart:s,barComponent:A,type:"max",scales:w,collectionKey:O?gk.COLLECTION.STACK_TOTAL:gk.COLLECTION.MAIN}),CT(t,{chart:s,barComponent:A,type:"min",scales:w,collectionKey:O?gk.COLLECTION.STACK_TOTAL:gk.COLLECTION.MAIN}),...aT(e,t,v,!!I[0]),E,L,Cq({layoutService:o,viewModel:f,layout:e,dockService:i}),$q(e,t,v),Vq(e,t,v),...Wq({environment:n,rtl:v,refLineModel:g,layoutService:o,colorService:a,dockService:i,themeService:h,viewModel:f,chart:s}),Ji({viewState:p,viewCache:m,layoutService:o,dockService:i,rtl:v}),tq(E,t,{collectionKey:D}),ig({layoutService:o,dockService:i,discrete:u,continuousDataModel:c,viewState:p,viewCache:m,themeService:h,rtl:v,deviceType:n.deviceType}),...Jw({majorScale:gk.SCALE.MAIN.MAJOR,minorScale:gk.SCALE.MAIN.MINOR,tooltipOverlay:gk.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:o,trendLineModel:x,dockService:i,animationsEnabled:f.animations.enabled}),...T.components,AT({layout:e,component:gk.COMPONENT.BAR,minorScale:w.minor},t,v),Fq({layout:e,component:gk.COMPONENT.STACK_TOTAL_BAR},t,v),_q({layout:e,component:"bar-oob-max",type:"max"},t),_q({layout:e,component:"bar-oob-min",type:"min"},t),...N.components,RT(0,{...t,coloring:a.getMain().getSettings()},v),zT(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&C,rk({tooltip:gk.COMPONENT.TREND_LINES_TOOLTIP,formatter:gk.FORMATTER.MINOR,majorScale:gk.SCALE.MAIN.MAJOR},t,{rtl:v})].filter(Boolean);!function(e){if(e&&0!==e.length)for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(R);const P=[...T.interactions,...N.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:QT(t,{rtl:v,hammer:{gestures:P}}),scales:w,palettes:a.getMain().getPalettes(),components:y.extendComponents(R),strategy:ue(0,{logicalSize:b,minCenterRatio:0}),formatters:jT(t,w),collections:zq(0,t)}};const Kq=({environment:e,services:t,chart:n,viewState:r,bootstrapped:o})=>{K((i=>{if(!e||!t||!o)return;const{layoutService:a,dockService:s,colorService:l,discrete:u,continuousDataModel:c,reducedDataModel:d}=t,{width:f,height:p}=s.meta.chart.size;if(i.snapshotData=i.snapshotData||{},i.snapshotData.content={size:{w:f,h:p}},a.meta.isSnapshot)return Promise.resolve();i.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:xe(n,gk.COMPONENT.LEGEND_COLOR_CAT)};const{properties:m}=o;return(null==m?void 0:m.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})))&&(i.tooltip.auto=!0),a.meta.isDiscrete?(u.command.setSnapshotData(i),d.setSnapshotData(i)):c.setSnapshotData(i),l.getMain().getSnapshotData().then((e=>{i.snapshotData.content.chartData={...i.snapshotData.content.chartData,...e}})).catch((()=>{}))})),G((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:xe(n,gk.COMPONENT.LEGEND_COLOR_CAT)}}})),[r,n])},Gq=e=>"[object Object]"===Object.prototype.toString.call(e),Yq=e=>Array.isArray(e);function Xq(e,t){if(e===t)return!0;if(Yq(e)){if(!Yq(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Xq(e[n],t[n]))return!1;return!0}if(Gq(e)){if(!Gq(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(!Xq(e[n[r]],t[n[r]]))return!1}return!0}return e===t}const Jq=({properties:e,layout:t,isStacked:n,isContinuous:r,model:o,layoutService:i})=>{var a,s;const l=t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),c=ie(!0,{},e);return((e,t,n)=>{const{color:{mode:r}}=n;e.length>1&&n.color?n.color.persistent=!0:"byDimension"===r&&t.length>1?n.color.mode="byMultiple":"byExpression"===r&&0===t.length?n.color.mode="primary":0===e.length&&t.length>0&&(n.color.byMeasureDef=void 0,n.color.byDimDef=void 0,1===t.length&&"byExpression"!==r&&(n.color.mode="primary"))})(l,u,e),l.length>1&&n&&!r&&"S"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="K"),l.length<2&&"K"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="S"),null===(a=o.colorSupport)||void 0===a||null===(s=a.colorByUpdater)||void 0===s||s.call(a,e,"qHyperCubeDef.",t),function({properties:e,layoutService:t}){const{filteredFields:n}=t.meta;if(!(n.measures.length>0))return;const{mode:r}=e.color||{};if("byExpression"===r){var o;if("colorByExpression"===(null===(o=t.getLayout().qHyperCube.qMeasureInfo)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.qAttrExprInfo)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.id))return;const{current:r,target:i}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:o}=n.reduce(((e,n,r)=>{var o;return"colorByExpression"===(null===(o=n.qAttributeExpressions[0])||void 0===o?void 0:o.id)&&(e.current=r),void 0!==e.target||t.includes(r)||(e.target=r),e}),{current:void 0,target:void 0});return{current:r,target:o}}({properties:e,filtered:n.measures});if(void 0===r)return;const a=e.qHyperCubeDef.qMeasures[r].qAttributeExpressions[0];e.qHyperCubeDef.qMeasures[r].qAttributeExpressions.splice(0,1),e.qHyperCubeDef.qMeasures[i].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:i}),!ra.compare(c,e,!0)&&JSON.stringify(c)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};function Zq(e,t){if("custom"===e.dimensionAxis.axisDisplayMode){const n=t.layout.qHyperCube.qMeasureInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})).length,o=e.dimensionAxis.maxVisibleItems;o<1?e.dimensionAxis.maxVisibleItems=10:o>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(o,Math.floor(1e4/(r+n))))}}const Qq=.7,eE=.9,tE=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],nE=(e,t)=>{var n,r,o;const i=null===(n=t.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})).length,a=null===(r=t.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})).length,s="grouped"===(null===(o=e.barGrouping)||void 0===o?void 0:o.grouping)&&a>0&&i+a>2;return be.continuous(t)?1:s?eE:Qq},rE=(e,t,n)=>{const r=`${e}.fontFamily`,o=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function oE(e=!1,t,n,r){return e?function(e){return{classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"LayerStyleEditor.style.strokeWidth",component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:Object.keys(tE).map((e=>tE[e])),schemaIgnore:!0,defaultValue:tE[0].value},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891",index:-1},width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"items",show:(e,t)=>!be.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t,n)=>nE(n.properties,n.layout)}}}}},optionsSection:{translation:"LayerStyleEditor.label.Options",component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollbar:{ref:"scrollbar",translation:"properties.scrollbar",component:"dropdown",type:"string",options:Object.keys(Qh.OPTIONS).map((e=>Qh.OPTIONS[e])),schemaIgnore:!0,defaultValue:Qh.DEFAULT.value},scrollAlignment:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",schemaIgnore:!0,defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},gridLines:{type:"items",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"}]},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}}}}}}}}}}(n):function(e,t,n){const r=v({theme:e,translator:n,config:{id:"barChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]},flags:t});return{component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==t?void 0:t.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),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:Object.keys(tE).map((e=>tE[e])),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)=>!be.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue(e,t,n){const{properties:r}=n,{barGrouping:o,qHyperCubeDef:i}=r,a=i.qMeasures.length,s=i.qDimensions.length,l="grouped"===o.grouping&&s>0&&a+s>2;return be.continuous(r)?1:l?eE:Qq},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:rE("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:rE("axis.label.name",r,e)}}},labelSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.labelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...rE("label.value",r,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{legendTitleSection:{component:"items",ref:"components",key:"legend",items:rE("legend.title",r,e)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{legendLabelSection:{component:"items",ref:"components",key:"legend",items:rE("legend.label",r,e)}}}:void 0}}}(t,n,r)}const iE=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC},aE=(e,t)=>null==e?void 0:e.qHyperCube[t].filter((e=>iE(e))),sE=e=>({get(t,n,r){const o="stacked";return"butterfly"===t(n.type)?yk({layout:r.layout,flags:e})?t(n.type):o:be.continuous(r.layout)?o:t(n.type)},set(e,t,n){const r=Ce(n.type,n);t(n.type,e,r)}}),lE=e=>{if(!e)return!1;const t=ie(!0,{},e);return t.qHyperCube.qMeasureInfo=aE(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=aE(e,"qDimensionInfo"),t&&!be.continuous(t)&&be.stacked(t)},uE=({translator:e,flags:t,anything:n})=>{var r,o,i;const a=null==n||null===(r=n.sense)||void 0===r||null===(o=r.isUnsupportedFeature)||void 0===o?void 0:o.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>aE(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!lE(t.layout)&&aE(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>lE(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,o){o.dataPoint.showSegmentLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>lE(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,o){o.dataPoint.showTotalLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>aE(n.layout,"qDimensionInfo").length&&aE(n.layout,"qMeasureInfo").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"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>aE(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,o){o.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(i=n.sense)||void 0===i?void 0:i.theme,u={uses:"settings",items:{simpleStyling:oE(!0,l,t,e),simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:oE(!1,l,t,e),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:(e,n)=>{const r=[{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"}];return yk({layout:n.layout,flags:t})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){const n=aE(t.layout,"qMeasureInfo").length,r=aE(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},globalChange(e,n,r){"butterfly"!==e.barGrouping.grouping||yk({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),"butterfly"===e.barGrouping.grouping&&e.measureAxis&&"max"!==e.measureAxis.minMax&&!e.measureAxis.autoMinMax&&(e.measureAxis.minMax="max")},change(e,n,r){"butterfly"!==e.barGrouping.grouping||yk({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),aE(n.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>be.continuous(n.layout),convertFunctions:sE(t)},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)=>be.continuous(n.layout),convertFunctions:(c="vertical",{get:(e,t,n)=>be.continuous(n.layout)?c:e(t.type),set(e,t,n){const r=Ce(n.type,n);t(n.type,e,r)}})},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(Qh.OPTIONS).map((e=>Qh.OPTIONS[e])),defaultValue:Qh.DEFAULT.value},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)=>!be.continuous(n.layout)}}},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"}]},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}}},valueLabels:{type:"items",snapshot:{tid:"property-valueLabels"},items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!1,options:[{value:!0,label:(t,n)=>((e,t,n)=>n&&n.get(lE(t.layout)?"properties.on":"Common.Auto"))(0,n,e)},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showSegmentLabels",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.showLabels&&lE(n.layout)},showTotalLabels:{ref:"dataPoint.showTotalLabels",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.showLabels&&lE(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:vs}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,n,r)=>t&&t.isEnabled("BC_XAXIS_MODE")&&!be.continuous(r.layout),items:{axisDisplayMode:{ref:"dimensionAxis.axisDisplayMode",type:"string",translation:"properties.axis.displaymode",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:{ref:"dimensionAxis.maxVisibleItems",translation:"properties.axis.maxvisiblevalues",expression:"optional",type:"integer",invalid(e,t,n){const r=aE(n.layout,"qMeasureInfo").length,o=aE(n.layout,"qDimensionInfo").length,i=e.dimensionAxis.maxVisibleItems;return i<0||i>1e4/(o+r)},globalChange:Zq,defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}},continuousGroup:{items:{miniChart:null},show:!a}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};var c;return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(u.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"}]}}}),null!=t&&t.isEnabled("TLV_800_BUTTERFLY_CHART")&&(u.items.measureAxis={uses:"axis.flippableMeasureAxis",items:{minMax:{items:{minMax:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&!e.measureAxis.autoMinMax},min:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&["min","minMax"].includes(e.measureAxis.minMax)&&!e.measureAxis.autoMinMax},max:{invalid:e=>e.measureAxis&&"minMax"===e.measureAxis.minMax?e.measureAxis.min>=e.measureAxis.max:!(!e.measureAxis||"max"!==e.measureAxis.minMax||"butterfly"!==e.barGrouping.grouping)&&e.measureAxis.max<=0}}}}}),u},cE={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){Dt(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:o}=e.qHyperCubeDef,{qCardinal:i}=t.layout.qHyperCube.qDimensionInfo[0],a=o.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&i>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},dE={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},fE=({translator:e,flags:t,anything:n})=>{var r,o;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var o,i;if(null!=n&&null!==(o=n.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const o=null===(n=t.layout)||void 0===n||null===(n=n.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.findIndex((e=>iE(e)));return(null===(r=t.properties)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r[o])===e})(e,t),s=be.continuous(r.layout);return!(a&&s)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Dimensions.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0}}},measures:{items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Measures.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"trendlines")?void 0:lk({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function pE({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:fE({translator:e,flags:t,anything:n}),sorting:cE,addons:dE,settings:uE({translator:e,flags:t,anything:n})}}}const mE=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC};function hE(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t,n){const r=n.qHyperCube.qMeasureInfo.length,o=n.qHyperCube.qDimensionInfo.filter((e=>mE(e))).length;return 1===r&&2===o&&0===e}}}}}},presentation:{uses:"presentation",items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},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){const n=t.qHyperCube.qMeasureInfo.filter((e=>mE(e))).length,r=t.qHyperCube.qDimensionInfo.filter((e=>mE(e))).length;return n+r>2&&!be.continuous(t)&&!((null==(o=t)||null===(i=o.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.filter((e=>mE(e))).length)>1&&(null==o||null===(a=o.qHyperCube)||void 0===a?void 0:a.isHCEnabled));var o,i,a},change(e){e.qHyperCubeDef.qDimensions.length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"}},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)=>!be.continuous(t)}}},color:{uses:"color"}}}}function gE(e){const t={},n=o(e,"components"),r=o(e,"dimensionAxis.axisDisplayMode"),i=o(e,"dimensionAxis.maxVisibleItems"),a=n?n.filter((e=>"bar"===e.key))[0]:void 0,s=o(e,"tooltip");if(a&&a.style&&Object.keys(a.style).forEach((e=>{t[`chart_style_${e}`]=a.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),s){t.chart_tooltip_custom=!s.auto;const e=o(s,"chart.object.refId");!s.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const yE=e=>!!(e&&e.qHyperCube.qSize.qcy>0),vE={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function bE(){const e=[];return Object.keys(vE).forEach((t=>{e.push(vE[t])})),e}function xE(e){return{definition:pE(e),softDefinition:hE(),support:{snapshot:yE,export:yE,exportData:!0,sharing:yE,viewData:!0,effects:!0,modifiers:bE()},importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=X.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:JC(e),defaultPropertyValues:a,hypercubePath:o,extension:r}),l=s.qProperty;return l.qHyperCubeDef.qDimensions.length>1&&"stacked"===l.barGrouping.grouping&&(l.qHyperCubeDef.qMode="K",l.qHyperCubeDef.qAlwaysFullyExpanded=!0),X.conditionalShow.unquarantine(l),X.conditionalShow.unquarantineAlternative(l),s},exportProperties:(e,t,n)=>{X.conditionalShow.quarantine(e.qProperty),X.conditionalShow.quarantineAlternative(e.qProperty);return X.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(Dt),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(Dt)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:o}=e;if(t||!1!==o)return;const{continuousAuto:i}=n;(i||!i&&r)&&(e.scrollbar=Qh.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:gE}}}}}));
|
|
94
|
+
`),eM.rippleVisible,sM,550,(({theme:e})=>e.transitions.easing.easeInOut),eM.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),eM.child,eM.childLeaving,lM,550,(({theme:e})=>e.transitions.easing.easeInOut),eM.childPulsate,uM,(({theme:e})=>e.transitions.easing.easeInOut)),fM=x.forwardRef((function(e,t){const n=OS({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=gl(n,tM),[s,l]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=x.useRef(!1),f=Ix(),p=x.useRef(null),m=x.useRef(null),h=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,Vv.jsx(dM,{classes:{ripple:dx(o.ripple,eM.ripple),rippleVisible:dx(o.rippleVisible,eM.rippleVisible),ripplePulsate:dx(o.ripplePulsate,eM.ripplePulsate),child:dx(o.child,eM.child),childLeaving:dx(o.childLeaving,eM.childLeaving),childPulsate:dx(o.childPulsate,eM.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.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:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=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)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,f]),y=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,(()=>{v(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[f]);return x.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),Vv.jsx(cM,ol({className:dx(eM.root,o.root,i),ref:m},a,{children:Vv.jsx(Gf,{component:null,exit:!0,children:s})}))}));var pM=fM;function mM(e){return px("MuiButtonBase",e)}var hM=mx("MuiButtonBase",["root","disabled","focusVisible"]);const gM=["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"],yM=US("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"},[`&.${hM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vM=x.forwardRef((function(e,t){const n=OS({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:S,onMouseDown:M,onMouseLeave:C,onMouseUp:w,onTouchEnd:k,onTouchMove:T,onTouchStart:q,tabIndex:E=0,TouchRippleProps:N,touchRippleRef:L,type:O}=n,D=gl(n,gM),A=x.useRef(null),I=x.useRef(null),R=Lx(I,L),{isFocusVisibleRef:P,onFocus:z,onBlur:j,ref:F}=$x(),[B,_]=x.useState(!1);l&&B&&_(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{_(!0),A.current.focus()}})),[]);const[H,$]=x.useState(!1);x.useEffect((()=>{$(!0)}),[]);const V=H&&!u&&!l;function W(e,t,n=c){return Nx((r=>{t&&t(r);return!n&&I.current&&I.current[e](r),!0}))}x.useEffect((()=>{B&&d&&!u&&H&&I.current.pulsate()}),[u,d,B,H]);const U=W("start",M),K=W("stop",h),G=W("stop",g),Y=W("stop",w),X=W("stop",(e=>{B&&e.preventDefault(),C&&C(e)})),J=W("start",q),Z=W("stop",k),Q=W("stop",T),ee=W("stop",(e=>{j(e),!1===P.current&&_(!1),p&&p(e)}),!1),te=Nx((e=>{A.current||(A.current=e.currentTarget),z(e),!0===P.current&&(_(!0),v&&v(e)),y&&y(e)})),ne=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=Nx((e=>{d&&!re.current&&B&&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(),m&&m(e))})),ie=Nx((e=>{d&&" "===e.key&&I.current&&B&&!e.defaultPrevented&&(re.current=!1,I.current.stop(e,(()=>{I.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(D.href||D.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===O?"button":O,se.disabled=l):(D.href||D.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Lx(t,F,A),ue=ol({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:E,focusVisible:B}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Vx({root:["root",t&&"disabled",n&&"focusVisible"]},mM,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Vv.jsxs(yM,ol({as:ae,className:dx(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:K,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:E,type:O},se,D,{children:[i,V?Vv.jsx(pM,ol({ref:R,center:o},N)):null]}))}));var bM=vM;function xM(e){return px("MuiButton",e)}var SM=mx("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"]);var MM=x.createContext({});var CM=x.createContext(void 0);const wM=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],kM=e=>ol({},"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}}),TM=US(bM,{shouldForwardProp:e=>WS(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ib(n.color)}`],t[`size${ib(n.size)}`],t[`${n.variant}Size${ib(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 ol({},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":ol({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:uS.alpha(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})`:uS.alpha(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})`:uS.alpha(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":ol({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${SM.focusVisible}`]:ol({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${SM.disabled}`]:ol({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 ${uS.alpha(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"},[`&.${SM.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${SM.disabled}`]:{boxShadow:"none"}})),qM=US("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ib(n.size)}`]]}})((({ownerState:e})=>ol({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},kM(e)))),EM=US("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ib(n.size)}`]]}})((({ownerState:e})=>ol({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},kM(e)))),NM=x.forwardRef((function(e,t){const n=x.useContext(MM),r=x.useContext(CM),o=OS({props:kx(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=o,b=gl(o,wM),S=ol({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:y,variant:v}),M=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return ol({},a,Vx({root:["root",i,`${i}${ib(t)}`,`size${ib(o)}`,`${i}Size${ib(o)}`,`color${ib(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ib(o)}`],endIcon:["icon","endIcon",`iconSize${ib(o)}`]},xM,a))})(S),C=g&&Vv.jsx(qM,{className:M.startIcon,ownerState:S,children:g}),w=f&&Vv.jsx(EM,{className:M.endIcon,ownerState:S,children:f}),k=r||"";return Vv.jsxs(TM,ol({ownerState:S,className:dx(n.className,M.root,l,k),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:dx(M.focusVisible,p),ref:t,type:y},b,{classes:M,children:[C,i,w]}))}));var LM=NM;var OM=x.createContext({});function DM(e){return px("MuiListItemButton",e)}var AM=mx("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const IM=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],RM=US(bM,{shouldForwardProp:e=>WS(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})=>ol({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"}},[`&.${AM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:uS.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${AM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:uS.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${AM.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:uS.alpha(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})`:uS.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${AM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${AM.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}))),PM=x.forwardRef((function(e,t){const n=OS({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:c,selected:d=!1,className:f}=n,p=gl(n,IM),m=x.useContext(OM),h=x.useMemo((()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:l})),[r,m.dense,s,l]),g=x.useRef(null);qx((()=>{o&&g.current&&g.current.focus()}),[o]);const y=ol({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:u,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return ol({},n,Vx({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},DM,n))})(y),b=Lx(g,t);return Vv.jsx(OM.Provider,{value:h,children:Vv.jsx(RM,ol({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===i?"button":i,focusVisibleClassName:dx(v.focusVisible,c),ownerState:y,className:dx(v.root,f)},p,{classes:v,children:a}))})}));var zM=PM;function jM(e){return px("MuiListItemIcon",e)}mx("MuiListItemIcon",["root","alignItemsFlexStart"]);const FM=["className"],BM=US("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})=>ol({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),_M=x.forwardRef((function(e,t){const n=OS({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=gl(n,FM),i=ol({},n,{alignItems:x.useContext(OM).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Vx({root:["root","flex-start"===t&&"alignItemsFlexStart"]},jM,n)})(i);return Vv.jsx(BM,ol({className:dx(a.root,r),ownerState:i,ref:t},o))}));var HM=_M;function $M(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,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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 VM(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 WM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VM(Object(n),!0).forEach((function(t){$M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var UM,KM,GM=function(e){var t=e.className,n=e.path,r=e.fillRule;return b.createElement(QS,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},b.createElement("path",{d:n}),r?b.createElement("use",{fillRule:r}):void 0)},YM={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)"}}};US(LM,{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:"45px",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}}})),US((function(e){var t=e.className;return b.createElement(GM,{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:YM.ICONS.COLOR.SECONDARY}})),US((function(e){var t=e.className;return b.createElement(GM,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:YM.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:YM.ICONS.COLOR.DISABLED}}})),US(LM,{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}}}));var XM={color:YM.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:YM.ICONS.COLOR.DISABLED}};US((function(e){var t=e.className;return b.createElement(GM,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return XM})),US((function(e){var t=e.className;return b.createElement(GM,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return XM})),US((function(e){var t=e.className;return b.createElement(GM,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:YM.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),US(zM)((function(){return{padding:"4px 12px","&:focus":WM({},YM.FOCUS)}})),US(HM)((function(){return{marginRight:0,justifyContent:"center"}})),US((function(e){var t=e.className;return b.createElement(GM,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:YM.ICONS.COLOR.SECONDARY}}));var JM,ZM=function(){if(KM)return UM;KM=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 UM=function e(){var t,n,r,l,u,c,d=arguments[0],f=1,p=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(m&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},UM}();(JM=ZM)&&JM.__esModule&&Object.prototype.hasOwnProperty.call(JM,"default")&&JM.default;var QM,eC=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return b.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},tC={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 b.createElement("div",{dir:i,style:a},b.createElement(eC,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},nC={},rC=function(){if(QM)return nC;QM=1;var e=q;return nC.createRoot=e.createRoot,nC.hydrateRoot=e.hydrateRoot,nC}(),oC=NS({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:"116px",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")}},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 iC(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 aC(){var e={rendererBox:iC(),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=iC(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=rC.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 b.createElement(b.StrictMode,null,b.createElement(GS,{theme:oC},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const sC={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",u=r,c=o,d=t<.5?90:-90;return i&&(s="y",l="x",u=o,c=r,d=t<.5?180:0),a(ie({},e,{[s]:n*u,[l]:c-Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:d}))}};function lC({i:e,width:t,height:n,resolved:r,keys:o,flipXY:i,calcKey:a="box"}){let s,l=null,u=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,u=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 c=0;s?s.bandwidth?(c=s.bandwidth(),l-=c/2):c=u-l:c=1;const d=ie({},{major:l,majorEnd:u},r.minor.items[e]);o.forEach((t=>{d[t]=r[t].items[e]}));const f=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:c,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),m=(c-p)/2,h=m+d.major+p/2;return{item:d,boxCenter:h,boxWidth:p,boxPadding:m,rendWidth:t,rendHeight:n}}function uC({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=ie(!0,{},n||{},r||{}),u={major:"horizontal"===o.orientation?a:i,minor:"horizontal"===o.orientation?i:a},c=o.major;let d;d="object"==typeof c&&"object"==typeof c.ref&&void 0!==c.ref.start&&void 0!==c.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:ie(!0,{},{binStart:{scale:o.major.scale,ref:o.major.ref.start},binEnd:{scale:o.major.scale,ref:o.major.ref.end}})}):"object"==typeof c&&void 0!==c.binStart&&void 0!==c.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:ie(!0,{},{binStart:{scale:o.major.scale,ref:"binStart"},binEnd:{scale:o.major.scale,ref:"binEnd"}},o.major)}):s.resolve({data:t,scaled:u,defaults:{major:.5},settings:{major:o.major}});const f=o.minor||{};let p;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:ie(!0,{},{start:{scale:f.scale,ref:"start"},end:{scale:f.scale,ref:"end"},min:{scale:f.scale,ref:"min"},max:{scale:f.scale,ref:"max"},med:{scale:f.scale,ref:"med"}},f)})};for(let n=0,r=e.length;n<r;n++)p=e[n],m[p]=s.resolve({data:t,defaults:l[p],settings:o[p],scaled:u});return m}const cC=["oob"];const dC={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=uC({keys:cC,data:o,defaultSettings:{oob:sC.getDefaultSettings()},style:i,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:u,items:c}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=lC}){const l=[],{items:u}=r.major;for(let c=0,d=u.length;c<d;c++){const{item:d,boxCenter:f,rendWidth:p,rendHeight:m}=s({i:c,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=u[c].data,g=[];if(d.oob.show){g.push(sC.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:p,rendHeight:m,flipXY:n,symbol:i}));const e={type:"container",data:h,collider:{type:"bounds"},children:g};l.push(e)}}return l}({items:c,settings:u,width:e,height:t,flipXY:r,resolved:l,keys:cC,symbol:s,dockValue:n});return d}},fC={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},pC=["hat"];function mC(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 hC({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:o,flipXY:i}){let a="x",s="y",l=r,u=o,c=e.hat.alignment||0;i&&(a="y",s="x",l=o,u=r,c=1-c);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+u},{[a]:d+t*c*l,[s]:8},{[a]:d+t*l,[s]:0+u},{[a]:d+t*l,[s]:0+u+10},{[a]:d,[s]:0+u+10}];const p=ie({},e.hat,{type:"path",d:mC(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-c)*l,[s]:0+u-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[p,ie({},e.hat,{type:"path",d:mC(f)})]}const gC={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=uC({keys:pC,data:r,defaultSettings:fC,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a,u=function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=lC}){const a=[],{items:s}=r.major;for(let l=0,u=s.length;l<u;l++){const{item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:p}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),m=s[l].data,h=[];u.hat.show&&h.push(...hC({item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:p,flipXY:n}));const g={type:"container",data:m,collider:{type:"bounds"},children:h};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:pC});return u}};function yC(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:yC(o,t,n)},o}function vC(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),yC(o,a,l,e.invert)}))}const bC=()=>({version:"1.36.3",barGrouping:{grouping:"grouped"},color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[],dataPoint:{showLabels:!1,showSegmentLabels:!1,showTotalLabels:!0},dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},footnote:"",gridLine:{auto:!0,spacing:2},legend:{dock:"auto",show:!0,showTitle:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"all",spacing:1},orientation:"vertical",preferContinuousAxis:!0,qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},refLine:{refLines:[],dimRefLines:[]},scrollbar:"miniChart",scrollStartPos:0,showDetails:!0,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}}),xC={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 SC(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const MC={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,u=i[t]*(n>l?1:n/l),c=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(u,n),width:Math.min(c,l)},r()):(e={height:u,width:c},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 CC(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,a,s,l,u;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var c;if(o=e.session.options||(null===(c=e.enigmaModel)||void 0===c?void 0:c.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 u=void 0!==o.secure?o.secure:o.isSecure,i=u?"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 MC.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function wC(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,u=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!u)return[];const[c]=u,d=c.size||"small",f=c.type||"media";let p=-1;for(let e=0;e<n.length;e++)if(n[e].cId===c.cId){p=e;break}const m=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let h;if(-1!==p&&m[p]&&(h=m[p]),"media"===f&&null!==(a=c.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return CC(c,d,s);if("url"===f)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&&SC(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await MC.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 MC.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,c,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&h&&h.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(SC(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await MC.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 kC={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(wC(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}},TC={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await kC.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>kC.checkIfPromisesExist({customTooltipModel:e})};const qC=(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:xC.CHART.CHART_PARENT_TYPE,qId:xC.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},EC=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:xC.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const NC={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=xC.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:xC.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i,width:"100%"}},{}]}(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 NC.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=xC.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=xC.CHART.STATE,a=qC(t,i),s=await e.createSessionObject(a),l=EC(t);if(s.id!==xC.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const u=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=u,u;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var u,c,d,f;const e=n.length>0&&void 0!==(null===(u=n[0].data)||void 0===u?void 0:u.value)?[null===(c=n[0].data)||void 0===c?void 0:c.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var p,m;const e=null!==(p=n[0].data.selectionOuterDimension)&&void 0!==p?p:n[0].data.selectionDimension;if(null!=e&&null!==(m=e.source)&&void 0!==m&&m.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(xC.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===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await NC.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(NC.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(xC.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=xC.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 LC(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function OC(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=xC.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function DC(e){const t=OC();return e.filter((e=>t[e.id]))}const AC={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 u=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!u||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===u.value&&r.label===u.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}=AC.getAttrExprData(a);i.length||n.length?TC.handlePromises({customTooltipModel:o,nodes:AC.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&&NC.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>TC.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[xC.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[xC.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[xC.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(DC(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[xC.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[xC.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=LC(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===DC(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){let r=[];const o=LC(e)||[];[...o,t].forEach((e=>{const t=DC(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=OC(),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:Oe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Oe.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 IC(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 xC.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case xC.CUSTOM.TITLE:case xC.CUSTOM.DESCRIPTION:case xC.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 RC={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>IC(t,e,r,n)}}};const PC={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={[xC.CUSTOM.TITLE]:!0,[xC.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=AC.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===xC.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===xC.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>De.getMeasure(e,t))),e,o)}};function zC({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(PC.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function jC(e){const t=xC.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function FC(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const BC={migrateProperties(e){var t,n;const r=ie(!0,{},e),o=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let i=FC(r);return i=function(e,t){return t.concat(e.map((e=>jC(e))))}(o,i),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(i,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],o=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,i=function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=jC(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(FC(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,o,i;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(o=t.tooltip)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.qHyperCube)||{},l=null===(i=t.qMeta)||void 0===i||null===(i=i.privileges)||void 0===i?void 0:i.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var _C={attrExpr:BC},HC=7005;const $C=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC},VC=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&he.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},WC=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&he.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&he.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},UC=e=>{if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))},KC=(e,t)=>{const n=e.qHyperCubeDef.qDimensions,r=e.qHyperCubeDef.qMeasures;if(1===n.length&&1===r.length){const r=n[0];return r.qLibraryId?t.getDimension(r.qLibraryId).then((e=>e.getLayout())).then((t=>{if(t&&t.qDimInfos&&t.qDimInfos[0]){const n=t.qDimInfos[0].qCardinal;WC(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(WC(e,t),r)))),(()=>r))}return VC(e),Promise.resolve()};function GC(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?i(e,"color.persistent",!0):"byDimension"===r&&n.length>1?i(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?i(e,"color.mode","primary"):0===t.length&&n.length>0&&(i(e,"color.byMeasureDef",void 0),i(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&i(e,"color.mode","primary"))}const YC=(e,t)=>{GC(t),Dt(e),AC.addCallbackCustomTooltip(t)},XC=e=>{GC(e)};function JC({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,o){let i;const a=null!=o&&o.layout?o.layout.qHyperCube.qDimensionInfo.filter((e=>$C(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?i="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?i="Visualizations.Descriptions.Stack":(i="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):i="Visualizations.Descriptions.Bars",e.get(i)},add:(e,t,n)=>(t.qHyperCubeDef.qDimensions.length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),null!=n&&n.app?KC(t,n.app).then((()=>(YC(e,t),e))):(UC(t),YC(e,t),e)),move(e,t,n){const r=n.layout.qHyperCube.qDimensionInfo.filter((e=>$C(e))).length;r>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),VC(t),GC(t),AC.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;GC(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),AC.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){AC.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:e=>e>1?1:15,description:()=>e.get("Visualizations.Descriptions.LengthBars"),add:(e,t,n)=>null!=n&&n.app?KC(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,XC(t),e))):(UC(t),XC(t),e),move(e,t){VC(t),GC(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;GC(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function ZC(e){return{properties:bC(),data:{targets:[{path:"/qHyperCubeDef",...JC(e)}]}}}var QC={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":"Выключить выбор лассо"}}};const ew="REJECTED",tw=()=>{},nw=1e4,rw={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},ow=50,iw=10,aw=100;var sw={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),u=Math.min(i+r-e.qArea.qLeft,e.qArea.qWidth),c={qArea:{qHeight:s-a,qWidth:u-l,qTop:o,qLeft:i},qMatrix:[]};for(let t=a;t<s;t++)c.qMatrix.push(e.qMatrix[t].slice(l,u));return c},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-iw<=t.qTop,o=n.qLeft+n.qWidth+iw>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+iw>=t.qTop+t.qHeight,a=n.qLeft-iw<=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 lw={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-iw<=t.qTop,o=n.qTop+n.qHeight+iw>=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 uw={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 cw="pages";const dw="discretePan",fw=10;function pw({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:dw,pointers:1,threshold:fw,enable(r,o){return this.started===dw||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{[`${dw}start`](e){e.preventDefault(),this.started=dw;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-fw:fw},[`${dw}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)},[`${dw}end`](e){e.preventDefault(),this.started=!1},[`${dw}cancel`](e){e.preventDefault(),this.started=!1}}}}function mw({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=Math.sign(-a)*aw;r.scroll(s)}}function hw({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(nw/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(rw.MAXIMUM,n));return{width:e,height:Math.max(rw.MINIMUM,Math.min(n*rw.MULTIPLIER,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 gw(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(ew),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(ew),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(ew),n=null)},o}const yw={command:{update:()=>{}}};var vw={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 bw={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 xw(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function Sw(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 Mw(e){return Sw(e.qMatrix,(e=>e[0].qElemNumber))-1}var Cw={inTotal:function({layoutService:e}){const t=xw(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=xw(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=xw(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=Mw(i),u=i.qArea.qHeight*o+l,c=(s+(i.qArea.qTop*o+i.qArea.qTop)*a)/r;return[c,n.inView>=n.inTotal?c+1:c+u/n.inView]}};const ww=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),kw=(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};function Tw(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return ww(e,n);const r=kw(t.qMatrix,n);return r.successful?r.count:ww(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return ww(e,n);return Sw(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var qw={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=Tw(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:u}=n,c=Tw(t).area(e(),l,a.qArea),d=Mw(a),f=a.qArea.qHeight+d,p=u===i?(r.inView-f)*s/o:(u+(a.qArea.qTop+c)*s)/o;return[p,r.inView>=r.inTotal?p+1:p+f/r.inView]}};function Ew({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:o,renderer:i,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:u,maxDataRows:c}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:p}=r[n.meta.chart.mode],m="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:y}=s,v=m?t.width:t.height,b=v/l>=f;switch(h){case"max":return Math.min(l,c);case"custom":return Math.min(g,c);default:return u?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:u,fontSize:c,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:u,fontSize:c,text:"M"});if(!t)return f>i;const p=(90-d)*(Math.PI/180);return f>Math.cos(p)*i}({chart:e,isHorizontal:m,axisKey:o,renderer:i,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}var Nw="AVERAGE",Lw="LINEAR",Ow="POLYNOMIAL2",Dw="POLYNOMIAL3",Aw="POLYNOMIAL4",Iw="EXPONENTIAL",Rw="LOG",Pw="POWER";function zw({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:o}=n,i={x:e,y:o[2]*t**2+o[1]*t+o[0]};switch(r){default:case Ow:return i;case Dw:return i.y+=o[3]*t**3,i;case Aw:return i.y+=o[4]*t**4+o[3]*t**3,i}}var jw={average:function({dimValue:e,qTrendLine:t}){return{x:e,y:t.qCoeff[0]}},linear:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]*t+n.qCoeff[0]}},polynomial2:zw,polynomial3:zw,polynomial4:zw,exponential:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:Math.exp(n.qCoeff[0]+t*n.qCoeff[1])}},log:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]+n.qCoeff[0]*Math.log(t)}},power:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:10**(n.qCoeff[0]+n.qCoeff[1]*Math.log(t)*Math.LOG10E)}}};const Fw=500;function Bw(e,t){const n=jw[t.qType.toLowerCase()],r=Math.max(1,e/Fw);let o=1/0,i=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});o=Math.min(e,o),i=Math.max(e,i)}return{min:o,max:i}}const _w=100;function Hw(e){return jw[e.qType.toLowerCase()]}function $w(e,t){return e.meta.isContinuous?function(e,t){return{generate:(n,r,o)=>{var i,a;const s=[],l=Hw(n),u=t.get("zoom"),c=null!==(i=n.start)&&void 0!==i?i:u.min,d=null!==(a=n.end)&&void 0!==a?a:u.max,f=(d-c)/_w,p=e.meta.isButterfly&&o>0;if(f>0){const e=e=>{const t=l({dimValue:e,value:e,qTrendLine:n});p&&(t.y=-t.y),t.layerId=r,t.measureIndex=o,t.dimValue=e,s.push(t)};let t=c;for(let n=c;n<=d;n+=f)e(n),t=n;t!==d&&e(d)}return s},calculate:(e,t)=>Hw(e)({dimValue:t,value:t,qTrendLine:e}),findMinMax(e,t){const n=this.generate(t).map((({y:e})=>e));return{min:Math.min(...n),max:Math.max(...n)}}}}(e,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qData[0].qSubNodes,s=i.qArea.qTop,l=jw[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const i=a[e],u=l({dimValue:i.qElemNo,value:e+s+1,qTrendLine:t});u.layerId=n,u.measureIndex=r,u.dimValue=i.qText,o.push(u)}return o},findMinMax:Bw}}(e):function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qMatrix,s=i.qArea.qTop,l=jw[t.qType.toLowerCase()],u=e.meta.isButterfly&&r>0;for(let e=0;e<a.length;e++){const i=a[e][0],c=e+s+1,d=l({dimValue:i.qElemNumber,value:c,qTrendLine:t});u&&(d.y=-d.y),d.layerId=n,d.measureIndex=r,d.dimValue=i.qText,o.push(d)}return o},calculate:(e,t,n)=>(0,jw[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:Bw}}(e)}var Vw={TYPES:{AVERAGE:"properties.trendlines.types.average",LINEAR:"properties.trendlines.types.linear",POLYNOMIAL2:"properties.trendlines.types.polynomial2",POLYNOMIAL3:"properties.trendlines.types.polynomial3",POLYNOMIAL4:"properties.trendlines.types.polynomial4",EXPONENTIAL:"properties.trendlines.types.exponential",LOG:"properties.trendlines.types.logarithmic",POWER:"properties.trendlines.types.power"},STYLE:{DASHED:"properties.trendlines.style.dashed"},TYPE:"properties.trendlines.type",HEADER:"properties.trendlines",ADD_BUTTON:"properties.trendlines.button.add"},Ww={color:"#f93f17",index:9};const{isDark:Uw}=Ot,Kw={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},Gw=({layoutService:e,viewState:t,colorModel:n,chart:r,env:o,keys:{colorScale:i},isEnabled:a=(()=>!1)})=>{const{translator:s}=o,l=[Kw],u=[],d=[],f=$w(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(u.push(...e.qTrendLines),d.push(...e.qTrendLines.map((()=>t))))}));const p=c((e=>{const{style:t}=u[e]||{},o=n.settings();if(t.autoColor){if("measure"===o.mode){const t=d[e],n=r.scale(i)(t);return Uw(n)?function(e){const t=Et(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=Et(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(Ww)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!u.length&&a(),getData:()=>l,getStroke:p,getLineDash:e=>{const{style:t}=u[e]||{};return null==t?void 0:t.lineDash},getLineThickness:e=>{var t;const{style:n}=u[e]||{};return null!==(t=null==n?void 0:n.lineThickness)&&void 0!==t?t:2},getLabel:e=>(u[e]||{}).label,getType:e=>{const{qType:t}=u[e]||{};return s.get(Vw.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return u.forEach((r=>{const o=f.findMinMax(e.meta.size.y,r);t=Math.min(o.min,t),n=Math.max(o.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=u[e];return f.calculate(r,t,n)}},command:{update:()=>{l.length=0,u.forEach(((e,t)=>{const n=f.generate(e,t,d[t]);l.push(...n)}))}}}};var Yw={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const Xw=({meta:e})=>e.isContinuous?({scale:e,datum:t})=>e(t.value):e.isGroupedByMeasure?({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2:({scale:e,datum:t})=>e(t.value)+e.bandwidth()/2,Jw=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:o})=>{if(!n.query.hasTrendLines())return[];const i=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:o,animationsEnabled:i})=>{const a=Xw(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:Yw,settings:{connect:!0,orientation:o.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:({datum:e})=>n.query.getLineThickness(e.layer.value),stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:i,trackBy:rs.nonUpdatingNode.trackBy,compensateForLayoutChanges:rs.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:o}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:o})=>{const i=Xw(r),a="horizontal"===o.meta.major.orientation,s={scale:e,fn:i},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:Yw,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[i,a]};function Zw(e,t){const{getLabel:n,getType:r,getLineDash:o,getStroke:i}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:i(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":o(t.data.layer.value)}},l={content:[{content:n(t.data.layer.value),style:{"font-weight":"bold"}},{content:r(t.data.layer.value)}],style:{"min-width":"136px"}};return{title:t.data.dimValue.label,row:[s,l,{content:a.formatter(e.formatter)(t.data.minor.value)}]}}}const Qw=16,ek=2;function tk(e,t){return Array.isArray(t.content)?e("div",{style:{display:"flex","flex-direction":"column"}},t.content.map((t=>e("span",{style:t.style,direction:Oe.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:`${Qw}px`,x2:`${Qw}px`,y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:`0 0 ${Qw} ${Qw}`},t)}(e):t.content}function nk(e,t){return({h:n,data:r,style:o})=>{const i=r[0].title,a=r.filter((e=>e.title===i)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:Oe.detectTextDirection(t)},t);return e("tr",{},n)}(n,i),l=[s];if(a.slice(0,ek).forEach((e=>{l.push(n("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Oe.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const o=tk(t,e);return t("td",r,o)}))}(e.row,{h:n,style:o})))})),r.length>ek){const o=r.length-ek;l.push(...function(e,t,n,r){const o=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,i=Oe.detectTextDirection(o);return[e("tr",{},e("td",{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:3},"")),e("tr",{},e("td",{style:{"font-weight":"bold","text-align":n?"right":"left",direction:i},colspan:3},o))]}(n,e,t,o))}return l}}function rk(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:o}=r,i=qe({key:e.tooltip,rtl:o});return ie(!0,i,{settings:{extract:Zw(e,t),content:nk(n,o),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function ok(e,t){const n=t.element.getBoundingClientRect();return{x:(e.center?e.center.x:e.clientX)-n.left,y:(e.center?e.center.y:e.clientY)-n.top}}function ik(e,{chart:t,viewState:n,trendLineModel:r,layoutService:o,rtl:i}){const{isContinuous:a}=o.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=ok(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:o}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=ok(r,t),u=t.shapesAt({cx:(c=l).x,cy:c.y,r:3},s);var c;if(u.length){const r=function(e,t,n,r){let o=(e.x-t.rect.computed.x)/t.rect.computed.width;o=r?1-o:o;const{min:i,max:a}=n.get("zoom");return i+(a-i)*o}(l,a,n,i),s=t.scale(e.majorInnerScale),c=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);u.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=c,e.data.minor.value=o(e.data.layer.value,r).y}))}return u}}return n=>{const r=t.component(e.tooltip);if(r&&(n=>t.componentsFromPoint({x:n.center?n.center.x:n.clientX,y:n.center?n.center.y:n.clientY}).some((t=>t.key===e.tooltipOverlay)))(n)){const e=l(n,r);return e.length?(r.emit("show",n,{nodes:e}),!0):(r.emit("hide"),!1)}return!1}}const ak=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},sk=e=>{ak(e),e.qMultiDimMode="Sum",e.qXColIx=0};function lk(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!be.dimensionless(n)&&!be.groupedByDimension(n)&&(r||!be.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:Vw.HEADER,itemTitleRef:e=>{const n=typeof e.label;return"string"===n&&e.label?e.label:"object"===n?e.label.qStringExpression?e.label.qStringExpression.qExpr:e.label.qValueExpression.qExpr:t.get(Vw.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:Vw.ADD_BUTTON,add:sk,globalChange:e=>{const t=o(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!o(e,"dimensionAxis.continuousAuto",!1)&&e.preferContinuousAxis)(e)?"Possible":"Never";t.forEach((e=>{e.qContinuousXAxis=r})),n.onGlobalChange(e,t)},items:{label:{ref:"label",type:"string",expression:"optional",translation:"Common.Label",defaultValue:""},type:{ref:"qType",type:"string",component:"dropdown",translation:Vw.TYPE,options:[{value:Nw,translation:Vw.TYPES.AVERAGE},{value:Lw,translation:Vw.TYPES.LINEAR},{value:Ow,translation:Vw.TYPES.POLYNOMIAL2},{value:Dw,translation:Vw.TYPES.POLYNOMIAL3},{value:Aw,translation:Vw.TYPES.POLYNOMIAL4},{value:Iw,translation:Vw.TYPES.EXPONENTIAL},{value:Rw,translation:Vw.TYPES.LOG},{value:Pw,translation:Vw.TYPES.POWER}],defaultValue:Nw},autoColor:{ref:"style.autoColor",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},paletteColor:{ref:"style.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:Ww,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:Vw.STYLE.DASHED,type:"boolean",defaultValue:!0,change:ak}}}}var uk,ck;var dk=function(){if(ck)return uk;ck=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},uk=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},uk}(),fk=ee(dk);const pk={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 mk=e=>(Object.keys(fk.prototype).forEach((t=>{e[t]=fk.prototype[t]})),fk.init(e),e);var hk={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}},gk={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",MAJOR_NUM:"majorNum",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",STACK:"stack",BAR_AXIS:"bar-axis",GROUP_AXIS:"group-axis",BAR_OOB_MAX:"bar-oob-max",BAR_OOB_MIN:"bar-oob-min",STACK_TOTAL_BAR:"stack-total-bar",BASE_TOOLTIP:"tooltip",LEGEND_CAT_TOOLTIP:"legend-cat-tooltip",LEGEND_COLOR_CAT:"legend-color-cat",MEASURE_REF_LINE:"mes-ref-line",DIMENSION_REF_LINE:"dim-ref-line",MEASURE_REF_LINE_LABEL:"mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label",TREND_LINES_TOOLTIP:"trend-lines-tooltip",TREND_LINES_TOOLTIP_OVERLAY:"trend-lines-tooltip-overlay"},COLLECTION:{MAIN:"main-collection",MINI:"mini-collection",MINI_STACK:"mini-stack-collection",MINI_CONTINUOUS:"mini-continuous-collection",STACK_TOTAL:"stack-total-collection"},FORMATTER:{MINOR:"bar",COLOR:"fill"},STYLING:{AXIS:"axis"}};const yk=({layout:e,flags:t})=>{var n,r,o,i;if(null==t||!t.isEnabled("TLV_800_BUTTERFLY_CHART"))return!1;const a=null==e||null===(n=e.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})),s=null==e||null===(r=e.qHyperCube)||void 0===r||null===(r=r.qMeasureInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})),l=null!==(o=null==a?void 0:a.length)&&void 0!==o?o:0,u=null!==(i=null==s?void 0:s.length)&&void 0!==i?i:0;return 1===l&&2===u},vk=e=>({layout:t})=>{var n;const r=fe.canBeContinuous(t),o=be.continuous(t),i=be.dimensionless(t),a=yk({layout:t,flags:e})&&"butterfly"===(null==t||null===(n=t.barGrouping)||void 0===n?void 0:n.grouping);return{canBeContinuous:r,isDiscrete:!o,isContinuous:o,isTime:fe.isTime(o,t),isDimensionless:i,isSimple:be.simple(t),isGrouped:!a&&be.grouped(t),isGroupedByMeasure:!a&&be.groupedByMeasure(t),isGroupedByDimension:!a&&be.groupedByDimension(t),isStacked:!a&&be.stacked(t),isStackedByDimension:!a&&be.stackedByDimension(t),isStackedByMeasure:!a&&be.stackedByMeasure(t),isSnapshot:be.snapshot(t),isButterfly:a}},bk={extractDimsAndNode(e){const t=[];let n;return e.forEach((e=>{if(e.key===gk.COMPONENT.BAR){n=e;const r=o(e,"data.selectionDimension",!1);r&&(t.push(r.label),r.label!==e.data.label&&t.push(e.data.label))}})),{nodeDims:t,node:n}}};function xk({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:o}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==o.event&&r({componentName:"continuousRangeBrush",brushName:!1})}function Sk({chart:e,actions:t,selections:n}){const r=e.scale(gk.SCALE.MAIN.MAJOR);return d({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:xk},custom:{getActions:()=>t},setBrushAliases({defaultFunc:e,brush:t}){e(),t.addKeyAlias("miniCube/qDimensionInfo/0","qHyperCube/qDimensionInfo/0"),t.addKeyAlias("miniCube/qDimensionInfo/1","qHyperCube/qDimensionInfo/1")}}})}const Mk=e=>{const t=e.qDimensionInfo.length;for(let n=0;n<t;n++){const r=e.qDimensionInfo[n];if(!(r.qLocked||r.qCardinalities.qHypercubeCardinal<=1&&n<t-1))return n}};function Ck({layout:e,defaultAuto:t}){return e.qHyperCube.qDimensionInfo.length>1?{mode:"byDimension",useDimColVal:!0,useBaseColors:"dimension",byDimDef:{activeDimensionIndex:1}}:e.qHyperCube.qMeasureInfo.length>1?{mode:"primary",useBaseColors:"measure",paletteColor:null}:t(e)}function wk({app:e,model:t,translator:n,picasso:r,localeInfo:o,theme:i,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:u}){const{isContinuous:c,isStacked:d}=s.meta,p={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const m=[],{isReduced:h}=u.model().mode,g=c||h||d,y=!c&&(h||d)&&l?l.getHyperCube():void 0,v=y?"legendCube":void 0;return p.main=f({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:Ck,key:gk.SCALE.MAIN.COLOR},createConfig:()=>({hc:g?y||s.getHyperCube():u.model().cube,source:g?v:"miniCube",theme:i})}),m.push(p.main.initialize()),c&&(p.mini=f({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:Ck,key:gk.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:i})}),m.push(p.mini.initialize())),Promise.all(m)},getMain:()=>p.main,getMini:()=>p.mini}}const kk={getMaxGlyphCount(e,t){const{qDimensionInfo:n}=e,{qApprMaxGlyphCount:r}=n[t];return r},getDimensionSize(e){var t;const n=null==e||null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal,{qLocked:r=0,qOption:o=0,qSelected:i=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+o+i:n}};function Tk({layoutService:e}){return p({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0,LimitedData:{condition:()=>{const{isContinuous:t,isTwoDimensional:n}=e.meta;if(!t||!n)return!1;const r=e.getLayout().qHyperCube.qDimensionInfo[1];return kk.getDimensionSize(r)>fe.maxNumberOfLines}},OnlyNegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.every((e=>{const{qMin:t,qMax:n}=e;return t<0&&n<0}))}return!1},alignment:"center"},NegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.some((e=>{const{qMin:t}=e;return t<0}))}return!1}}}}})}function qk(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function Ek(e){return e.some(qk)}function Nk(e,t){let n=NaN,r=NaN;return e.forEach((e=>{Ek(e)||e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(n=Number.isNaN(n)?e.qNum:Math.min(e.qNum,n),r=Number.isNaN(r)?e.qNum:Math.max(e.qNum,r))}))})),{min:n,max:r}}function Lk(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");e.meta.isButterfly||"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"),e.meta.isButterfly&&(t=-n))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function Ok(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!Ek(e)){let o=0,i=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?i+=e.qNum:o+=e.qNum)})),n=Number.isNaN(n)?o:Math.min(o,n),r=Number.isNaN(r)?i:Math.max(i,r)}})),{min:n,max:r}}function Dk(e,t){const n={};e.forEach((e=>{if(!Ek(e)){const r=e[0].qElemNumber;n[r]=n[r]?n[r]:{min:0,max:0,cId:r},e.slice(t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?n[r].max+=e.qNum:n[r].min+=e.qNum)}))}}));let r=NaN,o=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),o=Number.isNaN(o)?n[e].max:Math.max(n[e].max,o)})),{min:r,max:o}}function Ak(e){return"number"==typeof e&&!Number.isNaN(e)}function Ik(e){const t=e.getHyperCubeValue("qMeasureInfo");return{min:Math.min(...t.filter((e=>Ak(e.qMin))).map((e=>e.qMin))),max:Math.max(...t.filter((e=>Ak(e.qMax))).map((e=>e.qMax)))}}const{isNumber:Rk}=pa;function Pk(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function zk(e){return!Number.isNaN(+e.qNum)}function jk(e){return e.qNum}function Fk(e){return!Number.isNaN(+e.qNum)}function Bk(e){return e.qNum}function _k(e,t){return e.push(...t),e}const{getValueWithOffset:Hk,isNumber:$k}=pa,Vk=5,Wk=.2;function Uk(e,t){return Math.abs(e/t)<Vk||0===t}function Kk({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=Ok,stackedByDimensionExtractor:i=Dk,straightExtractor:a=Nk,measureInfoExtractor:s=Ik,explicitExtractor:l=Lk}=n,{meta:u}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:o}){let i,a;if(Array.isArray(n)?({min:i,max:a}=this.extractFromStacked(n)):({min:i,max:a}=this.extractFromStraight(e,o)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();i=Number.isFinite(e)?Math.min(i,e):i,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),u=this.extractExplicit(),c=[0,i,a].filter((e=>$k(e)));let d=Math.min(...c),f=Math.max(...c);d=Uk(s,d)?Math.min(d,s):d,f=Uk(l,f)?Math.max(f,l):f;const p=[u.explicitMin,u.explicitMax,d,f].filter((e=>$k(e)));return i=Number.isNaN(u.explicitMin)?Math.min(...p):u.explicitMin,a=Number.isNaN(u.explicitMax)?Math.max(...p):u.explicitMax,i===a&&(Number.isNaN(u.explicitMin)?i=Hk(i,-Wk):Number.isNaN(u.explicitMax)&&(a=Hk(a,Wk))),{min:i,max:a,implicitMin:d,implicitMax:f,otherMin:s,otherMax:l,hasOtherMin:s<i,hasOtherMax:l>a,...u}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:o}=l(e);return{hasExplicitMinMax:r||o,hasExplicitMin:r,hasExplicitMax:o,explicitMin:t,explicitMax:n}},extractFromStacked(e){const t=e.length?e[0].qData:[];return(n=t).length?{min:Math.min(...n[0].qSubNodes.filter((e=>Rk(e.qMinNeg))).map((e=>e.qMinNeg))),max:Math.max(...n[0].qSubNodes.filter((e=>Rk(e.qMaxPos))).map((e=>e.qMaxPos)))}:{min:0,max:0};var n},extractFromStraight(t,n){const o=t.length?t[0].qMatrix:[];return u.isStackedByMeasure?r(o,n):u.isStackedByDimension?i(o,n):e.getHyperCubeValue("qHasOtherValues")?a(o,n):s(e)},extractOthers:e=>u.isStackedByDimension?function(e){const t=Pk(o(e,"0.qData.0.qSubNodes",[]),qk,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):u.isGroupedByDimension?function(e){const t=o(e,"0.qMatrix",[]).filter(Ek).reduce(_k,[]).filter(Fk).map(Bk);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=Pk(o(e,"0.qMatrix",[]),Ek,[]).filter(zk).map(jk);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function Gk(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:o}=t,i=e=>!e.length&&r.mode.K,a=e=>{const t=o("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=o("qMeasureInfo").length,s=o("qDimensionInfo").length,l=o("qHasOtherValues");if(!r.isStacked&&!l)return Promise.resolve({qDataPages:[{}],count:t});if(r.isContinuous){const e=r.isStackedByDimension?s:t;return n.fetchMinMaxData().then((t=>({qDataPages:t,count:e})))}const u=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(i(e))return a(l);let t=[];return l&&(t=r.mode.K?o("qStackedDataPages",[]):o("qDataPages",[])),{qDataPages:e,count:u,others:t}}))}}}(e),n=Kk(e);return t.resolve().then((e=>n.extract(e)))}const Yk=({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}}}),Xk="lasso",Jk=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:Xk,enable(e,n){if(this.started===Xk||!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!==Xk&&(o.actions.select.emit("start",Xk),this.chart.component(e).emit("lassoStart",t),this.started=Xk)},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",Xk),"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});const Zk=({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),u=i.hitRadius?i.hitRadius(a):0,c=u>0?{cx:n.x,cy:n.y,r:u}:n,d=i.shapesAt?i.shapesAt(c):this.chart.shapesAt(c,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),f=this.chart.component("tooltip"),p="mouse"!==t.pointerType&&f&&f.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(f&&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,f,{nodes:n,opts:i,customTooltipModel:e})}else f.emit("show",t,{nodes:d})}else p&&f.emit("hide")}}}};const Qk=({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 eT=({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 tT(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:u=!1,multiple:c=!1,toLabel:d,onEdited:f}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:f?{bubbleEnd(){f()}}:{},settings:{brush:u?{context:"selection",observe:!0}:"selection",scale:s,multiple:c,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=eT(e,t,"range");return{interactions:[e.onEdited?Qk(e,t):null,r].filter(Boolean),components:[n]}}const nT={refLines:{minimumLayoutMode:"SPARK"},measureAxisTitle:{minimumLayoutMode:"XSMALL"},dimensionAxisTitle:{minimumLayoutMode:"XSMALL"},measureAxis:{minimumLayoutMode:"XSMALL"},dimensionAxis:{minimumLayoutMode:"XSMALL"},gridLines:{minimumLayoutMode:"XSMALL"},refLinesLabels:{minimumLayoutMode:"SMALL"},horizontalDimensionAxis:{minimumLayoutMode:{width:"XSMALL",height:"SMALL"}},verticalDimensionAxis:{minimumLayoutMode:{width:"SMALL",height:"XSMALL"}},horizontalDimensionAxisTitle:{minimumLayoutMode:{width:"XSMALL",height:"MEDIUM"}},verticalDimensionAxisTitle:{minimumLayoutMode:{width:"MEDIUM",height:"XSMALL"}}},rT="inner-time-axis",oT="outer-time-axis";const iT={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=kk.getMaxGlyphCount(e,r)}else e.qMeasureInfo.forEach((e=>{n=Math.max(n,e.qFallbackTitle.length)}));return n},getAxisData(e,t){let n;return n=e.qDimensionInfo.length?o(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=iT.getAxisData(e,t),r=!e.qDimensionInfo.length,o=r||t?void 0:e.qDimensionInfo.length-1,i=iT.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return we.getAdjustedMaxGlyphCount(i,n,o,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=iT.getAxisData(e),n=kk.getMaxGlyphCount(e,0);return we.getAdjustedMaxGlyphCount(n,t,0)}};var aT={LOWERGLYPHCOUNT:3,UPPERGLYPHCOUNT:13};function sT(e,t,n,r){const{meta:o}=t.layoutService,i=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);o.isContinuous?i.push(...function(e,t,n,r){const{meta:o}=t.layoutService,{axis:i,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:u}=t.layoutService.getLayoutValue("gridLine",{}),c=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,f=nT[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,p={type:"grid-line",x:{},layout:{minimumLayoutMode:nT.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:rs.lines.trackBy,compensateForLayoutChanges:rs.lines.compensateForLayoutChanges}},m=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(o.isTime){if(d){const e=n?"end":"start",r=n?1:0,o="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:i.line.major.color},minorGuideLine:{stroke:i.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:o,justify:r},guideLine:{major:{justify:r},minor:{align:o}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:rs.axes.trackBy({isTime:!0}),compensateForLayoutChanges:rs.axes.compensateForLayoutChanges({isTime:!0})}};c.push(ie(!0,{},d,{key:rT,scale:gk.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===u}},style:ie(!0,{},a,{line:{stroke:i.line.major.color},majorGuideLine:{stroke:i.line.minor.color},minorGuideLine:{stroke:i.line.major.color}})})),c.push(ie(!0,{},d,{key:oT,scale:gk.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),c.push({type:"axis-overlay",key:"outer-axis-overlay",scale:gk.SCALE.MAIN.MAJOR,layout:{dock:`@${oT}`,minimumLayoutMode:f}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:gk.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${rT}`,minimumLayoutMode:f}}),c.push(m)}return c.push(ie(!0,{},p,{key:"inner-time-grid",x:{scale:gk.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),c.push(ie(!0,{},p,{key:"outer-time-grid",x:{scale:gk.SCALE.MAIN.MAJOR}})),c}if(o.isContinuous){const e="continuous-axis";d&&(c.push({type:"axis",key:e,renderer:ys(t.flags),scale:gk.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:i.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:rs.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:rs.axes.compensateForLayoutChanges({isContinuous:!0})}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:gk.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:f}}),c.push(m)),c.push(ie(!0,{},p,{key:"continuous-grid",x:{scale:gk.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return c}(e,t,n,r)):i.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:o}=t.layoutService,i=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),u="horizontal"===t.dockService.meta.major.orientation,c=u?e.dimensionAxis.label:"auto",d="horizontal"===c?void 0:t.dockService.meta.minor.size/4,f=t.styleService.axis.label.getStyle(),p={type:"axis",renderer:ys(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:nT[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:c,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...f},line:{show:!r,stroke:i.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:rs.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:rs.axes.compensateForLayoutChanges({isHorizontal:u})}};l&&a.push(ie(!0,{},p,{key:"group-axis",scale:gk.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":p.settings.labels.mode,maxGlyphCount:iT.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(u||!s)&&p.settings.line.show}}}));const m=iT.getBarAxisMaxGlyphCount(e.qHyperCube,o.isStackedByDimension);return s&&a.push(ie(!0,{},p,{key:gk.COMPONENT.BAR_AXIS,scale:gk.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:m,maxLengthPx:d,tiltThreshold:m>aT.LOWERGLYPHCOUNT&&m<aT.UPPERGLYPHCOUNT?1:void 0},line:{show:!(u&&l)&&p.settings.line.show}}})),u||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),u=t.styleService.axis.label.getStyle();return a&&i.push({type:"axis",key:"y-axis",renderer:ys(t.flags),formatter:gk.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:nT.measureAxis.minimumLayoutMode},scale:gk.SCALE.MAIN.MINOR,settings:{labels:{show:s,...u},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}},animations:{enabled:t.viewModel.animations.enabled,trackBy:rs.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:rs.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),i}var lT={BAR:{WIDTH:.7,STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};const uT=.7,cT=.9;function dT({layoutService:e,discrete:t,componentKey:n}){var r;const{isContinuous:o,isGrouped:i}=e.meta;if(o)return 1;const a=(e.getLayoutValue("components",[])||[]).filter((e=>e.key===n))[0];if(null!=a&&null!==(r=a.style)&&void 0!==r&&r.width){const{style:e}=a;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=lT.BAR.STROKE.WIDTH[e.strokeWidth.toUpperCase()]/t.query.getItemSize(),r=e.width+n;return r>1?e.width-(r-1):e.width}:e.width}return i?cT:uT}const fT={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function pT(e,t,n={}){return({data:r})=>{const o=e.chart.component(t).rect;if(!r.items.length||!o)return 2;const{min:i,max:a}=e.viewState.get("zoom");if(n[[i,a]])return n[[i,a]];const s=fT[le.getLayoutMode(o.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-i),u=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===u)return s;const c=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/u/.2,1));return n[[i,a]]=Math.max(2,Math.min(s,c)),n[[i,a]]}}function mT(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function hT(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function gT(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function yT(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const vT={MAX:"max",MIN:"min"},bT={min:"Min",max:"Max"};function xT(e,t,n){return void 0===n?mT(e,t)||hT(e,t):n===vT.MAX?mT(e,t):hT(e,t)}function ST({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${bT[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===vT.MAX?e.implicitMax:e.implicitMin;return!xT(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function MT(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:o,dockService:i,themeService:a}=e,s=o.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===vT.MAX?s.implicitMax:s.implicitMin;if(!xT(Number(l.toFixed(13)),s,n))return!1;const{orientation:u}=t.settings,c=n===vT.MAX?i.meta.minor.end:i.meta.minor.start;let d="end";r&&(d=n===vT.MAX?"sumOfPositives":"sumOfNegatives");const f=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:c},data:t.data,brush:t.brush,settings:{orientation:u,major:t.settings.major,minor:t.settings.minor,dockValue:Me.getDockValue(c),oob:ie({},t.settings.box,{fill:f.outOfRange.color,alignment:1,opacity:1,show:function(e){var t;return!0!==(null===(t=e.datum.null)||void 0===t?void 0:t.value)&&((!r||0!==e.datum[d].value)&&xT(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:rs.barOobs.compensateForLayoutChanges}}}function CT(e){return Math.min(Math.max(0,e),1)}const wT=(e,{chart:t,type:n,componentKey:r,collectionKey:o})=>{const{layoutService:i,dockService:a,viewCache:s}=e,{isStacked:l}=i.meta,u=s.get("minorMinMax"),{meta:c}=e.layoutService;if(!ST({minorMinMax:u,type:n}))return!1;let d;c.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:c.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);return{type:"box",key:`${gk.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:o},settings:{orientation:a.meta.minor.orientation,major:{scale:gk.SCALE.MAIN.MAJOR,fn:d},minor:{scale:gk.SCALE.MAIN.MINOR,start(e){var n;return CT(t.scale(gk.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(n=n.start)||void 0===n?void 0:n.value)||0))},end(e){const r=t.scale(gk.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r[n]();return CT(r(i))}},box:{width:dT({layoutService:e.layoutService,discrete:e.discrete,componentKey:r}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(gk.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r.max();return"max"===n?i>r.max():i<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}};function kT(e,t){const{style:n,styleService:r,dockService:o}=t,i=r.label.getStyle(),a=i.useContrastColor&&!e.onBackground?function(e){return function(t){return Ot.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):i.fill,s="horizontal"===o.meta.major.orientation,l=e.padding||{left:s?0:4,right:s?0:4,top:s?4:0,bottom:s?4:0};return{position:e.position,justify:e.justify,fill:a,overflow:e.overflow,background:e.background,padding:l}}function TT(e){return{placements:e.simplifiedPlacements.map((t=>kT(t,e))),label:e.label}}function qT(e,t){if(t){if(function(e,t){return mT(e,t)}(e,t))return-1;if(function(e,t){return hT(e,t)}(e,t))return 1}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)}const ET="vertical",NT="horizontal";function LT(e,t,n,r){const o=qT(e,r);let i="up";return t===ET&&o<0?i="down":t===NT&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}function OT(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!r||!o&&!!n.showSegmentLabels}function DT(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!!r&&(!!o||!1!==n.showTotalLabels)}function AT(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}function IT({layout:e,component:t,minorScale:n},r,o){if(!OT(e,r))return!1;const{viewModel:i,ds:a,viewCache:s,layoutService:l,dockService:u,themeService:c}=r,{meta:d}=l,f=s.get("minorMinMax"),p=c.getStyles(),m=r.styleService.label.getStyle();let h;!d.isStacked&&(h=d.isStacked?1:0);const g=0===h?1:0,y=d.isStacked?.5:1,v=i.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,S=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>S?b(e.data.segment.value):""}:function(e){return e.data.end.label};const M={label:x,simplifiedPlacements:AT(h,g,y,d.isContinuous),style:p.label.value},C=[TT(ie(r,M))],w={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>LT(e.data.end.value,u.meta.minor.orientation,o,f),labels:C,fontSize:parseInt(m.fontSize,10),fontFamily:m.fontFamily,linkData:rs.labels.linkData}}},k=[w],T={key:"bar-labels",type:"labels",renderer:ys(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:k},animations:{enabled:r.viewModel.animations.enabled,trackBy:rs.labels.trackBy,compensateForLayoutChanges:rs.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(T.beforeRender=()=>{S=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",o=t.chart.component(e),i=o&&o.rect?o.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/i}(t,r,n)}),T}const RT={isSameMeasureAndColorRow:(e,t,n)=>t&&e&&t[0].content[0]===e[0].content[0]&&t[0].content[1]===e[0].content[1]&&t[1].content[n?0:1]===e[1].content[0],getTitle(e,t){const n=e.data;let r;return t.isStackedByDimension?r=n.stack?n.stack.label:void 0:t.isGroupedByDimension&&(r=n.group?n.group.label:void 0),void 0!==r?`${n.label}, ${r}`:n.label},getMeasure(e,t,n,r,o){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const i=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:i.measureIndex.value]:void 0,s=n.isStacked?{source:{key:i.source.key,field:a},label:!0===(null===(l=i.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&o?o(i.segment.value):i.segment.label}:i.end;var l;return De.getMeasure(e,s)},getMeasures(e,t,n,r,o){const i=e.resources.dataset;return t.map((e=>RT.getMeasure(i,e,n,r,o))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return zC({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,o){const i={title:RT.getTitle(t,n),color:De.getColor(e,t,r),measures:RT.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,o)};if(RT.useCustomTooltip(r)){var a,s;const n=RT.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);i.customMeasures=n.customTooltipAttrExpsArr,i.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===xC.CUSTOM.TITLE)),i.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===xC.CUSTOM.DESCRIPTION));let o=[];(t.childrenNodes?t.childrenNodes:[t]).forEach((e=>{var t;(null===(t=e.data.customTooltipImages)||void 0===t?void 0:t.length)>0&&!Array.isArray(e.data.customTooltipImages[0])&&(o=e.data.customTooltipImages)})),o.length>0&&(i.customImages=o);const d=r.layoutService.getLayout();var l,u,c;if(null!==(a=d.tooltip)&&void 0!==a&&null!==(a=a.chart)&&void 0!==a&&null!==(a=a.object)&&void 0!==a&&a.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(s=r.customTooltipModel.model)||void 0===s?void 0:s.getEffectiveProperties))if(null!==(l=(u=r.app).isInModalSelection)&&void 0!==l&&l.call(u)){if((null==d||null===(c=d.qHyperCube)||void 0===c||null===(c=c.qDimensionInfo)||void 0===c?void 0:c.length)>0){NC.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");i.customLimitation=e}}else{const t=NC.createContainer({ctx:e,layout:d});i.customChart=t}}return i},getTotalStackTitle:(e,t)=>e>0?t?t.get("Object.ChartTooltip.sumOfPositives"):"Sum of positives":e<0?t?t.get("Object.ChartTooltip.sumOfNegatives"):"Sum of negatives":"",extractStackTotalBarTooltipData(e,t,n){const r=e.data.label,o=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${RT.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:o}},extractTooltipData(e,t){const n=t.chart.formatter(gk.FORMATTER.MINOR),{meta:r}=t.layoutService,o=e.node.childrenNodes?e.node.childrenNodes:[e.node],i=Math.max(0,o.length-6);o.length=Math.min(o.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>RT.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:o.map((o=>RT.extractBarTooltipData(e,o,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:i}},extractBarNodeData(e,t,n,r,o,i,a){let s=!o&&De.getTitleRow(t,r);const l=De.hideColorRow(t,n),u=!i&&!l&&De.getColorRow(e,t,r),c=t.measures.map((o=>!a&&De.getMeasureRow(o,e,t,r,l&&o.field===n.coloring.field))),d=c.filter((e=>!RT.isSameMeasureAndColorRow(e,u,r)));if(RT.useCustomTooltip(n)){const n=o?[]:t.customMeasures.map((n=>De.getMeasureRow(n,e,t,r,!1))),i=!(!t.customTitle[0]||o)&&De.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||o)&&De.getDescriptionRow(t.customDescription[0],r);s=!RT.shouldIgnoreTitleRowForCtt(i,a,d,n)&&s;const l=[i,a,s,u,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(AC.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>AC.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,u,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&De.getTitleRow(t,n),o=t.measures.map((r=>De.getMeasureRow(r,e,t,n,!1)));return[r,...o].filter(Boolean)},useCustomTooltip:e=>o(e,"customTooltipModel.useCustomTooltip",!1),shouldIgnoreTitleRow:(e,t)=>e.isDimensionless||t>0&&!e.isGroupedByDimension&&!e.isStackedByDimension,shouldIgnoreTitleRowForCtt:(e,t,n,r)=>!1===n[0]&&0===r.length&&(e.length>0||t.length>0),shouldIgnoreColorRow:(e,t)=>t>0&&(e.isGroupedByMeasure||e.isStackedByMeasure),shouldIgnoreMeasureRow:(e,t,n)=>e&&t.measures.some((e=>e.field===n.coloring.field)),shouldIgnoreDefaultRows:(e,t)=>RT.useCustomTooltip(t)&&o(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:o}=t.layoutService,i=t.layoutService.getLayout(),a=r.length;let s,l,u=[];const c=RT.shouldIgnoreDefaultRows(i,t);for(s=0;s<a;s++){l=r[s];const i=RT.shouldIgnoreTitleRow(o,s),d=c||RT.shouldIgnoreColorRow(o,s),f=c||RT.shouldIgnoreMeasureRow(d,l,t);if(u=u.concat(RT.extractBarNodeData(e,l,t,n,i,d,f)),u.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:u,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:u,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(RT.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:o,stackTotalBarTooltipData:i}=RT.extractTooltipData(e,t),a=RT.extractStackTotalBarsData(e,n,i);a.length&&a.push(De.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=RT.extractBarsData(e,t,n,r),u=a.concat(s),c=o+l;return c&&u.push(De.getNMoreRow(c,t.translator,n)),u},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return ms.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:o,groupProp:i}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",u=e.chart.scale(n).pxScale(a[l]);let c,d,f;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;c=o.value,d=n===r&&void 0!==c?(u([c,0])+u([c,t-1]))/2:0,f=n===r&&void 0!==c?u.bandwidth([c,0]):0}else{const{value:e}=o;c=o[i]?o[i].value:void 0,d=u(n===r&&void 0!==c?[c,e]:e),f=n===r&&void 0!==c?u.bandwidth([c,e]):u.bandwidth(e)}const p=(d+f/2)*a[l],m={width:0,height:0};return"horizontal"===s?(m.x=p,m.y=a.height):(m.y=p,m.x=0),m},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:o,majorScale:i,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let u;return u=l.length?RT.calculateBoundsFromBars(l):RT.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===o?i:a,majorScale:i,data:t[0].data,groupProp:s}),u},filterNodesOnKeys:(e,t)=>e.filter((e=>e.data&&t.indexOf(e.key)>-1)),isBarMatchingLabel:(e,t)=>t.data.value===e.data.value,isBarMatchingLabelOnProp:(e,t,n)=>t.data.value===(e.data[n]?e.data[n].value:e.data.value),findBarsMatchingLabels(e,t,n,r){const o=e.filter((e=>t.some((t=>n(e,t,r)))));return o},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=RT.isBarMatchingLabelOnProp;return RT.findBarsMatchingLabels(e,t,r,n)},findBarsFromBarLabelsInGroupedByDim:(e,t,n)=>e.filter((e=>t.some((t=>t.data.group&&t.data.group.value===e.data[n].value&&t.data.value===e.data.value)))),findBarsFromLabelsInSingleDim(e,t){const n=RT.isBarMatchingLabel;return RT.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const o=t.filter((e=>e.key===n)),i=t.filter((e=>e.key!==n)),a=RT.findBarsFromBarLabelsInGroupedByDim(e,o,r),s=RT.findBarsFromGroupLabelsInGroupedByDim(e,i,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=RT.isBarMatchingLabel;return RT.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=RT.isBarMatchingLabel;return RT.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=RT.isBarMatchingLabelOnProp;return RT.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>RT.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:o,stackProp:i}){const{meta:a}=t.layoutService,s=RT.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?RT.findBarsFromLabelsInStackedByDim(s,e,i):a.isStackedByMeasure?RT.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?RT.findBarsFromLabelsInGroupedByDim(s,e,r,o):RT.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const o=RT.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?RT.findStackTotalBarsFromLabelsInStackedByDim(o,e):RT.findStackTotalBarsFromLabelsInStackedByMeasure(o,e)}return[]},isSingleBarMode:(e,t)=>(e.isSimple||1===t.length)&&t[0].children&&t[0].children.length,filterNodesOnLabels({labels:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:u,majorInnerScale:c,filterFn:d}){const{meta:f}=t.layoutService;if(e.length){let p=RT.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(p=p.filter(d)),RT.isSingleBarMode(f,p))return[p[0]];if(p.length){let f=RT.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,i,a],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});d&&(f=f.filter(d));const m=RT.calculateTotalBounds({opts:t,labels:e,bars:f,barKey:n,barAxisKey:o,groupProp:s,majorScale:u,majorInnerScale:c}),h=RT.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:m,childrenNodes:p,data:p.map((e=>e.data)),stackTotalBarNodes:h};return[g]}return[]}return[]},filterNodesForOob:(e,t,n)=>e.key===t&&0===e.children.length||e.key===n,filterNodes({nodes:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,groupAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d}){let f=RT.filterNodesOnKeys(e,[o,i]),p=f&&f.length?[f[0]]:[];const m=RT.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d});if(m&&m.length)return m;const{meta:h}=t.layoutService;if(h.isStackedByMeasure){f=RT.filterNodesOnKeys(e,[a,s]),p=f&&f.length?[f[0]]:[];const i=e=>RT.filterNodesForOob(e,n,a),m=RT.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}if(h.isStackedByDimension){f=RT.filterNodesOnKeys(e,[a,s]),p=f&&f.length?[f[0]]:[];const i=e=>RT.filterNodesForOob(e,n,a),m=RT.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}const g=RT.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function PT(e,t={},n){let r=[];const o=qe({key:gk.COMPONENT.BASE_TOOLTIP,rtl:n});return ie(!0,o,{scale:gk.SCALE.MAIN.COLOR,settings:{filter:e=>RT.filterNodes({nodes:e,opts:t,barKey:gk.COMPONENT.BAR,stackTotalBarKey:gk.COMPONENT.STACK_TOTAL_BAR,barAxisKey:gk.COMPONENT.BAR_AXIS,groupAxisKey:gk.COMPONENT.GROUP_AXIS,barOobMaxKey:gk.COMPONENT.BAR_OOB_MAX,barOobMinKey:gk.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],RT.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:o,properties:i,customTooltipModel:a}=t;o&&(null===(e=o.isInModalSelection)||void 0===e||!e.call(o))&&a.useCustomTooltip&&a.embed&&NC.show({app:o,properties:i,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const zT={extractData:(e,t)=>[De.getTitleRow({title:e.node.data.label},t)],filterNodes(e,t){const n=e.filter((e=>e.data&&e.key===t));return n.length?[n[0]]:[]}};function jT(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=qe({key:gk.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return ie(!0,r,{scale:gk.SCALE.MAIN.COLOR,settings:{filter:e=>zT.filterNodes(e,gk.COMPONENT.LEGEND_COLOR_CAT),extract:e=>zT.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function FT(e,{fill:t}){return{[gk.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[gk.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const BT=1,_T=3;function HT(e){return e.getLayoutValue("gridLine.auto")}function $T(e){return!HT(e)&&e.getLayoutValue("gridLine.spacing")===BT}function VT(e){return!HT(e)&&e.getLayoutValue("gridLine.spacing")===_T}const WT=e=>({enabled:e.animations.enabled,trackBy:rs.lines.trackBy,compensateForLayoutChanges:rs.lines.compensateForLayoutChanges}),UT=(e,{themeService:t,layoutService:n,dockService:r,viewModel:o})=>{if(!HT(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:i}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:nT.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!$T(n)||((e,t)=>t%2==0),stroke:i.line.major.color},minorTicks:{show:VT(n),stroke:i.line.minor.color},animations:WT(o)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=gk.SCALE.MAIN.MINOR,a};function KT(e,t){const n=[UT(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const o=n.get("minorMinMax");if(o.min>0||o.max<0)return!1;const i=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:gk.SCALE.MAIN.MINOR,line:{stroke:i.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:gk.SCALE.MAIN.MINOR,lines:a,animations:WT(r)}})(t)),n}const GT="areaPan",YT=e=>({type:"Pan",key:"panorama",options:{event:GT,pointers:1,threshold:10,enable(t,n){return this.started===GT||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===gk.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=GT;const n=e.viewState.get("zoom");this[GT]={min:n.min,max:n.max,size:e.chart.component(gk.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:o,size:i}=this[GT],a=-t.deltaX/i;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(o+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function XT(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:o}=e,{rtl:i}=t,a=Jh.event.onZoom({viewCache:n,viewState:r,chart:o},{threshold:100,rtl:i,targetKey:gk.COMPONENT.BAR}),s={last:0,diff:0};return{type:"Pinch",key:"continuous-pinch-zoom",options:{event:"zoom",pointers:2,threshold:0,enable:(t,n)=>!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===gk.COMPONENT.BAR))},events:{zoomstart(e){s.last=e.scale,e.preventDefault()},zoommove(e){const t=e.scale-s.last;(function(e){return Math.abs(e)>.01})(t)&&a(e.center,t>0?1:-1),e.preventDefault(),s.last=e.scale}}}}function JT({chart:e},t,n){const r=e.component(gk.COMPONENT.BASE_TOOLTIP);var o;r&&r.show&&(r.emit("hide"),null!=n&&null!==(o=n.customTooltipModel)&&void 0!==o&&o.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const i=e.component(gk.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&i.emit("hide");const a=e.component(gk.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function ZT(e,t){const{viewCache:n,viewState:r,chart:o,trendLineModel:i,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?Jh.event.onZoom({viewCache:n,viewState:r,chart:o},{rtl:s,threshold:50,targetKey:gk.COMPONENT.BAR}):void 0,u=ik({majorInnerScale:gk.SCALE.MAIN.MAJOR_INNER,tooltip:gk.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:gk.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:o,viewState:r,trendLineModel:i,layoutService:a,rtl:s}),c=[gk.COMPONENT.BAR,gk.COMPONENT.BAR_AXIS,gk.COMPONENT.GROUP_AXIS,gk.COMPONENT.BAR_OOB_MAX,gk.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,f=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const o={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(o).filter((e=>e.key===gk.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(o,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===gk.COMPONENT.LEGEND_COLOR_CAT)),n&&(r=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,n))),r&&t.preventDefault(),JT(e,f,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(u(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(gk.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>c.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const o=d.getNodes(t,this.chart);f(t,r,{nodes:o,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const o=this.chart.component(gk.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&(n.some((e=>e.key===gk.COMPONENT.LEGEND_COLOR_CAT))?o.emit("show",t):o.emit("hide"))}},mouseup(t){2===t.button&&JT(this,f,e)},mouseleave(){JT(this,f,e)}}}}const QT=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...vg({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[YT(e,t.rtl),XT(e,t)]]});function eq(e,t){const n=[QT(e,t),ZT(e,t),vg({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const tq=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:rs.bars.compensateForLayoutChanges});const nq=(e,t,{collectionKey:n})=>{if(!og({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r,viewModel:o},{collectionKey:i}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:i},settings:{box:ie(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:ie(!0,{},e.settings.major,{scale:t.scales.major}),minor:e.settings.minor,orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:tq(o)}}(e,t,{collectionKey:n});const{mode:r,scales:o}=t.reducedDataModel;let i;return r.isGroupedByDimension&&!r.isReduced?i=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(i=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2),{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>t.discrete.query.getCanScroll(),data:{collection:n},settings:{box:{...e.settings.box,fill:r.isReduced||r.isStackedByDimension?t.colorService.getMain().getSettings().others:t.colorService.getMain().getColor(),strokeWidth:0},major:{scale:o.major,fn:i},minor:{scale:o.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:tq(t.viewModel)}},{measureText:rq}=t.renderer("svg")();function oq(e,t,n){const r=function(e){const t=ie(!0,{},e);return delete t.data,t}(t.minor),o=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:o,getProp:i}){let a={invert:n,data:{extract:e.mode.isDimensionless?e.fields.minor.map(((e,t)=>({field:e,value:t}))):{source:"miniCube",field:"qDimensionInfo/0"}},type:e.mode.isDimensionless?"band":void 0,maxPxStep:r,align:o};return e.mode.isStackedByDimension?a.data.extract.field="qDimensionInfo/1":e.mode.isGroupedByDimension?e.mode.isReduced||(a.data={source:"miniCube",hierarchy:{value:e=>e.qElemNumber}}):e.mode.isGroupedByMeasure?(a=ie(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=ie(!0,{},t,{min:()=>i("continuousMin"),max:()=>i("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:o}}const iq=125,aq={NARROW:50,MEDIUM:100,WIDE:200};function sq(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return aq.NARROW;case 1:return aq.MEDIUM;case 2:return aq.WIDE;default:return t*iq}}(t);return Math.max(1,Math.round(e/n))}const lq=10;function uq(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function cq(e,t,n){return 0===t||0===e||t===n.length-1}function dq(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function fq(e,t,n,r,o){e.domain([t,n]),e.nice(lq);const[i,a]=e.domain();let s=e.ticks(lq);const l=function(e){return e.length%2==0}(s),u=function(e){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}(s),c=u?cq:uq;s=s.filter(c),l&&!u&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=o?o.formatter(gk.FORMATTER.MINOR):void 0;return dq(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:i,roundedMax:a,ticks:s}}function pq(e,t,n,r,o,i,a,s){const l=i.formatter(gk.FORMATTER.MINOR),u=s.getStyles(),c="horizontal"===a.meta.major.orientation?"height":"width",d=e=>rq({text:e,fontSize:u.axis.label.name.fontSize,fontFamily:u.axis.label.name.fontFamily})[c];let[f,p]=e.domain(),m=e.ticks(r);function h(){const e=m.map(l);return!dq(e)&&function(e){const t=o/m.length;return Math.max(...e.map(d))<=t}(e)}for(let o=r-1;o>0&&!h();o--)e.domain([t,n]),e.nice(o),[f,p]=e.domain(),m=e.ticks(o);return{roundedMin:f,roundedMax:p,ticks:m}}const mq=(e,t)=>e.value-t.value,hq=e=>({value:e,isMinor:!1}),gq=e=>({value:e,isMinor:!0});function yq(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2;return e.filter((e=>(e=>Number.isNaN(t)||e>=t)(e)&&(e=>Number.isNaN(n)||e<=n)(e))).length<=r}function vq({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:o,viewModel:i,ds:a}){const{isButterfly:s}=r.meta,{explicitMin:l,explicitMax:u,hasExplicitMin:d,hasExplicitMax:f}=t.get("minorMinMax"),{min:p,max:m}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),h=p<=0&&m<=0?-1:1,g=s?Math.max(Math.abs(p),Math.abs(m)):m,y=s?-g:p,v=c((()=>{const s=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(gk.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),c=sq(s,r),p=function(e,t,n){const r=Pr().domain([e,t]);return r.nice(n),r}(y,g,c);let m,v,b=[];"SPARK"===n.meta.chart.mode?({roundedMin:m,roundedMax:v}=function(e,t){return{roundedMin:e,roundedMax:t}}(y,g)):(({roundedMin:m,roundedMax:v,ticks:b}=pq(p,y,g,c,s,e,n,o)),yq(b,l,u)&&({roundedMin:m,roundedMax:v,ticks:b}=fq(p,y,g,d||f,e)));const x=function(e,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}(b,1);b=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(d,l,b),b=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(f,u,b);let S=function(e,t){return[...e.map(hq),...t.map(gq)].sort(mq)}(b,x);if(r.meta.isButterfly){const e=i.fields.minor[0],t=void 0===e?void 0:a.field(e).formatter();"function"==typeof t&&(S=S.map((e=>({...e,label:t(Math.abs(e.value)*h)}))))}return{roundedMin:m,roundedMax:v,ticks:S}}),(()=>t.get("isPreRender")));return{values:()=>v().ticks,min:()=>d?l:v().roundedMin,max:()=>f?u:v().roundedMax}}function bq(e,{picasso:t,discrete:n,layoutService:r,dockService:o,viewModel:i,viewCache:a,reducedDataModel:s,colorService:l,themeService:u,viewState:c,chart:d,ds:f},{localeInfo:p,rtl:m}){const{meta:h}=r,{fields:g}=i,y=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,o.meta.chart.size["horizontal"===o.meta.major.orientation?"height":"width"]/4)},v=!("none"===r.getLayoutValue("measureAxis.show"))?(b=o.meta.minor.orientation,x=o.meta.minor.dock,"vertical"===b?"near"===x||"left"===x?0:1:"near"===x||"bottom"===x?1:0):.5;var b,x;const S={},M="vertical"===o.meta.minor.orientation&&m,C=l.getMain().getScales(),w=l.getMini().getScales();if(Object.assign(S,C,{reducedFill:w.reducedFill}),S[gk.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,viewModel:o,layoutService:i,themeService:a,ds:s},{rtl:l}){const u=vq({chart:e,dockService:n,viewCache:r,layoutService:i,themeService:a,viewModel:o,ds:s}),c={invert:"vertical"===n.meta.minor.orientation||l,ticks:{values:u.values},minorTicks:{count:1},min:u.min,max:u.max};return i.meta.isStacked||(c.data={source:"qHyperCube",fields:t.minor}),c}({chart:d,viewModel:i,dockService:o,viewCache:a,layoutService:r,themeService:u,ds:f},{rtl:m}),h.isGroupedByDimension)[gk.SCALE.MAIN.MAJOR_INNER,gk.SCALE.MAIN.MAJOR].forEach(((e,t)=>{S[e]={invert:M,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...i.selectionDimensionProp(t),group:h.isGroupedByDimension?{field:g.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:y,align:v}})),i.isDimensionLocked(0)||(S[gk.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(h.isGroupedByMeasure)S[gk.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:M,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:y,align:v};else if(h.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:o,picasso:i,viewState:a,localeInfo:s,themeService:l}=e,u=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),c=i.formatter("q-time"),d=l.getStyles(),f=e=>rq({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});o.set("qTimeAxisCache",[]);const p={get:(e,t=0)=>{const n=o.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{o.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(o.get("continuousMax")-o.get("continuousMin")),i=u().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...i].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:p},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:p}}}({picasso:t,localeInfo:p,viewState:c,viewModel:i,viewCache:a,themeService:u,layoutService:r},m);S[gk.SCALE.MAIN.MAJOR_INNER]=e,S[gk.SCALE.MAIN.MAJOR]=n}else h.isContinuous?S[gk.SCALE.MAIN.MAJOR]={type:"linear",invert:M,data:{extract:{key:"qHyperCube",field:g.majorNumeric}},ticks:{forceBounds:!0,count:c.get("zoom").min===c.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>c.get("zoom").min,max:()=>c.get("zoom").max}:S[gk.SCALE.MAIN.MAJOR]={invert:M,data:{extract:h.isDimensionless?g.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:h.isDimensionless?"band":void 0,maxPxStep:y,align:v};const{reducedMinor:k,reducedMajor:T}=oq(s,{major:S[gk.SCALE.MAIN.MAJOR],minor:S[gk.SCALE.MAIN.MINOR]},{majorScaleInvert:M,maxPxStep:y,align:v,getProp:a.get});return h.isDiscrete&&(S[gk.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,h.isGroupedByDimension&&(S[gk.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),S[s.scales.major]=T,S[s.scales.minor]=k,S}function xq(e,t,n){const{layoutService:r,colorService:o}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[Zk(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?gk.COMPONENT.STACK_TOTAL_BAR:gk.COMPONENT.BAR,gk.COMPONENT.BAR_AXIS,gk.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",gk.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return gk.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[gk.COMPONENT.BAR_AXIS,gk.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===gk.COMPONENT.LEGEND_COLOR_CAT))?o.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function Sq(e){const t=e.layoutService.meta.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1;return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=Yk(n);return{interactions:[Jk(n,t)],components:[r]}}({key:"lasso",componentTargetKey:gk.COMPONENT.BAR,components:[t?{key:gk.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:gk.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function Mq(e){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:[eT(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:gk.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",gk.COMPONENT.BAR_AXIS,gk.COMPONENT.BAR],fillTargets:["group-axis",gk.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function Cq(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:o}=t,i=void 0===n,a=r.getIsSingleSelect(n),s=xq(e,i,a);if(i||a)return{components:[...s.components],gestures:[...s.interactions]};const l=Sq(e),u=function(e,t){return e.layoutService.meta.isStacked||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:tT({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",gk.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:gk.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,o),c=function(e){return e.layoutService.meta.isContinuous?tT({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",gk.COMPONENT.BAR]:["continuous-axis",gk.COMPONENT.BAR],fillTargets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis"]:["continuous-axis"],observeBrush:!0,multiple:!0,dock:e.dockService.meta.major.dock,scale:e.layoutService.meta.isTime?gk.SCALE.MAIN.MAJOR_INNER:gk.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const o=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(gk.FORMATTER.MINOR),i=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||i?"":"<"}${o(t)}`}},e):{components:[],interactions:[]}}(e),d=Mq(e);return{components:[...s.components,...l.components,...u.components,...d.components,...c.components],gestures:[...l.interactions,...s.interactions,...u.interactions,...d.interactions,...c.interactions]}}const{isNumber:wq}=pa;function kq({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:o}=e;if(!o.isStackedByDimension||o.isContinuous)return!1;const{fields:i}=t,a=e.getLayoutValue("components",null),s=a?a.filter((e=>"bar"===e.key))[0]:null;return{key:"shadow-bar",type:"box",data:{extract:[{field:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.filter((e=>wq(e.qMaxPos))).map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>wq(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0}}},{field:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.filter((e=>wq(e.qMinNeg))).map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>wq(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0}}}]},settings:{major:{scale:gk.SCALE.MAIN.MAJOR},minor:{scale:gk.SCALE.MAIN.MINOR},orientation:n.meta.minor.orientation,box:{width:null!=s&&null!==(r=s.style)&&void 0!==r&&r.width&&s.style.width>0?s.style.width:.7,fill:()=>({type:"pattern",fill:"rgba(165, 165, 165, 0.8)",width:4,height:4,shapes:[{type:"rect",x:0,y:3,width:1,height:1},{type:"rect",x:1,y:2,width:1,height:1},{type:"rect",x:2,y:1,width:1,height:1},{type:"rect",x:3,y:0,width:1,height:1}]})},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:t.animations.enabled,trackBy:rs.shadowBars.trackBy,compensateForLayoutChanges:rs.bars.compensateForLayoutChanges}}}const Tq={min:"Min",max:"Max"};function qq(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?gT(e,t)||yT(e,t):n===vT.MAX?gT(e,t):yT(e,t)}(Number(r.toFixed(13)),e,t)}function Eq(e,{barComponent:t,type:n,isStacked:r}){var o,i,a;const{viewCache:s,layoutService:l,dockService:u}=e,c=s.get("minorMinMax"),d=n===vT.MAX;if(function(e,t){return!e[`hasOther${Tq[t]}`]}(c,n)){if(function(e,t){return!e[`hasExplicit${Tq[t]}`]}(c,n))return!1;if(qq(c,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${Tq[t]}`]&&r(e[`explicit${Tq[t]}`])}(c,n,d))return!1;let f="end";r&&(f=d?"sumOfPositives":"sumOfNegatives");const p=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(gk.SCALE.MAIN.MINOR)[n]())),m=d?e=>e.datum[f].value>p():e=>e.datum[f].value<p(),h=gk.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===h))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?u.meta.minor.end:u.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:ie({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:m,width:dT({layoutService:e.layoutService,discrete:e.discrete,componentKey:h}),strokeWidth:null!=y&&null!==(o=y.style)&&void 0!==o&&o.strokeWidth?lT.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:lT.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==i?i:lT.BAR.STROKE.COLOR})}}}function Nq(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:o}=e.viewModel,i=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum";function a(t,n){const o=e.ds.field(t).raw(),a=e.ds.field(t).formatter(),s=he.shouldUseFormat(o),l=r.isButterfly&&n>0;return{field:t,reduceLabel:"none",value:e=>"NaN"===e[i]?0:(e=>l&&0!==e?-e:e)(e[i]),label:e=>s?(e=>"NaN"===e[i]?"-":a(e[i]))(e):e.qText}}function s(e){if(!r.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[i]<0}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;const u={key:t,data:{extract:o.minor.map(((t,i)=>{const u=e.colorService.getMain().getDatumProps(i),c=e.colorService.getMini().getDatumProps(i),d=u[Object.keys(u)[0]],f=null==d?void 0:d.field,p=f?{field:f,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,m={field:r.isDimensionless?t:o.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:a(t,i),negative:s(t),null:(h=t,{field:h,reduceLabel:"none",reduce:"first",value:l}),segment:r.isStacked?a(t):void 0,group:r.isGroupedByDimension?{field:o.majorGroup}:void 0,stack:r.isStacked?{field:o.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:i,timeStart:r.isContinuous?{field:o.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:o.majorNumeric}:void 0,fillTooltip:p,...u,...c,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${i}`},customTooltipAttrExps:0!==r.dimensionCount?RC.getNode(e.layoutService.getLayout(),r):void 0}};var h;return r.isDimensionless&&(m.value=i),void 0!==n&&(m.source=n),he.deleteUndefinedProperties(m.props),m})),filter:r.isButterfly?e=>!e.negative.value:void 0}};return r.isStacked&&(u.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),u}const{isNumber:Lq}=pa;function Oq({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:o}=t;if(!r.isStacked)return!1;let i;return i=r.isStackedByMeasure?function(e,t){const n={field:0,props:{sumOfPositives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},null:{fields:t.minor.map((e=>({field:e}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"}}};if(e.isContinuous){const e={field:t.major,value:e=>e.qNum,reduceLabel:"none"};n.props.timeStart=e,n.props.timeEnd=e,n.value=e=>e.qNum}return n}(r,o):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>Lq(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0},sumOfNegatives:{value:e=>Lq(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0},null:{value:e=>{const{qSubNodes:t=[]}=e;return t.every((e=>"NaN"===((e.qSubNodes||[])[0]||{}).qValue))}}}};const n={field:t.majors[0],value:e=>e.qNum,reduceLabel:"none"};return{field:t.majorStack,trackBy:e=>e.qNum,reduce:e=>e[0],props:{sumOfPositives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t>0?e+t:e),0)},sumOfNegatives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t<0?e+t:e),0)},timeStart:n,timeEnd:n}}}(r,o),{key:n,data:{extract:i}}}const Dq="main-collection",Aq="stack-total-collection";function Iq(e,{collectionKey:t}){const{layoutService:n,colorService:r,reducedDataModel:{fields:o,mode:i}}=e,{meta:a}=n,s=a.isStackedByDimension&&!a.isContinuous?"qValue":"qNum";function l(e,t){if(!a.isButterfly)return{field:e};const n=t>0;return{field:e,value:e=>"NaN"===e[s]?0:(e=>n&&0!==e?-e:e)(e[s])}}function u(e){if(!a.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[s]<0}}return{key:t,data:{extract:o.minor.map(((e,t)=>{const n=i.isReduced?{}:r.getMain().getDatumProps(t),a={start:0,end:l(e,t),negative:u(e),group:{field:o.majorGroup},measureIndex:t,...n},s={source:"miniCube",field:i.isDimensionless?e:o.major,props:a};return i.isDimensionless&&(s.value=t),s})),filter:a.isButterfly?e=>!e.negative.value:void 0}}}const Rq="mini-collection",Pq="mini-stack-collection",zq="mini-continuous-collection",jq="miniCube",Fq=(e,t)=>{const n=(e=>{const t=[Nq(e,{collectionKey:Dq})];return e.layoutService.meta.isStacked&&t.push(Oq(e,{collectionKey:Aq})),t})(t),r=((e,t)=>{const n=[];return og({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(Nq(t,{collectionKey:zq},jq)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:o}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const i={end:{field:e,reduceLabel:"none"},...o.isStackedByMeasure&&!o.isReduced?n.getMain().getDatumProps(t):{}};return o.isContinuous&&(i.timeStart={field:r.major,value:e=>e.qNum},i.timeEnd=i.timeStart),{source:"miniCube",field:r.major,props:i}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:Pq})):n.push(Iq(t,{collectionKey:Rq}))),n})(0,t);return n.concat(r)};function Bq(e,t,n,r){const o=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",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 _q({layout:e,component:t},n,r){if(!DT(e,n))return!1;const{layoutService:o,chart:i,dockService:a,viewModel:s,themeService:l,styleService:u}=n,{meta:c}=o,d=!OT(e,n),f=l.getStyles(),p=u.label.getStyle(),m=p.useContrastColor;function h(e){const t=i.formatter(gk.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":h(e.data.sumOfPositives.value)},simplifiedPlacements:Bq("outside",d,m,c.isContinuous),style:f.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":h(e.data.sumOfNegatives.value)},simplifiedPlacements:Bq("opposite",d,m,c.isContinuous),style:f.label.value},v=[TT(ie(n,g)),TT(ie(n,y))];return{key:"stack-total-labels",type:"labels",renderer:ys(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>LT(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily,linkData:rs.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:rs.labels.trackBy,compensateForLayoutChanges:rs.labels.compensateForLayoutChanges}}}function Hq(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return t&&r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function $q({layout:e,type:t},n){const{layoutService:r,viewCache:o,themeService:i,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!OT(e,n)||l&&!DT(e,n))return!1;const u=o.get("minorMinMax");if(!u.hasExplicitMinMax||t===vT.MAX&&0===u.max||t===vT.MIN&&0===u.min)return!1;if(!xT(t===vT.MAX?u.implicitMax:u.implicitMin,u,t))return!1;const c=i.getStyles(),d=a.label.getStyle();let f=e=>e.data.end.label;s.isStacked&&(f=t===vT.MAX?function(e){if(xT(e.data.sumOfNegatives.value,u,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(gk.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(xT(e.data.sumOfPositives.value,u,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(gk.FORMATTER.MINOR);return r?r(t):t}return""});const p={label:f,simplifiedPlacements:Hq("outside",true,s.isContinuous),styles:c},m={label:f,simplifiedPlacements:Hq("opposite",true,s.isContinuous),styles:c},h=[TT(ie(n,p)),TT(ie(n,m))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${gk.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:h,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:rs.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:ys(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:rs.labels.trackBy,compensateForLayoutChanges:rs.labels.compensateForLayoutChanges}}}function Vq(e){return"all"===e||"title"===e}function Wq(e,t,n){if(!Vq(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:r,properties:o}=t,i={hyperCube:e.qHyperCube,hyperCubeDef:o&&o.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=r&&null!==(e=r.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},a=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(i.padding="0",i.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:nT[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:i,style:a}}function Uq(e,t,n){if(!Vq(e.measureAxis.show))return!1;const{layoutService:r,actions:i}=t,a=t.properties,s=r.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",l={hyperCube:r.getHyperCube(),hyperCubeDef:o(a,s),isDimension:!1,disabled:()=>!i.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},u=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(l.padding="0",l.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:l,style:u}}function Kq({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:o,dockService:i,themeService:a,viewModel:s,chart:l}){const{theme:u,localeInfo:c}=e,d={resolveUIColor:o.getMain().getPaletteColor},f=a.getStyles(),p=s.animations.enabled;return[us({refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:p,chart:l,scale:gk.SCALE.MAIN.MINOR,axis:"horizontal"===i.meta.major.orientation?"y":"x",key:gk.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:nT.refLines.minimumLayoutMode}),us({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:p,chart:l,scale:gk.SCALE.MAIN.MAJOR,axis:"horizontal"===i.meta.major.orientation?"x":"y",rtl:t,key:gk.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:gk.COMPONENT.BAR,minimumLayoutMode:nT.refLines.minimumLayoutMode}),...ps({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:p,dock:i.meta.minor.opposite,scale:gk.SCALE.MAIN.MINOR,style:f,formatter:gk.FORMATTER.MINOR,theme:u,localeInfo:c,rtl:t,key:gk.COMPONENT.MEASURE_REF_LINE_LABEL}),...ps({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:p,dock:i.meta.major.opposite,scale:gk.SCALE.MAIN.MAJOR,style:f,theme:u,localeInfo:c,rtl:t,key:gk.COMPONENT.DIMENSION_REF_LINE_LABEL})]}const Gq=(e,t,n)=>{var r;const{layoutService:o,dockService:i,colorService:a,chart:s,actions:l,discrete:u,continuousDataModel:c,reducedDataModel:d,viewModel:f,viewState:p,viewCache:m,themeService:h,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:S}=t,{localeInfo:M}=n,C=function(e,t){const{disclaimerService:n,themeService:r,translator:o}=e,i=n.getDisclaimer();if(!i)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:i.alignment},settings:{isRTL:t,label:o.get(`Object.Disclaimer.${i.key}`)},style:{fontFamily:a}}}(t,v);if(S.getHasSuppressingDisclaimer())return{components:[C]};const w=bq(e,t,{localeInfo:M,rtl:v}),k=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),T=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:p,chart:s,styleReference:"object.barChart",styleOverrides:{title:t.styleService.legend.title.getStyle(),label:t.styleService.legend.label.getStyle()},rtl:v,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:k}),q=T.components[0];if(q){const{dock:e}=q.layout;if(w.fillRange&&(["right","left"].includes(e)||v)&&(w.fillRange.invert=!0),"legend-seq"===q.type&&void 0!==f.selectionDimensionIdx&&w.fillRange&&w.fillRange.min<w.fillRange.max){const e=tT({eventName:"legendRange",key:"legendRangeBrush",targets:[q.key],fillTargets:[q.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:q.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);T.components.push(...e.components),T.interactions.unshift(...e.interactions)}}else w.fillRange&&v&&(w.fillRange.invert=!0);const E=((e,{componentKey:t,collectionKey:n})=>{var r,o,i;const{meta:a}=e.layoutService,s=e.colorService.getMain().getPaletteColor;let l,u;a.isGroupedByDimension?l=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(l=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let c=2;a.isContinuous?(u={start:"timeStart",end:"timeEnd"},c=pT(e,t)):a.isStacked&&(u="stack");const d=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,f=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},p=e.layoutService.getLayoutValue("components",null),m=p?p.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:a.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:a.isContinuous||d?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:gk.SCALE.MAIN.MAJOR,fn:l,ref:u},minor:{scale:gk.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:dT({layoutService:e.layoutService,discrete:e.discrete,componentKey:t}),minWidthPx:c,fill:e.colorService.getMain().getColor(),opacity:e=>f(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:f(e)?.01:.3},strokeWidth:null!=m&&null!==(r=m.style)&&void 0!==r&&r.strokeWidth?lT.BAR.STROKE.WIDTH[m.style.strokeWidth.toUpperCase()]:lT.BAR.STROKE.WIDTH.NONE,stroke:null!=m&&null!==(o=m.style)&&void 0!==o&&null!==(o=o.strokeColor)&&void 0!==o&&o.color?s(null==m||null===(i=m.style)||void 0===i?void 0:i.strokeColor):lT.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:rs.bars.trackBy,compensateForLayoutChanges:rs.bars.compensateForLayoutChanges}}})(t,{componentKey:gk.COMPONENT.BAR,collectionKey:gk.COLLECTION.MAIN}),N=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let o=2;r.isContinuous&&(o=pT(e,t));const i={key:t,type:"box",data:{collection:n},settings:{major:{scale:gk.SCALE.MAIN.MAJOR},minor:{scale:gk.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:dT({layoutService:e.layoutService,discrete:e.discrete,componentKey:gk.COMPONENT.BAR}),minWidthPx:o,opacity:0,fill:"none"},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:{consume:[{context:"selection",data:[""],style:{active:{strokeWidth: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}},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:.3}}}}]}};return r.isContinuous&&(i.settings.major.ref={start:"timeStart",end:"timeEnd"}),i})(t,{componentKey:gk.COMPONENT.STACK_TOTAL_BAR,collectionKey:gk.COLLECTION.STACK_TOTAL}),L=Cq(t,n,f.selectionDimensionIdx),{isStacked:O}=o.meta;let D;D=d.mode.isContinuous?gk.COLLECTION.MINI_CONTINUOUS:O?gk.COLLECTION.MINI_STACK:gk.COLLECTION.MINI;const A=O?N:E,I=KT(0,t),R=[...I,Eq(t,{barComponent:A,type:"max",isStacked:O}),Eq(t,{barComponent:A,type:"min",isStacked:O}),MT(t,{barComponent:A,type:"max",isStacked:O}),MT(t,{barComponent:A,type:"min",isStacked:O}),wT(t,{chart:s,barComponent:A,type:"max",scales:w,collectionKey:O?gk.COLLECTION.STACK_TOTAL:gk.COLLECTION.MAIN}),wT(t,{chart:s,barComponent:A,type:"min",scales:w,collectionKey:O?gk.COLLECTION.STACK_TOTAL:gk.COLLECTION.MAIN}),...sT(e,t,v,!!I[0]),E,N,kq({layoutService:o,viewModel:f,layout:e,dockService:i}),Wq(e,t,v),Uq(e,t,v),...Kq({environment:n,rtl:v,refLineModel:g,layoutService:o,colorService:a,dockService:i,themeService:h,viewModel:f,chart:s}),Ji({viewState:p,viewCache:m,layoutService:o,dockService:i,rtl:v}),nq(E,t,{collectionKey:D}),ig({layoutService:o,dockService:i,discrete:u,continuousDataModel:c,viewState:p,viewCache:m,themeService:h,rtl:v,deviceType:n.deviceType}),...Jw({majorScale:gk.SCALE.MAIN.MAJOR,minorScale:gk.SCALE.MAIN.MINOR,tooltipOverlay:gk.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:o,trendLineModel:x,dockService:i,animationsEnabled:f.animations.enabled}),...T.components,IT({layout:e,component:gk.COMPONENT.BAR,minorScale:w.minor},t,v),_q({layout:e,component:gk.COMPONENT.STACK_TOTAL_BAR},t,v),$q({layout:e,component:"bar-oob-max",type:"max"},t),$q({layout:e,component:"bar-oob-min",type:"min"},t),...L.components,PT(0,{...t,coloring:a.getMain().getSettings()},v),jT(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&C,rk({tooltip:gk.COMPONENT.TREND_LINES_TOOLTIP,formatter:gk.FORMATTER.MINOR,majorScale:gk.SCALE.MAIN.MAJOR},t,{rtl:v})].filter(Boolean);!function(e){if(e&&0!==e.length)for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(R);const P=[...T.interactions,...L.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:eq(t,{rtl:v,hammer:{gestures:P}}),scales:w,palettes:a.getMain().getPalettes(),components:y.extendComponents(R),strategy:ue(0,{logicalSize:b,minCenterRatio:0}),formatters:FT(t,w),collections:Fq(0,t)}};const Yq=({environment:e,services:t,chart:n,viewState:r,bootstrapped:o})=>{K((i=>{if(!e||!t||!o)return;const{layoutService:a,dockService:s,colorService:l,discrete:u,continuousDataModel:c,reducedDataModel:d}=t,{width:f,height:p}=s.meta.chart.size;if(i.snapshotData=i.snapshotData||{},i.snapshotData.content={size:{w:f,h:p}},a.meta.isSnapshot)return Promise.resolve();i.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:xe(n,gk.COMPONENT.LEGEND_COLOR_CAT)};const{properties:m}=o;return(null==m?void 0:m.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})))&&(i.tooltip.auto=!0),a.meta.isDiscrete?(u.command.setSnapshotData(i),d.setSnapshotData(i)):c.setSnapshotData(i),l.getMain().getSnapshotData().then((e=>{i.snapshotData.content.chartData={...i.snapshotData.content.chartData,...e}})).catch((()=>{}))})),G((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:xe(n,gk.COMPONENT.LEGEND_COLOR_CAT)}}})),[r,n])},Xq=e=>"[object Object]"===Object.prototype.toString.call(e),Jq=e=>Array.isArray(e);function Zq(e,t){if(e===t)return!0;if(Jq(e)){if(!Jq(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Zq(e[n],t[n]))return!1;return!0}if(Xq(e)){if(!Xq(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(!Zq(e[n[r]],t[n[r]]))return!1}return!0}return e===t}const Qq=({properties:e,layout:t,isStacked:n,isContinuous:r,model:o,layoutService:i})=>{var a,s;const l=t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),c=ie(!0,{},e);return((e,t,n)=>{const{color:{mode:r}}=n;e.length>1&&n.color?n.color.persistent=!0:"byDimension"===r&&t.length>1?n.color.mode="byMultiple":"byExpression"===r&&0===t.length?n.color.mode="primary":0===e.length&&t.length>0&&(n.color.byMeasureDef=void 0,n.color.byDimDef=void 0,1===t.length&&"byExpression"!==r&&(n.color.mode="primary"))})(l,u,e),l.length>1&&n&&!r&&"S"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="K"),l.length<2&&"K"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="S"),null===(a=o.colorSupport)||void 0===a||null===(s=a.colorByUpdater)||void 0===s||s.call(a,e,"qHyperCubeDef.",t),function({properties:e,layoutService:t}){const{filteredFields:n}=t.meta;if(!(n.measures.length>0))return;const{mode:r}=e.color||{};if("byExpression"===r){var o;if("colorByExpression"===(null===(o=t.getLayout().qHyperCube.qMeasureInfo)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.qAttrExprInfo)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.id))return;const{current:r,target:i}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:o}=n.reduce(((e,n,r)=>{var o;return"colorByExpression"===(null===(o=n.qAttributeExpressions[0])||void 0===o?void 0:o.id)&&(e.current=r),void 0!==e.target||t.includes(r)||(e.target=r),e}),{current:void 0,target:void 0});return{current:r,target:o}}({properties:e,filtered:n.measures});if(void 0===r)return;const a=e.qHyperCubeDef.qMeasures[r].qAttributeExpressions[0];e.qHyperCubeDef.qMeasures[r].qAttributeExpressions.splice(0,1),e.qHyperCubeDef.qMeasures[i].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:i}),!ra.compare(c,e,!0)&&JSON.stringify(c)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};function eE(e,t){if("custom"===e.dimensionAxis.axisDisplayMode){const n=t.layout.qHyperCube.qMeasureInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})).length,o=e.dimensionAxis.maxVisibleItems;o<1?e.dimensionAxis.maxVisibleItems=10:o>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(o,Math.floor(1e4/(r+n))))}}const tE=.7,nE=.9,rE=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],oE=(e,t)=>{var n,r,o;const i=null===(n=t.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})).length,a=null===(r=t.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC})).length,s="grouped"===(null===(o=e.barGrouping)||void 0===o?void 0:o.grouping)&&a>0&&i+a>2;return be.continuous(t)?1:s?nE:tE},iE=(e,t,n)=>{const r=`${e}.fontFamily`,o=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function aE(e=!1,t,n,r){return e?function(e){return{classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"LayerStyleEditor.style.strokeWidth",component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:Object.keys(rE).map((e=>rE[e])),schemaIgnore:!0,defaultValue:rE[0].value},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891",index:-1},width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"items",show:(e,t)=>!be.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t,n)=>oE(n.properties,n.layout)}}}}},optionsSection:{translation:"LayerStyleEditor.label.Options",component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollbar:{ref:"scrollbar",translation:"properties.scrollbar",component:"dropdown",type:"string",options:Object.keys(Qh.OPTIONS).map((e=>Qh.OPTIONS[e])),schemaIgnore:!0,defaultValue:Qh.DEFAULT.value},scrollAlignment:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",schemaIgnore:!0,defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},gridLines:{type:"items",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"}]},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}}}}}}}}}}(n):function(e,t,n){const r=v({theme:e,translator:n,config:{id:"barChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]},flags:t});return{component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==t?void 0:t.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),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:Object.keys(rE).map((e=>rE[e])),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)=>!be.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue(e,t,n){const{properties:r}=n,{barGrouping:o,qHyperCubeDef:i}=r,a=i.qMeasures.length,s=i.qDimensions.length,l="grouped"===o.grouping&&s>0&&a+s>2;return be.continuous(r)?1:l?nE:tE},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:iE("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:iE("axis.label.name",r,e)}}},labelSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.labelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...iE("label.value",r,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{legendTitleSection:{component:"items",ref:"components",key:"legend",items:iE("legend.title",r,e)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{legendLabelSection:{component:"items",ref:"components",key:"legend",items:iE("legend.label",r,e)}}}:void 0}}}(t,n,r)}const sE=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC},lE=(e,t)=>null==e?void 0:e.qHyperCube[t].filter((e=>sE(e))),uE=e=>({get(t,n,r){const o="stacked";return"butterfly"===t(n.type)?yk({layout:r.layout,flags:e})?t(n.type):o:be.continuous(r.layout)?o:t(n.type)},set(e,t,n){const r=Ce(n.type,n);t(n.type,e,r)}}),cE=e=>{if(!e)return!1;const t=ie(!0,{},e);return t.qHyperCube.qMeasureInfo=lE(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=lE(e,"qDimensionInfo"),t&&!be.continuous(t)&&be.stacked(t)},dE=({translator:e,flags:t,anything:n})=>{var r,o,i;const a=null==n||null===(r=n.sense)||void 0===r||null===(o=r.isUnsupportedFeature)||void 0===o?void 0:o.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>lE(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!cE(t.layout)&&lE(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>cE(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,o){o.dataPoint.showSegmentLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>cE(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,o){o.dataPoint.showTotalLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>lE(n.layout,"qDimensionInfo").length&&lE(n.layout,"qMeasureInfo").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"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>lE(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,o){o.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(i=n.sense)||void 0===i?void 0:i.theme,u={uses:"settings",items:{simpleStyling:aE(!0,l,t,e),simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:aE(!1,l,t,e),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:(e,n)=>{const r=[{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"}];return yk({layout:n.layout,flags:t})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){const n=lE(t.layout,"qMeasureInfo").length,r=lE(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},globalChange(e,n,r){"butterfly"!==e.barGrouping.grouping||yk({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),"butterfly"===e.barGrouping.grouping&&e.measureAxis&&"max"!==e.measureAxis.minMax&&!e.measureAxis.autoMinMax&&(e.measureAxis.minMax="max")},change(e,n,r){"butterfly"!==e.barGrouping.grouping||yk({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),lE(n.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>be.continuous(n.layout),convertFunctions:uE(t)},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)=>be.continuous(n.layout),convertFunctions:(c="vertical",{get:(e,t,n)=>be.continuous(n.layout)?c:e(t.type),set(e,t,n){const r=Ce(n.type,n);t(n.type,e,r)}})},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(Qh.OPTIONS).map((e=>Qh.OPTIONS[e])),defaultValue:Qh.DEFAULT.value},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)=>!be.continuous(n.layout)}}},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"}]},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}}},valueLabels:{type:"items",snapshot:{tid:"property-valueLabels"},items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!1,options:[{value:!0,label:(t,n)=>((e,t,n)=>n&&n.get(cE(t.layout)?"properties.on":"Common.Auto"))(0,n,e)},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showSegmentLabels",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.showLabels&&cE(n.layout)},showTotalLabels:{ref:"dataPoint.showTotalLabels",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.showLabels&&cE(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:vs}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,n,r)=>t&&t.isEnabled("BC_XAXIS_MODE")&&!be.continuous(r.layout),items:{axisDisplayMode:{ref:"dimensionAxis.axisDisplayMode",type:"string",translation:"properties.axis.displaymode",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:{ref:"dimensionAxis.maxVisibleItems",translation:"properties.axis.maxvisiblevalues",expression:"optional",type:"integer",invalid(e,t,n){const r=lE(n.layout,"qMeasureInfo").length,o=lE(n.layout,"qDimensionInfo").length,i=e.dimensionAxis.maxVisibleItems;return i<0||i>1e4/(o+r)},globalChange:eE,defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}},continuousGroup:{items:{miniChart:null},show:!a}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};var c;return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(u.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"}]}}}),null!=t&&t.isEnabled("TLV_800_BUTTERFLY_CHART")&&(u.items.measureAxis={uses:"axis.flippableMeasureAxis",items:{minMax:{items:{minMax:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&!e.measureAxis.autoMinMax},min:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&["min","minMax"].includes(e.measureAxis.minMax)&&!e.measureAxis.autoMinMax},max:{invalid:e=>e.measureAxis&&"minMax"===e.measureAxis.minMax?e.measureAxis.min>=e.measureAxis.max:!(!e.measureAxis||"max"!==e.measureAxis.minMax||"butterfly"!==e.barGrouping.grouping)&&e.measureAxis.max<=0}}}}}),u},fE={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){Dt(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:o}=e.qHyperCubeDef,{qCardinal:i}=t.layout.qHyperCube.qDimensionInfo[0],a=o.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&i>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},pE={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},mE=({translator:e,flags:t,anything:n})=>{var r,o;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var o,i;if(null!=n&&null!==(o=n.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const o=null===(n=t.layout)||void 0===n||null===(n=n.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.findIndex((e=>sE(e)));return(null===(r=t.properties)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r[o])===e})(e,t),s=be.continuous(r.layout);return!(a&&s)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Dimensions.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0}}},measures:{items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Measures.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"trendlines")?void 0:lk({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function hE({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:mE({translator:e,flags:t,anything:n}),sorting:fE,addons:pE,settings:dE({translator:e,flags:t,anything:n})}}}const gE=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==HC};function yE(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t,n){const r=n.qHyperCube.qMeasureInfo.length,o=n.qHyperCube.qDimensionInfo.filter((e=>gE(e))).length;return 1===r&&2===o&&0===e}}}}}},presentation:{uses:"presentation",items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},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){const n=t.qHyperCube.qMeasureInfo.filter((e=>gE(e))).length,r=t.qHyperCube.qDimensionInfo.filter((e=>gE(e))).length;return n+r>2&&!be.continuous(t)&&!((null==(o=t)||null===(i=o.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.filter((e=>gE(e))).length)>1&&(null==o||null===(a=o.qHyperCube)||void 0===a?void 0:a.isHCEnabled));var o,i,a},change(e){e.qHyperCubeDef.qDimensions.length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"}},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)=>!be.continuous(t)}}},color:{uses:"color"}}}}function vE(e){const t={},n=o(e,"components"),r=o(e,"dimensionAxis.axisDisplayMode"),i=o(e,"dimensionAxis.maxVisibleItems"),a=n?n.filter((e=>"bar"===e.key))[0]:void 0,s=o(e,"tooltip");if(a&&a.style&&Object.keys(a.style).forEach((e=>{t[`chart_style_${e}`]=a.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),s){t.chart_tooltip_custom=!s.auto;const e=o(s,"chart.object.refId");!s.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const bE=e=>!!(e&&e.qHyperCube.qSize.qcy>0),xE={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function SE(){const e=[];return Object.keys(xE).forEach((t=>{e.push(xE[t])})),e}function ME(e){return{definition:hE(e),softDefinition:yE(),support:{snapshot:bE,export:bE,exportData:!0,sharing:bE,viewData:!0,effects:!0,modifiers:SE()},importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=X.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:JC(e),defaultPropertyValues:a,hypercubePath:o,extension:r}),l=s.qProperty;return l.qHyperCubeDef.qDimensions.length>1&&"stacked"===l.barGrouping.grouping&&(l.qHyperCubeDef.qMode="K",l.qHyperCubeDef.qAlwaysFullyExpanded=!0),X.conditionalShow.unquarantine(l),X.conditionalShow.unquarantineAlternative(l),s},exportProperties:(e,t,n)=>{X.conditionalShow.quarantine(e.qProperty),X.conditionalShow.quarantineAlternative(e.qProperty);return X.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(Dt),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(Dt)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:o}=e;if(t||!1!==o)return;const{continuousAuto:i}=n;(i||!i&&r)&&(e.scrollbar=Qh.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:vE}}}}}));
|